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
Returns the text field.
public Component getEditorComponent () { return editor; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getTextFromTextField() {\r\n\t\treturn textField.getText();\r\n\t}", "public String getText() {\n return textField.getText();\n }", "public String getText()\n {\n return field.getText();\n }", "public String getText() {\r\n\r\n return field.getText();\r\n\r\n }", ...
[ "0.84823304", "0.83477205", "0.82761294", "0.8179557", "0.8140359", "0.7995726", "0.7776419", "0.76840794", "0.7662684", "0.76235265", "0.75790715", "0.7512975", "0.7508472", "0.7508472", "0.7508472", "0.7508472", "0.7508472", "0.7508472", "0.7508472", "0.7508472", "0.7508319...
0.0
-1
Delegates the passed ActionListener to the editor component.
public void addActionListener (ActionListener l) { editor.addActionListener (l); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void actionPerformed(ActionEvent e) {\n\t\tadaptee.botonEditar_actionPerformed(e);\n\t}", "@Override\n\t public void actionPerformed(ActionEvent e){\n\t }", "@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void actionPerformed(ActionEvent ar...
[ "0.69861174", "0.69370353", "0.692837", "0.692837", "0.69230306", "0.6909571", "0.6909571", "0.68996125", "0.6889497", "0.6856667", "0.685072", "0.685072", "0.6847946", "0.68425643", "0.68425643", "0.68425643", "0.6833663", "0.6825712", "0.68246216", "0.68235296", "0.68235296...
0.7547481
0
Removes the passed ActionListener from the editor component.
public void removeActionListener (ActionListener l) { editor.removeActionListener (l); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeActionListener(ActionListener listener) {\n\t\tactionListener = AWTEventMulticaster.remove(actionListener, listener);\n\t}", "@Override\n\tpublic void removeActionListener(ActionListener listener) {\n\t\tlisteners.add(listener);\n\t}", "public void removeActionListener(ActionListener listener...
[ "0.73096025", "0.7288091", "0.72166526", "0.7215604", "0.71901536", "0.70568544", "0.6997608", "0.6965081", "0.6840364", "0.67820245", "0.6755805", "0.67318165", "0.6727986", "0.67175347", "0.6702323", "0.66944075", "0.66944075", "0.6692756", "0.6614342", "0.6597982", "0.6590...
0.7999039
0
Returns the editor component's text.
public Object getItem () { return editor.getText (); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAsText() {\n\t\treturn mEditor.getText();\n\t}", "public String getText()\n {\n return getComponent().getText();\n }", "public String getText() {\n return text.getText();\n }", "public String getText() {\n return mTextContainer.getText();\n }", "public String getAs...
[ "0.8229764", "0.81161046", "0.7885672", "0.77844805", "0.7781895", "0.77475446", "0.7727014", "0.77020496", "0.76372564", "0.7619745", "0.7603982", "0.7603982", "0.7603982", "0.7603982", "0.7603982", "0.7603982", "0.7603982", "0.7603982", "0.7603982", "0.7603982", "0.7603982"...
0.0
-1
Sets the editor component's text.
public void setItem (Object anObject) { // TODO: implement (?) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setText(String text) {\r\n this.text = text;\r\n }", "public void setText(String text) {\n mText = text;\n }", "public void setText(String text) {\n this.text = text;\n }", "public void setText(String text) {\n this.text = text;\n }", "public void setText...
[ "0.7456827", "0.74183446", "0.7410928", "0.7410928", "0.7410928", "0.7410928", "0.7410928", "0.7410928", "0.7410928", "0.74011415", "0.7377033", "0.73481315", "0.73481315", "0.73481315", "0.7337715", "0.7333951", "0.7303068", "0.7303068", "0.72768176", "0.72715664", "0.725546...
0.0
-1
System.out.println("remove! offs: "+offs+" len: "+len+" index: "+selectionStartIndex);
public void remove (int offs, int len) throws BadLocationException { super.remove (offs, len); if (offs < selectionStartIndex) { selectionStartIndex -= len; fetchSuggestion (getContent ().getString (0, selectionStartIndex), new SimpleAttributeSet (), getCaretPosition ()); } else { component.getHighlighter ().removeAllHighlights (); super.remove (offs, getLength () - offs); } if (offs > selectionStartIndex) selectionStartIndex = getLength (); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeAccessibleSelection(int i) {\n // To be fully implemented in a future release\n }", "private void cmd_deleteSelection(){\n\t\tm_frame.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));\n\t\tif (ADialog.ask(getWindowNo(), m_frame.getContainer(), \"DeleteSelection\"...
[ "0.6474258", "0.64441425", "0.6310447", "0.62700665", "0.6234348", "0.61933345", "0.6185556", "0.6164731", "0.6146027", "0.6146027", "0.6146027", "0.6140435", "0.61403215", "0.6123749", "0.61220443", "0.6092652", "0.60871124", "0.6079389", "0.6072222", "0.59892964", "0.598388...
0.68438566
0
test if 2 board cards in connectors
private boolean isValidConnectors() { int countBoardCardInConnectors = 0; for (CardModel cardModel : boardModel.getCards()) { if (connectors.contains(cardModel)) { countBoardCardInConnectors++; } } return (countBoardCardInConnectors == 2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean twoCornersWithSameColor(OthelloBitBoard board) {\r\n\t\tlong playerBoard = board.getBitBoardOf(playerColor);\r\n\t\tlong opponentBoard = board.getBitBoardOf(opponentColor);\r\n\t\treturn Long.bitCount(playerBoard & CORNER_MASK) > 1 || Long.bitCount(opponentBoard & CORNER_MASK) > 1;\r\n\t}", "priv...
[ "0.72183764", "0.656621", "0.65658194", "0.6560246", "0.65348744", "0.64936376", "0.64832336", "0.63846225", "0.6354232", "0.63169086", "0.63096726", "0.63095534", "0.62934774", "0.62893707", "0.6246251", "0.62462217", "0.6235617", "0.62315583", "0.6231146", "0.6224769", "0.6...
0.74016845
0
Get the subversion revision number for the root directory
public static String getRevision() { return annotation != null ? annotation.revision() : "Unknown"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "long getCurrentRevision();", "long currentRevision();", "public String getRevision() {\n return RevisionUtils.extract(\"$Revision$\");\n }", "public String getRevision() {\n return RevisionUtils.extract(\"$Revision: 8034 $\");\n }", "public String getRevision() {\n\t\treturn RevisionUtils.extract(\...
[ "0.6944766", "0.6814393", "0.6576798", "0.6461561", "0.64478916", "0.6428784", "0.6426639", "0.6380765", "0.63756466", "0.6333935", "0.63242924", "0.6320922", "0.6308415", "0.6308415", "0.6293745", "0.6272445", "0.6271427", "0.6252914", "0.62282944", "0.6208923", "0.6129775",...
0.6025447
26
The date that the code was compiled.
public static String getDate() { return annotation != null ? annotation.date() : "Unknown"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static final Date getBuildDate() { return buildDate; }", "public static final Date getBuildDate() { return buildDate; }", "public static String getBuildDate() {\r\n return getJarInfo(\"BuildDate\");\r\n }", "public static String getBuildDate() {\n return mBuildDate;\n }", "publ...
[ "0.75056165", "0.75056165", "0.747529", "0.7317495", "0.71982133", "0.7096684", "0.70921504", "0.69865775", "0.685602", "0.6804749", "0.6791724", "0.66847694", "0.66847694", "0.6681836", "0.66780114", "0.66780114", "0.66607565", "0.6632672", "0.6615517", "0.66032624", "0.6587...
0.64553374
35
The user that compiled the code.
public static String getUser() { return annotation != null ? annotation.user() : "Unknown"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getUser();", "@DISPID(5)\r\n\t// = 0x5. The runtime will prefer the VTID if present\r\n\t@VTID(9)\r\n\tjava.lang.String executionUser();", "String getUser();", "String getUser();", "public String getUser() {\n\t\t\t\treturn null;\r\n\t\t\t}", "public static String getUser() {\r\n ...
[ "0.6949656", "0.6701541", "0.6692929", "0.6692929", "0.646543", "0.64520335", "0.6440567", "0.6397128", "0.63912004", "0.63865596", "0.6374456", "0.63334095", "0.63334095", "0.6310631", "0.6296632", "0.62929124", "0.62754434", "0.626349", "0.6252351", "0.62427616", "0.6229527...
0.65552884
4
Get the subversion URL for the root directory.
public static String getUrl() { return annotation != null ? annotation.url() : "Unknown"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getRootServerBaseUrl();", "public URL getRootDirURL() {\n\t\treturn null;\n\t}", "private String getRootUrl(String path){\n return \"http://localhost:\" + port + \"/api/v1\" + path;\n }", "public static String getBaseURL()\r\n {\r\n String savedUrl = P.getChoreoServicesUrl();\r\n ...
[ "0.7320868", "0.6622358", "0.63474995", "0.63453686", "0.632105", "0.632105", "0.62867624", "0.6282433", "0.6077583", "0.59545904", "0.5888248", "0.58281875", "0.5826474", "0.57968307", "0.5763035", "0.576151", "0.57100207", "0.5697264", "0.5690275", "0.564304", "0.5618862", ...
0.0
-1
Constructing the endofstream states for a task
EndOfStreamStates(Set<SystemStreamPartition> ssps, Map<SystemStream, Integer> producerTaskCounts) { Map<SystemStreamPartition, EndOfStreamState> states = new HashMap<>(); ssps.forEach(ssp -> { states.put(ssp, new EndOfStreamState(producerTaskCounts.getOrDefault(ssp.getSystemStream(), 0))); }); this.eosStates = Collections.unmodifiableMap(states); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void writeState() {\n Throwable th;\n String str;\n String str2;\n IOException e;\n IOException e2;\n List<AppOpsManager.PackageOps> allOps;\n Throwable th2;\n String lastPkg;\n List<AppOpsManager.PackageOps> allOps2;\n String lastPkg2;\n...
[ "0.5122033", "0.50732744", "0.50602615", "0.49572542", "0.49552542", "0.49486542", "0.4932807", "0.491831", "0.48510915", "0.474434", "0.47058773", "0.47016895", "0.46998477", "0.46904007", "0.46886533", "0.4671981", "0.46549606", "0.46412182", "0.46318248", "0.4630204", "0.4...
0.57636774
0
methode de changement de feu TODO Autogenerated method stub
private void changer() { try { while (true) { Thread.sleep(1000); vfeu1.lock(); vfeu2.lock(); if(r.feu==1) { //if(r.x>=100 && r.x<400) if(r.x>=100 && r.x<200) { cf1.await(); } r.img= ImageIO.read(new File("C:/Users/Anonyme/Tutorials/DAC_Controle_Carrefour/src/Carrefour/route.png")); r.img1=ImageIO.read(new File("C:/Users/Anonyme/Tutorials/DAC_Controle_Carrefour/src/Carrefour/pietonvert.png")); r.img2= ImageIO.read(new File("C:/Users/Anonyme/Tutorials/DAC_Controle_Carrefour/src/Carrefour/pietonrouge.png")); r.feu=2; }else { //if(r.y>=120 && r.y<300) if(r.y>=200 && r.y<300) { cf2.await(); } r.img= ImageIO.read(new File("C:/Users/Anonyme/Tutorials/DAC_Controle_Carrefour/src/Carrefour/route.png")); r.img1=ImageIO.read(new File("C:/Users/Anonyme/Tutorials/DAC_Controle_Carrefour/src/Carrefour/pietonrouge.png")); r.img2= ImageIO.read(new File("C:/Users/Anonyme/Tutorials/DAC_Controle_Carrefour/src/Carrefour/pietonvert.png")); r.feu=1; } r.repaint(); vfeu1.unlock(); vfeu2.unlock(); } } catch (InterruptedException | IOException e) { // TODO Auto-generated catch block e.printStackTrace(); }finally { } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void ent...
[ "0.7105412", "0.7044518", "0.6969061", "0.69166267", "0.6912323", "0.69109434", "0.68877155", "0.68140817", "0.67795485", "0.671106", "0.67058134", "0.6662974", "0.6640618", "0.66299284", "0.66278356", "0.660587", "0.65926147", "0.6567011", "0.6526141", "0.651777", "0.651777"...
0.0
-1
faire appeler la methode changer TODO Autogenerated method stub
@Override public void run() { changer(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void alterar() {\n\t\t\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void verarbeite() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void changerJoueur() {\r\n\t\t...
[ "0.7353673", "0.7339584", "0.72834885", "0.71322876", "0.7105825", "0.70795083", "0.69431156", "0.6930113", "0.69262344", "0.69218594", "0.6910437", "0.6823489", "0.68058556", "0.6805822", "0.67839754", "0.67264074", "0.67244256", "0.67207503", "0.6684952", "0.66270506", "0.6...
0.0
-1
TODO Autogenerated method stub
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mType = getArguments() != null ? getArguments().getInt(TYPE) : 1; switch (mType) { case 0: infoContent = getString(R.string.outline); break; case 1: infoContent = getString(R.string.mamber); break; case 2: infoContent = getString(R.string.schedule); break; case 3: infoContent = getString(R.string.rest); break; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View mInfoView = (View) inflater.inflate(R.layout.layout_infopager, container, false); tvInfoContent = (TextView) mInfoView.findViewById(R.id.tv_meetinginfo); return mInfoView; }
{ "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
TODO Autogenerated method stub
@Override public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); tvInfoContent.setText(infoContent); }
{ "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
Post Mapping to Add new Service
@RequestMapping(value = "/restAddNewService", method = { RequestMethod.POST }) public ResponseEntity<JsonResponse<Object>> restAddNewService( @RequestBody RestServiceMasterModel serviceMaster) { logger.info("Method : restAddNewService starts"); logger.info("Method : restAddNewService endss"); return serviceDao.restAddNewService(serviceMaster); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract T addService(ServerServiceDefinition service);", "void addService(ServiceInfo serviceInfo);", "com.soa.SolicitarServicioDocument.SolicitarServicio addNewSolicitarServicio();", "void addService(Long orderId, Long serviceId);", "@RequestMapping(\"/createService1\")\n\tpublic String addService...
[ "0.7117163", "0.69286096", "0.65292686", "0.64556533", "0.63443166", "0.6322752", "0.6301707", "0.62995684", "0.62675816", "0.6261395", "0.6214831", "0.6212898", "0.62119734", "0.61459094", "0.6128285", "0.60863674", "0.60812014", "0.6068636", "0.60037845", "0.60024756", "0.5...
0.6623493
2
returns particular HouseKeeping Task to view/edit
@RequestMapping(value = "/viewServiceModal", method = { RequestMethod.GET }) public ResponseEntity<JsonResponse<RestServiceMasterModel>> viewServiceModal(@RequestParam("id") String id) { logger.info("Method : viewServiceModal starts"); logger.info("Method : viewServiceModal ends"); return serviceDao.viewServiceModal(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Task getTask(Integer tid);", "public Task getTask(String taskId) throws DaoException, DataObjectNotFoundException\r\n {\n dao = (TaskManagerDao) getDao();\r\n Task task = dao.selectTask(taskId);\r\n ResourceManager rm = (ResourceManager)Application.getInstance().getModule(ResourceManag...
[ "0.64821136", "0.6440155", "0.636281", "0.6218307", "0.61998564", "0.61395264", "0.61360335", "0.6100134", "0.60904425", "0.6089304", "0.6087423", "0.60746413", "0.60565555", "0.5974407", "0.5963078", "0.5952258", "0.5951971", "0.5938281", "0.59082747", "0.5892572", "0.585970...
0.0
-1
Mapping from user string to field type
public static FieldType fromString(String s) { if (s!=null) for (FieldType t : FieldType.values()) if (s.equalsIgnoreCase(t.name)) return t; return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface DBTypeMapper {\n public String getDBTypeName(Field field);\n}", "private static String mapType(final FieldType.Type type) {\n switch (type) {\n case DATE:\n return \"Date\";\n case INTEGER:\n return \"Integer\";\n case REAL:\n retur...
[ "0.69552064", "0.68932134", "0.66122067", "0.66084015", "0.6516554", "0.62693363", "0.62485844", "0.6232236", "0.6119401", "0.6115821", "0.6113755", "0.60815555", "0.60202104", "0.60202104", "0.60202104", "0.60202104", "0.60202104", "0.60202104", "0.60202104", "0.60202104", "...
0.60842913
11
Retrieves a suited statement input for the given statement (or statement fraction) based on the current selection. Should be extended once new statement input widgets are available.
public static FStatementInput guessStatementInput(String id, Resource s, URI p, Value o, boolean deletable) { if (p!=null) { ReadDataManager dm = EndpointImpl.api().getDataManager(); if (dm.isObjectProperty(s,p)) return uriInput(id,s,p,o,deletable); else if (dm.isDatatypeProperty(s,p)) return literalInput(id,s,p,o,deletable,LiteralType.TYPE_NORMAL); } // no suitable statement input found return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected SelectionText input() {\n return inputter;\n }", "public static FStatementInput getStatementInput(String id, Resource s,\n URI p, Value o, boolean deletable, FieldType type, String query, \n List<Value> values, Repository rep)\n {\n FieldType internalType = typ...
[ "0.5533671", "0.5245862", "0.5020471", "0.48267677", "0.4751867", "0.47408003", "0.47258526", "0.4661734", "0.462931", "0.46252477", "0.46216878", "0.45981017", "0.45951635", "0.4572538", "0.4546645", "0.44962928", "0.44893387", "0.44766968", "0.4469761", "0.44539866", "0.443...
0.514887
2
Retrieves a statement input for the given statement (or statement fraction) and the specified field type. If type==FieldType.ONTOLOGY, the type (either FieldType.LITERAL or FieldType.URI) is inferred from the ontology (using URI as a default).
public static FStatementInput getStatementInput(String id, Resource s, URI p, Value o, boolean deletable, FieldType type, String query, List<Value> values, Repository rep) { FieldType internalType = type; if (type==FieldType.ONTOLOGY && p!=null) { ReadDataManager dm = EndpointImpl.api().getDataManager(); if (dm.isObjectProperty(s,p)) internalType=FieldType.INPUT_URI; else internalType=FieldType.INPUT_LITERAL; } switch (internalType) { case INPUT_LITERAL: return literalInput(id,s,p,o,deletable,LiteralType.TYPE_NORMAL); case INPUT_TEXT: return literalInput(id,s,p,o,deletable,LiteralType.TYPE_TEXT); case INPUT_LITERAL_DATE: return dateInput(id,s,p,o,deletable); case DROPDOWN: return comboboxInput(id,s,p,o,deletable,query,values,rep); case INPUT_URI: default: return uriInput(id,s,p,o,deletable,query); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static ValueSource getValueSource(String field, Type type) {\n if (type == Type.BYTE) {\n return new ByteFieldSource(field);\n }\n if (type == Type.SHORT) {\n return new ShortFieldSource(field);\n }\n if (type == Type.INT) {\n return new IntFieldSource(field);\n }\n if (...
[ "0.5330098", "0.5077173", "0.47051764", "0.4629288", "0.4574918", "0.45346132", "0.4511236", "0.45060754", "0.44963354", "0.44899812", "0.44684315", "0.4447519", "0.4423926", "0.44053158", "0.43633434", "0.43615428", "0.43591315", "0.43016198", "0.42991784", "0.42965743", "0....
0.5946359
0
Returns a literal input form for the given configuration. May return null if the configuration is invalid (e.g., the passed object is a URI).
public static FLiteralStatementInput literalInput(String id, Resource s, URI p, Value o, boolean deletable, LiteralType type) { try { Literal oLiteral=null; if (o!=null) oLiteral=(Literal)o; return new FLiteralStatementInput(id,s,p,oLiteral,deletable,type); } catch (ClassCastException e) { logger.warn("Cannot construct literal input form:" + e.getMessage()); return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.google.cloud.documentai.v1beta2.InputConfig getInputConfig();", "com.google.cloud.dialogflow.v2.InputConfig getInputConfig();", "com.google.cloud.documentai.v1beta2.InputConfigOrBuilder getInputConfigOrBuilder();", "com.google.cloud.dialogflow.v2.InputConfigOrBuilder getInputConfigOrBuilder();", "Input...
[ "0.56291515", "0.5286935", "0.5124574", "0.49349955", "0.49051479", "0.476951", "0.47134092", "0.4497192", "0.44815373", "0.4427887", "0.4400108", "0.43897298", "0.4384627", "0.43670604", "0.43268418", "0.43029606", "0.42791265", "0.42474157", "0.4244364", "0.42393562", "0.42...
0.49062198
4
Returns a literal date input form for the given configuration. May return null if the configuration is invalid (e.g., the passed object is a URI).
public static FDateStatementInput dateInput(String id, Resource s, URI p, Value o, boolean deletable) { try { Literal oLiteral=null; if (o!=null) oLiteral=(Literal)o; return new FDateStatementInput(id,s,p,oLiteral,deletable); } catch (ClassCastException e) { logger.warn("Cannot construct date literal input form:" + e.getMessage()); return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "DateLiteral createDateLiteral();", "public interface DatePropertySchema {\n /**\n * Returns source date format\n * @return Source date format\n */\n DateFormat getSourceDateFormat();\n\n /**\n * Returns display date format\n * @return Display date format\n */\n DateFormat getD...
[ "0.5316213", "0.52554023", "0.51532364", "0.5043379", "0.50409484", "0.5011582", "0.48998123", "0.48351508", "0.47874722", "0.47866017", "0.47654688", "0.47608027", "0.4701695", "0.46358642", "0.46224624", "0.46183383", "0.46119943", "0.45936853", "0.45885542", "0.45822054", ...
0.5273592
1
Returns a URI input form for the given configuration. May return null if the configuration is invalid (e.g., the passed object is a literal).
public static FURIStatementInput uriInput(String id, Resource s, URI p, Value o, boolean deletable) { return uriInput(id,s,p,o,deletable,null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getFormUri();", "com.google.protobuf.ByteString\n getFormUriBytes();", "public static String substitueForURL(EditConfigurationVTwo configuration, MultiValueEditSubmission submission){\n \n List<String> entToReturnTo = new ArrayList<String>(1);\n entToReturnTo.add(conf...
[ "0.61818147", "0.52479494", "0.51381373", "0.49818", "0.488523", "0.47855258", "0.47855258", "0.4709214", "0.4687558", "0.46702027", "0.46700677", "0.46127713", "0.45751154", "0.45626655", "0.45579398", "0.45534253", "0.45205373", "0.45146322", "0.44951737", "0.44658017", "0....
0.4646329
11
Returns a dropdownbased input form for the given configuration. May return null if the configuration is invalid.
public static FStatementInput comboboxInput(String id, Resource s, URI p, Value o, boolean deletable, String query, List<Value> values, Repository rep) { return new FComboboxInput(id,s,p,o,deletable,query,values,rep); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ConfigurationForm getConfigForm()\n {\n return configForm;\n }", "public Component getConfigFormPanel()\n {\n if (configFormPanel == null)\n {\n Object form = configForm.getForm();\n if ((form instanceof Component) == false)\n {\n ...
[ "0.5884574", "0.5412889", "0.48319927", "0.47448197", "0.47401002", "0.47014093", "0.46292093", "0.46082565", "0.46006083", "0.45530623", "0.4533731", "0.45012754", "0.44973502", "0.44786593", "0.446653", "0.44633454", "0.44375646", "0.44218567", "0.4416011", "0.44156098", "0...
0.0
-1
Convenience method to save a list of input statement into a new context, while deleting old statement that have become invalid (e.g. because they have been deleted or changed in some FStatementInput field).
public static Context saveStatementInputs(Repository rep, List<Statement> addStmts, List<Statement> remStmts, List<Pair<Statement,Statement>> changeList, ContextLabel contextLabel) throws Exception { Context context = Context.getFreshUserContext(contextLabel); ReadWriteDataManager dm = ReadWriteDataManagerImpl.openDataManager(rep); RequestMapper rm = EndpointImpl.api().getRequestMapper(); // collect add and remove list arising from change list List<Statement> remByChange = new ArrayList<Statement>(); List<Statement> addByChange = new ArrayList<Statement>(); for (Pair<Statement,Statement> pair : changeList) { remByChange.add(pair.fst); addByChange.add(pair.snd); } // next we record the deleted/changed statements that // have been changed by someone else in meantime List<Statement> allRemStmts = new ArrayList<Statement>(); allRemStmts.addAll(remStmts); allRemStmts.addAll(remByChange); List<Statement> concurrentlyRemovedStmts = new ArrayList<Statement>(); for (Statement stmt : allRemStmts) { try { List<Statement> existingStmts = dm.getStatements(stmt.getSubject(), stmt.getPredicate(), stmt.getObject(), false).asList(); boolean existsInEditableContext = false; for (Statement existingStmt : existingStmts) { existsInEditableContext |= dm.isEditableStatement(existingStmt); if (existsInEditableContext) break; } if (!existsInEditableContext) concurrentlyRemovedStmts.add(stmt); } catch (Exception e) { logger.error(e.getMessage(),e); } } // next we record the added statements that are already present // (e.g., have been added by another user before) // have been changed by someone else in meantime List<Statement> allAddStmts = new ArrayList<Statement>(); allAddStmts.addAll(addStmts); allAddStmts.addAll(addByChange); List<Statement> previouslyAddedStmts = new ArrayList<Statement>(); for (Statement stmt : allAddStmts) { try { List<Statement> existingStmts = dm.getStatements(stmt.getSubject(), stmt.getPredicate(), stmt.getObject(), false).asList(); boolean existsInEditableContext = false; for (Statement existingStmt : existingStmts) { existsInEditableContext |= dm.isEditableStatement(existingStmt); if (existsInEditableContext) break; } if (existsInEditableContext) previouslyAddedStmts.add(stmt); } catch (Exception e) { logger.error(e.getMessage(),e); } } StringBuilder concurrentErrorMessage = new StringBuilder(); // "" means no error // now we remove the remove statements (not including the change list)... for (Statement s : remStmts) { if (concurrentlyRemovedStmts.contains(s)) { String pVal = rm.getReconvertableUri(s.getPredicate(),false); String oVal = (s.getObject() instanceof URI) ? rm.getReconvertableUri((URI)s.getObject(),false) : s.getObject().stringValue(); concurrentErrorMessage.append( "<li>Value-property pair " + pVal + " -&gt; " + oVal + " has been deleted/modified by another user in meantime.</li>"); } else dm.removeInEditableContexts(s, context); } // ... and add the add statements (not including the change list) ... Set<URI> uris = new HashSet<URI>(); for (Statement s : addStmts) { if (previouslyAddedStmts.contains(s)) { String pVal = rm.getReconvertableUri(s.getPredicate(),false); String oVal = (s.getObject() instanceof URI) ? rm.getReconvertableUri((URI)s.getObject(),false) : ((Literal)(s.getObject())).getLabel(); concurrentErrorMessage.append( "<li>Value-property pair " + pVal + " -&gt; " + oVal + " is already present (will not be added again).</li>"); } else { dm.addToContext(s,context); uris.add((URI)s.getSubject()); } } // ... and finally process the change list for (Pair<Statement,Statement> change : changeList) { if (concurrentlyRemovedStmts.contains(change.fst)) { String pValOld = rm.getReconvertableUri(change.fst.getPredicate(),false); String oValOld = (change.fst.getObject() instanceof URI) ? rm.getReconvertableUri((URI)change.fst.getObject(),false) : ((Literal)(change.fst.getObject())).getLabel(); String pValNew = rm.getReconvertableUri(change.snd.getPredicate(),false); String oValNew = (change.snd.getObject() instanceof URI) ? rm.getReconvertableUri((URI)change.snd.getObject(),false) : ((Literal)(change.snd.getObject())).getLabel(); concurrentErrorMessage.append( "<li>Value-property pair <i>" + pValOld + "</i> -&gt; <i>" + oValOld + "</i> has been deleted/modified by another user in meantime. " + "Your change to the new value-property pair <i>" + pValNew + "</i> -&gt; <i>" + oValNew + "</i> will not be propagated.</li>"); } else if (previouslyAddedStmts.contains(change.snd)) { String pValOld = rm.getReconvertableUri(change.fst.getPredicate(),false); String oValOld = (change.fst.getObject() instanceof URI) ? rm.getReconvertableUri((URI)change.fst.getObject(),false) : ((Literal)(change.fst.getObject())).getLabel(); String pValNew = rm.getReconvertableUri(change.snd.getPredicate(),false); String oValNew = (change.snd.getObject() instanceof URI) ? rm.getReconvertableUri((URI)change.snd.getObject(),false) : ((Literal)(change.snd.getObject())).getLabel(); concurrentErrorMessage.append( "<li>Your requested change from <i>" + pValOld + "</i> -&gt; <i>" + oValOld + "</i> to <i>" + pValNew + "</i> -&gt; <i>" + oValNew + "</i> will not be" + "propagated: the new value-property pair is already present in the database.</li>"); } else { dm.removeInEditableContexts(change.fst, context); dm.addToContext(change.snd,context); uris.add((URI)change.snd.getSubject()); } } dm.close(); // update wiki page // attention: order in which we update the semantic links matters KeywordIndexAPI.removeSemanticLinks(remStmts); KeywordIndexAPI.changeSemanticLinks(changeList); KeywordIndexAPI.removeSemanticLinks(remByChange); // update keyword index try { for (URI u : uris) KeywordIndexAPI.replaceKeywordIndexEntry(u); } catch (Exception e) { logger.error(e.getMessage(), e); } // pass warning that not everything went fine to caller if (concurrentErrorMessage.length()>0) { String msg = "Parts of the requested data changes have not been stored because they are conflicting:<br>"; msg += "<ul>"; msg += concurrentErrorMessage.toString(); msg += "</ul><br>"; msg += "These changes will not take effect.<br/><br/>"; throw new Exception(msg); } return context; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void addStatements(List<Statement> statements) throws LpException {\n outputRdf.execute((connection) -> {\n connection.add(statements);\n });\n statements.clear();\n }", "void saveStudents(ArrayList<Student> studentList) throws SQLException {\n clearTable(\"Stude...
[ "0.54586625", "0.5352371", "0.5275756", "0.5252065", "0.5205374", "0.5137684", "0.5132486", "0.51065195", "0.50995386", "0.50392294", "0.50187606", "0.49659806", "0.49655008", "0.49226716", "0.4915211", "0.4874225", "0.4861103", "0.4851574", "0.48218644", "0.4805643", "0.4782...
0.6512007
0
Creates new form doimatkhau
public doimatkhau() { initComponents(); setLocationRelativeTo(null); txtTendangnhap.setText(sharehelper.user.getMaNV()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "FORM createFORM();", "public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }", "public static void create(Formulario form){\n daoFormulario.create(form);\n }", "public FormInserir() {\n initComponents();\n }", "@GetMapping(value = \"/cr...
[ "0.73257816", "0.7030423", "0.6847733", "0.6733172", "0.6489525", "0.644674", "0.6390815", "0.6368969", "0.63140327", "0.6297381", "0.6296374", "0.62864935", "0.6269486", "0.62609625", "0.62596196", "0.6233296", "0.62209606", "0.62007666", "0.61961174", "0.61890274", "0.61779...
0.0
-1
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); txtTendangnhap = new javax.swing.JTextField(); jLabel3 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); jPanel1 = new javax.swing.JPanel(); btnThoat = new javax.swing.JButton(); btnLuu = new javax.swing.JButton(); jLabel5 = new javax.swing.JLabel(); txtMatkhaumoi = new javax.swing.JPasswordField(); txtNhaplaimatkhaumoi = new javax.swing.JPasswordField(); txtMatkhaucu = new javax.swing.JPasswordField(); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); setTitle("Đổi mật khẩu"); setResizable(false); jLabel1.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N jLabel1.setForeground(new java.awt.Color(204, 0, 0)); jLabel1.setText("Đổi mật khẩu"); jLabel2.setFont(new java.awt.Font("Tahoma", 1, 16)); // NOI18N jLabel2.setText("Tên đăng nhập"); txtTendangnhap.setEditable(false); jLabel3.setFont(new java.awt.Font("Tahoma", 1, 16)); // NOI18N jLabel3.setText("Mật khẩu cũ"); jLabel4.setFont(new java.awt.Font("Tahoma", 1, 16)); // NOI18N jLabel4.setText("Mật khẩu mới"); jPanel1.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.LOWERED, null, java.awt.Color.lightGray, null, null)); btnThoat.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N btnThoat.setForeground(new java.awt.Color(0, 0, 204)); btnThoat.setIcon(new javax.swing.ImageIcon(getClass().getResource("/hinh/thoat.png"))); // NOI18N btnThoat.setText("Thoát"); btnThoat.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnThoatActionPerformed(evt); } }); btnLuu.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N btnLuu.setForeground(new java.awt.Color(51, 51, 255)); btnLuu.setIcon(new javax.swing.ImageIcon(getClass().getResource("/hinh/save.png"))); // NOI18N btnLuu.setText("Lưu"); btnLuu.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnLuuActionPerformed(evt); } }); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() .addGap(40, 40, 40) .addComponent(btnLuu, javax.swing.GroupLayout.PREFERRED_SIZE, 132, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 78, Short.MAX_VALUE) .addComponent(btnThoat, javax.swing.GroupLayout.PREFERRED_SIZE, 145, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(48, 48, 48)) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(btnThoat) .addComponent(btnLuu)) .addContainerGap(15, Short.MAX_VALUE)) ); jLabel5.setFont(new java.awt.Font("Tahoma", 1, 16)); // NOI18N jLabel5.setText("Nhập lại mật khẩu mới"); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addContainerGap(116, Short.MAX_VALUE) .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(87, 87, 87)) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(41, 41, 41) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel2) .addComponent(jLabel3) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(jLabel5, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel4, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))) .addGap(57, 57, 57) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(txtTendangnhap, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(txtMatkhaumoi, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(txtNhaplaimatkhaumoi, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 332, Short.MAX_VALUE) .addComponent(txtMatkhaucu, javax.swing.GroupLayout.Alignment.LEADING))) .addGroup(layout.createSequentialGroup() .addGap(242, 242, 242) .addComponent(jLabel1))) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(jLabel1) .addGap(32, 32, 32) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel2) .addComponent(txtTendangnhap, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel3) .addComponent(txtMatkhaucu, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel4) .addComponent(txtMatkhaumoi, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel5) .addComponent(txtNhaplaimatkhaumoi, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(26, 26, 26) .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(68, Short.MAX_VALUE)) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.732017", "0.7291279", "0.7291279", "0.7291279", "0.7286003", "0.7249014", "0.721411", "0.720819", "0.7196242", "0.7190395", "0.71849346", "0.7159721", "0.7148069", "0.70934445", "0.7079763", "0.7056577", "0.6987638", "0.6978011", "0.69549644", "0.69530493", "0.6945049", ...
0.0
-1
return the unit the user wants to convert from
public String getFromUnit() { return this.fromUnit; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getUnit() {\n String unit = (String) comboUnits.getSelectedItem();\n if (\"inch\".equals(unit)) {\n return \"in\";\n } else if (\"cm\".equals(unit)) {\n return \"cm\";\n } else if (\"mm\".equals(unit)) {\n return...
[ "0.8126267", "0.7846166", "0.76446784", "0.7582117", "0.7440303", "0.7414013", "0.7373712", "0.7360317", "0.72994536", "0.72994536", "0.72994536", "0.72398", "0.72398", "0.72398", "0.7226537", "0.7187867", "0.7171545", "0.7124142", "0.7113863", "0.70872486", "0.7042483", "0...
0.7326883
8
return the unit the user wants to convert to
public String getToUnit() { return this.toUnit; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getUnit() {\n String unit = (String) comboUnits.getSelectedItem();\n if (\"inch\".equals(unit)) {\n return \"in\";\n } else if (\"cm\".equals(unit)) {\n return \"cm\";\n } else if (\"mm\".equals(unit)) {\n return...
[ "0.8193303", "0.79507405", "0.77497107", "0.7617496", "0.75329214", "0.74850714", "0.7455411", "0.7412711", "0.7412711", "0.7412711", "0.73598236", "0.73598236", "0.73598236", "0.73383707", "0.7258368", "0.7248093", "0.7245452", "0.72442627", "0.7207171", "0.71632016", "0.712...
0.771519
3
return the value the user wants to convert
public double getValue() { return this.value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String makeConversion(String value);", "private void convert() {\n\t\t//first we have to get the input from textField to covert it\n\t\tString input = inputText.getText(); //caz getText() returns anything in String only.\n\t\tfloat enteredTemperature = 0.0f;\n\t\ttry {\n\t\t\tenteredTemperature = Float.pa...
[ "0.7082969", "0.69562924", "0.62936044", "0.6170407", "0.61566925", "0.61381227", "0.61381227", "0.61381227", "0.61381227", "0.61381227", "0.61381227", "0.61381227", "0.61381227", "0.61381227", "0.61381227", "0.607115", "0.6049937", "0.6030006", "0.6011591", "0.59848976", "0....
0.0
-1
Ask for conversion input
public void userInput() { System.out.println("You want to convert from:"); this.fromUnit = in.nextLine(); System.out.print("to: "); this.toUnit = in.nextLine(); System.out.print("The value is "); this.value = in.nextDouble(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getInput();", "String userInput(String question);", "public static void main(String[] args) {\n byte conversionType;\n String inputType = new String();\n String resultType = new String();\n double initialValue = 0.0;\n double convertedValue = 0.0;\n Scanner user...
[ "0.61579376", "0.61397076", "0.59777457", "0.595461", "0.59214187", "0.59106684", "0.58353686", "0.57809246", "0.57357216", "0.56966597", "0.56630194", "0.56579494", "0.5643268", "0.56030786", "0.5592029", "0.55881315", "0.55869687", "0.5574675", "0.5574675", "0.5574675", "0....
0.6688338
0
Created by harry on 20161214.
public interface DogRepository { void createDog(String name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r...
[ "0.6037366", "0.5877756", "0.58342373", "0.5825212", "0.5794569", "0.5794569", "0.57460505", "0.5732318", "0.56976545", "0.56962645", "0.5688753", "0.5677469", "0.5677469", "0.5677469", "0.5677469", "0.5677469", "0.5663606", "0.5657464", "0.5657037", "0.5644917", "0.5617377",...
0.0
-1
This is the localhome interface for TestingEntity enterprise bean.
public interface TestingEntityLocalHome extends javax.ejb.EJBLocalHome { /** * */ test.TestingEntityLocal findByPrimaryKey(java.lang.String key) throws javax.ejb.FinderException; /** * */ test.TestingEntityLocal create(java.lang.String key) throws javax.ejb.CreateException; TestingEntityLocal createTest1() throws CreateException; TestingEntityLocal createTest2(String a, int b) throws CreateException, IOException; String homeTestMethod1(); String homeTestMethod2(String a, int b) throws Exception; Collection findByTest1() throws FinderException; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface UserEntityHome extends javax.ejb.EJBLocalHome {\n\n /**\n * Creates a new <code>UserEntity</code> record in the database.\n *\n * @param userId the id of user\n * @return the newly created UserEntity\n * @throws CreateException if the new record cannot be created in the database\n */\...
[ "0.671022", "0.66476756", "0.6635967", "0.6620837", "0.66038007", "0.65720546", "0.6566546", "0.6505217", "0.64540416", "0.63923454", "0.63433033", "0.6323491", "0.6286878", "0.6280265", "0.6270845", "0.6199704", "0.6186709", "0.61557525", "0.613579", "0.6123724", "0.6089756"...
0.78037757
0
Created by vgusev on 14.04.2016.
public interface DocumentParameterRepository extends JpaRepository<DocumentParameterEntity, Long> { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\tpubli...
[ "0.5896068", "0.58895266", "0.5670302", "0.56325", "0.5565991", "0.5556839", "0.5527284", "0.5527284", "0.55244744", "0.5476952", "0.54709053", "0.54530734", "0.5447845", "0.5443813", "0.54280734", "0.54201615", "0.5415817", "0.54106694", "0.54106694", "0.54106694", "0.541066...
0.0
-1
Inject fields of an activity.
@SafeVarargs public static void inject(final Activity activity, final Bundle savedInstanceState, final Class<? extends Annotation>... annotationClasses) throws KerException { // - Retrieve object's fields. final Field[] objectFields = KerAnnotation.retrieveAllFields(activity); // - For each annotations. for (final Class<? extends Annotation> kerAnnotationClass : annotationClasses) { AbstractKerInjector kerInjector; try { // - Retrieve it KerInjector. kerInjector = KerAnnotation.retrieveKerInjector(kerAnnotationClass); // - Try to inject each fields annotated with current annotation in input object using retrieved KerInjector. if (kerInjector.isInjectable(activity, savedInstanceState)) { for (final Field field : objectFields) { if (field.isAnnotationPresent(kerAnnotationClass)) { try { kerInjector.inject(field, activity, savedInstanceState); } catch (final Throwable cause) { throw new KerException("Unable to inject field " + field.getName() + " annotated with " + kerAnnotationClass.getName(), cause); } } } } } catch (final Throwable cause) { throw new KerException("Unable to inject fields annotated with " + kerAnnotationClass.getName(), cause); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void inject(BaseActivity baseActivity);", "void inject(MainActivity activity);", "ActivityFieldData(ActivityField field) {\n\t\t\tthis.field = field;\n\t\t}", "void inject(NyNewsActivity activity);", "public HField(HActivity act) {\n this.act = act;\n if (act != null) {\n act.field...
[ "0.6565762", "0.632102", "0.6298278", "0.6183589", "0.59354115", "0.5821124", "0.58194345", "0.5658458", "0.5630569", "0.5625113", "0.56106406", "0.55645317", "0.55618525", "0.5516383", "0.5513838", "0.5500866", "0.54967326", "0.54788893", "0.546688", "0.54643047", "0.5459528...
0.52418494
46
Handles methods of an activity.
@SafeVarargs public static void handle(final Activity activity, final Class<? extends Annotation>... annotationClasses) throws KerException { // - Retrieve object's methods. final Method[] objectMethods = KerAnnotation.retrieveAllMethods(activity); // - For each annotations. for (final Class<? extends Annotation> kerAnnotationClass : annotationClasses) { AbstractKerHandler kerHandler; try { // - Retrieve it KerHandler. kerHandler = KerAnnotation.retrieveKerHandler(kerAnnotationClass); // - Try to inject each fields annotated with current annotation in input object using retrieved KerInjector. if (kerHandler.isHandleable(activity)) { for (final Method method : objectMethods) { if (method.isAnnotationPresent(kerAnnotationClass)) { try { kerHandler.handle(method, activity); } catch (final Throwable cause) { throw new KerException("Unable to handle method " + method.getName() + " annotated with " + kerAnnotationClass.getName(), cause); } } } } } catch (final Throwable cause) { throw new KerException("Unable to handle method annotated with " + kerAnnotationClass.getName(), cause); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void doActivity();", "@Override\n\tprotected void onHandleIntent(Intent arg0) {\n\t\t\n\t}", "@Override\n\tprotected void onHandleIntent(Intent intent) {\n\n\t}", "private void openActivity() {\n }", "@Override\n protected void onHandleIntent(Intent intent) {\n\n }", "@Override\n protected vo...
[ "0.6585658", "0.6061014", "0.5986484", "0.5922238", "0.5893776", "0.5793652", "0.5787944", "0.5718661", "0.56707484", "0.56657946", "0.5660282", "0.562516", "0.5597538", "0.55947167", "0.5589191", "0.5585632", "0.5508312", "0.549736", "0.5493921", "0.5486041", "0.5471617", ...
0.0
-1
Inject fields of a fragment.
@SafeVarargs public static void inject(final Fragment fragment, final Bundle savedInstanceState, final Class<? extends Annotation>... kerAnnotationClasses) throws KerException { // - Retrieve object's fields. final Field[] objectFields = KerAnnotation.retrieveAllFields(fragment); // - For each annotations. for (final Class<? extends Annotation> kerAnnotationClass : kerAnnotationClasses) { AbstractKerInjector kerInjector; try { // - Retrieve it KerInjector. kerInjector = KerAnnotation.retrieveKerInjector(kerAnnotationClass); // - Try to inject each fields annotated with current annotation in input object using retrieved KerInjector. if (kerInjector.isInjectable(fragment, savedInstanceState)) { for (final Field field : objectFields) { if (field.isAnnotationPresent(kerAnnotationClass)) { try { kerInjector.inject(field, fragment, savedInstanceState); } catch (final Throwable cause) { throw new KerException("Unable to inject field " + field.getName() + " annotated with " + kerAnnotationClass.getName(), cause); } } } } } catch (final Throwable cause) { throw new KerException("Unable to inject fields annotated with " + kerAnnotationClass.getName(), cause); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void injectFragment(FragmentComponent fragmentComponent);", "private void populateFields(AudioFragment fragment) {\n\t name.setText(fragment.getName());\n fileName.setText(fragment.getPath());\n }", "@Override\n\tprotected void initParamsForFragment() {\n\n\t}", "void inject(Movies...
[ "0.6224514", "0.60213995", "0.59066945", "0.5896528", "0.57742125", "0.55081904", "0.5508039", "0.5498229", "0.5391869", "0.53811437", "0.5374776", "0.53067154", "0.53027225", "0.5272714", "0.52552366", "0.5191116", "0.51443976", "0.51443976", "0.51397187", "0.51127106", "0.5...
0.49480107
28
Handles methods of a fragment.
@SafeVarargs public static void handle(final Fragment fragment, final Class<? extends Annotation>... annotationClasses) throws KerException { // - Retrieve object's methods. final Method[] objectMethods = KerAnnotation.retrieveAllMethods(fragment); // - For each annotations. for (final Class<? extends Annotation> kerAnnotationClass : annotationClasses) { AbstractKerHandler kerHandler; try { // - Retrieve it KerHandler. kerHandler = KerAnnotation.retrieveKerHandler(kerAnnotationClass); // - Try to inject each fields annotated with current annotation in input object using retrieved KerInjector. if (kerHandler.isHandleable(fragment)) { for (final Method method : objectMethods) { if (method.isAnnotationPresent(kerAnnotationClass)) { try { kerHandler.handle(method, fragment); } catch (final Throwable cause) { throw new KerException("Unable to handle method " + method.getName() + " annotated with " + kerAnnotationClass.getName(), cause); } } } } } catch (final Throwable cause) { throw new KerException("Unable to handle method annotated with " + kerAnnotationClass.getName(), cause); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void handleFragmentMessage(String arg0, int arg1, Object arg2) {\n\t\t\r\n\t}", "void onFragmentInteraction();", "void onFragmentInteraction();", "void onFragmentInteraction();", "protected abstract void fragmentTrigger(Fragment fragment);", "void onFragmentInteraction(String id);",...
[ "0.69678944", "0.6843415", "0.6843415", "0.6843415", "0.67739606", "0.66562164", "0.65712297", "0.65712297", "0.65712297", "0.65712297", "0.65712297", "0.65712297", "0.65712297", "0.65712297", "0.65712297", "0.65712297", "0.65712297", "0.65712297", "0.65712297", "0.65712297", ...
0.0
-1
Inject fields of a support fragment.
@SafeVarargs public static void inject(final android.support.v4.app.Fragment fragment, final Bundle savedInstanceState, final Class<? extends Annotation>... kerAnnotationClasses) throws KerException { // - Retrieve object's fields. final Field[] objectFields = KerAnnotation.retrieveAllFields(fragment); // - For each annotations. for (final Class<? extends Annotation> kerAnnotationClass : kerAnnotationClasses) { AbstractKerInjector kerInjector; try { // - Retrieve it KerInjector. kerInjector = KerAnnotation.retrieveKerInjector(kerAnnotationClass); // - Try to inject each fields annotated with current annotation in input object using retrieved KerInjector. if (kerInjector.isInjectable(fragment, savedInstanceState)) { for (final Field field : objectFields) { if (field.isAnnotationPresent(kerAnnotationClass)) { try { kerInjector.inject(field, fragment, savedInstanceState); } catch (final Throwable cause) { throw new KerException("Unable to inject field " + field.getName() + " annotated with " + kerAnnotationClass.getName(), cause); } } } } } catch (final Throwable cause) { throw new KerException("Unable to inject fields annotated with " + kerAnnotationClass.getName(), cause); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void injectFragment(FragmentComponent fragmentComponent);", "void inject(MoviesListFragment moviesListFragment);", "void inject(SubscriberDetailsFragment fragment);", "@Override\n\tprotected void initParamsForFragment() {\n\n\t}", "private void initFragmentAutoInjection() {\n Buck...
[ "0.63519853", "0.60980254", "0.5960714", "0.592849", "0.58987427", "0.58165985", "0.57536125", "0.56082016", "0.55387604", "0.55235714", "0.5418017", "0.5391076", "0.5379", "0.53552943", "0.53215694", "0.5294693", "0.52902436", "0.5250404", "0.52341187", "0.52292335", "0.5164...
0.0
-1
Handles methods of a support fragment.
@SafeVarargs public static void handle(final android.support.v4.app.Fragment fragment, final Class<? extends Annotation>... annotationClasses) throws KerException { // - Retrieve object's methods. final Method[] objectMethods = KerAnnotation.retrieveAllMethods(fragment); // - For each annotations. for (final Class<? extends Annotation> kerAnnotationClass : annotationClasses) { AbstractKerHandler kerHandler; try { // - Retrieve it KerHandler. kerHandler = KerAnnotation.retrieveKerHandler(kerAnnotationClass); // - Try to inject each fields annotated with current annotation in input object using retrieved KerInjector. if (kerHandler.isHandleable(fragment)) { for (final Method method : objectMethods) { if (method.isAnnotationPresent(kerAnnotationClass)) { try { kerHandler.handle(method, fragment); } catch (final Throwable cause) { throw new KerException("Unable to handle method " + method.getName() + " annotated with " + kerAnnotationClass.getName(), cause); } } } } } catch (final Throwable cause) { throw new KerException("Unable to handle method annotated with " + kerAnnotationClass.getName(), cause); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onFragmentInteraction();", "void onFragmentInteraction();", "void onFragmentInteraction();", "void OpenFragmentInteraction();", "void onFragmentInteraction(Object ref);", "void onFragmentInteraction(View v);", "void onFragmentInteraction(String mId, String mProductName, String mItemRate, int minte...
[ "0.68502116", "0.68502116", "0.68502116", "0.67535895", "0.6699113", "0.6596706", "0.6586455", "0.657982", "0.654359", "0.65124387", "0.65124387", "0.64855134", "0.64233214", "0.642108", "0.6413755", "0.6404145", "0.6404145", "0.6404145", "0.6404145", "0.6404145", "0.6404145"...
0.0
-1
Retrieve annotation KerInjector from cache or instantiate it if necessary.
public static AbstractKerInjector retrieveKerInjector(final Class<? extends Annotation> annotationClass) throws InstantiationException, IllegalAccessException { AbstractKerInjector kerInjector = null; // - Retrieve remembered KerInjector instance if exists. if (KerAnnotation.kerInjectorInstances.containsKey(annotationClass)) { kerInjector = KerAnnotation.kerInjectorInstances.get(annotationClass); } // - Else instantiate it if necessary else { // - Retrieve KerInjector. final KerInjector kerInjectorAnnotation = annotationClass.getAnnotation(KerInjector.class); final Class<? extends AbstractKerInjector> kerInjectorClass = kerInjectorAnnotation.value(); // - Instantiate it. kerInjector = kerInjectorClass.newInstance(); // - Remember it. KerAnnotation.kerInjectorInstances.put(annotationClass, kerInjector); } return kerInjector; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized Annotator get(String name) {\n CachedAnnotator factory;\n synchronized (factories) {\n factory = this.factories.get(name);\n }\n if (factory == null) {\n throw new IllegalArgumentException(\"No annotator named \" + name);\n }\n Pair<String, String> key = Pair.makePai...
[ "0.6499522", "0.58692396", "0.5554944", "0.54959387", "0.5466436", "0.5405287", "0.53794736", "0.5365053", "0.5363696", "0.5350872", "0.5303627", "0.5295622", "0.51939905", "0.5075521", "0.5070067", "0.50339997", "0.4999602", "0.49934635", "0.4966386", "0.49550378", "0.495413...
0.71624964
0
Retrieve annotation KerHandler from cache or instantiate it if necessary.
public static AbstractKerHandler retrieveKerHandler(final Class<? extends Annotation> annotationClass) throws InstantiationException, IllegalAccessException { AbstractKerHandler kerHandler = null; // - Retrieve remembered KerInjector instance if exists. if (KerAnnotation.kerHandlerInstances.containsKey(annotationClass)) { kerHandler = KerAnnotation.kerHandlerInstances.get(annotationClass); } // - Else instantiate it if necessary else { // - Retrieve KerInjector. final KerHandler kerHandlerAnnotation = annotationClass.getAnnotation(KerHandler.class); final Class<? extends AbstractKerHandler> kerHanderClass = kerHandlerAnnotation.value(); // - Instantiate it. kerHandler = kerHanderClass.newInstance(); // - Remember it. KerAnnotation.kerHandlerInstances.put(annotationClass, kerHandler); } return kerHandler; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized Annotator get(String name) {\n CachedAnnotator factory;\n synchronized (factories) {\n factory = this.factories.get(name);\n }\n if (factory == null) {\n throw new IllegalArgumentException(\"No annotator named \" + name);\n }\n Pair<String, String> key = Pair.makePai...
[ "0.5633673", "0.54328823", "0.5162971", "0.51097536", "0.5096907", "0.5095082", "0.50783753", "0.5046085", "0.5044629", "0.4986095", "0.49558577", "0.4947938", "0.49445406", "0.49284193", "0.49256608", "0.49114835", "0.49042767", "0.48870322", "0.48226157", "0.4751732", "0.47...
0.68838257
0
Save instance state fields into bundle. Must be called from .onSaveInstanceState().
public static void onSaveInstanceState(final Object object, final Bundle outState) throws KerException { // - Retrieve all fields. final Field[] fields = KerAnnotation.retrieveAllFields(object); // - Save instance state fields into new bundle to avoid key conflict. for (final Field field : fields) { // - If field is annotated with @InstanceState. if (field.isAnnotationPresent(InstanceState.class)) { InstanceStateKerInjector.saveInstanceState(field, object, outState); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public void onSaveInstanceState(Bundle outState) {\r\n super.onSaveInstanceState(outState);\r\n // Save Instance State here\r\n }", "@Override\r\n public void onSaveInstanceState(Bundle outState) {\r\n super.onSaveInstanceState(outState);\r\n // Save Instance St...
[ "0.8288904", "0.8288904", "0.82732785", "0.82732785", "0.82732785", "0.82732785", "0.82732785", "0.82732785", "0.82732785", "0.7970238", "0.79002386", "0.7680443", "0.7532615", "0.7532615", "0.7532615", "0.7519098", "0.7500468", "0.7486335", "0.74704856", "0.7460842", "0.7430...
0.69744885
64
Retrieve all fields from object.
private static Field[] retrieveAllFields(final Object object) { Field[] fieldsArray = null; // - Retrieve fields array from cache if exists. if (KerAnnotation.fieldsCache.containsKey(object.getClass())) { fieldsArray = KerAnnotation.fieldsCache.get(object.getClass()); } // - Else get fields and cache them. else { // - Aggregate all annotated fields (declared, inherited, etc.). final Set<Field> fields = new HashSet<Field>(); for (final Field field : object.getClass().getFields()) { if (field.getAnnotations().length > 0) { fields.add(field); } } for (final Field field : object.getClass().getDeclaredFields()) { if (field.getAnnotations().length > 0) { fields.add(field); } } // - Convert set to array. fieldsArray = fields.toArray(new Field[0]); // - Cache array. KerAnnotation.fieldsCache.put(object.getClass(), fieldsArray); } return fieldsArray; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<Field> getAll() {\n\t\treturn null;\n\t}", "List<Field> getFields();", "private void findFields() {\n for(Class<?> clazz=getObject().getClass();clazz != null; clazz=clazz.getSuperclass()) {\r\n\r\n Field[] fields=clazz.getDeclaredFields();\r\n for(Field fie...
[ "0.70561177", "0.6722709", "0.6718249", "0.67163825", "0.6525172", "0.6498672", "0.6451415", "0.64388156", "0.641646", "0.64159495", "0.64106345", "0.6350451", "0.6349394", "0.63433135", "0.6340767", "0.6314904", "0.6226189", "0.6215569", "0.61849165", "0.6142205", "0.6136805...
0.70762604
0
Retrieve all methods from object.
private static Method[] retrieveAllMethods(final Object object) { Method[] methodsArray = null; // - Retrieve methods array from cache if exists. if (KerAnnotation.methodsCache.containsKey(object.getClass())) { methodsArray = KerAnnotation.methodsCache.get(object.getClass()); } // - Else get methods and cache them. else { // - Aggregate all annotated methods (declared, inherited, etc.). final Set<Method> methods = new HashSet<Method>(); for (final Method method : object.getClass().getMethods()) { if (method.getAnnotations().length > 0) { methods.add(method); } } for (final Method method : object.getClass().getDeclaredMethods()) { if (method.getAnnotations().length > 0) { methods.add(method); } } // - Convert set to array. methodsArray = methods.toArray(new Method[0]); // - Cache array. KerAnnotation.methodsCache.put(object.getClass(), methodsArray); } return methodsArray; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<IMethod> getMethods();", "public List<IMethod> getMethods();", "List<Method> getAllMethods();", "ISourceMethod[] getMethods();", "public Enumeration getMethods()\n {\n ensureLoaded();\n return m_tblMethod.elements();\n }", "public List<MethodInfo> getMethods() { ...
[ "0.7688446", "0.7688446", "0.76703143", "0.71745855", "0.7102441", "0.7047016", "0.6985924", "0.69647115", "0.6918402", "0.68201387", "0.6790439", "0.67822677", "0.67683846", "0.6762602", "0.67329305", "0.66250765", "0.66191995", "0.6604834", "0.65675884", "0.65251935", "0.64...
0.7741194
0
Method can be used to read a locally stored raw resource file
protected String readFile(int resourceFile) { Context context = getContext(); if (context != null) { try { InputStream is = context.getResources().openRawResource(resourceFile); return Okio.buffer(Okio.source(is)).readString(Charset.defaultCharset()); } catch (IOException e) { Log.e(TAG, "Failed to read config", e); } } return ""; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String readRawTextFile(int resId) {\r\n InputStream inputStream = main.getResources().openRawResource(resId);\r\n try {\r\n BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream));\r\n StringBuilder sb = new StringBuilder();\r\n String l...
[ "0.7133348", "0.6904487", "0.686349", "0.6814568", "0.6736783", "0.6517561", "0.64734393", "0.6462155", "0.64418083", "0.6438592", "0.6433333", "0.6402235", "0.63634574", "0.6358789", "0.6337002", "0.6333871", "0.6305953", "0.62435216", "0.62194854", "0.6187582", "0.6161879",...
0.7056995
1
View view dans l'argument
public void onGetUserProfileClicked() throws InterruptedException { if (mAccessToken == null) { final Snackbar snackbar = Snackbar.make(findViewById(R.id.activity_spotify), R.string.warning_need_token, Snackbar.LENGTH_SHORT); snackbar.getView().setBackgroundColor(ContextCompat.getColor(this, R.color.colorAccent)); snackbar.show(); return; } sendSearchRequest(); if(items!=null){ myAdapter.setItems(items); trackRecyclerView.setVisibility(View.VISIBLE); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void view();", "View mo73990a(View view);", "@Override\n\tpublic void view() {\n\t\t\n\t}", "public abstract String getView();", "public String getView();", "public String getView();", "StableView view();", "View createView();", "void mo12147a(View view);", "public abstract void viewRun();", "@...
[ "0.7460883", "0.7397152", "0.7196298", "0.70598197", "0.700726", "0.700726", "0.6883627", "0.6861147", "0.6856382", "0.6835168", "0.6742563", "0.67126226", "0.6661265", "0.657405", "0.65608853", "0.65601087", "0.6540197", "0.6504869", "0.6334089", "0.63203716", "0.631528", ...
0.0
-1
Home and log out buttons
@FXML private void logOut() throws IOException { App.clearManagerStatus(); App.setRoot("/tom/sros/login/logInScreen"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void checkToLogout() {\n logout();\n checkToHome();\n drawViewSideMenu();\n }", "public void logout() {\n showLoginScreen();\n }", "@Override\r\n\tpublic void onBackPressed() {\r\n\t\tsuper.onBackPressed();\r\n\t\tlogout();\r\n\t}", "protected void userLoggedOut() {\...
[ "0.7193114", "0.68393785", "0.6757144", "0.6703216", "0.67013484", "0.66759706", "0.66759706", "0.66225976", "0.6622119", "0.65699273", "0.6562835", "0.65067255", "0.64554286", "0.64536494", "0.64517605", "0.6445451", "0.64430285", "0.6421389", "0.64096045", "0.6402151", "0.6...
0.5983038
85
Distance for traveling from one vertex in the grid to another
private static int calculateManhattanDistance(Node actualNode, Node targetNode) { int distance = 1; int dx = Math.abs(actualNode.getRow() - targetNode.getRow()); int dy = Math.abs(actualNode.getColumn() - targetNode.getColumn()); return distance * (dx+dy); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double estimatedDistanceToGoal(Vertex s, Vertex goal);", "public double distance() {\n \tif (dist == -1) {\n \t\tdist = distance(vertex1, vertex2);\n \t}\n \n \treturn dist;\n }", "public int distance(Coord coord1, Coord coord2);", "double distance (double px, double py);", "public st...
[ "0.68885195", "0.68130016", "0.67118394", "0.6667557", "0.6644399", "0.6479362", "0.64651674", "0.64551675", "0.6447706", "0.64082706", "0.6393039", "0.63655984", "0.63538814", "0.6344179", "0.6334088", "0.6317806", "0.62804794", "0.6278838", "0.6275777", "0.62594867", "0.623...
0.0
-1
int distance = 1; int dx = actualNode.getRow() targetNode.getRow(); dx = dx; int dy = actualNode.getColumn() targetNode.getColumn(); dy = dy;
private static int calculateEuclidianDistance(Node actualNode, Node targetNode) { return (int)Math.sqrt(Math.pow((actualNode.getRow() - targetNode.getRow()), 2) + Math.pow((actualNode.getColumn() - targetNode.getColumn()), 2));//distance*(int)Math.sqrt(dx+dy); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getTargetPos();", "double distance (double px, double py);", "public Edge(Cell source, Cell target) {\n\n this.source = source;\n this.target = target;\n this.addedMidPoints = false;\n midLineX = new SimpleDoubleProperty(0);\n\n DoubleBinding endX = source.translateXPrope...
[ "0.6382581", "0.6223076", "0.60273325", "0.59949845", "0.59484684", "0.5844483", "0.5808408", "0.5803716", "0.577974", "0.5727671", "0.57017154", "0.5678945", "0.5651701", "0.5624039", "0.5619689", "0.55691594", "0.5560124", "0.5550355", "0.5548812", "0.55461437", "0.55293196...
0.6802204
0
This method sends simple mail via HTTP. Note: This method uses MailGun(Jersey)
public static ClientResponse sendSimpleMail(String from, String[] to, String subject, String body) throws Exception{ if(from == null || from == ""){ throw new Exception("Please set email sender properly."); } if(to == null || to.length == 0){ throw new Exception("Please set email recipients properly."); } Client client = Client.create(); client.addFilter(new HTTPBasicAuthFilter("api", "key-1xigy8-dpzbuy6euywdr2se-6yiu88d3")); WebResource webResource = client.resource("https://api.mailgun.net/v2/tchat.mailgun.org/messages"); MultivaluedMapImpl formData = new MultivaluedMapImpl(); // Set email sender formData.add("from", from); // Set email recipients. for(int i = 0; i < to.length; i ++){ formData.add("to", to[i]); } // Set email subject formData.add("subject", subject); // Set email body formData.add("text", body); return webResource.type(MediaType.APPLICATION_FORM_URLENCODED).post(ClientResponse.class, formData); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void send() {\n\t\tfinal String username = \"oneplanner.sys@gmail.com\";\n\t\tfinal String password = \"Oneplanner2017*\";\n\n\t\tProperties props = new Properties();\n\t\tprops.put(\"mail.smtp.auth\", \"true\");\n\t\tprops.put(\"mail.smtp.starttls.enable\", \"true\");\n\t\tprops.put(\"mail.smtp.host\", \"s...
[ "0.6855341", "0.6796424", "0.67919016", "0.67129654", "0.6704622", "0.65124065", "0.64766544", "0.64753383", "0.6441584", "0.63933116", "0.6387366", "0.6366865", "0.6327531", "0.63160586", "0.6297658", "0.62864697", "0.62849313", "0.62633485", "0.6233697", "0.6214315", "0.621...
0.69206846
0
Sending email utility function via normal port 25. Note: This method uses JavaMail
public static boolean sendMail(String from, String[] to, String host, String subject, String content) throws Exception{ return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "SendEmail() {\t\n\t}", "public void sendEmail(String recipient,String password);", "private void sendEmail() {\n String to = \"tsutton720@gmail.com\";\n\n // Sender's email ID needs to be mentioned\n String from = \"web@gmail.com\";\n\n // Assuming you are sending email from localho...
[ "0.7206358", "0.71718776", "0.70496666", "0.70242417", "0.69449335", "0.6936204", "0.69208217", "0.6846941", "0.68107384", "0.6802411", "0.6789111", "0.6788783", "0.6780264", "0.673789", "0.673787", "0.6699573", "0.66968787", "0.6672749", "0.66651565", "0.66628885", "0.665853...
0.60033095
97
Sending email utility function using TLS via port 587. Note: This method uses JavaMail
public static boolean sendMailTLS(String from, String[] to, String host, String subject, String content) throws Exception{ if(from == null || from.trim() == ""){ throw new Exception("Please set \"from\" properly"); } if(to == null || to.length == 0){ throw new Exception("Please set \"to\" properly"); } if(host == null || host.trim() == ""){ throw new Exception("Please set \"host\" properly"); } // User name and Password are needed when using Gmail SMTP mail server. // And this practice will ignore the from option set in the message. final String username = "dongshichao1988@gmail.com"; final String pwd = ""; Properties props = System.getProperties(); props.put("mail.smtp.auth", "true"); props.put("mail.smtp.starttls.enable", "true"); props.put("mail.smtp.host", host); props.put("mail.smtp.port", "587"); Session session = Session.getDefaultInstance(props, new javax.mail.Authenticator() { protected PasswordAuthentication getPasswordAuthentication() { return new PasswordAuthentication(username, pwd); } }); MimeMessage message = new MimeMessage(session); try { // Set From: header field of the heard message.setFrom(new InternetAddress("tianyayiren0122@gmail.com")); Address[] tos = new InternetAddress[to.length]; for(int i = 0; i < to.length; i ++){ tos[i] = new InternetAddress(to[i]); } // Set To: header field of the header message.addRecipients(Message.RecipientType.TO, tos); // Set Subject: header field message.setSubject(subject); // Set email body content message.setText(content); // Send message Transport.send(message); } catch (AddressException e) { e.printStackTrace(); LOG.debug(e.getMessage()); return false; } catch (MessagingException e) { e.printStackTrace(); LOG.debug(e.getMessage()); return false; } // Send successfully return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static boolean emailTLS(String fromEmail, String password, String fromName, String smtpHostServer, String toEmail, String subject, String body) {\n System.out.println(\"TLSEmail Start\");\n Properties props = new Properties();\n props.put(\"mail.smtp.host\", smtpHostServer); //SMTP Hos...
[ "0.7616212", "0.75193006", "0.66890997", "0.6684948", "0.6633016", "0.6528267", "0.6462525", "0.6419523", "0.63834375", "0.6351202", "0.632388", "0.6292778", "0.6282716", "0.6280291", "0.62626594", "0.6223264", "0.6219323", "0.62127286", "0.62093616", "0.62073046", "0.6206942...
0.67947024
2
Refresh our stream info
public synchronized void setStreamDao(StreamServerDao dao) { this.dao = dao; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "default void refreshStream() {}", "public void refresh() {\n\tts = parent.globals.twitchAPI.getStream(this.getChannel());\n\tif (ts != null) {\n\t game = ts.getMeta_game();\n\t title = ts.getTitle();\n\t online = ts.isOnline();\n\t current_viewers = ts.getCurrent_viewers();\n\t created_at = ts.get...
[ "0.80325735", "0.71829486", "0.6796979", "0.668646", "0.639967", "0.63921064", "0.62904155", "0.6166646", "0.60761476", "0.59947413", "0.5994362", "0.5967709", "0.5953801", "0.5953416", "0.59293383", "0.5901992", "0.5874742", "0.58314997", "0.5820802", "0.5817513", "0.5799399...
0.0
-1
/ [CONSTRUCTOR MARKER BEGIN]
public ShopArticle() { super(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "private void __sep__Constructors__() {}", "public PSRelation()\n {\n }", "public CyanSus() {\n\n }", "public Pitonyak_09_02() {\r\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public Clade() {}", "@Ov...
[ "0.8172352", "0.78987813", "0.7456175", "0.7205316", "0.7143033", "0.7105864", "0.7104067", "0.70527005", "0.70486116", "0.700857", "0.6994737", "0.6972381", "0.6970538", "0.6964585", "0.695927", "0.6925603", "0.6909102", "0.6903267", "0.6896547", "0.6895573", "0.6889378", ...
0.0
-1
Constructor for primary key
public ShopArticle(java.lang.Long id) { super(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "PrimaryKey createPrimaryKey();", "public DatasetParameterPK() {\n }", "public ParametroPorParametroPK() {\r\n\t}", "PrimaryKey getPrimarykey();", "Key getPrimaryKey();", "public TdOficioAfectacionPK() {\n }", "PrimaryKey getPrimaryKey();", "public DomainPK()\n {\n }", "public LeaguePrimar...
[ "0.7875029", "0.7489606", "0.739803", "0.7096801", "0.70711553", "0.69975173", "0.69803166", "0.69716835", "0.6964837", "0.69633687", "0.69163185", "0.67959905", "0.6758902", "0.6702319", "0.6702319", "0.6702319", "0.6699209", "0.65859973", "0.6582905", "0.65318656", "0.65293...
0.0
-1
Constructor for required fields
public ShopArticle(java.lang.Long id, com.jspgou.core.entity.Website website, com.jspgou.cms.entity.ShopChannel channel, java.lang.String title, java.util.Date publishTime, java.lang.Boolean disabled) { super(id, website, channel, title, publishTime, disabled); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Field() {\r\n\t}", "public Field(){\n\n // this(\"\",\"\",\"\",\"\",\"\");\n }", "public CisFieldError()\n\t{\n\t\t// required for jaxb\n\t}", "public RequirementsRecord() {\n super(Requirements.REQUIREMENTS);\n }", "private void fillMandatoryFields() {\n\n }", "public AirField...
[ "0.71718425", "0.70593333", "0.68855685", "0.68011117", "0.6788171", "0.665877", "0.6643776", "0.65873665", "0.65260553", "0.6511593", "0.6507464", "0.6504741", "0.6499354", "0.6499127", "0.6489181", "0.6437741", "0.6416246", "0.6358725", "0.6338867", "0.6270355", "0.62663263...
0.0
-1
Interface representing the transactions service
@Component public interface TransactionService { /** * Method used to save or update a transaction object * * @param transaction * The transaction to persist * @throws Exception * Any exception thrown saving or updating the object */ public void saveOrUpdate(Transaction transaction) throws Exception; /** * Method used to query all the transactions in the repository * * @return the list of all transactions in the repository * @throws Exception */ public Transaction[] getTransactionsList() throws Exception; /** * Method used to delete a transaction from the repository * * @param transaction * The transaction to remove * @return a boolean with the result. true on success false otherwise. * @throws Exception */ public boolean delete(Transaction transaction) throws Exception; /** * Method used to query a transaction given its id * @param id The unique identifier of the transaction * @return The Transaction instance * @throws Exception */ public Transaction getById(String id) throws Exception; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface TransactionService {\n\n /**\n * @return TransactionManager\n */\n TransactionManager getTransactionManager();\n\n /**\n * @return UserTransaction\n */\n UserTransaction getUserTransaction();\n\n /**\n * @return default timeout in seconds\n */\n int getDefaultTimeout();\n\n /**\...
[ "0.7906487", "0.74357164", "0.7322861", "0.72334623", "0.7164705", "0.7053927", "0.6971372", "0.69488376", "0.69161206", "0.6852949", "0.6833227", "0.6812153", "0.677581", "0.6769885", "0.67696875", "0.66842633", "0.6680953", "0.6610251", "0.6608685", "0.65868545", "0.6571408...
0.73413455
2
Method used to save or update a transaction object
public void saveOrUpdate(Transaction transaction) throws Exception;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Transaction save(Transaction transaction);", "public void updateTransaction(Transaction trans);", "@Override\n\tpublic void updateTransaction(Transaction transaction) {\n\n\t}", "@Override\n\tpublic void updateTransaction(Transaction transaction) {\n\t\t\n\t}", "void commit(Transaction transaction);", "@...
[ "0.8165712", "0.76720905", "0.68552643", "0.6821677", "0.6764621", "0.67181534", "0.66702485", "0.6597593", "0.6578086", "0.6567748", "0.6556693", "0.6529947", "0.6508145", "0.6498044", "0.6492363", "0.6477015", "0.64517194", "0.6448424", "0.64368427", "0.6406253", "0.6405594...
0.76697487
2
Method used to query all the transactions in the repository
public Transaction[] getTransactionsList() throws Exception;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Collection<Transaction> getAllTransactions();", "@Override\n\tpublic List<Transaction> getAllTransactions() { \n\t\t/* begin transaction */ \n\t\tSession session = getCurrentSession(); \n\t\tsession.beginTransaction();\n\n\t\tQuery query = session.createQuery(\"from Transaction\");\n\t\tList<Transaction> ...
[ "0.77800095", "0.7666414", "0.7517002", "0.74684906", "0.7325992", "0.7254811", "0.7180022", "0.71563584", "0.71222913", "0.6989398", "0.69589037", "0.6807083", "0.66745013", "0.6670393", "0.66678065", "0.66208225", "0.6518128", "0.64715666", "0.6464156", "0.6458902", "0.6443...
0.66449785
15
Method used to delete a transaction from the repository
public boolean delete(Transaction transaction) throws Exception;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void deleteTransactionById(int id);", "@Override\n\tpublic void deleteTransaction(Transaction transaction) {\n\n\t}", "@Override\n\tpublic void delete(Integer transactionId) {\n\n\t}", "public void deleteTransaction() {\n\t\tconn = MySqlConnection.ConnectDb();\n\t\tString sqlDelete = \"delete from Acc...
[ "0.79462165", "0.7804939", "0.7610173", "0.731402", "0.70601654", "0.6941219", "0.69250786", "0.68349963", "0.68264383", "0.66569763", "0.66345865", "0.6630984", "0.66108036", "0.65864164", "0.65823734", "0.6579998", "0.6506575", "0.6500226", "0.64907575", "0.6449208", "0.640...
0.8003089
0
Method used to query a transaction given its id
public Transaction getById(String id) throws Exception;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Transaction get(String id) throws Exception;", "public Transaction getTransactionById(Integer id) throws MiddlewareQueryException;", "Transaction getTransctionByTxId(String txId);", "Transaction findTransactionById(Long id);", "Transaction selectByPrimaryKey(Long id);", "BusinessTransaction get(String te...
[ "0.8080376", "0.80371237", "0.7682883", "0.74950206", "0.7388086", "0.70403045", "0.7011927", "0.6927342", "0.6915032", "0.68868655", "0.6763721", "0.6683997", "0.6680529", "0.66607064", "0.65631545", "0.6552138", "0.6523013", "0.64996004", "0.64631236", "0.64603215", "0.6420...
0.8082125
0
Created by nguyenvanhien on 4/2/18.
public interface VideoApiInterface { @GET("playlists?part=snippet&maxResults=50&key="+ Const.API_KEY+"&channelId="+Const.CHANNEL_ID_EN) Call<ChannelInfoResult> getChannelInfoResult(); @GET("playlistItems?part=snippet&maxResults=20") Call<PlayListItem> getListVideoPlayList(@Query("playlistId") String playlistID, @Query("key") String key); @GET("videos") Call<VideoStatistic> getVideoStatistic(@Query("id") String videoID, @Query("key") String key, @Query("part") String part); @GET("channels?part=snippet&id="+Const.CHANNEL_ID_EN +"&fields=items%2Fsnippet%2Fthumbnails&key="+Const.API_KEY) Call<Channel> getChannelAvatar(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Over...
[ "0.6368937", "0.62061405", "0.6164499", "0.6142676", "0.6070071", "0.6066352", "0.6066352", "0.6004845", "0.59985393", "0.59908307", "0.59872603", "0.5957051", "0.5935659", "0.5916255", "0.59106326", "0.5890362", "0.58833086", "0.5882045", "0.58806425", "0.58615744", "0.58548...
0.0
-1
Called when onTabSelected and onTabReselcted are called to handle which fragment to launch when each tab is selected.
public void tabSelected(TabLayout.Tab tab) { clearBackstack(); FragmentTransaction transaction = getSupportFragmentManager().beginTransaction(); if (tab.getPosition() == 0) { transaction.replace(R.id.home_page_frame_layout, HomeFragment.newInstance(user)); } else if (tab.getPosition() == 1) { transaction.replace(R.id.home_page_frame_layout, WallsFragment.newInstance(user)); } else if (tab.getPosition() == 2) { transaction.replace(R.id.home_page_frame_layout, ProjectsFragment.newInstance(user)); } else if (tab.getPosition() == 3) { transaction.replace(R.id.home_page_frame_layout, UserInfoFragment.newInstance(user)); } transaction.addToBackStack(null); transaction.commit(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {\n Fragment fragment3 = null;\n Fragment fragment1 = null;\n Fragment fragment2 = null;\n switch (tab.getPosition()) {\n case 0:\n // The first is Selected\n ...
[ "0.757194", "0.7381795", "0.7302053", "0.72937596", "0.7285902", "0.72739327", "0.7095124", "0.7069965", "0.70156854", "0.70057577", "0.6998301", "0.6991818", "0.6983568", "0.69743854", "0.69633716", "0.6958157", "0.69563264", "0.695622", "0.69499767", "0.69499767", "0.694997...
0.6769116
67
On back pressed method created to exit application instead of hitting the login page. Checks to see if there are no items in the backstack (indicitive of being back at the Home Activity). If that is the case, it exits the application. It also sets the tab selected to the Home tab if the backstack is at one.
@Override public void onBackPressed() { if (getSupportFragmentManager().getBackStackEntryCount() == 0) { Intent intent = new Intent(Intent.ACTION_MAIN); intent.addCategory(Intent.CATEGORY_HOME); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent); finish(); } else if (getSupportFragmentManager().getBackStackEntryCount() == 1) { TabLayout.Tab tab = tabLayout.getTabAt(0); tab.select(); getSupportFragmentManager().popBackStack(); } else { getSupportFragmentManager().popBackStack(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void onBackPressed() {\n\t\tIntent intent = new Intent(Intent.ACTION_MAIN);\n intent.addCategory(Intent.CATEGORY_HOME);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n finish();\n System.exit(0);\n\t}", "@Override\n public vo...
[ "0.7617004", "0.7504795", "0.7488055", "0.7368004", "0.73320085", "0.73320085", "0.7329668", "0.72930014", "0.72401655", "0.72084224", "0.720625", "0.7200829", "0.713777", "0.7117332", "0.711003", "0.711003", "0.7072678", "0.7072433", "0.70593417", "0.7023776", "0.70208484", ...
0.7866581
0
Method to clear the backstack. Used to ensure fragments are not building up. Called each time a tab is changed.
private void clearBackstack() { FragmentManager manager = getSupportFragmentManager(); if (manager.getBackStackEntryCount() > 0) { FragmentManager.BackStackEntry first = manager.getBackStackEntryAt(0); manager.popBackStack(first.getId(), FragmentManager.POP_BACK_STACK_INCLUSIVE); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public FragmentUtil clearBackStack() {\n if (fragmentManager.getBackStackEntryCount() > 0) {\n FragmentManager.BackStackEntry first = fragmentManager.getBackStackEntryAt(0);\n fragmentManager.popBackStack(first.getId(), FragmentManager.POP_BACK_STACK_INCLUSIVE);\n }\n ret...
[ "0.725517", "0.7185404", "0.7177948", "0.71306264", "0.7055329", "0.6986625", "0.69632816", "0.69132483", "0.68621397", "0.6853506", "0.6727451", "0.65097374", "0.64233196", "0.6399504", "0.6300336", "0.62713265", "0.6253929", "0.6188482", "0.6182834", "0.61665624", "0.616026...
0.8138909
0
Adds the menu item that holds the exit icon to the toolbar.
@Override public boolean onCreateOptionsMenu(Menu menu) { MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.activity_home_menu, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private MenuItem getJMenuItemExit() {\r\n if (jMenuItemExit == null) {\r\n jMenuItemExit = new MenuItem();\r\n //jMenuItemExit.setIcon(IconMgr.getExit());\r\n jMenuItemExit.setLabel(\"Exit\");\r\n jMenuItemExit.addActionListener(new java.awt.event.ActionListener()...
[ "0.6945937", "0.6762034", "0.67317474", "0.67296064", "0.67296064", "0.66337794", "0.66278005", "0.6539365", "0.65091217", "0.6509024", "0.6504939", "0.64732844", "0.6439851", "0.6405807", "0.6367855", "0.6358021", "0.6345205", "0.6335289", "0.63321805", "0.63178647", "0.6307...
0.0
-1
When the exit icon is selected, launch the login activity.
@Override public boolean onOptionsItemSelected(MenuItem item) { if (item.getItemId() == R.id.activity_home_logout_icon) { Intent intent = new Intent(this, LoginActivity.class); startActivity(intent); } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void run() {\n\n Intent intent = new Intent(Launcher.this, Login.class);\n startActivity(intent);\n finish();\n }", "private void returnToLoginActivity() {\n Intent returnToLogin =...
[ "0.729332", "0.7255043", "0.72144425", "0.719292", "0.7180867", "0.7123712", "0.7091007", "0.70392394", "0.70168537", "0.70102507", "0.69907796", "0.6926743", "0.69126844", "0.6909514", "0.6892081", "0.687371", "0.68690866", "0.68443453", "0.6788821", "0.6699966", "0.66998017...
0.6742663
19
Create a JobBuilder with which to define a JobDetail.
public static JobBuilder newJob() { return new JobBuilder(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JobBuilder() {\r\n job = new Job();\r\n }", "public static br.unb.cic.bionimbus.avro.gen.JobInfo.Builder newBuilder(br.unb.cic.bionimbus.avro.gen.JobInfo.Builder other) {\n return new br.unb.cic.bionimbus.avro.gen.JobInfo.Builder(other);\n }", "public static br.unb.cic.bionimbus.avro.gen.J...
[ "0.7035215", "0.69101906", "0.6736769", "0.66714156", "0.6663996", "0.65563124", "0.6481591", "0.64394426", "0.6341753", "0.6316524", "0.63118464", "0.619786", "0.6055948", "0.5974234", "0.59307057", "0.569504", "0.5643474", "0.5622442", "0.5599858", "0.5582905", "0.5570945",...
0.7345417
0
Create a JobBuilder with which to define a JobDetail, and set the class name of the Job to be executed.
public static JobBuilder newJob(Class<? extends Job> jobClass) { JobBuilder b = new JobBuilder(); b.ofType(jobClass); return b; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JobBuilder() {\r\n job = new Job();\r\n }", "public JobBuilder ofType(Class<? extends Job> jobClazz) {\n this.jobClass = jobClazz;\n return this;\n }", "public static JobBuilder newJob() {\n return new JobBuilder();\n }", "@Nonnull\n public JDK8TriggerBuilder <T> ...
[ "0.6803583", "0.67708474", "0.66423094", "0.64709634", "0.63646793", "0.62701184", "0.59766066", "0.59263057", "0.5926194", "0.5878908", "0.5855434", "0.5853052", "0.5764336", "0.573245", "0.56549746", "0.56493807", "0.5639793", "0.56252587", "0.5602499", "0.5557777", "0.5524...
0.65355015
3
Produce the JobDetail instance defined by this JobBuilder.
public JobDetail build() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Job build() {\r\n return job;\r\n }", "public static br.unb.cic.bionimbus.avro.gen.JobInfo.Builder newBuilder() {\n return new br.unb.cic.bionimbus.avro.gen.JobInfo.Builder();\n }", "public static br.unb.cic.bionimbus.avro.gen.JobInfo.Builder newBuilder(br.unb.cic.bionimbus.avro.gen.JobInf...
[ "0.692324", "0.68894076", "0.68417495", "0.65761304", "0.65742475", "0.65152335", "0.64612395", "0.63820463", "0.63428944", "0.62572926", "0.6247791", "0.6175251", "0.61708736", "0.6143163", "0.61303616", "0.6078188", "0.6036592", "0.6021522", "0.6020073", "0.5959473", "0.593...
0.74849373
0
Use a JobKey with the given name and default group to identify the JobDetail. If none of the 'withIdentity' methods are set on the JobBuilder, then a random, unique JobKey will be generated.
public JobBuilder withIdentity(String name) { key = new JobKey(name, null); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JobBuilder withIdentity(String name, String group) {\n key = new JobKey(name, group);\n return this;\n }", "public JobBuilder withIdentity(JobKey jobKey) {\n this.key = jobKey;\n return this;\n }", "@Nonnull\n public JDK8TriggerBuilder <T> forJob (final IJobDetail jobD...
[ "0.72158694", "0.66913605", "0.5728085", "0.5715184", "0.52555007", "0.5103393", "0.5102803", "0.4844269", "0.48359352", "0.47809696", "0.4756596", "0.4718378", "0.4708219", "0.47070962", "0.46622178", "0.46301386", "0.46287453", "0.46215516", "0.46097144", "0.4573254", "0.45...
0.6499617
2
Use a JobKey with the given name and group to identify the JobDetail. If none of the 'withIdentity' methods are set on the JobBuilder, then a random, unique JobKey will be generated.
public JobBuilder withIdentity(String name, String group) { key = new JobKey(name, group); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JobBuilder withIdentity(JobKey jobKey) {\n this.key = jobKey;\n return this;\n }", "public JobBuilder withIdentity(String name) {\n key = new JobKey(name, null);\n return this;\n }", "@Nonnull\n public JDK8TriggerBuilder <T> forJob (final String jobName, final String j...
[ "0.6766192", "0.65225846", "0.5807958", "0.57421976", "0.53525686", "0.52415645", "0.5149045", "0.5041763", "0.49868667", "0.49121538", "0.49086562", "0.4818272", "0.47425324", "0.4694084", "0.46828097", "0.46193507", "0.461849", "0.46179634", "0.4586826", "0.45848238", "0.45...
0.7414792
0
Use a JobKey to identify the JobDetail. If none of the 'withIdentity' methods are set on the JobBuilder, then a random, unique JobKey will be generated.
public JobBuilder withIdentity(JobKey jobKey) { this.key = jobKey; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JobBuilder withIdentity(String name) {\n key = new JobKey(name, null);\n return this;\n }", "@Nonnull\n public JDK8TriggerBuilder <T> forJob (final IJobDetail jobDetail)\n {\n final JobKey k = jobDetail.getKey ();\n if (k.getName () == null)\n throw new IllegalArgumentExcepti...
[ "0.65828735", "0.60729533", "0.597207", "0.58295363", "0.58215135", "0.5781257", "0.5635309", "0.5465893", "0.54519814", "0.5405208", "0.5401346", "0.53996587", "0.5369609", "0.53593254", "0.53368384", "0.5318115", "0.5282527", "0.52479386", "0.52269787", "0.52163845", "0.520...
0.78575927
0
Set the given (humanmeaningful) description of the Job.
public JobBuilder withDescription(String jobDescription) { this.description = jobDescription; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setJobDesc(String jobDesc)\n\t{\n\t\tthis.jobDesc = Toolbox.trim(jobDesc, 4);\n\t}", "public void setJobDescription(String jobDescription) {\r\n this.jobDescription = jobDescription;\r\n }", "public void setJob_description(String job_description) {\r\n this.job_description = job_de...
[ "0.7767648", "0.7668904", "0.7424661", "0.718079", "0.71464324", "0.7138141", "0.7138141", "0.7138141", "0.7137604", "0.7131872", "0.7129118", "0.7126032", "0.7124781", "0.71210897", "0.7119776", "0.71164995", "0.71164554", "0.71164554", "0.71164554", "0.71164554", "0.7116455...
0.0
-1
Set the class which will be instantiated and executed when a Trigger fires that is associated with this JobDetail.
public JobBuilder ofType(Class<? extends Job> jobClazz) { this.jobClass = jobClazz; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setClass_(String newValue);", "public void setClass (\r\n String strClass) throws java.io.IOException, com.linar.jintegra.AutomationException;", "void setClassType(String classType);", "public void setClassToInstantiate(Class<? extends T> classToInstantiate) {\r\n this.classT...
[ "0.5824554", "0.5335707", "0.5328143", "0.53255576", "0.5291459", "0.5194713", "0.51891917", "0.5144995", "0.51408345", "0.5081686", "0.50788975", "0.50528914", "0.50066423", "0.49950704", "0.49944264", "0.49940157", "0.499268", "0.49895346", "0.4971476", "0.49515152", "0.494...
0.51220536
9
Instructs the Scheduler whether or not the Job should be reexecuted if a 'recovery' or 'failover' situation is encountered. If not explicitly set, the default value is false.
public JobBuilder requestRecovery() { this.shouldRecover = true; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setToReschedule(boolean b) {\n this.toReschedule = b;\n }", "public JobBuilder requestRecovery(boolean jobShouldRecover) {\n this.shouldRecover = jobShouldRecover;\n return this;\n }", "public void setRestartable(boolean isRestartable) {}", "public void setRelaunched(bo...
[ "0.63057286", "0.6143532", "0.6099385", "0.59625524", "0.5925032", "0.5884677", "0.57888293", "0.5735029", "0.57081205", "0.5604855", "0.55846226", "0.5569655", "0.556474", "0.5560236", "0.5555274", "0.55540746", "0.5540493", "0.5537144", "0.55348766", "0.5534494", "0.5529550...
0.6089098
3
Instructs the Scheduler whether or not the Job should be reexecuted if a 'recovery' or 'failover' situation is encountered. If not explicitly set, the default value is false.
public JobBuilder requestRecovery(boolean jobShouldRecover) { this.shouldRecover = jobShouldRecover; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setToReschedule(boolean b) {\n this.toReschedule = b;\n }", "public void setRestartable(boolean isRestartable) {}", "public JobBuilder requestRecovery() {\n this.shouldRecover = true;\n return this;\n }", "public void setRelaunched(boolean value) {\n this.relaunc...
[ "0.63056177", "0.60992384", "0.60886997", "0.59615046", "0.59270054", "0.58837426", "0.57884985", "0.57365197", "0.57076865", "0.5603285", "0.5583023", "0.5568682", "0.556479", "0.55604726", "0.55554396", "0.55549353", "0.5539909", "0.55371356", "0.55340683", "0.553328", "0.5...
0.61431444
1
Recursive method to handle subfolders
public static void addToZip(String path, ZipOutputStream myZip, File f) throws FileNotFoundException, IOException{ if(f.isDirectory()){ for(File subF : f.listFiles()){ addToZip(path + File.separator + f.getName() , myZip, subF); } } else { ZipEntry e = new ZipEntry(path + File.separator + f.getName()); myZip.putNextEntry(e); try (InputStream is = new FileInputStream(f.getAbsolutePath())) { IOUtils.copyLarge(is, myZip); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void recurseOverFolder(final File folder) {\n File[] files = folder.listFiles();\n if (files == null) {\n return;\n }\n\n // Check each path and recurse if it's a folder, handle if it's a file\n for (final File fileEntry : files) {\n if (fileEntry.is...
[ "0.64152664", "0.6254774", "0.62151146", "0.6040673", "0.6018732", "0.5967609", "0.59432626", "0.5939062", "0.58492696", "0.57759243", "0.57693595", "0.5742291", "0.57074636", "0.57030857", "0.5686308", "0.5677033", "0.56172246", "0.55810744", "0.55668217", "0.5565922", "0.55...
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.view_task_by_name, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.6862...
0.0
-1
TODO Autogenerated method stub
@Override public void onClick(View v) { Intent i = new Intent(this,MainActivity.class); startActivity(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
Check bullets with enemies
private static void checkCollisions() { ArrayList<Entity> bulletsArray = bullets.entities; ArrayList<Entity> enemiesArray = enemies.entities; for (int i = 0; i < bulletsArray.size(); ++i) { for (int j = 0; j < enemiesArray.size(); ++j) { if (j < 0) { continue; } if (i < 0) { break; } Entity currentBullet = bulletsArray.get(i); Entity currentEnemy = enemiesArray.get(j); if (Collision.boxBoxOverlap(currentBullet, currentEnemy)) { ++player.hiScore; if (currentBullet.collided(currentEnemy)) { --i; } if (currentEnemy.collided(currentBullet)) { --j; } } } } textHiScore.setString("HISCORE:" + player.hiScore); // Check players with bonuses ArrayList<Entity> bonusArray = bonus.entities; for (int i = 0; i < bonusArray.size(); ++i) { Entity currentBonus = bonusArray.get(i); if (Collision.boxBoxOverlap(player, currentBonus)) { if (currentBonus.collided(player)) { --i; player.collided(currentBonus); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void enemyShoot()\r\n\t{\r\n\t\tfor (Enemy enemies : enemy)\r\n\t\t{\r\n\t\t\tif (enemies.getHasFired())\r\n\t\t\t{\r\n\t\t\t\tBullet enemyPew = enemies.shoot();\r\n\t\t\t\tif (enemyPew != null)\r\n\t\t\t\t{\r\n\t\t\t\t\tbullets.add(enemyPew);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void trackBu...
[ "0.7260405", "0.72117364", "0.72009933", "0.7118246", "0.70830727", "0.7050179", "0.6932839", "0.6895384", "0.6869319", "0.6768387", "0.6725435", "0.6695145", "0.66459095", "0.6641551", "0.6628493", "0.6615633", "0.6611975", "0.6555639", "0.6536821", "0.6528446", "0.6513718",...
0.6225541
35
Allow the function to create an optimized call based on the values of the actual arguments
@Override public Expression fixArguments(Expression... arguments) { if (arguments[1] instanceof StringLiteral && arguments[2] instanceof StringLiteral) { staticMap = buildMap(((StringLiteral) arguments[1]).getValue(), ((StringLiteral) arguments[2]).getValue()); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int a(String paramString, float paramFloat1, float paramFloat2, int paramInt)\r\n/* 234: */ {\r\n/* 235:243 */ return a(paramString, paramFloat1, paramFloat2, paramInt, true);\r\n/* 236: */ }", "public String a(String paramString, int paramInt)\r\n/* 512: */ {\r\n/* 513:512 */ retur...
[ "0.5894024", "0.58564913", "0.5807681", "0.57815963", "0.57625616", "0.5740794", "0.57020754", "0.55254716", "0.5485548", "0.54076445", "0.5375442", "0.53492117", "0.53470826", "0.530828", "0.5274477", "0.5256128", "0.5251995", "0.51956636", "0.5181616", "0.51312804", "0.5119...
0.0
-1
Get the translation map built at compile time if there is one
public IntToIntMap getStaticMap() { return staticMap; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Map<String, Constant> getConstantMap();", "@InterfaceAudience.Public\n Mapper compileMap(String source, String language);", "Map<String, Defines> getDefinesMap();", "private void genLoadMapCode(String name, String keyClassSimpleName, String valueClassSimpleName, boolean valueIsPersistable) {\n\n in...
[ "0.6154153", "0.6125999", "0.54533005", "0.5368475", "0.53635716", "0.5298882", "0.52586013", "0.5241988", "0.52027434", "0.5147884", "0.51379484", "0.51211065", "0.51029587", "0.50971967", "0.5024627", "0.50187606", "0.5003566", "0.4987699", "0.49875492", "0.4961658", "0.494...
0.45879242
62
Perform the translate function
public static CharSequence translate(StringValue sv0, StringValue sv1, StringValue sv2) { // if any string contains surrogate pairs, expand everything to 32-bit characters if (sv0.containsSurrogatePairs() || sv1.containsSurrogatePairs() || sv2.containsSurrogatePairs()) { return translateUsingMap(sv0, buildMap(sv1, sv2)); } // if the size of the strings is above some threshold, use a hash map to avoid O(n*m) performance if (sv0.getStringLength() * sv1.getStringLength() > 1000) { // Cut-off point for building the map based on some simple measurements return translateUsingMap(sv0, buildMap(sv1, sv2)); } CharSequence cs0 = sv0.getStringValueCS(); CharSequence cs1 = sv1.getStringValueCS(); CharSequence cs2 = sv2.getStringValueCS(); String st1 = cs1.toString(); FastStringBuffer sb = new FastStringBuffer(cs0.length()); int s2len = cs2.length(); int s0len = cs0.length(); for (int i = 0; i < s0len; i++) { char c = cs0.charAt(i); int j = st1.indexOf(c); if (j < s2len) { sb.cat(j < 0 ? c : cs2.charAt(j)); } } return sb; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ILoLoString translate();", "private void translate()\r\n\t{\r\n\t\tLocale locale = Locale.getDefault();\r\n\t\t\r\n\t\tString language = locale.getLanguage();\r\n\t\t\r\n\t\ttranslate(language);\r\n\t}", "void translate(Sentence sentence);", "String translate(String text, String fromLanguage, String toLangua...
[ "0.7884242", "0.7366065", "0.7306463", "0.7230869", "0.7006027", "0.69546956", "0.6862497", "0.680748", "0.67817837", "0.67369", "0.66213584", "0.6570019", "0.64511997", "0.64255595", "0.6401662", "0.638451", "0.6380401", "0.63608944", "0.6359555", "0.6351185", "0.6292856", ...
0.0
-1
Implement the translate() function using an index built at compile time
public static CharSequence translateUsingMap(StringValue in, IntToIntMap map) { UnicodeString us = in.getUnicodeString(); int len = us.uLength(); FastStringBuffer sb = new FastStringBuffer(len); for (int i = 0; i < len; i++) { int c = us.uCharAt(i); int newchar = map.get(c); if (newchar == Integer.MAX_VALUE) { // character not in map, so is not to be translated newchar = c; } if (newchar != -1) { sb.appendWideChar(newchar); } // else no action, delete the character } return sb; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ILoLoString translate();", "Object translate( Object source );", "public void translate(int i, int j) {\n\t\t\n\t}", "void translate(Sentence sentence);", "public interface Translator {\n\t/**\n\t * Make text translation.\n\t * @param text source text for translation.\n\t * @param from source language code...
[ "0.68947065", "0.64633685", "0.61601466", "0.6150505", "0.6098126", "0.6071854", "0.599841", "0.59942156", "0.59810704", "0.5869697", "0.58622533", "0.58390373", "0.5733231", "0.57302296", "0.5706861", "0.5687478", "0.5680829", "0.5665859", "0.5658602", "0.56097734", "0.55816...
0.50607115
47
Make a copy of this SystemFunction. This is required only for system functions such as regex functions that maintain state on behalf of a particular caller.
@Override public Translate copy() { Translate copy = (Translate) SystemFunction.makeFunction(getFunctionName().getLocalPart(), getRetainedStaticContext(), getArity()); copy.staticMap = staticMap; return copy; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public FunctionLibrary copy() {\n return this;\n }", "public Closure copy_function(){\n Closure newClosure = new Closure(this.getParent(), this.getNode());\n newClosure.isFunction = this.isFunction;\n newClosure.returning = this.returning;\n newClosure.belongObject = this.be...
[ "0.6966108", "0.65365946", "0.6002989", "0.5770314", "0.5618613", "0.5576614", "0.5554241", "0.55121315", "0.544483", "0.53272825", "0.5322077", "0.5320126", "0.53134483", "0.5300734", "0.52944726", "0.5263325", "0.52477264", "0.5214391", "0.5168646", "0.5151985", "0.51475954...
0.7241237
0
methods in interface doesn't have a body
public double getArea();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object _get_interface()\n {\n throw new NO_IMPLEMENT(reason);\n }", "public interface a {\n void a();\n }", "public interface a {\n void a();\n }", "interface C34503a {\n void bMl();\n }", "@Override\n public boolean isInterface() { return false; }", "...
[ "0.70310414", "0.70279855", "0.70279855", "0.7019117", "0.6991274", "0.6974614", "0.6943519", "0.6914708", "0.69096667", "0.6834076", "0.6831706", "0.6823186", "0.6819997", "0.6819997", "0.6813797", "0.6800636", "0.679974", "0.6772522", "0.67633396", "0.6681153", "0.6673311",...
0.0
-1
nothing to be done.
public void componentHidden(ComponentEvent e) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "@Override\n\t...
[ "0.65938824", "0.65493727", "0.6546731", "0.65278786", "0.64548033", "0.6426877", "0.6380367", "0.63456506", "0.63330287", "0.63117945", "0.62731594", "0.62697214", "0.62693346", "0.62693346", "0.6251446", "0.6249716", "0.6249716", "0.620533", "0.61531216", "0.6138579", "0.61...
0.0
-1
TODO Autogenerated method stub
@Override public Collection<? extends GrantedAuthority> getAuthorities() { return null; }
{ "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
String input = "( 1 + ( ( 2 + 3 ) ( 4 5 ) ) )";
public static void main(String[] args) { String input = "( ( 1 + sqrt ( 5 ) ) / 2 )"; Stack<String> ops = new Stack<String>(); Stack<Double> vals = new Stack<Double>(); String[] temps = input.split(" "); for (String temp : temps) { if (temp.equals("(")) ; else if (temp.equals("+")) ops.push(temp); else if (temp.equals("-")) ops.push(temp); else if (temp.equals("*")) ops.push(temp); else if (temp.equals("/")) ops.push(temp); else if (temp.equals("sqrt")) ops.push(temp); else if (temp.equals(")")){ String op = ops.pop(); double v = vals.pop(); if (op.equals("+")) v = vals.pop() + v; else if (op.equals("-")) v = vals.pop() - v; else if (op.equals("*")) v = vals.pop() * v; else if (op.equals("/")) v = vals.pop() / v; else if (op.equals("sqrt")) v = Math.sqrt(v); vals.push(v); }else { vals.push(Double.parseDouble(temp)); } } System.out.println(vals.pop()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int evaluateExpression(String expression) {\r\n // Create operandStack of ints to store operands\r\n Stack<Integer> operandStack = new Stack<>();\r\n \r\n // Create operatorStack of characters to store operators\r\n Stack<Character> operatorStack = new Stack<>();\r\n \r\...
[ "0.62129414", "0.61423755", "0.6111149", "0.6093907", "0.60633767", "0.6030796", "0.59966016", "0.5985803", "0.59422314", "0.59169483", "0.59055233", "0.5904571", "0.58944887", "0.5832513", "0.5805359", "0.57608896", "0.57368004", "0.57337916", "0.57141775", "0.5705507", "0.5...
0.6073092
4
Lo sobreescribo para que pueda haber 2 que nos puedan servir
public static void generarFicheroJSON(App aplicacion) throws IOException { ObjectMapper mapeador = new ObjectMapper(); mapeador.configure(SerializationFeature.INDENT_OUTPUT, true); // Escribe en un fichero JSON el objeto que le pasamos mapeador.writeValue(new File("./aplicaciones/" + aplicacion.getNombre() + ".json"), aplicacion); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void somaVezes(){\n qtVezes++;\n }", "private void m27461a() {\n if (this.f25303r >= 2) {\n if (this.f25303r % 2 == 0) {\n this.f25303r++;\n }\n this.f25304s = this.f25303r + 2;\n this.f25305t = this.f25304s / 2;\n retu...
[ "0.5736543", "0.57320935", "0.5704976", "0.5690255", "0.5674139", "0.56074405", "0.5551834", "0.55507714", "0.55464464", "0.55111235", "0.5467763", "0.54418194", "0.54378337", "0.5436592", "0.54252845", "0.54124737", "0.54115915", "0.5408649", "0.5392849", "0.5382969", "0.535...
0.0
-1
Common Css Resources. This will hold structural css values.
interface CommonCssResource extends CssResource { /** * Generic container . * @return the css class for a generic container */ String genericContainer(); /** * @return */ String lassoPanel(); /** * @return */ String lassoElement(); /** * Generic container padding. * @return */ int genericContainerPaddingPx(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected ResourceReference getCSS()\n\t{\n\t\treturn CSS;\n\t}", "public String getCss() {\n return clean(css);\n }", "private void loadStyles() {\n ShowcaseResources.INSTANCE.showcaseCss().ensureInjected();\n RoundedCornersResource.INSTANCE.roundCornersCss().ensureInjected();\n }"...
[ "0.69603217", "0.611482", "0.6075924", "0.59903866", "0.5902254", "0.58850676", "0.5879329", "0.5877936", "0.5844037", "0.58318", "0.5816516", "0.5744936", "0.5710376", "0.56645536", "0.5663728", "0.56516695", "0.5613743", "0.55166584", "0.5504591", "0.54129076", "0.53427505"...
0.64357954
1
Test will be executed on all different event store implementations.
@LabeledParameterized.Parameters public static List<Object[]> parameters() { List<Object[]> modes = Lists.newArrayList(); for (TypeOfEventStore typeOfEventStore : TypeOfEventStore.values()) { modes.add(Objects.o(typeOfEventStore)); } return modes; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testNear()\n {\n String sName = \"near-client-listener\";\n generateEvents(sName);\n checkEvents(true, false);\n }", "@Test\n public void testNearFront()\n {\n String sName = \"near-front-listener\";\n generateEvents(sNam...
[ "0.6589902", "0.65857536", "0.6523968", "0.65052426", "0.6503679", "0.6395596", "0.629879", "0.6285401", "0.6263819", "0.62360865", "0.61729306", "0.61521226", "0.6134045", "0.6090984", "0.60864514", "0.60727745", "0.60699266", "0.6052486", "0.6049852", "0.6049368", "0.604930...
0.0
-1
Created by mac on 2017/11/30.
@Singleton @Component(modules = UserModule.class, dependencies = FlowerComponent.class) public interface UserComponent { User getUser(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "private static void cajas() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "public void mo6081a() {\n }", "private void kk12() {\n\n\t}", "@SuppressWarnings(\"unused\")\n\tprivate void version() {...
[ "0.5874334", "0.5614142", "0.5576991", "0.5548285", "0.55383754", "0.5455551", "0.5437004", "0.53962076", "0.53789496", "0.53704685", "0.5365575", "0.53563464", "0.53556013", "0.5341569", "0.53349024", "0.5334605", "0.53293526", "0.53278774", "0.5307214", "0.53033", "0.529361...
0.0
-1
unicamente se invoca esta accion para actualizar los parametros de fechas.
public String actionBuscar(){ return ""; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void actualizarAsistencia(Asistencia asistencia);", "public void actualizar() {\n\n\t}", "private void actualizarFondo() {\n actualizaEstadoMapa();\n if (modificacionFondoBase == true && estadoJuego != EstadoJuego.PAUSADO && estadoJuego != EstadoJuego.PIERDE){\n moverFondo();\n ...
[ "0.62460756", "0.6231654", "0.6220934", "0.6144811", "0.6130315", "0.60432714", "0.5998797", "0.59964603", "0.5954546", "0.59532547", "0.5940867", "0.5937215", "0.5913365", "0.5913209", "0.5905096", "0.5844176", "0.5835814", "0.582254", "0.5820767", "0.57696253", "0.57695", ...
0.0
-1
Un bean inyectado debe tener sus metodos accesores:
public void setBeanLogin(BeanLogin beanLogin) { this.beanLogin = beanLogin; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ObjetosBeans() {\n this.init();\n }", "public ClasificacionBean() {\r\n }", "public AsignacionCamaBean() {\r\n bussinessFacade = new BussinessFacade();\r\n apoderadoFacade = new ApoderadoFacade();\r\n especialidadFacade = new EspecialidadFacade();\r\n asignacionC...
[ "0.67885864", "0.6753143", "0.66331255", "0.6515144", "0.64472336", "0.6316342", "0.62900364", "0.6286029", "0.6280223", "0.6263608", "0.6246748", "0.6182919", "0.6173254", "0.6171869", "0.61608994", "0.61510515", "0.6147977", "0.6141526", "0.6132975", "0.61144954", "0.611014...
0.0
-1
Created by hanjiewu on 2016/5/25.
public interface UserService { User createUser(User user); void changePassword(long userId, String newPassword); void correlationRoles(long userId, long... roleIds); void uncorrelationRoles(long userId, long... roleIds); User findByUserName(String username); Set<String> findRoles(String username); Set<String> findPermissions(String username); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r...
[ "0.6129035", "0.60189277", "0.59667987", "0.59204185", "0.5913503", "0.5913503", "0.5885699", "0.58248067", "0.57793957", "0.5762363", "0.57565176", "0.5739903", "0.5739855", "0.5728188", "0.5726994", "0.571949", "0.57132936", "0.56900996", "0.5683022", "0.567632", "0.5667321...
0.0
-1