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
get some shared attributes
@Override protected DataCiteJson transformElement(final Element entry) throws TransformerException { final String version = HtmlUtils.getAttribute(entry, EnaConstants.VERSION); final String accession = HtmlUtils.getAttribute(entry, EnaConstants.ACCESSION); final String sequenceLength = HtmlUtils.getAttribute(entry, EnaConstants.SEQUENCE_LENGTH); final DataCiteJson document = new DataCiteJson(accession); document.setVersion(version); document.setPublisher(EnaConstants.PUBLISHER); document.addFormats(EnaConstants.FORMATS); document.setResourceType(EnaConstants.RESOURCE_TYPE); document.addResearchDisciplines(EnaConstants.DISCIPLINES); document.setPublicationYear(getPublicationYear(entry)); document.addSizes(getSizes(sequenceLength)); document.addTitles(getTitles(accession, version)); document.addResearchData(getResearchData(accession)); document.addDates(getDates(entry)); document.addDates(HtmlUtils.getObjects(entry, EnaConstants.SUBMISSION_REF_SELECTION, this::parseSubmissionRef)); document.addWebLinks(getWebLinks(accession, sequenceLength)); document.addWebLinks(HtmlUtils.getObjects(entry, EnaConstants.TAXON, this::parseTaxonLink)); document.addDescriptions(HtmlUtils.getObjects(entry, EnaConstants.DESCRIPTION, this::parseDescription)); document.addDescriptions(HtmlUtils.getObjects(entry, EnaConstants.ENTRY_COMMENT, this::parseComment)); document.addSubjects(HtmlUtils.getObjects(entry, EnaConstants.KEYWORD, this::parseKeyword)); document.addSubjects(HtmlUtils.getObjects(entry, EnaConstants.TAXON, this::parseCommonTaxonName)); document.addSubjects(HtmlUtils.getObjects(entry, EnaConstants.TAXON, this::parseScientificTaxonName)); document.addSubjects(getSubjects(entry)); document.addRelatedIdentifiers(HtmlUtils.getObjects(entry, EnaConstants.PUBMED_REF_SELECTION, this::parseMedPubRef)); document.addRelatedIdentifiers(HtmlUtils.getObjects(entry, EnaConstants.DOI_REF_SELECTION, this::parseDoiRef)); return document; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Attributes getAttributes();", "public abstract Map<String, Object> getAttributes();", "Object getOtherprops();", "IAttributes getAttributes();", "Map<String, Object> getAttributes();", "Map<String, Object> getAttributes();", "Map<String, Object> getAttributes();", "public abstract Map getAttributes()...
[ "0.70506805", "0.6822372", "0.67808807", "0.6756007", "0.67548287", "0.67548287", "0.67548287", "0.67288786", "0.66289926", "0.6583385", "0.65682566", "0.6556866", "0.6485282", "0.6485282", "0.6446952", "0.6397093", "0.63766336", "0.636842", "0.6278497", "0.618044", "0.616884...
0.0
-1
nothing to clean up
@Override public void clear() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void cleanup() {\n \n }", "@Override\n public void cleanup() {\n \n }", "@Override\r\n\tpublic void cleanup() {\n\t\t\r\n\t}", "@Override\n\tpublic void cleanup() {\n\n\t}", "@Override\n\tpublic void cleanup() {\n\n\t}", "@Override\n\tp...
[ "0.6907687", "0.6907687", "0.6731", "0.6600421", "0.6600421", "0.6583125", "0.6583125", "0.6583125", "0.64783514", "0.6470691", "0.63815796", "0.6360249", "0.631007", "0.61476547", "0.6107948", "0.60504454", "0.60240424", "0.6016464", "0.6016464", "0.6016464", "0.59979814", ...
0.0
-1
If network was down, any attempt to login to the account would have failed. Login now
@Override public void doWhenNetworkCame() { doLogin(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void attemptLogin() {\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n final String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toStrin...
[ "0.69880193", "0.6769294", "0.67235327", "0.6708522", "0.66957307", "0.6516211", "0.650638", "0.6473718", "0.6467117", "0.6453548", "0.6445658", "0.6443276", "0.64309037", "0.6414879", "0.6409433", "0.6395344", "0.63916063", "0.63895565", "0.6378597", "0.6374936", "0.6369996"...
0.7269568
0
time C(9, k) = 9 8 ... (9 k + 1), we try 9 i + 1 numbers in its ith step
public List<List<Integer>> combinationSum3(int k, int n) { List<List<Integer>> res = new ArrayList<>(); int min = 0, max = 0; for (int i = 1; i <= k; i++) { min += i; max += (10 - i); } if (n > max || n < min) return res; List<Integer> list = new ArrayList<>(); dfs(k, n, res, list, 1); return res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int generate(int k) {\n int result = 0;\n\n for (int i = 0; i < k; i++) {\n result = 2 * result + step();\n }\n return result;\n }", "public int kth1(int k) {\n\t int[] dp = new int[k];\n\t int indexTwo = 0;\n\t int indexThree = 0; \n\t int numberOfTwo...
[ "0.6283193", "0.61063886", "0.6087257", "0.6010985", "0.5980449", "0.5972401", "0.59240735", "0.5876777", "0.58709556", "0.58225185", "0.57872236", "0.5691365", "0.5672282", "0.56560755", "0.5644717", "0.5632358", "0.5629848", "0.5621255", "0.5616441", "0.55683774", "0.553764...
0.53552866
34
Constructor for PauseGameScreen screen
public PauseGameScreen(RoboRally game, StretchViewport viewport, Stage stage) { this.game = game; this.viewport = viewport; this.stage = stage; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public PauseScreen() {\n this.stop = false;\n }", "public void createPauseScreen(){\n\t\tTexture pauseBackTex = Assets.manager.get(AssetLord.pause_back_tex, Texture.class);\n\t\tpauseBackTex.setFilter(TextureFilter.Linear, TextureFilter.Linear);\n\t\t\n\t\tpauseBack = new Image(pauseBackTex);\n\t\tpaus...
[ "0.81032646", "0.73239195", "0.6914085", "0.69130224", "0.68311596", "0.6756347", "0.67129827", "0.6657911", "0.6484059", "0.6413463", "0.6413114", "0.6406379", "0.63511765", "0.63511765", "0.63096005", "0.62612313", "0.62450665", "0.61970836", "0.61916196", "0.6169895", "0.6...
0.70182353
2
Called when the screen should render itself.
@Override public void render(float v) { game.batch.begin(); game.batch.draw(game.backgroundImg,0,0,viewport.getWorldWidth(), viewport.getWorldHeight()); game.batch.end(); stage.act(); stage.draw(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void render() {\n\t\tScreen.render();\n\t}", "public void render() {\n\t\tscreen.background(255);\n\t\thandler.render();\n\t}", "@Override\n public void render() {\n super.render();\n }", "@Override\n public void render() {\n super.render();\n }", "private void...
[ "0.7937028", "0.7697811", "0.75977206", "0.75977206", "0.7419844", "0.73908573", "0.73840714", "0.73606354", "0.7348719", "0.73417336", "0.73188615", "0.7299854", "0.7279576", "0.7199438", "0.7187192", "0.7167315", "0.7149148", "0.711625", "0.7088428", "0.7079332", "0.7049889...
0.0
-1
Called when the Application is resized. This can happen at any point during a nonpaused state but will never happen before a call to create().
@Override public void resize(int x, int y) { viewport.update(x, y, true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void windowResized();", "protected abstract void onResize(int width, int height);", "@Override\n\tpublic void appSizeChanged(int appWidth, int appHeight) {\n\t\tP.out(\"New app size!\", \"[appSizeWatcher]\", appWidth + \", \" + appHeight);\n\t\tif(p.width != 800 || p.height != 600) {\n\t\t\tcha...
[ "0.7666447", "0.7332794", "0.72859085", "0.7170477", "0.71317863", "0.7092095", "0.7084051", "0.7049087", "0.7013689", "0.6940119", "0.6909938", "0.6876224", "0.68248016", "0.68225324", "0.6813543", "0.6786874", "0.66722196", "0.6626832", "0.66006815", "0.6574601", "0.6573323...
0.0
-1
Pauses the game. This is currently handled by an window listener instead of this function
@Override public void pause() { // Not used }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void pauseGame() {\n\t\ttimer.cancel();\n\t}", "public void pauseGame() {\n paused = true;\r\n cam.zoom = worldWidth/screenWidth;\r\n boundCamera();\r\n topHud.setPauseButtonCanDraw(false);\r\n gameHud.setCanPress(false);\r\n\r\n playButton.setDrawable(!(win || l...
[ "0.77325594", "0.76664174", "0.7618327", "0.7582882", "0.75390494", "0.75353986", "0.74838454", "0.7475882", "0.74440455", "0.74412936", "0.74382955", "0.74382955", "0.7416673", "0.741369", "0.73892194", "0.73706913", "0.73626864", "0.7344543", "0.73315924", "0.7296686", "0.7...
0.7054116
97
Resumes the game. This is currently handled by an window listener instead of this function
@Override public void resume() { // Not used }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void resume() {\r\n\t\tSystem.out.println(\"Resumed Game\");\r\n\t\tthis.timeline.play();\r\n\t\tisPaused = false;\r\n\t\tpauseMenu.setVisible(false);\r\n\t}", "public void resumeGame() {\n\t\t\tif (extended)\n\t\t\t\textendTimer.start();//restart timer if thats relevant\n\t\t\tpause=false;//turn off all ...
[ "0.83527344", "0.81979156", "0.7891683", "0.7879356", "0.7874846", "0.7760298", "0.77381253", "0.77381253", "0.77063423", "0.7702958", "0.77002627", "0.7698883", "0.7650564", "0.75730884", "0.75587296", "0.7506881", "0.7500186", "0.74674463", "0.74613816", "0.74613816", "0.74...
0.6590607
84
/ renamed from: a
public final C0288ae mo3767a(ViewGroup viewGroup) { C0288ae aeVar = this.f1158f; C0288ae a = super.mo3767a(viewGroup); if (aeVar != a) { ((ActionMenuView) a).mo3968a(this); } return a; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: a
public final View mo3768a(MenuItemImpl menuItemImpl, View view, ViewGroup viewGroup) { View actionView = menuItemImpl.getActionView(); if (actionView == null || menuItemImpl.mo3665j()) { actionView = super.mo3768a(menuItemImpl, view, viewGroup); } actionView.setVisibility(menuItemImpl.isActionViewExpanded() ? 8 : 0); ViewGroup.LayoutParams layoutParams = actionView.getLayoutParams(); if (!((ActionMenuView) viewGroup).checkLayoutParams(layoutParams)) { actionView.setLayoutParams(ActionMenuView.m878a(layoutParams)); } return actionView; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: a
public final void mo3707a(Context context, MenuBuilder menuBuilder) { super.mo3707a(context, menuBuilder); Resources resources = context.getResources(); C0270a a = C0270a.m488a(context); if (!this.f1306p) { this.f1305o = a.mo3459b(); } if (!this.f1312v) { this.f1307q = a.mo3460c(); } if (!this.f1310t) { this.f1309s = a.mo3458a(); } int i = this.f1307q; if (this.f1305o) { if (this.f1297g == null) { this.f1297g = new C0430j(this, this.f1153a); if (this.f1304n) { this.f1297g.setImageDrawable(this.f1303m); this.f1303m = null; this.f1304n = false; } int makeMeasureSpec = View.MeasureSpec.makeMeasureSpec(0, 0); this.f1297g.measure(makeMeasureSpec, makeMeasureSpec); } i -= this.f1297g.getMeasuredWidth(); } else { this.f1297g = null; } this.f1308r = i; this.f1314x = (int) (resources.getDisplayMetrics().density * 56.0f); this.f1316z = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: a
public final void mo3708a(MenuBuilder menuBuilder, boolean z) { mo3960h(); super.mo3708a(menuBuilder, z); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: a
public final void mo3770a(MenuItemImpl menuItemImpl, C0289af afVar) { afVar.mo3546a(menuItemImpl); ActionMenuItemView actionMenuItemView = (ActionMenuItemView) afVar; actionMenuItemView.mo3548a((C0311p) (ActionMenuView) this.f1158f); if (this.f1296A == null) { this.f1296A = new C0428h(this); } actionMenuItemView.mo3547a((C0297b) this.f1296A); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: a
public final void mo3954a(ActionMenuView actionMenuView) { this.f1158f = actionMenuView; actionMenuView.mo3559a(this.f1155c); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: a
public final void mo3710a(boolean z) { super.mo3710a(z); ((View) this.f1158f).requestLayout(); boolean z2 = false; if (this.f1155c != null) { ArrayList<MenuItemImpl> n = this.f1155c.mo3617n(); int size = n.size(); for (int i = 0; i < size; i++) { ActionProvider supportActionProvider = n.get(i).getSupportActionProvider(); if (supportActionProvider != null) { supportActionProvider.setSubUiVisibilityListener(this); } } } ArrayList<MenuItemImpl> o = this.f1155c != null ? this.f1155c.mo3618o() : null; if (this.f1305o && o != null) { int size2 = o.size(); if (size2 == 1) { z2 = !o.get(0).isActionViewExpanded(); } else if (size2 > 0) { z2 = true; } } if (z2) { if (this.f1297g == null) { this.f1297g = new C0430j(this, this.f1153a); } ViewGroup viewGroup = (ViewGroup) this.f1297g.getParent(); if (viewGroup != this.f1158f) { if (viewGroup != null) { viewGroup.removeView(this.f1297g); } ((ActionMenuView) this.f1158f).addView(this.f1297g, ActionMenuView.m879b()); } } else if (this.f1297g != null && this.f1297g.getParent() == this.f1158f) { ((ViewGroup) this.f1158f).removeView(this.f1297g); } ((ActionMenuView) this.f1158f).mo3969a(this.f1305o); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: a
public final boolean mo3771a(MenuItemImpl menuItemImpl) { return menuItemImpl.mo3644f(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ JADX WARNING: Removed duplicated region for block: B:18:0x0041 A[RETURN] / JADX WARNING: Removed duplicated region for block: B:19:0x0042 / renamed from: a / Code decompiled incorrectly, please refer to instructions dump.
public final boolean mo3711a(android.support.p010v7.view.menu.SubMenuBuilder r8) { /* r7 = this; boolean r0 = r8.hasVisibleItems() r1 = 0 if (r0 != 0) goto L_0x0008 return r1 L_0x0008: r0 = r8 L_0x0009: android.view.Menu r2 = r0.mo3684s() android.support.v7.view.menu.MenuBuilder r3 = r7.f1155c if (r2 == r3) goto L_0x0018 android.view.Menu r0 = r0.mo3684s() android.support.v7.view.menu.SubMenuBuilder r0 = (android.support.p010v7.view.menu.SubMenuBuilder) r0 goto L_0x0009 L_0x0018: android.view.MenuItem r0 = r0.getItem() android.support.v7.view.menu.ae r2 = r7.f1158f android.view.ViewGroup r2 = (android.view.ViewGroup) r2 if (r2 == 0) goto L_0x003e int r3 = r2.getChildCount() r4 = 0 L_0x0027: if (r4 >= r3) goto L_0x003e android.view.View r5 = r2.getChildAt(r4) boolean r6 = r5 instanceof android.support.p010v7.view.menu.C0289af if (r6 == 0) goto L_0x003b r6 = r5 android.support.v7.view.menu.af r6 = (android.support.p010v7.view.menu.C0289af) r6 android.support.v7.view.menu.MenuItemImpl r6 = r6.mo3545a() if (r6 != r0) goto L_0x003b goto L_0x003f L_0x003b: int r4 = r4 + 1 goto L_0x0027 L_0x003e: r5 = 0 L_0x003f: if (r5 != 0) goto L_0x0042 return r1 L_0x0042: android.view.MenuItem r0 = r8.getItem() int r0 = r0.getItemId() r7.f1302l = r0 int r0 = r8.size() r2 = 0 L_0x0051: r3 = 1 if (r2 >= r0) goto L_0x0069 android.view.MenuItem r4 = r8.getItem(r2) boolean r6 = r4.isVisible() if (r6 == 0) goto L_0x0066 android.graphics.drawable.Drawable r4 = r4.getIcon() if (r4 == 0) goto L_0x0066 r1 = 1 goto L_0x0069 L_0x0066: int r2 = r2 + 1 goto L_0x0051 L_0x0069: android.support.v7.widget.g r0 = new android.support.v7.widget.g android.content.Context r2 = r7.f1154b r0.<init>(r7, r2, r8, r5) r7.f1299i = r0 android.support.v7.widget.g r0 = r7.f1299i r0.mo3698a((boolean) r1) android.support.v7.widget.g r0 = r7.f1299i r0.mo3700b() super.mo3711a((android.support.p010v7.view.menu.SubMenuBuilder) r8) return r3 */ throw new UnsupportedOperationException("Method not decompiled: android.support.p010v7.widget.ActionMenuPresenter.mo3711a(android.support.v7.view.menu.SubMenuBuilder):boolean"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean A_()\r\n/* 21: */ {\r\n/* 22:138 */ return true;\r\n/* 23: */ }", "protected void method_2145() {\r\n // $FF: Couldn't be decompiled\r\n }", "private void method_7083() {\r\n // $FF: Couldn't be decompiled\r\n }", "@Override // X.AnonymousClass0PN\n /* Code de...
[ "0.64882326", "0.6488166", "0.6487444", "0.64081126", "0.6405632", "0.63993806", "0.638596", "0.6360098", "0.63354456", "0.632815", "0.632815", "0.6289964", "0.6274478", "0.62720394", "0.62550086", "0.62457234", "0.6237503", "0.6236446", "0.6194814", "0.61863", "0.61854386", ...
0.0
-1
/ renamed from: a
public final boolean mo3772a(ViewGroup viewGroup, int i) { if (viewGroup.getChildAt(i) == this.f1297g) { return false; } return super.mo3772a(viewGroup, i); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: b
public final boolean mo3712b() { int i; ArrayList<MenuItemImpl> arrayList; int i2; int i3; int i4; boolean z; ActionMenuPresenter actionMenuPresenter = this; int i5 = 0; if (actionMenuPresenter.f1155c != null) { arrayList = actionMenuPresenter.f1155c.mo3615l(); i = arrayList.size(); } else { arrayList = null; i = 0; } int i6 = actionMenuPresenter.f1309s; int i7 = actionMenuPresenter.f1308r; int makeMeasureSpec = View.MeasureSpec.makeMeasureSpec(0, 0); ViewGroup viewGroup = (ViewGroup) actionMenuPresenter.f1158f; int i8 = i6; int i9 = 0; boolean z2 = false; int i10 = 0; for (int i11 = 0; i11 < i; i11++) { MenuItemImpl menuItemImpl = arrayList.get(i11); if (menuItemImpl.mo3658h()) { i9++; } else if (menuItemImpl.mo3645g()) { i10++; } else { z2 = true; } if (actionMenuPresenter.f1313w && menuItemImpl.isActionViewExpanded()) { i8 = 0; } } if (actionMenuPresenter.f1305o && (z2 || i10 + i9 > i8)) { i8--; } int i12 = i8 - i9; SparseBooleanArray sparseBooleanArray = actionMenuPresenter.f1315y; sparseBooleanArray.clear(); if (actionMenuPresenter.f1311u) { i3 = i7 / actionMenuPresenter.f1314x; i2 = ((i7 % actionMenuPresenter.f1314x) / i3) + actionMenuPresenter.f1314x; } else { i3 = 0; i2 = 0; } int i13 = i7; int i14 = 0; int i15 = 0; while (i14 < i) { MenuItemImpl menuItemImpl2 = arrayList.get(i14); if (menuItemImpl2.mo3658h()) { View a = actionMenuPresenter.mo3768a(menuItemImpl2, actionMenuPresenter.f1316z, viewGroup); if (actionMenuPresenter.f1316z == null) { actionMenuPresenter.f1316z = a; } if (actionMenuPresenter.f1311u) { i3 -= ActionMenuView.m877a(a, i2, i3, makeMeasureSpec, i5); } else { a.measure(makeMeasureSpec, makeMeasureSpec); } int measuredWidth = a.getMeasuredWidth(); i13 -= measuredWidth; if (i15 != 0) { measuredWidth = i15; } int groupId = menuItemImpl2.getGroupId(); if (groupId != 0) { z = true; sparseBooleanArray.put(groupId, true); } else { z = true; } menuItemImpl2.mo3640d(z); i4 = i; i15 = measuredWidth; } else if (menuItemImpl2.mo3645g()) { int groupId2 = menuItemImpl2.getGroupId(); boolean z3 = sparseBooleanArray.get(groupId2); boolean z4 = (i12 > 0 || z3) && i13 > 0 && (!actionMenuPresenter.f1311u || i3 > 0); if (z4) { boolean z5 = z4; View a2 = actionMenuPresenter.mo3768a(menuItemImpl2, actionMenuPresenter.f1316z, viewGroup); i4 = i; if (actionMenuPresenter.f1316z == null) { actionMenuPresenter.f1316z = a2; } if (actionMenuPresenter.f1311u) { int a3 = ActionMenuView.m877a(a2, i2, i3, makeMeasureSpec, 0); i3 -= a3; if (a3 == 0) { z5 = false; } } else { a2.measure(makeMeasureSpec, makeMeasureSpec); } int measuredWidth2 = a2.getMeasuredWidth(); i13 -= measuredWidth2; if (i15 == 0) { i15 = measuredWidth2; } z4 = z5 & (!actionMenuPresenter.f1311u ? i13 + i15 > 0 : i13 >= 0); } else { boolean z6 = z4; i4 = i; } if (z4 && groupId2 != 0) { sparseBooleanArray.put(groupId2, true); } else if (z3) { sparseBooleanArray.put(groupId2, false); int i16 = 0; while (i16 < i14) { MenuItemImpl menuItemImpl3 = arrayList.get(i16); if (menuItemImpl3.getGroupId() == groupId2) { if (menuItemImpl3.mo3644f()) { i12++; } menuItemImpl3.mo3640d(false); } i16++; } } if (z4) { i12--; } menuItemImpl2.mo3640d(z4); } else { i4 = i; menuItemImpl2.mo3640d(false); i14++; i = i4; actionMenuPresenter = this; i5 = 0; } i14++; i = i4; actionMenuPresenter = this; i5 = 0; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo2508a(bxb bxb);", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void b() {\n }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "@Override\n\tpublic void b2() {\n\t\t\n\t}", "v...
[ "0.64558864", "0.6283203", "0.6252635", "0.6250949", "0.6244743", "0.6216273", "0.6194491", "0.6193556", "0.61641675", "0.6140157", "0.60993093", "0.60974354", "0.6077849", "0.6001867", "0.5997364", "0.59737104", "0.59737104", "0.5905105", "0.5904295", "0.58908087", "0.588663...
0.0
-1
/ renamed from: c
public final void mo3955c() { if (!this.f1310t) { this.f1309s = C0270a.m488a(this.f1154b).mo3458a(); } if (this.f1155c != null) { this.f1155c.mo3596b(true); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo5289a(C5102c c5102c);", "public static void c0() {\n\t}", "void mo57278c();", "private static void cajas() {\n\t\t\n\t}", "void mo5290b(C5102c c5102c);", "void mo80457c();", "void mo12638c();", "void mo28717a(zzc zzc);", "void mo21072c();", "@Override\n\tpublic void ccc() {\n\t\t\n\t}", ...
[ "0.64592767", "0.644052", "0.6431582", "0.6418656", "0.64118475", "0.6397491", "0.6250796", "0.62470585", "0.6244832", "0.6232792", "0.618864", "0.61662376", "0.6152657", "0.61496663", "0.6138441", "0.6137171", "0.6131197", "0.6103783", "0.60983956", "0.6077118", "0.6061723",...
0.0
-1
/ renamed from: d
public final void mo3956d() { this.f1305o = true; this.f1306p = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void d() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public int d()\r\n/* 79: */ {\r\n/* 80:82 */ return this.d;\r\n/* 81: */ }", "public String d_()\r\n/* 445: */ {\r\n/* 446:459 */ return \"container.inventor...
[ "0.63814974", "0.6161482", "0.6071298", "0.59962976", "0.58773404", "0.58716977", "0.58259004", "0.5758642", "0.5701838", "0.5660324", "0.56520164", "0.56360936", "0.5623887", "0.56160694", "0.5611214", "0.5611214", "0.5606199", "0.5599611", "0.5588785", "0.5571922", "0.55582...
0.0
-1
/ renamed from: e
public final void mo3957e() { this.f1313w = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void e() {\n\n\t}", "public void e() {\n }", "@Override\n\tpublic void processEvent(Event e) {\n\n\t}", "@Override\n public void e(String TAG, String msg) {\n }", "public String toString()\r\n {\r\n return e.toString();\r\n }", "@Override\n\t\t\t\...
[ "0.72328156", "0.66032064", "0.6412127", "0.6362734", "0.633999", "0.62543726", "0.6232265", "0.6159535", "0.61226326", "0.61226326", "0.60798717", "0.6049423", "0.60396963", "0.60011584", "0.5998842", "0.59709895", "0.59551716", "0.5937381", "0.58854383", "0.5870234", "0.586...
0.0
-1
/ renamed from: f
public final boolean mo3958f() { if (!this.f1305o || mo3962j() || this.f1155c == null || this.f1158f == null || this.f1300j != null || this.f1155c.mo3618o().isEmpty()) { return false; } this.f1300j = new C0429i(this, new C0432l(this, this.f1154b, this.f1155c, this.f1297g)); ((View) this.f1158f).post(this.f1300j); super.mo3711a((SubMenuBuilder) null); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void func_70305_f() {}", "public static Forca get_f(){\n\t\treturn f;\n\t}", "void mo84656a(float f);", "public final void mo8765a(float f) {\n }", "@Override\n public int f() {\n return 0;\n }", "public void f() {\n }", "void mo9704b(float f, float f2, int i);", "void mo56155...
[ "0.7323683", "0.65213245", "0.649907", "0.64541733", "0.6415534", "0.63602704", "0.6325114", "0.63194084", "0.630473", "0.62578535", "0.62211406", "0.6209556", "0.6173324", "0.61725706", "0.61682224", "0.6135272", "0.6130462", "0.6092916", "0.6089471", "0.6073019", "0.6069227...
0.0
-1
/ renamed from: g
public final boolean mo3959g() { if (this.f1300j == null || this.f1158f == null) { C0432l lVar = this.f1298h; if (lVar == null) { return false; } lVar.mo3703e(); return true; } ((View) this.f1158f).removeCallbacks(this.f1300j); this.f1300j = null; return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void g() {\n }", "public void gored() {\n\t\t\n\t}", "public boolean g()\r\n/* 94: */ {\r\n/* 95:94 */ return this.g;\r\n/* 96: */ }", "public int g()\r\n/* 173: */ {\r\n/* 174:198 */ return 0;\r\n/* 175: */ }", "public void stg() {\n\n\t}", "public xm n()\r\n/* 274: ...
[ "0.678414", "0.67709124", "0.6522526", "0.64709187", "0.6450875", "0.62853396", "0.6246107", "0.6244691", "0.6212993", "0.61974055", "0.61380696", "0.6138033", "0.6105423", "0.6057178", "0.60355175", "0.60195917", "0.59741", "0.596904", "0.59063077", "0.58127505", "0.58101356...
0.0
-1
/ renamed from: h
public final boolean mo3960h() { return mo3959g() | mo3961i(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void h() {}", "public void h() {\n }", "public abstract long h();", "float getH() {\n return _h;\n }", "H1 createH1();", "@Override\n public String toString() {\n return \"H\";\n }", "public void add2Hash( Hashtable h, String source ) {\n \n AstCursor c = new Ast...
[ "0.7006457", "0.6376803", "0.6152193", "0.6099337", "0.599903", "0.5976422", "0.5881053", "0.5878019", "0.5851139", "0.5840173", "0.58104765", "0.57935345", "0.5784397", "0.577195", "0.5760394", "0.5758641", "0.57195157", "0.5717094", "0.5712681", "0.57083744", "0.5691357", ...
0.0
-1
/ renamed from: i
public final boolean mo3961i() { if (this.f1299i == null) { return false; } this.f1299i.mo3703e(); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo17022c(int i);", "public final void mo5394iy(int i) {\n }", "void mo88773a(int i);", "void mo32046rn(int i);", "void mo54447l(int i);", "public final void mo91727g(int i) {\n }", "void mo1761g(int i);", "void mo54406a(int i);", "void mo23327tY(int i);", "void mo1753b(int i);", "@Ov...
[ "0.6814251", "0.6791054", "0.67141014", "0.67082477", "0.6697361", "0.6696495", "0.66768324", "0.66522545", "0.66506225", "0.66473114", "0.6642119", "0.66363925", "0.6592755", "0.65895766", "0.65869564", "0.65632737", "0.6560748", "0.65470266", "0.6536829", "0.65297914", "0.6...
0.0
-1
/ renamed from: j
public final boolean mo3962j() { return this.f1298h != null && this.f1298h.mo3705g(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void j() {\n }", "public int j() {\n \treturn j; \n }", "protected float j()\r\n/* 67: */ {\r\n/* 68: 80 */ return 1.5F;\r\n/* 69: */ }", "public abstract void mo4383c(long j);", "void mo1638a(long j, long j2, List list, ayp ayp);", "void mo30290d(long j);", "void mo302...
[ "0.6920922", "0.6371147", "0.62772214", "0.62051874", "0.6196064", "0.61860317", "0.61813456", "0.61330765", "0.612021", "0.6117321", "0.60567325", "0.6037512", "0.6028698", "0.6012394", "0.60016197", "0.59795195", "0.59551346", "0.59551346", "0.59095114", "0.5901377", "0.586...
0.0
-1
Created by mac on 2017/3/2.
public interface PlanProcedureRepository extends JpaRepository<PlanProcedure, Integer> { public PlanProcedure findByProcedureName(String procedureName); public List<PlanProcedure> findByPlanId(Integer planId); public PlanProcedure findByPlanIdAndProcedureName(Integer planId, String procedureName); public List<PlanProcedure> findByProcedureNameLike(String procedureName); public PlanProcedure findByProcedureId(Integer procedureId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "private static void cajas() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "private void kk12() {\n\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\...
[ "0.5834651", "0.5677659", "0.5615881", "0.55136126", "0.548783", "0.5475282", "0.5439289", "0.54324263", "0.5411622", "0.5400599", "0.53946984", "0.53935623", "0.53686816", "0.53469837", "0.53469837", "0.5343857", "0.5341684", "0.534035", "0.5334693", "0.5326733", "0.52885395...
0.0
-1
Created by mohamed on 25/01/2017.
@WebService @SOAPBinding (style = SOAPBinding.Style.RPC) public interface SystemeAmendes { @WebMethod void enregistrer (Voiture car); @WebMethod int signaler(String immatriculation, String modele, int tarif); @WebMethod String lister(String immatriculation); @WebMethod int payer(int numero, String nom, String prenom); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "public final void mo51373a() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpubl...
[ "0.6022008", "0.5931558", "0.5854459", "0.5814318", "0.57880837", "0.5756786", "0.5756786", "0.5726124", "0.57198715", "0.57197577", "0.5685303", "0.5682956", "0.56249046", "0.56041163", "0.55990815", "0.5566506", "0.55652004", "0.555276", "0.55518746", "0.5532569", "0.552329...
0.0
-1
TODO Autogenerated method stub
@Override public void visited(ComputerPartVisitor visitor) { visitor.visit(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Sets the target command to execute.
protected void setTarget(Command target) { proxy.setTarget(target); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void setCommand(String command)\n {\n Command = command;\n }", "public abstract void setCommand(String cmd);", "public void setCommand(String command) {\n _command = command;\n }", "public void setCommand(String command)\r\n\t{\r\n\t\tthis.command = command;\r\n\t}", "public v...
[ "0.6930902", "0.6771006", "0.6734751", "0.67098", "0.66737086", "0.66541797", "0.6649033", "0.66392785", "0.66334593", "0.662279", "0.6598392", "0.65410537", "0.64607835", "0.6352029", "0.6269724", "0.6233649", "0.62079173", "0.61255556", "0.61146873", "0.6104036", "0.6090406...
0.7662365
0
Sets the type of the command to execute. In this case the actual instance will be created by the proxy.
protected void setType(Class<?> type) { proxy.setType(type); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCommandType(CommandType commandType) {\n this.commandType = commandType;\n }", "public void setCommandType(String commandType) {\n this.commandType = commandType == null ? null : commandType.trim();\n }", "CommandTypes(String command) {\n this.command = command;\n }...
[ "0.7013431", "0.6659336", "0.6447241", "0.6155122", "0.60867095", "0.60258067", "0.5974219", "0.5970945", "0.59009755", "0.58412546", "0.582998", "0.582998", "0.582998", "0.58271855", "0.58191115", "0.57971144", "0.5794928", "0.57932574", "0.57932574", "0.57932574", "0.579046...
0.59412843
8
Adds a value that can get passed to any command executed by the command proxy this builder creates.
protected void addData(Object value) { proxy.addData(value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Builder addCommand(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCommandIsMutable();\n command_.add(value);\n onChanged();\n return this;\n }", "public Builder addArgs(\n godot.wire.Wire.Value.Bui...
[ "0.6574412", "0.617883", "0.609438", "0.6069036", "0.5989077", "0.5987776", "0.58930004", "0.5871648", "0.5866499", "0.5866499", "0.5802411", "0.5780911", "0.5723434", "0.5612543", "0.55886364", "0.5586671", "0.5586517", "0.5514164", "0.5514164", "0.5478876", "0.54654187", ...
0.5923194
6
Sets the timeout for this proxy. When the specified amount of time is elapsed the command execution will abort with an error.
protected void setTimeout(long milliseconds) { proxy.setTimeout(milliseconds); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setOperationTimeout(int timeout) throws RemoteException;", "public SetIdleTimeoutCommand(int timeout) {\n this.timeout = timeout;\n }", "public void setTimeout(double timeout){\n this.timeout = timeout;\n }", "public void setTimeout(long timeout) {\n this.timeout = timeout;\n }",...
[ "0.72155863", "0.71883714", "0.6793889", "0.6723821", "0.6723821", "0.66749585", "0.6659004", "0.66588557", "0.658984", "0.6585278", "0.6564029", "0.6561195", "0.6561134", "0.65438265", "0.6507152", "0.6489953", "0.64724", "0.64585036", "0.64280707", "0.6396154", "0.6394876",...
0.6193509
30
Adds a callback to invoke when the target command completes successfully. The result produced by the command will get passed to the callback.
@SuppressWarnings({"rawtypes", "unchecked"}) // Java 1.8 forward-compatibility. protected <T> void addResultCallback(final ResultCallback<T> callback) { EventListener l = new EventListener<CommandResultEvent>() { @Override public void process(CommandResultEvent event) { callback.result((T) event.getValue()); } }; proxy.addEventListener(CommandResultEvent.COMPLETE, l); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onCompletion(Runnable callback)\n/* */ {\n/* 158 */ this.completionCallback = callback;\n/* */ }", "@Override\n public void onSuccess() {\n if (callback != null) {\n callback.run();\n }\n }", "@Override\n public void onSu...
[ "0.62086403", "0.61414754", "0.61414754", "0.6104384", "0.60845435", "0.600478", "0.59640783", "0.5947603", "0.5869166", "0.5844731", "0.583106", "0.58032167", "0.5781799", "0.5682227", "0.56617236", "0.5660005", "0.5632373", "0.56165934", "0.5589253", "0.55650926", "0.555216...
0.6147539
1
Adds a callback to invoke when the target command raised an exception. The cause of the exception will be passed to the callback.
@SuppressWarnings({"rawtypes", "unchecked"}) // Java 1.8 forward-compatibility. protected <T extends Throwable> void addExceptionCallback(final ExceptionCallback<T> callback) { EventListener l = new EventListener<CommandResultEvent>() { @Override public void process(CommandResultEvent event) { callback.exception((T) event.getValue()); } }; proxy.addEventListener(CommandResultEvent.EXCEPTION, l); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void onException(Exception e);", "private void onCallbackException(Exception e) {\n CallbackException streamError =\n new CallbackExceptionImpl(\"CalledByNative method has thrown an exception\", e);\n Log.e(CronetUrlRequestContext.LOG_TAG, \"Exception in CalledByNativ...
[ "0.5877418", "0.5855179", "0.57739246", "0.5754113", "0.56885767", "0.56651556", "0.5596174", "0.5579857", "0.55655587", "0.55605066", "0.5553948", "0.5379942", "0.5342284", "0.5297307", "0.5279689", "0.527921", "0.5253602", "0.5224382", "0.52175105", "0.52133656", "0.5156705...
0.7195197
0
Adds a callback to invoke when the target command gets cancelled. The callback should not expect any parameters.
@SuppressWarnings({"rawtypes", "unchecked"}) // Java 1.8 forward-compatibility. protected void addCancelCallback(final CancelCallback callback) { EventListener l = new EventListener<CommandEvent>() { @Override public void process(CommandEvent event) { callback.cancel(); } }; proxy.addEventListener(CommandEvent.CANCEL, l); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onCancel();", "void onCancel();", "protected abstract void onCancel();", "public void onCancelled();", "void cancel(@NonNull java.lang.Runnable command, boolean mayInterruptIfRunning);", "public void onCancel() {\n }", "void onCancelled();", "void onCancel(int key);", "public void on...
[ "0.6983746", "0.6940406", "0.69349605", "0.6814355", "0.6672883", "0.6613778", "0.6560837", "0.6559599", "0.65034944", "0.65034944", "0.6501652", "0.6474982", "0.64741963", "0.6450264", "0.64411855", "0.64345855", "0.6398678", "0.63807195", "0.6331848", "0.6317194", "0.630439...
0.6833206
3
Turns the specified instance into a command that can be executed by the proxy created by this builder. Legal parameters are any instances that implement either Command or CommandBuilder, a Class reference that specifies the type of the target command to create, or any other type in case an adapter is registered that knows how to turn the type into a command.
protected Command asCommand(Object command) { if (command instanceof Command) { return (Command) command; } else if (command instanceof CommandBuilder) { return ((CommandBuilder) command).build(); } else if (command instanceof Class<?>) { return Commands.create((Class<?>) command).build(); } else { return CommandAdapters.createAdapter(command); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "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\treturn new Pause();\n\t\t\n\t\treturn null;\n\t\t\n\t}", "Command createCommandWith(CommandCreator creator);", ...
[ "0.62236303", "0.59579027", "0.56945103", "0.566862", "0.56327", "0.54909855", "0.5459729", "0.5232903", "0.5212579", "0.5179306", "0.51463187", "0.51404953", "0.51254964", "0.51106703", "0.5059095", "0.5019772", "0.5016564", "0.5010289", "0.4996166", "0.49961448", "0.4996095...
0.66002226
0
/////////////////////////////////////////////////////////////////////////// Public API. ///////////////////////////////////////////////////////////////////////////
@Override public CommandProxy execute() { CommandProxy proxy = build(); proxy.execute(); return proxy; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n protected void prot() {\n }", "@Override\n publi...
[ "0.5999474", "0.59947425", "0.5975515", "0.590887", "0.58968824", "0.587697", "0.58070624", "0.58015954", "0.5757554", "0.57568884", "0.5718094", "0.5716578", "0.5708219", "0.5693902", "0.5693902", "0.5693902", "0.5693902", "0.5693902", "0.5693902", "0.56894916", "0.5680822",...
0.0
-1
TODO Autogenerated method stub
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); isGridMode=PreferencesUtils.getInteger(GlobeFlags.MODE_STATUS)==GlobeFlags.MODE_BIG_PIC_MODE; mRequest = new DataPageRequest(); mResponse = new DataPageResponse(); mRequest.setPageResponseListener(mResponse); mFooterView = LayoutInflater.from(this).inflate(R.layout.include_list_footer, null); mWaterFooterView = LayoutInflater.from(this).inflate(R.layout.include_list_footer, null); mSpecialFooterView = View.inflate(this, R.layout.list_footer, null); mSpecialWaterFooterView = View.inflate(this, R.layout.list_footer, null); mStaggerFootView = View.inflate(this, R.layout.include_stag_list_footer, null); mProTipLayer = (LinearLayout) mStaggerFootView.findViewById(R.id.layer_pro_tip); mNoDataLayer = (LinearLayout) mStaggerFootView.findViewById(R.id.layer_no_data); }
{ "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
The some subclass that prepare to disply data from cache need to override this method
protected void preDisply(List allData) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n protected void fetchData() {\n\r\n }", "@Override\n public boolean isCaching() {\n return false;\n }", "public void cacheResult(DataEntry dataEntry);", "public void setCached() {\n }", "public interface ICache {\n\t\n\t/**\n\t * <p>\n\t * get the Cached Object from cache pool by...
[ "0.67775357", "0.6756661", "0.66288394", "0.6573397", "0.6498249", "0.64824826", "0.64628047", "0.64479846", "0.64117384", "0.6404753", "0.6404753", "0.6358406", "0.63529813", "0.6351308", "0.631327", "0.6302229", "0.6214037", "0.6208266", "0.61679727", "0.6161414", "0.610362...
0.0
-1
TODO Autogenerated method stub
@Override public BeanWraper createBeanWraper() { return newBeanWraper(); }
{ "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
This will allow us to server the static pages such as index.html, app.js, etc.
public static void main(String[] args) { staticFiles.location("/public"); //This will listen to GET requests to /model and return a clean new model get("/model/:Version", (req, res) -> newModel( req )); //This will listen to POST requests and expects to receive a game model, as well as location to fire to post("/fire/:Version/:row/:col/:hard", (req, res) -> fireAt( req )); //This will handle the scan feature post("/scan/:Version/:row/:col/:hard", (req, res) -> scan( req )); //This will listen to POST requests and expects to receive a game model, as well as location to place the ship post("/placeShip/:Version/:id/:row/:col/:orientation/:hard", (req, res) -> placeShip( req )); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void startWebApp(Handler<AsyncResult<HttpServer>> next) {\n Router router = Router.router(vertx);\n\n router.route(\"/assets/*\").handler(StaticHandler.create(\"assets\"));\n router.route(\"/api/*\").handler(BodyHandler.create());\n\n router.route(\"/\").handler(this::handleRoot...
[ "0.6674744", "0.65254265", "0.6175894", "0.59586257", "0.58412415", "0.583217", "0.5740725", "0.5666135", "0.5658091", "0.56563365", "0.5576445", "0.5566696", "0.5565983", "0.5552149", "0.5541982", "0.553898", "0.5529159", "0.55013794", "0.5493387", "0.5454274", "0.54338944",...
0.4978145
54
Model This function should return a new model
private static String newModel(Request req) { if( req.params("Version").equals("Updated") ) { // make new model, make gson object, convert model to json using gson BattleshipModelUpdated game = new BattleshipModelUpdated(); Gson gson = new Gson(); return gson.toJson( game ); }else{ // make new model, make gson object, convert model to json using gson BattleshipModelNormal game = new BattleshipModelNormal(); Gson gson = new Gson(); return gson.toJson( game ); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "EisModel createEisModel();", "InstanceModel createInstanceOfInstanceModel();", "CsticModel createInstanceOfCsticModel();", "Dat...
[ "0.8001801", "0.8001801", "0.8001801", "0.8001801", "0.8001801", "0.8001801", "0.8001801", "0.72207856", "0.7198819", "0.7154919", "0.71238697", "0.7041292", "0.7039377", "0.69599444", "0.6949707", "0.6918708", "0.6891826", "0.6880255", "0.68692076", "0.6839911", "0.67838824"...
0.6466607
30
This function should accept an HTTP request and deserialize it into an actual Java object.
private static BattleshipModel getModelFromReq(Request req){ String data = req.body(); Gson gson = new Gson(); if( req.params("Version").equals("Updated") ) { return gson.fromJson(data, BattleshipModelUpdated.class); }else{ return gson.fromJson(data, BattleshipModelNormal.class); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Object deserializeObjectFromRequest(String mimeInputFormat,\n\t\tIWebSerialDeserial serialDeserial)\n\t{\n\t\tWebRequest servletRequest = AbstractRestResource.getCurrentWebRequest();\n\n\t\treturn serialDeserial.requestToObject(servletRequest, parameterClass, mimeInputFormat);\n\t}", "Object deserialize(...
[ "0.6541008", "0.62908304", "0.61986405", "0.6024675", "0.5999708", "0.5983366", "0.5842764", "0.58029056", "0.57872874", "0.57854027", "0.5767852", "0.57336676", "0.5724822", "0.572102", "0.5713699", "0.56594515", "0.5659283", "0.56543934", "0.5644389", "0.56299436", "0.56257...
0.0
-1
Placing ship This controller should take a json object from the front end, and place the ship as requested, and then return the object.
private static String placeShip(Request req) { if( req.params("Version").equals("Updated") ) { BattleshipModelUpdated model = (BattleshipModelUpdated) getModelFromReq( req ); model.resetArrayUpdated( model ); model = model.PlaceShip( model, req ); model.resetArrayUpdated( model ); Gson gson = new Gson(); return gson.toJson( model ); }else{ BattleshipModelNormal model = (BattleshipModelNormal) getModelFromReq( req ); model.resetArrayNormal( model ); model = model.PlaceShip( model, req ); model.resetArrayNormal( model ); Gson gson = new Gson(); return gson.toJson( model ); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void placeShip() {\r\n\t\t// Expire the ship ship\r\n\t\tParticipant.expire(ship);\r\n\r\n\t\tclipShip.stop();\r\n\r\n\t\t// Create a new ship\r\n\t\tship = new Ship(SIZE / 2, SIZE / 2, -Math.PI / 2, this);\r\n\t\taddParticipant(ship);\r\n\t\tdisplay.setLegend(\"\");\r\n\t}", "private static String place...
[ "0.70862377", "0.69309133", "0.63618445", "0.63310087", "0.62998295", "0.6138618", "0.60129637", "0.59982944", "0.59372413", "0.59066945", "0.587297", "0.58640504", "0.5838517", "0.57520515", "0.57077914", "0.56800586", "0.56783617", "0.56578815", "0.56418097", "0.56418097", ...
0.6661675
2
Fire Similar to placeShip, but with firing.
private static String fireAt(Request req) { if(req.params("Version").equals("Updated")) { // Generate model from json, get coordinates from fire request BattleshipModelUpdated model = (BattleshipModelUpdated) getModelFromReq( req ); model.resetArrayUpdated( model ); model = model.Fire( model, req ); model.resetArrayUpdated( model ); Gson gson = new Gson(); return gson.toJson( model ); }else{ // Generate model from json, get coordinates from fire request BattleshipModelNormal model = (BattleshipModelNormal) getModelFromReq( req ); model.resetArrayNormal( model ); model = model.Fire( model, req ); model.resetArrayNormal( model ); Gson gson = new Gson(); return gson.toJson( model ); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void fire();", "public abstract void fire();", "public void fire(TileEnvironment levelEnv) {\n\t\t\n\t}", "public void fire(SpaceWars game) {\r\n\t\tif (physics.angleTo(closestShipPhysics) < MIN_ANGLE){\r\n\t\t\tsuper.fire(game);\r\n\t\t}\t\r\n\t}", "void fire() {\r\n // firing a sho...
[ "0.738382", "0.738382", "0.7024969", "0.6859979", "0.6835894", "0.6722237", "0.67121917", "0.66708934", "0.6659564", "0.6635049", "0.65857005", "0.6552142", "0.6507305", "0.6489334", "0.6485122", "0.6483599", "0.6471778", "0.6461934", "0.64470327", "0.64417565", "0.64360404",...
0.0
-1
Scans the area for ships
private static String scan(Request req) { // Generate model from json, get coordinates from fire request BattleshipModelUpdated model = (BattleshipModelUpdated) getModelFromReq( req ); model.resetArrayUpdated( model ); model = model.Scan( model, req ); model.resetArrayUpdated( model ); model = model.resetArrayUpdated( model ); Gson gson = new Gson(); return gson.toJson( model ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void placeAllShips()\n {\n \t\n \t//place 2 aircrafts\n \tfor(int n = 0; n < 2; n++){\n \trandomRow = rnd.nextInt(10); //get random integer from 0-9\n \trandomCol = rnd.nextInt(10);//get random integer from 0-9\n \trandomDir = rnd.nextInt(2);//get random integer from 0-1\n \twhile(!...
[ "0.63076806", "0.6201355", "0.6198651", "0.6194501", "0.61449087", "0.6051449", "0.60204816", "0.60204816", "0.592532", "0.5816882", "0.58079916", "0.57668966", "0.5746632", "0.5743831", "0.5726545", "0.5707251", "0.5702802", "0.56979024", "0.56469256", "0.56454235", "0.56424...
0.0
-1
Helper functions Checks a list for either player/computer and sees if the same point is already in the list
static boolean alreadyShot(Point shotPoint, BattleshipModel model, boolean player){ List<Point> checkHits; List<Point> checkMisses; int sizeHits; int sizeMisses; //if player if(player) { checkHits = model.getComputerHits(); //Grabs the point list for player checkMisses = model.getComputerMisses(); sizeHits = model.getComputerHits().size(); sizeMisses = model.getComputerMisses().size(); }else{ checkHits = model.getPlayerHits(); //Grabs the point list for computer checkMisses = model.getPlayerMisses(); sizeHits = model.getPlayerHits().size(); sizeMisses = model.getPlayerMisses().size(); } for(int i = 0; i < sizeHits; i++){ //checks the Hit list for the same point if(shotPoint.getAcross() == checkHits.get(i).getAcross() && shotPoint.getDown() == checkHits.get(i).getDown()){ return true; } } for(int i = 0; i < sizeMisses; i++){ //checks the Hit list for the same point if(shotPoint.getAcross() == checkMisses.get(i).getAcross() && shotPoint.getDown() == checkMisses.get(i).getDown() ){ return true; } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean isInList(List<Point3D> pointsList, Point3D point) {\r\n for (Point3D tempPoint : pointsList) {\r\n if(point.isAlmostEquals(tempPoint))\r\n return true;\r\n }\r\n return false;\r\n }", "private boolean contains(List<PointList> list, PointList pList...
[ "0.644639", "0.633778", "0.6110817", "0.60888886", "0.6058226", "0.6016861", "0.6010693", "0.5999185", "0.59789234", "0.5948308", "0.5918594", "0.59184474", "0.59080684", "0.5896891", "0.5879161", "0.58469635", "0.5829161", "0.57954663", "0.5784048", "0.5761193", "0.5732674",...
0.6990148
0
Returns true if the shot point is between shipStart and shipEnd otherwise return false
static boolean Hit(Point shipStart, Point shipEnd, Point shotPoint){ if(shipStart.getDown() == shipEnd.getDown()){ // if start and end on same y coordinate, ship is horizontal int y = shipStart.getDown(); for (int x = shipStart.getAcross(); x <= shipEnd.getAcross(); x++){ // loop from left to right of ship position if(x == shotPoint.getAcross() && y == shotPoint.getDown()) return true; // if the coordinates of current point match shot, you hit! } } else if (shipStart.getAcross() == shipEnd.getAcross()) { // if start and end on same x coordinate, ship is vertical int x = shipStart.getAcross(); for (int y = shipStart.getDown(); y <= shipEnd.getDown(); y++) { if (x == shotPoint.getAcross() && y == shotPoint.getDown()) return true; // if the coordinates of current point match shot, you hit! } } return false; // points given are not horizontal or vertical and not valid, can't hit diagonally }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean collides (){\n if(shipX<=astX && shipY>=astY){\n if(Math.abs(shipX-astX)<=40 && Math.abs(shipY-astY)<=65){\n return true;\n }\n }\n else if(shipX>=astX && shipY>=astY){\n if(Math.abs(shipX-astX)<=75 && Math.abs(shipY-astY)<=65){\n ...
[ "0.65616596", "0.6505904", "0.6502598", "0.64072526", "0.6356788", "0.62686604", "0.62477875", "0.61545247", "0.61296415", "0.60556704", "0.6047865", "0.603147", "0.6026341", "0.5996817", "0.5982045", "0.59754384", "0.59706855", "0.5970021", "0.59699744", "0.5943169", "0.5941...
0.8099617
0
log.debug( "method not implemented. resource: " + resource.getClass().getName() + " method " + request.getMethod() );
public void respondMethodNotImplemented( Resource resource, Response response, Request request ) { try { response.setStatus( Response.Status.SC_NOT_IMPLEMENTED ); OutputStream out = response.getOutputStream(); out.write( METHOD_NOT_IMPLEMENTED_HTML.getBytes() ); } catch( IOException ex ) { log.warn( "exception writing content" ); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Object invoke(final MethodInvocation methodInvocation) throws Throwable {\n return methodInvocation.proceed()\n + \" ResourceInterceptor: Method \\\"\"\n + methodInvocation.getMethod().getName() + \"\\\" intercepted\\n\";\n }", "@Override\n\t\tp...
[ "0.62855893", "0.6255921", "0.62433386", "0.608429", "0.608429", "0.6066785", "0.60133713", "0.6006308", "0.5917196", "0.5790402", "0.57837754", "0.5777932", "0.5761018", "0.5737169", "0.5719373", "0.5690308", "0.56701", "0.56551194", "0.5646361", "0.56409657", "0.5629236", ...
0.63806814
0
log.debug( "respondContent: " + resource.getClass() );
public void respondContent( Resource resource, Response response, Request request, Map<String, String> params ) throws NotAuthorizedException, BadRequestException { setRespondContentCommonHeaders( response, resource ); if( resource instanceof GetableResource ) { GetableResource gr = (GetableResource) resource; Long contentLength = gr.getContentLength(); if( contentLength != null ) { // often won't know until rendered response.setContentLengthHeader( contentLength ); } String acc = request.getAcceptHeader(); String ct = gr.getContentType( acc ); if( ct != null ) { response.setContentTypeHeader( ct ); } setCacheControl( gr, response, request.getAuthorization() ); sendContent( request, response, (GetableResource) resource, params, null, ct ); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tprotected void processRespond() {\n\r\n\t}", "@Override\r\n\tprotected void processRespond() {\n\r\n\t}", "public interface Resource extends Serializable\r\n{\r\n /**\r\n * Gets the resource id.\r\n * \r\n * @return the resource id\r\n */\r\n public String getResourceId();\...
[ "0.6086467", "0.6086467", "0.5828737", "0.5688422", "0.565742", "0.5652638", "0.56366867", "0.55902356", "0.5581607", "0.5581607", "0.555703", "0.553919", "0.5523295", "0.55153614", "0.5486477", "0.5486477", "0.5486477", "0.547931", "0.54744583", "0.54501396", "0.54317164", ...
0.5562156
10
log.debug( "not modified" );
public void respondNotModified( GetableResource resource, Response response, Request request ) { response.setStatus( Response.Status.SC_NOT_MODIFIED ); response.setDateHeader( new Date() ); String etag = eTagGenerator.generateEtag( resource ); if( etag != null ) { response.setEtag( etag ); } Date mod = resource.getModifiedDate(); if( mod != null ) { response.setLastModifiedHeader( resource.getModifiedDate() ); } setCacheControl( resource, response, request.getAuthorization() ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void log();", "public void logDebug(String str) {\n }", "public void debug() {\n\n }", "@Override\n public void log()\n {\n }", "public void log(boolean log) {\n this.log = log;\n }", "@Override\n public void logs() {\n \n }", "public void writeLog() {\n\n\t}",...
[ "0.6970644", "0.6889051", "0.6804336", "0.66549236", "0.64823675", "0.6446317", "0.64262956", "0.64262956", "0.64262956", "0.63587826", "0.63018566", "0.62464714", "0.6245395", "0.6240951", "0.6209695", "0.6193194", "0.6191581", "0.6171455", "0.6161468", "0.6140508", "0.61293...
0.0
-1
Este es el lugar en el que las subclases pueden crear los componentes hijos de esta ventana. Por defecto no hace nada y esto permite agregar componentes sin utilizar la herencia.
public abstract void createContents(Panel mainPanel);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createUIComponents() {\n }", "private void createUIComponents() {\n }", "private void createUIComponents() {\n }", "private void createUIComponents() {\n }", "private void createUIComponents() {\n }", "private void createUIComponents() {\n }", "private void createUICompon...
[ "0.7100026", "0.7100026", "0.7100026", "0.7100026", "0.7100026", "0.7100026", "0.7100026", "0.7100026", "0.7100026", "0.7100026", "0.7100026", "0.7100026", "0.7100026", "0.7100026", "0.7100026", "0.7100026", "0.7100026", "0.7100026", "0.7092966", "0.6744823", "0.6744823", "...
0.0
-1
Acciones de la ventana
public void open() { this.createContents(); WindowBuilder delegate = this.getDelegate(); delegate.setTitle(this.title); delegate.setContents(this); delegate.setIcon(this.iconImage); delegate.setMinHeight(this.minHeight); delegate.setMinWidth(this.minWidth); delegate.open(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void AumentarVictorias() {\r\n\t\tthis.victorias_actuales++;\r\n\t\tif (this.victorias_actuales >= 9) {\r\n\t\t\tthis.TituloNobiliario = 3;\r\n\t\t} else if (this.victorias_actuales >= 6) {\r\n\t\t\tthis.TituloNobiliario = 2;\r\n\t\t} else if (this.victorias_actuales >= 3) {\r\n\t\t\tthis.TituloNobiliario =...
[ "0.67261803", "0.6277365", "0.6214856", "0.6187422", "0.6119067", "0.60428494", "0.6031316", "0.6015463", "0.5943088", "0.59056824", "0.5869456", "0.5869456", "0.5834801", "0.58310664", "0.58075136", "0.57862824", "0.5745315", "0.5732939", "0.57235533", "0.5716404", "0.570701...
0.0
-1
New method added for validation before showing
public void validate() { Class<?> clazz = this.getModelObject().getClass(); if (!ArenaUtils.isObservable(clazz)) { throw new RuntimeException("La clase " + clazz.getName() + " no tiene alguna de estas annotations " + ArenaUtils.getRequiredAnnotationForModels() + " que son necesarias para ser modelo de una vista en Arena"); } // TODO: Validate children bindings? }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onValidateState() {\n // Case first time\n if (mNewslettersForm == null) {\n triggerGetNewslettersForm();\n }\n // Case rotate restore the form\n else if(mNewsletterScroll.getChildCount() == 0){\n showDynamicForm(mNewslettersForm);\n }\n ...
[ "0.70409596", "0.6886265", "0.67702025", "0.6476921", "0.646238", "0.646238", "0.646238", "0.64204746", "0.6411148", "0.6402674", "0.63625324", "0.6361715", "0.6358083", "0.6331086", "0.6319043", "0.6306493", "0.6306493", "0.6296413", "0.6279096", "0.62602717", "0.62602717", ...
0.0
-1
Notified when the game state changes.
public interface StateMachineListener { //================| Public Methods |==================================== /** * Notification that the state of the game has changed. * @param oldState * @param newState */ void stateChanged( final GameState oldState, final GameState newState ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void stateChanged( final GameState oldState, final GameState newState );", "protected void stateChanged() {\r\n\t\tsetChanged();\r\n\t\tnotifyObservers();\r\n\t}", "@Override\n public void gameStateChanged()\n {\n update();\n \n // check for \"game over\" or \"game won\"\n if ...
[ "0.7819462", "0.7428454", "0.73119855", "0.7183515", "0.7181132", "0.7156822", "0.6999093", "0.69351184", "0.6930998", "0.69239664", "0.6915719", "0.6909841", "0.68942434", "0.68692905", "0.6865668", "0.6847684", "0.6824304", "0.6815486", "0.6786147", "0.6690677", "0.6684804"...
0.7452455
1
================| Public Methods |==================================== Notification that the state of the game has changed.
void stateChanged( final GameState oldState, final GameState newState );
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isGameChanged() {\n return gameChanged;\n }", "public void setGameChanged(boolean gameChanged) {\n this.gameChanged = gameChanged;\n }", "private void updateState() {\n switch (game.getGameState()) {\n case GAME:\n gamePlay();\n ...
[ "0.7632953", "0.73944813", "0.73886424", "0.73204696", "0.7035573", "0.70190454", "0.70040673", "0.6965906", "0.69623935", "0.69374025", "0.68283796", "0.682307", "0.6802343", "0.67947274", "0.6780252", "0.67698604", "0.6749111", "0.6686438", "0.667623", "0.6648358", "0.66387...
0.7906438
0
log.debug("Option Page opened successfully"); Reporter.log("Option Page opened successfully"); Reporter.log("Screenshot");
@Test(dataProvider="getData",enabled=true) public void addStocks(String StockName,String ExpireDate) throws InterruptedException, IOException { driver.findElement(By.id(OR.getProperty("searchText"))).clear(); driver.findElement(By.id(OR.getProperty("searchText"))).sendKeys(StockName); //JavascriptExecutor js = (JavascriptExecutor) driver; String lastThursday=TestUtil.getLastThrusdayofMonth(0); final String DATE_FORMAT_NOW = "dd-MMM-yyyy"; Calendar cal = Calendar.getInstance(); SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT_NOW); String date = sdf.format(new Date()); if (date.compareTo(lastThursday) > 0) { System.out.println("Date1 is after Date2"); lastThursday= TestUtil.getLastThrusdayofMonth(1); } // } else if (date.compareTo(lastThursday) < 0) { // System.out.println("Date1 is before Date2"); // } else if (date.compareTo(lastThursday) == 0) { // System.out.println("Date1 is equal to Date2"); // } System.out.println(date); String datelastthursday=lastThursday.replaceAll("-", ""); System.out.println("LastThursday :"+datelastthursday); driver.findElement(By.xpath(("//input[contains(@src,'"+OR.getProperty("gobutton")+"')]"))).click(); Select expirydate= new Select(driver.findElement(By.id(OR.getProperty("expire")))); List<WebElement>allOptions= expirydate.getOptions(); //allOptions.size(); for(int i=1;i<=1;i++) { System.out.println("option expiry date Size is :"+allOptions.size()+"date"+allOptions.get(i).getText()); String Expiredate=allOptions.get(i).getText(); expirydate.selectByVisibleText(Expiredate); driver.findElement(By.linkText("Hide")).click(); Thread.sleep(500); File scrFile=((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE); // String Month=new SimpleDateFormat("MMM").format(cal.getTime()); Thread.sleep(500); File file = new File("D:\\Pratice\\"+datelastthursday+"\\Nifty50Stocks\\"+StockName); System.out.println("D:\\Pratice\\"+datelastthursday+"\\Nifty50Stocks\\"+StockName); if(!file.exists()) { file.mkdirs(); } String screenshotName = StockName+"_"+(cal.get(Calendar.MONTH)+1)+"_"+cal.get(Calendar.DAY_OF_MONTH)+"_"+cal.get(Calendar.HOUR_OF_DAY)+"_"+cal.get(Calendar.MINUTE) + ".png"; System.out.println(screenshotName); // Files.copy(scrFile, // new File("D:\\Pratice\\"+Expiredate+"\\"+StockName+"\\"+screenshotName)); //js.executeScript("window.scrollBy(0,1000)"); //Shutterbug.shootPage(driver,ScrollStrategy.VERTICALLY,3000,true).withName(screenshotName).save("D:\\Pratice\\"+datelastthursday+"\\Nifty50Stocks\\"+StockName+"\\"); FileUtils.copyFile(scrFile, new File("D:\\Pratice\\"+datelastthursday+"\\Nifty50Stocks\\"+StockName+"\\"+screenshotName)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void verifySubmitMeterReadingLandingPageLink()\t\n{\t\n\tReport.createTestLogHeader(\"Anonymous Submit meter read\", \"Verify the link navigations of Submit meter read landing page\");\n\t\tnew SubmitMeterReadAction()\n\t\t.openSMRpage1()\n\t\t.verifySu...
[ "0.6261917", "0.6206559", "0.6156924", "0.61195236", "0.6099701", "0.6080516", "0.6079332", "0.60510385", "0.59980905", "0.59882843", "0.59708923", "0.5962411", "0.5932018", "0.59150803", "0.5901747", "0.5866957", "0.584138", "0.5805777", "0.5799823", "0.577807", "0.5771884",...
0.0
-1
If any String is empty, return the remaining characters of other String
public int minDis(String s1, String s2, int n, int m, int[][]dp){ if(n == 0) return m; if(m == 0) return n; // To check if given n & m has already been executed if(dp[n][m] != -1) return dp[n][m]; // If characters are equal, execute recursive function for n-1, m-1 if(s1.charAt(n-1) == s2.charAt(m-1)) { if(dp[n-1][m-1] == -1) { return dp[n][m] = minDis(s1, s2, n-1, m-1, dp); } else return dp[n][m] = dp[n-1][m-1]; } //If characters are not equal, we need to //Find the minimum cost out of all 3 operations. else { int m1, m2, m3; // temp variables if(dp[n-1][m] != -1) { m1 = dp[n - 1][m]; } else { m1 = minDis(s1, s2, n - 1, m, dp); } if(dp[n][m - 1] != -1) { m2 = dp[n][m - 1]; } else { m2 = minDis(s1, s2, n, m - 1, dp); } if(dp[n - 1][m - 1] != -1) { m3 = dp[n - 1][m - 1]; } else { m3 = minDis(s1, s2, n - 1, m - 1, dp); } return dp[n][m] = 1 + Math.min(m1, Math.min(m2, m3)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String lastChars(String a, String b) {\r\n String result = \"\";\r\n\r\n if (a.isEmpty()) {\r\n result += \"@\";\r\n } else {\r\n result += a.charAt(0);\r\n }\r\n\r\n if (b.isEmpty()) {\r\n result += \"@\";\r\n } else {\r\n result += b.charAt(b.length() - 1);\r\n }\r...
[ "0.62489307", "0.59167206", "0.5738798", "0.56325966", "0.55470306", "0.5422873", "0.5420981", "0.5398637", "0.5388317", "0.5380414", "0.537982", "0.5377568", "0.53720206", "0.53710246", "0.5322002", "0.5284947", "0.52489924", "0.52272326", "0.52270776", "0.52251303", "0.5183...
0.0
-1
Transform map of Samples to sorted list of Samples
public static List<Sample> sortResults(final Map<Long, Sample> map, final Integer currentOffsetMillis) { final Sample[] samples = map.values().toArray(new Sample[0]); Arrays.sort(samples, new Comparator<Sample>() { @Override public int compare(Sample o1, Sample o2) { return Long.compare(o1.dateTime, o2.dateTime); } }); int lastOffsetMillis = -1; for(final Sample sample : samples) { if(sample.offsetMillis == null) { if(lastOffsetMillis == -1) { sample.offsetMillis = currentOffsetMillis; } else { sample.offsetMillis = lastOffsetMillis; } } lastOffsetMillis = sample.offsetMillis; } return Lists.newArrayList(samples); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Map<String, Double> sortByValues(Map<String, Double> map_to_sort){\n\tList<Map.Entry<String,Double>> ranklist = new LinkedList<Map.Entry<String,Double>>(map_to_sort.entrySet());\n\tCollections.sort(ranklist, new Comparator<Map.Entry<String, Double>>(){\n\t\tpublic int compare(Map.Entry<String,Double> o1, Map.Entr...
[ "0.5930201", "0.5605928", "0.56006885", "0.5572643", "0.5516527", "0.53869224", "0.5385425", "0.5384425", "0.53793323", "0.5369457", "0.5341422", "0.5325513", "0.5324796", "0.5320519", "0.5317648", "0.5309514", "0.52669364", "0.52642506", "0.52012587", "0.5193975", "0.5189637...
0.6822678
0
Overrides map values with data from deviceDataList
public static Optional<Map<Long, Sample>> populateMap(final List<DeviceData> deviceDataList, final Sensor sensorName, final Optional<Device.Color> optionalColor, final Optional<Calibration> calibrationOptional, final Boolean useAudioPeakEnergy) { if(deviceDataList == null) { LOGGER.error("deviceDataList is null for sensor {}", sensorName); return Optional.absent(); } if(deviceDataList.isEmpty()) { return Optional.absent(); } final Device.Color color = optionalColor.or(Device.DEFAULT_COLOR); final Map<Long, Sample> map = new HashMap<>(); for(final DeviceData deviceData: deviceDataList) { final Long newKey = deviceData.dateTimeUTC.getMillis(); // TODO: refactor this final CalibratedDeviceData calibratedDeviceData = new CalibratedDeviceData(deviceData, color, calibrationOptional); float sensorValue = 0; if(sensorName.equals(Sensor.HUMIDITY)) { sensorValue = calibratedDeviceData.humidity(); } else if(sensorName.equals(Sensor.TEMPERATURE)) { sensorValue = calibratedDeviceData.temperature(); } else if (sensorName.equals(Sensor.PARTICULATES) && calibrationOptional.isPresent()) { sensorValue = calibratedDeviceData.particulates(); } else if (sensorName.equals(Sensor.LIGHT)) { sensorValue = calibratedDeviceData.lux(); } else if (sensorName.equals(Sensor.SOUND)) { sensorValue = calibratedDeviceData.sound(useAudioPeakEnergy); } else if(sensorName.equals(Sensor.WAVE_COUNT)) { sensorValue = deviceData.waveCount; } else if(sensorName.equals(Sensor.HOLD_COUNT)) { sensorValue = deviceData.holdCount; } else if(sensorName.equals(Sensor.SOUND_NUM_DISTURBANCES)) { sensorValue = deviceData.audioNumDisturbances; } else if(sensorName.equals(Sensor.SOUND_PEAK_ENERGY)) { sensorValue = calibratedDeviceData.soundPeakEnergy(); } else if(sensorName.equals(Sensor.SOUND_PEAK_DISTURBANCE)) { sensorValue = calibratedDeviceData.soundPeakDisturbance(); } else { LOGGER.warn("Sensor {} is not supported. Returning early", sensorName); return Optional.absent(); } map.put(newKey, new Sample(newKey, sensorValue, deviceData.offsetMillis)); } return Optional.of(map); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void updateDataListMap(List<Map<String, Object>> dataList) {\n\t\t\n\t}", "private void prepareData() {\n devices.clear();\n\n Set<String> s = Blue.getInstance().devices.keySet();\n Iterator<String> it = s.iterator();\n String address;\n while (it.hasNext())...
[ "0.6405566", "0.6358624", "0.60532564", "0.5738608", "0.5723466", "0.57145125", "0.56633574", "0.56537825", "0.5609854", "0.55085963", "0.550625", "0.54748136", "0.54531646", "0.54437476", "0.54335123", "0.54041284", "0.5360409", "0.5357053", "0.5331968", "0.5329261", "0.5309...
0.5661439
7
Generates a map with every bucket containing empty sample
public static Map<Long, Sample> generateEmptyMap(final int numberOfBuckets, final DateTime startDate, final int slotDurationInMinutes, final int missingSampleDefaultValue) { final Map<Long, Sample> map = Maps.newHashMap(); for(int i = 0; i < numberOfBuckets; i++) { final Long key = startDate.minusMinutes(i * slotDurationInMinutes).getMillis(); LOGGER.trace("Inserting {}", key); map.put(key, new Sample(key, missingSampleDefaultValue, null)); } LOGGER.trace("Map size = {}", map.size()); return map; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void clear() {\r\n\t\tbuckets = new Object[numBuckets];\r\n\t\tfor (int i = 0; i < numBuckets; i++) {\r\n\t\t\tbuckets[i] = new Bucket();\r\n\t\t}\r\n\t}", "public void makeEmpty() {\n for (int i = 0; i < buckets.length; i++) {\n buckets[i] = new SList();\n }\n size ...
[ "0.61650395", "0.5983629", "0.59113073", "0.5908092", "0.59076625", "0.58975035", "0.5808725", "0.5798646", "0.5784525", "0.5720061", "0.5718127", "0.5714617", "0.56926346", "0.5691359", "0.5627822", "0.5624522", "0.56241447", "0.56231326", "0.56217384", "0.5621071", "0.56189...
0.7115584
0
Merge both result sets and returns an immutable copy
public static ImmutableMap<Long, Sample> mergeResults(final Map<Long, Sample> generated, final Map<Long, Sample> data) { final Map<Long, Sample> all = new HashMap<>(); all.putAll(generated); all.putAll(data); return ImmutableMap.copyOf(all); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static <T> Set<T> union(Collection<T> c1, Collection<T> c2) {\n return Stream.concat(c1.stream(), c2.stream()).collect(Collectors.toUnmodifiableSet());\n }", "public ZYSet<ElementType> union(ZYSet<ElementType> otherSet){\n ZYSet<ElementType> result = new ZYArraySet<ElementType>();\n for(ElementT...
[ "0.6483606", "0.63853574", "0.63283247", "0.63165754", "0.6200339", "0.6117245", "0.6103563", "0.60584825", "0.60207736", "0.6020623", "0.599542", "0.5957694", "0.595232", "0.5901381", "0.589548", "0.5886281", "0.58689725", "0.58396614", "0.58341247", "0.5829812", "0.5828341"...
0.50261754
96
The Package for the model. It contains accessors for the meta objects to represent each class, each feature of each class, each enum, and each data type
public interface Demo1Package extends EPackage { /** * The package name. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ String eNAME = "demo1"; /** * The package namespace URI. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ String eNS_URI = "http://www.devoxx2012.com/xtext/demo1/Demo1"; /** * The package namespace name. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ String eNS_PREFIX = "demo1"; /** * The singleton instance of the package. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ Demo1Package eINSTANCE = com.devoxx2012.xtext.demo1.demo1.impl.Demo1PackageImpl.init(); /** * The meta object id for the '{@link com.devoxx2012.xtext.demo1.demo1.impl.ModelImpl <em>Model</em>}' class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see com.devoxx2012.xtext.demo1.demo1.impl.ModelImpl * @see com.devoxx2012.xtext.demo1.demo1.impl.Demo1PackageImpl#getModel() * @generated */ int MODEL = 0; /** * The feature id for the '<em><b>Categories</b></em>' containment reference list. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated * @ordered */ int MODEL__CATEGORIES = 0; /** * The feature id for the '<em><b>Rule</b></em>' containment reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated * @ordered */ int MODEL__RULE = 1; /** * The number of structural features of the '<em>Model</em>' class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated * @ordered */ int MODEL_FEATURE_COUNT = 2; /** * The meta object id for the '{@link com.devoxx2012.xtext.demo1.demo1.impl.CategoryImpl <em>Category</em>}' class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see com.devoxx2012.xtext.demo1.demo1.impl.CategoryImpl * @see com.devoxx2012.xtext.demo1.demo1.impl.Demo1PackageImpl#getCategory() * @generated */ int CATEGORY = 1; /** * The feature id for the '<em><b>Name</b></em>' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated * @ordered */ int CATEGORY__NAME = 0; /** * The number of structural features of the '<em>Category</em>' class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated * @ordered */ int CATEGORY_FEATURE_COUNT = 1; /** * The meta object id for the '{@link com.devoxx2012.xtext.demo1.demo1.impl.RuleImpl <em>Rule</em>}' class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see com.devoxx2012.xtext.demo1.demo1.impl.RuleImpl * @see com.devoxx2012.xtext.demo1.demo1.impl.Demo1PackageImpl#getRule() * @generated */ int RULE = 2; /** * The feature id for the '<em><b>First</b></em>' containment reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated * @ordered */ int RULE__FIRST = 0; /** * The feature id for the '<em><b>Next</b></em>' containment reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated * @ordered */ int RULE__NEXT = 1; /** * The number of structural features of the '<em>Rule</em>' class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated * @ordered */ int RULE_FEATURE_COUNT = 2; /** * The meta object id for the '{@link com.devoxx2012.xtext.demo1.demo1.impl.RuleExpressionImpl <em>Rule Expression</em>}' class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see com.devoxx2012.xtext.demo1.demo1.impl.RuleExpressionImpl * @see com.devoxx2012.xtext.demo1.demo1.impl.Demo1PackageImpl#getRuleExpression() * @generated */ int RULE_EXPRESSION = 3; /** * The feature id for the '<em><b>Test</b></em>' containment reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated * @ordered */ int RULE_EXPRESSION__TEST = 0; /** * The feature id for the '<em><b>Ratio</b></em>' containment reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated * @ordered */ int RULE_EXPRESSION__RATIO = 1; /** * The number of structural features of the '<em>Rule Expression</em>' class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated * @ordered */ int RULE_EXPRESSION_FEATURE_COUNT = 2; /** * The meta object id for the '{@link com.devoxx2012.xtext.demo1.demo1.impl.TestExpressionImpl <em>Test Expression</em>}' class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see com.devoxx2012.xtext.demo1.demo1.impl.TestExpressionImpl * @see com.devoxx2012.xtext.demo1.demo1.impl.Demo1PackageImpl#getTestExpression() * @generated */ int TEST_EXPRESSION = 4; /** * The feature id for the '<em><b>Category</b></em>' reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated * @ordered */ int TEST_EXPRESSION__CATEGORY = 0; /** * The number of structural features of the '<em>Test Expression</em>' class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated * @ordered */ int TEST_EXPRESSION_FEATURE_COUNT = 1; /** * The meta object id for the '{@link com.devoxx2012.xtext.demo1.demo1.impl.RatioExpressionImpl <em>Ratio Expression</em>}' class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see com.devoxx2012.xtext.demo1.demo1.impl.RatioExpressionImpl * @see com.devoxx2012.xtext.demo1.demo1.impl.Demo1PackageImpl#getRatioExpression() * @generated */ int RATIO_EXPRESSION = 5; /** * The feature id for the '<em><b>Ratio</b></em>' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated * @ordered */ int RATIO_EXPRESSION__RATIO = 0; /** * The number of structural features of the '<em>Ratio Expression</em>' class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated * @ordered */ int RATIO_EXPRESSION_FEATURE_COUNT = 1; /** * Returns the meta object for class '{@link com.devoxx2012.xtext.demo1.demo1.Model <em>Model</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for class '<em>Model</em>'. * @see com.devoxx2012.xtext.demo1.demo1.Model * @generated */ EClass getModel(); /** * Returns the meta object for the containment reference list '{@link com.devoxx2012.xtext.demo1.demo1.Model#getCategories <em>Categories</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the containment reference list '<em>Categories</em>'. * @see com.devoxx2012.xtext.demo1.demo1.Model#getCategories() * @see #getModel() * @generated */ EReference getModel_Categories(); /** * Returns the meta object for the containment reference '{@link com.devoxx2012.xtext.demo1.demo1.Model#getRule <em>Rule</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the containment reference '<em>Rule</em>'. * @see com.devoxx2012.xtext.demo1.demo1.Model#getRule() * @see #getModel() * @generated */ EReference getModel_Rule(); /** * Returns the meta object for class '{@link com.devoxx2012.xtext.demo1.demo1.Category <em>Category</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for class '<em>Category</em>'. * @see com.devoxx2012.xtext.demo1.demo1.Category * @generated */ EClass getCategory(); /** * Returns the meta object for the attribute '{@link com.devoxx2012.xtext.demo1.demo1.Category#getName <em>Name</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the attribute '<em>Name</em>'. * @see com.devoxx2012.xtext.demo1.demo1.Category#getName() * @see #getCategory() * @generated */ EAttribute getCategory_Name(); /** * Returns the meta object for class '{@link com.devoxx2012.xtext.demo1.demo1.Rule <em>Rule</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for class '<em>Rule</em>'. * @see com.devoxx2012.xtext.demo1.demo1.Rule * @generated */ EClass getRule(); /** * Returns the meta object for the containment reference '{@link com.devoxx2012.xtext.demo1.demo1.Rule#getFirst <em>First</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the containment reference '<em>First</em>'. * @see com.devoxx2012.xtext.demo1.demo1.Rule#getFirst() * @see #getRule() * @generated */ EReference getRule_First(); /** * Returns the meta object for the containment reference '{@link com.devoxx2012.xtext.demo1.demo1.Rule#getNext <em>Next</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the containment reference '<em>Next</em>'. * @see com.devoxx2012.xtext.demo1.demo1.Rule#getNext() * @see #getRule() * @generated */ EReference getRule_Next(); /** * Returns the meta object for class '{@link com.devoxx2012.xtext.demo1.demo1.RuleExpression <em>Rule Expression</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for class '<em>Rule Expression</em>'. * @see com.devoxx2012.xtext.demo1.demo1.RuleExpression * @generated */ EClass getRuleExpression(); /** * Returns the meta object for the containment reference '{@link com.devoxx2012.xtext.demo1.demo1.RuleExpression#getTest <em>Test</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the containment reference '<em>Test</em>'. * @see com.devoxx2012.xtext.demo1.demo1.RuleExpression#getTest() * @see #getRuleExpression() * @generated */ EReference getRuleExpression_Test(); /** * Returns the meta object for the containment reference '{@link com.devoxx2012.xtext.demo1.demo1.RuleExpression#getRatio <em>Ratio</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the containment reference '<em>Ratio</em>'. * @see com.devoxx2012.xtext.demo1.demo1.RuleExpression#getRatio() * @see #getRuleExpression() * @generated */ EReference getRuleExpression_Ratio(); /** * Returns the meta object for class '{@link com.devoxx2012.xtext.demo1.demo1.TestExpression <em>Test Expression</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for class '<em>Test Expression</em>'. * @see com.devoxx2012.xtext.demo1.demo1.TestExpression * @generated */ EClass getTestExpression(); /** * Returns the meta object for the reference '{@link com.devoxx2012.xtext.demo1.demo1.TestExpression#getCategory <em>Category</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the reference '<em>Category</em>'. * @see com.devoxx2012.xtext.demo1.demo1.TestExpression#getCategory() * @see #getTestExpression() * @generated */ EReference getTestExpression_Category(); /** * Returns the meta object for class '{@link com.devoxx2012.xtext.demo1.demo1.RatioExpression <em>Ratio Expression</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for class '<em>Ratio Expression</em>'. * @see com.devoxx2012.xtext.demo1.demo1.RatioExpression * @generated */ EClass getRatioExpression(); /** * Returns the meta object for the attribute '{@link com.devoxx2012.xtext.demo1.demo1.RatioExpression#getRatio <em>Ratio</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the attribute '<em>Ratio</em>'. * @see com.devoxx2012.xtext.demo1.demo1.RatioExpression#getRatio() * @see #getRatioExpression() * @generated */ EAttribute getRatioExpression_Ratio(); /** * Returns the factory that creates the instances of the model. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the factory that creates the instances of the model. * @generated */ Demo1Factory getDemo1Factory(); /** * <!-- begin-user-doc --> * Defines literals for the meta objects that represent * <ul> * <li>each class,</li> * <li>each feature of each class,</li> * <li>each enum,</li> * <li>and each data type</li> * </ul> * <!-- end-user-doc --> * @generated */ interface Literals { /** * The meta object literal for the '{@link com.devoxx2012.xtext.demo1.demo1.impl.ModelImpl <em>Model</em>}' class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see com.devoxx2012.xtext.demo1.demo1.impl.ModelImpl * @see com.devoxx2012.xtext.demo1.demo1.impl.Demo1PackageImpl#getModel() * @generated */ EClass MODEL = eINSTANCE.getModel(); /** * The meta object literal for the '<em><b>Categories</b></em>' containment reference list feature. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ EReference MODEL__CATEGORIES = eINSTANCE.getModel_Categories(); /** * The meta object literal for the '<em><b>Rule</b></em>' containment reference feature. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ EReference MODEL__RULE = eINSTANCE.getModel_Rule(); /** * The meta object literal for the '{@link com.devoxx2012.xtext.demo1.demo1.impl.CategoryImpl <em>Category</em>}' class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see com.devoxx2012.xtext.demo1.demo1.impl.CategoryImpl * @see com.devoxx2012.xtext.demo1.demo1.impl.Demo1PackageImpl#getCategory() * @generated */ EClass CATEGORY = eINSTANCE.getCategory(); /** * The meta object literal for the '<em><b>Name</b></em>' attribute feature. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ EAttribute CATEGORY__NAME = eINSTANCE.getCategory_Name(); /** * The meta object literal for the '{@link com.devoxx2012.xtext.demo1.demo1.impl.RuleImpl <em>Rule</em>}' class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see com.devoxx2012.xtext.demo1.demo1.impl.RuleImpl * @see com.devoxx2012.xtext.demo1.demo1.impl.Demo1PackageImpl#getRule() * @generated */ EClass RULE = eINSTANCE.getRule(); /** * The meta object literal for the '<em><b>First</b></em>' containment reference feature. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ EReference RULE__FIRST = eINSTANCE.getRule_First(); /** * The meta object literal for the '<em><b>Next</b></em>' containment reference feature. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ EReference RULE__NEXT = eINSTANCE.getRule_Next(); /** * The meta object literal for the '{@link com.devoxx2012.xtext.demo1.demo1.impl.RuleExpressionImpl <em>Rule Expression</em>}' class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see com.devoxx2012.xtext.demo1.demo1.impl.RuleExpressionImpl * @see com.devoxx2012.xtext.demo1.demo1.impl.Demo1PackageImpl#getRuleExpression() * @generated */ EClass RULE_EXPRESSION = eINSTANCE.getRuleExpression(); /** * The meta object literal for the '<em><b>Test</b></em>' containment reference feature. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ EReference RULE_EXPRESSION__TEST = eINSTANCE.getRuleExpression_Test(); /** * The meta object literal for the '<em><b>Ratio</b></em>' containment reference feature. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ EReference RULE_EXPRESSION__RATIO = eINSTANCE.getRuleExpression_Ratio(); /** * The meta object literal for the '{@link com.devoxx2012.xtext.demo1.demo1.impl.TestExpressionImpl <em>Test Expression</em>}' class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see com.devoxx2012.xtext.demo1.demo1.impl.TestExpressionImpl * @see com.devoxx2012.xtext.demo1.demo1.impl.Demo1PackageImpl#getTestExpression() * @generated */ EClass TEST_EXPRESSION = eINSTANCE.getTestExpression(); /** * The meta object literal for the '<em><b>Category</b></em>' reference feature. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ EReference TEST_EXPRESSION__CATEGORY = eINSTANCE.getTestExpression_Category(); /** * The meta object literal for the '{@link com.devoxx2012.xtext.demo1.demo1.impl.RatioExpressionImpl <em>Ratio Expression</em>}' class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see com.devoxx2012.xtext.demo1.demo1.impl.RatioExpressionImpl * @see com.devoxx2012.xtext.demo1.demo1.impl.Demo1PackageImpl#getRatioExpression() * @generated */ EClass RATIO_EXPRESSION = eINSTANCE.getRatioExpression(); /** * The meta object literal for the '<em><b>Ratio</b></em>' attribute feature. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ EAttribute RATIO_EXPRESSION__RATIO = eINSTANCE.getRatioExpression_Ratio(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "IoT_metamodelPackage getIoT_metamodelPackage();", "public void createPackageContents()\n {\n if (isCreated) return;\n isCreated = true;\n\n // Create classes and their features\n modelEClass = createEClass(MODEL);\n createEReference(modelEClass, MODEL__AGENT);\n\n agentEClass = createEClass(AG...
[ "0.6520589", "0.6064371", "0.60479885", "0.6019442", "0.5996662", "0.5954759", "0.59531903", "0.5933314", "0.5918253", "0.59102905", "0.5901044", "0.5899082", "0.5875612", "0.58523774", "0.58457637", "0.583782", "0.5829964", "0.5825108", "0.5811178", "0.58085793", "0.5808574"...
0.0
-1
Returns the factory that creates the instances of the model.
Demo1Factory getDemo1Factory();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ModelsFactory getModelsFactory();", "public ObjectifyFactory factory() {\n return ofy().factory();\n }", "TestModelFactory getTestModelFactory();", "BehaviouralModelFactory getBehaviouralModelFactory();", "public static Factory factory() {\n return ext_dbf::new;\n }", "public ValueFactory<K...
[ "0.7365279", "0.7147646", "0.7042554", "0.66732574", "0.66433585", "0.6542524", "0.6426967", "0.6378293", "0.63225335", "0.62815636", "0.6185782", "0.61756575", "0.6168043", "0.6150566", "0.61496305", "0.61323225", "0.6131665", "0.6126879", "0.61266255", "0.6124763", "0.61157...
0.5840914
39
Defines literals for the meta objects that represent each class, each feature of each class, each enum, and each data type
interface Literals { /** * The meta object literal for the '{@link com.devoxx2012.xtext.demo1.demo1.impl.ModelImpl <em>Model</em>}' class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see com.devoxx2012.xtext.demo1.demo1.impl.ModelImpl * @see com.devoxx2012.xtext.demo1.demo1.impl.Demo1PackageImpl#getModel() * @generated */ EClass MODEL = eINSTANCE.getModel(); /** * The meta object literal for the '<em><b>Categories</b></em>' containment reference list feature. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ EReference MODEL__CATEGORIES = eINSTANCE.getModel_Categories(); /** * The meta object literal for the '<em><b>Rule</b></em>' containment reference feature. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ EReference MODEL__RULE = eINSTANCE.getModel_Rule(); /** * The meta object literal for the '{@link com.devoxx2012.xtext.demo1.demo1.impl.CategoryImpl <em>Category</em>}' class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see com.devoxx2012.xtext.demo1.demo1.impl.CategoryImpl * @see com.devoxx2012.xtext.demo1.demo1.impl.Demo1PackageImpl#getCategory() * @generated */ EClass CATEGORY = eINSTANCE.getCategory(); /** * The meta object literal for the '<em><b>Name</b></em>' attribute feature. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ EAttribute CATEGORY__NAME = eINSTANCE.getCategory_Name(); /** * The meta object literal for the '{@link com.devoxx2012.xtext.demo1.demo1.impl.RuleImpl <em>Rule</em>}' class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see com.devoxx2012.xtext.demo1.demo1.impl.RuleImpl * @see com.devoxx2012.xtext.demo1.demo1.impl.Demo1PackageImpl#getRule() * @generated */ EClass RULE = eINSTANCE.getRule(); /** * The meta object literal for the '<em><b>First</b></em>' containment reference feature. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ EReference RULE__FIRST = eINSTANCE.getRule_First(); /** * The meta object literal for the '<em><b>Next</b></em>' containment reference feature. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ EReference RULE__NEXT = eINSTANCE.getRule_Next(); /** * The meta object literal for the '{@link com.devoxx2012.xtext.demo1.demo1.impl.RuleExpressionImpl <em>Rule Expression</em>}' class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see com.devoxx2012.xtext.demo1.demo1.impl.RuleExpressionImpl * @see com.devoxx2012.xtext.demo1.demo1.impl.Demo1PackageImpl#getRuleExpression() * @generated */ EClass RULE_EXPRESSION = eINSTANCE.getRuleExpression(); /** * The meta object literal for the '<em><b>Test</b></em>' containment reference feature. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ EReference RULE_EXPRESSION__TEST = eINSTANCE.getRuleExpression_Test(); /** * The meta object literal for the '<em><b>Ratio</b></em>' containment reference feature. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ EReference RULE_EXPRESSION__RATIO = eINSTANCE.getRuleExpression_Ratio(); /** * The meta object literal for the '{@link com.devoxx2012.xtext.demo1.demo1.impl.TestExpressionImpl <em>Test Expression</em>}' class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see com.devoxx2012.xtext.demo1.demo1.impl.TestExpressionImpl * @see com.devoxx2012.xtext.demo1.demo1.impl.Demo1PackageImpl#getTestExpression() * @generated */ EClass TEST_EXPRESSION = eINSTANCE.getTestExpression(); /** * The meta object literal for the '<em><b>Category</b></em>' reference feature. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ EReference TEST_EXPRESSION__CATEGORY = eINSTANCE.getTestExpression_Category(); /** * The meta object literal for the '{@link com.devoxx2012.xtext.demo1.demo1.impl.RatioExpressionImpl <em>Ratio Expression</em>}' class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see com.devoxx2012.xtext.demo1.demo1.impl.RatioExpressionImpl * @see com.devoxx2012.xtext.demo1.demo1.impl.Demo1PackageImpl#getRatioExpression() * @generated */ EClass RATIO_EXPRESSION = eINSTANCE.getRatioExpression(); /** * The meta object literal for the '<em><b>Ratio</b></em>' attribute feature. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ EAttribute RATIO_EXPRESSION__RATIO = eINSTANCE.getRatioExpression_Ratio(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void generateCoreTypes() {\n\t\tvoidDt = new VoidDataType(progDataTypes);\n\t\tArrayList<TypeMap> typeList = new ArrayList<>();\n\t\ttypeList.add(new TypeMap(DataType.DEFAULT, \"undefined\", \"unknown\", false, false));\n\n\t\tfor (DataType dt : Undefined.getUndefinedDataTypes()) {\n\t\t\ttypeList.add(new ...
[ "0.6004248", "0.593828", "0.58776146", "0.58741474", "0.58513933", "0.57415634", "0.57375205", "0.565487", "0.5516946", "0.5477604", "0.5466317", "0.5436396", "0.5432484", "0.5426368", "0.5408811", "0.54076225", "0.5378516", "0.53674823", "0.536496", "0.5362954", "0.53425676"...
0.53437465
20
TODO Autogenerated method stub
@Override public void actionPerformed(ActionEvent e) { if (JOptionPane.showConfirmDialog(null, "Are you sure want to log out?", "WARNING", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) { client.sendCloseRequest(); MainUI.this.dispose(); LoginBox loginBox = new LoginBox(); } else { return; } }
{ "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
Gets the file count.
public Number getFileCount() { return (this.fileCount); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getFileCount();", "int getFilesCount();", "int getFilesCount();", "int getFileInfoCount();", "public int getFilesCount() throws YAPI_Exception\n {\n return get_filesCount();\n }", "public int getFilesCount() {\n if (filesBuilder_ == null) {\n return file...
[ "0.86168724", "0.8563216", "0.8563216", "0.8351743", "0.8187373", "0.8074055", "0.799602", "0.7972837", "0.7841611", "0.7825709", "0.7803201", "0.76704764", "0.75764406", "0.75337964", "0.7499124", "0.74756503", "0.74742085", "0.74652755", "0.74521863", "0.74313474", "0.73860...
0.868969
0
Returns true if torrent is freeleech.
public boolean isFreeTorrent() { return freeTorrent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasPakringFree();", "boolean hasPakringFree();", "public boolean isTollFree() \n\t{\n\t\treturn getNumber().charAt(1)=='8';\n\t}", "public Boolean isFree()\n\t{\n\t\treturn free;\n\t}", "boolean isAvailable( long millis );", "public boolean isAvailable() {\n return LocalTime.now().isAfter(...
[ "0.66138464", "0.66138464", "0.66023856", "0.65865725", "0.63166463", "0.6276852", "0.6251117", "0.62364423", "0.6222207", "0.6221322", "0.62184143", "0.62166154", "0.6211709", "0.6191419", "0.6175865", "0.6157829", "0.6135231", "0.60927236", "0.6084871", "0.60612357", "0.605...
0.81392163
0
Gets the group id.
public Number getGroupId() { return (this.groupId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getGroup_id() {\n return group_id;\n }", "public Long getGroupID()\n {\n return groupID;\n }", "java.lang.String getGroupId();", "java.lang.String getGroupId();", "Integer getGroupId();", "public Integer getGroupId() {\n return (Integer) get(1);\n }", "publi...
[ "0.81456995", "0.7803927", "0.7733875", "0.7733875", "0.77185756", "0.7708337", "0.7657846", "0.7629085", "0.76216346", "0.7616358", "0.76016754", "0.7566604", "0.7566604", "0.7566604", "0.75550663", "0.7528959", "0.75259805", "0.7523567", "0.7523567", "0.75134164", "0.751341...
0.76087964
10
Returns true if the torrent has a cue.
public boolean hasCue() { return hasCue; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSetCaption()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(CAPTION$0) != 0;\n }\n }", "public boolean hasC() {\n return c_ != null;\n }", "public boolean hasTracks() {\n for (Mounted mEquip...
[ "0.5771072", "0.57570016", "0.5698794", "0.56227624", "0.56138396", "0.5609501", "0.55570364", "0.54966855", "0.544254", "0.5438287", "0.54273015", "0.5420291", "0.5418642", "0.54134506", "0.5410703", "0.541011", "0.5391058", "0.5374695", "0.5366404", "0.53606534", "0.5336528...
0.814778
0
Returns true if torrent has a log.
public boolean hasLog() { return hasLog; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isLog()\n\t{\n\t\treturn log;\n\t}", "public static boolean log() {\n\t\tif ((xml == null) || (log == null)) return false;\n\t\treturn log.equals(\"yes\");\n\t}", "public boolean isLogTime() {\n return logTime;\n }", "public boolean isSetLogInfo() {\n return this.LogInfo != null...
[ "0.7250816", "0.72038305", "0.6734786", "0.66830295", "0.66830295", "0.66830295", "0.66830295", "0.6509775", "0.65016", "0.64689344", "0.64419454", "0.637393", "0.63012046", "0.6264423", "0.6238359", "0.6147481", "0.6132554", "0.6125652", "0.61040956", "0.6066634", "0.6016002...
0.78011906
0
Gets the log score.
public Number getLogScore() { return this.logScore; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getScore() {\n return getStat(score);\n }", "public static int getScore()\n {\n return score;\n }", "public static int getScore()\r\n\t{\r\n\t\treturn score;\r\n\t}", "public static int getScore()\n\t{\n\t\treturn score;\n\t}", "public long getScore() {\n return score_;\n ...
[ "0.7175312", "0.7163419", "0.70976907", "0.7090408", "0.70790267", "0.70790267", "0.7033806", "0.7033806", "0.7008338", "0.7008338", "0.7008338", "0.7008338", "0.6971925", "0.695478", "0.69530135", "0.69248164", "0.6915749", "0.6915749", "0.6878305", "0.6842681", "0.6837025",...
0.8658074
0
Gets the remaster catalogue number.
public String getRemasterCatalogueNumber() { return this.remasterCatalogueNumber; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getCar_number() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((java.lang.String) __getCache(\"car_number\")));\n }", "public int getCustNumber()\n\t{\n\t\treturn customerNumber;\n\t}", "public j...
[ "0.6495834", "0.6414202", "0.6342913", "0.6312296", "0.6304767", "0.6277258", "0.61768335", "0.61590105", "0.6106053", "0.6057816", "0.6057816", "0.5999595", "0.5991154", "0.5982104", "0.59464294", "0.59449404", "0.5944844", "0.59382623", "0.59092325", "0.59064513", "0.589848...
0.8438158
0
Gets the remaster record label.
public String getRemasterRecordLabel() { return this.remasterRecordLabel; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getLabel() { //gets the label\n\n\t\treturn rawLabel;\n\t}", "public L getLabel() {\n\t\tcheckRep();\n\t\treturn this.label;\n\t}", "public String getLabel() {\n return _label == null ? name() : _label;\n }", "public final String getLabel() {\n\t\treturn _label;\n\t}", "public Strin...
[ "0.72575825", "0.7207489", "0.6875381", "0.6870664", "0.68132246", "0.6802466", "0.6773572", "0.67602926", "0.67573035", "0.67573035", "0.67544675", "0.6746756", "0.67445564", "0.673727", "0.67371243", "0.673457", "0.6733721", "0.6733721", "0.6733721", "0.67331886", "0.673318...
0.8598229
0
Gets the remaster title.
public String getRemasterTitle() { return this.remasterTitle; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getTitle() {\n \t\treturn title;\n \t}", "public String getTitle(){\n\n\t\treturn title;\n\t}", "public java.lang.String getTitle();", "public String getTitle()\n\t{\n\t\treturn title;\n\t}", "public String getTitle()\n\t{\n\t\treturn title;\n\t}", "java.lang.String getTitle();", "java.la...
[ "0.76830286", "0.7639007", "0.76330316", "0.7629739", "0.7629739", "0.7611665", "0.7611665", "0.7611665", "0.7611665", "0.7611665", "0.76061326", "0.759782", "0.75685287", "0.75685287", "0.75685287", "0.75685287", "0.75685287", "0.75685287", "0.75685287", "0.7567693", "0.7567...
0.8731313
0
Gets the remaster year.
public String getRemasterYear() { return this.remasterYear; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getYear() {\n return DateUtil.YearFromString(rel);\n }", "public int getYear()\n {\n return yr;\n }", "public int getYear() \n\t{\n\t\treturn year;\n\t}", "int getYear();", "public int getYear() {\n\t\treturn year; \n\t}", "public int getYear() {\r\n\t\treturn year;\r\n\t}", ...
[ "0.82366586", "0.7846472", "0.78368306", "0.78298205", "0.7794068", "0.77933437", "0.7786373", "0.77853155", "0.77853155", "0.77853155", "0.7764474", "0.775993", "0.77585685", "0.77210283", "0.7717138", "0.7716936", "0.77165794", "0.77124816", "0.7708442", "0.77060175", "0.77...
0.8553475
0
Checks if is remastered.
public boolean isRemastered() { return this.remastered; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasRemsg();", "public boolean isMaster();", "private void checkAndUpdate() {\n if (csProposeEnter.get()) {\n if (numRepliesReceived.get() == (config.getNumNodes() - 1)\n && requestQueue.peek().getFromID().equals(nodeID)) {\n csProposeEnter.set(false);...
[ "0.6475438", "0.6293728", "0.6254044", "0.6171234", "0.6166344", "0.602672", "0.6009381", "0.5985185", "0.5908756", "0.58927286", "0.58292055", "0.58192647", "0.5812884", "0.57454497", "0.56855386", "0.5682531", "0.5681889", "0.5676818", "0.56635725", "0.5660977", "0.564491",...
0.8351669
0
Return true if torrent is a scene release.
public boolean isScene() { return scene; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSetRelease()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(RELEASE$4) != 0;\r\n }\r\n }", "public boolean isReadyForRelease() {\r\n return true;\r\n }", "publ...
[ "0.6123729", "0.59218025", "0.59084195", "0.5859536", "0.55966955", "0.5555755", "0.5552338", "0.5519574", "0.5475112", "0.5447773", "0.5416565", "0.53453135", "0.53202176", "0.5300415", "0.5288203", "0.52865404", "0.52661777", "0.5252744", "0.5230731", "0.5230731", "0.519589...
0.6744462
0
Get a concise representation of the torrent media, format and encoding. For example "CD AAC 320"
public String getMediaFormatEncoding() { return this.getMedia() + " - " + this.getFormat() + " - " + this.getEncoding(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@DISPID(1093) //= 0x445. The runtime will prefer the VTID if present\n @VTID(14)\n java.lang.String media();", "String getMedia();", "public String encode() {\n\t\tString encoded_string;\n\t\tencoded_string = MEDIA_FIELD;\n\t\tif (media != null)\n\t\t\tencoded_string += media + Separators.SP + port;\n\t\t// ...
[ "0.6603912", "0.62146074", "0.61557525", "0.5919231", "0.5851481", "0.58039665", "0.575504", "0.5735669", "0.5713848", "0.56465495", "0.5632085", "0.5578798", "0.5482616", "0.54565185", "0.5452067", "0.53979695", "0.53947467", "0.5392701", "0.5368203", "0.535989", "0.53027356...
0.6860224
0
Get the download link of the torrent.
public String getDownloadLink() { String site = MySoup.getSite(); String authKey = MySoup.getAuthKey(); String passKey = MySoup.getPassKey(); String downloadLink = site + "torrents.php?action=download&id=" + id + "&authkey=" + authKey + "&torrent_pass=" + passKey; return downloadLink; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getDownloadUrl() {\n return downloadUrl;\n }", "public String getYTDLDownloadLink() {\n return \"https://yt-dl.org/downloads/latest/youtube-dl\";\n }", "public String getSourceDownloadUrl();", "entities.Torrent.DownloadRequest getDownloadRequest();", "public String...
[ "0.69062567", "0.68869394", "0.6783054", "0.6330018", "0.6322464", "0.6206409", "0.61526126", "0.6121462", "0.60127", "0.5913441", "0.5905846", "0.5882339", "0.5874371", "0.58379453", "0.5831083", "0.58269227", "0.5824895", "0.5787779", "0.57364154", "0.56174725", "0.5579124"...
0.8397193
0
/ access modifiers changed from: protected
public final boolean dispatchTransaction(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException { switch (i) { case 1: onDeviceFound((BleDevice) zzc.zza(parcel, BleDevice.CREATOR)); break; case 2: onScanStopped(); break; default: return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override...
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.640...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { System.setProperty("webdriver.chrome.driver", "E:\\Softwares\\Drivers\\chromedriver.exe"); WebDriver driver= new ChromeDriver(); driver.get("https://www.facebook.com/"); //Enter data in fields using ID and name locator driver.findElement(By.id("email")).sendKeys("Enter email"); driver.findElement(By.name("pass")).sendKeys("Provide password"); //Click using linkText driver.findElement(By.linkText("Forgot account?")).click(); //Enter data in fields using xPath and cssSelector locator | Get text of Error message from div. driver.get("https://login.salesforce.com/"); driver.findElement(By.xpath("//*[@id=\'username\']")).sendKeys("User Name"); driver.findElement(By.cssSelector("#password")).sendKeys("Password"); driver.findElement(By.id("Login")).click(); System.out.println(driver.findElement(By.cssSelector("div#error.loginError")).getText()); }
{ "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
O(n) time and O(1) space. a is the highest positive number of arr b is the second || c is the third || x is the lowest (probably negative) number of arr y is the second || The official solution uses a very similar approach, and its reading complexity stays quite the same.
public static int highestProductOf3(int[] arr) { int a = max(arr[0], max(arr[1], arr[2])); int c = min(arr[0], min(arr[1], arr[2])); int b = arr[0] + arr[1] + arr[2] - a - c; int x = c; int y = b; for(int i = 3; i < arr.length; i++) { if(arr[i] < x) { y = x; x = arr[i]; } else if(arr[i] < y) { y = arr[i]; } if(arr[i] > a) { c = b; b = a; a = arr[i]; } else if(arr[i] > b) { c = b; b = arr[i]; } else if(arr[i] > c) { c = arr[i]; } } return max(a * b * c, a * x * y); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int[] MysterionF(int a, int b, int c, int[] arr) {\n int v = arr[c];\n swap(c, b, arr);\n int s = a;\n for (int i = 0; i < b - 1; i++) {\n if (arr[i] < v) {\n swap(s, i, arr);\n s += 1;\n }\n }\n swap(b, s, arr);\n...
[ "0.6551852", "0.6465439", "0.64100635", "0.636511", "0.6362145", "0.63127637", "0.6290433", "0.6290352", "0.6261549", "0.6258278", "0.6214246", "0.6211107", "0.62003607", "0.61605865", "0.6150305", "0.6115844", "0.60599285", "0.6039612", "0.6028129", "0.6024905", "0.60037404"...
0.64363647
2
Use this factory method to create a new instance of this fragment using the provided parameters.
public static MyequipmentAU newInstance(ArrayList<Equipmentdetails> equipments) { MyequipmentAU fragment = new MyequipmentAU(); Bundle args = new Bundle(); args.putParcelableArrayList(ARG_PARAM1, equipments); fragment.setArguments(args); return fragment; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static FragmentTousWanted newInstance() {\n FragmentTousWanted fragment = new FragmentTousWanted();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "protected abstract Fragment createFragment();", "public void createFragment() {\n\n ...
[ "0.7259329", "0.72331375", "0.71140355", "0.69909847", "0.69902235", "0.6834592", "0.683074", "0.68134046", "0.6801526", "0.6801054", "0.67653185", "0.6739714", "0.6739714", "0.6727412", "0.6717231", "0.6705855", "0.6692112", "0.6691661", "0.66869426", "0.66606814", "0.664618...
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_myequipment_au, container, false); Cancel = (Button)view.findViewById(R.id.btn_eqp_cancel); Confirm = (Button)view.findViewById(R.id.btn_eqp_ok); input_prac_type = (EditText)view.findViewById(R.id.input_ins_name); input_prac_price = (EditText)view.findViewById(R.id.inst1); input_prac_quotation = (EditText)view.findViewById(R.id.inst2); getDialog().requestWindowFeature(STYLE_NO_TITLE); setCancelable(false); stringList = new ArrayList<String>(); new Thread(new Runnable() { public void run() { Boolean check = false; for(int i =0;i<mParam1.size();i++){ check = false; /* for(int j = 0; j < responsefrom.size();j++){ if(responsefrom.get(j).hcp_url.equals(serviceares.get(i).hcp_url)){ check = true; break; } } */ //if(!check){ stringList.add(mParam1.get(i).name); // } // } } }).start(); input_prac_type.setOnFocusChangeListener(new View.OnFocusChangeListener() { @Override public void onFocusChange(View v, boolean hasFocus) { if (hasFocus) { final AlertDialog.Builder builder_renewal = new AlertDialog.Builder(getActivity(),R.style.alerttheme); builder_renewal.setTitle("Select Equipment"); final CharSequence renewal[] = stringList.toArray(new String[0]); builder_renewal.setItems(renewal, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { // the user clicked on colors[which] input_prac_type.setText(renewal[which]); Currentitem = mParam1.get(which); input_prac_price.setText("RM"+String.valueOf(mParam1.get(which).price)); Log.e("equipment select",Currentitem.name); } }); builder_renewal.show(); } } }); input_prac_type.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { final AlertDialog.Builder builder_renewal = new AlertDialog.Builder(getActivity(),R.style.alerttheme); builder_renewal.setTitle("Select Equipment"); final CharSequence renewal[] = stringList.toArray(new String[0]); builder_renewal.setItems(renewal, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { // the user clicked on colors[which] input_prac_type.setText(renewal[which]); Currentitem = mParam1.get(which); Log.e("equipment select",Currentitem.name); input_prac_price.setText("RM"+String.valueOf(mParam1.get(which).price)); } }); builder_renewal.show(); } }); Cancel.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { dismiss(); } }); Confirm.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { if (Float.parseFloat(input_prac_quotation.getText().toString()) > Currentitem.price) { new AlertDialog.Builder(getActivity()) .setTitle("Error") .setMessage("Your quotation cannot be more than the recommeded price which is RM" + String.valueOf(Currentitem.price)) .setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { // continue with delete } }) .show(); }else{ Log.e("in my ser", "in get service"); // ((FirstPage)getActivity()).opengallery(); final AlertDialog progressDialog = new SpotsDialog(getActivity(), R.style.CustomDialog4); // To dismiss the dialog progressDialog.show(); Call<Boolean> call = scheduleService.getService().setmyequipments(((Central)getActivity()).gethcp_id(),Currentitem.id,input_prac_quotation.getText().toString()); call.enqueue(new Callback<Boolean>() { @Override public void onResponse(Call<Boolean> call, Response<Boolean> response) { int statusCode = response.code(); String msg = "here"; progressDialog.dismiss(); if (statusCode == 200) { dismiss(); }else{ Log.e("dfdf2", String.valueOf(statusCode)); msg="error again"; Toast.makeText(getActivity(),"request failed gone"+String.valueOf(statusCode),Toast.LENGTH_LONG).show(); } Log.e("dfdf1", msg); } @Override public void onFailure(Call<Boolean> call, Throwable t) { // progress.dismiss(); Toast.makeText(getActivity(),"request failed here gone",Toast.LENGTH_LONG).show(); // Log.e("dfdf", t.toString()); } }); } } }); return view; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup...
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.66251...
0.0
-1
the user clicked on colors[which]
@Override public void onClick(DialogInterface dialog, int which) { input_prac_type.setText(renewal[which]); Currentitem = mParam1.get(which); input_prac_price.setText("RM"+String.valueOf(mParam1.get(which).price)); Log.e("equipment select",Currentitem.name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void colorClicked(View view) {\n //Selecting a colour\n if(view != currColor) {\n handwritingView.setErase(false); // Selecting a color switches to write mode\n ImageButton btnView = (ImageButton)view;\n String selColor = view.getTag().toString();\n ...
[ "0.67412454", "0.66191953", "0.66101754", "0.65667915", "0.6545442", "0.6486208", "0.64426345", "0.64269435", "0.6375645", "0.63281906", "0.6311113", "0.6281207", "0.62713563", "0.625323", "0.6238092", "0.6225249", "0.6192586", "0.6185896", "0.6163559", "0.6160104", "0.613302...
0.0
-1
the user clicked on colors[which]
@Override public void onClick(DialogInterface dialog, int which) { input_prac_type.setText(renewal[which]); Currentitem = mParam1.get(which); Log.e("equipment select",Currentitem.name); input_prac_price.setText("RM"+String.valueOf(mParam1.get(which).price)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void colorClicked(View view) {\n //Selecting a colour\n if(view != currColor) {\n handwritingView.setErase(false); // Selecting a color switches to write mode\n ImageButton btnView = (ImageButton)view;\n String selColor = view.getTag().toString();\n ...
[ "0.6739474", "0.6618224", "0.6609458", "0.6566301", "0.6545095", "0.6484908", "0.6440483", "0.64261633", "0.63744193", "0.63280386", "0.63106656", "0.62791395", "0.6270133", "0.6252181", "0.62374485", "0.62262666", "0.619109", "0.61855006", "0.616375", "0.6158853", "0.6131977...
0.0
-1
This interface must be implemented by activities that contain this fragment to allow an interaction in this fragment to be communicated to the activity and potentially other fragments contained in that activity. See the Android Training lesson Communicating with Other Fragments for more information.
public interface OnFragmentInteractionListener { // TODO: Update argument type and name void onFragmentInteraction(Uri uri); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface OnFragmentInteractionListener {\n void onFragmentMessage(String TAG, Object data);\n}", "public interface FragmentInteraction {\n void switchToBoardView();\n void switchToPinsView();\n void switchToPins(PDKBoard pdkBoard);\n void switchToDescription(PDKPin pin);\n}", "public int...
[ "0.73252225", "0.7209547", "0.7136359", "0.71252084", "0.7123544", "0.7015349", "0.69774413", "0.69774413", "0.69774413", "0.6974346", "0.69687444", "0.6966675", "0.6961056", "0.69545686", "0.6944112", "0.69353503", "0.6930745", "0.69285405", "0.6923585", "0.69112146", "0.690...
0.0
-1
TODO: Update argument type and name
void onFragmentInteraction(Uri uri);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public String getFirstArg() {\n return name;\r\n }", "@Override\n public int getNumberArguments() {\n return 1;\n }", "java.lang.String getArg();", "@Override\n public int getArgLength() {\n return 4;\n }", "Argument createArgument();", "@Override\r\n\tpublic ...
[ "0.7164074", "0.6946075", "0.6714363", "0.65115863", "0.63969076", "0.6375468", "0.63481104", "0.63162106", "0.6260299", "0.6208487", "0.6208487", "0.62070644", "0.6197276", "0.61806154", "0.6177103", "0.61530507", "0.61472267", "0.61243707", "0.60771817", "0.6054482", "0.599...
0.0
-1
Data access object for the Mpid entity It covers only basic operations inherited from JpaRepository
@Repository public interface MpidRepository extends JpaRepository<Mpid, Integer> { Mpid findByHandle(String handle); List<Mpid> findByDealCode(String dealCode); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface MemberDao extends JpaRepository<Member, Long>{\n}", "public interface PCDao extends JpaRepository<PC, Integer> {\n}", "public interface ImprimeRepository extends JpaRepository<Imprime,Long> {\n\n Imprime findById(Long id);\n\n}", "public interface RepositoryLineMhc extends JpaRepository<L...
[ "0.67571187", "0.6732721", "0.6619409", "0.65547854", "0.6534586", "0.6519543", "0.65114135", "0.64887565", "0.6479514", "0.64687294", "0.64652497", "0.6442984", "0.64388025", "0.643822", "0.6436871", "0.64243156", "0.64197356", "0.6410168", "0.6404825", "0.63856107", "0.6385...
0.71749115
0
this should happen in a transaction
private FrameID allocateDBFrameID() { int id = initialFrameID(); try { id = getNextFrameID(); if (id == 0) { id = getLargestUsedFrameID(); id = Math.max(id, initialFrameID()); } setNextFrameID(++id); } catch (SQLException e) { Log.exception(e, this, "allocateDBFrameID"); } return new FrameID(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void commitTx() {\n \n }", "@Override\n\tpublic void commit() {\n\n\t}", "@Override\n public void commit() {\n }", "@Override\n public void startTx() {\n \n }", "@Override\r\n\t\t\tprotected void saveContext() {\n\t\t\t\t\r\n\t\t\t}", "protected boolean afterMerge() throw...
[ "0.6342929", "0.61623424", "0.6106929", "0.59658015", "0.59530884", "0.5910657", "0.5902167", "0.5853129", "0.5851231", "0.5825516", "0.58247805", "0.581895", "0.5808759", "0.5803576", "0.57784307", "0.57783294", "0.57783294", "0.57783294", "0.57782024", "0.5777119", "0.57522...
0.0
-1
returns true if transaction started successfully
public boolean beginTransaction() { boolean result = false; if (_canDisableAutoCommit) { try { _connection.setAutoCommit(false); result = true; } catch (SQLException e) { Log.warning("Transactions not supported", this, "startTransaction"); _canDisableAutoCommit = false; } } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean transactionStarted();", "public boolean isTransactionRunning();", "public void transactionStarted() {\n transactionStart = true;\n }", "public boolean transactionWillSucceed(Transaction transaction) {\n return transactionBuffer.transactionWillSucceed(transaction);\n }", "...
[ "0.8681897", "0.7877552", "0.7674481", "0.7540885", "0.7518097", "0.70460993", "0.70102423", "0.69685763", "0.6908345", "0.68731254", "0.68685734", "0.6841311", "0.6841287", "0.6787083", "0.66589737", "0.6647706", "0.661663", "0.6610533", "0.65949357", "0.65949357", "0.656536...
0.7704394
2
return true if transation commited successfull
public boolean endTransaction(boolean doCommit) { boolean result = false; if (_canDisableAutoCommit) { try { if (doCommit) { _connection.commit(); } else { _connection.rollback(); } _connection.setAutoCommit(true); result = doCommit; } catch (SQLException e) { Log.exception(e, this, "endTransaction"); } } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean shouldCommit();", "public boolean commit() {\r\n\tboolean result = false;\r\n\r\n\tif (conn != null && isConnected()) {\r\n\t try {\r\n\t\tboolean autoCommit = getAutoCommit();\r\n\r\n\t\tif (!autoCommit) {\r\n\t\t conn.commit();\r\n\t\t result = true;\r\n\t\t}\r\n\t } catch (Exception e) {\r...
[ "0.78015095", "0.75395405", "0.7200055", "0.71232533", "0.70662415", "0.7035737", "0.7021108", "0.69307995", "0.6924703", "0.6723152", "0.6715705", "0.66733694", "0.6660296", "0.66424125", "0.6632792", "0.65974957", "0.65937966", "0.6568001", "0.6547289", "0.65256405", "0.651...
0.59926116
91
/ This method uses a lot of memory for buffering so we take some care to null out the references to large objects on the stack when they are no longer needed.
private String getLongString(ResultSet rs, int index) throws SQLException { StringBuffer buffer = new StringBuffer(); Reader reader = null; try { reader = getReader(rs, index); if (reader == null) { Log.warning("null long value", this, "getLongString"); } else { char[] array = new char[1000000]; int nRead = 0; while (nRead != -1) { nRead = reader.read(array); if (nRead > 0) { buffer.append(array, 0, nRead); } } array = null; } } catch (IOException e) { Log.exception(e, this, "getLongString"); } finally { SystemUtilities.close(reader); } String s = buffer.toString(); buffer = null; return s.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void buffer() {\n\t\tSystem.out.println(\"bafor\"+Runtime.getRuntime().freeMemory());\n\t\tByteBuffer mBuffer=ByteBuffer.allocate(10240000);\n\t\tSystem.out.println(\"bafor\"+Runtime.getRuntime().freeMemory());\n// mBuffer.clear();\n System.out.println(\"bafor\"+Runtime.getRuntime().fr...
[ "0.6604814", "0.6031045", "0.59089214", "0.5887917", "0.5861019", "0.58476067", "0.5834633", "0.5800614", "0.5791331", "0.5778429", "0.57570225", "0.5744196", "0.57212996", "0.57156354", "0.57156354", "0.5703355", "0.56884027", "0.5650322", "0.56497145", "0.5644933", "0.56418...
0.0
-1
The MySQL sql driver (at least) doesn't optimize to use indexes in the presence of OR so we issue separate delete calls to speed things up.
public void removeAllReferences(Frame frame) throws SQLException { deleteFrame(frame); deleteValue(frame); if (frame instanceof Slot) { deleteSlot((Slot) frame); } else if (frame instanceof Facet) { // deleteFacet((Facet) frame); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void delete(Vector<AbstractOrmEntity> searchEntities)\r\n\t throws Exception;", "private void deletes() {\n \tDBPeer.fetchTableRows();\n DBPeer.fetchTableIndexes();\n \n for (Delete delete: deletes) {\n \tdelete.init();\n }\n \n //DBPeer.upda...
[ "0.60907435", "0.60539806", "0.6029856", "0.6022669", "0.6000253", "0.5968297", "0.5932728", "0.5906952", "0.588894", "0.5874547", "0.585689", "0.5791126", "0.5779214", "0.5730377", "0.5721649", "0.5712737", "0.57106614", "0.57063687", "0.56911325", "0.5688761", "0.5681192", ...
0.0
-1
Log.enter(this, "removeFramesWithValue", slot, facet, new Boolean(isTemplate));
public void removeFramesWithValue(Slot slot, Facet facet, boolean isTemplate) throws SQLException { trace("removeFramesWithValue", slot, facet); String command = "DELETE FROM " + _tableName + " WHERE " + SLOT + "= ? AND " + FACET + "= ? AND " + IS_TEMPLATE + "= ?"; PreparedStatement stmt = _statements.get(command); setSlotParam(stmt, 1, slot); setFacetParam(stmt, 2, facet); setIsTemplateParam(stmt, 3, isTemplate); stmt.executeUpdate(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void removeFrame() {\n RelativeFrame frame = selectRelativeFrame(\"Which frame would you like to delete?\");\n for (Event event: world.getEvents()) {\n if (event.getFrame() == frame) {\n event.changeFrame(world.getMasterFrame());\n }\n }\n wo...
[ "0.5561948", "0.5545018", "0.54361093", "0.541069", "0.53196645", "0.529848", "0.52684265", "0.5222618", "0.5213238", "0.52004296", "0.51769376", "0.5160325", "0.51535743", "0.51486284", "0.51202375", "0.51195556", "0.5107467", "0.5106736", "0.51015073", "0.5093134", "0.50878...
0.6592189
0
/ This method should check all of the columns, types, etc Unfortunately the metadata access calls don't always work so we to a quick and dirty test. If the table exists and has one of our more bizarre column names then we will assume that it is ok.
private boolean tableExistsAndIsOK() throws SQLException { trace("tableExistsAndIsOK"); boolean result; Statement stmt = _connection.createStatement(); try { stmt.setMaxRows(1); String command = "SELECT " + LONG_VALUE + " FROM " + _tableName; ResultSet rs = stmt.executeQuery(command); rs.close(); result = true; } catch (SQLException e) { result = false; } stmt.close(); return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean checkHasColumns( TableMeta tmeta ) {\n boolean hasColumns = tmeta.getColumns().length > 0;\n if ( ! hasColumns ) {\n reporter_.report( ReportType.FAILURE, \"ZCOL\",\n \"No columns known for table \"\n ...
[ "0.71393675", "0.6801231", "0.6747499", "0.66957295", "0.6680796", "0.6636853", "0.6627527", "0.6610189", "0.6554438", "0.6532924", "0.6508283", "0.6437019", "0.6381962", "0.63427883", "0.63256735", "0.6281368", "0.6278461", "0.6244752", "0.62426203", "0.62191457", "0.6180585...
0.63887525
12