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 |
|---|---|---|---|---|---|---|
No call for super(). Bug on API Level > 11. | @Override
protected void onSaveInstanceState(Bundle outState) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void method_6349() {\r\n super.method_6349();\r\n }",
"public void method_6191() {\r\n super.method_6191();\r\n }",
"protected void method_3848() {\r\n super.method_3848();\r\n }",
"_ExtendsNotAbstract() {\n super(\"s\"); // needs this if not default ctor;\n }",
"publi... | [
"0.65982854",
"0.64210093",
"0.636863",
"0.6343441",
"0.6315865",
"0.6315865",
"0.6315865",
"0.61697334",
"0.61678773",
"0.60834146",
"0.608059",
"0.6079439",
"0.6072245",
"0.6072245",
"0.6072245",
"0.6072245",
"0.6072245",
"0.6072245",
"0.6027784",
"0.6027784",
"0.6027784",
... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onTabReselected(Tab arg0,
android.support.v4.app.FragmentTransaction arg1) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onTabUnselected(Tab arg0,
android.support.v4.app.FragmentTransaction arg1) {
} | {
"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 |
User cancelled the dialog | public void onClick(DialogInterface dialog, int id) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void cancelDialog() {dispose();}",
"public void cancel() { Common.exitWindow(cancelBtn); }",
"@Override\n public void onCancel(DialogInterface dialog) {\n cancel(true);\n }",
"@Override\n\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t... | [
"0.84252524",
"0.81816214",
"0.81397384",
"0.80922073",
"0.7927849",
"0.79160905",
"0.78777075",
"0.78763556",
"0.7856008",
"0.7849157",
"0.7848072",
"0.7838308",
"0.7804249",
"0.77992254",
"0.7796975",
"0.7796975",
"0.77921396",
"0.7792013",
"0.77904165",
"0.77860636",
"0.77... | 0.0 | -1 |
Gets a basic Document. | public static Document mockDocument(MockObjectStore objectStore,
String guid, String timeStr, boolean isReleasedVersion) {
return mockDocument(objectStore, guid, timeStr, isReleasedVersion,
null, null, new AccessPermissionListMock());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Document readDocument();",
"public Document getDocument() {\n return doc;\n }",
"public Document getDocument()\n {\n return m_Document;\n }",
"public Document getDocument() {\n\t\treturn doc;\n\t}",
"public Document getDocument()\n\t{\n\t\treturn this.document;\n\t}",
"public Docu... | [
"0.746009",
"0.72074884",
"0.72066164",
"0.7193811",
"0.7191742",
"0.71546006",
"0.7146228",
"0.71237373",
"0.71212995",
"0.71212995",
"0.7100498",
"0.7097194",
"0.70889163",
"0.70850796",
"0.70850796",
"0.7068008",
"0.7062155",
"0.7048925",
"0.7029839",
"0.6992962",
"0.69908... | 0.0 | -1 |
Gets a Document with ContentSize and MimeType properties. | public static Document mockDocument(MockObjectStore objectStore,
String guid, String timeStr, boolean isReleasedVersion,
Double contentSize, String mimeType) {
return mockDocument(objectStore, guid, timeStr, isReleasedVersion,
contentSize, mimeType, new AccessPermissionListMock());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Document readDocument();",
"IDocument getDocument(File file);",
"public Document getDocument()\n {\n return m_Document;\n }",
"private Document createDocumentForTest() {\r\n\r\n EntityManager em = com.topcoder.service.studio.contest.bean.MockEntityManager.EMF.createEntityManager();... | [
"0.5908325",
"0.58576834",
"0.5750246",
"0.5744772",
"0.5740866",
"0.57314146",
"0.5730606",
"0.5729456",
"0.5729456",
"0.5709001",
"0.57062507",
"0.57060224",
"0.5596511",
"0.55677",
"0.5562553",
"0.5560555",
"0.554898",
"0.55480224",
"0.5532443",
"0.5523892",
"0.5515476",
... | 0.6070883 | 0 |
Gets a Document with a Permissions property. | public static Document mockDocument(MockObjectStore objectStore,
String guid, String timeStr, boolean isReleasedVersion,
AccessPermissionList perms) {
return mockDocument(objectStore, guid, timeStr, isReleasedVersion,
null, null, perms);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public gov.nih.nlm.ncbi.www.soap.eutils.efetch_pmc.Permissions getPermissions() {\r\n return permissions;\r\n }",
"public Permissions permissions() {\n return this.innerProperties() == null ? null : this.innerProperties().permissions();\n }",
"String getDocument(String docID, boolean isSubd... | [
"0.6148554",
"0.5853285",
"0.55234617",
"0.5479757",
"0.54687184",
"0.5467225",
"0.5457076",
"0.5455674",
"0.54500586",
"0.5428022",
"0.53976506",
"0.5356103",
"0.5354337",
"0.5338011",
"0.53013116",
"0.52861565",
"0.52552813",
"0.52513033",
"0.5245391",
"0.5241269",
"0.52363... | 0.52502817 | 18 |
Accessor for the message. | public String getApproxsimMessage() {
return message;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public V getMessage() {\n return this.message;\n }",
"@Accessor(qualifier = \"message\", type = Accessor.Type.GETTER)\n\tpublic String getMessage()\n\t{\n\t\treturn getMessage(null);\n\t}",
"public Message getMessage(){\n return message;\n }",
"public Object getMessage() {\n return... | [
"0.79286975",
"0.7894272",
"0.7893321",
"0.7746385",
"0.76496196",
"0.7585719",
"0.7576728",
"0.7566389",
"0.7535113",
"0.7504064",
"0.74973375",
"0.7473211",
"0.7466167",
"0.7466167",
"0.7466167",
"0.7466167",
"0.7466167",
"0.7466167",
"0.7466167",
"0.7463536",
"0.74555415",... | 0.0 | -1 |
Accessor for the initiator. | public Object getInitiator() {
return mInitiator;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getInitiator()\n {\n return m_initiator;\n }",
"public ObjectType getInitiator() { return initiator; }",
"public boolean initiator() {\n return initiator;\n }",
"public void setInitiator(ObjectType init) { initiator = init; }",
"public Long[] getInitiatorIDs() { return ... | [
"0.7774249",
"0.77398133",
"0.74476075",
"0.64976674",
"0.6408683",
"0.6274709",
"0.6073427",
"0.60057986",
"0.5955228",
"0.5897381",
"0.5885859",
"0.5789915",
"0.57340187",
"0.5727415",
"0.56834614",
"0.56683755",
"0.56640005",
"0.5645075",
"0.55871797",
"0.5578906",
"0.5574... | 0.7530947 | 2 |
Accessor for the argument. | public Object getArgument() {
return mArgument;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ProgramExp getArgument() {\n return argument;\n }",
"public BaseNode getArgument()\r\n\t{\r\n\t\treturn _argument;\r\n\t}",
"java.lang.String getArg();",
"OclExpression getArgument();",
"public byte[] getArgument() {\n return argument;\n }",
"@Nullable\n public Argument getA... | [
"0.7299128",
"0.7016411",
"0.70086104",
"0.6960354",
"0.69172585",
"0.6821711",
"0.6774366",
"0.6712442",
"0.6651128",
"0.6623314",
"0.65904325",
"0.64679843",
"0.6199094",
"0.61895704",
"0.6016148",
"0.6000153",
"0.5996435",
"0.59811306",
"0.59540933",
"0.5920249",
"0.585154... | 0.74400437 | 0 |
Creates a new Generic event. This type of event may be used when the event type isn't carrying any information. | public static ApproxsimEvent getGeneric(Object source) {
return new ApproxsimEvent(source, GENERIC);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Event createEvent();",
"Event createEvent();",
"BasicEvent createBasicEvent();",
"public Event(EventType type, String eventKey) \n\t{\n\t\tsuper();\n\t\tthis.evntType = type;\n\t\tthis.key = eventKey;\n\t\tthis.uuid = UUID.randomUUID().toString();\n\t\tthis.milliseconds = 0;\n\t\tthis.repeated = false;\n\t}"... | [
"0.71292084",
"0.71292084",
"0.6943178",
"0.6643618",
"0.6502051",
"0.64597297",
"0.6456858",
"0.6383242",
"0.6359251",
"0.6357882",
"0.6336439",
"0.6297088",
"0.62788415",
"0.613914",
"0.61352557",
"0.6116759",
"0.60698414",
"0.6066095",
"0.60177803",
"0.6010387",
"0.5982756... | 0.63041633 | 11 |
Checks if this is a Generic event. | public boolean isGeneric() {
return GENERIC.equals(message);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@objid (\"0480e45a-6886-42c0-b13c-78b8ab8f713d\")\n boolean isIsEvent();",
"public boolean isTimeSpecificEvent() {\n return timeSpecificEvent;\n }",
"public boolean check(EventType event);",
"@Override\n public boolean onGenericMotionEvent(MotionEvent event) {\n return mGestureDetector... | [
"0.6867693",
"0.6688657",
"0.6551413",
"0.6183757",
"0.61521286",
"0.6032884",
"0.6028633",
"0.6005177",
"0.59982306",
"0.5912819",
"0.5847157",
"0.5844479",
"0.57288057",
"0.57231456",
"0.5720465",
"0.57066554",
"0.5691707",
"0.5680636",
"0.56722426",
"0.56057084",
"0.559545... | 0.6684116 | 2 |
Creates a new ObjectAdded event. This type of event is triggered by a ApproxsimObject when a child is added. | public static ApproxsimEvent getObjectAdded(Object source,
ApproxsimObject added, Object initiator) {
return new ApproxsimEvent(source, OBJECTADDED, initiator, added);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void objectAdded(NamingEvent evt) throws RemoteException;",
"protected void objAdded(UserId principal, ObjLoc objLoc, ObjectMeta objectMeta) {\r\n\r\n }",
"public boolean isObjectAdded() {\n return OBJECTADDED.equals(message);\n }",
"public void add(GameObject newObject) {\n\t\tgameObject... | [
"0.6788861",
"0.6684595",
"0.62544805",
"0.6070921",
"0.6047166",
"0.59757113",
"0.5965133",
"0.5936672",
"0.5888104",
"0.5883624",
"0.5873897",
"0.5854192",
"0.5844701",
"0.5813505",
"0.581103",
"0.57636",
"0.5754338",
"0.5726633",
"0.5713334",
"0.5692896",
"0.5691711",
"0... | 0.65191364 | 2 |
Checks if this is an ObjectAdded event. | public boolean isObjectAdded() {
return OBJECTADDED.equals(message);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@java.lang.Override\n public boolean hasObject() {\n return object_ != null;\n }",
"public static boolean isAdded() {\n return true;\n }",
"public boolean addListener(final Object object) {\n boolean added = false;\n for (final Class<?> listenerType : listenerTypes) {\n ... | [
"0.6490859",
"0.63607043",
"0.6306062",
"0.62550426",
"0.6160966",
"0.5973084",
"0.5958472",
"0.59198564",
"0.59004736",
"0.58175963",
"0.58065575",
"0.5643727",
"0.5633561",
"0.56305957",
"0.56305957",
"0.56305957",
"0.56305957",
"0.56305957",
"0.56305957",
"0.56305957",
"0.... | 0.78108764 | 0 |
Checks if this is an ObjectCreated event. | public boolean isObjectCreated() {
return OBJECTCREATED.equals(message);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static boolean isCreated(Object o) {\r\n checkVersionable(o);\r\n return ((Versionable) o).isCreated();\r\n }",
"public boolean isCreated() {\n\t\treturn this.viewer != null;\n\t}",
"public boolean isObjectAdded() {\n return OBJECTADDED.equals(message);\n }",
"public boolean... | [
"0.6887413",
"0.6486276",
"0.62003833",
"0.61831236",
"0.6130781",
"0.60456604",
"0.5922341",
"0.5828426",
"0.5786432",
"0.5786432",
"0.5779942",
"0.5739611",
"0.57379013",
"0.5726326",
"0.5688873",
"0.5627283",
"0.5531455",
"0.55304056",
"0.5520626",
"0.5520626",
"0.5520626"... | 0.76253235 | 0 |
Creates a new ObjectRemoved event. This type of event is triggered by a ApproxsimObject when it is deleted. | public static ApproxsimEvent getRemoved(Object source, Object initiator) {
return new ApproxsimEvent(source, REMOVED, initiator, null);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void objectRemoved(NamingEvent evt) throws RemoteException;",
"public T caseEntityRemoved(EntityRemoved object) {\n\t\treturn null;\n\t}",
"public T caseAttributeRemoved(AttributeRemoved object) {\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic void deleteObjectListener(ActionEvent e) {\n\t\t\r\n\t}",... | [
"0.7443649",
"0.6483484",
"0.61346287",
"0.6053386",
"0.60304207",
"0.5958884",
"0.5893887",
"0.5829494",
"0.579258",
"0.57027906",
"0.5686777",
"0.5670358",
"0.5662804",
"0.563984",
"0.56025904",
"0.55956125",
"0.55945545",
"0.5585122",
"0.5581375",
"0.557579",
"0.55670965",... | 0.63060266 | 2 |
Checks if this is an ObjectRemoved event. | public boolean isRemoved() {
return REMOVED.equals(message);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void objectRemoved(NamingEvent evt) throws RemoteException;",
"private boolean isRemoved() {\r\n\t\t\treturn removed;\r\n\t\t}",
"public boolean removeListener(final Object object) {\n boolean removed = false;\n for (final Class<?> listenerType : listenerTypes) {\n if (listenerT... | [
"0.66381013",
"0.6616442",
"0.6306731",
"0.6220685",
"0.6162967",
"0.6047646",
"0.59615386",
"0.5941283",
"0.58881456",
"0.5814777",
"0.57756764",
"0.5742916",
"0.5732079",
"0.57064587",
"0.5668",
"0.5648539",
"0.5646531",
"0.56201065",
"0.55772215",
"0.5573995",
"0.55581325"... | 0.63041216 | 3 |
Creates a new replaced event. This type of event is triggered by a ApproxsimObject when it is replaced by another object. | public static ApproxsimEvent getReplaced(Object source, Object initiator,
ApproxsimObject newObject) {
return new ApproxsimEvent(source, REPLACED, initiator, newObject);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public SubstituteEvent(Entity substituted) {\n super(EventType.SUBSTITUTE.getType());\n }",
"public void objectRenamed(NamingEvent evt) throws RemoteException;",
"@ReceiveEvent\r\n public void onReplaceEntityEvent(ReplaceEntityEvent event, EntityRef entity, ScenarioComponent component) {\r\n ... | [
"0.5854871",
"0.5706671",
"0.56598777",
"0.54871434",
"0.5454304",
"0.5453281",
"0.53893507",
"0.53542393",
"0.53309226",
"0.5302501",
"0.52670115",
"0.52659917",
"0.51247203",
"0.5074071",
"0.50505066",
"0.50150377",
"0.4990872",
"0.49745277",
"0.49715805",
"0.4931322",
"0.4... | 0.7359277 | 0 |
Checks if this is a Replaced event. | public boolean isReplaced() {
return REPLACED.equals(message);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean isReplaceable();",
"public boolean isEventUpdated(Event event) \n\t{\n\t\treturn false;\n\t}",
"boolean hasReplace();",
"boolean isReplaceable(TransferDescription description);",
"private boolean shouldProcessEvent(TimeSeriesEvent e) {\r\n return modCountOnLastRefresh < e.getSeriesM... | [
"0.5730953",
"0.56022894",
"0.546064",
"0.54079807",
"0.5297149",
"0.52385336",
"0.5202842",
"0.51822335",
"0.51748705",
"0.51552933",
"0.5145419",
"0.5144196",
"0.5121206",
"0.5095857",
"0.50905854",
"0.50693566",
"0.5064208",
"0.50631934",
"0.50289595",
"0.50199425",
"0.501... | 0.64331096 | 0 |
Creates a new ChildChanged event. This type of event is triggered by a ApproxsimComplex descendant when one of its children has changed. | public static ApproxsimEvent getChildChanged(Object source,
Object initiator, ApproxsimObject changed) {
return new ApproxsimEvent(source, CHILDCHANGED, initiator, changed);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void childrenChanged() {\n\n }",
"public boolean isChildChanged() {\n return CHILDCHANGED.equals(message);\n }",
"protected void childrenChanged() {\n proxyGroup.childrenChanged();\n }",
"@Transient\n // not really needed\n public void addChild(final ChangeRequestMessag... | [
"0.6707788",
"0.61667705",
"0.59935486",
"0.59168273",
"0.576966",
"0.5754513",
"0.552421",
"0.552421",
"0.5509191",
"0.54791266",
"0.5455713",
"0.54461986",
"0.54294974",
"0.5424211",
"0.54113644",
"0.5392858",
"0.5284276",
"0.5279585",
"0.5212426",
"0.5211811",
"0.52024627"... | 0.7125702 | 0 |
Checks if this is a ChildChanged event. | public boolean isChildChanged() {
return CHILDCHANGED.equals(message);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isValueChanged() {\n return VALUECHANGED.equals(message);\n }",
"protected void childrenChanged() {\n\n }",
"boolean hasChangeEvent();",
"public boolean isCheckingDirtyChildPainters()\n/* */ {\n/* 254 */ return this.checkForDirtyChildPainters;\n/* */ }",
"@Overri... | [
"0.6381789",
"0.62345636",
"0.6082744",
"0.5956858",
"0.5839458",
"0.5821314",
"0.5736872",
"0.5734421",
"0.571098",
"0.56809855",
"0.56809855",
"0.56473213",
"0.56310236",
"0.5607072",
"0.5600176",
"0.55832464",
"0.5526349",
"0.55185765",
"0.55135226",
"0.54926634",
"0.54881... | 0.79822284 | 0 |
Creates a new SubscriptionHandled event. This type of event is triggered by the Client when the XMLHandler has handled all data that arrived from the server for a certain timestep. | public static ApproxsimEvent getSubscriptionHandled(Object source,
Timestamp time) {
return new ApproxsimEvent(source, SUBSCRIPTIONHANDLED, null, time);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void receive(SubscriptionCreation event) {\n logger.info(\"###Received subscription creation event with id:\" + event.getSubscriptionId());\n }",
"@Override\n public void receive(SubscriptionTermination event) {\n logger.info(\"###Received subscription termination event with id:\" + e... | [
"0.5528565",
"0.5460485",
"0.519201",
"0.517568",
"0.51489973",
"0.5098325",
"0.50839496",
"0.5072439",
"0.49527138",
"0.4830916",
"0.48085243",
"0.46715534",
"0.46197093",
"0.46085533",
"0.45594987",
"0.4542211",
"0.4518701",
"0.4497161",
"0.4478931",
"0.44663325",
"0.444769... | 0.56855994 | 0 |
Checks if this is a SubscriptionHandled event. | public boolean isSubscriptionHandled() {
return SUBSCRIPTIONHANDLED.equals(message);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isHandled() \n { return (eventAction != null) ? eventAction.isHandled() : false; }",
"@Override\n public boolean isHandled() {\n return handled;\n }",
"public final boolean isHandled() {\n return this.handled;\n }",
"public boolean isHandled() {\r\n... | [
"0.6395164",
"0.6144525",
"0.6127796",
"0.60614675",
"0.57636046",
"0.566733",
"0.5597125",
"0.5485918",
"0.54736584",
"0.5350093",
"0.52245003",
"0.5187233",
"0.5184173",
"0.51469874",
"0.51268053",
"0.5123384",
"0.5110785",
"0.5076843",
"0.50754535",
"0.50475484",
"0.504300... | 0.7795236 | 0 |
Creates a new ValueChanged event. This type of event is triggered by a ApproxsimSimple descendant when its value changes. | public static ApproxsimEvent getValueChanged(Object source, Object initiator) {
return new ApproxsimEvent(source, VALUECHANGED, initiator, null);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void valueChange(ValueChangeEvent event) {\n\t\t\n\t}",
"void valueChanged(T oldValue, T newValue);",
"protected void valueChanged() {\r\n \t\tint newValue = slider.getSelection();\r\n \t\tint oldValue = this.intValue;\r\n \t\tintValue = newValue;\r\n \t\tjava.beans.PropertyChangeEvent even... | [
"0.67973655",
"0.67101735",
"0.64733565",
"0.6425407",
"0.6410019",
"0.6382847",
"0.6357142",
"0.6313754",
"0.62024075",
"0.6155773",
"0.6155773",
"0.6122019",
"0.60979486",
"0.60960174",
"0.60689557",
"0.6022767",
"0.59025407",
"0.58790237",
"0.5831782",
"0.5829046",
"0.5797... | 0.7311841 | 0 |
Checks if this is a ValueChanged event. | public boolean isValueChanged() {
return VALUECHANGED.equals(message);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic boolean valueChanged() {\n\t\treturn false;\n\t}",
"boolean hasChangeEvent();",
"protected void valueChanged() {\r\n \t\tint newValue = slider.getSelection();\r\n \t\tint oldValue = this.intValue;\r\n \t\tintValue = newValue;\r\n \t\tjava.beans.PropertyChangeEvent event = new java.beans.Pro... | [
"0.6484574",
"0.62603664",
"0.6176476",
"0.60139316",
"0.5901342",
"0.58786875",
"0.5811027",
"0.57669204",
"0.5725921",
"0.5697934",
"0.56742173",
"0.5647397",
"0.5647397",
"0.56430316",
"0.56227434",
"0.55739015",
"0.5565073",
"0.55539906",
"0.5528072",
"0.55141526",
"0.550... | 0.81037366 | 0 |
Creates a new Selected event. This type of event is triggered when a ApproxsimObject is selected. Currently, selection of objects may only be performed through the treeview. | public static ApproxsimEvent getSelected(Object source) {
return new ApproxsimEvent(source, SELECTED);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Subscribe\r\n\tpublic void onSelectExperiement(ExpressionDataSelectedEvent event)\r\n\t{\r\n\t\tgetView().updateSelectionLabel(event.GetPayload().getName());\r\n\t}",
"@Override\r\n\tpublic void objectSelectListener(SelectEvent event) {\n\t\t\r\n\t}",
"public void ViagemSelecionado(SelectEvent event) {\n\n\t\... | [
"0.61263907",
"0.60846484",
"0.6017998",
"0.58804095",
"0.5878219",
"0.5871373",
"0.5871373",
"0.5834082",
"0.5792015",
"0.57763875",
"0.57661474",
"0.5758126",
"0.575201",
"0.5751364",
"0.5743929",
"0.5692391",
"0.5687715",
"0.5672876",
"0.5668018",
"0.5664317",
"0.5657811",... | 0.6516738 | 0 |
Checks if this is a Selected event. | public boolean isSelected() {
return SELECTED.equals(message);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isSomethingSelected() {\r\n \t\treturn graph.getSelectionCell() != null;\r\n \t}",
"public boolean isSelected() { \n \treturn selection != null; \n }",
"public boolean isSelectionChanged();",
"public abstract boolean hasSelection();",
"public boolean isSelectionChanged() {\n ret... | [
"0.6983708",
"0.6857424",
"0.68512714",
"0.64969397",
"0.64194834",
"0.6398468",
"0.6370462",
"0.634776",
"0.6331324",
"0.62905884",
"0.6231629",
"0.62191254",
"0.6175919",
"0.6066047",
"0.6059725",
"0.602941",
"0.6020499",
"0.6011808",
"0.59947366",
"0.5984728",
"0.5973841",... | 0.6332329 | 8 |
Creates a new Unselected event. This type of event is triggered when a ApproxsimObject is unselected. Currently, unselection of objects may only be performed through the treeview. | public static ApproxsimEvent getUnselected(Object source) {
return new ApproxsimEvent(source, UNSELECTED);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void processUnselect() {\n \n }",
"public void menuDeselected(MenuEvent evt) {\n }",
"public void deselectNotify() {\n }",
"public void nodeUnselected(ITreeNode node, ITree tree,boolean needNotifier);",
"@Override\n\tpublic void menuDeselected(MenuEvent e) {\n\t\t\n\t... | [
"0.6350526",
"0.6340053",
"0.6244443",
"0.6231436",
"0.62145346",
"0.619999",
"0.6193426",
"0.617186",
"0.6169166",
"0.61307645",
"0.60037774",
"0.5957182",
"0.5921479",
"0.5837927",
"0.58070314",
"0.57458234",
"0.57386535",
"0.56830364",
"0.5619901",
"0.55149764",
"0.5499517... | 0.7093742 | 0 |
Checks if this is a Unselected event. | public boolean isUnselected() {
return UNSELECTED.equals(message);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic boolean isEventCancelled() {\n\t\treturn status==EventCancelled;\n\t}",
"@Override\n protected void processUnselect() {\n \n }",
"public void menuDeselected(MenuEvent evt) {\n }",
"public boolean isSelectionEmpty()\n/* */ {\n/* 215 */ return this.selectedDates.is... | [
"0.6111782",
"0.5915304",
"0.59062004",
"0.5860486",
"0.5837735",
"0.5837735",
"0.5802628",
"0.57889545",
"0.5768456",
"0.5760659",
"0.5715358",
"0.57129055",
"0.5707593",
"0.56971484",
"0.5681542",
"0.5675441",
"0.5674414",
"0.56648964",
"0.565907",
"0.5655715",
"0.5646157",... | 0.7700609 | 0 |
Creates a RegionUpdated event. This event is triggered when the actual region showed in the map is updated. This happens when a new Shape is added to/ removed from the region. | public static ApproxsimEvent getRegionUpdated(Object source) {
return new ApproxsimEvent(source, REGIONUPDATED);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onMapRegionChangeStarted(SKCoordinateRegion mapRegion) {\n\n }",
"@Override\n public void onMapRegionChangeEnded(SKCoordinateRegion mapRegion) {\n\n }",
"public boolean isRegionUpdated() {\n return REGIONUPDATED.equals(message);\n }",
"@Override\n \tpublic void r... | [
"0.6031966",
"0.5950113",
"0.5929595",
"0.5703428",
"0.52973366",
"0.5293441",
"0.52921844",
"0.517263",
"0.5044688",
"0.49888155",
"0.4987141",
"0.4934017",
"0.4871714",
"0.4856673",
"0.48519996",
"0.4813129",
"0.48105988",
"0.47746474",
"0.4752865",
"0.4744347",
"0.4732415"... | 0.59388727 | 2 |
Checks if this is a RegionUpdated event. | public boolean isRegionUpdated() {
return REGIONUPDATED.equals(message);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isEventUpdated(Event event) \n\t{\n\t\treturn false;\n\t}",
"public boolean isGridUpdated() {\n return GRIDUPDATED.equals(message);\n }",
"public final boolean isUpdated() {\n\t\treturn (m_flags & Updated) != 0 ? true : false;\n\t}",
"@java.lang.Override\n public boolean hasRegionLo... | [
"0.679158",
"0.6455339",
"0.5951466",
"0.58395344",
"0.5828077",
"0.5788363",
"0.5732154",
"0.5729259",
"0.57244676",
"0.5704047",
"0.56312364",
"0.55874586",
"0.55827516",
"0.55781627",
"0.55772704",
"0.5549051",
"0.5543507",
"0.55316484",
"0.55088097",
"0.5503145",
"0.54955... | 0.8365171 | 0 |
Creates a GridUpdated event. This event is triggered when the grid is updated with new values. | public static ApproxsimEvent getGridUpdated(Object source) {
return new ApproxsimEvent(source, GRIDUPDATED);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract void update(Grid theOldGrid, Grid theNewGrid);",
"public boolean isGridUpdated() {\n return GRIDUPDATED.equals(message);\n }",
"public void reactToNewGrid(Grid grid)\n {\n theGrid = grid;\n }",
"public void logEventStoreChanged(LogEventStoreEvent event) {\n fireM... | [
"0.6157226",
"0.59483486",
"0.5587028",
"0.53882986",
"0.527052",
"0.5265341",
"0.52137315",
"0.517253",
"0.5141729",
"0.51377404",
"0.5131805",
"0.51036227",
"0.5097784",
"0.506806",
"0.5057287",
"0.5047358",
"0.49702543",
"0.49636206",
"0.49590316",
"0.49551415",
"0.4944802... | 0.642254 | 0 |
Checks if this is a GridUpdated event. | public boolean isGridUpdated() {
return GRIDUPDATED.equals(message);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isEventUpdated(Event event) \n\t{\n\t\treturn false;\n\t}",
"public final boolean isUpdated() {\n\t\treturn (m_flags & Updated) != 0 ? true : false;\n\t}",
"public boolean isRegionUpdated() {\n return REGIONUPDATED.equals(message);\n }",
"default boolean isNeedToBeUpdated()\n {\n ... | [
"0.7084117",
"0.618007",
"0.61657065",
"0.60358286",
"0.60184354",
"0.59254456",
"0.59096414",
"0.57576704",
"0.5731229",
"0.5729854",
"0.57266235",
"0.5696941",
"0.5696941",
"0.56840694",
"0.56489456",
"0.5617513",
"0.56055117",
"0.56033933",
"0.5582566",
"0.55578434",
"0.55... | 0.821607 | 0 |
Creates a GraticulesUpdated event. This event is triggered when the graticules are updated. | public static ApproxsimEvent getGraticulesUpdated(Object source) {
return new ApproxsimEvent(source, GRATICULESUPDATED);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean areGraticulesUpdated() {\n return GRATICULESUPDATED.equals(message);\n }",
"@Override\n\t\t\tpublic void changedUpdate(DocumentEvent arg0) {\n\t\t\t}",
"public void toolGroupUpdated(ToolGroupEvent evt) {\n }",
"private void fireAreaUpdated(Rectangle original, Rectangle updated) {\... | [
"0.5897726",
"0.5244838",
"0.5229873",
"0.5046231",
"0.5034542",
"0.5020956",
"0.49632114",
"0.4958923",
"0.4917594",
"0.49109358",
"0.4909286",
"0.49074417",
"0.48662764",
"0.4862588",
"0.48611814",
"0.48466554",
"0.48453552",
"0.4827194",
"0.48213458",
"0.4783403",
"0.47643... | 0.6466393 | 0 |
Checks if this is a GraticulesUpdated event. | public boolean areGraticulesUpdated() {
return GRATICULESUPDATED.equals(message);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isEventUpdated(Event event) \n\t{\n\t\treturn false;\n\t}",
"public boolean isGridUpdated() {\n return GRIDUPDATED.equals(message);\n }",
"public final boolean isUpdated() {\n\t\treturn (m_flags & Updated) != 0 ? true : false;\n\t}",
"public boolean hasUpdate(VehicleState change) {\n... | [
"0.6604353",
"0.6440355",
"0.6110926",
"0.5942325",
"0.5914769",
"0.58990484",
"0.58955944",
"0.58955944",
"0.5886341",
"0.58380824",
"0.58378357",
"0.58187",
"0.5800198",
"0.5800198",
"0.5794085",
"0.57409036",
"0.57393897",
"0.57197064",
"0.5712115",
"0.56710523",
"0.566258... | 0.76571506 | 0 |
Creates a CoordSystemChanged event. This event is triggered when the coordinate representation visible to the user is changed. | public static ApproxsimEvent getCoordSystemChanged(Object source) {
return new ApproxsimEvent(source, COORDSYSTEMCHANGED);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isCoordSystemChanged() {\n return COORDSYSTEMCHANGED.equals(message);\n }",
"@Override\n public void propertyChange(PropertyChangeEvent e) {\n this.updateCoords();\n }",
"void onNewCoords(Coords coords);",
"public void changed(LocationEvent arg0) {\n \t\t\t\t\t\t\n \t\... | [
"0.6963478",
"0.576325",
"0.56553346",
"0.55773145",
"0.54446495",
"0.5366158",
"0.5285183",
"0.525546",
"0.5196286",
"0.5161703",
"0.512836",
"0.51069313",
"0.5018887",
"0.50132406",
"0.5008801",
"0.49312127",
"0.49222583",
"0.48915806",
"0.48865405",
"0.48742723",
"0.486432... | 0.6526766 | 1 |
Checks if this is a CoordSystemChanged event. | public boolean isCoordSystemChanged() {
return COORDSYSTEMCHANGED.equals(message);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static ApproxsimEvent getCoordSystemChanged(Object source) {\n return new ApproxsimEvent(source, COORDSYSTEMCHANGED);\n }",
"public boolean isValueChanged() {\n return VALUECHANGED.equals(message);\n }",
"@Override\n public boolean isLocationValid(XYCoord coords)\n {\n return ma... | [
"0.58707166",
"0.58071405",
"0.56024677",
"0.55960315",
"0.5569828",
"0.55523735",
"0.55186236",
"0.5446641",
"0.5398384",
"0.5386866",
"0.53770584",
"0.53456753",
"0.52852654",
"0.5262693",
"0.52514255",
"0.5250225",
"0.52429855",
"0.5215766",
"0.52093035",
"0.52093035",
"0.... | 0.83016 | 0 |
Creates a new identifierChanged event. This type of event is triggered by a ApproxsimObject when its identifier changes. | public static ApproxsimEvent getIdentifierChanged(Object source,
String oldIdentifier) {
return new ApproxsimEvent(source, IDENTIFIERCHANGED, null, oldIdentifier);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isIdentifierChanged() {\n return IDENTIFIERCHANGED.equals(message);\n }",
"public void objectChanged(NamingEvent evt) throws RemoteException;",
"public void setIdentifier(String identifier) {\n this.identifier = identifier;\n }",
"public void setIdentifier(String identifier... | [
"0.57919896",
"0.5576485",
"0.5523609",
"0.5523609",
"0.5523609",
"0.5523609",
"0.55015516",
"0.5437522",
"0.5427732",
"0.541686",
"0.5364476",
"0.5358789",
"0.53475684",
"0.5281459",
"0.52698284",
"0.5267111",
"0.52622664",
"0.51613635",
"0.51590997",
"0.51444817",
"0.513018... | 0.7315841 | 0 |
Checks if this is a Replaced event. | public boolean isIdentifierChanged() {
return IDENTIFIERCHANGED.equals(message);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isReplaced() {\n return REPLACED.equals(message);\n }",
"boolean isReplaceable();",
"public boolean isEventUpdated(Event event) \n\t{\n\t\treturn false;\n\t}",
"boolean hasReplace();",
"boolean isReplaceable(TransferDescription description);",
"private boolean shouldProcessEvent(... | [
"0.64331096",
"0.5730953",
"0.56022894",
"0.546064",
"0.54079807",
"0.5297149",
"0.52385336",
"0.5202842",
"0.51822335",
"0.51748705",
"0.51552933",
"0.5145419",
"0.5144196",
"0.5121206",
"0.5095857",
"0.50905854",
"0.50693566",
"0.5064208",
"0.50631934",
"0.50289595",
"0.501... | 0.47406268 | 61 |
The String representation of the object. | public String toString() {
return message;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public String toString() {\n // TODO: Using Serializer\n return Serializer.toByteArray(this).toString();\n }",
"public String toString() { return stringify(this, true); }",
"public String toString() {\n\t\treturn this.toJSON().toString();\n\t}",
"public String toString() {\n\t... | [
"0.84077585",
"0.8329443",
"0.83211195",
"0.83211195",
"0.80404526",
"0.8037483",
"0.8005627",
"0.7995609",
"0.79878426",
"0.79705834",
"0.7934759",
"0.7917646",
"0.7910369",
"0.7856802",
"0.78353274",
"0.78192496",
"0.7814665",
"0.7813249",
"0.78057134",
"0.78028274",
"0.780... | 0.0 | -1 |
This has to return the configuration | public short[][] getConfigBytes(int maxBytesPerMsg) {
/*
* it is kind of ugly... Java can't convert a Char-Array to a Short-Array
*/
short[] config_file = new short[filename.length()];
char[] filename_c = filename.toCharArray();
for( int i=0; i<filename.length(); i++) {
config_file[i] = (short)filename_c[i];
}
// return the filename
short[][] config = {config_file};
return config;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected Config getConfig () {\n return this.conf;\n }",
"public Config getConfig();",
"public String getConfiguration(){\n\t\treturn this.config;\n\t}",
"Configuration getConfiguration();",
"Configuration getConfiguration();",
"Configuration getConfiguration();",
"Configuration getConfigura... | [
"0.8224471",
"0.81659275",
"0.81303716",
"0.8071951",
"0.8071951",
"0.8071951",
"0.8071951",
"0.79891497",
"0.7979143",
"0.79367197",
"0.7913935",
"0.78706455",
"0.78271914",
"0.7819791",
"0.7764073",
"0.7761228",
"0.77539724",
"0.77522695",
"0.77522695",
"0.77467525",
"0.774... | 0.0 | -1 |
/ TODO: if file exists, create a new filename ..._1.txt, ..._2.txt etc. TODO: do some replacement, e.g. replace %DATE% by actual date... etc. | public boolean setConfiguration(String[] strConfig) {
if ( strConfig == null || strConfig.length == 0 ) {
System.out.println("No configuration for TitanFileWriter");
// We take the current date and time as filename
Date now = new Date();
DateFormat dateFormat = new SimpleDateFormat("yyyyMMdd-HHmmss");
filename = dateFormat.format(now) + ".txt";
return true;
} else if ( strConfig.length > 1 ) {
System.out.println("Wrong configuration for TitanFileWriter");
return false;
}
filename = strConfig[0].toString();
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String createUniqueSuffix(String filename) {\n \t\tint fileTypeIdx = filename.lastIndexOf('.');\n \t\tString fileType = filename.substring(fileTypeIdx); // Let the fileType include the leading '.'\n \n \t\tfilename = filename.substring(0, fileTypeIdx); // Strip off the leading '/' from the filename\n \n ... | [
"0.63263226",
"0.6236881",
"0.62165385",
"0.6141966",
"0.60919744",
"0.60020375",
"0.5993009",
"0.5982712",
"0.59629405",
"0.5952763",
"0.5949957",
"0.59193754",
"0.5893651",
"0.5882934",
"0.58594954",
"0.5814914",
"0.57834643",
"0.5766447",
"0.57515144",
"0.5713907",
"0.5703... | 0.0 | -1 |
Getter for the filename. | public String getFilename() {
return filename;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final String getFilename() {\n return properties.get(FILENAME_PROPERTY);\n }",
"java.lang.String getFilename();",
"java.lang.String getFilename();",
"public String getFilename()\r\n\t{\r\n\t\treturn _filename; \r\n\t}",
"public String getFilename()\r\n\t{\r\n\t\treturn filename;\r\n\t}",
"publ... | [
"0.86953783",
"0.85983324",
"0.85983324",
"0.85753006",
"0.8537271",
"0.8522567",
"0.8504952",
"0.85042566",
"0.8498496",
"0.8498496",
"0.8473969",
"0.8473969",
"0.84709436",
"0.84709436",
"0.8469075",
"0.8469075",
"0.8461569",
"0.8450005",
"0.8445016",
"0.8445016",
"0.843885... | 0.8426205 | 24 |
Constructor(s) This is an overloaded constructor that takes in a Position. | public Bomb(Position posn) {
this.posn = posn;
this.fuseLength = Bomb.DEFAULT_FUSE_LENGTH;
this.dropTime = System.nanoTime();
this.explode = false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Position() {\n\n\t}",
"public Position(int x, int y) {\n this.x = x;\n this.y = y;\n }",
"public Position(int x, int y) {\n this.x = x;\n this.y = y;\n }",
"public Position(Position p_p)\n {\n this.x = p_p.x;\n this.y = p_p.y;\n }",
"public... | [
"0.8150381",
"0.76035684",
"0.7481412",
"0.7475939",
"0.7475324",
"0.7402536",
"0.73912966",
"0.73544014",
"0.7282848",
"0.72364974",
"0.7181415",
"0.7109157",
"0.7011879",
"0.701176",
"0.70043415",
"0.69828033",
"0.6956483",
"0.6938552",
"0.6766992",
"0.67454463",
"0.6737137... | 0.0 | -1 |
End Bomb(Position) This is an overloaded constructor that takes in a Position and a fuse length. | public Bomb(Position posn, long fuseLength) {
this.posn = posn;
this.fuseLength = fuseLength;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Bomb(PlayerID ownerId, Cell position, int fuseLength, int range) {\n\t\tthis(ownerId, position, Objects.requireNonNull(Sq.iterate(fuseLength, u -> u - 1).limit(fuseLength)), range);\n\t}",
"public Bomb(Position posn) {\n\t\tthis.posn = posn;\n\t\tthis.fuseLength = Bomb.DEFAULT_FUSE_LENGTH;\n\t\tthis.dropT... | [
"0.6410538",
"0.60622513",
"0.57538736",
"0.54964143",
"0.52136534",
"0.5196912",
"0.51847595",
"0.5180093",
"0.5058725",
"0.49951836",
"0.49132255",
"0.4809962",
"0.47949827",
"0.47916868",
"0.4776592",
"0.47745666",
"0.47459546",
"0.4733282",
"0.4718488",
"0.46979257",
"0.4... | 0.68747914 | 0 |
End Bomb(Position, long) End Constructor(s) | @Override
public Position getPosition() {
return this.posn;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Bomb(){\n this.num_uses = 2147483647; // Constant set num times we can use this\n }",
"public Bomb(Position posn) {\n\t\tthis.posn = posn;\n\t\tthis.fuseLength = Bomb.DEFAULT_FUSE_LENGTH;\n\t\tthis.dropTime = System.nanoTime();\n\t\tthis.explode = false;\n\t}",
"public Bomb(int x, int y) {\n\t... | [
"0.71451616",
"0.66032934",
"0.64855784",
"0.62614673",
"0.620487",
"0.6131556",
"0.5899457",
"0.5899398",
"0.5881455",
"0.581831",
"0.5816199",
"0.5785893",
"0.565029",
"0.55798364",
"0.55388856",
"0.55221295",
"0.54876935",
"0.54785705",
"0.5442218",
"0.54353976",
"0.542642... | 0.0 | -1 |
End setPosition() Returns the fuse length of the bomb. | public long getFuseLength() {
return this.fuseLength;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Bomb(Position posn, long fuseLength) {\n\t\tthis.posn = posn;\n\t\tthis.fuseLength = fuseLength;\n\t}",
"public void setFuseLength(long newFuseLength) {\n\t\tthis.fuseLength = newFuseLength;\n\t}",
"public Bomb(PlayerID ownerId, Cell position, int fuseLength, int range) {\n\t\tthis(ownerId, position, Ob... | [
"0.6048631",
"0.58764535",
"0.57867885",
"0.57392627",
"0.5706371",
"0.57001793",
"0.5613849",
"0.561032",
"0.55972254",
"0.55880475",
"0.55685174",
"0.55577654",
"0.5544179",
"0.552917",
"0.5511701",
"0.5511701",
"0.54918945",
"0.54363155",
"0.54205054",
"0.54080033",
"0.540... | 0.64584994 | 0 |
End getFuseLength() Sets the fuse length of the bomb. | public void setFuseLength(long newFuseLength) {
this.fuseLength = newFuseLength;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public long getFuseLength() {\n\t\treturn this.fuseLength;\n\t}",
"public void addToFuseLength(long newFuseLength) {\n\t\tthis.fuseLength = newFuseLength + this.fuseLength;\n\t}",
"public void setLength(long length);",
"public void setLength(long length);",
"void setLength( long length );",
"public void ... | [
"0.72143024",
"0.71786946",
"0.6141599",
"0.6141599",
"0.60358095",
"0.60193855",
"0.58656245",
"0.57936233",
"0.57719505",
"0.57613593",
"0.57264113",
"0.569562",
"0.56790334",
"0.5674484",
"0.5618811",
"0.56101155",
"0.5595005",
"0.5592703",
"0.5578325",
"0.5572948",
"0.556... | 0.7492453 | 0 |
End setFuseLength() Updates the fuse length of the bomb. | public void addToFuseLength(long newFuseLength) {
this.fuseLength = newFuseLength + this.fuseLength;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setFuseLength(long newFuseLength) {\n\t\tthis.fuseLength = newFuseLength;\n\t}",
"public long getFuseLength() {\n\t\treturn this.fuseLength;\n\t}",
"public void setCurrentLength(long currentLength) { \n this.currentLength = currentLength; \n }",
"public void setLength(double n... | [
"0.74352944",
"0.6361134",
"0.6158044",
"0.6062851",
"0.60407305",
"0.597534",
"0.597534",
"0.57562286",
"0.575586",
"0.574511",
"0.56974155",
"0.5628981",
"0.55985224",
"0.557597",
"0.55303913",
"0.5483078",
"0.54240483",
"0.5387452",
"0.5366019",
"0.53621453",
"0.5356157",
... | 0.7429597 | 1 |
End setFuseLength() Checks to see if the fuse is gone to explode. | public boolean checkExplode() {
long currentFuse = System.nanoTime() - this.getDropTime();
if (currentFuse >= this.getFuseLength() || explode)
return true;
else
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setFuseLength(long newFuseLength) {\n\t\tthis.fuseLength = newFuseLength;\n\t}",
"public void addToFuseLength(long newFuseLength) {\n\t\tthis.fuseLength = newFuseLength + this.fuseLength;\n\t}",
"public long getFuseLength() {\n\t\treturn this.fuseLength;\n\t}",
"public void setLengthOfStay(int le... | [
"0.71468925",
"0.6613904",
"0.6441597",
"0.5562441",
"0.54456455",
"0.53928024",
"0.53430074",
"0.5239736",
"0.51603025",
"0.51481867",
"0.51456445",
"0.51456445",
"0.51372147",
"0.51330495",
"0.51259345",
"0.51155317",
"0.5102754",
"0.5099263",
"0.5077273",
"0.5077255",
"0.5... | 0.6571728 | 2 |
End checkExplode() Returns the drop time of the bomb. | public long getDropTime() {
return dropTime;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getBombDetonationTime() {\n \t\treturn 1000;\n \t}",
"public boolean checkExplode() {\n\t\tlong currentFuse = System.nanoTime() - this.getDropTime();\n\t\t\n\t\tif (currentFuse >= this.getFuseLength() || explode)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}",
"public int useBomb(){\n ... | [
"0.6877019",
"0.65484685",
"0.6281702",
"0.5880492",
"0.58771497",
"0.58590645",
"0.5781835",
"0.5610373",
"0.5573606",
"0.5566268",
"0.55149895",
"0.5500856",
"0.5462455",
"0.5429631",
"0.5393966",
"0.5359923",
"0.53457725",
"0.5345415",
"0.5339882",
"0.53179693",
"0.5312929... | 0.6389735 | 2 |
End getDropTime() Sets the drop time of the bomb. | public void setDropTime(long dropTime) {
this.dropTime = dropTime;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public long getDropTime() {\n\t\treturn dropTime;\n\t}",
"public double generateDropTime() {\n return LOWERLIMTIME + (Math.random() * ((UPPERLIMTIME - LOWERLIMTIME) + 1));\n\n }",
"public void setDropType(DropType dropType) {\n _dropType = dropType;\n }",
"public int getBombDetonationTime... | [
"0.7653872",
"0.61483604",
"0.6125878",
"0.5963257",
"0.5900303",
"0.58758914",
"0.5863849",
"0.58541226",
"0.58529747",
"0.57983476",
"0.5732782",
"0.57203525",
"0.5714129",
"0.5713016",
"0.5593023",
"0.5578267",
"0.5551949",
"0.55225307",
"0.55145323",
"0.544665",
"0.542373... | 0.8088686 | 0 |
End draw Sets the explode variable to user input. | public void setExplode(boolean explode) {
this.explode = explode;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void explode() {\n\t\tthis.explosion = false;\n\t}",
"private void explode()\n\t{\n\t\texplosion.setX(getX());\n\t\texplosion.setY(getY());\n\t\t\n\t\tif(!explosion.isOver())\n\t\t{\n\t\t\texplosion.update();\n\t\t\texplosion.drawObject();\n\t\t}\t\n\t\telse\n\t\t\talive = false;\n\t}",
"public void exp... | [
"0.62135786",
"0.6025953",
"0.59662676",
"0.59082395",
"0.5816071",
"0.580007",
"0.57667965",
"0.57378966",
"0.538081",
"0.53487194",
"0.53281885",
"0.5322606",
"0.52939403",
"0.527565",
"0.5273538",
"0.5252951",
"0.52157736",
"0.52121216",
"0.518567",
"0.51335174",
"0.511119... | 0.49979678 | 29 |
End setExplode() Returns if a bomb will explode. | public boolean isExplode() {
return explode;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void explode() {\n\t\tthis.explosion = false;\n\t}",
"public void explode(){\n\t\timage = explosion;\n\t\tisExploded = true;\n\t}",
"public boolean checkExplode() {\n\t\tlong currentFuse = System.nanoTime() - this.getDropTime();\n\t\t\n\t\tif (currentFuse >= this.getFuseLength() || explode)\n\t\t\tretur... | [
"0.7555472",
"0.7041239",
"0.69589007",
"0.6812391",
"0.67303425",
"0.6679654",
"0.6631045",
"0.6628101",
"0.654451",
"0.6193257",
"0.61003006",
"0.6068857",
"0.60575897",
"0.60088",
"0.5976148",
"0.59252936",
"0.59242344",
"0.591865",
"0.591488",
"0.5907216",
"0.5769576",
... | 0.717642 | 1 |
Helper function to ckeck if the text is in vaild length check if lat/lon is within range | private void validatePostTweet(Tweet tweet) {
//check if the length exceeds 140 characters
if (tweet.getText().length() > 140) {
throw new IllegalArgumentException("Tweet is too long");
}
//check if lon/lst is within range
Double lon = tweet.getCooridinates().getCoordinates().get(0);
Double lat = tweet.getCooridinates().getCoordinates().get(1);
if (lon > 180 || lon < -180 || lat > 90 || lat <-90) {
throw new IllegalArgumentException("Coordinates out of range");
}
return;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static boolean stringInBounds(String plainText) {\r\n\t\tchar[] val = plainText.toCharArray();\r\n\t\tfor (int i = 0; i < val.length; i++) {\r\n\t\t\tif (!(val[i]==SPACE) &&!(val[i] >= LOWER_BOUND && val[i] <= UPPER_BOUND)) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"publi... | [
"0.6729031",
"0.6589749",
"0.65780354",
"0.5924414",
"0.58591986",
"0.578532",
"0.5763052",
"0.571042",
"0.571042",
"0.569946",
"0.5685209",
"0.56417286",
"0.55313146",
"0.5497244",
"0.54958606",
"0.54894483",
"0.54622364",
"0.54060435",
"0.53960943",
"0.5384821",
"0.537681",... | 0.52859545 | 26 |
check if the tweet id is all digit | private void validateId(String id) {
if (!id.matches("[0-9]+")) {
throw new IllegalArgumentException("Invaild Tweet Id");
}
return;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean CheckID(String id) {\n\t\tif ((!id.matches(\"([0-9])+\") || id.length() != 9) && (!id.matches(\"S([0-9])+\") || id.length() != 10)) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"static boolean verifyID(String id)\r\n\t{\r\n\t\tfor(int i = 0; i < id.length(); i++)\r\n\t\t{\r\n\t\t\tchar ... | [
"0.7116283",
"0.6888588",
"0.6543503",
"0.6528316",
"0.62945414",
"0.6251363",
"0.6184216",
"0.61692464",
"0.6040584",
"0.5993946",
"0.59841555",
"0.5983787",
"0.59557015",
"0.5942105",
"0.5859375",
"0.5849586",
"0.5842887",
"0.58293986",
"0.58091104",
"0.57522374",
"0.571579... | 0.6595956 | 2 |
Inflate the menu; this adds items to the action bar if it is present. | @Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.main, menu);
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {... | [
"0.7246102",
"0.7201358",
"0.7194834",
"0.7176498",
"0.71066517",
"0.7039537",
"0.7037961",
"0.70112145",
"0.70094734",
"0.69807225",
"0.6944953",
"0.69389373",
"0.6933199",
"0.6916928",
"0.6916928",
"0.6891486",
"0.68831646",
"0.68754137",
"0.68745375",
"0.68621665",
"0.6862... | 0.0 | -1 |
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml. | @Override
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case R.id.AboutMe: {
showMyDialog();
return true;
}
case R.id.shareApp: {
ShareActionProvider myShareActionProvider = (ShareActionProvider) item
.getActionProvider();
Intent sharingIntent = new Intent(
android.content.Intent.ACTION_SEND);
sharingIntent.setType("text/plain");
String shareBody = "the link to the app";
sharingIntent.putExtra(android.content.Intent.EXTRA_SUBJECT,
"Check out my App");
sharingIntent
.putExtra(android.content.Intent.EXTRA_TEXT, shareBody);
myShareActionProvider.setShareIntent(sharingIntent);
return true;
}
case R.id.favs: {
Intent myIntent = new Intent(this, List.class);
myIntent.putExtra("typeList", 1111);
startActivity(myIntent);
return true;
}
case R.id.rateApp: {
final Uri uri = Uri.parse("market://details?id="
+ getApplicationContext().getPackageName());
final Intent rateAppIntent = new Intent(Intent.ACTION_VIEW, uri);
if (getPackageManager().queryIntentActivities(rateAppIntent, 0)
.size() > 0) {
startActivity(rateAppIntent);
} else {
Toast.makeText(getApplicationContext(), R.string.rateappno,
Toast.LENGTH_SHORT).show();
/*
* handle your error case: the device has no way to handle
* market urls
*/
}
return true;
}
case R.id.sendfeedback: {
startActivity(new Intent(MainActivity.this, Feedback.class));
return true;
}
// start activity for feedback form
default:
return super.onOptionsItemSelected(item);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ... | [
"0.7903837",
"0.78051525",
"0.77659255",
"0.77268183",
"0.7631446",
"0.7621391",
"0.75841075",
"0.7530494",
"0.7487704",
"0.7456764",
"0.7456764",
"0.74384135",
"0.74208015",
"0.74030864",
"0.7391401",
"0.7386621",
"0.73789454",
"0.7370171",
"0.73620147",
"0.7355636",
"0.7345... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onClick(View v) {
if (v.getId() == R.id.winnerid) {
Intent myIntent = new Intent(this, Winners.class);
startActivity(myIntent);
} else {
Intent myIntent = new Intent(this, List.class);
myIntent.putExtra("typeList", ((Button) v).getId());
startActivity(myIntent);
}
} | {
"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 |
Atribui aos objetos criados o componente de leyout correspondente | private void initFormulario() {
btnCadastro = findViewById(R.id.btnCadastro);
editNome = findViewById(R.id.editNome);
editEmail = findViewById(R.id.editEmail);
editSenhaA = findViewById(R.id.editSenha);
editSenhaB = findViewById(R.id.editSenhaB);
chTermo = findViewById(R.id.chTermos);
isFormOk = false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public LecturaPorEvento() \r\n {\r\n }",
"private void crearObjetos() {\n // crea los botones\n this.btnOK = new CCButton(this.OK);\n this.btnOK.setActionCommand(\"ok\");\n this.btnOK.setToolTipText(\"Confirmar la Operación\");\n \n this.btnCancel = new CCButton(th... | [
"0.61663014",
"0.60957927",
"0.6065218",
"0.6005016",
"0.5973156",
"0.5952015",
"0.59346944",
"0.5933516",
"0.5899642",
"0.5875899",
"0.5866148",
"0.5864441",
"0.58576393",
"0.58481926",
"0.58272886",
"0.58244663",
"0.5820864",
"0.5820344",
"0.580903",
"0.57983863",
"0.578835... | 0.0 | -1 |
/Metodo que compara as duas senhas digitadas nos campos | public boolean validarSenha(){ //boleano
boolean retorno = false; //variavel boleana ja recebendo false
int senhaA, senhaB;
senhaA = Integer.parseInt(editSenhaA.getText().toString());
senhaB = Integer.parseInt(editSenhaB.getText().toString());
retorno = (senhaA == senhaB);
return retorno; //reorna o proprio retorno
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean verificarCnpj(String cnpj) {\n return true;\n \n// if (cnpj.length() != 14) {\n// return false;\n// }\n//\n// int soma = 0;\n// int dig = 0;\n//\n// String digitosIniciais = cnpj.substring(0, 12);\n// char[] cnpjCharArray = cnpj.toCharArr... | [
"0.56370205",
"0.55273277",
"0.54987437",
"0.533689",
"0.52761245",
"0.52759683",
"0.5240773",
"0.5153598",
"0.513036",
"0.51257205",
"0.5107712",
"0.51065844",
"0.50856435",
"0.50851625",
"0.507079",
"0.50540906",
"0.5035486",
"0.5012954",
"0.5007672",
"0.49800757",
"0.49759... | 0.52381665 | 7 |
Given an infinite number of quarters (25 cents), dimes (10 cents), nickels (5 cents) and pennies (1 cent), write code to calculate the number of ways of representing n cents | public static int makeChange(int n, int denom)
{
int next_denom = 0;
switch(denom)
{
case 25: next_denom = 10; break;
case 10: next_denom = 5; break;
case 5:next_denom = 1; break;
case 1:return 1;
}
int ways=0;
for(int i=0;i*denom<n;i++)
{
ways=ways+makeChange(n-i*denom, next_denom);
}
return ways;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static int sumCoins(int quarters, int dimes, int nickels, int pennies){\n \n return (quarters * 25) + (dimes * 10) + (nickels * 5) + (pennies) * 1;\n }",
"public static void numOfWrappersAndCoins(BigDecimal penny, BigDecimal nickel, BigDecimal dime, BigDecimal quarter){\n // Find the appro... | [
"0.7013872",
"0.65981734",
"0.64673436",
"0.6352629",
"0.61218584",
"0.59232694",
"0.5766536",
"0.5737475",
"0.569498",
"0.56595534",
"0.56556696",
"0.56214815",
"0.55438584",
"0.5538536",
"0.54875064",
"0.5434092",
"0.5432138",
"0.5418825",
"0.5412053",
"0.5396323",
"0.53963... | 0.5466468 | 15 |
Called when task begins for any initialization logic. | protected void onBegin() {} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void init() {\n this.log.pri1(LoggingInterface.INIT_START, \"\");\n // Any task initialization code goes here.\n this.log.pri1(LoggingInterface.INIT_END, \"\");\n }",
"@Override\n public void onInitializeTasks() {\n }",
"public void initialize() {\n\n getS... | [
"0.8216013",
"0.7898842",
"0.76822037",
"0.7392349",
"0.7211754",
"0.7048105",
"0.7026426",
"0.6994605",
"0.69733036",
"0.69532996",
"0.6945936",
"0.69457364",
"0.689964",
"0.68920255",
"0.68823993",
"0.6862437",
"0.6858621",
"0.6848027",
"0.6848027",
"0.68235934",
"0.6789501... | 0.0 | -1 |
Called when task ends (no cursor) | protected void onEnd() {} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void endTask();",
"public void finishTask() {\n\t\t\n\t}",
"void TaskFinished(Task task) {\n\n repository.finishTask(task);\n }",
"public void finish() {\n\t\ttask.run();\n\t\ttask.cancel();\n\t}",
"@Override\r\n public void tasksFinished()\r\n {\n }",
"void fin... | [
"0.83726656",
"0.8137818",
"0.77749974",
"0.7591923",
"0.74022084",
"0.7372094",
"0.73460674",
"0.720212",
"0.720212",
"0.720212",
"0.720212",
"0.7179716",
"0.71732175",
"0.71732175",
"0.71732175",
"0.71732175",
"0.71732175",
"0.71732175",
"0.71732175",
"0.71732175",
"0.71732... | 0.7218384 | 7 |
Get the requested menu item | @Nonnull
private static IHCNode _getMainContent (@Nonnull final LayoutExecutionContext aLEC)
{
final IMenuItemPage aSelectedMenuItem = ApplicationRequestManager.getInstance ().getRequestMenuItem ();
// Resolve the page of the selected menu item (if found)
IWebPage aDisplayPage = SystemPageNotFound.getInstance ();
if (aSelectedMenuItem != null)
{
// Only if we have display rights!
if (aSelectedMenuItem.matchesDisplayFilter ())
aDisplayPage = (IWebPage) aSelectedMenuItem.getPage ();
else
{
// No rights -> goto start page
aDisplayPage = (IWebPage) ApplicationRequestManager.getInstance ()
.getMenuTree ()
.getDefaultMenuItem ()
.getPage ();
}
}
final WebPageExecutionContext aWPEC = new WebPageExecutionContext (aLEC, aDisplayPage);
// Build page content: header + content
final HCNodeList aPageContainer = new HCNodeList ();
final String sHeaderText = aDisplayPage.getHeaderText (aWPEC);
if (StringHelper.hasText (sHeaderText))
aPageContainer.addChild (new BootstrapPageHeader ().addChild (HCH1.create (sHeaderText)));
// Main fill content
aDisplayPage.getContent (aWPEC);
// Add result
aPageContainer.addChild (aWPEC.getNodeList ());
return aPageContainer;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public MenuItem findItem(int id);",
"UmsMenu getItem(Long id);",
"public native MenuItem getSelectedItem();",
"@Override\n\tpublic Menu getItem(int arg0) {\n\t\treturn arrayList.get(arg0);\n\t}",
"MenuItem getMenuItemAbout();",
"public MenuItem getMenuItem() {\r\n\t\treturn menuItem;\r\n\t}",
"public M... | [
"0.7590645",
"0.74293745",
"0.70928323",
"0.6957048",
"0.6807455",
"0.67665344",
"0.6648445",
"0.6643084",
"0.6626528",
"0.66248524",
"0.6483658",
"0.6390465",
"0.6336385",
"0.6302387",
"0.6277404",
"0.62385297",
"0.622479",
"0.6224187",
"0.6205249",
"0.6188401",
"0.6154698",... | 0.0 | -1 |
/ Your class should be named Solution Don't write main(). Don't read input, it is passed as function argument. Return output and don't print it. Taking input and printing output is handled automatically. | public static boolean checkNumber(int a[], int x) {
if(a.length==1)
{
if(a[0]==x){
return true;
}
else
return false;
}
if(a[0]==x)
return true;
int arr[]=new int[a.length-1];
for(int i=1;i<a.length;i++)
{
arr[i-1]=a[i];
}
boolean check = checkNumber(arr,x);
return check;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void solution() {\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\tSystem.out.println(solution());\r\n\t}",
"public static void main(String[] args) throws IOException{\n BufferedReader f = new BufferedReader(new InputStreamReader(System.in));\r\n\r\n \tint n = Integer.parseInt(f.rea... | [
"0.7480491",
"0.7144402",
"0.71346366",
"0.7088926",
"0.7065908",
"0.7056964",
"0.70365494",
"0.7008505",
"0.698203",
"0.69500643",
"0.6860463",
"0.68571985",
"0.6836215",
"0.6793387",
"0.6763109",
"0.6737346",
"0.67308205",
"0.6706409",
"0.6700606",
"0.66883624",
"0.66307694... | 0.0 | -1 |
TODO Autogenerated method stub | public WebDriver getDriver() {
return this.driver;
} | {
"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 |
HomePage hs= new HomePage(); hs.tearDown(); | public void closeWindow() throws Exception {
this.driver.close();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public HomePageTest(){\n\t\tsuper();\n\t}",
"void tearDown();",
"void tearDown();",
"@Test\n public void testHomePage() throws Exception {\n }",
"@Override\r\n protected void tearDown() {\r\n // nothing yet\r\n }",
"@Override\n public void tearDown(){\n }",
"public abstract void tearDo... | [
"0.79177046",
"0.7425145",
"0.7425145",
"0.73681414",
"0.73617655",
"0.73108256",
"0.73054916",
"0.72892046",
"0.7270408",
"0.72546697",
"0.7254145",
"0.7254145",
"0.72385144",
"0.72385144",
"0.72385144",
"0.7235003",
"0.7209404",
"0.7208037",
"0.7197447",
"0.7163827",
"0.715... | 0.0 | -1 |
interfaccia definita per le classi che gestiscono la prenotazione | public interface Prenotazione<T extends Model> {
/**
* consente di prenotare un volo
* @param listToAdd lista di elementi da prenotare
* @param idVolo id del volo da prenotare
* @return id gruppo / id pallet prenotati
* @throws FlightNotFoundException volo non trovato
* @throws SeatsSoldOutException volo pieno
*/
public abstract ObjectId[] prenota(List<T> listToAdd, ObjectId idVolo) throws FlightNotFoundException, SeatsSoldOutException;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"public void inizializza() {\n\n /* invoca il metodo sovrascritto della superclasse */\n super.inizializza();\n\n }",
"public void consulterClassement() {\n\t\t\n\t}",
"@Override\n\tpu... | [
"0.73683953",
"0.71363765",
"0.7051481",
"0.6936704",
"0.69046956",
"0.68797046",
"0.683378",
"0.6758708",
"0.6685709",
"0.66771966",
"0.667643",
"0.66500205",
"0.66450226",
"0.6623129",
"0.6546136",
"0.6546136",
"0.6540814",
"0.6534815",
"0.6518603",
"0.6506215",
"0.650613",... | 0.0 | -1 |
consente di prenotare un volo | public abstract ObjectId[] prenota(List<T> listToAdd, ObjectId idVolo) throws FlightNotFoundException, SeatsSoldOutException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void voar() {\n\t\t\r\n\t}",
"@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di friggere un uovo\";\r\n }",
"public void obrniListu() {\n if (prvi != null && prvi.vez... | [
"0.6572056",
"0.61615264",
"0.6154787",
"0.61152035",
"0.60688347",
"0.60574615",
"0.6044642",
"0.6019038",
"0.60113823",
"0.6000948",
"0.5859145",
"0.5830259",
"0.5824547",
"0.581316",
"0.5812924",
"0.57721657",
"0.5767827",
"0.5764832",
"0.5761421",
"0.5757561",
"0.5742015"... | 0.0 | -1 |
get the description of the CellState, used to differentiate between different states in a humanreadable manner | public String getStateDescription() {
return myID;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@DISPID(94)\r\n\t// = 0x5e. The runtime will prefer the VTID if present\r\n\t@VTID(92)\r\n\tjava.lang.String stateDescription();",
"public String getStateDescription() {\n return (String)getAttributeInternal(STATEDESCRIPTION);\n }",
"java.lang.String getState();",
"public String getState() {\n\t\tr... | [
"0.7590749",
"0.741607",
"0.7172582",
"0.7043193",
"0.7031565",
"0.70100343",
"0.69463176",
"0.6935452",
"0.6883424",
"0.6883424",
"0.6883424",
"0.6872956",
"0.6870117",
"0.6856296",
"0.6818766",
"0.6808877",
"0.6744717",
"0.67377996",
"0.67377996",
"0.67342365",
"0.67221767"... | 0.62926346 | 81 |
return the Node representing this state so that it can be rendered on the Grid | public abstract Node getNode(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Node getNode (){\n if (_node == null){\n Label label = new Label(_value);\n label.setFont(DEFAULT_FONT);\n _node = label;\n }\n return _node;\n }",
"INodeState getCurrentNode();",
"public String getNode() {\n return node;\n }",
"public Strin... | [
"0.6974291",
"0.6672863",
"0.6605027",
"0.65877783",
"0.65846616",
"0.6542671",
"0.6534832",
"0.64794105",
"0.64758086",
"0.6439732",
"0.6439732",
"0.64001375",
"0.63664174",
"0.63658214",
"0.63522005",
"0.63497204",
"0.62904066",
"0.62822825",
"0.6250494",
"0.6235053",
"0.62... | 0.61658424 | 22 |
string issuer = 1; | java.lang.String getIssuer(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getExternalIssuer();",
"private String issuer() {\n return \"spoqn.com\";\n }",
"public java.lang.String getIssuer() {\n java.lang.Object ref = issuer_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.proto... | [
"0.6743843",
"0.6626735",
"0.63449156",
"0.6333295",
"0.6303887",
"0.6256613",
"0.6245991",
"0.6183762",
"0.6137228",
"0.6027284",
"0.59360313",
"0.591487",
"0.57772315",
"0.57501674",
"0.5737276",
"0.5731122",
"0.5635174",
"0.5619547",
"0.5614435",
"0.5462219",
"0.5443301",
... | 0.7024679 | 0 |
string issuer = 1; | com.google.protobuf.ByteString
getIssuerBytes(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getIssuer();",
"public int getExternalIssuer();",
"private String issuer() {\n return \"spoqn.com\";\n }",
"public java.lang.String getIssuer() {\n java.lang.Object ref = issuer_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs... | [
"0.7024679",
"0.6743843",
"0.6626735",
"0.63449156",
"0.6333295",
"0.6303887",
"0.6256613",
"0.6245991",
"0.6183762",
"0.6137228",
"0.6027284",
"0.59360313",
"0.591487",
"0.57772315",
"0.57501674",
"0.5737276",
"0.5731122",
"0.5635174",
"0.5619547",
"0.5614435",
"0.5462219",
... | 0.5216857 | 43 |
string serialNumber = 2; | java.lang.String getSerialNumber(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getSerial();",
"public void setSerialNumber(String value)\n {\n _serialNumber = value;\n }",
"java.lang.String getSerial();",
"public int nextSerialNumber(){\n serialNumber++;\n return serialNumber;\n }",
"public int getSerialNum()\r\n\t{\r\n\t\treturn(serialNum);\r\n\t... | [
"0.7283441",
"0.709003",
"0.70772856",
"0.69768095",
"0.67499286",
"0.67275435",
"0.6684219",
"0.6673907",
"0.66585624",
"0.6579146",
"0.65766865",
"0.6567036",
"0.65189946",
"0.65189946",
"0.6487284",
"0.6487284",
"0.6357336",
"0.6336673",
"0.6313595",
"0.62964815",
"0.62428... | 0.72638416 | 2 |
string serialNumber = 2; | com.google.protobuf.ByteString
getSerialNumberBytes(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getSerial();",
"java.lang.String getSerialNumber();",
"java.lang.String getSerialNumber();",
"public void setSerialNumber(String value)\n {\n _serialNumber = value;\n }",
"java.lang.String getSerial();",
"public int nextSerialNumber(){\n serialNumber++;\n return serialNu... | [
"0.7283441",
"0.72638416",
"0.72638416",
"0.709003",
"0.70772856",
"0.69768095",
"0.67499286",
"0.67275435",
"0.6684219",
"0.6673907",
"0.66585624",
"0.6579146",
"0.65766865",
"0.6567036",
"0.65189946",
"0.65189946",
"0.6487284",
"0.6487284",
"0.6357336",
"0.6336673",
"0.6313... | 0.0 | -1 |
Use QueryGetCertificateRequest.newBuilder() to construct. | private QueryGetCertificateRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private QueryGetCertificatesRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private QueryGetCertificateResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"java.util.concurrent.Future<GetCertificateResult> g... | [
"0.700501",
"0.67932147",
"0.67844063",
"0.63401693",
"0.6204655",
"0.61585253",
"0.6043261",
"0.60209817",
"0.5848506",
"0.5677969",
"0.55137134",
"0.5492593",
"0.5411418",
"0.540347",
"0.5361925",
"0.5239939",
"0.51787853",
"0.51746154",
"0.5158673",
"0.51518077",
"0.511782... | 0.7560857 | 0 |
string issuer = 1; | public java.lang.String getIssuer() {
java.lang.Object ref = issuer_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
issuer_ = s;
return s;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getIssuer();",
"public int getExternalIssuer();",
"private String issuer() {\n return \"spoqn.com\";\n }",
"public java.lang.String getIssuer() {\n java.lang.Object ref = issuer_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs... | [
"0.7024679",
"0.6743843",
"0.6626735",
"0.63449156",
"0.6333295",
"0.6256613",
"0.6245991",
"0.6183762",
"0.6137228",
"0.6027284",
"0.59360313",
"0.591487",
"0.57772315",
"0.57501674",
"0.5737276",
"0.5731122",
"0.5635174",
"0.5619547",
"0.5614435",
"0.5462219",
"0.5443301",
... | 0.6303887 | 5 |
string issuer = 1; | public com.google.protobuf.ByteString
getIssuerBytes() {
java.lang.Object ref = issuer_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
issuer_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getIssuer();",
"public int getExternalIssuer();",
"private String issuer() {\n return \"spoqn.com\";\n }",
"public java.lang.String getIssuer() {\n java.lang.Object ref = issuer_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs... | [
"0.7024679",
"0.6743843",
"0.6626735",
"0.63449156",
"0.6333295",
"0.6303887",
"0.6256613",
"0.6245991",
"0.6183762",
"0.6137228",
"0.6027284",
"0.59360313",
"0.591487",
"0.57501674",
"0.5737276",
"0.5731122",
"0.5635174",
"0.5619547",
"0.5614435",
"0.5462219",
"0.5443301",
... | 0.57772315 | 13 |
string serialNumber = 2; | public java.lang.String getSerialNumber() {
java.lang.Object ref = serialNumber_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
serialNumber_ = s;
return s;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getSerial();",
"java.lang.String getSerialNumber();",
"java.lang.String getSerialNumber();",
"public void setSerialNumber(String value)\n {\n _serialNumber = value;\n }",
"java.lang.String getSerial();",
"public int nextSerialNumber(){\n serialNumber++;\n return serialNu... | [
"0.7283441",
"0.72638416",
"0.72638416",
"0.709003",
"0.70772856",
"0.69768095",
"0.67499286",
"0.67275435",
"0.6684219",
"0.6673907",
"0.66585624",
"0.6579146",
"0.65766865",
"0.6567036",
"0.65189946",
"0.65189946",
"0.6357336",
"0.6336673",
"0.6313595",
"0.62964815",
"0.624... | 0.6487284 | 17 |
string serialNumber = 2; | public com.google.protobuf.ByteString
getSerialNumberBytes() {
java.lang.Object ref = serialNumber_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serialNumber_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getSerial();",
"java.lang.String getSerialNumber();",
"java.lang.String getSerialNumber();",
"public void setSerialNumber(String value)\n {\n _serialNumber = value;\n }",
"java.lang.String getSerial();",
"public int nextSerialNumber(){\n serialNumber++;\n return serialNu... | [
"0.7283441",
"0.72638416",
"0.72638416",
"0.709003",
"0.70772856",
"0.69768095",
"0.67499286",
"0.67275435",
"0.6684219",
"0.6673907",
"0.66585624",
"0.6579146",
"0.65766865",
"0.6567036",
"0.65189946",
"0.65189946",
"0.6487284",
"0.6487284",
"0.6357336",
"0.6336673",
"0.6313... | 0.5976332 | 43 |
string issuer = 1; | public java.lang.String getIssuer() {
java.lang.Object ref = issuer_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
issuer_ = s;
return s;
} else {
return (java.lang.String) ref;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getIssuer();",
"public int getExternalIssuer();",
"private String issuer() {\n return \"spoqn.com\";\n }",
"@Test\n public void issuerTest() {\n // TODO: test issuer\n }",
"public java.lang.String getIssuer() {\n java.lang.Object ref = issuer_;\n if (ref in... | [
"0.7024679",
"0.6743843",
"0.6626735",
"0.6333295",
"0.6303887",
"0.6256613",
"0.6245991",
"0.6183762",
"0.6137228",
"0.6027284",
"0.59360313",
"0.591487",
"0.57772315",
"0.57501674",
"0.5737276",
"0.5731122",
"0.5635174",
"0.5619547",
"0.5614435",
"0.5462219",
"0.5443301",
... | 0.63449156 | 3 |
string issuer = 1; | public com.google.protobuf.ByteString
getIssuerBytes() {
java.lang.Object ref = issuer_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
issuer_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getIssuer();",
"public int getExternalIssuer();",
"private String issuer() {\n return \"spoqn.com\";\n }",
"public java.lang.String getIssuer() {\n java.lang.Object ref = issuer_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs... | [
"0.7024679",
"0.6743843",
"0.6626735",
"0.63449156",
"0.6333295",
"0.6303887",
"0.6256613",
"0.6245991",
"0.6183762",
"0.6137228",
"0.6027284",
"0.59360313",
"0.57772315",
"0.57501674",
"0.5737276",
"0.5731122",
"0.5635174",
"0.5619547",
"0.5614435",
"0.5462219",
"0.5443301",... | 0.591487 | 12 |
string issuer = 1; | public Builder setIssuer(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
issuer_ = value;
onChanged();
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getIssuer();",
"public int getExternalIssuer();",
"private String issuer() {\n return \"spoqn.com\";\n }",
"public java.lang.String getIssuer() {\n java.lang.Object ref = issuer_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs... | [
"0.7024679",
"0.6743843",
"0.6626735",
"0.63449156",
"0.6333295",
"0.6303887",
"0.6245991",
"0.6183762",
"0.6137228",
"0.6027284",
"0.59360313",
"0.591487",
"0.57772315",
"0.57501674",
"0.5737276",
"0.5731122",
"0.5635174",
"0.5619547",
"0.5614435",
"0.5462219",
"0.5443301",
... | 0.6256613 | 6 |
string issuer = 1; | public Builder clearIssuer() {
issuer_ = getDefaultInstance().getIssuer();
onChanged();
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getIssuer();",
"public int getExternalIssuer();",
"private String issuer() {\n return \"spoqn.com\";\n }",
"public java.lang.String getIssuer() {\n java.lang.Object ref = issuer_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs... | [
"0.7024679",
"0.6743843",
"0.6626735",
"0.63449156",
"0.6333295",
"0.6303887",
"0.6256613",
"0.6245991",
"0.6183762",
"0.6137228",
"0.6027284",
"0.59360313",
"0.591487",
"0.57772315",
"0.57501674",
"0.5737276",
"0.5731122",
"0.5635174",
"0.5619547",
"0.5614435",
"0.5462219",
... | 0.0 | -1 |
string issuer = 1; | public Builder setIssuerBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
issuer_ = value;
onChanged();
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getIssuer();",
"public int getExternalIssuer();",
"private String issuer() {\n return \"spoqn.com\";\n }",
"public java.lang.String getIssuer() {\n java.lang.Object ref = issuer_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs... | [
"0.7024679",
"0.6743843",
"0.6626735",
"0.63449156",
"0.6333295",
"0.6303887",
"0.6256613",
"0.6245991",
"0.6183762",
"0.6137228",
"0.6027284",
"0.59360313",
"0.591487",
"0.57772315",
"0.57501674",
"0.5737276",
"0.5731122",
"0.5635174",
"0.5619547",
"0.5614435",
"0.5462219",
... | 0.5218393 | 42 |
string serialNumber = 2; | public java.lang.String getSerialNumber() {
java.lang.Object ref = serialNumber_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
serialNumber_ = s;
return s;
} else {
return (java.lang.String) ref;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getSerial();",
"java.lang.String getSerialNumber();",
"java.lang.String getSerialNumber();",
"public void setSerialNumber(String value)\n {\n _serialNumber = value;\n }",
"java.lang.String getSerial();",
"public int nextSerialNumber(){\n serialNumber++;\n return serialNu... | [
"0.7283441",
"0.72638416",
"0.72638416",
"0.709003",
"0.70772856",
"0.69768095",
"0.67499286",
"0.67275435",
"0.6684219",
"0.6673907",
"0.66585624",
"0.6579146",
"0.65766865",
"0.6567036",
"0.6487284",
"0.6487284",
"0.6357336",
"0.6336673",
"0.6313595",
"0.62964815",
"0.62428... | 0.65189946 | 15 |
string serialNumber = 2; | public com.google.protobuf.ByteString
getSerialNumberBytes() {
java.lang.Object ref = serialNumber_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serialNumber_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getSerial();",
"java.lang.String getSerialNumber();",
"java.lang.String getSerialNumber();",
"public void setSerialNumber(String value)\n {\n _serialNumber = value;\n }",
"java.lang.String getSerial();",
"public int nextSerialNumber(){\n serialNumber++;\n return serialNu... | [
"0.7283441",
"0.72638416",
"0.72638416",
"0.709003",
"0.70772856",
"0.69768095",
"0.67499286",
"0.67275435",
"0.6684219",
"0.6673907",
"0.66585624",
"0.6579146",
"0.65766865",
"0.6567036",
"0.65189946",
"0.65189946",
"0.6487284",
"0.6487284",
"0.6357336",
"0.6336673",
"0.6313... | 0.604481 | 34 |
string serialNumber = 2; | public Builder setSerialNumber(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
serialNumber_ = value;
onChanged();
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getSerial();",
"java.lang.String getSerialNumber();",
"java.lang.String getSerialNumber();",
"public void setSerialNumber(String value)\n {\n _serialNumber = value;\n }",
"java.lang.String getSerial();",
"public int nextSerialNumber(){\n serialNumber++;\n return serialNu... | [
"0.7283441",
"0.72638416",
"0.72638416",
"0.709003",
"0.70772856",
"0.69768095",
"0.67499286",
"0.67275435",
"0.6684219",
"0.6673907",
"0.66585624",
"0.6579146",
"0.65766865",
"0.6567036",
"0.65189946",
"0.65189946",
"0.6487284",
"0.6487284",
"0.6357336",
"0.6336673",
"0.6313... | 0.6137607 | 26 |
string serialNumber = 2; | public Builder clearSerialNumber() {
serialNumber_ = getDefaultInstance().getSerialNumber();
onChanged();
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getSerial();",
"java.lang.String getSerialNumber();",
"java.lang.String getSerialNumber();",
"public void setSerialNumber(String value)\n {\n _serialNumber = value;\n }",
"java.lang.String getSerial();",
"public int nextSerialNumber(){\n serialNumber++;\n return serialNu... | [
"0.7283441",
"0.72638416",
"0.72638416",
"0.709003",
"0.70772856",
"0.69768095",
"0.67499286",
"0.67275435",
"0.6684219",
"0.6673907",
"0.66585624",
"0.6579146",
"0.65766865",
"0.6567036",
"0.65189946",
"0.65189946",
"0.6487284",
"0.6487284",
"0.6357336",
"0.6336673",
"0.6313... | 0.0 | -1 |
string serialNumber = 2; | public Builder setSerialNumberBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
serialNumber_ = value;
onChanged();
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getSerial();",
"java.lang.String getSerialNumber();",
"java.lang.String getSerialNumber();",
"public void setSerialNumber(String value)\n {\n _serialNumber = value;\n }",
"java.lang.String getSerial();",
"public int nextSerialNumber(){\n serialNumber++;\n return serialNu... | [
"0.7283441",
"0.72638416",
"0.72638416",
"0.709003",
"0.70772856",
"0.69768095",
"0.67499286",
"0.67275435",
"0.6684219",
"0.6673907",
"0.66585624",
"0.6579146",
"0.65766865",
"0.6567036",
"0.65189946",
"0.65189946",
"0.6487284",
"0.6487284",
"0.6357336",
"0.6336673",
"0.6313... | 0.0 | -1 |
.liubaninc.m0.pki.Certificate Certificate = 1; | boolean hasCertificate(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate();",
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate(int index);",
"liub... | [
"0.75187796",
"0.74023896",
"0.74023896",
"0.6761361",
"0.650354",
"0.650354",
"0.64368993",
"0.6363538",
"0.63245296",
"0.63014245",
"0.6220435",
"0.6220435",
"0.61037284",
"0.60805774",
"0.5914961",
"0.58821017",
"0.5789164",
"0.57772094",
"0.5680732",
"0.56629074",
"0.5647... | 0.5184336 | 51 |
.liubaninc.m0.pki.Certificate Certificate = 1; | liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate(int index);",
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index... | [
"0.74023896",
"0.74023896",
"0.6761361",
"0.650354",
"0.650354",
"0.64368993",
"0.6363538",
"0.63245296",
"0.63014245",
"0.6220435",
"0.6220435",
"0.61037284",
"0.60805774",
"0.5914961",
"0.58821017",
"0.5789164",
"0.57772094",
"0.5680732",
"0.56629074",
"0.56478107",
"0.5647... | 0.75187796 | 0 |
.liubaninc.m0.pki.Certificate Certificate = 1; | liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder getCertificateOrBuilder(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate();",
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate(int index);",
"liub... | [
"0.75187796",
"0.74023896",
"0.74023896",
"0.6761361",
"0.650354",
"0.650354",
"0.64368993",
"0.63245296",
"0.63014245",
"0.6220435",
"0.6220435",
"0.61037284",
"0.60805774",
"0.5914961",
"0.58821017",
"0.5789164",
"0.57772094",
"0.5680732",
"0.56629074",
"0.56478107",
"0.564... | 0.6363538 | 7 |
Use QueryGetCertificateResponse.newBuilder() to construct. | private QueryGetCertificateResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private QueryGetCertificatesResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private QueryGetCertificateRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private QueryAllCertificateResponse(com.google.prot... | [
"0.7092833",
"0.6866343",
"0.66749156",
"0.6600296",
"0.64003175",
"0.63826",
"0.6359262",
"0.5933904",
"0.5826958",
"0.5815141",
"0.5651536",
"0.5544682",
"0.55008745",
"0.54719967",
"0.54657465",
"0.5381693",
"0.5347753",
"0.53203595",
"0.5314753",
"0.5311902",
"0.52126443"... | 0.7645026 | 0 |
.liubaninc.m0.pki.Certificate Certificate = 1; | public boolean hasCertificate() {
return certificate_ != null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate();",
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate(int index);",
"liub... | [
"0.75187796",
"0.74023896",
"0.74023896",
"0.6761361",
"0.650354",
"0.650354",
"0.64368993",
"0.6363538",
"0.63245296",
"0.63014245",
"0.6220435",
"0.6220435",
"0.61037284",
"0.60805774",
"0.5914961",
"0.58821017",
"0.5789164",
"0.57772094",
"0.5680732",
"0.56629074",
"0.5647... | 0.0 | -1 |
.liubaninc.m0.pki.Certificate Certificate = 1; | public liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate() {
return certificate_ == null ? liubaninc.m0.pki.CertificateOuterClass.Certificate.getDefaultInstance() : certificate_;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate();",
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate(int index);",
"liub... | [
"0.75187796",
"0.74023896",
"0.74023896",
"0.6761361",
"0.650354",
"0.650354",
"0.64368993",
"0.6363538",
"0.63245296",
"0.63014245",
"0.6220435",
"0.6220435",
"0.61037284",
"0.60805774",
"0.5914961",
"0.58821017",
"0.5789164",
"0.57772094",
"0.5680732",
"0.56629074",
"0.5647... | 0.52934074 | 38 |
.liubaninc.m0.pki.Certificate Certificate = 1; | public liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder getCertificateOrBuilder() {
return getCertificate();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate();",
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate(int index);",
"liub... | [
"0.75187796",
"0.74023896",
"0.74023896",
"0.6761361",
"0.650354",
"0.650354",
"0.64368993",
"0.6363538",
"0.63245296",
"0.63014245",
"0.6220435",
"0.6220435",
"0.61037284",
"0.60805774",
"0.5914961",
"0.58821017",
"0.5789164",
"0.57772094",
"0.5680732",
"0.56629074",
"0.5647... | 0.5347331 | 33 |
.liubaninc.m0.pki.Certificate Certificate = 1; | public boolean hasCertificate() {
return certificateBuilder_ != null || certificate_ != null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate();",
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate(int index);",
"liub... | [
"0.75187796",
"0.74023896",
"0.74023896",
"0.6761361",
"0.650354",
"0.650354",
"0.64368993",
"0.6363538",
"0.63245296",
"0.63014245",
"0.6220435",
"0.6220435",
"0.61037284",
"0.60805774",
"0.5914961",
"0.58821017",
"0.5789164",
"0.57772094",
"0.5680732",
"0.56629074",
"0.5647... | 0.0 | -1 |
.liubaninc.m0.pki.Certificate Certificate = 1; | public liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate() {
if (certificateBuilder_ == null) {
return certificate_ == null ? liubaninc.m0.pki.CertificateOuterClass.Certificate.getDefaultInstance() : certificate_;
} else {
return certificateBuilder_.getMessage();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate();",
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate(int index);",
"liub... | [
"0.75187796",
"0.74023896",
"0.74023896",
"0.6761361",
"0.650354",
"0.650354",
"0.64368993",
"0.6363538",
"0.63245296",
"0.63014245",
"0.6220435",
"0.6220435",
"0.61037284",
"0.60805774",
"0.5914961",
"0.58821017",
"0.5789164",
"0.57772094",
"0.5680732",
"0.56629074",
"0.5647... | 0.51515317 | 57 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.