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
TODO Autogenerated method stub
@Override public void onSignalStrengthsChanged(SignalStrength signalStrength) { super.onSignalStrengthsChanged(signalStrength); CdmaDbm = signalStrength.getCdmaDbm(); Gsm = signalStrength.getGsmSignalStrength(); EvdoDbm = signalStrength.getEvdoDbm(); System.out.println("from function: onSignalStre...
{ "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
Interface for features listening to players switching worlds
public interface WorldSwitchListener { /** * Called when player switched world * * @param changed * Player who changed world * @param from * Name of previous world * @param to * Name of new world */ void onWorldChange(@NotNull TabPla...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface WorldListener {\n\t\tpublic void pickUpMineral();\n\t\t\n\t\tpublic void hit();\n\t}", "public void onWorldChanged(World world);", "void onWorldChange(@NotNull TabPlayer changed, @NotNull String from, @NotNull String to);", "public interface ClientWorldListener extends BLMod {\n /**\n ...
[ "0.7170568", "0.6920105", "0.6725405", "0.6160755", "0.6082424", "0.6069536", "0.6024115", "0.6004895", "0.59517866", "0.5911895", "0.5831023", "0.5819392", "0.58066165", "0.5748088", "0.57310337", "0.572542", "0.5711221", "0.5707669", "0.56824744", "0.5682403", "0.5674505", ...
0.7619062
0
Called when player switched world
void onWorldChange(@NotNull TabPlayer changed, @NotNull String from, @NotNull String to);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onWorldChanged(World world);", "@Override\n public void world() {\n super.world();\n }", "@EventHandler(priority = EventPriority.HIGHEST)\n public void onWorldChange(PlayerChangedWorldEvent playerChangedWorldEvent) {\n final Player player = playerChangedWorldEvent.getPlayer();\n\n ...
[ "0.75640506", "0.69312525", "0.6840517", "0.6766377", "0.67521006", "0.66590285", "0.65811497", "0.65639764", "0.65431136", "0.6513668", "0.64373904", "0.6371374", "0.6307709", "0.630394", "0.62733245", "0.62515837", "0.6248767", "0.6229601", "0.60813123", "0.6043787", "0.602...
0.7254915
1
returns 0 if the candidate solution is correct
public int verify(String candidateSolution) { if(checkR1(candidateSolution)) { return 0; } else if (checkR2(candidateSolution)) { return 1; } else if (checkR3(candidateSolution)) { return 2; } else if (checkR4(candidateSolution)) { return 3; } else if (checkR2(candidateSolution)) { return...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int verify(String candidateSolution) {\n\t\treturn 0;\n\t\t\n\t\t//check\n\t}", "public int verify(String candidateSolution) {\n\t\treturn 0;\n\t\t\n\t\t//check\n\t}", "public boolean solutionTest(MyList<Integer> candidates) {\n\n\t\t// -----------------------------\n\t\t// Output Variable --> InitialVa...
[ "0.760559", "0.760559", "0.66668755", "0.6624463", "0.6563992", "0.6478961", "0.64779925", "0.645064", "0.6345099", "0.6305613", "0.62844133", "0.6282684", "0.6242243", "0.62313694", "0.6182535", "0.61813116", "0.6118122", "0.6109885", "0.6105516", "0.6094237", "0.60546327", ...
0.7100523
2
R1: A cell in a Sudoku game can only store positive digits, i.e. 1...9.
public boolean checkR1(String candidateSolution){ int number = Integer.parseInt(candidateSolution); if(number > 0){ return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean isValidSudoku(char[][] board) {\n char[][] validBoard = new char[27][9];\r\n\r\n for (int i = 0; i < 9; i++) {\r\n for (int j = 0; j < 9; j++) {\r\n if (board[i][j] == '.') {\r\n continue;\r\n }\r\n int c = boa...
[ "0.6205756", "0.6137259", "0.606972", "0.59824914", "0.595335", "0.58749986", "0.58741874", "0.5834474", "0.5833513", "0.58118033", "0.5808882", "0.5794775", "0.5764865", "0.5728916", "0.5669138", "0.56667066", "0.5663844", "0.5619701", "0.56175303", "0.56110376", "0.559852",...
0.5832282
9
R3: All digits appear only once in a subgrid, i.e. they cannot repeat.
public boolean checkR3(String candidateSolution){ //Split the string to a number of 9 digits String []candSol = candidateSolution.split("(?<=\\G.........)"); int candSolIndex = 0; while(candSolIndex < 9){ String testPart = candSol[candSolIndex]; //R2 part boolean ok = checkIfDublicate(testPart); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean subGridCheck() {\n\t\tint sqRt = (int)Math.sqrt(dimension);\n\t\tfor(int i = 0; i < sqRt; i++) {\n\t\t\tint increment = i * sqRt;\n\t\t\tfor(int val = 1; val <= dimension; val++) {\n\t\t\t\tint valCounter = 0;\n\t\t\t\tfor(int row = 0 + increment; row < sqRt + increment; row++) {\n\t\t\t\t\tfor(int...
[ "0.61506534", "0.5987791", "0.59673434", "0.59044456", "0.5890591", "0.57929796", "0.5778874", "0.5737433", "0.567131", "0.56244445", "0.56197447", "0.55687004", "0.5545604", "0.5485042", "0.54507816", "0.54368436", "0.54171926", "0.5412363", "0.5378399", "0.53355", "0.531352...
0.49369213
53
R3 part Return true if no duplicates
public boolean checkIfDublicate(String testPart){ char[] characters = testPart.toCharArray(); // build HashMap with character and number of times they appear in String Map<Character, Integer> charMap = new HashMap<Character, Integer>(); for (Character ch : characters) { if (char...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isUnique();", "public boolean isUnique();", "boolean isIsUnique();", "public boolean checkDuplicates() {\n\t\tboolean[] vals = new boolean[9];\n\t\tfor(int i = 0; i < 3; i++) {\n\t\t\tfor(int k = 0; k < 3; k++) {\n\t\t\t\tint num = this.getCellNum(i, k);\n\t\t\t\tif(num != 0) {\n\t\t\t\t\tif(!vals[nu...
[ "0.72519475", "0.7107265", "0.7096327", "0.7078182", "0.6855516", "0.6810485", "0.6672337", "0.6550611", "0.65210974", "0.64674056", "0.64099085", "0.63769144", "0.63612145", "0.634693", "0.63133234", "0.62906456", "0.6283919", "0.6274914", "0.62510973", "0.62262124", "0.6221...
0.0
-1
Returns a new XML encoder.
public XMLEncoder xmlEncoder(OutputStream out) { return configure(new XMLEncoder(out)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TypedXmlSerializer getNewEncoder(Object token) {\n TypedXmlSerializer result = new DefaultXmlSerializer();\n if (factories != null && factories.size() > 0) {\n ContentEncoder enc = (ContentEncoder) result.getProperty(XasUtil.PROPERTY_CONTENT_CODEC);\n for (Enumeration e =...
[ "0.6192352", "0.6191759", "0.61530346", "0.61530346", "0.61530346", "0.6122985", "0.59597355", "0.5904991", "0.5882833", "0.5869602", "0.5809073", "0.5750704", "0.5747191", "0.5738779", "0.5588836", "0.5575405", "0.55045414", "0.547709", "0.5434674", "0.5397238", "0.537955", ...
0.6821393
0
Configures and returns the given XML encoder.
protected final XMLEncoder configure(XMLEncoder encoder) { encoder.setPersistenceDelegate(X500Principal.class, delegate); return encoder; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public XMLEncoder xmlEncoder(OutputStream out) {\n return configure(new XMLEncoder(out));\n }", "protected final XMLDecoder configure(XMLDecoder decoder) {\n return decoder;\n }", "public TypedXmlSerializer getNewEncoder(Object token) {\n TypedXmlSerializer result = new DefaultXmlSer...
[ "0.6469982", "0.59826887", "0.58798385", "0.56468105", "0.53278464", "0.53016937", "0.5172199", "0.516428", "0.516428", "0.516428", "0.5108085", "0.5105384", "0.5101861", "0.5083764", "0.50346017", "0.5000197", "0.4959261", "0.49548748", "0.49368745", "0.49320066", "0.4929286...
0.5857689
3
Returns a new XML decoder.
public XMLDecoder xmlDecoder(InputStream in) { return configure(new XMLDecoder(in)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected final XMLDecoder configure(XMLDecoder decoder) {\n return decoder;\n }", "public TypedXmlParser getNewDecoder(Object token) {\n TypedXmlParser result = new DefaultXmlParser();\n if (factories != null && factories.size() > 0) {\n ContentDecoder dec = (ContentDecoder) r...
[ "0.6660529", "0.6605119", "0.61697906", "0.5931335", "0.5871883", "0.5633148", "0.5629784", "0.5423357", "0.54010093", "0.5358709", "0.53303033", "0.53168863", "0.5292666", "0.5268533", "0.52135116", "0.52044386", "0.51816666", "0.5181329", "0.51656634", "0.5157592", "0.51388...
0.7066418
0
Configures and returns the given XML decoder.
protected final XMLDecoder configure(XMLDecoder decoder) { return decoder; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public XMLDecoder xmlDecoder(InputStream in) {\n return configure(new XMLDecoder(in));\n }", "public TypedXmlParser getNewDecoder(Object token) {\n TypedXmlParser result = new DefaultXmlParser();\n if (factories != null && factories.size() > 0) {\n ContentDecoder dec = (Content...
[ "0.7032202", "0.63952464", "0.5518984", "0.55174637", "0.5358683", "0.5311803", "0.52220803", "0.5206389", "0.5188924", "0.5178837", "0.51235175", "0.5113497", "0.50948733", "0.50813866", "0.50382406", "0.5031575", "0.4950115", "0.49296382", "0.49239674", "0.49162087", "0.491...
0.7857881
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.menu_actividad_principal, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.6862...
0.0
-1
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(); //noinspection SimplifiableIfStatement if (id == R.id.action_añadir) { add(); return true; } if (id == R.id.action_ordenarDes) { agenda.ordenarAgend...
{ "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
This was originally created to remove CNPC bank data; need to generify it
private static void removeCNPCBankData() { try { File file = new File("playerdata"); String s; ArrayList<String> strings = new ArrayList<>(); boolean deleting; int braceCount = 0; for (File f : file.listFiles()) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void m29109d() {\n PersistentConfiguration cVar = this.f22554b;\n if (cVar != null) {\n if (C6804i.m29033a(cVar.getString(\"UTDID2\"))) {\n String string = this.f22554b.getString(\"UTDID\");\n if (!C6804i.m29033a(string)) {\n m29110f...
[ "0.58827174", "0.56484205", "0.5554111", "0.54939634", "0.54660934", "0.5445248", "0.540715", "0.5348856", "0.5315937", "0.5312028", "0.5290062", "0.52838856", "0.52605736", "0.5238956", "0.5236897", "0.5233435", "0.5221846", "0.5207193", "0.5194271", "0.51936454", "0.5178519...
0.6450816
0
addTab Handle add new tab to UI. Override to implement add new tab to UI.
protected abstract void doAddTab(GridTab tab, JPiereIADTabpanel tabPanel);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void addTab(Tab tab) {\n mUi.addTab(tab);\n }", "@Override\n\tpublic void addTab(Tab tab) {\n\t\t\n\t}", "public void add(TabLike tab){\n TabLabel btn = tabLabelCreator.create(tab.getName(), this);\n\n tab.setVisible(tabs.isEmpty());\n btn.setDisable(tabs.isEmpty());\n ...
[ "0.78890306", "0.78887004", "0.764444", "0.72937584", "0.7287936", "0.7151039", "0.71305835", "0.69426876", "0.6845634", "0.67687327", "0.67353433", "0.66756266", "0.659522", "0.65343064", "0.6494296", "0.6476779", "0.63632786", "0.625293", "0.6230033", "0.62054765", "0.61935...
0.701862
7
isEnabledAt Evaluate display logic
private boolean isDisplay(JPiereIADTabpanel tabPanel) { String logic = tabPanel.getDisplayLogic(); if (logic != null && logic.length() > 0) { boolean display = Evaluator.evaluateLogic(tabPanel, logic); if (!display) { log.info("Not displaye...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isDisplay();", "boolean isDisplay();", "boolean isVisible();", "boolean isVisible();", "public abstract boolean isVisible();", "public abstract boolean isVisible();", "public boolean isVisible();", "public boolean isVisible();", "public boolean isVisible();", "public boolean okToDisplay()...
[ "0.70654064", "0.70654064", "0.65276456", "0.65276456", "0.6298377", "0.6298377", "0.6261957", "0.6261957", "0.6261957", "0.62365294", "0.62002707", "0.61962825", "0.61962825", "0.61749", "0.6084444", "0.605069", "0.59867954", "0.59867954", "0.59867954", "0.59867954", "0.5986...
0.66825056
2
Prepare environment context for newTab.
private void prepareContext(int newIndex, JPiereIADTabpanel newTab) { //update context if (newTab != null) { List<Integer> parents = new ArrayList<Integer>(); //get parent list, always include first tab (0) if (newIndex > 0) { int currentLevel = newTab.getTabLevel(); for (int i = newIndex - 1;...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setupTabs() {\n }", "private VTabSheet initTabLayout() {\r\n VTabSheet tabs = new VTabSheet();\r\n Map<Component, Integer> tabComponentMap = new HashMap<Component, Integer>();\r\n Binder<Report> binder = new Binder<>(Report.class);\r\n fireEventTypeComponent = new FireEventTypeDataTab(r...
[ "0.610836", "0.5938738", "0.58863103", "0.58423877", "0.5669156", "0.5652928", "0.5645011", "0.5603021", "0.55602574", "0.553672", "0.54936457", "0.5443948", "0.54237556", "0.54232913", "0.54158115", "0.5411431", "0.53861946", "0.5306208", "0.5246036", "0.5246036", "0.5243712...
0.59314585
2
Handle tab selection change event. Override to update UI for tab selection change.
protected abstract void doTabSelectionChanged(int oldIndex, int newIndex);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onTabSelectionChanged(int tabIndex);", "private void onTabPaneSelectionChange(Tab newValue) {\n State newState;\n\n if (newValue.equals(tabPreparation)) {\n if (controller.getState().equals(State.MEETING)) {\n AlertHelper.showWarning(LanguageKey.WARNING_CHANGE_TAB_REV...
[ "0.7607126", "0.73760307", "0.71607935", "0.7155679", "0.7040498", "0.7038629", "0.69842046", "0.69190246", "0.68968284", "0.6859895", "0.68143594", "0.67721486", "0.6767854", "0.67125404", "0.6711576", "0.6680545", "0.6668548", "0.6655322", "0.6640377", "0.6636632", "0.66339...
0.76043683
1
Get break crumb path
public String getPath() { StringBuilder path = new StringBuilder(); int s = this.getSelectedIndex(); if (s <= 0 ) s = 0; JPiereIADTabpanel p = tabPanelList.get(s); for (int i = 0; i <= s; i++) { String n = null; if (i == s) n = p.getTitle(); else { JPiereIADTabpa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getCustomBreak();", "@Override\n public BPath getBPath() {\n if (getThread() == null)\n {\n if (DEBUG) Timber.e(\"Owner Thread is null\");\n return null;\n }\n return getThread().getBPath().addPathComponent(BFirebaseDefines.Path.BMessagesPath,...
[ "0.56623435", "0.55970764", "0.5556975", "0.55359316", "0.55209535", "0.5512413", "0.5503617", "0.5427893", "0.5413246", "0.533719", "0.53143024", "0.5313118", "0.53126436", "0.5297788", "0.52762264", "0.5262687", "0.52537477", "0.5236221", "0.5207031", "0.5206706", "0.520670...
0.4864236
58
evaluate Update UI state of tab (visibility, activation and if need invalidate)
protected abstract void updateTabState();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void test_manageActive() throws Exception {\n TabLayoutPanelInfo container =\n parseJavaInfo(\n \"public class Test extends TabLayoutPanel {\",\n \" public Test() {\",\n \" super(1.5, Unit.EM);\",\n \" {\",\n \" Button button_1 = n...
[ "0.668877", "0.63271856", "0.62968594", "0.629287", "0.6263609", "0.6238177", "0.6216734", "0.6189375", "0.6183979", "0.61485523", "0.6044635", "0.59352064", "0.5922711", "0.588381", "0.58148557", "0.5807016", "0.579896", "0.57899314", "0.57793754", "0.5747674", "0.57388145",...
0.76620007
0
final Mdetilkurikulum detilKurikulum = (Mdetilkurikulum) data;
@Override public void render(Listitem item, Object data) throws Exception { final Tirspasca detilMatakuliah = (Tirspasca) data; Listcell lc = new Listcell(detilMatakuliah.getMtbmtkl().getCkdmtk()); lc.setParent(item); lc = new Listcell(detilMatakuliah.getMtbmtkl().getCnamamk()); lc.setParent...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MatkulKurikulum() {\n }", "public Datum() {\n this.tag = 1;\n this.monat = 1;\n this.jahr = 1;\n }", "public Datum(int jahr) {\n this.tag = 1;\n this.monat = 1;\n this.jahr = jahr;\n }", "public DataTable getDtMotivoLlamadoAtencion()\r\n/* 134: */ {\r\n/* 135:140 */ ret...
[ "0.6259029", "0.60620815", "0.56119144", "0.54926926", "0.5456776", "0.5430108", "0.540987", "0.5399159", "0.5398763", "0.5364537", "0.536042", "0.5316152", "0.53051764", "0.5301659", "0.526985", "0.5259669", "0.5242255", "0.5233709", "0.5232285", "0.5230294", "0.52298474", ...
0.0
-1
Stores the given secret for the user, the secret will be inactive
DBOOtpSecret storeSecret(Long userId, String secret);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void touchSecret(Long secretId);", "DBOOtpSecret activateSecret(Long userId, Long secretId);", "private void storeKeys(String key, String secret) {\n\t // Save the access key for later\n\t SharedPreferences prefs = getSharedPreferences(ACCOUNT_PREFS_NAME, 0);\n\t Editor edit = prefs.edit()...
[ "0.6978408", "0.68868184", "0.6736258", "0.6674912", "0.66305715", "0.65902823", "0.6393236", "0.63426226", "0.6153928", "0.61227494", "0.6083202", "0.59186995", "0.5900298", "0.5889506", "0.58769095", "0.5866767", "0.5857462", "0.5818385", "0.58065313", "0.5757048", "0.57430...
0.7972365
0
Activates the given secret
DBOOtpSecret activateSecret(Long userId, Long secretId);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void touchSecret(Long secretId);", "DBOOtpSecret storeSecret(Long userId, String secret);", "String getSecret();", "public int getSecret() {\n return secret;\n }", "public void createSecret(final ArtifactVersion version, final Secret secret);", "java.lang.String getSecret();", "public void addKeySe...
[ "0.6543771", "0.5993655", "0.5797687", "0.5720849", "0.57096744", "0.56943566", "0.5664309", "0.5603597", "0.5584826", "0.5454543", "0.5351008", "0.5346505", "0.53174627", "0.5211569", "0.51970595", "0.51822925", "0.5117775", "0.51027966", "0.51002914", "0.508708", "0.5071828...
0.83282214
0
Deletes the given user secret
void deleteSecret(Long userId, Long secretId);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void deleteSecrets(Long userId);", "void delete(SecretIdentifier secretIdentifier);", "public boolean deleteSecret() {\n\t\tbyte[] userMessage = \"delete\".getBytes();\n\t\treturn sendAndCheckResp(userMessage, \"secretdeleted\", \"writingfailure\");\n\t}", "public void deleteSecret(String name) throws IOExce...
[ "0.7817732", "0.7606267", "0.74514616", "0.68369013", "0.63447636", "0.63159645", "0.62689704", "0.6209535", "0.61821836", "0.6164368", "0.61608714", "0.60917294", "0.60875297", "0.6061021", "0.60155666", "0.6010135", "0.59647137", "0.595026", "0.59409153", "0.5915634", "0.58...
0.8668324
0
Deletes all the user secrets
void deleteSecrets(Long userId);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clearDeletedSecrets() {\n deletedSecrets.clear();\n }", "void deleteSecret(Long userId, Long secretId);", "public static void clearAllSavedUserData() {\n cacheUser = null;\n cacheAccessToken = null;\n getSharedPreferences().edit().clear().commit();\n }", "public void d...
[ "0.71957934", "0.65171564", "0.64614666", "0.6350048", "0.6281752", "0.6256835", "0.61250186", "0.6057797", "0.6014314", "0.59954816", "0.5987668", "0.59862703", "0.598261", "0.59741616", "0.59504515", "0.5880527", "0.58552545", "0.5844681", "0.58331513", "0.57807904", "0.577...
0.73954266
0
Updates the etag of the secret with the given id
void touchSecret(Long secretId);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSecretVersion(String secret, long versionId) throws IOException {\n SetSecretVersionRequestV2 secretVerReq = SetSecretVersionRequestV2.fromParts(secret, versionId);\n httpPost(baseUrl.resolve(String.format(\"/automation/v2/secrets/%s/setversion\", secret)), secretVerReq);\n }", "p...
[ "0.5906708", "0.55461776", "0.5396446", "0.5275791", "0.5228853", "0.5190093", "0.517168", "0.5141238", "0.51411307", "0.51411307", "0.51411307", "0.50615674", "0.49515778", "0.49338365", "0.48905194", "0.48739868", "0.48619905", "0.48166323", "0.48132718", "0.4799242", "0.47...
0.6130543
0
Stores the give list of recovery codes for the given secret, just store an hash of each recovery code
void storeRecoveryCodes(Long secretId, List<String> recoveryCodes);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void deleteRecoveryCodes(Long secretId);", "private void storeKeys(String key, String secret) {\n\t\t// Save the access key for later\n\t\tSharedPreferences prefs = EReaderApplication.getAppContext()\n\t\t\t\t.getSharedPreferences(ACCOUNT_PREFS_NAME, 0);\n\t\tEditor edit = prefs.edit();\n\t\tedit.putString(ACCES...
[ "0.62957114", "0.5463449", "0.54395133", "0.53472334", "0.53423584", "0.5341313", "0.5326488", "0.52381164", "0.5233574", "0.51603955", "0.5156387", "0.50624174", "0.5019348", "0.5006342", "0.4966275", "0.49501404", "0.4928869", "0.48932457", "0.48708376", "0.48546234", "0.48...
0.866083
0
Deletes the recovery code associated with the given secret id
boolean deleteRecoveryCode(Long secretId, String recoveryCode);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void deleteRecoveryCodes(Long secretId);", "void deleteSecret(Long userId, Long secretId);", "void delete(SecretIdentifier secretIdentifier);", "void deleteSecrets(Long userId);", "public boolean deleteSecret() {\n\t\tbyte[] userMessage = \"delete\".getBytes();\n\t\treturn sendAndCheckResp(userMessage, \"s...
[ "0.87076586", "0.68332976", "0.67700094", "0.57310116", "0.5702191", "0.568981", "0.56447273", "0.56257737", "0.5579794", "0.55505097", "0.55151045", "0.5481551", "0.5392846", "0.5364886", "0.5354501", "0.5327613", "0.5311299", "0.5291629", "0.52573687", "0.525224", "0.525008...
0.82777834
1
Deletes all the recovery codes associated with the given secret id
void deleteRecoveryCodes(Long secretId);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean deleteRecoveryCode(Long secretId, String recoveryCode);", "void deleteSecret(Long userId, Long secretId);", "void storeRecoveryCodes(Long secretId, List<String> recoveryCodes);", "void delete(SecretIdentifier secretIdentifier);", "void deleteSecrets(Long userId);", "public void deleteKeySecretPai...
[ "0.7092165", "0.6235997", "0.61572486", "0.59513754", "0.5812706", "0.53335637", "0.53307825", "0.5303826", "0.51830614", "0.51822835", "0.51236945", "0.5086241", "0.50828326", "0.5081829", "0.50630414", "0.50229675", "0.5011365", "0.4977536", "0.49700713", "0.49627745", "0.4...
0.88770694
0
/Mouse Touch See frameworks/native/include/android/input.h AINPUT_SOURCE_CLASS_NONE = 0x00000000, AINPUT_SOURCE_CLASS_BUTTON = 0x00000001, AINPUT_SOURCE_CLASS_POINTER = 0x00000002, AINPUT_SOURCE_CLASS_NAVIGATION = 0x00000004, AINPUT_SOURCE_CLASS_POSITION = 0x00000008, AINPUT_SOURCE_CLASS_JOYSTICK = 0x00000010, AINPUT_S...
private static void injectMotionEvent(InputManager im, Method method, int inputSource, int action, long when, float x, float y, float pressure) throws InvocationTargetException, IllegalAccessException { MotionEvent event = MotionEvent.obtain(when, when, action, x, y, pressure, 1.0f, 0, 1.0f, 1.0f, 0, 0); ev...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface TouchHandler extends View.OnTouchListener {\n public boolean isTouchDown(int pointer);\n public int getTouchX(int pointer);\n public int getTouchY(int pointer);\n public List<Input.TouchEvent> getTouchEvents();\n}", "public boolean onGenericMotionEvent( MotionEvent event ){\n\t\t\n\t...
[ "0.61731046", "0.6071621", "0.59658945", "0.59199405", "0.58351684", "0.58216363", "0.57867134", "0.57804495", "0.5727531", "0.5685763", "0.5682959", "0.5657463", "0.56471944", "0.56200045", "0.5617579", "0.5616706", "0.5573556", "0.55688184", "0.5532296", "0.5527668", "0.551...
0.0
-1
final float DEFAULT_SIZE = 1.0f; final int DEFAULT_META_STATE = 0; final int DEFAULT_BUTTON_STATE = 0; final int DEFAULT_FLAGS = 0; final float DEFALUT_PRECISION_X = 1.0f; final float DEFAULT_PRECISION_Y = 1.0f; final int DEFAULT_DEVICE_ID = 0; final int DEFAULT_EDGE_FLAGS = 0;
public static void scroll(InputManager im, Method method, float x, float y, int deltaX, int deltaY) throws InvocationTargetException, IllegalAccessException { long when = SystemClock.uptimeMillis(); MotionEvent.PointerProperties pp[] = new MotionEvent.PointerProperties[1]; pp[0] = new MotionEvent.Pointer...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initDefaultAttrs() {\n DisplayMetrics dm = getResources().getDisplayMetrics();\n textSize = (int) TypedValue.applyDimension(\n TypedValue.COMPLEX_UNIT_SP, DEFAULT_TEXT_SIZE_SP, dm);\n iconSize = (int) TypedValue.applyDimension(\n TypedValue.COMPLEX_UN...
[ "0.59131634", "0.588844", "0.5804249", "0.57739794", "0.57447946", "0.5661244", "0.55361575", "0.55301464", "0.5508863", "0.550677", "0.5492173", "0.5464539", "0.5459072", "0.54334605", "0.54170084", "0.5400138", "0.5366256", "0.53566015", "0.53336024", "0.53276485", "0.53207...
0.0
-1
Creates new form SerialTerminal
public SerialTerminal(boolean standalone) { initComponents(); stop = true; streamReaderRunning = false; if(standalone) { this.addWindowListener(new java.awt.event.WindowAdapter() { @Override public void windowClosing(java.awt.event.WindowEven...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Terminal() {\n initComponents();\n }", "public JPanel_Terminal() {\n // initialize components\n initComponents();\n\n // initialize JTerm\n JTermInputProcessor termProcessor = (String command, JTerm console) -> {\n if (jShellTransport == null) {\n ...
[ "0.6508659", "0.62069035", "0.60659117", "0.60478276", "0.5952744", "0.5715338", "0.5568224", "0.54921186", "0.54571277", "0.543313", "0.54230803", "0.54195017", "0.54165894", "0.53538793", "0.52813494", "0.5280525", "0.52671075", "0.5265031", "0.5221734", "0.519099", "0.5176...
0.69284743
0
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { lblPort = new javax.swing.JLabel(); cmbPort = new javax.swing.JComboBox<String>(); lblBaud = new javax.swing.JLabel(); cmbBaud...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.7319037", "0.7290621", "0.7290621", "0.7290621", "0.7285163", "0.72480375", "0.72130316", "0.7207723", "0.7195822", "0.7189463", "0.7183591", "0.71580946", "0.7147075", "0.70924276", "0.70795405", "0.7056352", "0.6986753", "0.6976759", "0.6954958", "0.69533294", "0.6944831...
0.0
-1
Fraction Constructor that initialize the two instance variables numerator and denominator. Find the GCD values, and simplify the fraction in the most simplest form before setting it to the 2 final instance variables numerator and denominator
public Fraction(int numerator, int denominator) { //won't allow you to set the denominator equal to 0 because dividing by a 0 gives you an error if (denominator == 0) { throw new PizzaException("denominator can't be 0"); } else { //finding the GCD value depending on num ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Fraction(){\n numerator = 0;\n denominator = 1;\n }", "public Fraction()\r\n {\r\n this.numerator = 0;\r\n this.denominator = 1;\r\n }", "public Fraction() {\n this.numerator = 0;\n this.denominator = 1;\n }", "public Fraction(int numerator, int denomina...
[ "0.80957687", "0.80748373", "0.805755", "0.8007032", "0.7894835", "0.78834486", "0.7823621", "0.77781236", "0.7765261", "0.77208906", "0.77175933", "0.75113916", "0.7374064", "0.72435933", "0.7236506", "0.7215075", "0.7120869", "0.709913", "0.7097015", "0.7055878", "0.7043372...
0.794974
4
A copy Constructor that will make a new copy of the object, but completely independent in memory address
public Fraction(Fraction fraction) { if (fraction == null) { throw new PizzaException("fraction can't be null"); } else { this.NUMERATOR = fraction.NUMERATOR; this.DENOMINATOR = fraction.DENOMINATOR; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Prototype makeCopy();", "public static void copyConstructor(){\n\t}", "Object clone();", "Object clone();", "public CMObject copyOf();", "public Object clone();", "public Object clone();", "public Object clone();", "public Object clone();", "public Function clone();", "public Clone() {}", "pu...
[ "0.74589914", "0.73813444", "0.70548064", "0.70548064", "0.70068747", "0.6850183", "0.6850183", "0.6850183", "0.6850183", "0.6811272", "0.67411864", "0.6737875", "0.67370605", "0.6717133", "0.67089856", "0.6669989", "0.66391695", "0.6633097", "0.66217065", "0.66173387", "0.65...
0.0
-1
findGCD method take takes in the numerator and denominator as input, and determines the the gcd values that will simplify the fraction.
private int findGCD(int n1, int n2) { //n1 and n2 must always be positive for this GCD algorithm n1 = Math.abs(n1); n2 = Math.abs(n2); //continue through the loop if n2 is greater than 0 while (n2 > 0) { int remainder = n1 % n2; //n1 will keep track of t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getGCD(int numerator, int denominator)\n\t{\n\t\tif (denominator == 0)\n\t\t{\n\t\t\treturn numerator;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn getGCD(denominator, numerator % denominator);\n\t\t}\n\t}", "public int gcd(){\n\tint min;\n\tint max;\n\tint stor;\n\tif ((numerator == 0) || (denominator == 0)...
[ "0.7709905", "0.7636528", "0.7537978", "0.72050315", "0.71213883", "0.70809513", "0.7007937", "0.69751936", "0.696528", "0.6917037", "0.6909709", "0.6882179", "0.68747973", "0.68582916", "0.6837423", "0.679733", "0.67868865", "0.6780249", "0.6767682", "0.67593336", "0.6749975...
0.73405915
3
A getValue method that calculate and returns the value of the of the fraction object
public double getValue() { return NUMERATOR / DENOMINATOR; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getValue(){\n return (double) numerator / (double) denominator;\n }", "public double getValue() {\n return (numeratorValue * multiplier) / (denominatorValue * divisor);\n }", "public double value() {\n return ((double) this.numerator / this.denominator);\n }", "float get...
[ "0.7857477", "0.7789763", "0.7741749", "0.7315487", "0.7315487", "0.7315487", "0.72571146", "0.72571146", "0.72571146", "0.7225974", "0.7202458", "0.71481323", "0.709493", "0.7043935", "0.70292336", "0.7024761", "0.7023071", "0.69405663", "0.6940546", "0.69055426", "0.6894166...
0.6644567
33
Equal method that compares the class instance with other class object
public boolean equals(Fraction other) { if (NUMERATOR / DENOMINATOR == other.NUMERATOR / other.DENOMINATOR) { return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testEquals() {\n System.out.println(\"equals\");\n Commissioner instance = new Commissioner();\n Commissioner instance2 = new Commissioner();\n instance.setLogin(\"genie\");\n instance2.setLogin(\"genie\");\n boolean expResult = true;\n boolea...
[ "0.712647", "0.71124417", "0.7095975", "0.70448273", "0.70249057", "0.70228153", "0.6935216", "0.6835812", "0.68232745", "0.6775121", "0.67659396", "0.66844344", "0.6683462", "0.6681894", "0.6656998", "0.6652317", "0.66481566", "0.66382134", "0.6631525", "0.6602412", "0.65957...
0.0
-1
ToString method of Fraction class object
@Override public String toString() { return (int) NUMERATOR + "/" + (int) DENOMINATOR; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString() {\n String myFraction = \"\" + this.numerator + \"/\" + this.denominator;\n return myFraction;\n }", "public String toString() {\n if(denominator != 1)\n return \"\" + this.numerator + \"/\" + this.denominator;\n /** The fraction is a whole numb...
[ "0.8357452", "0.80010176", "0.7956961", "0.78595287", "0.7788483", "0.7750892", "0.7737066", "0.7680996", "0.75648737", "0.7413312", "0.7232856", "0.72014153", "0.71717614", "0.7134704", "0.7112038", "0.7083833", "0.70645976", "0.7000252", "0.6950589", "0.67531204", "0.661834...
0.0
-1
A comparable method that compare the current fraction value to other fraction value.
@Override public int compareTo(Fraction o) { if (this.getValue() > o.getValue()) { return 1; } else if (this.getValue() < o.getValue()) { return -1; } else { return 0; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public int compareTo(Fraction in) {\n double thisQuotient = numerator/denominator;\n double inQuotient = in.getNumerator()/in.getDenominator();\n if (thisQuotient > inQuotient) {\n return 1;\n } else if (thisQuotient < inQuotient) {\n return -1;\n ...
[ "0.73952997", "0.7144487", "0.7101264", "0.70961624", "0.704006", "0.68991905", "0.67722094", "0.6425403", "0.6399958", "0.6323592", "0.62794054", "0.6221594", "0.6218352", "0.61959904", "0.6099007", "0.60676295", "0.6066095", "0.60613537", "0.5925197", "0.5831151", "0.581173...
0.7281723
1
Use the current time as the default values for the picker
@Override public Dialog onCreateDialog(Bundle savedInstanceState) { final Calendar c = Calendar.getInstance(); hour = c.get(Calendar.HOUR_OF_DAY); minute = c.get(Calendar.MINUTE); // Create a new instance of TimePickerDialog and return it return new TimePickerDialog(getActiv...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initializeTime() {\n hour = cal.get(Calendar.HOUR);\n min = cal.get(Calendar.MINUTE);\n\n time = (EditText) findViewById(R.id.textSetTime);\n time.setInputType(InputType.TYPE_NULL);\n\n //Set EditText text to be current time\n if(min < 10) {\n time.s...
[ "0.7145502", "0.68805426", "0.6741116", "0.6638823", "0.66376615", "0.6624833", "0.65594554", "0.6536629", "0.6515046", "0.65095985", "0.65067273", "0.6504919", "0.65023434", "0.6495343", "0.6493249", "0.6490677", "0.64885217", "0.64812636", "0.647405", "0.6473464", "0.646374...
0.0
-1
Do something with the time chosen by the user
public void onTimeSet(TimePicker view, int hourOfDay, int minute) { time = 3600 * hour + 60 * minute; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void time() {\n System.out.println(\"Enter the time you wish to free up\");\n }", "public void timeSet(){\n System.out.println(\"Please enter the time with (AM/PM): \");\n String time = keyboard.nextLine();\n Tea = \"Drink is set to be made at \" + time + \". \";\n }", ...
[ "0.73821497", "0.73148173", "0.71713215", "0.7086634", "0.6960479", "0.69404083", "0.68654156", "0.68617177", "0.6828209", "0.67306805", "0.67225045", "0.66813093", "0.6611749", "0.6601242", "0.66008466", "0.6551913", "0.6551913", "0.6551913", "0.65341437", "0.6532783", "0.65...
0.0
-1
like the name says
void setTopLabelText(String text) { topLabel.setText(text); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract String name ();", "abstract String name();", "abstract String getName();", "@Override\n\tpublic void name() {\n\t\t\n\t}", "@Override\n\tpublic void name() {\n\t\t\n\t}", "@Override\n\tvoid name() {\n\t\tSystem.out.println(\"name is anubhav\");\n\t\t\n\t}", "String getName() ;", "p...
[ "0.6500569", "0.64771235", "0.63758314", "0.63447833", "0.63447833", "0.6252417", "0.6235583", "0.62053764", "0.6160326", "0.6156708", "0.6118204", "0.61155933", "0.6111681", "0.61086583", "0.60822076", "0.6075999", "0.6072492", "0.6066797", "0.6062649", "0.60598326", "0.6059...
0.0
-1
get the new contact name
String getInputName() { return (nameInput.getText()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getName() {\n System.out.println(\"Enter contact name\");\n return scannerForAddressBook.scannerProvider().nextLine();\n }", "public String getContactName() {\r\n return tfContactName.getText().trim();\r\n }", "private String retrieveContactName() {\n Cursor cur...
[ "0.7577827", "0.7497708", "0.7466024", "0.7406504", "0.7368307", "0.7274436", "0.69796836", "0.67508894", "0.6667661", "0.66652703", "0.66159433", "0.6614434", "0.6592241", "0.6574609", "0.64872456", "0.64872456", "0.64872456", "0.64872456", "0.64872456", "0.64744735", "0.641...
0.0
-1
get the new contact's input, whatever it is used for
String getVariableInput() { return (variableInput.getText()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void readContactInfo() {\n\t\tScanner console = new Scanner(System.in);\n\t\tPerson tempPerson = new Person();\n\t\tString stringInput;\n\t\t\n\t\tSystem.out.println(\"Please press enter after each input, or \"\n\t\t\t\t\t\t\t+ \"input only 'c' to cancel.\");\n\t\tSystem.out.print(\"Last name: \");\n\t\tst...
[ "0.6767368", "0.651143", "0.6355521", "0.6194171", "0.6190879", "0.60856956", "0.60816145", "0.59918505", "0.5985231", "0.5980825", "0.59659326", "0.5939137", "0.5923126", "0.5913874", "0.5904327", "0.58823276", "0.5881487", "0.5870579", "0.58532405", "0.58532405", "0.5853240...
0.0
-1
change my secret string
void setMySecret() { mySecretShortString = randomString (6); mySecretLongString = randomString (14); mySecretShort.setText("your short secret: " + mySecretShortString); mySecretLong.setText("or your long secret: " + mySecretLongString); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getSecret();", "java.lang.String getSecret();", "public abstract String getSecret();", "java.lang.String getServerSecret();", "DBOOtpSecret storeSecret(Long userId, String secret);", "public static String encrypt(String secret) {\n return BCrypt.hashpw(secret, BCrypt.gensalt(SALT_SIZE));\n ...
[ "0.7187357", "0.7173849", "0.6840356", "0.6823263", "0.6584031", "0.6552431", "0.64857364", "0.6431597", "0.641539", "0.6413704", "0.6376056", "0.63371706", "0.6308921", "0.6236485", "0.6188777", "0.61858916", "0.61019635", "0.6101141", "0.6043507", "0.6028005", "0.60067594",...
0.7086863
2
return the index of the selected button
int getSelectedButton() { for (int i = 0; i < buttons.length; i++) { if (buttons[i].isSelected()) { return (i); } } return (-1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int getSelectButtonIndex(Button buttonArr[]) {\n int arrIdx;\n int retSelectedIdx = -1;\n \n arrIdx = 0;\n while(arrIdx < buttonArr.length && retSelectedIdx < 0) {\n if (buttonArr[arrIdx].getSelection()) {\n retSelectedIdx = arrIdx;\n }\n ar...
[ "0.79690367", "0.77160406", "0.76268697", "0.754616", "0.73603964", "0.7288314", "0.7281107", "0.70565486", "0.7052065", "0.69106704", "0.69086206", "0.6898739", "0.68932414", "0.6828205", "0.6826319", "0.68118817", "0.67934287", "0.67925125", "0.6736943", "0.66784936", "0.65...
0.8701769
0
set where we will send events
void setActionListener(ActionListener listener) { goButton.addActionListener(listener); for (JRadioButton rb : buttons) { rb.addActionListener(listener); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSendEvent(EventOccurrence sendEvent);", "public void transmitEvents(){\n Log.info(\"Transmitting Events\", EventShare.class);\n for(Entry<Class, List<EventTrigger>> eventGroup: HandlerRegistry.getHandlers().entrySet()){\n String annotation = eventGroup.getKey().getName();\...
[ "0.6934873", "0.6524477", "0.62184024", "0.606251", "0.6023285", "0.59666866", "0.5964588", "0.57887906", "0.57727873", "0.57248193", "0.56996053", "0.5685988", "0.5682545", "0.5638234", "0.56226456", "0.56110936", "0.5604945", "0.55901474", "0.55876297", "0.55774635", "0.557...
0.0
-1
ApiInterface.java This class act as an interface between Retrofit and Classes used using Retrofit in Application
public interface ApiInterface { // POST queries @FormUrlEncoded @POST("login") Call<ResponseBody> hitLoginApi(@FieldMap HashMap<String, String> map); @FormUrlEncoded @POST("sociallogin") Call<ResponseBody> hitSocialLoginApi(@FieldMap HashMap<String, String> map); @FormUrlEncoded ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface APIInterface {\n// @GET(\"api/home/books\")\n// Call<BookListResponse> getBookList();\n//\n// @GET(\"api/home/tests\")\n// Call<BookListResponse> getTestList();\n//\n// @GET(\"api/home/banners\")\n// Call<BannerResponse> getBanners();\n//\n\n @GET\n Call<LectureResponse> lo...
[ "0.84232354", "0.8328426", "0.82163084", "0.8144803", "0.80603963", "0.804671", "0.8026358", "0.7806884", "0.779144", "0.7781534", "0.77780354", "0.7774742", "0.7754729", "0.77354246", "0.7716524", "0.7710284", "0.7699961", "0.76872927", "0.7676092", "0.766669", "0.766446", ...
0.7415845
67
Convert an epistemic status to a string.
public static String epistemicStatusToString(EpistemicStatus epst) { if (epst instanceof PrivateEpistemicStatus) { PrivateEpistemicStatus p = (PrivateEpistemicStatus)epst; return p.agent; } if (epst instanceof AttributedEpistemicStatus) { AttributedEpistemicStatus a = (AttributedEpistemicStatus)epst; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getStatusString() {\n return status.toString();\n }", "java.lang.String getStatus();", "java.lang.String getStatus();", "java.lang.String getStatus();", "java.lang.String getStatus();", "public String getStatus() {\n return status.toString();\n }", "String getStatus();...
[ "0.731475", "0.7142072", "0.7142072", "0.7142072", "0.7142072", "0.6820336", "0.6776188", "0.6776188", "0.6776188", "0.6776188", "0.6776188", "0.67363495", "0.6732148", "0.6732148", "0.66888607", "0.6660371", "0.6643843", "0.6605687", "0.6605687", "0.6600146", "0.65719044", ...
0.7394704
0
Return a string representation of an intention.
public static String intentionToString(Intention it) { String s = ""; s += "\tB{" + epistemicStatusToString(it.estatus) + "}:\n"; for (IntentionalContent itc : it.content) { s += "\t\tI("; for (Iterator<String> i = itc.agents.iterator(); i.hasNext(); ) { s += i.next(); if (i.hasNext()) { s += ",";...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString() {\n return this.getNom() +\n formatbonus('f', bonusForce) +\n formatbonus('d', bonusDefense) +\n formatbonus('v', bonusVie) +\n formatbonus('e', bonusEsquive) +\n formatbonus('i', bonusInventaire) +\n \"\";\n }", ...
[ "0.61845404", "0.61787665", "0.6051233", "0.5894458", "0.58408463", "0.5825717", "0.57328194", "0.5704893", "0.557283", "0.5553748", "0.55142105", "0.54884034", "0.54765904", "0.5452701", "0.5444373", "0.5440682", "0.54387426", "0.5401788", "0.5398575", "0.538751", "0.5386541...
0.7260135
0
Return a string representation of a simple belief.
public static String logicalBeliefToString(dBelief b) { String s = ""; s += "\tB{" + epistemicStatusToString(b.estatus) + "}:"; if (b.content instanceof BasicProbDistribution) { BasicProbDistribution pd = (BasicProbDistribution)b.content; if (pd.values instanceof FormulaValues) { FormulaValues fv = (Fo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString() {\n\t\t\n\t\treturn this.getColor() + \"B\";\n\t}", "public String toString()\n\t{\n\t\tString result\t= \"\";\n\n\t\tif ( isBold )\n\t\t{\n\t\t\tresult\t= \"bold\";\n\t\t}\n\n\t\tif ( isItalic )\n\t\t{\n\t\t\tif ( result.length() > 0 )\n\t\t\t{\n\t\t\t\tresult\t+= \" \";\n\t\t\t}\n\n\t\...
[ "0.6187377", "0.6185157", "0.6143424", "0.6020628", "0.59891593", "0.5978572", "0.59625405", "0.5943757", "0.59324807", "0.59146345", "0.5897033", "0.58618504", "0.5861044", "0.5856354", "0.5840369", "0.5839543", "0.58368576", "0.58206254", "0.5813304", "0.58088094", "0.58061...
0.65703934
0
Return a string representation of a formula.
private static String dFormulaToString(dFormula f) { String s = ""; if (f instanceof ComplexFormula) { ComplexFormula cplxF = (ComplexFormula) f; s += "("; for (Iterator<dFormula> i = cplxF.forms.iterator(); i.hasNext(); ) { dFormula df = i.next(); s += dFormulaToString(df); if (i.hasNext()) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString()\r\n\t{\r\n\t\tcheckInitialization();\r\n\t\treturn equationString + \" = \" + getResult();\r\n\t}", "public String toFormulaString(String[] operands)\n {\n StringBuffer buffer = new StringBuffer();\n\n buffer.append(operands[ 0 ]);\n buffer.append(\",\");\n ...
[ "0.73908013", "0.72855896", "0.7164729", "0.71503127", "0.71503127", "0.674329", "0.6574752", "0.6479291", "0.64517957", "0.6431901", "0.6404531", "0.6333097", "0.63167167", "0.62827474", "0.6266639", "0.6266114", "0.6203432", "0.6128317", "0.6116072", "0.60875183", "0.607675...
0.71583825
3
Collect belief identifiers in the given intention.
public static LinkedList<String> collectBeliefIdsInIntention(Intention it) { LinkedList<String> eos = new LinkedList<String>(); for (IntentionalContent itc : it.content) { eos.addAll(collectBeliefIdsInDFormula(itc.preconditions)); eos.addAll(collectBeliefIdsInDFormula(itc.postconditions)); } return eos; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static LinkedList<String> collectBeliefIdsInDFormula(dFormula f) {\n\t\tLinkedList<String> eos = new LinkedList<String>();\n\t\tif (f instanceof ComplexFormula) {\n\t\t\tComplexFormula cplxF = (ComplexFormula)f;\n\t\t\tfor (dFormula df : cplxF.forms) {\n\t\t\t\teos.addAll(collectBeliefIdsInDFormula(df));\n\...
[ "0.530908", "0.50134486", "0.5004373", "0.49930403", "0.4930925", "0.4904853", "0.48582226", "0.47318912", "0.46698594", "0.46692875", "0.4627513", "0.45821327", "0.45668024", "0.45593765", "0.45586777", "0.451275", "0.45046848", "0.44652057", "0.44629627", "0.4457711", "0.44...
0.6933348
0
Collect belief identifiers in the given logical formula.
public static LinkedList<String> collectBeliefIdsInDFormula(dFormula f) { LinkedList<String> eos = new LinkedList<String>(); if (f instanceof ComplexFormula) { ComplexFormula cplxF = (ComplexFormula)f; for (dFormula df : cplxF.forms) { eos.addAll(collectBeliefIdsInDFormula(df)); } } else if (f inst...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static LinkedList<String> collectBeliefIdsInIntention(Intention it) {\n\t\tLinkedList<String> eos = new LinkedList<String>();\n\n\t\tfor (IntentionalContent itc : it.content) {\n\t\t\teos.addAll(collectBeliefIdsInDFormula(itc.preconditions));\n\t\t\teos.addAll(collectBeliefIdsInDFormula(itc.postconditions))...
[ "0.5789265", "0.5230029", "0.48521072", "0.4791988", "0.4770546", "0.4761421", "0.46922374", "0.46679938", "0.4549468", "0.45221707", "0.4451206", "0.44406843", "0.44173092", "0.44015342", "0.43949682", "0.4353931", "0.43534094", "0.43389595", "0.43063372", "0.42997652", "0.4...
0.64170766
0
swaps array location of two indexes given
public static void swap(int[] vals, int a, int b) { int temp = vals[a]; // copy first value to temp to save vals[a] = vals[b]; // put second value in index of the first vals[b] = temp; // put original value where the second value was. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void swap(int[] a, int index1, int index2) {\n int temp = a[index1];\n a[index1] = a[index2];\n a[index2] = temp;\n }", "void swap(int index_1,int index_2){\n int temp=arr[index_1];\n arr[index_1]=arr[index_2];\n arr[index_2]=temp;\n }", "private static v...
[ "0.7937997", "0.79200876", "0.7902241", "0.77710587", "0.7668736", "0.7571355", "0.75564915", "0.75555193", "0.7478546", "0.74567753", "0.74237764", "0.7401428", "0.7390316", "0.7373756", "0.7341694", "0.7318345", "0.7301735", "0.72806364", "0.7276818", "0.727438", "0.7268132...
0.0
-1
sorts the array given in place
public static void sort(int[] vals) { int sortedIndex = 0; while (sortedIndex < vals.length - 1) { if (vals[sortedIndex] > vals[sortedIndex + 1]) { swap(vals, sortedIndex, sortedIndex + 1); int k = sortedIndex - 1; while (vals[k] > vals[k + 1] && k >= 0) { swap(vals, k, k + 1); k-...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void sort(int[] array);", "void sort() {\n\t\tint n = array.length;\n\t\tint temp = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 1; j < (n - i); j++) {\n\t\t\t\tif (array[j - 1] > array[j]) { // if the first term is larger\n\t\t\t\t\t\t\t\t\t\t\t\t// than the last term, then the\n\t\...
[ "0.77381027", "0.77028877", "0.763329", "0.7605817", "0.7605105", "0.75340354", "0.75312215", "0.75259143", "0.7499283", "0.74794024", "0.74782515", "0.7453672", "0.7453672", "0.74394894", "0.74271846", "0.7409087", "0.73809326", "0.73756754", "0.73443794", "0.7340023", "0.73...
0.0
-1
create the GUI and grid size
public void init() { this.screen = new Rectangle(PADDING, PADDING, Game.TOTAL_COLUMNS * CELL_SIZE, Game.TOTAL_ROWS * CELL_SIZE); // display the background this.screen.setColor(Color.LIGHT_GRAY);//board edge color this.screen.fill(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void init() {\r\n\r\n createGUI();\r\n\r\n setSize(new Dimension(600, 600));\r\n setTitle(\"Grid - Regular Grid Renderer\");\r\n }", "private void setGrid() {\r\n maxRows = (FORM_HEIGHT - FORM_HEIGHT_ADJUST) / SQUARE_SIZE;\r\n maxColumns = (FORM_WIDTH - FORM_WIDT...
[ "0.7835422", "0.7509765", "0.7411542", "0.7377737", "0.72850764", "0.727548", "0.72559077", "0.7243192", "0.72285706", "0.7223689", "0.7203442", "0.71969974", "0.71228606", "0.71186733", "0.7115278", "0.71130806", "0.70989245", "0.7095634", "0.7090901", "0.7081922", "0.706747...
0.0
-1
System.out.println(row + " " + col + " : " + piece.getPieceAsset());
public void drawPiece(int row, int col, GamePiece piece) { picturesArray[row][col] = new Picture(col * CELL_SIZE + PADDING, row * CELL_SIZE + PADDING, piece.getPieceAsset()); picturesArray[row][col].draw(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString() {\n\t\treturn \"Piece \" + num + \" - x: \" + x + \" y: \" + y;\n\t}", "public int getPiece() {\n return piece;\n }", "public ChessPiece getPiece(){return piece;}", "@Override\n public String toString() {\n return String.valueOf(playerPiece);\n }", "public in...
[ "0.65882033", "0.64912033", "0.63277125", "0.6306886", "0.6294804", "0.6251631", "0.6226426", "0.617734", "0.6145444", "0.61396486", "0.6136928", "0.60670525", "0.60430384", "0.6019523", "0.60173357", "0.6015128", "0.5991572", "0.59870404", "0.59845215", "0.5922066", "0.59100...
0.0
-1
Setter and Getters of row and columns
public static void setColumnNumber(int pColumnNumber) { columnNumber = pColumnNumber; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setRowCol(int row1, int col1){\n row = row1;\n col = col1;\n }", "public void setRows () {\n\t\t\n\t}", "public void setRowAndColumn(int row, int column) {\n this.row = row;\n this.column = column;\n updateRowColumnDisplay();\n }", "public void set(int row...
[ "0.72165734", "0.68703955", "0.68035424", "0.6790446", "0.6597738", "0.6580892", "0.6576475", "0.65594953", "0.6559271", "0.65281767", "0.65265405", "0.64965904", "0.6488565", "0.64711493", "0.64711493", "0.6469842", "0.64619535", "0.64579535", "0.64528745", "0.6451186", "0.6...
0.0
-1
This method reads the test data from the Excel cell. We are passing row number and column number as parameters
public static void setExcelFileSheet(String sheetName) throws IOException { testDataExcelPath = currentDir+"\\src\\example\\trademeSellAndBuy\\testData\\"; // Open the Excel file FileInputStream excelFile = new FileInputStream(new File(testDataExcelPath + testDataExcelFileName)); excelWBook = new ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void test(){\n ExcelUtil qa3Sheet = new ExcelUtil(\"src/test/resources/Vytrack testusers.xlsx\", \"QA3-short\");\n // 1 based , not 0 based\n int rowCount = qa3Sheet.rowCount();\n // 1 based, not 0 based\n int colCount = qa3Sheet.columnCount();\n System.o...
[ "0.74151725", "0.73088336", "0.72910154", "0.72889894", "0.725674", "0.7037005", "0.6940446", "0.69265616", "0.69080997", "0.68433875", "0.68159765", "0.6780644", "0.6690947", "0.66879463", "0.6648094", "0.66418743", "0.66215295", "0.65267986", "0.65256196", "0.6516311", "0.6...
0.0
-1
This method reads the test data from the Excel cell. We are passing row number and column number as parameters.
public static String getCellData(int ROWNum, int ColNum) { cell= excelWSheet.getRow(ROWNum).getCell(ColNum); DataFormatter formatter = new DataFormatter(); String cellData = formatter.formatCellValue(cell); return cellData; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void test(){\n ExcelUtil qa3Sheet = new ExcelUtil(\"src/test/resources/Vytrack testusers.xlsx\", \"QA3-short\");\n // 1 based , not 0 based\n int rowCount = qa3Sheet.rowCount();\n // 1 based, not 0 based\n int colCount = qa3Sheet.columnCount();\n System.o...
[ "0.7320085", "0.7295032", "0.72748", "0.72427785", "0.7237996", "0.7081596", "0.6985803", "0.6878435", "0.68494725", "0.6786335", "0.67675924", "0.6765308", "0.6693487", "0.662065", "0.6594442", "0.6587563", "0.65816385", "0.65384966", "0.6473228", "0.6460422", "0.6457084", ...
0.0
-1
This method takes row number as a parameter and returns the data of given row number.
public static XSSFRow getRowData(int RowNum) { row = excelWSheet.getRow(RowNum); return row; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "T getRowData(int rowNumber);", "Object[] getDataRow(final int index);", "Object getDataValue(final int row, final int column);", "io.dstore.engine.procedures.MiCheckPerformanceAd.Response.Row getRow(int index);", "Object getDataValue(String column, int row);", "public T getRow(int row) {\r\n\t\t\r\n\t\tl...
[ "0.83743656", "0.73284817", "0.68529797", "0.68224776", "0.67622674", "0.670643", "0.6703238", "0.66723025", "0.66146743", "0.66014993", "0.6485474", "0.6483889", "0.6476247", "0.64158344", "0.64144444", "0.6403653", "0.6385365", "0.634223", "0.63360816", "0.6325294", "0.6317...
0.6638544
8
This method gets excel file, row and column number and set a value
public static void setCellData(String value, int RowNum, int ColNum) throws IOException { row = excelWSheet.getRow(RowNum); cell =row.getCell(ColNum); if (cell == null) { cell = row.createCell(ColNum); cell.setCellValue(value); }else { cell.setCellValue(value); } // Constant...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void setCoulmnData( String xlFilePath, String xlFileName, String xlSheetName, int rowNum , int colNum , String cellValue) throws IOException {\n\t\tFile file = new File( xlFilePath + \"\\\\\" + xlFileName);\n\t\t\n\t\t// create an Obj of FileInputStream class to read the excel file\n\t\tFileInputStr...
[ "0.6963719", "0.66385764", "0.6416895", "0.625288", "0.6245399", "0.6239585", "0.6225901", "0.61859137", "0.61386174", "0.60722744", "0.6065537", "0.6050843", "0.6035347", "0.60106325", "0.59684765", "0.59577626", "0.59381324", "0.58431834", "0.58286846", "0.58068085", "0.579...
0.6235537
6
Get the instance of this enabled plugin.
public static TeleportalsPlugin getInstance() { try { return Objects.requireNonNull(instance); // return (TeleportalsPlugin) Objects.requireNonNull(Bukkit.getPluginManager().getPlugin("Teleportals")); } catch (NullPointerException | ClassCastException | IllegalArgumentExc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MusterCull getPluginInstance() {\n\t\treturn pluginInstance;\n\t}", "public static Plugin getPlugin() {\n return plugin;\n }", "public static IP_Main getPluginInstance() { return pluginInstance; }", "public APlugin getPlugin() {\n return plugin;\n }", "public Object GetPlugin()\r...
[ "0.7149333", "0.7000411", "0.6946824", "0.67838037", "0.67703414", "0.66723263", "0.6535742", "0.6497423", "0.6408905", "0.6338455", "0.63274485", "0.6232049", "0.6195875", "0.6180862", "0.6174408", "0.61686987", "0.61661357", "0.6147493", "0.6120529", "0.6110505", "0.6079052...
0.69319564
3
Get a namespaced key for this plugin with the given name.
public static NamespacedKey getKey(String name) { TeleportalsPlugin plugin = getInstance(); NamespacedKey key = plugin.namespacedKeys.get(name); if (key == null) { plugin.namespacedKeys.put(name, key = new NamespacedKey(plugin, name)); } return key; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "default String getKey() {\n return key(getClassName(), getName());\n }", "public Object getKey() { return name; }", "String getNameKeySpace();", "public Key getKey() {\n\t\treturn getKey(settings, url);\n\t}", "protected String getKey(String namespace, String key){\n \t\tif (namespace != null) {\...
[ "0.6344722", "0.61421824", "0.609118", "0.59650046", "0.5935731", "0.5876974", "0.58420175", "0.5839634", "0.58261997", "0.58261997", "0.58261997", "0.58261997", "0.58261997", "0.58261997", "0.58261997", "0.58261997", "0.58261997", "0.58261997", "0.58261997", "0.58261997", "0...
0.77091295
0
Reloads the plugin's configuration settings, schedules the metadata autosaver if enabled, and creates the gateway prism recipe.
public void refresh() { saveDefaultConfig(); reloadConfig(); getServer().getScheduler().cancelTasks(this); getServer().getScheduler().scheduleSyncRepeatingTask(this, this::trackEnderpearls, 0L, 1L); if (getConfig().getBoolean("metadata.autosave.enabled")) { int int...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void chargeConfiguration() {\n\t\tgetConfig().options().copyDefaults(true);\n\t\tFile config = new File(getDataFolder(), \"config.yml\");\n\t\tFile lang = new File(getDataFolder(), \"lang.properties\");\n\t\ttry {\n\t\t\tif (!config.exists()) {\n\t\t\t\tsaveDefaultConfig();\n\t\t\t}\n\t\t\tif (!lang.exists...
[ "0.5586906", "0.55466694", "0.54811835", "0.54184204", "0.54170847", "0.53583705", "0.5270021", "0.52465147", "0.52312016", "0.52192074", "0.51571286", "0.51466894", "0.5141802", "0.50851417", "0.5041011", "0.503833", "0.4976306", "0.4951657", "0.49340105", "0.49027354", "0.4...
0.6907377
0
Prevent a player from crafting the gateway prism if they lack permission.
@EventHandler(priority = EventPriority.NORMAL, ignoreCancelled = true) public void onPrepareCraftItem(@NotNull PrepareItemCraftEvent event) { if (event.getRecipe() instanceof ShapedRecipe) { if (((ShapedRecipe) event.getRecipe()).getKey().equals(TeleportalsPlugin.getKey("gateway_prism"))) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean CanArmor() {\n return false;\n }", "private boolean isBlocked(View v){\n\t\treturn !v.mayMove(facingDirection);\n\t}", "@SuppressWarnings(\"unused\")\n\tprivate synchronized void excludePlayer() throws RemoteException\n\t{\n\t\tPlayerInterface pi;\n\t\tData privateData;\...
[ "0.6291341", "0.61963624", "0.6181083", "0.61222285", "0.6033692", "0.60272133", "0.6015301", "0.600331", "0.60031974", "0.59547895", "0.59464866", "0.59258085", "0.5897984", "0.5882392", "0.58690846", "0.58690846", "0.5861835", "0.5860818", "0.58530295", "0.5806025", "0.5805...
0.0
-1
Handle the potential activation of a teleportal or linking of a gateway prism.
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true) public void onPlayerInteract(@NotNull PlayerInteractEvent event) { if (event.getAction().equals(Action.RIGHT_CLICK_BLOCK)) { Block block = event.getClickedBlock(); if (block != null && (block.getType() == Materi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void handleActivate() throws Exception;", "public abstract void activate();", "public abstract void activate();", "protected void doActivate() throws FndException\n {\n }", "private void doActivation() {\n OnFieldActivated activateEvent = new OnFieldActivated(this::finishReset...
[ "0.6115404", "0.5690435", "0.5690435", "0.5622289", "0.55303764", "0.54974335", "0.5482344", "0.5445378", "0.5434522", "0.54057467", "0.5337927", "0.53297985", "0.52373964", "0.51792437", "0.51771504", "0.5136876", "0.5121012", "0.5115133", "0.5109301", "0.50908583", "0.50859...
0.5222436
13
Handle the potential destruction of a teleportal.
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true) public void onBlockBreak(@NotNull BlockBreakEvent event) { Teleportal teleportal = Teleportal.getFromStruct(event.getBlock()); if (teleportal != null) { teleportal.deactivate(getConfig().getBoolean("gateway-prism.re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void deletePortal(Portal portal);", "public void destroy() {\n\t\texcludeItem = null;\r\n\t\tloginPage=null;\r\n\t\tloaginAction=null;\r\n\t\tauthority = null;\r\n\t}", "void unlock(Portal portal);", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tunregisterReceiver(mDetailRev);\n\t\t...
[ "0.62262625", "0.61680967", "0.60079956", "0.59058744", "0.58993965", "0.5882296", "0.5856256", "0.58460385", "0.5815252", "0.58148557", "0.58045286", "0.5804092", "0.5801102", "0.57870567", "0.57830685", "0.5773934", "0.5761956", "0.5748859", "0.5748859", "0.5746622", "0.574...
0.0
-1
Allow players to discover the gateway prism recipe by using an end gateway.
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true) public void onPlayerTeleport(PlayerTeleportEvent event) { if (event.getCause() == PlayerTeleportEvent.TeleportCause.END_GATEWAY) { event.getPlayer().discoverRecipe(TeleportalsPlugin.getKey("gateway_prism")); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void endNegotiation(String reason);", "void endNegotiation();", "public AGateway getGateway()\r\n/* 16: */ {\r\n/* 17:36 */ return this.gateway;\r\n/* 18: */ }", "@Override\r\n\tpublic ServerBean connect() throws RemoteException {\n\t\tSystem.out.println(\"coming from DealServerImp\");\r\n\t\tret...
[ "0.55890805", "0.54055023", "0.5279648", "0.5165096", "0.5152999", "0.51374996", "0.5100953", "0.48998424", "0.489101", "0.474907", "0.47344857", "0.47111014", "0.4705941", "0.47016448", "0.46976644", "0.46931958", "0.46738023", "0.46706575", "0.46388575", "0.46243382", "0.46...
0.5614454
0
Track ender pearls potentially entering a teleportal's end gateway.
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true) public void onProjectileLaunch(ProjectileLaunchEvent event) { if (!isEndGatewaySolid) { if (event.getEntity().getType() == EntityType.ENDER_PEARL) { EnderPearl pearl = (EnderPearl) event.getEntity(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void trackEnderpearls() {\n\n Set<EnderPearl> pearlsToTrack = new HashSet<>(launchedPearls);\n for (EnderPearl pearl : pearlsToTrack) {\n if (pearl.isValid()) {\n Block hitBlock;\n\n findCollision:\n {\n Vector start = ...
[ "0.59960747", "0.53195125", "0.523019", "0.5194469", "0.5116124", "0.5051407", "0.5015978", "0.5012158", "0.4997413", "0.49877292", "0.49717903", "0.49392748", "0.49311593", "0.490914", "0.48804522", "0.48758572", "0.48091924", "0.48055768", "0.4790284", "0.4784446", "0.47664...
0.0
-1
Handle a player potentially enderpearling into a teleportal.
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true) public void onProjectileHitEvent(@NotNull ProjectileHitEvent event) { if (event.getEntity() instanceof EnderPearl) { EnderPearl pearl = (EnderPearl) event.getEntity(); if (pearl.getShooter() instanceof Entity) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void landedOn(Player player) {}", "@EventHandler(ignoreCancelled = true)\n public void onEntityPortal(EntityPortalEvent event) {\n if (Util.isTrackable(event.getEntity())) {\n AbstractHorse abstractHorse = (AbstractHorse) event.getEntity();\n Entity passenger...
[ "0.64326334", "0.63094133", "0.61810654", "0.6152198", "0.60693514", "0.60590327", "0.59265924", "0.5924211", "0.5911857", "0.5907476", "0.58742666", "0.58740634", "0.5867576", "0.5865631", "0.5865551", "0.58409065", "0.5821042", "0.5807361", "0.57730407", "0.5768268", "0.574...
0.0
-1
Manually fire a projectile collision event when an ender pearl collides with a teleportal's end gateway
public void trackEnderpearls() { Set<EnderPearl> pearlsToTrack = new HashSet<>(launchedPearls); for (EnderPearl pearl : pearlsToTrack) { if (pearl.isValid()) { Block hitBlock; findCollision: { Vector start = pearl.getLocat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void checkCollision()\n {\n if (gameOverBool==false)\n { \n Actor a = getOneIntersectingObject(Wall.class);\n if (a != null||isAtEdge())\n {\n setImage(\"gone.png\");//laat de helicopter verdwijnen\n //greenfoot.GreenfootSoun...
[ "0.65294033", "0.65220433", "0.63706607", "0.63200104", "0.6293259", "0.62925756", "0.62905675", "0.6283998", "0.6268993", "0.62504226", "0.6244608", "0.62179285", "0.61972064", "0.6186529", "0.6161412", "0.614823", "0.6099355", "0.60934716", "0.60921144", "0.6082016", "0.606...
0.6547247
0
Reload any collected metadata from file.
public void reloadDataYaml() { if (!anyMetadataEnabled()) { metadataYaml = new YamlConfiguration(); return; } if (!metadataFile.exists()) { try { Files.createFile(metadataFile.toPath()); } catch (IOException ex) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void reload() {\n\t\tif (file.lastModified() <= fileModified)\n\t\t\treturn;\n\t\n\t\treadFile();\n\t}", "public void refreshData(File file) throws IOException{\n\t\tmodel = new FileDataModel(file);\n\t}", "public void refresh() {\n try (InputStream stream = new FileInputStream(file)) {\n ...
[ "0.73378056", "0.7151642", "0.71310836", "0.7112027", "0.67262685", "0.6641528", "0.66227543", "0.64536065", "0.636718", "0.6329681", "0.6228095", "0.61794823", "0.61198056", "0.6115975", "0.610986", "0.6067368", "0.60270894", "0.60226804", "0.60197604", "0.5996147", "0.59568...
0.70936346
4
Save metadata to file if any was collected, else remove the file if it exists.
public void saveDataYaml() { if (anyMetadataEnabled()) { try { metadataYaml.save(metadataFile); } catch (IOException ex) { getLogger().severe("Unable to save to the metadata.yml file: " + ex.getMessage()); } } else ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void clearFile() {\n if (data.delete())\n data = new File(\"statistics.data\");\n }", "private void save() {\n File personFile = mainApp.getFilmFilePath();\n if (personFile != null) {\n mainApp.saveFilmDataToFile(personFile);\n } else {\n ...
[ "0.6217058", "0.6047955", "0.59741867", "0.5838746", "0.57014465", "0.5645954", "0.5598376", "0.5592139", "0.5590871", "0.55617756", "0.5556398", "0.551862", "0.55181277", "0.5474815", "0.5443469", "0.5442883", "0.53823924", "0.53766674", "0.5373382", "0.53672725", "0.5358196...
0.68852675
0
Test if any metadata options are enabled in the config.
public boolean anyMetadataEnabled() { boolean result = false; ConfigurationSection ymlMetadata = getConfig().getConfigurationSection("metadata"); if (ymlMetadata != null) { for (String key : ymlMetadata.getKeys(false)) { if (ymlMetadata.isBoolean(key) && ymlMetadata....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasConfiguration();", "boolean hasDatastoreOptions();", "boolean hasOptions();", "boolean hasOptions();", "boolean hasOptions();", "boolean hasOptions();", "boolean hasOptions();", "boolean hasOptions();", "boolean hasMetadata();", "boolean hasMetadata();", "boolean hasMetadata();", "...
[ "0.6956006", "0.69540226", "0.6888368", "0.6888368", "0.6888368", "0.6888368", "0.6888368", "0.6888368", "0.6844943", "0.6844943", "0.6844943", "0.6844943", "0.6844943", "0.6844943", "0.6844943", "0.6844943", "0.6844943", "0.6844943", "0.6844943", "0.6844943", "0.6844943", ...
0.7875183
0
Get the plugin's chat tag.
public @NotNull String getTag() { String tag = getConfig().getString("messages.tag"); return (tag == null) ? "" : Utils.format(tag); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object getWindowTag() {\n if (null != mChatMap) {\n Object tag = mChatMap.getTag();\n return tag;\n } else {\n Logger.w(TAG, \"getWindowTag() mChatMap is null\");\n return null;\n }\n }", "public String get...
[ "0.6734674", "0.64632046", "0.6327771", "0.63127285", "0.6161907", "0.6157087", "0.6147396", "0.6147396", "0.61434466", "0.61434466", "0.61339366", "0.61335343", "0.61010367", "0.60919636", "0.60919636", "0.6089655", "0.6065501", "0.6037215", "0.6032199", "0.60174537", "0.599...
0.72340053
0
Get the player's active teleportal limit if they have one, else null. If trackactiveportalcounts is not enabled in the config, this returns null.
public Integer getMaxActivePortalLimit(Player player) { if (!getConfig().getBoolean("metadata.track-active-portal-counts")) { return null; } ConfigurationSection ymlGroups = getConfig().getConfigurationSection("groups"); if (ymlGroups != null) { Set<String> grou...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getMaximumPlayerSessionCount() {\n return this.MaximumPlayerSessionCount;\n }", "public int getMaxActive();", "public int getMaximumPlayers() {\n return maximumPlayers;\n }", "public int getMaximumPlayers() {\n return getOption(ArenaOption.MAXIMUM_PLAYERS);\n }", "public...
[ "0.55894035", "0.5588643", "0.55256706", "0.5509475", "0.5471063", "0.5437858", "0.53014576", "0.5300193", "0.5260181", "0.51858956", "0.5159751", "0.51551694", "0.513671", "0.51242745", "0.5106291", "0.5106291", "0.5106291", "0.5105458", "0.5105344", "0.5090703", "0.5090703"...
0.7091114
0
Get the player with the given UUID's active teleportal count. If trackactiveportalcounts is not enabled in the config, this returns 0.
public int getActivePortalCount(UUID uuid) { if (!getConfig().getBoolean("metadata.track-active-portal-counts")) { return 0; } ConfigurationSection ymlPlayerActivePortalCounts = metadataYaml.getConfigurationSection("player-active-portal-counts"); if (ymlPlay...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getActivePlayer() {\n return activePlayer;\n }", "public int activePlayer() {\n return this.activePlayer;\n }", "private int getTotalPlayerCount() {\n String baseUrl = \"https://www.runescape.com/player_count.js?varname=iPlayerCount\";\n String url = baseUrl + \"&ca...
[ "0.57576996", "0.56573886", "0.5651165", "0.56244266", "0.5623382", "0.5623087", "0.5544953", "0.5531629", "0.54934335", "0.5455819", "0.53877115", "0.5301054", "0.527444", "0.52378345", "0.5236273", "0.52038056", "0.51990926", "0.5183415", "0.5149406", "0.5147835", "0.514180...
0.7280109
0
Augment the player's active teleportal count by the specified amount. If trackactiveportalcounts is not enabled in the config, this does nothing.
public void augActivePortalCount(UUID uuid, int amount) { if (!getConfig().getBoolean("metadata.track-active-portal-counts")) { return; } ConfigurationSection ymlPlayerActivePortalCounts = metadataYaml.getConfigurationSection("player-active-portal-counts"); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setActiveUserCount(int value) {\n this.activeUserCount = value;\n }", "@Override\n\tpublic int numberOfAccounts() {\n\t\treturn counter;\n\t}", "public int getActivePortalCount(UUID uuid) {\n\n if (!getConfig().getBoolean(\"metadata.track-active-portal-counts\")) {\n ret...
[ "0.52080935", "0.5208006", "0.5130785", "0.49546194", "0.49416307", "0.48847863", "0.48214066", "0.4797722", "0.47838852", "0.47589037", "0.47512773", "0.4747442", "0.4732427", "0.47250378", "0.46798378", "0.4668191", "0.4667892", "0.46507066", "0.46332842", "0.46231446", "0....
0.73633605
0
Test if players are allowed to link teleportals across different worlds.
public boolean isCrossWorldActivationAllowed() { return getConfig().getBoolean("teleportal.cross-world", true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isWorldOkayForPortalActivation(Player player, World world) {\n ConfigurationSection ymlGroups = getConfig().getConfigurationSection(\"groups\");\n if (ymlGroups != null) {\n\n Set<String> groups = ymlGroups.getKeys(false);\n for (String group : groups) {\n\n ...
[ "0.71334654", "0.7056022", "0.6705143", "0.65038455", "0.64790183", "0.6275005", "0.6038226", "0.6000556", "0.5887048", "0.5836334", "0.57711846", "0.5747498", "0.5672481", "0.5658462", "0.5640664", "0.5637728", "0.56367713", "0.5634583", "0.5621922", "0.5614587", "0.5588897"...
0.5663242
13
Test if the player can activate a teleportal in the given world.
public boolean isWorldOkayForPortalActivation(Player player, World world) { ConfigurationSection ymlGroups = getConfig().getConfigurationSection("groups"); if (ymlGroups != null) { Set<String> groups = ymlGroups.getKeys(false); for (String group : groups) { if (...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean checkWorldAccess(String player, String world) {\n \n Set<String> worldsTMP = bannedWorlds.get(player);\n \n if (worldsTMP == null) {\n return true; //that means, that the player is not banned from any world\n }\n \n if (worldsTMP.contains(w...
[ "0.6178807", "0.6174121", "0.60711503", "0.5969042", "0.5914083", "0.5797099", "0.5759016", "0.5659427", "0.5524963", "0.53892493", "0.5375937", "0.53177005", "0.52963144", "0.5255814", "0.5248049", "0.5230535", "0.51804876", "0.51752454", "0.51606965", "0.5159981", "0.515060...
0.71025544
0
Send a message from the plugin using the given key and formatter objects. If the key does not exist, it will be used as a message template itself.
public void sendMsg(CommandSender sender, @NotNull String key, @Nullable Object... objs) { String template = getConfig().getString("messages." + key); sender.sendMessage(getTag() + Utils.format((template == null) ? key : template, objs)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static private String applyPattern(String key, Object[] messageArguments) {\n String message = getString(key);\n MessageFormat formatter = new MessageFormat(message);\n String output = formatter.format(message, messageArguments);\n return output;\n }", "void sendExample(String key,...
[ "0.5724721", "0.53283733", "0.51433885", "0.4983049", "0.4925052", "0.49050662", "0.4900001", "0.4886352", "0.48502988", "0.4845717", "0.47662216", "0.4693795", "0.46916208", "0.46720392", "0.4669578", "0.4658519", "0.46356714", "0.46253386", "0.4602959", "0.46013102", "0.457...
0.5935906
0
Send plugin info to the given sender.
public void sendInfo(@NotNull CommandSender sender) { PluginDescriptionFile info = getDescription(); sendMsg(sender, "plugin-info", info.getName(), info.getVersion(), String.join(", ", info.getAuthors()), info.getDescription(), ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sendPluginMessage ( Plugin source , String channel , byte[] message ) {\n\t\texecute ( handle -> handle.sendPluginMessage ( source , channel , message ) );\n\t}", "public void sendCommFromPlugin(String command){\n\n sendCommand(command, true);\n this.fromPlugin = true;\n }", "public void...
[ "0.62463564", "0.623566", "0.6039982", "0.6002368", "0.59828013", "0.5925755", "0.58877736", "0.58199775", "0.57730854", "0.5761541", "0.57286745", "0.5683174", "0.5664858", "0.56615293", "0.56312984", "0.55344063", "0.55263245", "0.5520743", "0.54804343", "0.54591006", "0.54...
0.7478119
0
Create a new gateway prism item stack.
public @NotNull ItemStack makeGatewayPrism(int amount) { String matName = getConfig().getString("gateway-prism.material"); Material mat; try { mat = Material.valueOf(matName); } catch (IllegalArgumentException ex) { getLogger().warning(String.format("[Con...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SubL(source = \"cycl/stacks.lisp\", position = 1818) \n public static final SubLObject create_stack() {\n return clear_stack(make_stack(UNPROVIDED));\n }", "ShipmentItem createShipmentItem();", "protected ItemStack createStackedBlock(int par1) {\n\t\treturn new ItemStack(this.blockID, 1, par1);\n\t}", ...
[ "0.6020837", "0.5932263", "0.5916086", "0.57826537", "0.57229537", "0.56925607", "0.56446254", "0.5590839", "0.5425536", "0.5294003", "0.5275591", "0.52181965", "0.51978", "0.518879", "0.5183507", "0.51368994", "0.5129273", "0.51027155", "0.509781", "0.50963855", "0.506342", ...
0.5701104
5
draw four different size and color rectangles.
public static void mainDraw(Graphics graphics){ int centerX = WIDTH / 3 ; int centerY = HEIGHT / 3; int rectA2 = 20 / 2; graphics.setColor(Color.GREEN); graphics.drawRect(centerX - rectA2, centerY - rectA2, rectA2 * 2, rectA2 * 2); centerX = WIDTH /5 ; centerY ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void drawRect(int x, int y, int width, int height, int color);", "void buildRectangles(){\n background(255);\n for(int i=0;i<arr.length;i++){\n noStroke();\n Rect r=new Rect(40+i*80,400,75,-arr[i]*20,color1);\n createRectangle(r,color1);\n }\n }", ...
[ "0.71417314", "0.7079996", "0.703935", "0.7028447", "0.6750812", "0.6743772", "0.67416084", "0.672104", "0.6705614", "0.66530573", "0.6639759", "0.6637966", "0.6596696", "0.6509362", "0.6481525", "0.6421083", "0.6412642", "0.64079493", "0.6345002", "0.6343609", "0.6331475", ...
0.6863154
4
your code goes here
public static void main (String[] args) throws java.lang.Exception { int n,temp=0,k=0,count=0; Scanner sc=new Scanner(System.in); n=sc.nextInt(); int a[]=new int[n]; int b[]=new int[n]; for(int i=0;i<n;i++){ a[i]=sc.nextInt(); } for(int i=0;i<n;i++){ if(a[i]==i){ b[k]=i; k++; count...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void crawl_data() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void runn() {\n\t\t\r\n\t}", "public void themesa()\n {\n \n \n \n \n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "@Overr...
[ "0.57286084", "0.5721873", "0.5685595", "0.5611692", "0.5611692", "0.5596448", "0.5573983", "0.555654", "0.55509007", "0.5543824", "0.551758", "0.55170584", "0.54959154", "0.5489394", "0.54819673", "0.54768246", "0.5474171", "0.5460018", "0.5460018", "0.5429363", "0.5428646",...
0.0
-1
constructor that is called when a new client object is initalized.
private PalindromeCheckerClient(int port, String address) { try { //starts the client socket with the IP address and port number given by //initalization clientSocket = new Socket(address, port); System.out.println("**CONNECTED**"); //opens a new ou...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Client() {\n }", "public Client() {\r\n\t// TODO Auto-generated constructor stub\r\n\t \r\n }", "public Client() {\n\t\t// TODO Auto-generated constructor stub\n\t}", "public Client() {}", "private ClientLoader() {\r\n }", "private CorrelationClient() { }", "public ServiceClient() {\n\t...
[ "0.7834613", "0.7825166", "0.7789375", "0.77672595", "0.76443124", "0.7624142", "0.75531787", "0.75504255", "0.7527346", "0.74518865", "0.74286866", "0.7355669", "0.7250877", "0.7246599", "0.72325486", "0.7207818", "0.7206786", "0.71976984", "0.7192712", "0.71847653", "0.7171...
0.0
-1
Creates an instance of the switch.
public SurveySwitch() { if (modelPackage == null) { modelPackage = SurveyPackage.eINSTANCE; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Structure createNew() {\n\t\treturn new FloorSwitch();\n\t}", "Instance createInstance();", "public Command createInstance() {\n\t\t\n\t\tif(name == \"Direction\")\n\t\t\treturn new Direction();\n\t\t\n\t\tif(name == \"Gear\")\n\t\t\treturn new Gear();\n\t\t\n\t\tif(name == \"Pause\")\n\t\t...
[ "0.6411882", "0.6246885", "0.6101279", "0.6056805", "0.58982885", "0.58335745", "0.58183885", "0.5779628", "0.5765373", "0.567933", "0.5670524", "0.5655171", "0.56360334", "0.56218755", "0.5599665", "0.5561759", "0.5553123", "0.5523057", "0.5465328", "0.5459082", "0.5438984",...
0.0
-1
Checks whether this is a switch for the given package.
@Override protected boolean isSwitchFor(EPackage ePackage) { return ePackage == modelPackage; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isSystemPackage(String packageName);", "@Override\n\tprotected boolean isSwitchFor(EPackage ePackage)\n\t{\n\t\treturn ePackage == modelPackage;\n\t}", "@Override\r\n\tprotected boolean isSwitchFor(EPackage ePackage) {\r\n\t\treturn ePackage == modelPackage;\r\n\t}", "@Override\r\n\tprotected boolean...
[ "0.6314985", "0.62542677", "0.6252982", "0.6252982", "0.6252982", "0.6252982", "0.6105223", "0.60961777", "0.60961777", "0.60961777", "0.60961777", "0.60961777", "0.60961777", "0.6023195", "0.60106975", "0.60082674", "0.60082674", "0.5821838", "0.57280475", "0.5681909", "0.56...
0.6341777
12
Calls caseXXX for each class of the model until one returns a non null result; it yields that result.
@Override protected T doSwitch(int classifierID, EObject theEObject) { switch (classifierID) { case SurveyPackage.META: { Meta meta = (Meta)theEObject; T result = caseMeta(meta); if (result == null) result = defaultCase(theEObject); return result; } case SurveyPackage.SURVEY: { Survey su...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected T doSwitch(int classifierID, EObject theEObject)\n {\n switch (classifierID)\n {\n case CustomPrologPackage.MODEL:\n {\n Model model = (Model)theEObject;\n T result = caseModel(model);\n if (result == null) result = defaultCase(theEObject);\n retu...
[ "0.5828964", "0.57069564", "0.5674031", "0.5652837", "0.5652837", "0.5652837", "0.56512076", "0.5567718", "0.55394286", "0.5510889", "0.55015016", "0.547088", "0.5457357", "0.54126364", "0.5411066", "0.5394785", "0.5393836", "0.53903294", "0.5376253", "0.5372766", "0.5366037"...
0.57539386
1
Returns the result of interpreting the object as an instance of 'Meta'. This implementation returns null; returning a nonnull result will terminate the switch.
public T caseMeta(Meta object) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object getMeta() {\n return meta;\n }", "public org.thdl.lex.component.Meta getMeta();", "public Object caseMetaModel(MetaModel object) {\n\t\treturn null;\n\t}", "public edu.ustb.sei.mde.morel.resource.morel.IMorelMetaInformation getMetaInformation();", "com.appscode.api.kubernetes.v1beta2.Meta...
[ "0.6547358", "0.63062775", "0.6161932", "0.60231006", "0.5995794", "0.59770334", "0.59205085", "0.5840372", "0.5838357", "0.57877046", "0.5781833", "0.57249135", "0.57238626", "0.5625603", "0.5557921", "0.5495767", "0.549038", "0.5465585", "0.54536384", "0.5409963", "0.535766...
0.7387215
1
Returns the result of interpreting the object as an instance of 'Survey'. This implementation returns null; returning a nonnull result will terminate the switch.
public T caseSurvey(Survey object) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public T caseQuestion(Question object) {\n\t\treturn null;\n\t}", "public Survey getSurvey() {\n return this.survey;\n }", "public T caseAnswer(Answer object) {\n\t\treturn null;\n\t}", "public final EObject ruleSurvey() throws RecognitionException {\n EObject current = null;\n\n Toke...
[ "0.6487483", "0.6271831", "0.6039166", "0.57654935", "0.57346755", "0.5608319", "0.5596799", "0.5541156", "0.54583097", "0.54187536", "0.54083073", "0.5407629", "0.5300957", "0.5289522", "0.52845705", "0.52783954", "0.5275371", "0.5236321", "0.52165574", "0.5211904", "0.51802...
0.7476562
0
Returns the result of interpreting the object as an instance of 'Group'. This implementation returns null; returning a nonnull result will terminate the switch.
public T caseGroup(Group object) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public T caseGroupOpt(GroupOpt object)\n\t{\n\t\treturn null;\n\t}", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "pub...
[ "0.67283446", "0.6683439", "0.6683439", "0.6683439", "0.6683439", "0.6683439", "0.6683439", "0.6683439", "0.6683439", "0.6683439", "0.6683439", "0.6683439", "0.6683439", "0.6683439", "0.6683439", "0.6683439", "0.6683439", "0.6683439", "0.6683439", "0.6683439", "0.6683439", ...
0.7553741
0
Returns the result of interpreting the object as an instance of 'Question'. This implementation returns null; returning a nonnull result will terminate the switch.
public T caseQuestion(Question object) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Question getQuestion();", "public T caseAnswer(Answer object) {\n\t\treturn null;\n\t}", "public T caseTableQuestion(TableQuestion object) {\n\t\treturn null;\n\t}", "public final Question question() throws RecognitionException {\r\n Question result = null;\r\n\r\n int question_StartIndex = inp...
[ "0.6616432", "0.64774114", "0.6214871", "0.61883795", "0.5948084", "0.5931489", "0.5906419", "0.5884711", "0.5879547", "0.587173", "0.58071303", "0.5796089", "0.578509", "0.5681829", "0.56765544", "0.5574736", "0.55294853", "0.5457072", "0.54430926", "0.54383785", "0.5423725"...
0.74419105
0
Returns the result of interpreting the object as an instance of 'Item'. This implementation returns null; returning a nonnull result will terminate the switch.
public T caseItem(Item object) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public T getItem() {\n return item;\n }", "@Override\n\tpublic AbstractItem getObject() {\n\t\tif(item == null) {\n\t\t\titem = new HiTechItem();\n\t\t}\n\t\treturn item;\n\t}", "public T getItem() {\n\t\treturn item;\n\t}", "public T getItem() {\n\t\treturn item;\n\t}", "public T getItem() {\r\n ...
[ "0.6338828", "0.6312793", "0.62858593", "0.62858593", "0.6279554", "0.6085819", "0.6085178", "0.607777", "0.6056472", "0.60321337", "0.59936595", "0.5943348", "0.590603", "0.58962643", "0.5893184", "0.58633333", "0.58620465", "0.58615357", "0.5850368", "0.5836359", "0.5814777...
0.7551853
0
Returns the result of interpreting the object as an instance of 'Single'. This implementation returns null; returning a nonnull result will terminate the switch.
public T caseSingle(Single object) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic boolean isSingle() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean getSingle() {\n\t\treturn force_single;\n\t}", "@Override\r\n\tpublic int single() {\n\t\treturn 0;\r\n\t}", "Optional<ValueType> getSingle(KeyType key);", "public Jode single() {\n return single(false);\n ...
[ "0.65282553", "0.6344023", "0.5988197", "0.58456105", "0.5826556", "0.5791211", "0.57567084", "0.574237", "0.57362235", "0.57089174", "0.5683243", "0.5641212", "0.56308854", "0.56240577", "0.561899", "0.56076926", "0.5596012", "0.55376464", "0.5471952", "0.54713583", "0.54631...
0.7933662
0
Returns the result of interpreting the object as an instance of 'Multiple'. This implementation returns null; returning a nonnull result will terminate the switch.
public T caseMultiple(Multiple object) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Double getMultipleOf() {\n\t\treturn multipleOf;\n\t}", "public T caseMulti(Multi object)\n {\n return null;\n }", "public T caseMultiplyExpression(MultiplyExpression object)\n {\n return null;\n }", "public T caseNumber(org.uis.lenguajegrafico.lenguajegrafico.Number object)\n {\n return...
[ "0.5755498", "0.56844884", "0.55851746", "0.53160006", "0.517529", "0.5165099", "0.5063063", "0.5061288", "0.5023556", "0.49802646", "0.49542555", "0.4874946", "0.4823893", "0.48113203", "0.47978517", "0.47975823", "0.47551945", "0.47540098", "0.47537845", "0.47527584", "0.47...
0.6802188
0
Returns the result of interpreting the object as an instance of 'Text'. This implementation returns null; returning a nonnull result will terminate the switch.
public T caseText(Text object) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public T caseText(Text object)\n {\n return null;\n }", "@Override\n public abstract String asText();", "protected Text getText()\r\n\t{\r\n\t\treturn text;\r\n\t}", "@Override\n\tpublic Object visit(ASTText node, Object data) {\n\t\tSystem.out.print(\"text()\");\n\t\treturn null;\n\t}", "public St...
[ "0.7840668", "0.6817138", "0.6489894", "0.64886785", "0.6474448", "0.6460456", "0.6442733", "0.6422297", "0.6415738", "0.64016855", "0.63883317", "0.6385729", "0.6372821", "0.6372821", "0.6372821", "0.6372821", "0.6372821", "0.6372821", "0.6372821", "0.6372821", "0.6371442", ...
0.7667636
1