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
Close JMX client and all its connections
public void close() { try { jmxc.close(); } catch (IOException e) { log.error("Unable to close JMX connector", e); } log.info("JMX connector successfully closed"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void stop() throws LifecycleException {\n jmxClient.close();\n }", "@PreDestroy\n public void close() {\n connectionManagers.values().forEach(ConnectionManager::close);\n }", "public void close() {\n\t\tshutdownClient(clientRef.get());\n\t}", "public void close()\n {\n getConn...
[ "0.6933112", "0.67394495", "0.6726339", "0.66978866", "0.6464186", "0.64579535", "0.64132875", "0.62784946", "0.6238993", "0.6231667", "0.62231094", "0.61993885", "0.6178891", "0.61562383", "0.61203164", "0.6115165", "0.61077183", "0.6087765", "0.60706484", "0.6067817", "0.60...
0.7590743
0
method getRoot() : Getter du panneau de fond de la scene.
BorderPane getRoot();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Pane getRoot() {\n \treturn _root;\n }", "public Object getRoot(){\r\n\t\treturn _root;\r\n\t}", "public DialogueNode getRoot() {\n\t\treturn root;\n\t}", "public Region getRoot() {\r\n return root;\r\n }", "public Object getRoot() {\n\t\treturn null;\n\t}", "public String getRoot(...
[ "0.8272826", "0.7724818", "0.7675118", "0.76249176", "0.7620192", "0.75834054", "0.75807136", "0.75807136", "0.7563098", "0.7517829", "0.75078326", "0.75065327", "0.7486291", "0.7403884", "0.7352197", "0.7347931", "0.7326714", "0.73193216", "0.73193216", "0.73193216", "0.7312...
0.71185124
30
method getRootMenuBar() : Getter de la barre de menus de this.root.
MenuBar getRootMenuBar();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ModuleMenuBar getMenuBar() {\n\t\treturn menuBar;\n\t}", "public JMenuBar getMainMenuBar() {\n return menuBar;\n }", "public JMenuBar getMenuBar() {\n return this.menuBar;\n }", "public GameMenuBar getGameMenuBar() {\n\t\treturn this.menuBar;\n\t}", "public SubjectDialogMenuBar g...
[ "0.8227417", "0.8190378", "0.8188087", "0.7994841", "0.78786427", "0.77930456", "0.76068664", "0.75932765", "0.7450397", "0.71260303", "0.70174044", "0.7007079", "0.69530594", "0.6945786", "0.69095063", "0.68813694", "0.67894036", "0.6770427", "0.6735069", "0.6725518", "0.672...
0.89029616
0
method getMenuFile() : Getter du menu File.
Menu getMenuFile();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JMenu getFileMenu() {\n return fileMenu;\n }", "private JMenu getFileMenu() {\n if (fileMenu == null) {\n fileMenu = new JMenu();\n fileMenu.setText(\"File\");\n fileMenu.add(getExitMenuItem());\n }\n return fileMenu;\n }", "private JMen...
[ "0.8760493", "0.83690387", "0.8343011", "0.8184171", "0.8103137", "0.79972494", "0.7971712", "0.7646501", "0.73172826", "0.72003835", "0.7188977", "0.7127668", "0.6890012", "0.68690336", "0.68538606", "0.67568284", "0.67329276", "0.6719595", "0.6522282", "0.6509243", "0.64307...
0.904455
0
method getMenuItemClose() : Getter du MenuItem Close du Menu File.
MenuItem getMenuItemClose();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void closeMenu() {\n\t\t}", "Menu getMenuFile();", "public JMenu getFileMenu() {\n return fileMenu;\n }", "private JMenu getFileMenu() {\n if (fileMenu == null) {\n fileMenu = new JMenu();\n fileMenu.setText(\"File\");\n fileMenu.add(get...
[ "0.7151907", "0.7114118", "0.6964354", "0.69382703", "0.6845404", "0.68214095", "0.6795283", "0.656209", "0.65598816", "0.636577", "0.635439", "0.6330871", "0.63300043", "0.63118744", "0.62770855", "0.62701917", "0.62601775", "0.62601775", "0.62421376", "0.6226552", "0.622621...
0.8626052
0
method getMenuEdit() : Getter du menu Edit.
Menu getMenuEdit();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getAddEditMenuText();", "private MenuManager createEditMenu() {\n\t\tMenuManager menu = new MenuManager(\"&Edition\", Messages.getString(\"IU.Strings.40\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tmenu.add(new GroupMarker(Messages.getString(\"IU.Strings.41\"))); //$NON-NLS-1$\n\n\t\tmenu.add(getAction(Actio...
[ "0.7454314", "0.7450601", "0.7166092", "0.68868613", "0.68722534", "0.6870714", "0.6852796", "0.67184836", "0.6636996", "0.65749556", "0.65581995", "0.654334", "0.6542444", "0.6494568", "0.64675516", "0.64534837", "0.6447985", "0.64167374", "0.63817376", "0.6380369", "0.63624...
0.89393395
0
method getMenuItemDelete() : Getter du MenuItem Delete du Menu Edit.
MenuItem getMenuItemDelete();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private JMenuItem getPopupDeleteMenu() {\r\n\t\tif (popupDeleteMenu == null) {\r\n\t\t\tpopupDeleteMenu = new PopupDeleteMenu();\r\n\t\t}\r\n\t\treturn popupDeleteMenu;\r\n\t}", "Menu getMenuEdit();", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n menu.add(\"Edit record \");\n ...
[ "0.7348645", "0.69818735", "0.6744796", "0.6704048", "0.657325", "0.6498913", "0.6474835", "0.64385813", "0.6403454", "0.63984996", "0.637064", "0.6306404", "0.6287904", "0.628658", "0.6251819", "0.62500626", "0.6225612", "0.62239194", "0.6198459", "0.61942315", "0.6180404", ...
0.87914014
0
method getMenuHelp() : Getter du menu Help.
Menu getMenuHelp();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JMenu getHelpMenu() {\n return helpMenu;\n }", "private JMenu getHelpMenu() {\n if (helpMenu == null) {\n helpMenu = new JMenu();\n helpMenu.setText(\"Help\");\n helpMenu.add(getAboutMenuItem());\n }\n return helpMenu;\n }", "private JMe...
[ "0.8823318", "0.8438363", "0.8394764", "0.8349155", "0.8207574", "0.7869258", "0.78432137", "0.7614706", "0.74817663", "0.74615437", "0.7379162", "0.73716336", "0.73696303", "0.7350884", "0.7334507", "0.73085123", "0.72489834", "0.7240741", "0.72226197", "0.7133953", "0.71040...
0.91998696
0
method getMenuItemAbout() : Getter du MenuItem About du Menu Help.
MenuItem getMenuItemAbout();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JMenuItem getAboutMenuItem() {\n return aboutMenuItem;\n }", "Menu getMenuHelp();", "private JMenuItem getAboutMenuItem() {\n\t\tif (aboutMenuItem == null) {\n\t\t\taboutMenuItem = new JMenuItem();\n\t\t\taboutMenuItem.setText(\"O aplikácii SluchAnal\");\n\t\t\taboutMenuItem.addActionListener(...
[ "0.8665846", "0.8176369", "0.80518234", "0.78799456", "0.78614837", "0.76994157", "0.75555754", "0.73886997", "0.7342022", "0.73198307", "0.7224079", "0.7184863", "0.6809425", "0.6745513", "0.66929823", "0.6682573", "0.66504055", "0.6649902", "0.6616089", "0.65996087", "0.656...
0.88829243
0
Getter du panneau du bas pour la recherche.
GridPane getRootGridPaneRecherche();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "TextField getTextFieldRootRecherche();", "Search getSearch();", "Label getLabelRootRecherche();", "public String getSearchHint();", "public Show search(String title){\n return super.search(title);\n }", "public RechercheControlleur() {\n\t\t\n\t\tthis.modele = new RechercheModele(false);\n\t\tt...
[ "0.6136592", "0.60731536", "0.5999973", "0.59637916", "0.5873471", "0.58277386", "0.57482517", "0.57377976", "0.5734269", "0.5716672", "0.5703071", "0.56987125", "0.5684337", "0.5659985", "0.56210136", "0.5615545", "0.5584288", "0.55725425", "0.5567681", "0.55659467", "0.5557...
0.5521355
24
Getter du label pour la zone de recherche.
Label getLabelRootRecherche();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getLabel();", "String getLabel();", "public java.lang.String getLabel();", "java.lang.String getLabel();", "Label getLabel();", "Label getLabel();", "Label getLabel();", "public String getLabel();", "public String getLabel();", "public String getLabel();", "public String getLabel();", ...
[ "0.776457", "0.776457", "0.77614516", "0.77579474", "0.7694008", "0.7694008", "0.7694008", "0.7654699", "0.7654699", "0.7654699", "0.7654699", "0.75079066", "0.74328274", "0.7429078", "0.74115336", "0.7402357", "0.739931", "0.73984027", "0.7373603", "0.7365056", "0.73616946",...
0.7136592
48
Getter de la zone de recherche.
TextField getTextFieldRootRecherche();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getZone();", "com.google.protobuf.ByteString getQueryZone();", "public ZoneVO getZoneById(Integer zoneid);", "Place getPlace();", "public String getZone() {\n return this.zone;\n }", "public String getZone() {\n return this.Zone;\n }", "public String getZone() {\r\n...
[ "0.6562855", "0.6365362", "0.61938137", "0.6030349", "0.6007658", "0.5950118", "0.59408724", "0.58856475", "0.5852708", "0.58194214", "0.5809557", "0.57516366", "0.5728021", "0.57224673", "0.57217836", "0.56272703", "0.56220114", "0.5621991", "0.5602211", "0.55768514", "0.556...
0.0
-1
Getter du bouton d'effacement de la zone de recherche.
Button getButtonRootClearRecherche();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String recherche() {\n\n listAnnonce = iServiceGestionAnnonce.findByExampleSql( annonce, adresse );\n\n return \"rechercheResultat\";\n\n }", "public abstract String getBeschreibung();", "public java.lang.String getBloqueado(){\n return localBloqueado;\n ...
[ "0.61304796", "0.59137315", "0.5724792", "0.57018864", "0.5700772", "0.56871086", "0.5646187", "0.5636721", "0.56274366", "0.5588709", "0.5578583", "0.556435", "0.55170107", "0.5514061", "0.5512901", "0.54700595", "0.5469857", "0.5461818", "0.5460835", "0.5455723", "0.5443120...
0.0
-1
Display the first 500 characters of the response string.
@Override public void onResponse(String response) { if (new CheckConnectivity().isConnected(context)) { try { prog.dismiss(); Log.e("Response : prince ", response); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void responseHandler(StringBuilder sb)\n\t{\n\t\tString s = sb.toString();\t\t\n\t\tString[] lines = s.split(\"\\n\");\t\t\n\t\tString firstLine = \"\";\n\t\t\n\t\t// Only search through the first five lines. If it isn't \n\t\t// in the first five lines it probably isn't there.\n\t\tfor(int i = 0; i...
[ "0.6099205", "0.5462517", "0.5253299", "0.5200544", "0.5149994", "0.51060075", "0.5015037", "0.5014966", "0.50079596", "0.49569082", "0.4944277", "0.4936987", "0.49277732", "0.48970893", "0.48965833", "0.48854297", "0.48647302", "0.48642012", "0.48582867", "0.4852934", "0.483...
0.0
-1
Display the first 500 characters of the response string.
@Override public void onResponse(String response) { if (new CheckConnectivity().isConnected(context)) { try { prog.dismiss(); Log.e("Response : prince ", response); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void responseHandler(StringBuilder sb)\n\t{\n\t\tString s = sb.toString();\t\t\n\t\tString[] lines = s.split(\"\\n\");\t\t\n\t\tString firstLine = \"\";\n\t\t\n\t\t// Only search through the first five lines. If it isn't \n\t\t// in the first five lines it probably isn't there.\n\t\tfor(int i = 0; i...
[ "0.6096888", "0.54626095", "0.525129", "0.519861", "0.51495236", "0.5104198", "0.5014701", "0.5012078", "0.5009153", "0.49545506", "0.49450046", "0.49374673", "0.49273226", "0.48954472", "0.4894208", "0.4886085", "0.48648152", "0.48621187", "0.48573503", "0.48517242", "0.4832...
0.0
-1
factory for the starting point
@Override public Solution<TTPVariable> run(SingleObjectiveThiefProblem thief, IEvaluator evaluator, MyRandom rand) { TTPVariable var = TTPVariable.create(new TourOptimalFactory(thief).next(rand), Pack.empty()); Solution<TTPVariable> currentBest = thief.evaluate(var); while (evaluator.hasNext()) { // now ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Reproducible newInstance();", "public ExecutionFactoryImpl() {\n\t\tsuper();\n\t}", "public Main() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\r\n\t}", "public Factory() {\n\t\tsuper();\n\t}", "private StickFactory() {\n\t}", "private PerksFactory() {\n\n\t}", "Start createStart();", "public FirstRun(...
[ "0.7043311", "0.6720015", "0.6688494", "0.6672407", "0.66352946", "0.66005147", "0.6596044", "0.6531935", "0.64862436", "0.64862436", "0.6476819", "0.6475224", "0.6454294", "0.6454236", "0.6445296", "0.6445296", "0.6445296", "0.6445296", "0.6445296", "0.6445296", "0.6445296",...
0.0
-1
/ 1 This series of three tests verifies the improved method implements the same function as the previous one MainPanel.convertToInt() is improved getNumNeighbors0 represents previous one getNumNeighbors1 represents improved one
@Test public void convertTotest1() { MainPanel testConvertToInt = new MainPanel(9); int getNumNeighbors1Result = testConvertToInt.getNumNeighbors1(2,2); int getNumNeighbors0Result = testConvertToInt.getNumNeighbors0(2,2); assertEquals(getNumNeighbors1Result, getNumNeighbors0Result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract int countNeighbors(int x, int y);", "public abstract int getNeighboursNumber(int index);", "@Test\r\n public void Test016FindLiveNeighbours()\r\n {\r\n\r\n gol.makeLiveCell(1, 1);\r\n\r\n assertEquals(1, gol.findLiveNeighbours(0, 0));\r\n }", "@Test\r\n public void Test02...
[ "0.6378508", "0.59854543", "0.59443814", "0.5944056", "0.5928031", "0.59160846", "0.59159595", "0.58767605", "0.5868998", "0.5854731", "0.58503944", "0.58379495", "0.58374906", "0.5834768", "0.58293974", "0.5806112", "0.5728156", "0.56740123", "0.56328166", "0.5603431", "0.55...
0.82158047
0
/ 2 This series of three tests verifies the improved method implements the same function as the previous one MainPanel.backup is improved backup0 represents the previous one backup1 represents the improved one
@Test public void backupTest1() { MainPanel m = new MainPanel(15); Cell[][] _cells = new Cell[15][15]; for(int i = 0; i < 15; i++) { for(int j = 0; j < 15; j++) { _cells[i][j] = new Cell(false); } } m.backup1(); assertEquals(m._backupCells[14][14].getAlive(), _cells[14][14].getAlive()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main_compareBackup(){\n //table.equals(tableClone);\n\n if(table.equals(tableClone))\n System.out.println(\"Current list is the same as the backup copy.\");\n else\n System.out.println(\"Current list is not the same as the backup copy.\");\n }", "@...
[ "0.5987196", "0.59330505", "0.58421284", "0.5825762", "0.58196706", "0.5758702", "0.5755333", "0.5752932", "0.5691632", "0.56020015", "0.5572096", "0.5541326", "0.5531115", "0.5470703", "0.5426814", "0.53251076", "0.52481514", "0.5228156", "0.522507", "0.52142847", "0.5212999...
0.7330137
0
Created by Radomir Sohlich on 27/03/2017.
public interface URLProcessingService { public PresentationDocument process(String url); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "public fina...
[ "0.5962179", "0.57428145", "0.56956357", "0.56310886", "0.56154084", "0.56154084", "0.5612634", "0.5602143", "0.5579717", "0.5535477", "0.55085075", "0.5497632", "0.54918534", "0.5470112", "0.546466", "0.54640007", "0.54617035", "0.54617035", "0.54617035", "0.54617035", "0.54...
0.0
-1
SocialAuthManager socialAuthManager = new SocialAuthManager(); socialAuthManager.setSocialAuthConfig(socialAuthConfig); return "redirect:" + socialAuthManager.getAuthenticationUrl("googleplus", baseUrl + "/cp/auth/callback.html", Permission.AUTHENTICATE_ONLY);
@RequestMapping("/signin") public String signin() throws Exception { return "redirect:" + baseUrl + "/cp/auth/callback.html"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getAuthrUrl(String redirectUri, String scope) throws Exception {\r\n\t\tString getCodeUrl = MessageFormat.format(GET_OAUTH_USER_AGREE_URL, SOCIAL_LOGIN_CLIENT_ID, java.net.URLEncoder.encode(redirectUri, \"utf-8\"), scope);\r\n\t\treturn getCodeUrl;\r\n\t}", "public String buildLoginUrl() {\n...
[ "0.6034498", "0.58663106", "0.57319176", "0.5698599", "0.5698599", "0.56950575", "0.5673923", "0.5672087", "0.5664623", "0.5643169", "0.55810523", "0.55770046", "0.557066", "0.5568592", "0.55360603", "0.551989", "0.55191183", "0.55176336", "0.5504489", "0.5499265", "0.5495443...
0.5313033
34
oct NB: no "o" in java leading 0 = octal
@Test public void identifyOctLiteral() throws IOException { identifyIntLiteral("0o101_2044_1504", IntToken.Format.OCT); identifyIntLiteral("0O101_2044_1504", IntToken.Format.OCT); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String args[]){\nSystem.out.println(Integer.toOctalString(8)); \nSystem.out.println(Integer.toOctalString(19)); \nSystem.out.println(Integer.toOctalString(81)); \n}", "public String binarioToOcta(String binario) {\n\t\tSystem.out.print(\"Convirtiendo binario (\" + binario + \") a octal...
[ "0.7368601", "0.70972705", "0.7055278", "0.6843267", "0.67820656", "0.676514", "0.66473275", "0.6417084", "0.63787425", "0.6357066", "0.6330153", "0.6329657", "0.62920725", "0.6265964", "0.6238634", "0.61762995", "0.60636705", "0.60417205", "0.5995238", "0.5957429", "0.592177...
0.73252225
1
Function// get transaction detail
private void getTransactionDetail(){ myTransactions = MainActivity.user.getWallet().getDetail(); Collections.reverse(myTransactions); //--------------------設定ViewPager--------------------// LinearLayoutManager layoutManager = new LinearLayoutManager(getContext()); layoutManager....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getTransactionId();", "String getTransactionId();", "public String getTransaction() {\n return transaction;\n }", "public Object getTransactionId() throws StandardException;", "public long getTransactionId();", "public TransactionDetailResp transaction_show(String txId) throws Exception ...
[ "0.7342201", "0.7342201", "0.7295874", "0.7044693", "0.6942483", "0.69301003", "0.69295263", "0.6896696", "0.68850327", "0.6852387", "0.6819464", "0.681627", "0.681627", "0.68128103", "0.6811116", "0.67850024", "0.67754465", "0.6740299", "0.6681902", "0.6679811", "0.663128", ...
0.59608454
72
mayor o igual a 0 y menor de 150
public Cliente() { super(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public float spiderScaleAmount()\n {\nreturn 1F;\n }", "@Test\n public void testIsInLimitLower() {\n Assertions.assertTrue(saab.isInLimit(.3, .9, .6));\n }", "public static int getOreValueRandomLimit() {\r\n\t\treturn 50;\r\n\t}", "private boolean checkGreedyDefense() {\r\n return e...
[ "0.5955959", "0.5926142", "0.5878602", "0.58681786", "0.5856222", "0.58462226", "0.5823053", "0.57986116", "0.57966703", "0.57795024", "0.574558", "0.57373875", "0.5735174", "0.5722237", "0.5705579", "0.56848913", "0.5670405", "0.56664175", "0.56630516", "0.5653608", "0.56470...
0.0
-1
Create a new user with a first and last name
@Override public void onClick(View v) { Toast.makeText(AddActivty.this, "جاري رفع المنتج", Toast.LENGTH_SHORT).show(); StoreProductInformation(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createUser(String firstName, String emailAddress) {\n\n this.firstName = firstName;\n this.emailAddress = emailAddress;\n\n }", "public void creatUser(String name, String phone, String email, String password);", "@PostMapping(\"/user/new/\")\n\tpublic userprofiles createUser(@Requ...
[ "0.7984072", "0.7777748", "0.7667908", "0.7553382", "0.74613225", "0.74437314", "0.74387854", "0.73465484", "0.733185", "0.7291767", "0.72687024", "0.7211954", "0.71524394", "0.71492666", "0.7145662", "0.71311593", "0.71198547", "0.71188456", "0.7118714", "0.71133405", "0.706...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { insert(); }
{ "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
sets the game with 2 players and their workers, creates instance of model then set the current player
@Before public void setUp() { player1 = new Player("Test", 5, "@"); player2 = new Player("Opponent", 2, "#"); ArrayList<Player> players = new ArrayList<>(); players.add(player1); players.add(player2); model = new Model(players, 2); player1.setWorkers(GodName.H...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setupComputerPlayers() {\r\n\t\tif(models == null) models = new ModelFactory(this, options);\r\n\t\tCPUFactory factory = new CPUFactory(this);\r\n\t\tint cpuIndex = 0;\r\n\t\tfor(int i = 0; i < getNumPlayers(); i++) {\r\n\t\t\tboolean isCPU = i >= getNumPlayers() - getNumNPC();\r\n\t\t\tif(isCPU) {\r\n...
[ "0.6737134", "0.64602494", "0.63448536", "0.63386464", "0.6327462", "0.6284366", "0.6243643", "0.62375844", "0.6187974", "0.6184925", "0.6119371", "0.60843974", "0.6032739", "0.6003787", "0.59874666", "0.59736395", "0.5957294", "0.5942676", "0.5901825", "0.5881132", "0.585582...
0.70789504
0
checks if workerHephaestus can use special power knowing has move and has build previously
@Test public void canUseSpecialPowerTrue() { nextWorkerCell.setLevel(0); workerHephaestus.setCurrentWorkerCell(baseWorkerCell); workerHephaestus.setHasMoved(true); workerHephaestus.build(nextWorkerCell); assertTrue(workerHephaestus.canUseSpecialPower()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void canUseSpecialPowerFalseNoMoveNoBuild() {\n nextWorkerCell.setLevel(0);\n workerHephaestus.setCurrentWorkerCell(baseWorkerCell);\n //no move, no build\n assertFalse(workerHephaestus.canUseSpecialPower());\n }", "@Test\n public void canUseSpecialPowerFalseNo...
[ "0.7992027", "0.7979534", "0.7685337", "0.6822842", "0.6667627", "0.658304", "0.64429003", "0.64251417", "0.63645846", "0.63497645", "0.6243493", "0.61872745", "0.61250126", "0.6099396", "0.6084232", "0.60649055", "0.6055942", "0.6052138", "0.6028378", "0.6019037", "0.6017585...
0.77516574
2
checks if workerHephaestus can't use special power knowing hasn't move and has build previously
@Test public void canUseSpecialPowerFalseNoMove() { nextWorkerCell.setLevel(0); workerHephaestus.setCurrentWorkerCell(baseWorkerCell); //no move workerHephaestus.build(nextWorkerCell); assertFalse(workerHephaestus.canUseSpecialPower()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void canUseSpecialPowerFalseNoBuild() {\n nextWorkerCell.setLevel(0);\n workerHephaestus.setCurrentWorkerCell(baseWorkerCell);\n workerHephaestus.setHasMoved(true);\n //no Build\n assertFalse(workerHephaestus.canUseSpecialPower());\n }", "@Test\n public ...
[ "0.7981238", "0.787593", "0.7446145", "0.68922323", "0.66533685", "0.662447", "0.632762", "0.6289096", "0.6235754", "0.61505014", "0.61346006", "0.61248815", "0.6123483", "0.6090873", "0.6065806", "0.6065718", "0.6033989", "0.60297835", "0.5999187", "0.59895945", "0.5972845",...
0.7597487
2
checks if workerHephaestus can't use special power knowing has move and hasn't build previously
@Test public void canUseSpecialPowerFalseNoBuild() { nextWorkerCell.setLevel(0); workerHephaestus.setCurrentWorkerCell(baseWorkerCell); workerHephaestus.setHasMoved(true); //no Build assertFalse(workerHephaestus.canUseSpecialPower()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void canUseSpecialPowerFalseNoMoveNoBuild() {\n nextWorkerCell.setLevel(0);\n workerHephaestus.setCurrentWorkerCell(baseWorkerCell);\n //no move, no build\n assertFalse(workerHephaestus.canUseSpecialPower());\n }", "@Test\n public void canUseSpecialPowerFalseNo...
[ "0.79740614", "0.7743886", "0.74807805", "0.6829104", "0.6612304", "0.6491661", "0.6409629", "0.6345736", "0.6240465", "0.61965793", "0.61666024", "0.6150317", "0.6112073", "0.61074144", "0.6106589", "0.60898733", "0.60714227", "0.6065374", "0.60600036", "0.6058802", "0.60299...
0.79736435
1
checks if workerHephaestus can't use special power knowing hasn't move and hasn't build previously
@Test public void canUseSpecialPowerFalseNoMoveNoBuild() { nextWorkerCell.setLevel(0); workerHephaestus.setCurrentWorkerCell(baseWorkerCell); //no move, no build assertFalse(workerHephaestus.canUseSpecialPower()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void canUseSpecialPowerFalseNoBuild() {\n nextWorkerCell.setLevel(0);\n workerHephaestus.setCurrentWorkerCell(baseWorkerCell);\n workerHephaestus.setHasMoved(true);\n //no Build\n assertFalse(workerHephaestus.canUseSpecialPower());\n }", "@Test\n public ...
[ "0.7948879", "0.7600388", "0.7504046", "0.6804869", "0.6586692", "0.64718354", "0.6370612", "0.6250614", "0.61757416", "0.6175364", "0.6149325", "0.6109672", "0.6094268", "0.6092734", "0.6092021", "0.6016618", "0.6011997", "0.596274", "0.59620774", "0.5954659", "0.5941792", ...
0.7844363
1
checks if workerHephaestus can't build on nextWorkerCell knowing nextWorkerCell is occupied
@Test(expected = IllegalArgumentException.class) public void buildFalse() { nextWorkerCell.setIsOccupied(true); workerHephaestus.setCurrentWorkerCell(baseWorkerCell); workerHephaestus.build(nextWorkerCell); assertFalse(workerHephaestus.getHasBuilt()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void cellAlreadyOccupied(int worker) {\n notifyCellAlreadyOccupied(worker, getCurrentTurn().getCurrentPlayer().getNickname());\n }", "@Test(expected = IllegalArgumentException.class)\n public void buildAgainFalse() {\n nextWorkerCell.setLevel(0);\n workerHephaestus.setCurrentWo...
[ "0.67090684", "0.66956717", "0.6606954", "0.65909535", "0.657086", "0.6451015", "0.6433124", "0.6332119", "0.62689674", "0.6254409", "0.6243366", "0.61459935", "0.61384827", "0.61031204", "0.59896296", "0.58959264", "0.58390194", "0.5830707", "0.575384", "0.57487696", "0.5731...
0.70728683
0
checks workerHephaestus can build a dome on nextWorkerCell (level = 4 and isOccuiped = true)
@Test public void buildDomeTrue() { nextWorkerCell.setLevel(3); workerHephaestus.setCurrentWorkerCell(baseWorkerCell); workerHephaestus.build(nextWorkerCell); assertEquals(4, nextWorkerCell.getLevel()); assertTrue(nextWorkerCell.getIsOccupied()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void buildNotDome() {\n nextWorkerCell.setLevel(1);\n workerHephaestus.setCurrentWorkerCell(baseWorkerCell);\n workerHephaestus.build(nextWorkerCell);\n assertEquals(2, nextWorkerCell.getLevel());\n }", "@Test\n public void buildAgainTrue() {\n nextWorke...
[ "0.7029659", "0.6799082", "0.6562682", "0.63748837", "0.63603705", "0.6337868", "0.63123447", "0.62808454", "0.6144918", "0.61409193", "0.6138398", "0.6057199", "0.59462476", "0.59085524", "0.58930135", "0.5738275", "0.55853814", "0.55795836", "0.5560349", "0.55601823", "0.55...
0.73637366
0
checks workerHephaestus can build a block different from a dome on nextWorkerCell
@Test public void buildNotDome() { nextWorkerCell.setLevel(1); workerHephaestus.setCurrentWorkerCell(baseWorkerCell); workerHephaestus.build(nextWorkerCell); assertEquals(2, nextWorkerCell.getLevel()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void setPossibleBuild(Worker worker) {\n super.setPossibleBuild(worker);\n for (int indexBoxNextTo = 0; indexBoxNextTo < 8; indexBoxNextTo++) {\n Box boxNextTo = worker.getActualBox().getBoxesNextTo().get(indexBoxNextTo);\n if (boxNextTo != null && boxNextT...
[ "0.68255615", "0.6783414", "0.6614013", "0.64887553", "0.6473225", "0.6459637", "0.6294164", "0.6288165", "0.6135112", "0.6105502", "0.60999024", "0.600485", "0.5975523", "0.58446753", "0.58228934", "0.56566435", "0.55975765", "0.55922717", "0.5574229", "0.5560595", "0.551671...
0.6770956
2
checks the special power on the nextWorkerCell, knowing workerHephaestus has still built on that cell
@Test public void buildAgainTrue() { nextWorkerCell.setLevel(0); workerHephaestus.setCurrentWorkerCell(baseWorkerCell); workerHephaestus.build(nextWorkerCell); workerHephaestus.specialPower(nextWorkerCell); assertEquals(2, nextWorkerCell.getLevel()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void canUseSpecialPowerTrue() {\n nextWorkerCell.setLevel(0);\n workerHephaestus.setCurrentWorkerCell(baseWorkerCell);\n workerHephaestus.setHasMoved(true);\n workerHephaestus.build(nextWorkerCell);\n assertTrue(workerHephaestus.canUseSpecialPower());\n }", ...
[ "0.7760703", "0.757114", "0.74626607", "0.7429783", "0.6887649", "0.64626855", "0.6445585", "0.6229102", "0.60638726", "0.5976222", "0.58494556", "0.5845397", "0.5838334", "0.5735986", "0.5710444", "0.56355846", "0.5617065", "0.5612479", "0.5596081", "0.5593201", "0.5580205",...
0.7188332
4
checks that workerHephaestus cant'use special power on otherCell because has built on a different cell
@Test(expected = IllegalArgumentException.class) public void buildAgainFalse() { nextWorkerCell.setLevel(0); workerHephaestus.setCurrentWorkerCell(baseWorkerCell); workerHephaestus.build(nextWorkerCell); //provo a fagli costruire su una cella diversa da nextWorkerCell (non puo!) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void canUseSpecialPowerFalseNoBuild() {\n nextWorkerCell.setLevel(0);\n workerHephaestus.setCurrentWorkerCell(baseWorkerCell);\n workerHephaestus.setHasMoved(true);\n //no Build\n assertFalse(workerHephaestus.canUseSpecialPower());\n }", "@Test\n public ...
[ "0.73671824", "0.73456645", "0.7279664", "0.7250072", "0.65902877", "0.6459658", "0.6391502", "0.62142825", "0.6045988", "0.5984281", "0.57295984", "0.5667237", "0.56378466", "0.5576227", "0.5551926", "0.55440044", "0.5524979", "0.54656434", "0.54478467", "0.542128", "0.53831...
0.69204915
4
checks that workerHephaestus cant'use special power on nextWorkerCell because the level of that cell is 3 (workerHephaestus cant' build dome with the special power)
@Test(expected = IllegalArgumentException.class) public void buildDomeFalse() { nextWorkerCell.setLevel(2); workerHephaestus.setCurrentWorkerCell(baseWorkerCell); workerHephaestus.build(nextWorkerCell); //livello -> 3 //provo a fagli costruire una cupola (non può!) workerHeph...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void canUseSpecialPowerTrue() {\n nextWorkerCell.setLevel(0);\n workerHephaestus.setCurrentWorkerCell(baseWorkerCell);\n workerHephaestus.setHasMoved(true);\n workerHephaestus.build(nextWorkerCell);\n assertTrue(workerHephaestus.canUseSpecialPower());\n }", ...
[ "0.7557199", "0.73010993", "0.72477806", "0.7237629", "0.7167868", "0.69946206", "0.6975527", "0.65940845", "0.5932075", "0.5844802", "0.5722247", "0.56243294", "0.55920553", "0.55917114", "0.5525491", "0.5498811", "0.548992", "0.5464762", "0.5446152", "0.53778994", "0.534651...
0.6791255
7
/ if any of the parameters is null, the respective functionality will not be used
public CustomExceptionHandler() { this.defaultUEH = Thread.getDefaultUncaughtExceptionHandler(); Thread.setDefaultUncaughtExceptionHandler(this); this.fileName = Environment.getExternalStorageDirectory() + "/imtv"; File f = new File(fileName); f.mkdirs(); this.fileNa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Ignore\n\t@Test\n\tpublic void testParamNull() {\n\t\tregisterParamException(null, keyString, valueString);\n\t\tregisterParamException(groupString, null, valueString);\n\t\tregisterParamException(groupString, keyString, null);\n\t}", "private void checkForEmptyLine() throws OutmatchingParametersToMethodCall {\...
[ "0.63302934", "0.62508", "0.6115871", "0.61004597", "0.598592", "0.59682083", "0.5960712", "0.5924877", "0.5887799", "0.5847212", "0.58336973", "0.5807253", "0.5804371", "0.5762433", "0.57600456", "0.57552296", "0.5741002", "0.57381254", "0.5733106", "0.56595314", "0.5656153"...
0.0
-1
customizes components and puts the changing ones into "control" arrays
private void customizeComponents(Component c, int i1) { /** * cName is name of component without index */ int a = 1; /** * to get correct cName depending on index */ for (int i = 0; i < c.getName().length(); i++) { try { a = Integer.parseInt(c.getName().substring(i)); a = c.g...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createComponents(JComponent panel) {\r\n\t\t// Array display\r\n\t\tpanel.setLayout(new FlowLayout());\r\n\t\tpanel1.setLayout(new BorderLayout());\r\n\t\tcanvas.addMouseListener(aml);\r\n\t\tcanvas.addMouseMotionListener(aml);\r\n\t\tpanel1.add(canvas);\r\n\t\tpanel1.add(instr, BorderLayout.NORTH);\r\...
[ "0.65318435", "0.6482051", "0.644924", "0.6447981", "0.641624", "0.63922936", "0.63922936", "0.63454485", "0.6330942", "0.6311745", "0.6286119", "0.62795395", "0.6266486", "0.6258515", "0.6220335", "0.6189316", "0.61636335", "0.61627793", "0.6162631", "0.61481243", "0.6131846...
0.6837697
0
TODO create more rooms by array of frames, add arrows to navigate
@SuppressWarnings("unused") public static void checkNumberOfCoffeeDispensers() { if (NUMBEROFCOFFEEDISPENSER > 5) { JOptionPane.showMessageDialog(null, "Danger! A person who probably likes 42 has manipulated the interface above its limits.\n\nYou can get more rooms for money. ;-)\n\nprogram will terminate...",...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void createFrames() {\n createStandingRight();\n createStandingLeft();\n createWalkingRight();\n createWalkingLeft();\n createJumpingRight();\n createJumpingLeft();\n createDying();\n }", "O_Game(JFrame inFrame) {\n \t\t// Initiate object variables\n ...
[ "0.66570604", "0.65209883", "0.62838304", "0.6275226", "0.6081251", "0.6077305", "0.60660714", "0.60538626", "0.60226566", "0.60063565", "0.59844595", "0.59591305", "0.591593", "0.5878858", "0.58418626", "0.58378893", "0.58310974", "0.5797693", "0.57724786", "0.57510775", "0....
0.0
-1
Act do whatever the Ball wants to do. This method is called whenever the 'Act' or 'Run' button gets pressed in the environment.
public void act() { if (wait < 75) { wait = wait + 1; } if (wait == 75) { change(); checkForBounce(); checkForEdge(); checkWin(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void act()\n {\n // handle key events\n String key = Greenfoot.getKey();\n if (key != null)\n {\n handleKeyPress(key);\n } \n\n // handle mouse events\n if (startGameButton.wasClicked())\n {\n handleStartGame();\n ...
[ "0.72576326", "0.7115976", "0.69305825", "0.6929265", "0.68763226", "0.681633", "0.68076855", "0.6795508", "0.67950284", "0.6732129", "0.6718438", "0.6718438", "0.6657839", "0.6651792", "0.6648221", "0.66359437", "0.66315275", "0.66213673", "0.6601769", "0.6601769", "0.659927...
0.65935886
24
Checks if touching paddle or horizontal walls, if so reverse movement "Bounce" Check if touching middle, if so allow bounce
public void checkForBounce() { if (isTouching(mid.class)){ bounce = 1; } if (getY() <= 0 || getY() >= getWorld().getHeight() -1 ) { dY = -dY; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void checkWallBounce(){\n // Bounce the ball back when it hits the top of screen\n if (getRect().top < 0) {\n reverseYVelocity();\n clearObstacleY(40);\n }\n\n // If the ball hits left wall bounce\n if (getRect().left < 0) {\n reverseXVeloc...
[ "0.77614945", "0.7617307", "0.68510664", "0.6832672", "0.67857844", "0.66881365", "0.6654932", "0.6620697", "0.660732", "0.660467", "0.65277815", "0.65143967", "0.63908875", "0.63748324", "0.63666767", "0.6356783", "0.63566387", "0.63517195", "0.6348504", "0.6335164", "0.6331...
0.78371334
0
Checks if touching x edge, if so Playsound, give point to correct side, move ball to center, and delay the game
public void checkForEdge() { if (getX() <= 1) { Greenfoot.playSound("pointScore.wav"); setLocation(getWorld().getWidth() / 2, getWorld().getHeight() / 2); dX = -dX; lWin++; MyWorld myWorld = (MyWorld...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void changePos() {\r\n\r\n // Add timeCount\r\n timeCount += 20;\r\n\r\n // Orange\r\n orangeY += 12;\r\n\r\n float orangeCenterX = orangeX + orange.getWidth() / 2;\r\n float orangeCenterY = orangeY + orange.getHeight() / 2;\r\n\r\n if (hitCheck(orangeCenterX...
[ "0.6871329", "0.66646785", "0.6538122", "0.6522521", "0.64489836", "0.6442968", "0.6379251", "0.62404203", "0.62327015", "0.6229842", "0.6178342", "0.6160587", "0.61478156", "0.6131023", "0.6104023", "0.60989565", "0.60957456", "0.60899556", "0.60855156", "0.6079031", "0.6062...
0.68079615
1
Checks how many points each side has, if it is equal to 8, change ball to win sign and end game
public void checkWin() { if (lWin ==8) { Greenfoot.playSound("finalWin.wav"); setLocation(getWorld().getWidth() / 2, getWorld().getHeight() / 2); setImage(win); Greenfoot.stop(); } if (rWin ==8) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void checkForEdge() \n {\n if (getX() <= 1)\n {\n \n \n Greenfoot.playSound(\"pointScore.wav\");\n setLocation(getWorld().getWidth() / 2, getWorld().getHeight() / 2);\n dX = -dX;\n lWin++;\n \n MyWorld ...
[ "0.66417813", "0.66095823", "0.64103156", "0.63656753", "0.6336775", "0.63173616", "0.6285688", "0.6285346", "0.62069064", "0.6176308", "0.6156352", "0.6112792", "0.6096022", "0.6079521", "0.60707235", "0.6070392", "0.6064229", "0.6050446", "0.60348773", "0.6005899", "0.59977...
0.6344403
4
onItemClickListener Adpaterview click callback
@Override public void onItemClick(AdapterView<?> adapterView, View view, int i, long id) { Intent detailsIntent = new Intent(ExhibitorActivity.this, ExhibitorDetailsActivity.class); detailsIntent.putExtra(ExhibitorDetailsActivity.FROM_DB, true); detailsIntent.putExtra(ExhibitorDetailsActivi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onItemClickListener(View view, int postion);", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\titemClickListener.Callback(itemInfo);\n\t\n\t\t\t}", "public void onItemClick(View view, int position);", "@Override\n public void onClick(View v...
[ "0.827761", "0.8052209", "0.8016015", "0.799465", "0.79425573", "0.79222286", "0.7881882", "0.78581035", "0.7828711", "0.78228235", "0.7818697", "0.78048015", "0.7793376", "0.7789451", "0.7781044", "0.77733785", "0.777138", "0.7764227", "0.77448696", "0.7743514", "0.7738216",...
0.0
-1
Created by Alexandr on 05.12.2017.
public interface Collider { boolean isColliding(Collider other); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n }", "@Over...
[ "0.6019897", "0.5948251", "0.5672931", "0.5621622", "0.5607422", "0.55941564", "0.55941564", "0.55941564", "0.55941564", "0.55941564", "0.55941564", "0.5539188", "0.5526357", "0.55183554", "0.54907227", "0.5466848", "0.5456563", "0.5456563", "0.5442614", "0.543684", "0.543600...
0.0
-1
public static void main(String[] args)
@Test public void startup(){ Excelutil e=new Excelutil("E://EmpData.xlsx", "Sheet1"); String strdata=e.stringdata(1, 1); System.out.println(strdata); double numdata1=e.numdata(1, 0); System.out.println(numdata1); e.rowcount(); e.colcount(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {}", "public static void main(String[] args) {}", "public static void main(String[] args) { }", "public static void main(String args[]) {}", "public static void main(String args[]) {}", "public static void main(String args[]) {}", "public static void main(String[]...
[ "0.97552377", "0.97552377", "0.9738", "0.9719848", "0.9719848", "0.9719848", "0.9679102", "0.9679102", "0.96640277", "0.96468407", "0.9637819", "0.9636295", "0.9636295", "0.9636295", "0.9631151", "0.9627662", "0.9627662", "0.9625223", "0.9625223", "0.9622755", "0.9622755", ...
0.0
-1
Handle the press of the Enter key in the locationText. This will browse to the entered text.
public void keyPressed(KeyEvent e) { if (e.character == SWT.LF || e.character == SWT.CR) { e.doit = false; browser.setUrl(locationText.getText()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void enterPressed()\n\t{\n\t\t// Call the enter method if the enter key was pressed\n\t\tif (showCaret)\n\t\t\tonSubmit(text.getText().substring(0, text.getText().length() - 1));\n\t\telse onSubmit(text.getText());\n\t}", "void redirectToEnterKey();", "private void jTextField1KeyPressed(java.awt.even...
[ "0.6854381", "0.64802927", "0.63006145", "0.62197524", "0.6214886", "0.61074185", "0.6087707", "0.6057838", "0.6020134", "0.59865314", "0.5944282", "0.5935868", "0.59342444", "0.591516", "0.58450043", "0.58311206", "0.5828456", "0.5823593", "0.5818615", "0.5815304", "0.581303...
0.67149055
1
Creates the metamodel objects for the package. This method is guarded to have no affect on any invocation but its first.
public void createPackageContents() { if(isCreated) { return; } isCreated = true; // Create classes and their features namedElementEClass = createEClass(NAMED_ELEMENT); createEAttribute(namedElementEClass, NAMED_ELEMENT__NAME); modularizationModelEClass = createEClas...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tmetadataEClass = createEClass(METADATA);\n\t\tcreateEAttribute(metadataEClass, METADATA__GAMENAME);\n\t\tcreateEAttribute(metadataEClass, METADATA__SHORTNAME);\n\t\tcreateEAttri...
[ "0.6876547", "0.680113", "0.66855526", "0.6659482", "0.66450787", "0.66169155", "0.6606147", "0.66037714", "0.6576797", "0.6567101", "0.6548205", "0.65393317", "0.6533963", "0.65322256", "0.65288484", "0.6514004", "0.6511146", "0.6499689", "0.6487422", "0.6480423", "0.6452663...
0.65508467
10
Complete the initialization of the package and its metamodel. This method is guarded to have no affect on any invocation but its first.
public void initializePackageContents() { if(isInitialized) { return; } isInitialized = true; // Initialize package setName(eNAME); setNsPrefix(eNS_PREFIX); setNsURI(eNS_URI); // Create type parameters // Set bounds for type parameters // Add supe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tEnginePackage theEnginePackage = (EnginePackage)EPackage.Regist...
[ "0.65640163", "0.6462059", "0.6436701", "0.6418342", "0.64086986", "0.6407179", "0.640251", "0.63977444", "0.6380615", "0.63630956", "0.63531", "0.63412476", "0.6339838", "0.6320774", "0.6317868", "0.6311293", "0.63085693", "0.6303837", "0.6292627", "0.6283738", "0.626962", ...
0.60841763
42
Raw height and width of image
private static int calculateInSampleSize(Options options, int reqWidth, int reqHeight) { final int height = options.outHeight; final int width = options.outWidth; int inSampleSize = 1; if (height > reqHeight || width > reqWidth) { if (width > height) { inSampleSize = Math.round((float) height / (f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getImageHeight() {\n\treturn height;\n }", "public int getImageWidth() {\n\treturn width;\n }", "private void getImgSize(){\n imgSizeX = 1080; //mAttacher.getDisplayRect().right - mAttacher.getDisplayRect().left;\n imgSizeY = 888.783f; //mAttacher.getDisplayRect().botto...
[ "0.7013478", "0.699988", "0.67583126", "0.6750033", "0.6720698", "0.669873", "0.6689511", "0.66860753", "0.66664755", "0.65853953", "0.6539114", "0.6529669", "0.6516078", "0.65081245", "0.64257", "0.63865346", "0.63722134", "0.63092506", "0.6291426", "0.6288455", "0.6252946",...
0.0
-1
Metoda za inicijalizaciju u kojoj se inicijalizira tablica.
@FXML public void initialize() throws Exception { naziv.setCellValueFactory(new PropertyValueFactory<PoslovniKorisnik, String>("naziv")); web.setCellValueFactory(new PropertyValueFactory<PoslovniKorisnik, String>("web")); email.setCellValueFactory(new PropertyValueFactory<PoslovniKorisnik, String>("email"));...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void rozmiarTablicy()\n {\n iloscWierszy = tabelaDanych.getRowCount();\n iloscKolumn = tabelaDanych.getColumnCount();\n tablica = new int[iloscWierszy][iloscKolumn];\n // wypelnienie tablicy pomocniczej z wartościami tabeli\n for (int i = 0; i < iloscWierszy ; i++)\n ...
[ "0.6485343", "0.6294115", "0.62847817", "0.6261754", "0.6228333", "0.6166798", "0.6164571", "0.6148487", "0.60897267", "0.6057259", "0.60388035", "0.6036232", "0.6017055", "0.6008754", "0.60053056", "0.5992122", "0.5968384", "0.5961143", "0.5952484", "0.59373325", "0.5937271"...
0.0
-1
Metoda za pretragu poslovnih korisnika.
public void pretraziPoslovneKorisnike() throws BazaPodatakaException { String naziv = nazivTF.getText().toLowerCase(); String web = webTF.getText().toLowerCase(); String email = emailTF.getText().toLowerCase(); String telefon = telefonTF.getText(); List<PoslovniKorisnik> listaKorisnika = BazaPodataka.d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getKorisnik() {\r\n\treturn korisnik;\r\n\t}", "public String getKorisnik() {\r\n\treturn korisnik;\r\n\t}", "public String getKorisnik() {\r\n\treturn korisnik;\r\n\t}", "public String getKorisnik() {\r\n\t\treturn korisnik;\r\n\t}", "public void nastaviIgru() {\r\n\t\t// nastavi igru poslij...
[ "0.6568357", "0.6568357", "0.6568357", "0.6542269", "0.5894694", "0.56942743", "0.56662565", "0.5583188", "0.5557475", "0.55462307", "0.5533027", "0.54453725", "0.5441742", "0.5431474", "0.5427792", "0.54011947", "0.5397022", "0.5389917", "0.53833467", "0.5382788", "0.5375657...
0.6486163
4
download the list of composers
@Override protected List<String> doInBackground(Void... params) { List<String> result = new LinkedList<String>(); try { result = getPieces(); //System.out.println(result.toString()); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); //Log.e("doInBackground"...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private ArrayList getCommitteList() {\r\n /**\r\n * This sends the functionType as 'G' to the servlet indicating to\r\n * get the details of all existing committees with the required\r\n * information\r\n */\r\n \r\n Vector vecBeans = new Vector();\r\n St...
[ "0.5712821", "0.5526709", "0.54037666", "0.5387417", "0.5381764", "0.5368344", "0.536758", "0.5362696", "0.5351394", "0.53399724", "0.5324812", "0.53218913", "0.53030604", "0.52723795", "0.5271307", "0.5260673", "0.52604234", "0.52600354", "0.5248226", "0.522416", "0.52225125...
0.0
-1
deal with downloaded list here...
@Override protected void onPostExecute(List<String> result) { super.onPostExecute(result); // try to populate listview using array adapter if (result != null) { ArrayAdapter<String> adapter = new ArrayAdapter<String>( listView.getContext(), android.R.layout.simple_list_item_1, result); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void downloadStudentList(){\n\t\t// wrzucenie poprzedniej listy (newlist) do oldList \n\t\toldStudentList = newStudentList;\n\t\t\n\t\t// sprawdzenie czy adresy/sciezki sa podane \n\t\tif(urlAdress.equals(\"\") && filePath.equals(\"\")){\n\t\t\tthrow new CrawlerException(\"Nie podano adresu URL i �cie�ki d...
[ "0.6922813", "0.6878845", "0.6519625", "0.64773655", "0.64565337", "0.6420318", "0.6401748", "0.62748593", "0.62047064", "0.61937815", "0.61586744", "0.61265385", "0.6119329", "0.6115657", "0.6083242", "0.60366696", "0.6035051", "0.60271686", "0.6024352", "0.60198385", "0.600...
0.0
-1
create intent that sends composer name to pieces String composerName = (String) ((TextView) view).getText(); Intent i = new Intent(MainActivity.this, Pieces.class); i.putExtra("composer", composerName); startActivity(i);
@Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { String pieceName = (String) ((TextView) view).getText(); Intent i = new Intent(Pieces.this, Scores.class); i.putExtra("composer", composer); i.putExtra("piece", pieceName); startActivity(i); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onClick(View view) {\n String moviename=pname5.getText().toString();\n\n Intent i=new Intent(getActivity(), dreamgirltrailer.class);\n i.putExtra(\"name\",moviename);\n startActivity(i);\n }", "@Override\n ...
[ "0.7070656", "0.7053812", "0.7043102", "0.7041706", "0.70061886", "0.6959693", "0.6850995", "0.67477065", "0.6696646", "0.6694378", "0.6614319", "0.65447", "0.6521363", "0.6514227", "0.6476105", "0.6438802", "0.63961643", "0.63864523", "0.6386185", "0.63812995", "0.6376838", ...
0.70745766
0
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.pieces, 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.72497207", "0.72041494", "0.7198533", "0.71808106", "0.71110344", "0.7044596", "0.7042557", "0.7015272", "0.70119643", "0.6984017", "0.6950008", "0.6944079", "0.6937662", "0.6921333", "0.6921333", "0.6894039", "0.6887707", "0.6880534", "0.68777215", "0.6867014", "0.6867014...
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ...
[ "0.790433", "0.78052884", "0.7766116", "0.77269244", "0.7631314", "0.76214564", "0.75844425", "0.7530182", "0.748751", "0.7457498", "0.7457498", "0.7438209", "0.74215984", "0.74033666", "0.7391367", "0.7386547", "0.7378906", "0.73700386", "0.73624307", "0.73555857", "0.734534...
0.0
-1
Handles HTTP GET requests.
@Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { UserDao dao = new UserDao(); log.debug(dao.getAllUsers()); List<Users> users = dao.getAllUsers(); req.setAttribute("users", users.get(0).getUserName()); r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t}", "public void doGet( )\n {\n \n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\...
[ "0.7149686", "0.7143499", "0.7107184", "0.7107069", "0.71054685", "0.7070006", "0.7065157", "0.7041728", "0.7032431", "0.70137626", "0.70097876", "0.69282395", "0.69156647", "0.69156647", "0.6907956", "0.6899236", "0.6892105", "0.6888047", "0.68741816", "0.68741816", "0.68618...
0.0
-1
recursion(1, 'A', 'B', 'C'); recursion(2, 'A', 'B', 'C');
public static void main(String[] args) { recursion(3, 'A', 'B', 'C'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args){\n LinkedListDeque<String> lld = new LinkedListDeque<>();\n lld.addFirst(\"Hello\");\n lld.addLast(\"Java\");\n lld.addLast(\"!\");\n\n String s0 = lld.getRecursive(0);\n String s1 = lld.getRecursive(1);\n String s2 = lld.getRe...
[ "0.6005897", "0.57989883", "0.57866764", "0.57386184", "0.559461", "0.5556671", "0.5535017", "0.5524429", "0.5491291", "0.5478481", "0.546744", "0.54626393", "0.54416615", "0.53763497", "0.53493696", "0.53434914", "0.5276734", "0.52733976", "0.52513623", "0.52295345", "0.5220...
0.62948775
0
calculate number of sale tickets of a place
@Override public ResponseEntity<?> getReport(Long placeId, Long reportType, Long startDateL, Long endDateL) { Date endDate = midnight(); Date startDate = new Date(); if (reportType == 0) { endDate = midnight(); startDate = setDateBefore(1); } else if (reportTy...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getNumOfSellOrders();", "int getNumOfBuyOrders();", "public int totalOrdersTaken();", "public Integer countPlaces() {\n\t\tCriteriaQuery<Place> cQuery = getCriteriaBuilder().createQuery(Place.class);\n\t\tRoot<Place> from = cQuery.from(Place.class);\t\t\n\n\t\t// obter o total de registros da consulta\n\...
[ "0.6862452", "0.6332621", "0.6260745", "0.611319", "0.6042417", "0.59636253", "0.59480107", "0.58325315", "0.5822386", "0.58217716", "0.58098954", "0.58054245", "0.5777246", "0.57613426", "0.57255864", "0.5672571", "0.5664491", "0.5625267", "0.5622332", "0.5617069", "0.557792...
0.0
-1
get report and send to place
@Override public ResponseEntity<?> createReport(OutputReport report) throws IOException, MessagingException { Date endDate = midnight(); Date startDate = midnight(); if (report.getReportType() == 0) { endDate = midnight(); startDate = setDateBefore(1); } else ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void getReport(java.io.Writer writer);", "public void getReportManually() {\n File reportDir = new File(KOOM.getInstance().getReportDir());\n for (File report : reportDir.listFiles()) {\n //Upload the report or do something else.\n }\n }", "void printReport();...
[ "0.7084888", "0.6962139", "0.6696548", "0.6583609", "0.6543264", "0.65255105", "0.651955", "0.6489652", "0.6460812", "0.6440358", "0.6415185", "0.63942724", "0.63762087", "0.6349757", "0.6348196", "0.63077664", "0.6303262", "0.626915", "0.6253642", "0.62224", "0.62083226", ...
0.65410966
5
get date from past
private Date setDateBefore(int days) { Calendar cal = Calendar.getInstance(); cal.add(Calendar.DATE, -1 * days); cal.set(Calendar.HOUR_OF_DAY, 0); //anything 0 - 23 cal.set(Calendar.MINUTE, 0); cal.set(Calendar.SECOND, 0); return cal.getTime(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Date getPriorDate();", "public String getPrevDate() \n\t{\n\t\tm_calendar.set (Calendar.DAY_OF_MONTH, getDayOfMonth() -1);\n\t\treturn getTodayDate();\n\t}", "private Date getYestoday() {\n\t\tDate dNow = new Date(); // 当前时间\n\t\tDate dBefore = new Date();\n\t\tCalendar calendar = Calendar.getInstance(); // 得到...
[ "0.7159192", "0.67231274", "0.66007644", "0.63563234", "0.63022727", "0.624664", "0.6227424", "0.6194972", "0.616202", "0.61137134", "0.6060844", "0.60412914", "0.60292125", "0.5998185", "0.5997739", "0.5967046", "0.5922519", "0.59050494", "0.5897987", "0.58425516", "0.583678...
0.0
-1
TODO Autogenerated method stub
void setPath() { if(from.getSelectedItem() != null){ int ifrom = (int) from.getSelectedItem(); int ito = (int) to.getSelectedItem(); PathFinder finder = new BellmanFord(this.app.graph, ifrom-1); finder.findAll(); ArrayList<Integer> path = finder.getPath(ito-1); StringBuilder pathStr = new StringBuil...
{ "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.66730285", "0.65698135", "0.6524193", "0.64818907", "0.6477969", "0.6459897", "0.64150065", "0.6378023", "0.62785167", "0.6256323", "0.62391806", "0.6225302", "0.6203955", "0.6196986", "0.6196986", "0.6193411", "0.6188864", "0.6175446", "0.61352557", "0.6129083", "0.608151...
0.0
-1
TODO Autogenerated method stub
@Override public void onActivated() { init(); }
{ "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 void onDeactivated() { }
{ "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 void queryUpdate() { needToUpdate = true; }
{ "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 void updateIfNeeded() { if(needToUpdate){ init(); needToUpdate = false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66730285", "0.65698135", "0.6524193", "0.64818907", "0.6477969", "0.6459897", "0.64150065", "0.6378023", "0.62785167", "0.6256323", "0.62391806", "0.6225302", "0.6203955", "0.6196986", "0.6196986", "0.6193411", "0.6188864", "0.6175446", "0.61352557", "0.6129083", "0.608151...
0.0
-1
TODO Autogenerated method stub
@Override public int getRowCount() { return app.graph.verticesCount; }
{ "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 int getColumnCount() { return app.graph.verticesCount + 1; }
{ "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
Returns module name from string
private String name(String module) { return module.split("%%")[1]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String getModuleName( );", "String getFriendlyName(YAPIContext ctx) throws YAPI_Exception\n {\n if (_classname.equals(\"Module\")) {\n if (_logicalName.equals(\"\"))\n return _serial + \".module\";\n else\n return _logicalName + \".mod...
[ "0.6575501", "0.6294077", "0.62606764", "0.621253", "0.61585474", "0.6114291", "0.60641134", "0.5993718", "0.5993163", "0.5990578", "0.5965525", "0.58415", "0.583089", "0.5806158", "0.57562053", "0.5723303", "0.5723303", "0.5689177", "0.5650868", "0.5640057", "0.5624709", "...
0.72655785
0
Returns string from module
public String module(String name) { return modules.get(name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void printToString() {\n System.out.println(ModuleInfo.getFromModuleCode(\"CS1010\").get());\n }", "@Test\n public void printToString() {\n System.out.println(ModuleInfo.getFromModuleCode(\"CFG1010\").get());\n\n // Test module with preclusions\n System.out.pri...
[ "0.70932376", "0.7000745", "0.6886224", "0.6804438", "0.67772466", "0.6715052", "0.67099535", "0.66612625", "0.6546483", "0.6391253", "0.6343196", "0.63249904", "0.6308187", "0.623064", "0.62097424", "0.61777055", "0.6108339", "0.6106786", "0.60846686", "0.6026606", "0.598230...
0.6234751
13
Adds string to module map
public void addModString(String name, String string) { modules.put(name,string); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateMapModuleName() {\n\t\tgetMapModule().rename();\n\t\taddToOrChangeInMapModules(getMapModule().toString(), getMapModule());\n\t\tsetMapModule(getMapModule(), getMapModule().getMode());\n\t}", "public void addModule(IPModule module);", "public static String get_import(String s)\n {\n read_i...
[ "0.6166833", "0.6016193", "0.57681537", "0.57212174", "0.56721234", "0.559917", "0.5589337", "0.5583471", "0.5544757", "0.548301", "0.5408554", "0.5395841", "0.5395841", "0.53504485", "0.53283346", "0.5326612", "0.52841157", "0.5275499", "0.5269414", "0.5247882", "0.5228208",...
0.8252183
0
Compiles and prints all module results
public void getAllResults() { for(String module: modules.keySet()) { getResults(module); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void getResults(String name)\n {\n try\n {\n Module m = compileModule(modules.get(name));\n m.displayResults();\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "public abstract void compile();", "protected Object compileAndLoad() t...
[ "0.69142675", "0.59785634", "0.5894994", "0.5865332", "0.58534896", "0.58159894", "0.57830644", "0.56750596", "0.5638834", "0.5624659", "0.5583454", "0.5577757", "0.55559313", "0.5555349", "0.55284584", "0.55284584", "0.55276835", "0.5512359", "0.55027515", "0.5459692", "0.54...
0.49802288
72
Compiles and prints named module results
public void getResults(String name) { try { Module m = compileModule(modules.get(name)); m.displayResults(); } catch (Exception e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void printToString() {\n System.out.println(ModuleInfo.getFromModuleCode(\"CS1010\").get());\n }", "@Test\n public void printToString() {\n System.out.println(ModuleInfo.getFromModuleCode(\"CFG1010\").get());\n\n // Test module with preclusions\n System.out.pri...
[ "0.6183531", "0.61809313", "0.61235803", "0.59023106", "0.5872819", "0.5829753", "0.5715858", "0.5601032", "0.5543682", "0.5473073", "0.54330635", "0.5426994", "0.5424967", "0.5351542", "0.5277779", "0.5265039", "0.5260868", "0.52313334", "0.5178144", "0.5175189", "0.5172845"...
0.73049444
0
Checks module for module calls
static public boolean containsCall(String module) throws Exception, Error { Pattern pattern = Pattern.compile("call\\{.*?\\}"); Matcher matcher = pattern.matcher(module); if(matcher.find()) return true; else return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "interface ExternalModuleChecker {\n\t/**\n\t * To check is external-module registered well\n\t *\n\t * @param module module to check\n\t * @return true if registered well\n\t */\n\tboolean isValidModule(ExternalModule module);\n}", "boolean isValidModule(ExternalModule module);", "public IStatus canAddModule(I...
[ "0.64810675", "0.6456194", "0.6168042", "0.5982187", "0.56863946", "0.5683417", "0.56661546", "0.5575293", "0.55716914", "0.5553418", "0.5504699", "0.55016685", "0.548224", "0.54791266", "0.5471004", "0.5430943", "0.5388023", "0.5358998", "0.5343805", "0.53053254", "0.5299163...
0.65409344
0
Resolves module calls and returns compiled Module object
public Module compileModule(String module) throws Exception, Error { Module m; while(containsCall(module)) { Call call = getCall(module); module = resolveCall(module, call); } m = new Module(name(module), module); m.displayResults(); return m; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String resolveCall(String module, Call call)\n {\n if(call==null) return module;\n\n String callMod = modules.get(call.module);\n\n if(call.union!=null)\n {\n callMod = callMod + \"in(\"+ call.union +\").\\n\";\n }\n Module m = null; \n try\n {\n m ...
[ "0.64419377", "0.61054116", "0.6084545", "0.59722424", "0.56685966", "0.56514823", "0.56491786", "0.56274045", "0.5616023", "0.5516347", "0.54691625", "0.54542106", "0.5413581", "0.5413021", "0.5399582", "0.5320113", "0.52859175", "0.52129287", "0.52125746", "0.51998925", "0....
0.68685734
0
Returns first call string found in module
static public Call getCall(String module) { Pattern pattern = Pattern.compile("call\\{.*?\\}"); Matcher matcher = pattern.matcher(module); if(matcher.find()) { return new Call(matcher.group(0)); } else { return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getCalled();", "private String name(String module)\n {\n return module.split(\"%%\")[1];\n }", "String getCaller();", "@Test\n public void printToString() {\n System.out.println(ModuleInfo.getFromModuleCode(\"CS1010\").get());\n }", "private String getCallerInfo() {\n Op...
[ "0.65155244", "0.62785715", "0.61977285", "0.59091574", "0.5908147", "0.5903542", "0.5889927", "0.5858803", "0.5815496", "0.5805275", "0.58006877", "0.5729008", "0.569485", "0.56327313", "0.55932415", "0.5512769", "0.5492523", "0.5483038", "0.5460259", "0.54480374", "0.544665...
0.6394871
1
Creates Module object for target of call, and resolves call based on results
private String resolveCall(String module, Call call) { if(call==null) return module; String callMod = modules.get(call.module); if(call.union!=null) { callMod = callMod + "in("+ call.union +").\n"; } Module m = null; try { m = compileModule(callMod...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected interface Resolver {\n\n /**\n * Adjusts a module graph if necessary.\n *\n * @param classLoader The class loader to adjust.\n * @param target The targeted class for which a proxy is created.\n */\n void accept(@MaybeN...
[ "0.56783605", "0.53516126", "0.5302645", "0.5197546", "0.51049423", "0.5096788", "0.50612867", "0.5022913", "0.4960002", "0.49387577", "0.4844844", "0.48012412", "0.47841996", "0.4719745", "0.47034067", "0.47005728", "0.46856546", "0.4681012", "0.46637842", "0.46523204", "0.4...
0.56457835
1
Resolves call containing free variables
private String resolveVars(String s, Module m, Call c) { HashMap<String,String> vars = getVarValues(m,c); // System.out.println(vars); s = groundVars(s, vars, c); return s; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "FunDef resolve(\n Exp[] args,\n Validator validator,\n List<Conversion> conversions);", "private String resolveCall(String module, Call call)\n {\n if(call==null) return module;\n\n String callMod = modules.get(call.module);\n\n if(call.union!=null)\n {\n ...
[ "0.5973836", "0.5829434", "0.57488686", "0.56998485", "0.5574673", "0.55408674", "0.5517655", "0.5425577", "0.5367317", "0.5320625", "0.52856785", "0.526304", "0.52286977", "0.52007866", "0.51617664", "0.5142549", "0.5107362", "0.5106815", "0.507602", "0.50412405", "0.5038274...
0.49756637
27
Replaces call with variables with variable assignments
private String groundVars(String s, HashMap<String,String> vars, Call c) { String assignments = ""; boolean first = true; for (HashMap.Entry<String, String> entry : vars.entrySet()) { String key = entry.getKey(); Object value = entry.getValue(); if(!first) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void replaceVariable(SqlCall sqlCall, ScriptVariable variable) throws ParamReplaceException {\n if (sqlCall.getOperator() instanceof SqlFunction) {\n new SqlFunctionRegisterVisitor().visit(sqlCall);\n }\n for (int i = 0; i < sqlCall.operandCount(); i++) {\n SqlN...
[ "0.62121886", "0.61568743", "0.5929573", "0.5885808", "0.5841523", "0.58383095", "0.57090724", "0.56672597", "0.5605246", "0.5604837", "0.55676603", "0.5518839", "0.5506464", "0.5476198", "0.5452659", "0.54401577", "0.5411239", "0.53597003", "0.5276935", "0.5274335", "0.52635...
0.6106108
2
Gets the possible variable values from module results and returns them as mapping Currently unable to handle more than one possible value per module
private HashMap<String,String> getVarValues(Module m, Call c) { HashMap<String,String> vars = new HashMap<String,String>(); String regex = replaceVars(c.assumption,"[.[^,]]+"); Pattern pattern = Pattern.compile(regex); for(String result: m.getSceptical()) { Matcher matcher = p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Map<String, Object> getVariables();", "private VariableMap getParamMappingAsVariableMap() {\n paramValueEncodings.put(fileNameToIndex.keySet().toString(), \" FileNames\");\n paramValueEncodings.put(functionNameToIndex.keySet().toString(), \" FunctionNames\");\n paramValueEncodings.put(typeT...
[ "0.6331474", "0.57607925", "0.55568355", "0.54204303", "0.53796285", "0.53620094", "0.5341885", "0.5245869", "0.5242069", "0.5238926", "0.52347314", "0.521453", "0.51651275", "0.51651275", "0.5056257", "0.5015492", "0.49998155", "0.49883676", "0.4983911", "0.49741283", "0.497...
0.6486823
0
Gets the value out of a substring (used above to extract variable values from module results)
private String getValue(String s) { if(s.contains(",")) { return s.split(",")[0]; } else { s = s.replaceAll("\\)",""); return s; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getVar(String s)\n {\n String var = null;\n Pattern pattern = Pattern.compile(\"[A-Z]+[a-z]*\");\n Matcher matcher = pattern.matcher(s);\n if(matcher.find())\n {\n var = matcher.group(0);\n }\n return var;\n }", "public static String extractVariable(S...
[ "0.65477467", "0.61446136", "0.6129436", "0.60405755", "0.6038893", "0.6038893", "0.6038893", "0.6038893", "0.6038893", "0.6038893", "0.6038893", "0.6038893", "0.6038893", "0.6038893", "0.59492797", "0.59102714", "0.5903715", "0.5858018", "0.58575857", "0.58575857", "0.585526...
0.5379381
42
Replaces any variables (words starting in capital) with regex string
private String replaceVars(String s, String replacement) { while(getVar(s)!=null) { s = s.replace(getVar(s),"%"); } s = s.replaceAll("%",replacement); return s; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n// System.out.println(alphanumeric.replaceAll(\"[aei]\", \"x\"));\n\n\n String regex = \"^[A-Z]|[a-z]\";\n String username = \"kaaviya\";\n\n System.out.println(username.replaceAll( \"^[A-Za-z][A-Za-z0-9_]{7,29}$\", \"x\"));\n System.out....
[ "0.6003412", "0.57990354", "0.57629627", "0.56726897", "0.552315", "0.5501787", "0.5439564", "0.543292", "0.53980625", "0.53671724", "0.5360756", "0.53563744", "0.535336", "0.5279623", "0.5191511", "0.5183771", "0.5177245", "0.51733464", "0.51670706", "0.5118128", "0.5110589"...
0.5270167
14
Returns first variable in string
private String getVar(String s) { String var = null; Pattern pattern = Pattern.compile("[A-Z]+[a-z]*"); Matcher matcher = pattern.matcher(s); if(matcher.find()) { var = matcher.group(0); } return var; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String extractVariable(String s) {\n Matcher matcher = VARS_RE.matcher(s);\n return matcher.find() ? matcher.group(1) : null;\n }", "String getVariable();", "private static String findVariable(final String value) {\n int start = value.lastIndexOf(\"${\");\n if (start >= 0) ...
[ "0.67425394", "0.650434", "0.64710253", "0.63696885", "0.6265184", "0.61501336", "0.61344844", "0.6059223", "0.60394186", "0.60381067", "0.59362733", "0.5933328", "0.5932578", "0.5929541", "0.5922793", "0.59122384", "0.59080464", "0.5901596", "0.5892164", "0.58800966", "0.585...
0.7164593
0
Removes call from rule tail (same as replacing with tautology)
private String affirmCall(String string, Call call) { if(string.contains("in("+call.callString+"),")) { string = string.replace("in("+call.callString+"),",""); } else if(string.contains("in("+call.callString+")")) { string = string.replace("in("+call.callString+")","")...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void deleteRuleAfterFirstMvt() {\n\t\t\n\t}", "void unsetStraight();", "void unsetSearchRecurrenceRule();", "@Override\r\n\tpublic void removeNodeRule(int step) {\n\t}", "public void traceOut(String s) {\n\t\tif (guessing>0) {\n\t\t\treturn;\n\t\t}\n\t\tmostRecentParseTreeRoot = (ParseT...
[ "0.56114584", "0.56017685", "0.5546483", "0.5546064", "0.5453485", "0.5436691", "0.5307959", "0.51790273", "0.5171887", "0.5160358", "0.51333946", "0.5103616", "0.51017094", "0.5063595", "0.5046804", "0.50164205", "0.50001603", "0.49143967", "0.4895528", "0.48923755", "0.4888...
0.0
-1
Removes rule of which call was tail (preventing any implication of head)
private String removeCall(String string, Call call) { String[] lines = string.split("\n"); String newString = ""; for(String line : lines) { if(!line.contains(call.callString)) { newString = newString + line + "\n"; } } return newString; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected T removeFromTail()\n\t{\n\t\tif(tail == null)\n\t\t\treturn null;\n\t\t\n\t\tT ret = tail.getVal();\n\t\ttail = tail.getPrev();\n\t\t\n\t\tif(tail == null)\n\t\t\thead = tail;\n\t\telse\n\t\t\ttail.setNext(null);\n\t\t\n\t\treturn ret;\n\t}", "int remove(){\n int x = head.val;\n head = he...
[ "0.60323", "0.5963564", "0.595063", "0.5905411", "0.5839142", "0.58264446", "0.5800875", "0.5787466", "0.57771784", "0.5728033", "0.5718241", "0.5712652", "0.56842744", "0.56576306", "0.56124544", "0.5605268", "0.5592631", "0.5562165", "0.5541778", "0.5520301", "0.55114686", ...
0.0
-1
Checks whether a call to a module succeeds
private boolean callSucceeds(Module m, Call call) { if(call.negative) { if(call.type.equals("sk")) { if(m.getCredulous().contains(call.assumption)) return false; else return true; } else { if(m.getSceptical().contains(call.a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static public boolean containsCall(String module) throws Exception, Error\n {\n Pattern pattern = Pattern.compile(\"call\\\\{.*?\\\\}\");\n Matcher matcher = pattern.matcher(module);\n if(matcher.find()) return true;\n else return false;\n }", "boolean isValidModule(ExternalModule module)...
[ "0.6925831", "0.6922476", "0.64487195", "0.6241116", "0.6223661", "0.62191045", "0.6216948", "0.6216948", "0.6216948", "0.6021609", "0.59626055", "0.59537077", "0.5939152", "0.58772105", "0.58735067", "0.5861658", "0.58554465", "0.5767859", "0.5759152", "0.57339066", "0.57131...
0.63541186
3
Imprime uma lista dos compromissos do dia.
public void showAppointments() { System.out.println("=== Day " + dayNumber + " ==="); int time = START_OF_DAY; for(Appointment appointment : appointments) { System.out.print(time + ": "); if(appointment != null) { System.out.println(appointment.getDesc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static ArrayList<Comida> obtenerComidasDisponibles(){\n\t\tArrayList<Comida> comidasDisponibles = new ArrayList<Comida>();\n\t\tfor(Map.Entry<String, Comida> c : Comida.menuComidas.entrySet()) {\n\t\t\tComida comida = c.getValue();\n\t\t\tif(comida.getDisponible().equals(\"true\")) {\n\t\t\t\tcomidasDisponi...
[ "0.6044875", "0.5774797", "0.57011133", "0.5689644", "0.5646063", "0.56205297", "0.5566342", "0.5562479", "0.5558547", "0.55522484", "0.55383366", "0.55065477", "0.54916394", "0.54726905", "0.54629946", "0.54474765", "0.544334", "0.54345924", "0.5406323", "0.53912103", "0.539...
0.0
-1
BookDAO is the interface describing methods with books
public interface BookDAO { /** * addBook adds book to the bookMap * * @param title is the title of the book to add * @param authors are the authors of this book * @param silent is the parameter saying about if it is possible to print information about book or not * @return book add...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface BookDAO {\n\n\tvoid createBook(Book book) throws DuplicatedBookEntryException;\n\t\n\tCollection<Book> readBooks();\n\t\n\tvoid updateBook(Book book) throws EntryNotFoundExpcetion;\n\tvoid deleteBook(Book book) throws EntryNotFoundExpcetion;\n\t\n}", "BookDao getBookDao();", "public interface ...
[ "0.8452034", "0.8394895", "0.8347499", "0.830945", "0.8279018", "0.78182876", "0.7794208", "0.760457", "0.7526884", "0.7479926", "0.7366313", "0.73439485", "0.73403406", "0.73349243", "0.7284776", "0.7226156", "0.7195793", "0.71205264", "0.7107332", "0.7042624", "0.70396477",...
0.81964767
5
addBook adds book to the bookMap
Book addBook(String title, String[] authors, boolean silent);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addBook(Book b){\n\t\tbookMap.get(b.getTitle()).add(b);\n\t}", "public void addBook(Book book) {\n \tset.add(book);\n }", "public void add(Book book)\n\t{\n\t\tbooks.add(book);\n\t}", "@Override\r\n\tpublic Book addBook(Book book) {\n\t\treturn bd.save(book);\r\n\t}", "public void addBook...
[ "0.8165253", "0.81318474", "0.77831113", "0.77637863", "0.77086276", "0.75340927", "0.74660397", "0.73490655", "0.73220235", "0.7303027", "0.72147506", "0.71218073", "0.7089855", "0.7088337", "0.7083728", "0.70606756", "0.6993312", "0.6987013", "0.69265854", "0.68672794", "0....
0.5667822
71
findBook find and prints the information about asked book
Book findBook(String title, boolean silent);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void printBookDetails(Book bookToSearch) {\n boolean exists = false;\n\n //Search if the given book exists in the library\n // There are better ways. But not with arrays!!\n for (Book element : books) {\n if (element.equals(bookToSearch)) {\n exists = tr...
[ "0.7818363", "0.67306864", "0.6719642", "0.671455", "0.6530255", "0.6456264", "0.6422695", "0.6411238", "0.63977706", "0.63495857", "0.63395685", "0.63307184", "0.63211846", "0.63058025", "0.6304358", "0.628536", "0.6276622", "0.6261962", "0.62600464", "0.62552047", "0.616045...
0.71022654
1
getAll returns all books from the bookMap
Collection<Book> getAll();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Book> getAll() {\n return bookFacade.findAll(); \n }", "List<Book> getAllBooks();", "public List<Book> getAllBooks(){\n\t\treturn this.bRepo.findAll();\n\t}", "public List<Book> getAllBooks() {\n return entityManager.createQuery(\"select b from Book b\", Book.class).getResultL...
[ "0.8175541", "0.7983987", "0.7962651", "0.78487444", "0.78159815", "0.7789314", "0.7770977", "0.7660247", "0.7599352", "0.7574997", "0.7551218", "0.7541098", "0.7498129", "0.74848676", "0.7481394", "0.74008524", "0.7310416", "0.7180126", "0.7149734", "0.7097253", "0.7092815",...
0.82540196
0
addAll adds collection of the books to the bookMap
void addAll(Collection<Book> books);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addBook(Book b){\n\t\tbookMap.get(b.getTitle()).add(b);\n\t}", "public void addAll(List<Book> bookList) {\n this.mBook.clear();\n this.mBook.addAll(bookList);\n notifyDataSetChanged();\n\n }", "Collection<Book> getAll();", "@Override\n\tpublic List<Book> getAllBooks() {\n\...
[ "0.60184944", "0.595179", "0.58059555", "0.5677361", "0.5655708", "0.5578667", "0.5521879", "0.54514205", "0.5416733", "0.53634346", "0.5333275", "0.53239536", "0.53134376", "0.5307811", "0.5274783", "0.5261946", "0.5255365", "0.52518886", "0.5200785", "0.51998925", "0.519526...
0.73017126
0
public static List notExistsNode = new ArrayList();
private PropertyValueEntity getPropertyValueFromZK(String domain,String key,CuratorWatcher watcher){ try { String ratDomainNode = propertyBaseZKNode+domain; String ratDomainKeyNode=propertyBaseZKNode+domain+"/"+key; if(zkClient.existsNode(ratDomainKeyNode)){ b...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean isMissingNode() { return false; }", "public Node getNode(int position)throws ListExeption;", "default Promise<List<String>> findNotHealthyNodes() {\n final Promise<List<String>> promise = Promises.promise();\n promise.resolve(Collections.emptyList());\n return...
[ "0.5964503", "0.59554595", "0.5831914", "0.5822536", "0.5817853", "0.5786949", "0.5774842", "0.5727618", "0.5675795", "0.5655948", "0.5642304", "0.55796504", "0.5557001", "0.55363595", "0.55207264", "0.55104536", "0.55062073", "0.54874337", "0.54652935", "0.5456573", "0.54202...
0.0
-1
Created by bengthammarlund on 03/05/16.
public interface RealTimeTransportApi { @GET("busstopinformation") Call<PublicStopListResponse> listAllStops(@Query("operator") String operator); @GET("realtimebusinformation") Call<RealtimeRouteResponse> getRealtimeInfo(@Query("stopid") String stopId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "public final void mo51373a() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar()...
[ "0.5932653", "0.59091496", "0.5864681", "0.5762933", "0.5748133", "0.5748133", "0.5694559", "0.5650217", "0.5649447", "0.5633266", "0.5618675", "0.5611408", "0.56001014", "0.5596794", "0.5596128", "0.55879474", "0.55877054", "0.5570015", "0.5569967", "0.5569967", "0.5569967",...
0.0
-1
A note to class diagram
public interface INoteClass extends IObservable, Serializable, IStylizable{ // ATTRIBUTES String ENTITY_ADDED_PROPERTY_NAME = "EntityAdded"; String ENTITY_REMOVED_PROPERTY_NAME = "EntityRemoved"; String RELATION_REMOVED_PROPERTY_NAME = "RelationRemoved"; String RELATION_ADDED_PROPERTY_NAME = "RelationAdded"...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String getDesignation() {\n\t\treturn \"NOTE \";\n\t}", "public void introduce() {\n\t\tSystem.out.println(\"[\" + this.className() + \"] \" + this.describeRacer());\n\t}", "public Note() {\n\t\tsuper();\n\t}", "@Override\n public String getDescription() {\n return DESCRIPTION...
[ "0.64901024", "0.61398804", "0.612479", "0.60338986", "0.60240746", "0.59853643", "0.5979598", "0.5979598", "0.5969153", "0.59660715", "0.5928025", "0.58873844", "0.5884636", "0.5867503", "0.5859596", "0.58458793", "0.5841282", "0.58144826", "0.5785904", "0.5766315", "0.57657...
0.57290006
26
The entities concerned by the note
List<IViewEntity> getEntities();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public org.LexGrid.concepts.Entities getEntities() {\n return entities;\n }", "@Override\n protected Entity[] getObservedEntities() {\n return entities;\n }", "public List<Note> getNotes(){\n return notes;\n }", "public NoteCollection getNoteCollection();", "public Set<Note> getNot...
[ "0.65210813", "0.6365928", "0.63550353", "0.6316715", "0.6278156", "0.6232298", "0.61827695", "0.61681527", "0.61489725", "0.6139927", "0.5961694", "0.5958902", "0.59151703", "0.58612484", "0.5840087", "0.57868576", "0.5782346", "0.5782346", "0.5770006", "0.5769737", "0.57445...
0.580481
15
The entities concerned by the note with constraint
List<IViewEntity> getConstraintEntities();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Set<Note> getNoteSet();", "public Entity[] queryEntityInfo() throws UnifyException, SQLException {\n Bookmark bookmark = visual.getSelectBookmark();\n if (bookmark == null)\n return null;\n\n String catalogName= visual.getQueryCatalog();\n String schemaName = visual....
[ "0.58873975", "0.5695591", "0.5654102", "0.56479484", "0.56191677", "0.5612867", "0.5596998", "0.559565", "0.5559852", "0.549296", "0.547718", "0.54258645", "0.5424865", "0.5382925", "0.5365813", "0.53429234", "0.53144455", "0.5313476", "0.52907825", "0.5281166", "0.527478", ...
0.65071946
0
The relations concerned by the note
List<IViewRelation> getViewRelations();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String[] getRelations() {\n/* 270 */ return getStringArray(\"relation\");\n/* */ }", "public HashMap<String, Relation> getRelations() {\n return relations;\n }", "@DISPID(1610940428) //= 0x6005000c. The runtime will prefer the VTID if present\n @VTID(34)\n Relations relations();", ...
[ "0.69590884", "0.6767225", "0.6693706", "0.665876", "0.6656737", "0.658863", "0.64648086", "0.63998497", "0.62924176", "0.62281597", "0.6155644", "0.6077324", "0.6041148", "0.6039704", "0.6039081", "0.5984096", "0.59751976", "0.594931", "0.59320587", "0.59233236", "0.59008", ...
0.5950794
17
The relations concerned by the note with constraint
List<IViewRelation> getConstraintRelations();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@DISPID(1610940428) //= 0x6005000c. The runtime will prefer the VTID if present\n @VTID(34)\n Relations relations();", "public String[] getRelations() {\n/* 270 */ return getStringArray(\"relation\");\n/* */ }", "public String[] listRelations();", "public Set<Relation> getRelations();", "Relati...
[ "0.6914214", "0.6893662", "0.6542333", "0.65250325", "0.6382674", "0.6248415", "0.62468165", "0.621303", "0.6141167", "0.60715234", "0.6022208", "0.5971885", "0.5963116", "0.5947855", "0.5925355", "0.5912148", "0.58824766", "0.5818172", "0.5785234", "0.5763009", "0.5736388", ...
0.6746647
2