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
Begin and ending date of task must fulfill the following conditions: The begin date must be after the current date. The begin date must before the ending date. They must not be equal.
public static boolean checkDateConstraints(Task task) { if (task.getBeginDate().before(new Date()) || task.getBeginDate().after(task.getEndingDate()) || task.getBeginDate().equals(task.getEndingDate())) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@NoProxy\n @NoWrap\n public boolean inDateTimeRange(final String start, final String end) {\n if ((getEntityType() == IcalDefs.entityTypeTodo) &&\n getNoStart()) {\n // XXX Wrong? - true if start - end covers today?\n return true;\n }\n\n String evStart = getDtstart().getDate();\n S...
[ "0.6534165", "0.6417996", "0.6405388", "0.6394219", "0.6306654", "0.6293224", "0.6272373", "0.62482536", "0.62227917", "0.61811405", "0.61423516", "0.6067814", "0.6049352", "0.60107934", "0.5989312", "0.59881717", "0.59594333", "0.59484005", "0.5909604", "0.58867985", "0.5848...
0.77395517
0
SubmitFiles constructor for the class
public SubmitFiles(CtrlPresenter ctrlPresenter){ vCtrlPresenter = ctrlPresenter; add(rootPanel); setTitle("Submit Files"); setSize(400,500); // We add a Listener to make the button do something selectClassroomsFileButton.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { JFileChooser fc = new JFileChooser(); fc.setCurrentDirectory(new java.io.File("./data/import")); FileNameExtensionFilter filter = new FileNameExtensionFilter( "JSON Files", "json"); fc.setFileFilter(filter); int returnVal = fc.showOpenDialog(rootPanel); if(returnVal == JFileChooser.APPROVE_OPTION) { System.out.println("You chose to open this file: " + fc.getCurrentDirectory().getAbsolutePath()+ "/" + fc.getSelectedFile().getName()); classroomsFile = fc.getCurrentDirectory().getAbsolutePath()+ "/" + fc.getSelectedFile().getName(); selectClassroomsFileButton.setForeground(Color.green); } else { selectClassroomsFileButton.setForeground(Color.red); } } }); selectSubjectsFileButton.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { JFileChooser fc = new JFileChooser(); fc.setCurrentDirectory(new java.io.File("./data/import")); FileNameExtensionFilter filter = new FileNameExtensionFilter( "JSON Files", "json"); fc.setFileFilter(filter); int returnVal = fc.showOpenDialog(rootPanel); if(returnVal == JFileChooser.APPROVE_OPTION) { System.out.println("You chose to open this file: " + fc.getCurrentDirectory().getAbsolutePath()+ "/" + fc.getSelectedFile().getName()); subjectsFile = fc.getCurrentDirectory().getAbsolutePath()+ "/" + fc.getSelectedFile().getName(); selectSubjectsFileButton.setForeground(Color.green); }else { selectClassroomsFileButton.setForeground(Color.red); } } }); nextbutton.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { try { if (ctrlPresenter.setScenario(classroomsFile, subjectsFile)){ ctrlPresenter.selectConstraints(); }else{ setEnabled(false); setVisible(false); vCtrlPresenter.backToInit(); } } catch (Exception exc) { System.out.println(exc); } } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Uploader() {\n super();\n }", "public FileObject() {\n\t}", "public ActionFile() {\n }", "public CompleteMultipartUploadRequest() {}", "public FileUploadServlet() {\r\n\t\tsuper();\r\n\t\t// TODO Auto-generated constructor stub\r\n\t}", "public FileSet() {\n super();\n }", "prot...
[ "0.66980624", "0.6693121", "0.66284394", "0.66047996", "0.64634734", "0.6451717", "0.64515966", "0.6388944", "0.6303655", "0.6295451", "0.6293416", "0.62476355", "0.6246991", "0.6218941", "0.61767876", "0.61719537", "0.6162926", "0.6159029", "0.61432517", "0.6130411", "0.6093...
0.613461
19
list delegation information(delegation details page) eg.USA.jsp title & flag
public Picture getDelegationInfo(String delegation_name){ Connection conn = DBConnect.getConnection(); String sql = "select * from delegation_pic where type='common' and delegation_name = '" + delegation_name + "'"; Picture delegation = null; try { PreparedStatement pst = conn.prepareStatement(sql); ResultSet rst = pst.executeQuery(); while(rst.next()) { delegation = new Picture(); delegation.setDelegation_name(rst.getString("delegation_name")); delegation.setPath(rst.getString("path")); } rst.close(); pst.close(); }catch (SQLException e) { // TODO: handle exception e.printStackTrace(); } return delegation; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<String> getDelegationNames(){\t\t\r\n\t\tConnection conn = DBConnect.getConnection();\r\n\t\tString sql = \"select delegation_name from delegation\";\r\n\t\tList<String> names = new ArrayList<String>();\r\n\t\ttry {\r\n\t\t\tPreparedStatement pst = conn.prepareStatement(sql);\r\n\t\t\tResultSet rst = p...
[ "0.60456246", "0.59237874", "0.5862736", "0.58269584", "0.5746058", "0.5707793", "0.57006663", "0.5681669", "0.5679083", "0.5604543", "0.5596762", "0.55226815", "0.54814816", "0.53976375", "0.5389781", "0.5368173", "0.5356948", "0.5355108", "0.5334331", "0.53023934", "0.52932...
0.5131524
40
medal listList events that have won medals eg.USA.jsp
public List<String> getMedalList(String delegation_name){ List<String> list = new ArrayList<String>(); Connection conn = DBConnect.getConnection(); String sql = "select event_name,team_name as name,rank,type,T1.sports_name " + "from team_result T1 join event using(event_name) " + "where T1.state='final' and (rank=1 or rank=2 or rank=3) and delegation_name = '"+delegation_name+"' union " + "select event_name,athlete_name as name,rank,type,T1.sports_name " + "from individual_result T1 join event using(event_name)" + "where T1.state='final' and (rank=1 or rank=2 or rank=3) and delegation_name = '"+delegation_name+"'"; try { PreparedStatement pst = conn.prepareStatement(sql); ResultSet rst = pst.executeQuery(); while(rst.next()) { list.add(rst.getString("event_name")); list.add(rst.getString("name"));//team name list.add(String.valueOf(rst.getInt("rank"))); list.add(rst.getString("type")); list.add(rst.getString("sports_name")); } rst.close(); pst.close(); }catch (SQLException e) { // TODO: handle exception e.printStackTrace(); } return list; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void filterByFoDisplayAll(){\n // add them into the new list\n for (int i = 0; i < moodListBeforeFilterFo.getCount(); i++ ){\n moodListAfterFilter.add(moodListBeforeFilterFo.getMoodEvent(i));\n }\n }", "public void filterByMyDisplayAll(){\n // add them into the ne...
[ "0.55245894", "0.55192244", "0.55005586", "0.54906344", "0.545823", "0.5440552", "0.535931", "0.532291", "0.5271527", "0.52698123", "0.5208354", "0.5138998", "0.5117698", "0.50790185", "0.5024209", "0.5019719", "0.49940652", "0.4974806", "0.49714783", "0.49591935", "0.4931420...
0.5275828
8
medal listlist each record picture
public List<String> getListPic(String delegation_name){ List<String> list = new ArrayList<String>(); Connection conn = DBConnect.getConnection(); String sql = "select path,event_name,team_name,rank " + "from team_result join sports_pic using(sports_name) " + "where type='logo' and state='final' and (rank=1 or rank=2 or rank=3) and delegation_name = '" + delegation_name + "' union " + "select path,event_name,athlete_name,rank " + "from individual_result join sports_pic using (sports_name) " + "where type='logo' and state='final' and (rank=1 or rank=2 or rank=3) and delegation_name = '" + delegation_name + "'"; try { PreparedStatement pst = conn.prepareStatement(sql); ResultSet rst = pst.executeQuery(); while(rst.next()) { String path = rst.getString("path"); list.add(path); } rst.close(); pst.close(); }catch (SQLException e) { // TODO: handle exception e.printStackTrace(); } return list; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void listPictures()\r\n {\r\n int index = 0;\r\n while(index >=0 && index < pictures.size()) \r\n {\r\n String filename = pictures.get(index);\r\n System.out.println(index + \": \"+ filename);\r\n index++;\r\n }\r\n }", "public List<Camera...
[ "0.6701289", "0.6618815", "0.62307996", "0.6158802", "0.61379564", "0.6127788", "0.6091622", "0.605609", "0.59905934", "0.59709066", "0.5891439", "0.58572036", "0.5844668", "0.5840039", "0.5826217", "0.5803771", "0.57820666", "0.5712446", "0.5711835", "0.5698493", "0.56852245...
0.56947887
20
list all sports that a delegation participates in eg.USA.jsp
public List<String> getSports(String name){ List<String> list = new ArrayList<String>(); Connection conn = DBConnect.getConnection(); String sql = "select sports_name from team where delegation_name= '" + name + "'"; try { PreparedStatement pst = conn.prepareStatement(sql); ResultSet rst = pst.executeQuery(); while(rst.next()) { String team = rst.getString("sports_name"); list.add(team); } rst.close(); pst.close(); }catch (SQLException e) { // TODO: handle exception e.printStackTrace(); } return list; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Sports> getAllSportsService() {\n\t\tList<Sports> list=new ArrayList<>();\n\t\tlist=(List<Sports>)repository.findAll();\n\t\tif(list.size()<1)\n\t\t\tthrow new RecordNotFoundException(\"No Sports present in the table Sports\");\n\t\tlogger.info(\"Size of the list after fetching all the records= \"+list...
[ "0.6321984", "0.5762401", "0.5755302", "0.5719504", "0.5646438", "0.5602418", "0.5516061", "0.5423669", "0.54071426", "0.5379345", "0.5345941", "0.5342602", "0.53085566", "0.5300181", "0.5293075", "0.5244483", "0.5222101", "0.5221205", "0.5216396", "0.51979566", "0.5194368", ...
0.65534157
0
Calculate the number of male and female athletes in a certain sport in a delegation eg.USA.jsp
public List<Integer> getMemAmount(String delegation_name,String sports_name){ List<Integer> list = new ArrayList<Integer>(); List<String> list2 = new ArrayList<String>(); Connection conn = DBConnect.getConnection(); String sql = "select count(athlete_name) as amount,sex from athlete where sports_name='" + sports_name + "' and delegation_name='" + delegation_name +"' group by sex order by sex"; try { PreparedStatement pst = conn.prepareStatement(sql); ResultSet rst = pst.executeQuery(); while(rst.next()) { String amount = String.valueOf(rst.getInt("amount")); String sex = rst.getString("sex"); list2.add(amount); list2.add(sex); } if(list2.size()==0) { list.add(0); list.add(0); } else if(list2.size()==2) { if(list2.get(1).equals("Female")) { list.add(Integer.parseInt(list2.get(0))); list.add(0); }else { list.add(0); list.add(Integer.parseInt(list2.get(0))); } } else { list.add(Integer.parseInt(list2.get(0))); list.add(Integer.parseInt(list2.get(2))); } rst.close(); pst.close(); }catch (SQLException e) { // TODO: handle exception e.printStackTrace(); } return list; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int numberOfFemale(){\n int female=0;\n for (int i=0;i<kangaroosInPoint.size();i++){\n if(kangaroosInPoint.get(i).getGender()=='F'){\n female++;\n } \n }\n return female;\n }", "@Override\r\n\tpublic int GenderCount(String gender) {\n\t\t...
[ "0.59984666", "0.5882973", "0.58253825", "0.57690984", "0.5752785", "0.5726873", "0.57232463", "0.57083315", "0.5559525", "0.5510687", "0.5505283", "0.55035615", "0.5406512", "0.5392275", "0.5377826", "0.53634673", "0.5362355", "0.5359886", "0.5307218", "0.529837", "0.5276060...
0.5707668
8
get all delegation name that can skip to another page
public List<String> getDelegationNames(){ Connection conn = DBConnect.getConnection(); String sql = "select delegation_name from delegation"; List<String> names = new ArrayList<String>(); try { PreparedStatement pst = conn.prepareStatement(sql); ResultSet rst = pst.executeQuery(); while(rst.next()) { names.add(rst.getString("delegation_name")); } rst.close(); pst.close(); }catch (SQLException e) { // TODO: handle exception e.printStackTrace(); } return names; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSkipProfileNamePage( boolean skippable )\n\t{\n\t mSkipProfileNamePage = skippable;\t \n\t doSkipProfileNamePage( skippable );\n\t}", "String getPageFullName();", "List<String> getAttendingDoctorNames();", "public Call<ExpResult<List<DelegationInfo>>> getDelegations(MinterAddress addr...
[ "0.5061893", "0.5033344", "0.50054896", "0.5000412", "0.4992721", "0.49269682", "0.4892135", "0.48844832", "0.48616835", "0.48125544", "0.47692496", "0.4750192", "0.47401044", "0.47125375", "0.46832252", "0.46703687", "0.4608382", "0.45964837", "0.45964602", "0.45933834", "0....
0.5872283
0
Se inicializan las imagenes y el frame del movimiento
public A(){ super(); AtrEA = new GreenfootImage("AtrEA.png"); DerEA1 = new GreenfootImage("DerEA1.png"); DerEA2 = new GreenfootImage("DerEA2.png"); DerEA3 = new GreenfootImage("DerEA3.png"); FrtEA1 = new GreenfootImage("FrtEA1.png"); FrtEA2 = new GreenfootImage("FrtEA2.png"); FrtEA3 = new GreenfootImage("FrtEA3.png"); IzqEA1 = new GreenfootImage("IzqEA1.png"); IzqEA2 = new GreenfootImage("IzqEA2.png"); IzqEA3 = new GreenfootImage("IzqEA3.png"); animationE = 0; start = 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void crearImagenes() {\n try {\n fondoJuego1 = new Imagenes(\"/fondoJuego1.png\",39,-150,-151);\n fondoJuego2 = new Imagenes(\"/fondoJuego2.png\",40,150,149);\n regresar = new Imagenes(\"/regresar.png\",43,90,80);\n highLight = new Imagenes(\"/cursorSubmenu...
[ "0.6735115", "0.665454", "0.6592497", "0.6542806", "0.6507725", "0.6497945", "0.6480201", "0.6454613", "0.6442867", "0.6424046", "0.6410572", "0.6275923", "0.6234174", "0.62243086", "0.62189025", "0.6201396", "0.619672", "0.61702734", "0.6154769", "0.6116175", "0.6114676", ...
0.0
-1
En el metodo act, se revisa el borde,la bandera de restaura, el frame de animacion y si aun deberia estar vivo el enemigo.
public void act() { check = borde(flag); if(check == true ) restaura(); moveRandom(move); if(animationE % 3 == 0){ checkanimation(); } animationE++; alive=checkfire(); if(alive == true){ enemyoff(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void actualiza() {\n //Determina el tiempo que ha transcurrido desde que el Applet inicio su ejecución\n long tiempoTranscurrido = System.currentTimeMillis() - tiempoActual;\n \n //Guarda el tiempo actual\n \t tiempoActual += tiempoTranscurrido;\n \n //A...
[ "0.67298114", "0.6455255", "0.6200533", "0.61625886", "0.6135658", "0.6075414", "0.6058034", "0.6032862", "0.60009617", "0.5950013", "0.59374285", "0.5899711", "0.58688444", "0.58639354", "0.58617854", "0.5857713", "0.58244514", "0.5798448", "0.5776824", "0.57632047", "0.5759...
0.6812469
0
Este metodo decodifica la direccion, para hacer la animacion respectiva
public void checkanimation(){ if(super.movecheck(flag) == 1) animationup(); if( super.movecheck(flag)== 2) animationdown(); if(super.movecheck(flag) == 3) animationleft(); if(super.movecheck(flag)== 4) animationright(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void animateWalking() {\n if (seqIdx > 7) {\n seqIdx = 0;\n }\n if (walking) {\n this.setImage(\"images/bat/bat_\" + seqIdx + FILE_SUFFIX);\n } else {\n this.setImage(\"images/bat/bat_0.png\");\n }\n seqIdx++;\n ...
[ "0.5879184", "0.5836818", "0.5830699", "0.5794908", "0.57307714", "0.56934077", "0.56787485", "0.56160206", "0.54893345", "0.54890037", "0.5483786", "0.5483786", "0.5483168", "0.5442136", "0.5430623", "0.5430623", "0.5430623", "0.5430623", "0.5430623", "0.5427482", "0.5422257...
0.0
-1
Imagen que restaura el enemigo
public void restaura(){ super.restauraE(); setImage("FrtEA1.png"); check = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void rellenaImagen()\n {\n rellenaDatos(\"1\",\"Samsung\", \"cv3\", \"blanco\" , \"50\", 1200,2);\n rellenaDatos(\"2\",\"Samsung\", \"cv5\", \"negro\" , \"30\", 600,5);\n }", "public void actualizarImagen() {\n\t\tentidadGrafica.actualizarImagen(this.valor);\n\t}", "public void cambi...
[ "0.69184875", "0.6889469", "0.6820424", "0.6631234", "0.66000414", "0.64976865", "0.649685", "0.6483342", "0.6466755", "0.64316845", "0.64057046", "0.6363608", "0.63489944", "0.63415563", "0.6341537", "0.6276593", "0.6272935", "0.62704253", "0.62298155", "0.6207974", "0.61683...
0.58894557
43
Remueve al enemigo del mundo
public void enemyoff(){ getWorld().removeObject(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void cumplirAños(){\n this.setEdad(((byte)(this.getEdad()+1)));\n }", "private void esvaziaMensageiro() {\n\t\tMensageiro.arquivo=null;\n\t\tMensageiro.lingua = linguas.indexOf(lingua);\n\t\tMensageiro.linguas=linguas;\n\t\tMensageiro.nomeArquivo=null;\n\t}", "public int EliminarNodo() {\r\n ...
[ "0.6701726", "0.6625262", "0.64574677", "0.63956577", "0.6379448", "0.63449347", "0.61688596", "0.61575586", "0.6154485", "0.6145954", "0.6123649", "0.60997134", "0.60926056", "0.609099", "0.60778916", "0.6040161", "0.6031936", "0.6022026", "0.6008507", "0.5998496", "0.598028...
0.0
-1
/ this method adds a given contact to our list if its not already present
public boolean add(Contact contact) { /* first we determine if the contact is already present */ boolean alreadyPresent = false; for (Contact c : contacts) { if (c.getContactID().equals(contact.getContactID())) { alreadyPresent = true; } } /* if the contact is not present then we add it, and return true */ if (!alreadyPresent) { contacts.add(contact); System.out.println("Contact Added Successfully!"); return true; } else { System.out.println("Contact already present"); return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addContact() {\n\t\tif (contactCounter == contactList.length) {\n\t\t\tSystem.err.println(\"Maximum contacts reached. \"\n\t\t\t\t\t\t\t\t+ \"No more contact can be added\");\n\t\treturn;\n\t\t}\n\t\t\n\t\treadContactInfo();\t\n\t}", "public boolean addNewContact(Contact contact){\n if(findCon...
[ "0.76639724", "0.76398534", "0.7561159", "0.75073755", "0.7428177", "0.7394034", "0.72175145", "0.720647", "0.71162504", "0.69973284", "0.69655114", "0.69214123", "0.6918025", "0.6915426", "0.69088763", "0.6895937", "0.67449176", "0.6731576", "0.67272395", "0.6705164", "0.663...
0.7735046
0
/ this method remove a contact with given contactId if present in our list
public boolean remove(String contactID) { for (Contact c : contacts) { if (c.getContactID().equals(contactID)) { contacts.remove(c); System.out.println("Contact removed Successfully!"); return true; } } System.out.println("Contact not present"); return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic boolean removeContact(String id) {\n\t\treturn false;\n\t}", "public boolean removeContact(Contact c);", "public static void deleteContactObj(long id) {\n System.out.println(id);\n contactList.clear();\n Contact deleteMe = null;\n for(Contact contact : contactObj...
[ "0.7290936", "0.7283283", "0.71086156", "0.7040351", "0.6844179", "0.6604555", "0.6603744", "0.6528472", "0.65054667", "0.65048516", "0.6437541", "0.6413307", "0.63854444", "0.6382676", "0.626898", "0.62303185", "0.6203175", "0.6193855", "0.6187095", "0.6179154", "0.61629903"...
0.74691343
0
/ This is a GetMethod(Http) is used to check the authorization of Name and Password from Database. Method : loginAdmin Type : Admin parameters: the adminName and adminPassword is of String type Returns : the object of Admin Author : Alok Dixit Date : 25/09/2020 Version : 1.0
@Override public Admin loginAdmin(String adminName, String adminPassword){ Admin admin = adminRepository.findAdminByAdminName(adminName); if (!(admin.getAdminPassword().equals(adminPassword) && admin.getAdminName().equals(adminName))) { throw new AdminNotFoundException( "Admin with AdminName [" + adminName + "] and password [" + adminPassword + "] not found"); } else { return admin; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Admin adminLogin(Admin admin) {\n\t\tString sql = \"select * from admin where adminName = ? and adminPwd = ?\";\n\t\tAdmin admin1 = (Admin) JDBCUtil.executeQueryOne(sql, new adminMapping(), admin.getAdminName(),admin.getAdminPwd());\n\t\tif(admin1 != null){\n\t\t\treturn admin1;\n\t\t}\n\t\tret...
[ "0.69022894", "0.68155277", "0.67970866", "0.6724882", "0.6592637", "0.6592154", "0.658111", "0.65603685", "0.6549765", "0.65212363", "0.65193504", "0.6512761", "0.64888436", "0.64888436", "0.64688015", "0.64658225", "0.6464857", "0.64274395", "0.64233667", "0.64084256", "0.6...
0.6720754
4
/ This is a GetMethod(Http) used to get the Admin Details using Admin Id from Database. Method : getAdmin Type : Admin parameters: the adminId is of String type Returns : the object of Admin Author : Alok Dixit Date : 25/09/2020 Version : 1.0
@Override public Admin getAdmin(String adminId) { if(!adminRepository.existsById(adminId)) throw new AdminNotFoundException("User with id "+adminId+" Not Found"); return adminRepository.getOne(adminId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@GetMapping(\"/{id}\")\n public Optional<Admin> getAdmin(@PathVariable int id){\n return adminService.getAdmin(id);\n }", "@Override\r\n\tpublic List<Admin> getAdminDetails() {\n\t\tList<Admin> admin =dao.getAdminDetails();\r\n return admin;\r\n\t}", "@Override\r\n\tpublic List<Admin> getAd...
[ "0.7548399", "0.7146941", "0.7090182", "0.6907241", "0.68164396", "0.6792782", "0.6740624", "0.67188424", "0.6698061", "0.6611399", "0.6540875", "0.64863104", "0.6463316", "0.6463316", "0.645147", "0.6402441", "0.64018345", "0.6394915", "0.63859993", "0.637118", "0.63624775",...
0.702596
3
/ This is a DeleteMethod(Http) used to delete the Admin Details using Admin Id from Database. Method : deleteAdmin Type : Boolean parameters: the adminId is of String type Returns : Boolean Author : Alok Dixit Date : 25/09/2020 Version : 1.0
@Override public boolean deleteAdmin(String adminId) { if (!adminRepository.existsById(adminId)) throw new AdminNotFoundException("Customer with id " + adminId + " Not Found"); adminRepository.deleteById(adminId); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void deleteAdmin(Long idAdmin);", "@DeleteMapping(\"/{id}\")\n @ResponseStatus(HttpStatus.NO_CONTENT)\n public boolean deleteAdmin(@PathVariable int id){\n return adminService.deleteAdmin(id);\n }", "@RequestMapping(path = \"/delAdmin/{id}\")\n public String delAdmin(HttpServletReque...
[ "0.8029755", "0.76879984", "0.73206186", "0.72921795", "0.7261442", "0.72170615", "0.7204106", "0.70806086", "0.69864714", "0.690735", "0.6740851", "0.6699166", "0.65258515", "0.64875686", "0.6480856", "0.6472155", "0.63627946", "0.63523054", "0.6327988", "0.6327988", "0.6241...
0.72379565
5
/ This method is used to add new test
@Override public TestEntity addTest(TestEntity test) { test = testDao.save(test); return test; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n void addItem() {\n\n }", "@Test\n void addItem() {\n }", "@Override\n\tpublic MedicalTest addTest(MedicalTest test) {\n\tString testId=generateTestId();\n\ttest.setTestId(testId);\n\tMedicalTestUtil.checkPresenceOfTest(test);\n\t\n\t\treturn testDao.save(test);\n\n\t}", "@Override\n\tpubl...
[ "0.74247456", "0.74094844", "0.73830676", "0.7192446", "0.7157384", "0.70946616", "0.7069211", "0.70683026", "0.703884", "0.70308465", "0.69203544", "0.6915428", "0.6915428", "0.69006234", "0.68842804", "0.68756455", "0.67170477", "0.6696939", "0.66883636", "0.6684227", "0.66...
0.7420699
1
/ This method is used to update existing test
@Override public TestEntity updateTest(BigInteger testId, TestEntity test) { boolean exists = testDao.existsById(testId); if (exists) { test = testDao.save(test); return test; } throw new TestNotFoundException("Test not found for id="+testId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Test update(TestData testData, Test test);", "@Test\n public void update() {\n }", "@Test\r\n public void testUpdate() {\r\n }", "@Test\n public void testUpdate() {\n\n }", "@Override\n\tpublic void updateTestCase(TestCaseStatus testCaseStatus) {\n\t\t\n\t}", "@Test\n void testUpdate...
[ "0.78166884", "0.77446425", "0.7658585", "0.7646798", "0.73784554", "0.73001045", "0.72839713", "0.72301555", "0.71591556", "0.71322125", "0.69639844", "0.6932387", "0.69083184", "0.6869059", "0.68537945", "0.6795353", "0.6791361", "0.67671406", "0.6766624", "0.67633975", "0....
0.7205868
8
/ This method is used to delete existing test
@Override public TestEntity deleteTest(BigInteger testId) { TestEntity test = findById(testId); testDao.delete(test); return test; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testDelete(){\n\t}", "@Test\n void delete() {\n }", "@Test\n void delete() {\n }", "public void delTestByID(int id) {\n\t\ttestRepository.deleteById(id);\n\t\t\n\t}", "@Override\n\tpublic Test deleteTest(BigInteger testId) throws UserException {\n\t\treturn null;\n\t}", "...
[ "0.7722138", "0.75139564", "0.75139564", "0.74709165", "0.7355166", "0.7325752", "0.7307765", "0.72299", "0.7177847", "0.71768177", "0.6999324", "0.69980913", "0.6943643", "0.6941816", "0.6929045", "0.69156706", "0.6906504", "0.6876256", "0.6873715", "0.6872588", "0.68559223"...
0.75993115
1
/ This method is used to find test byId
@Override public TestEntity findById(BigInteger testId) { Optional<TestEntity>optional=testDao.findById(testId); if(optional.isPresent()) { TestEntity test=optional.get(); return test; } throw new TestNotFoundException("Test not found for id="+testId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic MedicalTest findTestById(String testId) {\n\n\t\tOptional<MedicalTest> optional = testDao.findById(testId);\n\t\tif (optional.isPresent()) {\n\t\t\tMedicalTest test = optional.get();\n\t\t\treturn test;\n\t\t}\n\t\tthrow new MedicalTestNotFoundException(\"Test not found for Test Id= \" + testId...
[ "0.76901925", "0.72106564", "0.71399695", "0.71399695", "0.71209157", "0.7085104", "0.7021825", "0.69553775", "0.6930199", "0.6809799", "0.6809799", "0.67970234", "0.67852306", "0.67564297", "0.67528576", "0.6673482", "0.66646886", "0.66033196", "0.65966195", "0.6590704", "0....
0.7645582
1
/ This method is used to fetch All test
@Override public List<TestEntity> fetchAll() { List<TestEntity> tests = testDao.findAll(); return tests; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<MedicalTest> fetchAllTest() {\n\t\tList<MedicalTest> list = testDao.findAll();\n\t\treturn list;\n\t}", "@Test\n public void selectAll(){\n }", "public List queryTest() {\n\t\tList list = null;\n\t\tthis.init();\n\t\t try {\n\t\t\t list= sqlMap.queryForList(\"getAllTest\");\n\t\t...
[ "0.7595585", "0.7553384", "0.7381555", "0.7377014", "0.72051936", "0.7113154", "0.70983684", "0.7072542", "0.7024504", "0.7014967", "0.699271", "0.69911265", "0.6990586", "0.6985982", "0.69840676", "0.69761395", "0.69667166", "0.6958419", "0.69359326", "0.6912093", "0.688343"...
0.7865265
0
/ access modifiers changed from: packageprivate
public final void a(AMapNaviCross aMapNaviCross) { try { if (this.A && this.U) { this.ah = true; if (this.T) { if (this.f != null) { this.f.setVisibility(0); this.f.setIntersectionBitMap(aMapNaviCross); } c(true); } } } catch (Throwable th) { mj.a(th); rx.c(th, "BaseNaviView", "showCross"); } }
{ "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.7152354", "0.66870445", "0.6557956", "0.64830303", "0.64306164", "0.63853925", "0.6384864", "0.63484466", "0.6330916", "0.62771153", "0.6263446", "0.6251191", "0.623744", "0.6234031", "0.62294084", "0.6198601", "0.6198601", "0.619552", "0.61842144", "0.61809874", "0.615734...
0.0
-1
/ access modifiers changed from: packageprivate
public final void b() { try { if (this.f != null) { if (this.U && this.f.getVisibility() == 0) { g(); this.f.setVisibility(8); this.f.recycleResource(); c(false); } this.ah = false; } } catch (Throwable th) { mj.a(th); rx.c(th, "BaseNaviView", "hideCross"); } }
{ "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.71507126", "0.66852754", "0.6558074", "0.6482426", "0.64311445", "0.638545", "0.63839656", "0.63482744", "0.63302624", "0.6277197", "0.62635255", "0.6250569", "0.62368745", "0.6233547", "0.6228953", "0.6197293", "0.6197293", "0.6194772", "0.6184139", "0.6180766", "0.615739...
0.0
-1
/ access modifiers changed from: packageprivate
public final void c() { try { if (this.V && this.af != null) { this.aj = null; this.af.remove(); this.af.setVisible(false); this.af = null; c(false); } this.ai = false; } catch (Throwable th) { mj.a(th); rx.c(th, "BaseNaviView", "hideModeCross"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "public final void mo51373a...
[ "0.71513015", "0.6686406", "0.6558315", "0.6482832", "0.6430476", "0.63856333", "0.63838816", "0.63487375", "0.6330605", "0.62764114", "0.626384", "0.62509346", "0.6237325", "0.62340367", "0.6228612", "0.6197973", "0.6197973", "0.61952", "0.6183631", "0.61797863", "0.6157397"...
0.0
-1
/ access modifiers changed from: packageprivate
public final void a(boolean z2, boolean z3) { try { if (this.E != null) { int i2 = z2 ? 1 : this.L ? 2 : 3; if (i2 != this.F) { this.F = i2; if (this.c != null) { Message obtain = Message.obtain(); obtain.what = 11; obtain.arg1 = this.F; this.c.sendMessage(obtain); } } if (this.T != z2 && !this.z) { for (AMapNaviViewListener aMapNaviViewListener : this.E) { try { aMapNaviViewListener.onLockMap(z2); } catch (Throwable th) { th.printStackTrace(); } } } } if (!this.z) { this.T = z2; this.c.removeMessages(0); if (z2) { b(false); } else { g(); if (z3) { this.c.sendEmptyMessageDelayed(0, this.S); } } this.R.c(z2); if (this.s != null) { this.s.setVisibility(!z2 ? 0 : 8); } if (this.t != null && this.a.isRouteListButtonShow()) { this.t.setVisibility(!z2 ? 0 : 8); } d(this.a.isTrafficBarEnabled()); if (z2) { if (this.ah && this.f != null) { this.f.setVisibility(0); this.ag = true; } if (this.ai && this.af != null) { this.af.setVisible(true); this.ag = true; return; } return; } if (this.f != null && this.f.getVisibility() == 0) { this.f.setVisibility(8); } if (this.af != null) { this.af.setVisible(false); } this.ag = false; } } catch (Throwable th2) { mj.a(th2); rx.c(th2, "BaseNaviView", "setCarLock(boolean isLock, boolean autoRestore)"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "public final void mo51373a...
[ "0.71513015", "0.6686406", "0.6558315", "0.6482832", "0.6430476", "0.63856333", "0.63838816", "0.63487375", "0.6330605", "0.62764114", "0.626384", "0.62509346", "0.6237325", "0.62340367", "0.6228612", "0.6197973", "0.6197973", "0.61952", "0.6183631", "0.61797863", "0.6157397"...
0.0
-1
/ access modifiers changed from: packageprivate
public final void d() { try { if (this.o != null) { this.o.setVisibility(this.a.isTrafficLayerEnabled() ? 0 : 8); } if (this.s != null) { this.s.setVisibility(8); } if (this.t != null) { this.t.setVisibility(8); } a(this.w); } catch (Throwable th) { mj.a(th); rx.c(th, "BaseNaviView", "initLayout"); } }
{ "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.7152354", "0.66870445", "0.6557956", "0.64830303", "0.64306164", "0.63853925", "0.6384864", "0.63484466", "0.6330916", "0.62771153", "0.6263446", "0.6251191", "0.623744", "0.6234031", "0.62294084", "0.6198601", "0.6198601", "0.619552", "0.61842144", "0.61809874", "0.615734...
0.0
-1
/ access modifiers changed from: private / access modifiers changed from: public
private void b(boolean z2) { try { if (this.L != z2) { int i2 = z2 ? 2 : this.T ? 1 : 3; if (this.F != i2) { this.F = i2; if (this.c != null) { Message obtain = Message.obtain(); obtain.what = 11; obtain.arg1 = this.F; this.c.sendMessage(obtain); } } } updateRouteOverViewStatus(z2); } catch (Throwable th) { rx.c(th, "BaseNaviView", "setIsRouteOverviewNow"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "@Override\n public void perish() {\n \n }", "private PropertyAccess() {\n\t\tsuper();\n\t}", "@Override\n public boolean isPrivate() {\n return true;\n }", "private Rep...
[ "0.7241106", "0.6884593", "0.6832823", "0.6526034", "0.6477351", "0.6446282", "0.638184", "0.6364509", "0.63547784", "0.6348681", "0.6342245", "0.6326031", "0.6301997", "0.6288513", "0.62834656", "0.6269718", "0.62565446", "0.62383384", "0.62383384", "0.6237719", "0.62261933"...
0.0
-1
Setus up the Bukkit task.
private void setupBukkitManaRegenerationTask(){ if(time <= 0) return; if(bukkitTaskID > 0){ Bukkit.getScheduler().cancelTask(bukkitTaskID); } if(bukkitTaskID < 0 || !Bukkit.getScheduler().isQueued(bukkitTaskID)){ int tickTime = time * 20; bukkitTaskID = Bukkit.getScheduler().scheduleSyncRepeatingTask((JavaPlugin)plugin, new Runnable() { @Override public void run() { for(AbstractTraitHolder holder : ManaRegenerationTrait.this.getTraitHolders()){ for(RaCPlayer player : holder.getHolderManager().getAllPlayersOfHolder(holder)){ if(player != null && player.isOnline()){ double modValue = modifyToPlayer(player, value, "value"); Bukkit.getPluginManager().callEvent(new ManaRegenerationEvent(player.getPlayer(), modValue)); } } } } }, tickTime, tickTime); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void setupTask(Task task) {\n }", "public CompassTask(HG plugin)\r\n/* 23: */ {\r\n/* 24:20 */ this.plugin = plugin;\r\n/* 25:21 */ Bukkit.getScheduler().scheduleSyncRepeatingTask(HG.plugin, this, 25L, 25L);\r\n/* 26: */ }", "public void setUp() {\n instance = new Task();\n ...
[ "0.63280344", "0.61576927", "0.60836476", "0.5954433", "0.5930212", "0.5912727", "0.5863277", "0.58340704", "0.5768867", "0.5699654", "0.56738186", "0.56488305", "0.56423223", "0.5617882", "0.5567271", "0.55178964", "0.54951584", "0.5492928", "0.5482072", "0.5464663", "0.5457...
0.6117084
2
TODO Autogenerated method stub USER TABLE
@Override public void onCreate(SQLiteDatabase db) { String CREATE_USER_TABLE = "CREATE TABLE " + TABLE_USER + "(" + COLUMN_USER_NAME + " TEXT PRIMARY KEY,"+ COLUMN_WORKING_HOURS +" INT ," + COLUMN_WEEKEND + " INT"+ ")"; //COMPANY TABLE String CREATE_COMPANY_TABLE = "CREATE TABLE " + TABLE_COMPANY + "(" + COLUMN_COMPANY_NAME + " TEXT "+")"; //LOCATION TABLE String CREATE_LOCATION_TABLE = "CREATE TABLE " + TABLE_LOCATION + "(" + COLUMN_LOCATION_NAME + " TEXT"+")"; //LOCATION TABLE String CREATE_CLIENT_TABLE = "CREATE TABLE " + TABLE_CLIENT + "(" + COLUMN_CLIENT_NAME + " TEXT"+")"; String CREATE_TIMESHEET_TABLE = "CREATE TABLE " + TABLE_TIMESHEET + "(" + COLUMN_DATE + " TEXT PRIMARY KEY," + COLUMN_DAY + " TEXT," + COLUMN_TIME_IN + " TEXT," + COLUMN_TIME_OUT + " TEXT," + COLUMN_TOTAL_HOURS + " TEXT," + COLUMN_CLIENT + " TEXT," + COLUMN_LOCATION + " TEXT," + COLUMN_WORK_DONE + " TEXT," + COLUMN_REMARKS + " TEXT" + ")"; db.execSQL(CREATE_USER_TABLE); db.execSQL(CREATE_COMPANY_TABLE); db.execSQL(CREATE_LOCATION_TABLE); db.execSQL(CREATE_CLIENT_TABLE); db.execSQL(CREATE_TIMESHEET_TABLE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String getTableName() {\n\t\treturn \"user\";\n\t}", "public void createTableUser(){\r\n Statement stmt;\r\n try {\r\n stmt = this.getConn().createStatement();\r\n ///////////////*********remember to retrieve*************/////////////\r\n //stmt....
[ "0.76641923", "0.71568066", "0.70681393", "0.6777116", "0.6729644", "0.66697085", "0.65963817", "0.6565623", "0.65625", "0.6541203", "0.652069", "0.65094084", "0.65037787", "0.6497684", "0.6491436", "0.6490347", "0.6477197", "0.6463965", "0.645146", "0.64448065", "0.64429826"...
0.0
-1
TODO Autogenerated method stub
@Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { }
{ "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.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
StartUSER SPECIFIC DATA TRANSACTIONS//
public boolean addUserData (UserData userData) //ADD { ContentValues contentValues = new ContentValues(); contentValues.put(COLUMN_USER_NAME, userData.getUserName()); contentValues.put(COLUMN_WORKING_HOURS, userData.getWorkingHours()); contentValues.put(COLUMN_WEEKEND, userData.getWeekendType()); long result = db.insert(TABLE_USER, null, contentValues); db.close(); //Notifying if transaction was successful if(result == -1)return false; else return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void begin()\n {\n checkTransactionJoin();\n if (joinStatus != JoinStatus.NO_TXN)\n {\n throw new NucleusTransactionException(\"JTA Transaction is already active\");\n }\n\n UserTransaction utx;\n try\n {\n utx = getUserTransaction();...
[ "0.6408418", "0.62868375", "0.6212167", "0.6189805", "0.61467034", "0.6140858", "0.6135918", "0.60565275", "0.60413796", "0.5959163", "0.5891565", "0.58825976", "0.5842776", "0.58367676", "0.58365065", "0.5834856", "0.5767572", "0.57378703", "0.5714663", "0.5707896", "0.57058...
0.0
-1
EndUSER SPECIFIC DATA TRANSACTIONS// StartCOMPANY DATA TRANSACTIONS//
public boolean addCompanyData (CompanyData companyData) //ADD { ContentValues contentValues = new ContentValues(); contentValues.put(COLUMN_COMPANY_NAME, companyData.getCompanyName()); long result = db.insert(TABLE_COMPANY, null, contentValues); db.close(); //Notifying if transaction was successful if(result == -1)return false; else return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCompany(String company) {\r\n\t\tthis.company = company;\r\n\t}", "public void setCompany(String company) {\n\t\tthis.company = company;\n\t}", "public void setCompany(String company) {\n this.company = company;\n }", "public void setCompany(String company)\r\n {\r\n m_company...
[ "0.57010114", "0.56626683", "0.5592802", "0.54137176", "0.52511024", "0.52123475", "0.5126337", "0.5119245", "0.5058204", "0.50354666", "0.5015424", "0.5005362", "0.49808365", "0.49349993", "0.4904746", "0.4861968", "0.48531446", "0.48474488", "0.48040006", "0.48032588", "0.4...
0.0
-1
EndCOMPANY DATA TRANSACTIONS// StartLOCATION DATA TRANSACTIONS//
public boolean addLocationData (LocationData locationData) //ADD { ContentValues contentValues = new ContentValues(); contentValues.put(COLUMN_LOCATION_NAME, locationData.getLocationName()); long result = db.insert(TABLE_LOCATION, null, contentValues); db.close(); //Notifying if transaction was successful if(result == -1)return false; else return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void endElement(String uri, String localName, String qName)\n\t\t\tthrows SAXException {\n\t\t\n\t\tif(qName.equals(\"location\")){\n\t\t\t\n\t\t\t//locationEntity.setExits(exits);\n\t\t\tlocationEntity.setObjects(tempListForObject);\n\t\t\tlocationEntity.setObservers(characters);\n\t\t\tlocati...
[ "0.5483611", "0.5112229", "0.5064605", "0.4954023", "0.49097002", "0.4865164", "0.4865164", "0.4860976", "0.48588654", "0.48363438", "0.48196456", "0.47750214", "0.47690114", "0.47598046", "0.4732917", "0.4732917", "0.4732917", "0.4732917", "0.47223917", "0.47055393", "0.4704...
0.0
-1
EndLOCATION DATA TRANSACTIONS// StartCLIENT DATA TRANSACTIONS//
public boolean addClientData (ClientData clientData) //ADD { ContentValues contentValues = new ContentValues(); contentValues.put(COLUMN_CLIENT_NAME, clientData.getClientName()); long result = db.insert(TABLE_CLIENT, null, contentValues); db.close(); //Notifying if transaction was successful if(result == -1)return false; else return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void changeClientData(Client client) throws Exception {\n DataBaseBroker dbb = new DataBaseBroker();\n dbb.loadDriver();\n dbb.establishConnection();\n dbb.overwriteClient(client);\n dbb.commit();\n dbb.closeConnection();\n }", "@Override\n protected byte[] ...
[ "0.57584685", "0.5709017", "0.55585057", "0.55585057", "0.55585057", "0.55429274", "0.55290395", "0.55290395", "0.55290395", "0.55290395", "0.55290395", "0.55290395", "0.55290395", "0.5516914", "0.5483599", "0.5483599", "0.5483599", "0.5483599", "0.53358287", "0.5201532", "0....
0.52720475
19
EndCLIENT DATA TRANSACTIONS// StartTIMESHEET DATA TRANSACTIONS//
public void addData(TimeSheetData dataList) { SQLiteDatabase db = this.getWritableDatabase(); Log.v("databse calll", dataList + ""); ContentValues values = new ContentValues(); // values.put(COLUMN_SERIAL_NUMBER, dataList.getmSerialNumber()); values.put(COLUMN_DATE, dataList.getmDate()); values.put(COLUMN_DAY, dataList.getmDay()); values.put(COLUMN_TIME_IN, dataList.getmTimeIn()); // Inserting Row db.insert(TABLE_TIMESHEET, null, values); db.close(); // Closing database connection }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setBeginTime(String time){beginTime = time;}", "void setBeginPosition(net.opengis.gml.x32.TimePositionType beginPosition);", "public void setStart_time(long start_time) {\n this.start_time = start_time;\n }", "public void addTimetable(String date, String slot, String room, String teache...
[ "0.46765855", "0.46688968", "0.45362025", "0.44382468", "0.44227633", "0.4354722", "0.43443406", "0.43443406", "0.43204346", "0.43067008", "0.4306209", "0.4306209", "0.4306209", "0.43056175", "0.42801106", "0.42794627", "0.42794627", "0.42679748", "0.4253757", "0.42512873", "...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { Scanner scan = new Scanner (System.in); //*variables int name; //** Processing System.out.println("How many names are you inputting?"); name = Integer.parseInt(scan.nextLine()); String [] names=new String [name]; System.out.println("Enter the " + name + " names one by one"); for (int i = 0; i<name; i++) names[i] = scan.nextLine(); for (int i = name - 1; i >=0; i--){ System.out.println(names[i]); } }
{ "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
Two parameter constructor. This class needs to Data object and PrintData object to make operations.
public ManageBranchEmployee(Data data,PrintData printData){ this.data = data; this.printData = printData; trackingNumbers = new ArrayList<>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Data() {}", "public Data() {\n }", "public Data() {\n }", "public Data() {\n \n }", "public Model(DataHandler data){\n //assign the data parameter to the instance\n //level variable data. The scope of the parameter\n //is within the method and that is where the JVM \n...
[ "0.676062", "0.6730945", "0.6730945", "0.6692438", "0.6585638", "0.65844566", "0.6543099", "0.64090073", "0.63872254", "0.6361463", "0.6243245", "0.618895", "0.61715144", "0.61714363", "0.6151393", "0.6094016", "0.60909796", "0.6087181", "0.6074453", "0.60703456", "0.6033077"...
0.0
-1
This method manages the Branch Employee First it gets a choice from user and it makes that operation
public void manage(int employeeID){ ID = employeeID; int choice; do { choice = GetChoiceFromUser.getSubChoice(5,new MenuForBranchEmployee(data.getBranchEmployee(employeeID).getFirstName())); if (choice==1) { enterShipment(); } else if (choice == 2){ removeShipment(); } else if(choice == 3){ addCustomer(); } else if(choice == 4){ removeCustomer(); } else if(choice == 5){ updateStatusOfShipment(data.getBranchEmployee(ID).getFirstName(),data.getBranchEmployee(ID).getBranchID()); } }while (choice!=0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addEmployee(){\n\t\tSystem.out.println(\"Of what company is the employee?\");\n\t\tSystem.out.println(theHolding.companies());\n\t\tint selected = reader.nextInt();\n\t\treader.nextLine();\n\t\tif(selected > theHolding.getSubordinates().size()-1){\n\t\t\tSystem.out.println(\"Please select a correct opt...
[ "0.6472937", "0.6241158", "0.6220441", "0.6179615", "0.60008556", "0.5971778", "0.590018", "0.5732735", "0.570891", "0.569796", "0.56481797", "0.56345654", "0.56184024", "0.56156087", "0.5598403", "0.55905235", "0.5579544", "0.5573222", "0.55728954", "0.55627304", "0.55316305...
0.6926588
0
This method adds a new Shipment to the System. It uses data class to add new Shipment.
public void enterShipment(){ Shipment shipment = new Shipment(); shipment.setShipmentID(data.numberOfShipment()); shipment.setReceiver(new Customer(data.numberOfCustomer(), GetChoiceFromUser.getStringFromUser("Enter Receiver FirstName: "), GetChoiceFromUser.getStringFromUser("Enter Receiver Last Name: "),data.getBranchEmployee(ID).getBranchID())); shipment.setSender(new Customer(data.numberOfCustomer(), GetChoiceFromUser.getStringFromUser("Enter Sender First Name: "), GetChoiceFromUser.getStringFromUser("Enter Sender Last Name: "),data.getBranchEmployee(ID).getBranchID())); shipment.setCurrentStatus(getStatus()); shipment.setTrackingNumber(getUniqueTrackingNumber()); shipment.setBranchID(data.getBranchEmployee(ID).getBranchID()); data.getBranch(shipment.getBranchID()).addShipment(shipment); data.addShipment(shipment,shipment.getReceiver()); System.out.printf("Your Shipment has added with tracking Number %d !\n",shipment.getTrackingNumber()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Shipment createShipment();", "void saveShipment(Shipment shipment);", "public void insertShipment(String custType, int xCoord, int yCoord, int capacity,int shipmentIndex)\r\n\t{\r\n\t\tVRPBShipment thisShip = new VRPBShipment(custType, xCoord, yCoord, capacity,shipmentIndex); //creates shipment\r\n\t\t//System...
[ "0.6750663", "0.66599923", "0.63919216", "0.62001014", "0.6100613", "0.60893327", "0.60859704", "0.5972811", "0.5968861", "0.5894111", "0.58304584", "0.5826867", "0.58227533", "0.577377", "0.57031035", "0.56881875", "0.5671774", "0.56502444", "0.5627299", "0.5568342", "0.5527...
0.7283163
0
This method removes a Shipment from the System. It uses data class to remove Shipment.
public void removeShipment(){ String message = "Choose one of the shipment to remove"; if (printData.checkAndPrintShipment(message,data.getBranchEmployee(ID).getBranchID())){ subChoice = GetChoiceFromUser.getSubChoice(data.numberOfShipment()); if (subChoice!=0){ data.getBranch(data.getShipment(subChoice-1).getBranchID()).removeShipment(data.getShipment(subChoice-1)); data.removeShipment(data.getShipment(subChoice-1),data.getShipment(subChoice-1).getReceiver()); System.out.println("Your Shipment has removed Successfully!"); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ReceivingSpace planToRemoveGoodsListWithShippingSpace(ReceivingSpace receivingSpace, String shippingSpaceId, Map<String,Object> options)throws Exception;", "public void deleteSpaceship(Spaceship spaceship) throws SQLException, ExceptionsDatabase {\r\n connection();\r\n String updateRunway = ...
[ "0.57523704", "0.57322043", "0.5725555", "0.5674175", "0.56398463", "0.55312115", "0.54914486", "0.5411409", "0.54006326", "0.53943086", "0.5352044", "0.5305933", "0.52453583", "0.52216136", "0.52176225", "0.5198723", "0.5188002", "0.51800823", "0.5161361", "0.5152594", "0.51...
0.7470369
0
This method updates the status of Shipment. It uses data class to updates the status.
public void updateStatusOfShipment(String name,int id){ int k; for ( k = 0; k < 45; k++) System.out.print("-"); System.out.print("\n"+" "); System.out.println("Welcome Employee " + name + " to the Status Updating Panel."); for ( k = 0; k < 45; k++) System.out.print("-"); System.out.print("\n"); String message = "Choose one of the shipment to update Status"; if (printData.checkAndPrintShipment(message,id)){ subChoice = GetChoiceFromUser.getSubChoice(data.numberOfShipment()); if (subChoice!=0){ data.getShipment(subChoice-1).setCurrentStatus(getStatus()); System.out.println("Shipment Status has changed Successfully!"); } } else{ System.out.println("To change status please add a shipment."); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic int updateShipInfoById(int ship_time, int ship_status, int so_id) {\n\t\treturn orderInfoDao.updateShipInfoById(ship_time, ship_status, so_id);\r\n\t}", "public void setShipStatus(Boolean shipStatus) {\n this.shipStatus = shipStatus;\n }", "public void setStatus(OrderStatus upda...
[ "0.6548316", "0.65453935", "0.63656664", "0.6276706", "0.61616147", "0.6095673", "0.5995455", "0.5973753", "0.5832098", "0.58275557", "0.5813004", "0.58037513", "0.5796833", "0.5788366", "0.5762056", "0.57027173", "0.5692547", "0.5663408", "0.55946296", "0.55580616", "0.55089...
0.67330396
0
This method adds a new Customer to the System. It uses data class to add new Customer.
public void addCustomer(){ Customer customer = new Customer(); customer.setId(data.numberOfCustomer()); customer.setFirstName(GetChoiceFromUser.getStringFromUser("Enter First Name: ")); customer.setLastName(GetChoiceFromUser.getStringFromUser("Enter Last Name: ")); data.addCustomer(customer,data.getBranch(data.getBranchEmployee(ID).getBranchID())); System.out.println("Customer has added Successfully!"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addCustomer() {\r\n\t\tdo {\r\n\t\t\tString name = getToken(\"Enter the customer's name: \");\r\n\t\t\tString phoneNumber = getToken(\"Enter the phone number: \");\r\n\t\t\tCustomer customer = store.addCustomer(name, phoneNumber);\r\n\t\t\tif (customer == null) {\r\n\t\t\t\tSystem.out.println(\"Could n...
[ "0.8048293", "0.7826554", "0.76512337", "0.7632747", "0.75968766", "0.7514099", "0.74985725", "0.74736106", "0.74726194", "0.74323136", "0.74165744", "0.7386761", "0.73710483", "0.736072", "0.73230976", "0.72543514", "0.7244313", "0.7216874", "0.7192936", "0.71867514", "0.716...
0.8425702
0
This method removes a Customer from the System. It uses data class to remove Customer.
public void removeCustomer(){ String message = "Choose one of the Customer to remove it"; if (printData.checkAndPrintCustomer(message)){ subChoice = GetChoiceFromUser.getSubChoice(data.numberOfCustomer()); if (subChoice!=0){ data.removeCustomer(data.getCustomer(subChoice-1),data.getBranch(data.getBranchEmployee(ID).getBranchID())); System.out.println("Customer has removed Successfully!"); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void removeCustomer() {\n\t\t\r\n\t}", "void removeCustomer(Customer customer);", "BrainTreeCustomerResult removeCustomer(BrainTreeCustomerRequest request);", "@Override\n\tpublic void removeCustomer(Customer customer) throws Exception {\n\t\tConnection con = pool.getConnection();\n\t\t...
[ "0.80665255", "0.7975913", "0.7946325", "0.7829185", "0.7336204", "0.7209788", "0.7201746", "0.7184889", "0.70751864", "0.7058915", "0.7058674", "0.7029129", "0.6990208", "0.6974343", "0.69660836", "0.6939038", "0.6922966", "0.6865151", "0.68455213", "0.68455213", "0.6836039"...
0.779623
4
This method creates a Random unique number between 100000 and 999999.
public int getUniqueTrackingNumber(){ boolean is_used = false; int number; do { number = (int)(Math.random() * 999999 + 100000); for (int i = 0; i < trackingNumbers.size() ; i++) { if (trackingNumbers.get(i) == number){ is_used=true; } } }while (is_used); trackingNumbers.add(number); return number; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String generateRandomInteger() {\n SecureRandom random = new SecureRandom();\n int aStart = 1;\n long aEnd = 999999999;\n long range = aEnd - (long) aStart + 1;\n long fraction = (long) (range * random.nextDouble());\n long randomNumber = fraction + (long) aS...
[ "0.7450962", "0.7420014", "0.7139777", "0.7105852", "0.6974985", "0.6958924", "0.6944076", "0.6877995", "0.68757933", "0.6856146", "0.6831336", "0.6781355", "0.674746", "0.667093", "0.6661545", "0.663667", "0.66273427", "0.65845215", "0.658073", "0.65805423", "0.6580203", "...
0.6242256
56
This method is to determine status of the shipment.
public String getStatus(){ int chosen; System.out.println("Choose a Shipment Status ?"); System.out.println("[1] Pending "); System.out.println("[2] Picked Up"); System.out.println("[3] In transit to destination."); System.out.println("[4] Delivered."); System.out.println("[5] Out of Delivery."); System.out.print( "Answer: "); chosen = GetChoiceFromUser.getSubChoice(5); switch (chosen){ case 1 : return "Pending"; case 2: return "Picked Up"; case 3 : return "In transit to destination."; case 4: return "Delivered"; case 5: return "Out of Delivery."; default: return "No info"; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Boolean getShipStatus() {\n return shipStatus;\n }", "ShipmentStatus createShipmentStatus();", "public void setShipStatus(Boolean shipStatus) {\n this.shipStatus = shipStatus;\n }", "io.opencannabis.schema.commerce.CommercialOrder.OrderStatus getStatus();", "io.opencannabis.schem...
[ "0.7836632", "0.74947613", "0.7109335", "0.6283105", "0.6283105", "0.62743956", "0.6265531", "0.62196106", "0.6207863", "0.6192311", "0.6099325", "0.60951126", "0.60755956", "0.60755956", "0.6051705", "0.6051705", "0.6051705", "0.6027781", "0.60034966", "0.5965253", "0.596525...
0.5978115
19
An interface which describes a single component. It contains information about component type, its available properties and more. A component descriptor provides information about the real implementation of the component, whilst a component definition describes its configuration.
public interface IComponentDescriptor { /** * Returns the component type. * * @return class of the described component */ Class<?> getComponentType(); // /** // * Returns all properties descriptions (meta-properties) of this component. // * // * @return list of meta properties // */ // Collection<MetaProperty> getProperties(); // /** // * Returns required properties descriptions (meta-properties) of this component. These properties are required to // * proper component initialization. // * // * @return list of required meta properties // */ // Collection<MetaProperty> getRequriedProperties(); // /** // * Returns optional properties descriptions (meta-properties) of this component. These properties are not required // * for proper component initialization. // * // * @return list of optional meta properties // */ // Collection<MetaProperty> getOptionalProperties(); /** * Returns list containing sequences of parameters types of available constructors. * * @return list of available constructor parameters */ List<List<Class<?>>> getConstructorParametersTypes(); /** * Checks if described component contains a property with a given name. * * @param name * name of a property * @return true if this described component contains a needed property */ boolean containsProperty(String name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ComponentDescriptor() {\r\n\t\t// initialize empty collections\r\n\t\tconstructorParametersTypes = new LinkedList<List<Class<?>>>();\r\n//\t\trequiredProperties = new HashMap<String, MetaProperty>();\r\n//\t\toptionalProperties = new HashMap<String, MetaProperty>();\r\n\t}", "@Override\n public Describ...
[ "0.6812544", "0.6252245", "0.60931414", "0.60791904", "0.60635316", "0.60496914", "0.59579444", "0.5810795", "0.5799973", "0.5770415", "0.5751907", "0.5701249", "0.5694328", "0.5681513", "0.56789124", "0.56437117", "0.5643639", "0.56216395", "0.56040865", "0.55914", "0.555374...
0.8056945
0
Returns the component type.
Class<?> getComponentType();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String componentTypeName();", "public ComponentType getComponentType()\n {\n return this.componentType;\n }", "public Class<?> getComponentType();", "public String getComponentTagType()\n {\n return componentTagType;\n }", "public ComponentTypeDescription getComponentDescription()...
[ "0.8193752", "0.78920263", "0.76624095", "0.7539023", "0.74572814", "0.73268455", "0.7058376", "0.7021243", "0.702058", "0.69734", "0.6942619", "0.69126433", "0.69093144", "0.6897714", "0.68954647", "0.68954647", "0.68954647", "0.68886614", "0.68886614", "0.6868061", "0.68555...
0.73645407
5
/ Returns all properties descriptions (metaproperties) of this component.
List<List<Class<?>>> getConstructorParametersTypes();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public PropertyDescriptor[] getPropertyDescriptors () {\n return desc;\n }", "PropertyDesc[] getPropertyDesc()\r\n\t{\r\n\t\tPropertyDesc[] p = new PropertyDesc[properties.size()];\r\n\t\tint i = 0;\r\n\t\tfor (Variable v : properties)\r\n\t\t{\r\n\t\t\tp[i++] = new PropertyDesc(v.name, v.varType, v.cl...
[ "0.74304706", "0.7413891", "0.73414075", "0.7290083", "0.72764575", "0.7234794", "0.72070205", "0.7168926", "0.7138581", "0.711978", "0.7064575", "0.70402426", "0.7036547", "0.702307", "0.7015033", "0.70040995", "0.6990774", "0.6989723", "0.69835114", "0.69396436", "0.6921711...
0.0
-1
Checks if described component contains a property with a given name.
boolean containsProperty(String name);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasPropertyLike(String name);", "public boolean hasProperty(String name) {\n for(Pp property : properties){\n if(property.getId().equals(name))\n return true;\n }\n return false;\n }", "public boolean hasProperty(String name) {\n return properties.ha...
[ "0.8133681", "0.81180406", "0.8038427", "0.80217177", "0.79049987", "0.7745588", "0.7721605", "0.7404203", "0.7306223", "0.7305819", "0.72496444", "0.72394806", "0.72099614", "0.72099614", "0.72099614", "0.71844393", "0.71023643", "0.7059665", "0.7029529", "0.7028409", "0.702...
0.85901207
0
add object to stack
public void push(E object) {stackList.insertAtFront(object);}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void push(Object obj) {\n if (top < stack.length - 1) {\n stack[++top] = obj;\n }\n else\n {\n increaseStackSize(1);\n stack[++top] = obj; \n }\n }", "private final void push(Object ob) {\r\n\t\teval_stack.add(ob);\r\n\t}", "public v...
[ "0.7860529", "0.7623007", "0.7547661", "0.74907255", "0.740841", "0.73550576", "0.726548", "0.7222957", "0.71987987", "0.71379435", "0.71163964", "0.6918915", "0.6882911", "0.687632", "0.6869973", "0.68636835", "0.67997885", "0.67644453", "0.668135", "0.66712856", "0.664235",...
0.8100505
0
remove object from stack
public E pop() throws NoSuchElementException{ return stackList.removeFromFront(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Object remove();", "public void deleteStack(){\n // check if there is any stack present or not\n if(this.arr==null){\n System.out.println(\"No stack present, first create a stack\");\n return;\n }\n // if stack is present\n topOfStack=-1;\n arr=null...
[ "0.72853553", "0.7174294", "0.71641797", "0.707622", "0.70049614", "0.70049614", "0.6908359", "0.68988407", "0.689138", "0.6852298", "0.6840705", "0.6810217", "0.6810217", "0.6810217", "0.6810217", "0.6810217", "0.6808429", "0.67883146", "0.6783508", "0.6700224", "0.66952497"...
0.0
-1
determine if stack is empty
public boolean isEmpty() {return stackList.isEmpty();}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean stackEmpty() {\r\n\t\treturn (top == -1) ? true : false;\r\n\t }", "public boolean isEmpty() {\n \treturn stack.size() == 0;\n }", "public boolean isEmpty(){\n return this.stack.isEmpty();\n\n }", "@Override\r\n\tpublic boolean isEmpty() {\r\n\t\treturn stack.isEmpty();\r\n\t}...
[ "0.8802639", "0.87166715", "0.8657691", "0.86563385", "0.8606655", "0.85825735", "0.85529655", "0.84676194", "0.84614295", "0.8453391", "0.84482294", "0.84256136", "0.8420987", "0.8420987", "0.8393726", "0.83681774", "0.8355475", "0.8345752", "0.8342336", "0.8314724", "0.8275...
0.86350924
4
Constructor for a new instance of the game map processor. This processor will be bound to one map.
@SuppressWarnings("nls") public GameMapProcessor(@NonNull final GameMap parentMap) { super("Map Processor"); parent = parentMap; unchecked = new TLongArrayList(); running = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Map() {\n\n\t\t}", "public MapGenerator(GameMap map) {\n\n gameMap = map;\n setGuiHashMap();\n firstCountryFlag=true;\n validator = new MapValidator(gameMap);\n }", "public void initializeMap() {\n\t\tgameMap = new GameMap(GameMap.MAP_HEIGHT, GameMap.MAP_WIDTH);\n\t\tgameM...
[ "0.69704187", "0.69173604", "0.68567556", "0.663488", "0.6634614", "0.66280276", "0.6625752", "0.6618921", "0.65106606", "0.6488688", "0.6474593", "0.6428719", "0.6283282", "0.62820965", "0.6259853", "0.62524146", "0.6244565", "0.6239921", "0.6234099", "0.62292594", "0.622263...
0.7339413
0
This method starts or resumes the map processor.
@Override public synchronized void start() { pauseLoop = false; if (running) { synchronized (unchecked) { unchecked.notify(); } } else { running = true; super.start(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\t\tif(map!=null)\n\t\t{\n\t\t\tsetup();\n\t\t}\n\t}", "@Override\n public void onResume() {\n super.onResume();\n mMap.onResume();\n }", "@Override\n public void onResume() {\n super.onResume();\n mapView.onResume();\n }...
[ "0.7299477", "0.6882886", "0.6416284", "0.6416284", "0.63852406", "0.6384617", "0.6370282", "0.63337684", "0.6310307", "0.62679005", "0.6246823", "0.61768705", "0.6169235", "0.6069559", "0.6054199", "0.6021858", "0.59706616", "0.5944657", "0.5937096", "0.5936147", "0.59230214...
0.0
-1
Procedure function that is used to collect data from the map of the game. Do not call this function from any other class.
@Override public boolean execute(final long key, @NonNull final MapTile tile) { synchronized (unchecked) { unchecked.add(key); } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void loadMap(){\n level= dataBase.getData(\"MAP\",\"PLAYER\");\n }", "private void getData(){\n mapFStreets = new ArrayList<>();\n mapFAreas = new ArrayList<>();\n mapIcons = new ArrayList<>();\n coastLines = new ArrayList<>();\n //Get a rec...
[ "0.6636699", "0.6455242", "0.63685656", "0.6332243", "0.63316965", "0.6329172", "0.63163227", "0.6133385", "0.6039197", "0.60190994", "0.6004875", "0.5990543", "0.59809875", "0.5967218", "0.5965942", "0.5953283", "0.5933062", "0.59034055", "0.5888229", "0.58830154", "0.585532...
0.0
-1
The main method of the game map processor.
@SuppressWarnings("nls") @Override public void run() { while (running) { while (pauseLoop) { try { synchronized (unchecked) { unchecked.wait(); } } catch (final InterruptedException e) { LOGGER.debug("Unexpected wakeup during pause.", e); } } performInsideCheck(); if (hasAndProcessUnchecked()) { continue; } try { synchronized (unchecked) { unchecked.wait(); } } catch (final InterruptedException e) { LOGGER.debug("Unexpected wake up of the map processor", e); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) { \n \tprintAvailableMaps();\n \t\n\t\tGame game = new Game();\n\t\tScanner input = game.openFile();\n \tgame.readMapFile(input);\n \tgame.prepareTable();\n \tTapeHead player = game.preparePlayer();\n \t//game.print();\n \twhile(true) {\n \t\tgame.Game...
[ "0.7781919", "0.7172654", "0.7132278", "0.7032179", "0.6881986", "0.67308426", "0.6674647", "0.6644992", "0.6639561", "0.6631444", "0.6631444", "0.66180354", "0.6541948", "0.65335304", "0.65142363", "0.65018356", "0.6500582", "0.6499457", "0.64713913", "0.64709437", "0.645735...
0.0
-1
Perform a check if the player character is inside a building. In case the inside status differs for any level from the state before the check, all tiles are added to the list of tiles that need to be checked once more.
private void performInsideCheck() { if (checkInsideDone) { return; } checkInsideDone = true; final Location playerLoc = World.getPlayer().getLocation(); final int currX = playerLoc.getScX(); final int currY = playerLoc.getScY(); int currZ = playerLoc.getScZ(); boolean nowOutside = false; boolean isInside = false; for (int i = 0; i < 2; ++i) { currZ++; if (isInside || parent.isMapAt(currX, currY, currZ)) { if (!insideStates[i]) { insideStates[i] = true; synchronized (unchecked) { unchecked.add(Location.getKey(currX, currY, currZ)); } } isInside = true; } else { if (insideStates[i]) { insideStates[i] = false; nowOutside = true; } } } /* * If one of the values turned from inside to outside, all tiles are added to the list to be checked again. */ if (nowOutside) { synchronized (unchecked) { unchecked.clear(); parent.processTiles(this); } } World.getWeather().setOutside(!isInside); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean canBuildBlock(Tile t);", "public boolean checkBuildings(){\n\t\tfor(Structure building : this.buildings){\n\t\t\tif(!building.isDestroyed()){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean isInside(){\n\t\tinside = true;\n\t\tif(map.contains(new Rectangle(x,y,(int)sprit...
[ "0.5778915", "0.57781494", "0.56923646", "0.5666223", "0.5569713", "0.5369405", "0.5340398", "0.5339447", "0.53018844", "0.5297373", "0.52416646", "0.52237517", "0.5204222", "0.5197498", "0.5195929", "0.51880234", "0.5168187", "0.5164152", "0.5160862", "0.5149619", "0.5128376...
0.73108524
0
Add a key of a map location to the processor that contains a location on the map that was yet unchecked.
public void reportUnchecked(final long key) { synchronized (unchecked) { if (unchecked.contains(key)) { unchecked.add(key); } unchecked.notify(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean execute(final long key, @NonNull final MapTile tile) {\n synchronized (unchecked) {\n unchecked.add(key);\n }\n \n return true;\n }", "public void setOtherLocation( Object key, InputLocation location )\n {\n if ( location != null )\...
[ "0.63689995", "0.6090081", "0.5754156", "0.5687844", "0.56416804", "0.5588914", "0.5541873", "0.5522061", "0.5456941", "0.5443192", "0.5435107", "0.5367936", "0.53450704", "0.53197664", "0.5303374", "0.5271285", "0.5270526", "0.5248692", "0.52465206", "0.5213614", "0.51999116...
0.52135694
20
Add all tiles in the visible perspective below one location to the list of unchecked tiles again.
private void addAllBelow(@NonNull final Location searchLoc, final int limit) { int currX = searchLoc.getScX(); int currY = searchLoc.getScY(); int currZ = searchLoc.getScZ(); while (currZ >= limit) { currX += MapDisplayManager.TILE_PERSPECTIVE_OFFSET; currY -= MapDisplayManager.TILE_PERSPECTIVE_OFFSET; currZ--; final long foundKey = Location.getKey(currX, currY, currZ); synchronized (unchecked) { if (!unchecked.contains(foundKey)) { unchecked.add(foundKey); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clearTiles() {\n \tfor (int x = 0; x < (mAbsoluteTileCount.getX()); x++) {\n for (int y = 0; y < (mAbsoluteTileCount.getY()); y++) {\n setTile(0, x, y);\n }\n }\n }", "private void updateClearedTiles() {\r\n int count = 0;\r\n for (int r...
[ "0.6263487", "0.61789846", "0.60559464", "0.6032589", "0.60176754", "0.59807056", "0.59075505", "0.58395463", "0.5792919", "0.57321894", "0.572714", "0.570131", "0.56808156", "0.5663819", "0.5655627", "0.564519", "0.5644494", "0.56344193", "0.5587106", "0.5552259", "0.5509951...
0.5062259
76
Add all tiles in the visible perspective above one location to the list of unchecked tiles again.
private void addAllAbove(@NonNull final Location searchLoc, final int limit) { int currX = searchLoc.getScX(); int currY = searchLoc.getScY(); int currZ = searchLoc.getScZ(); while (currZ <= limit) { currX -= MapDisplayManager.TILE_PERSPECTIVE_OFFSET; currY += MapDisplayManager.TILE_PERSPECTIVE_OFFSET; currZ++; final long foundKey = Location.getKey(currX, currY, currZ); synchronized (unchecked) { if (!unchecked.contains(foundKey)) { unchecked.add(foundKey); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clearTiles() {\n \tfor (int x = 0; x < (mAbsoluteTileCount.getX()); x++) {\n for (int y = 0; y < (mAbsoluteTileCount.getY()); y++) {\n setTile(0, x, y);\n }\n }\n }", "private void updateClearedTiles() {\r\n int count = 0;\r\n for (int r...
[ "0.60973567", "0.602604", "0.59240484", "0.59157187", "0.58469844", "0.58411133", "0.5830495", "0.58145905", "0.56979793", "0.56538033", "0.5635131", "0.5627839", "0.5624107", "0.560536", "0.55927145", "0.5565365", "0.5554325", "0.55490446", "0.5516523", "0.5513553", "0.54884...
0.527894
30
Add all tiles surrounding this location and the tile above to the list of unchecked tiles.
private void addAllNeighbours(@NonNull final Location searchLoc) { for (int x = -1; x < 2; x++) { for (int y = -1; y < 2; y++) { if ((x == 0) && (y == 0)) { continue; } final long foundKey = Location.getKey(searchLoc.getScX() + x, searchLoc.getScY() + y, searchLoc.getScZ()); synchronized (unchecked) { if (!unchecked.contains(foundKey)) { unchecked.add(foundKey); } } } } final long foundKey = Location.getKey(searchLoc.getScX(), searchLoc.getScY(), searchLoc.getScZ() + 1); synchronized (unchecked) { if (!unchecked.contains(foundKey)) { unchecked.add(foundKey); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clearTiles() {\n \tfor (int x = 0; x < (mAbsoluteTileCount.getX()); x++) {\n for (int y = 0; y < (mAbsoluteTileCount.getY()); y++) {\n setTile(0, x, y);\n }\n }\n }", "public void clearTiles() {\r\n\r\n for (int i = 0; i < 16; i += 1) {\r\n ...
[ "0.63067734", "0.58997375", "0.5768685", "0.57648116", "0.5681153", "0.5661004", "0.55567753", "0.5545994", "0.55128217", "0.54224277", "0.54214394", "0.5415899", "0.54090893", "0.53399193", "0.53105843", "0.53071105", "0.529363", "0.52514076", "0.52447563", "0.5233695", "0.5...
0.5141182
27
Do a inside check during the next run of the thread loop.
public void checkInside() { checkInsideDone = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void run() {\n\t\t\tcheck();\n\t\t}", "private void checkCrossThreads() {\t\r\n\t\t\tisJumppingBetweenThreads = (currentThread != Thread.currentThread());\r\n\t\t}", "private void whileShouldRun(PrintWriter out, BufferedReader in) throws IOException, InterruptedException {\n\t\tLog.fine(s...
[ "0.6898877", "0.63515437", "0.6113473", "0.6059891", "0.59764725", "0.59233004", "0.59110063", "0.59015906", "0.5895199", "0.58505595", "0.5796977", "0.5781737", "0.5758867", "0.5746758", "0.57394266", "0.56871533", "0.5662636", "0.5650387", "0.5646489", "0.56344163", "0.5594...
0.7449126
0
Clear the map, that should be done in case all tiles got removed from the map and the current checks need to stop instantly.
public void clear() { synchronized (unchecked) { unchecked.clear(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void clear() { _map.clear(); }", "public void clear() {\r\n this.map.clear();\r\n }", "public void clear() {\n map.clear();\n }", "public void clear() {\n map.clear();\n }", "public void clear() { \r\n\t\tmap.clear();\r\n\t}", "public void clear() {\n\t\tmap.clear();...
[ "0.8228882", "0.8214368", "0.8191584", "0.81875455", "0.8174402", "0.816922", "0.81573546", "0.8051446", "0.80507207", "0.7841413", "0.773983", "0.7638421", "0.76357764", "0.76070964", "0.7547354", "0.7543716", "0.7461903", "0.7353299", "0.72731656", "0.7269432", "0.7266969",...
0.0
-1
Stop this thread as soon as possible.
public void saveShutdown() { running = false; synchronized (unchecked) { unchecked.notify(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void stop()\n {\n if ( this.threadRunning.get() )\n {\n this.threadRunning.set(false);\n }\n }", "public void Stop() {\r\n\t\t\r\n\t\tthread = null;\r\n\t}", "public void stop() {\n thread = null;\n }", "public synchronized void s...
[ "0.8176857", "0.812417", "0.80802536", "0.806352", "0.8062033", "0.80338144", "0.80153894", "0.7980663", "0.7979466", "0.7905842", "0.77913463", "0.7753359", "0.7724047", "0.76981145", "0.7695926", "0.7689456", "0.7592739", "0.7588351", "0.75756687", "0.753293", "0.75128585",...
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_results_page, container, false); //The fragment is open. is_open = true; //Add listener to each button button_save = (Button)view.findViewById(R.id.button_save_results); button_save.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { //Save Results actionAlert(true, "Save Results", "Would you like to save the test results?"); } }); button_delete = (Button)view.findViewById(R.id.button_delete_results); button_delete.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { //Delete Results actionAlert(false,"Delete Results", "This action will delete the test results. Continue?"); } }); // Inflate the layout for this fragment return view; }
{ "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
The following functions connect to the Adapter classes to gather data from headset
public void saveResults(){ //Tell adapter to save gathered data //Call appropriate function }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initializeAdapter() {\n }", "@Override\n public void prepareHtmlDataList() {\n makeGCDataInfoOutputData();\n makeLaunchDataInfoOutputData();\n }", "public interface DataSource extends DataSourceBase {\n /***\n * @param authenticationInfo A HashMap of any authenticatio...
[ "0.55641395", "0.5554025", "0.55223536", "0.5465298", "0.54644555", "0.54572594", "0.53834623", "0.53742343", "0.5349363", "0.53393394", "0.5330305", "0.5302602", "0.52853537", "0.52643615", "0.52537316", "0.5252522", "0.5252505", "0.5249518", "0.52420765", "0.5240984", "0.52...
0.0
-1
Tell adapter to delete gathering data Call appropriate function
public void deleteResults(){ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void delData();", "@Override\n\t\t\tpublic void handleDataDeleted(String dataPath) throws Exception {\n\t\t\t\t\n\t\t\t}", "void onDataCleared();", "private void askforItemDeletion(int position){\n mySmsMessAdapterCallBack.askforItemDeletion(dataset.get(position),position);\n }", "public abstract ...
[ "0.7237041", "0.6636645", "0.66289765", "0.65527105", "0.653159", "0.64653254", "0.6452267", "0.64159334", "0.63911587", "0.63891137", "0.6385708", "0.6365456", "0.6357278", "0.6324192", "0.6315247", "0.63128304", "0.6277346", "0.6266686", "0.6241996", "0.6233636", "0.6226939...
0.6258315
18
Should return content type that is used to override file content type for template data language. It is required for template language injections to override nonbase language content type properly
default IElementType getContentElementType(@Nonnull Language language) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract ContentType getContnentType();", "String getContentType();", "String getContentType();", "String getContentType();", "@Override\n\tpublic String getContentType(String filename) {\n\t\treturn null;\n\t}", "public String getContenttype() {\n return contenttype;\n }", "public String get...
[ "0.6933915", "0.6780197", "0.6780197", "0.6780197", "0.6752425", "0.6730612", "0.6730612", "0.66555786", "0.66431135", "0.66431135", "0.6623261", "0.6581726", "0.65699697", "0.65011126", "0.64492655", "0.6441329", "0.6399282", "0.6337813", "0.63199145", "0.6297835", "0.629562...
0.0
-1
Return the total water depth on the Y axis at a specific location. The block passed in parameter must be a water block along the Y axis Return the total water depth on the Y axis at a specific location. The block passed in parameter must be a water block along the Y axis
public static int GetWaterDepth(World aWorld, double xPos, double yPos, double zPos) { int _waterDepth = 0; for(int up = 0;up<=30;up++) { try { if(aWorld.getBlock((int)xPos, (int)yPos+up, (int)zPos) == Blocks.water) { _waterDepth++; } } catch (Exception ex) { //Do nothing, it only catches block that are out of range. Those are not water, so they are not added. } } for(int down = -30; down<0; down++) { try { if(aWorld.getBlock((int)xPos, (int)yPos+down, (int)zPos) == Blocks.water) { _waterDepth++; } } catch (Exception ex) { //Do nothing, it only catches block that are out of range. Those are not water, so they are not added. } } FantasticDebug.Output("Mesured water depth is: "+Integer.toString(_waterDepth)); return _waterDepth++; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getBlockY()\n\t {\n\t\t if(y >= 0.0) return (int)y;\n\t\t return -1 + (int)(y);\n\t }", "public abstract Integer getStationRainGaugeDepth(int stationId, int datetimeId);", "int getStrength(IBlockAccess iBlockAccess, BlockPos blockPos);", "float getDepth();", "float getDepth();", "public do...
[ "0.5758294", "0.56728953", "0.5546817", "0.55443794", "0.55443794", "0.54768497", "0.5468899", "0.5462552", "0.5432725", "0.5392275", "0.5354922", "0.5315829", "0.5307356", "0.5275652", "0.5268198", "0.5227373", "0.52143216", "0.5184817", "0.5168935", "0.5157208", "0.51479477...
0.66610664
0
finds a random target within par1(x,z) and par2 (y) blocks in the direction of the point par3
public static Vec3 findRandomTargetBlockTowards(EntityCreature aWaterMob, int xzFleeZoneSize, int yFleeZoneSize, Vec3 aTargetVectorPos, int aMinRangeXZ, int aMinDepth) { Vec3 _fleeingVector = Vec3.createVectorHelper(aTargetVectorPos.xCoord - aWaterMob.posX,aTargetVectorPos.yCoord - aWaterMob.posY,aTargetVectorPos.zCoord - aWaterMob.posZ); return findRandomTargetBlock(aWaterMob, xzFleeZoneSize, yFleeZoneSize,_fleeingVector,aMinRangeXZ,aMinDepth); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Point getRandomPoint() {\n\t\t\t\t\tdouble val = Math.random() * 3;\n\t\t\t\t\tif (val >=0.0 && val <1.0)\n\t\t\t\t\t\treturn p1;\n\t\t\t\t\telse if (val >=1.0 && val <2.0)\n\t\t\t\t\t\t\treturn p2;\n\t\t\t\t\telse\n\t\t\t\t\t\t\treturn p3;\n\t\t\t\t\t}", "private Vector3 randomLocationDolphin() {\n\t\tVector3 c...
[ "0.6533194", "0.56800735", "0.5624581", "0.55869186", "0.5585193", "0.55059713", "0.55022484", "0.5490506", "0.5468203", "0.54541874", "0.5447594", "0.54396707", "0.5429976", "0.5402085", "0.53806466", "0.53699046", "0.53469855", "0.5345805", "0.53452694", "0.5318833", "0.529...
0.6389074
1
TODO Autogenerated method stub
@Override public void onReceive(Context context, Intent intent) { Log.e("m", "com.airtalkee.receiver onReceive"); if (intent.getAction().equals(ACTION_VOICE_LONG_PRESS)) { if (intentFilter == null) intentFilter = new IntentFilter(); intentFilter.addAction(Intent.ACTION_BATTERY_CHANGED); context.registerReceiver(instance, intentFilter); } else if (intent.getAction().equals(ACTION_VOICE_UP)) { } else if (intent.getAction().equals(ACTION_KNOB_ADD)) { AirSessionControl.getInstance().channelSelect(true); } else if (intent.getAction().equals(ACTION_KNOB_SUB)) { AirSessionControl.getInstance().channelSelect(false); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Initializes an instance of ImageModerationsInner.
public ImageModerationsInner(Retrofit retrofit, ContentModeratorClientImpl client) { this.service = retrofit.create(ImageModerationsService.class); this.client = client; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void init() {\n\t\timg = new ImageClass();\r\n\t\timg.Init(imgPath);\r\n\t}", "private Images() {}", "public ImageSection() { // required by the SessionLoader (should not be used elsewhere)\n hasImage = new HasImage();\n }", "protected Builder() {\n super(new ImageS...
[ "0.56409055", "0.56140316", "0.5610598", "0.55673265", "0.5555221", "0.5447363", "0.54428697", "0.5439326", "0.5344965", "0.53212875", "0.5320531", "0.52985114", "0.52616525", "0.52616525", "0.52477294", "0.52003145", "0.51869893", "0.51845366", "0.5176761", "0.5175184", "0.5...
0.62965137
0
The interface defining all the services for ImageModerations to be used by Retrofit to perform actually REST calls.
interface ImageModerationsService { @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.contentmoderator.ImageModerations findFaces" }) @POST("contentmoderator/moderate/v1.0/ProcessImage/FindFaces") Observable<Response<ResponseBody>> findFaces(@Query("CacheImage") Boolean cacheImage, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.contentmoderator.ImageModerations oCRMethod" }) @POST("contentmoderator/moderate/v1.0/ProcessImage/OCR") Observable<Response<ResponseBody>> oCRMethod(@Query("language") String language, @Query("CacheImage") Boolean cacheImage, @Query("enhanced") Boolean enhanced, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.contentmoderator.ImageModerations evaluateMethod" }) @POST("contentmoderator/moderate/v1.0/ProcessImage/Evaluate") Observable<Response<ResponseBody>> evaluateMethod(@Query("CacheImage") Boolean cacheImage, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.contentmoderator.ImageModerations matchMethod" }) @POST("contentmoderator/moderate/v1.0/ProcessImage/Match") Observable<Response<ResponseBody>> matchMethod(@Query("listId") String listId, @Query("CacheImage") Boolean cacheImage, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: image/gif", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.contentmoderator.ImageModerations findFacesFileInput" }) @POST("contentmoderator/moderate/v1.0/ProcessImage/FindFaces") Observable<Response<ResponseBody>> findFacesFileInput(@Query("CacheImage") Boolean cacheImage, @Body RequestBody imageStream, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.contentmoderator.ImageModerations findFacesUrlInput" }) @POST("contentmoderator/moderate/v1.0/ProcessImage/FindFaces") Observable<Response<ResponseBody>> findFacesUrlInput(@Query("CacheImage") Boolean cacheImage, @Header("Content-Type") String contentType, @Body BodyModelInner imageUrl, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.contentmoderator.ImageModerations oCRUrlInput" }) @POST("contentmoderator/moderate/v1.0/ProcessImage/OCR") Observable<Response<ResponseBody>> oCRUrlInput(@Query("language") String language, @Query("CacheImage") Boolean cacheImage, @Query("enhanced") Boolean enhanced, @Header("Content-Type") String contentType, @Body BodyModelInner imageUrl, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: image/gif", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.contentmoderator.ImageModerations oCRFileInput" }) @POST("contentmoderator/moderate/v1.0/ProcessImage/OCR") Observable<Response<ResponseBody>> oCRFileInput(@Query("language") String language, @Query("CacheImage") Boolean cacheImage, @Query("enhanced") Boolean enhanced, @Body RequestBody imageStream, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: image/gif", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.contentmoderator.ImageModerations evaluateFileInput" }) @POST("contentmoderator/moderate/v1.0/ProcessImage/Evaluate") Observable<Response<ResponseBody>> evaluateFileInput(@Query("CacheImage") Boolean cacheImage, @Body RequestBody imageStream, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.contentmoderator.ImageModerations evaluateUrlInput" }) @POST("contentmoderator/moderate/v1.0/ProcessImage/Evaluate") Observable<Response<ResponseBody>> evaluateUrlInput(@Query("CacheImage") Boolean cacheImage, @Header("Content-Type") String contentType, @Body BodyModelInner imageUrl, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.contentmoderator.ImageModerations matchUrlInput" }) @POST("contentmoderator/moderate/v1.0/ProcessImage/Match") Observable<Response<ResponseBody>> matchUrlInput(@Query("listId") String listId, @Query("CacheImage") Boolean cacheImage, @Header("Content-Type") String contentType, @Body BodyModelInner imageUrl, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: image/gif", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.contentmoderator.ImageModerations matchFileInput" }) @POST("contentmoderator/moderate/v1.0/ProcessImage/Match") Observable<Response<ResponseBody>> matchFileInput(@Query("listId") String listId, @Query("CacheImage") Boolean cacheImage, @Body RequestBody imageStream, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ImageModerationsInner(Retrofit retrofit, ContentModeratorClientImpl client) {\n this.service = retrofit.create(ImageModerationsService.class);\n this.client = client;\n }", "public interface ImageMetadataService {\n\n List<ArtistDTO> getArtistsByPrediction(String name, String name2, St...
[ "0.68129456", "0.6691733", "0.63974077", "0.63843685", "0.63075066", "0.6301345", "0.63005036", "0.62183326", "0.61795515", "0.61711043", "0.6134075", "0.61314404", "0.6108849", "0.60966575", "0.6073096", "0.60511506", "0.60427874", "0.60131705", "0.5999861", "0.59773374", "0...
0.72850233
0
Returns the list of faces found.
public Observable<FoundFacesInner> findFacesAsync() { return findFacesWithServiceResponseAsync().map(new Func1<ServiceResponse<FoundFacesInner>, FoundFacesInner>() { @Override public FoundFacesInner call(ServiceResponse<FoundFacesInner> response) { return response.body(); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Face[] getFaces() {\n return faces;\n }", "static FaceSegment[] allFaces() {\n FaceSegment[] faces = new FaceSegment[6];\n for (int i = 0; i < faces.length; i++) {\n faces[i] = new FaceSegment();\n }\n return faces;\n }", "public int[][] getFaces() {\n\t\treturn t...
[ "0.7671218", "0.74343956", "0.71101314", "0.691482", "0.69146", "0.62822634", "0.6183204", "0.6173539", "0.59023684", "0.5782556", "0.5730131", "0.5664912", "0.56492686", "0.5503748", "0.5503748", "0.5493492", "0.54722375", "0.5456128", "0.5450902", "0.544514", "0.54380745", ...
0.6271086
6
Returns the list of faces found.
public Observable<ServiceResponse<FoundFacesInner>> findFacesWithServiceResponseAsync() { if (this.client.baseUrl() == null) { throw new IllegalArgumentException("Parameter this.client.baseUrl() is required and cannot be null."); } final Boolean cacheImage = null; String parameterizedHost = Joiner.on(", ").join("{baseUrl}", this.client.baseUrl()); return service.findFaces(cacheImage, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<FoundFacesInner>>>() { @Override public Observable<ServiceResponse<FoundFacesInner>> call(Response<ResponseBody> response) { try { ServiceResponse<FoundFacesInner> clientResponse = findFacesDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Face[] getFaces() {\n return faces;\n }", "static FaceSegment[] allFaces() {\n FaceSegment[] faces = new FaceSegment[6];\n for (int i = 0; i < faces.length; i++) {\n faces[i] = new FaceSegment();\n }\n return faces;\n }", "public int[][] getFaces() {\n\t\treturn t...
[ "0.7671218", "0.74343956", "0.71101314", "0.691482", "0.69146", "0.62822634", "0.6271086", "0.6183204", "0.59023684", "0.5782556", "0.5730131", "0.5664912", "0.56492686", "0.5503748", "0.5503748", "0.5493492", "0.54722375", "0.5456128", "0.5450902", "0.544514", "0.54380745", ...
0.6173539
8
Returns the list of faces found.
public Observable<FoundFacesInner> findFacesAsync(Boolean cacheImage) { return findFacesWithServiceResponseAsync(cacheImage).map(new Func1<ServiceResponse<FoundFacesInner>, FoundFacesInner>() { @Override public FoundFacesInner call(ServiceResponse<FoundFacesInner> response) { return response.body(); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Face[] getFaces() {\n return faces;\n }", "static FaceSegment[] allFaces() {\n FaceSegment[] faces = new FaceSegment[6];\n for (int i = 0; i < faces.length; i++) {\n faces[i] = new FaceSegment();\n }\n return faces;\n }", "public int[][] getFaces() {\n\t\treturn t...
[ "0.7671269", "0.74346423", "0.7110249", "0.69152063", "0.6914806", "0.6282762", "0.6270876", "0.6183134", "0.6173269", "0.59021", "0.57824975", "0.573041", "0.56643003", "0.564971", "0.5503765", "0.5503765", "0.5493121", "0.5472918", "0.54561985", "0.54503137", "0.5445359", ...
0.523216
37
Returns the list of faces found.
public Observable<ServiceResponse<FoundFacesInner>> findFacesWithServiceResponseAsync(Boolean cacheImage) { if (this.client.baseUrl() == null) { throw new IllegalArgumentException("Parameter this.client.baseUrl() is required and cannot be null."); } String parameterizedHost = Joiner.on(", ").join("{baseUrl}", this.client.baseUrl()); return service.findFaces(cacheImage, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<FoundFacesInner>>>() { @Override public Observable<ServiceResponse<FoundFacesInner>> call(Response<ResponseBody> response) { try { ServiceResponse<FoundFacesInner> clientResponse = findFacesDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Face[] getFaces() {\n return faces;\n }", "static FaceSegment[] allFaces() {\n FaceSegment[] faces = new FaceSegment[6];\n for (int i = 0; i < faces.length; i++) {\n faces[i] = new FaceSegment();\n }\n return faces;\n }", "public int[][] getFaces() {\n\t\treturn t...
[ "0.7671269", "0.74346423", "0.7110249", "0.69152063", "0.6914806", "0.6282762", "0.6270876", "0.6183134", "0.6173269", "0.59021", "0.57824975", "0.573041", "0.56643003", "0.564971", "0.5503765", "0.5503765", "0.5493121", "0.5472918", "0.54561985", "0.54503137", "0.5445359", ...
0.50187486
53
Returns any text found in the image for the language specified. If no language is specified in input then the detection defaults to English.
public Observable<OCRInner> oCRMethodAsync(String language) { return oCRMethodWithServiceResponseAsync(language).map(new Func1<ServiceResponse<OCRInner>, OCRInner>() { @Override public OCRInner call(ServiceResponse<OCRInner> response) { return response.body(); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String detectLanguage(String text) {\n\t\treturn dictionary.detectLanguage(text);\n\t}", "public boolean translateImageToText();", "@SuppressWarnings(\"static-access\")\n\tpublic void detection(Request text) {\n\t\t//Fichiertxt fichier;\n\t\ttry {\t\t\t\t\t\n\t\t\t//enregistrement et affichage de la lan...
[ "0.6339322", "0.5907689", "0.5881454", "0.5613236", "0.5499387", "0.5476547", "0.54720753", "0.54378355", "0.54378355", "0.54230297", "0.54117554", "0.5398961", "0.5386767", "0.5368199", "0.5356364", "0.5356364", "0.5356364", "0.5355748", "0.53044903", "0.52970636", "0.525971...
0.0
-1
Returns any text found in the image for the language specified. If no language is specified in input then the detection defaults to English.
public Observable<ServiceResponse<OCRInner>> oCRMethodWithServiceResponseAsync(String language) { if (this.client.baseUrl() == null) { throw new IllegalArgumentException("Parameter this.client.baseUrl() is required and cannot be null."); } if (language == null) { throw new IllegalArgumentException("Parameter language is required and cannot be null."); } final Boolean cacheImage = null; final Boolean enhanced = null; String parameterizedHost = Joiner.on(", ").join("{baseUrl}", this.client.baseUrl()); return service.oCRMethod(language, cacheImage, enhanced, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<OCRInner>>>() { @Override public Observable<ServiceResponse<OCRInner>> call(Response<ResponseBody> response) { try { ServiceResponse<OCRInner> clientResponse = oCRMethodDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String detectLanguage(String text) {\n\t\treturn dictionary.detectLanguage(text);\n\t}", "public boolean translateImageToText();", "@SuppressWarnings(\"static-access\")\n\tpublic void detection(Request text) {\n\t\t//Fichiertxt fichier;\n\t\ttry {\t\t\t\t\t\n\t\t\t//enregistrement et affichage de la lan...
[ "0.6340801", "0.5908911", "0.58815557", "0.56125695", "0.54998386", "0.5477398", "0.5472436", "0.54383487", "0.54383487", "0.54241633", "0.5411288", "0.5399041", "0.53873235", "0.5367456", "0.53567713", "0.53567713", "0.53567713", "0.5354653", "0.5304111", "0.5296139", "0.526...
0.0
-1
Returns any text found in the image for the language specified. If no language is specified in input then the detection defaults to English.
public Observable<OCRInner> oCRMethodAsync(String language, Boolean cacheImage, Boolean enhanced) { return oCRMethodWithServiceResponseAsync(language, cacheImage, enhanced).map(new Func1<ServiceResponse<OCRInner>, OCRInner>() { @Override public OCRInner call(ServiceResponse<OCRInner> response) { return response.body(); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String detectLanguage(String text) {\n\t\treturn dictionary.detectLanguage(text);\n\t}", "public boolean translateImageToText();", "@SuppressWarnings(\"static-access\")\n\tpublic void detection(Request text) {\n\t\t//Fichiertxt fichier;\n\t\ttry {\t\t\t\t\t\n\t\t\t//enregistrement et affichage de la lan...
[ "0.6340444", "0.5907014", "0.5881825", "0.5613604", "0.5501345", "0.5476807", "0.54720134", "0.5439289", "0.5439289", "0.5422724", "0.5412727", "0.5398816", "0.53872037", "0.53670835", "0.5357576", "0.5357576", "0.5357576", "0.5356866", "0.53034747", "0.5297329", "0.5260379",...
0.0
-1
Returns any text found in the image for the language specified. If no language is specified in input then the detection defaults to English.
public Observable<ServiceResponse<OCRInner>> oCRMethodWithServiceResponseAsync(String language, Boolean cacheImage, Boolean enhanced) { if (this.client.baseUrl() == null) { throw new IllegalArgumentException("Parameter this.client.baseUrl() is required and cannot be null."); } if (language == null) { throw new IllegalArgumentException("Parameter language is required and cannot be null."); } String parameterizedHost = Joiner.on(", ").join("{baseUrl}", this.client.baseUrl()); return service.oCRMethod(language, cacheImage, enhanced, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<OCRInner>>>() { @Override public Observable<ServiceResponse<OCRInner>> call(Response<ResponseBody> response) { try { ServiceResponse<OCRInner> clientResponse = oCRMethodDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String detectLanguage(String text) {\n\t\treturn dictionary.detectLanguage(text);\n\t}", "public boolean translateImageToText();", "@SuppressWarnings(\"static-access\")\n\tpublic void detection(Request text) {\n\t\t//Fichiertxt fichier;\n\t\ttry {\t\t\t\t\t\n\t\t\t//enregistrement et affichage de la lan...
[ "0.6340444", "0.5907014", "0.5881825", "0.5613604", "0.5501345", "0.5476807", "0.54720134", "0.5439289", "0.5439289", "0.5422724", "0.5412727", "0.5398816", "0.53872037", "0.53670835", "0.5357576", "0.5357576", "0.5357576", "0.5356866", "0.53034747", "0.5297329", "0.5260379",...
0.0
-1
Returns probabilities of the image containing racy or adult content.
public Observable<EvaluateInner> evaluateMethodAsync() { return evaluateMethodWithServiceResponseAsync().map(new Func1<ServiceResponse<EvaluateInner>, EvaluateInner>() { @Override public EvaluateInner call(ServiceResponse<EvaluateInner> response) { return response.body(); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void calculateProbabilities(){\n\t}", "private void evaluateProbabilities()\n\t{\n\t}", "public double[] getProbabilities() { return getProbabilities((int[])null); }", "public double getProbability() {\n return probability;\n }", "POGOProtos.Rpc.CaptureProbabilityProto getCaptureProbabilit...
[ "0.5792197", "0.57066816", "0.5635645", "0.5572759", "0.5562452", "0.55257493", "0.53212327", "0.5280099", "0.5259797", "0.5242405", "0.5241776", "0.52029526", "0.5099709", "0.50816107", "0.5081152", "0.50460213", "0.5026333", "0.50131893", "0.49973923", "0.49362656", "0.4927...
0.0
-1
Returns probabilities of the image containing racy or adult content.
public Observable<ServiceResponse<EvaluateInner>> evaluateMethodWithServiceResponseAsync() { if (this.client.baseUrl() == null) { throw new IllegalArgumentException("Parameter this.client.baseUrl() is required and cannot be null."); } final Boolean cacheImage = null; String parameterizedHost = Joiner.on(", ").join("{baseUrl}", this.client.baseUrl()); return service.evaluateMethod(cacheImage, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<EvaluateInner>>>() { @Override public Observable<ServiceResponse<EvaluateInner>> call(Response<ResponseBody> response) { try { ServiceResponse<EvaluateInner> clientResponse = evaluateMethodDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void calculateProbabilities(){\n\t}", "private void evaluateProbabilities()\n\t{\n\t}", "public double[] getProbabilities() { return getProbabilities((int[])null); }", "public double getProbability() {\n return probability;\n }", "POGOProtos.Rpc.CaptureProbabilityProto getCaptureProbabilit...
[ "0.5786381", "0.57027304", "0.5630279", "0.5566898", "0.55602795", "0.5521205", "0.53160524", "0.527399", "0.52547306", "0.5238439", "0.52371645", "0.5200319", "0.50942767", "0.5080741", "0.5075284", "0.5040735", "0.5020369", "0.5010527", "0.4992298", "0.49309567", "0.4923097...
0.0
-1
Returns probabilities of the image containing racy or adult content.
public Observable<EvaluateInner> evaluateMethodAsync(Boolean cacheImage) { return evaluateMethodWithServiceResponseAsync(cacheImage).map(new Func1<ServiceResponse<EvaluateInner>, EvaluateInner>() { @Override public EvaluateInner call(ServiceResponse<EvaluateInner> response) { return response.body(); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void calculateProbabilities(){\n\t}", "private void evaluateProbabilities()\n\t{\n\t}", "public double[] getProbabilities() { return getProbabilities((int[])null); }", "public double getProbability() {\n return probability;\n }", "POGOProtos.Rpc.CaptureProbabilityProto getCaptureProbabilit...
[ "0.57850313", "0.57010126", "0.56290585", "0.5565697", "0.5559708", "0.5519075", "0.5316536", "0.52727836", "0.52534455", "0.5236468", "0.5236261", "0.5198736", "0.5091604", "0.50812334", "0.507524", "0.50379896", "0.501882", "0.50101876", "0.4990364", "0.49297088", "0.492034...
0.0
-1
Returns probabilities of the image containing racy or adult content.
public Observable<ServiceResponse<EvaluateInner>> evaluateMethodWithServiceResponseAsync(Boolean cacheImage) { if (this.client.baseUrl() == null) { throw new IllegalArgumentException("Parameter this.client.baseUrl() is required and cannot be null."); } String parameterizedHost = Joiner.on(", ").join("{baseUrl}", this.client.baseUrl()); return service.evaluateMethod(cacheImage, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<EvaluateInner>>>() { @Override public Observable<ServiceResponse<EvaluateInner>> call(Response<ResponseBody> response) { try { ServiceResponse<EvaluateInner> clientResponse = evaluateMethodDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void calculateProbabilities(){\n\t}", "private void evaluateProbabilities()\n\t{\n\t}", "public double[] getProbabilities() { return getProbabilities((int[])null); }", "public double getProbability() {\n return probability;\n }", "POGOProtos.Rpc.CaptureProbabilityProto getCaptureProbabilit...
[ "0.57850313", "0.57010126", "0.56290585", "0.5565697", "0.5559708", "0.5519075", "0.5316536", "0.52727836", "0.52534455", "0.5236468", "0.5236261", "0.5198736", "0.5091604", "0.50812334", "0.507524", "0.50379896", "0.501882", "0.50101876", "0.4990364", "0.49297088", "0.492034...
0.0
-1
Fuzzily match an image against one of your custom Image Lists. You can create and manage your custom image lists using this API. Returns ID and tags of matching image. Note: Refresh Index must be run on the corresponding Image List before additions and removals are reflected in the response.
public Observable<MatchResponseInner> matchMethodAsync() { return matchMethodWithServiceResponseAsync().map(new Func1<ServiceResponse<MatchResponseInner>, MatchResponseInner>() { @Override public MatchResponseInner call(ServiceResponse<MatchResponseInner> response) { return response.body(); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int match(ArrayList<ImageCell> images);", "ImageSearchResponse findAllBySimilarImage(byte[] imageData, ImageRegion objectRegion);", "private void searchImage(String text){\n\n // Set toolbar title as query string\n toolbar.setTitle(text);\n\n Map<String, String> options = setSearchOptions(...
[ "0.6268177", "0.5889108", "0.57670414", "0.57589924", "0.57436514", "0.5731581", "0.5511194", "0.5501659", "0.550006", "0.5452095", "0.53226525", "0.525605", "0.5253426", "0.5196022", "0.51808035", "0.5179484", "0.516819", "0.5141495", "0.51305956", "0.51303494", "0.512022", ...
0.0
-1
Fuzzily match an image against one of your custom Image Lists. You can create and manage your custom image lists using this API. Returns ID and tags of matching image. Note: Refresh Index must be run on the corresponding Image List before additions and removals are reflected in the response.
public Observable<ServiceResponse<MatchResponseInner>> matchMethodWithServiceResponseAsync() { if (this.client.baseUrl() == null) { throw new IllegalArgumentException("Parameter this.client.baseUrl() is required and cannot be null."); } final String listId = null; final Boolean cacheImage = null; String parameterizedHost = Joiner.on(", ").join("{baseUrl}", this.client.baseUrl()); return service.matchMethod(listId, cacheImage, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<MatchResponseInner>>>() { @Override public Observable<ServiceResponse<MatchResponseInner>> call(Response<ResponseBody> response) { try { ServiceResponse<MatchResponseInner> clientResponse = matchMethodDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int match(ArrayList<ImageCell> images);", "ImageSearchResponse findAllBySimilarImage(byte[] imageData, ImageRegion objectRegion);", "private void searchImage(String text){\n\n // Set toolbar title as query string\n toolbar.setTitle(text);\n\n Map<String, String> options = setSearchOptions(...
[ "0.6268827", "0.58894795", "0.57677805", "0.57601416", "0.5745048", "0.57317436", "0.55123144", "0.5503459", "0.55010366", "0.54535496", "0.53231597", "0.52577794", "0.5252809", "0.5197598", "0.51810634", "0.5180938", "0.5170541", "0.5143361", "0.5132484", "0.51319265", "0.51...
0.0
-1
Fuzzily match an image against one of your custom Image Lists. You can create and manage your custom image lists using this API. Returns ID and tags of matching image. Note: Refresh Index must be run on the corresponding Image List before additions and removals are reflected in the response.
public Observable<MatchResponseInner> matchMethodAsync(String listId, Boolean cacheImage) { return matchMethodWithServiceResponseAsync(listId, cacheImage).map(new Func1<ServiceResponse<MatchResponseInner>, MatchResponseInner>() { @Override public MatchResponseInner call(ServiceResponse<MatchResponseInner> response) { return response.body(); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int match(ArrayList<ImageCell> images);", "ImageSearchResponse findAllBySimilarImage(byte[] imageData, ImageRegion objectRegion);", "private void searchImage(String text){\n\n // Set toolbar title as query string\n toolbar.setTitle(text);\n\n Map<String, String> options = setSearchOptions(...
[ "0.62700015", "0.58897376", "0.5767267", "0.5759937", "0.5743681", "0.57321453", "0.55112725", "0.5501859", "0.5500844", "0.54522055", "0.5323158", "0.5255359", "0.52542335", "0.5196973", "0.51814985", "0.5180431", "0.516952", "0.5143571", "0.5131655", "0.5131056", "0.5122202...
0.46642357
82
Fuzzily match an image against one of your custom Image Lists. You can create and manage your custom image lists using this API. Returns ID and tags of matching image. Note: Refresh Index must be run on the corresponding Image List before additions and removals are reflected in the response.
public Observable<ServiceResponse<MatchResponseInner>> matchMethodWithServiceResponseAsync(String listId, Boolean cacheImage) { if (this.client.baseUrl() == null) { throw new IllegalArgumentException("Parameter this.client.baseUrl() is required and cannot be null."); } String parameterizedHost = Joiner.on(", ").join("{baseUrl}", this.client.baseUrl()); return service.matchMethod(listId, cacheImage, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<MatchResponseInner>>>() { @Override public Observable<ServiceResponse<MatchResponseInner>> call(Response<ResponseBody> response) { try { ServiceResponse<MatchResponseInner> clientResponse = matchMethodDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int match(ArrayList<ImageCell> images);", "ImageSearchResponse findAllBySimilarImage(byte[] imageData, ImageRegion objectRegion);", "private void searchImage(String text){\n\n // Set toolbar title as query string\n toolbar.setTitle(text);\n\n Map<String, String> options = setSearchOptions(...
[ "0.6269358", "0.58894175", "0.5767823", "0.57581866", "0.5743656", "0.57329696", "0.5511878", "0.55023944", "0.5499341", "0.54513913", "0.53242004", "0.52565765", "0.5252096", "0.51959515", "0.51806694", "0.5179676", "0.516937", "0.51420456", "0.51307625", "0.5130238", "0.512...
0.49092928
39
Returns the list of faces found.
public Observable<FoundFacesInner> findFacesFileInputAsync(byte[] imageStream) { return findFacesFileInputWithServiceResponseAsync(imageStream).map(new Func1<ServiceResponse<FoundFacesInner>, FoundFacesInner>() { @Override public FoundFacesInner call(ServiceResponse<FoundFacesInner> response) { return response.body(); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Face[] getFaces() {\n return faces;\n }", "static FaceSegment[] allFaces() {\n FaceSegment[] faces = new FaceSegment[6];\n for (int i = 0; i < faces.length; i++) {\n faces[i] = new FaceSegment();\n }\n return faces;\n }", "public int[][] getFaces() {\n\t\treturn t...
[ "0.7671218", "0.74343956", "0.71101314", "0.691482", "0.69146", "0.62822634", "0.6271086", "0.6183204", "0.6173539", "0.59023684", "0.5782556", "0.5730131", "0.5664912", "0.56492686", "0.5503748", "0.5503748", "0.5493492", "0.54722375", "0.5456128", "0.5450902", "0.544514", ...
0.0
-1
Returns the list of faces found.
public Observable<ServiceResponse<FoundFacesInner>> findFacesFileInputWithServiceResponseAsync(byte[] imageStream) { if (this.client.baseUrl() == null) { throw new IllegalArgumentException("Parameter this.client.baseUrl() is required and cannot be null."); } if (imageStream == null) { throw new IllegalArgumentException("Parameter imageStream is required and cannot be null."); } final Boolean cacheImage = null; String parameterizedHost = Joiner.on(", ").join("{baseUrl}", this.client.baseUrl()); RequestBody imageStreamConverted = RequestBody.create(MediaType.parse("image/gif"), imageStream); return service.findFacesFileInput(cacheImage, imageStreamConverted, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<FoundFacesInner>>>() { @Override public Observable<ServiceResponse<FoundFacesInner>> call(Response<ResponseBody> response) { try { ServiceResponse<FoundFacesInner> clientResponse = findFacesFileInputDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Face[] getFaces() {\n return faces;\n }", "static FaceSegment[] allFaces() {\n FaceSegment[] faces = new FaceSegment[6];\n for (int i = 0; i < faces.length; i++) {\n faces[i] = new FaceSegment();\n }\n return faces;\n }", "public int[][] getFaces() {\n\t\treturn t...
[ "0.7671218", "0.74343956", "0.71101314", "0.691482", "0.69146", "0.62822634", "0.6271086", "0.6183204", "0.6173539", "0.59023684", "0.5782556", "0.5730131", "0.5664912", "0.56492686", "0.5503748", "0.5503748", "0.5493492", "0.54722375", "0.5456128", "0.5450902", "0.544514", ...
0.0
-1
Returns the list of faces found.
public Observable<FoundFacesInner> findFacesFileInputAsync(byte[] imageStream, Boolean cacheImage) { return findFacesFileInputWithServiceResponseAsync(imageStream, cacheImage).map(new Func1<ServiceResponse<FoundFacesInner>, FoundFacesInner>() { @Override public FoundFacesInner call(ServiceResponse<FoundFacesInner> response) { return response.body(); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Face[] getFaces() {\n return faces;\n }", "static FaceSegment[] allFaces() {\n FaceSegment[] faces = new FaceSegment[6];\n for (int i = 0; i < faces.length; i++) {\n faces[i] = new FaceSegment();\n }\n return faces;\n }", "public int[][] getFaces() {\n\t\treturn t...
[ "0.7671269", "0.74346423", "0.7110249", "0.69152063", "0.6914806", "0.6282762", "0.6270876", "0.6183134", "0.6173269", "0.59021", "0.57824975", "0.573041", "0.56643003", "0.564971", "0.5503765", "0.5503765", "0.5493121", "0.5472918", "0.54561985", "0.54503137", "0.5445359", ...
0.0
-1
Returns the list of faces found.
public Observable<ServiceResponse<FoundFacesInner>> findFacesFileInputWithServiceResponseAsync(byte[] imageStream, Boolean cacheImage) { if (this.client.baseUrl() == null) { throw new IllegalArgumentException("Parameter this.client.baseUrl() is required and cannot be null."); } if (imageStream == null) { throw new IllegalArgumentException("Parameter imageStream is required and cannot be null."); } String parameterizedHost = Joiner.on(", ").join("{baseUrl}", this.client.baseUrl()); RequestBody imageStreamConverted = RequestBody.create(MediaType.parse("image/gif"), imageStream); return service.findFacesFileInput(cacheImage, imageStreamConverted, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<FoundFacesInner>>>() { @Override public Observable<ServiceResponse<FoundFacesInner>> call(Response<ResponseBody> response) { try { ServiceResponse<FoundFacesInner> clientResponse = findFacesFileInputDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Face[] getFaces() {\n return faces;\n }", "static FaceSegment[] allFaces() {\n FaceSegment[] faces = new FaceSegment[6];\n for (int i = 0; i < faces.length; i++) {\n faces[i] = new FaceSegment();\n }\n return faces;\n }", "public int[][] getFaces() {\n\t\treturn t...
[ "0.7671269", "0.74346423", "0.7110249", "0.69152063", "0.6914806", "0.6282762", "0.6270876", "0.6183134", "0.6173269", "0.59021", "0.57824975", "0.573041", "0.56643003", "0.564971", "0.5503765", "0.5503765", "0.5493121", "0.5472918", "0.54561985", "0.54503137", "0.5445359", ...
0.0
-1
Returns the list of faces found.
public Observable<FoundFacesInner> findFacesUrlInputAsync(String contentType, BodyModelInner imageUrl) { return findFacesUrlInputWithServiceResponseAsync(contentType, imageUrl).map(new Func1<ServiceResponse<FoundFacesInner>, FoundFacesInner>() { @Override public FoundFacesInner call(ServiceResponse<FoundFacesInner> response) { return response.body(); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Face[] getFaces() {\n return faces;\n }", "static FaceSegment[] allFaces() {\n FaceSegment[] faces = new FaceSegment[6];\n for (int i = 0; i < faces.length; i++) {\n faces[i] = new FaceSegment();\n }\n return faces;\n }", "public int[][] getFaces() {\n\t\treturn t...
[ "0.7671218", "0.74343956", "0.71101314", "0.691482", "0.69146", "0.62822634", "0.6271086", "0.6183204", "0.6173539", "0.59023684", "0.5782556", "0.5730131", "0.5664912", "0.56492686", "0.5503748", "0.5503748", "0.5493492", "0.54722375", "0.5456128", "0.5450902", "0.544514", ...
0.0
-1
Returns the list of faces found.
public Observable<ServiceResponse<FoundFacesInner>> findFacesUrlInputWithServiceResponseAsync(String contentType, BodyModelInner imageUrl) { if (this.client.baseUrl() == null) { throw new IllegalArgumentException("Parameter this.client.baseUrl() is required and cannot be null."); } if (contentType == null) { throw new IllegalArgumentException("Parameter contentType is required and cannot be null."); } if (imageUrl == null) { throw new IllegalArgumentException("Parameter imageUrl is required and cannot be null."); } Validator.validate(imageUrl); final Boolean cacheImage = null; String parameterizedHost = Joiner.on(", ").join("{baseUrl}", this.client.baseUrl()); return service.findFacesUrlInput(cacheImage, contentType, imageUrl, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<FoundFacesInner>>>() { @Override public Observable<ServiceResponse<FoundFacesInner>> call(Response<ResponseBody> response) { try { ServiceResponse<FoundFacesInner> clientResponse = findFacesUrlInputDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Face[] getFaces() {\n return faces;\n }", "static FaceSegment[] allFaces() {\n FaceSegment[] faces = new FaceSegment[6];\n for (int i = 0; i < faces.length; i++) {\n faces[i] = new FaceSegment();\n }\n return faces;\n }", "public int[][] getFaces() {\n\t\treturn t...
[ "0.7671218", "0.74343956", "0.71101314", "0.691482", "0.69146", "0.62822634", "0.6271086", "0.6183204", "0.6173539", "0.59023684", "0.5782556", "0.5730131", "0.5664912", "0.56492686", "0.5503748", "0.5503748", "0.5493492", "0.54722375", "0.5456128", "0.5450902", "0.544514", ...
0.0
-1
Returns the list of faces found.
public Observable<FoundFacesInner> findFacesUrlInputAsync(String contentType, BodyModelInner imageUrl, Boolean cacheImage) { return findFacesUrlInputWithServiceResponseAsync(contentType, imageUrl, cacheImage).map(new Func1<ServiceResponse<FoundFacesInner>, FoundFacesInner>() { @Override public FoundFacesInner call(ServiceResponse<FoundFacesInner> response) { return response.body(); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Face[] getFaces() {\n return faces;\n }", "static FaceSegment[] allFaces() {\n FaceSegment[] faces = new FaceSegment[6];\n for (int i = 0; i < faces.length; i++) {\n faces[i] = new FaceSegment();\n }\n return faces;\n }", "public int[][] getFaces() {\n\t\treturn t...
[ "0.7671269", "0.74346423", "0.7110249", "0.69152063", "0.6914806", "0.6282762", "0.6270876", "0.6183134", "0.6173269", "0.59021", "0.57824975", "0.573041", "0.56643003", "0.564971", "0.5503765", "0.5503765", "0.5493121", "0.5472918", "0.54561985", "0.54503137", "0.5445359", ...
0.0
-1
Returns the list of faces found.
public Observable<ServiceResponse<FoundFacesInner>> findFacesUrlInputWithServiceResponseAsync(String contentType, BodyModelInner imageUrl, Boolean cacheImage) { if (this.client.baseUrl() == null) { throw new IllegalArgumentException("Parameter this.client.baseUrl() is required and cannot be null."); } if (contentType == null) { throw new IllegalArgumentException("Parameter contentType is required and cannot be null."); } if (imageUrl == null) { throw new IllegalArgumentException("Parameter imageUrl is required and cannot be null."); } Validator.validate(imageUrl); String parameterizedHost = Joiner.on(", ").join("{baseUrl}", this.client.baseUrl()); return service.findFacesUrlInput(cacheImage, contentType, imageUrl, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<FoundFacesInner>>>() { @Override public Observable<ServiceResponse<FoundFacesInner>> call(Response<ResponseBody> response) { try { ServiceResponse<FoundFacesInner> clientResponse = findFacesUrlInputDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Face[] getFaces() {\n return faces;\n }", "static FaceSegment[] allFaces() {\n FaceSegment[] faces = new FaceSegment[6];\n for (int i = 0; i < faces.length; i++) {\n faces[i] = new FaceSegment();\n }\n return faces;\n }", "public int[][] getFaces() {\n\t\treturn t...
[ "0.7671269", "0.74346423", "0.7110249", "0.69152063", "0.6914806", "0.6282762", "0.6270876", "0.6183134", "0.6173269", "0.59021", "0.57824975", "0.573041", "0.56643003", "0.564971", "0.5503765", "0.5503765", "0.5493121", "0.5472918", "0.54561985", "0.54503137", "0.5445359", ...
0.0
-1
Returns any text found in the image for the language specified. If no language is specified in input then the detection defaults to English.
public Observable<OCRInner> oCRUrlInputAsync(String language, String contentType, BodyModelInner imageUrl) { return oCRUrlInputWithServiceResponseAsync(language, contentType, imageUrl).map(new Func1<ServiceResponse<OCRInner>, OCRInner>() { @Override public OCRInner call(ServiceResponse<OCRInner> response) { return response.body(); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String detectLanguage(String text) {\n\t\treturn dictionary.detectLanguage(text);\n\t}", "public boolean translateImageToText();", "@SuppressWarnings(\"static-access\")\n\tpublic void detection(Request text) {\n\t\t//Fichiertxt fichier;\n\t\ttry {\t\t\t\t\t\n\t\t\t//enregistrement et affichage de la lan...
[ "0.6339322", "0.5907689", "0.5881454", "0.5613236", "0.5499387", "0.5476547", "0.54720753", "0.54378355", "0.54378355", "0.54230297", "0.54117554", "0.5398961", "0.5386767", "0.5368199", "0.5356364", "0.5356364", "0.5356364", "0.5355748", "0.53044903", "0.52970636", "0.525971...
0.0
-1