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 |
|---|---|---|---|---|---|---|
/ / / / / / / / | private String filterText(Player player, String txt)
/* */ {
/* 76 */ if (this.settings.enabled)
/* */ {
/* 78 */ Chatter chatter = ChatterHandler.getChatter(player.getUniqueId());
/* 79 */ String filteredTxt = this.plugin.getFilterHandler().execute(player, txt);
/* */
/* 81... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"public void divide() {\n\t\t\n\t}",
"private int rightChild(int i){return 2*i+2;}",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"public abstract void b... | [
"0.55049527",
"0.54132545",
"0.5298104",
"0.52380925",
"0.52058434",
"0.5148157",
"0.5101382",
"0.507637",
"0.50369906",
"0.5031998",
"0.5009869",
"0.49817902",
"0.4981198",
"0.4978498",
"0.49735028",
"0.49626762",
"0.4937221",
"0.492919",
"0.49037388",
"0.48935315",
"0.48789... | 0.0 | -1 |
/ call by using but could be invoked by any name | public static void main(String[] args) {
HttpConnector connector = new HttpConnector();
Wrapper wrapper = new SimpleWrapper();
wrapper.setServletClass("ModernServlet");
Loader loader = new SimpleLoader();
Valve valve1 = new HeaderLoggerValve();
Valve valve2 = new ClientIPLoggerValve();// 在这里显示I... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void use();",
"public void use()\n\t{\n\t}",
"public abstract String use();",
"public Object invoke(String name, Object... args) throws Exception;",
"void call();",
"Object invoke(Object reqest) throws IOException, ClassNotFoundException,\n InvocationTargetException, IllegalAccessException, IllegalArg... | [
"0.70564383",
"0.6982834",
"0.6584325",
"0.6338758",
"0.6090485",
"0.60328746",
"0.59118646",
"0.5910765",
"0.5760628",
"0.5731739",
"0.5668127",
"0.5427356",
"0.5394961",
"0.5366944",
"0.5350349",
"0.5333052",
"0.53315735",
"0.5268805",
"0.5246071",
"0.52308804",
"0.5217508"... | 0.0 | -1 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View view = inflater.inflate( R.layout.fragment_more, container, false );
unbinder = ButterKnife.bind( this, view );
return view;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup... | [
"0.673917",
"0.67246467",
"0.67207617",
"0.66973495",
"0.66911536",
"0.6687934",
"0.6687156",
"0.6684066",
"0.6676597",
"0.6674479",
"0.66666025",
"0.666631",
"0.6664046",
"0.66606456",
"0.6653267",
"0.6648499",
"0.6642142",
"0.66378975",
"0.6636604",
"0.66333616",
"0.6624909... | 0.0 | -1 |
Created by jiangzhe on 2018/9/29. | public interface OnShareListener {
void onShare(int scene);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpubl... | [
"0.60971636",
"0.60578525",
"0.581831",
"0.581831",
"0.579913",
"0.5797723",
"0.5728978",
"0.56911594",
"0.56888247",
"0.5660424",
"0.5621279",
"0.56161034",
"0.5615755",
"0.56100804",
"0.56053627",
"0.5576269",
"0.5574073",
"0.5567871",
"0.55528444",
"0.55498946",
"0.5537566... | 0.0 | -1 |
/ return the type of an optional element or null if there is no such element | protected Class<?> getOptionalElementType(String optionalName) {
try {
Method m = type.getMethod(optionalName);
return m.getReturnType();
} catch (NoSuchMethodException ex) {
return null;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Optional<X> elem();",
"TypeElement getTypeElement();",
"default Optional<ClassElement> getClassElement(Class<?> type) {\n if (type != null) {\n return getClassElement(type.getName());\n }\n return Optional.empty();\n }",
"Element getGenericElement();",
"public Optional<St... | [
"0.6975359",
"0.66401994",
"0.6637423",
"0.6258151",
"0.6214114",
"0.61867344",
"0.60816807",
"0.6023402",
"0.60018194",
"0.5995159",
"0.5937654",
"0.5874457",
"0.58169204",
"0.5805099",
"0.57786417",
"0.57720715",
"0.57609373",
"0.57518446",
"0.573644",
"0.5735531",
"0.57278... | 0.76278 | 0 |
TODO Autogenerated method stub | @Override
public String getLocation() {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.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 |
XXX MemoryTreeElement should be a VirtualTreeElement (use constrainType) | public void setType(Class<? extends Resource> type) {
this.type = type;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void visit(MemoryExpression expression);",
"@Override\r\n\tpublic void accept(MemoryVisitor memVis) {\r\n\t\tmemVis.visit(this);\r\n\t}",
"public IMemory getMemory() { return memory; }",
"public interface MemoryExpressionVisitor {\n /**\n * Invoked to visit memory expressions.\n *\n * @param expressio... | [
"0.5879979",
"0.5732589",
"0.549658",
"0.54914004",
"0.5468761",
"0.53543437",
"0.53056914",
"0.5138374",
"0.5127206",
"0.5113685",
"0.50862885",
"0.5062806",
"0.5054663",
"0.50247705",
"0.4974982",
"0.49707437",
"0.49661982",
"0.49415767",
"0.49281088",
"0.491221",
"0.489966... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public List<FqcInspectionTemplateL> myselect(IRequest requestContext, FqcInspectionTemplateL dto, int page,
int pageSize) {
PageHelper.startPage(page, pageSize);
return fqcInspectionTemplateLMapper.myselect(dto);
} | {
"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 |
IBaseService self = ((IBaseService) AopContext.currentProxy()); | @Override
public List<FqcInspectionTemplateL> historynumberUpdate(IRequest request, @StdWho List<FqcInspectionTemplateL> list) {
for (FqcInspectionTemplateL t : list) {
switch (((BaseDTO) t).get__status()) {
case DTOStatus.ADD:
self().insertSelective(request, t);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface AopProxy {\n Object getProxy();\n\n Object getProxy(ClassLoader classLoader);\n\n}",
"MyService getService() {\n return MyService.this;\n }",
"@Override @SuppressWarnings({ \"cast\",\"unchecked\" })\n\tpublic Object invoke(final MethodInvocation invocation) throws Throw... | [
"0.68836135",
"0.6567319",
"0.6477139",
"0.643896",
"0.63472575",
"0.62764186",
"0.6044986",
"0.6022762",
"0.5996878",
"0.5983437",
"0.5939997",
"0.5923634",
"0.59181434",
"0.5898906",
"0.5888355",
"0.5872472",
"0.58621",
"0.5855299",
"0.5855299",
"0.5835947",
"0.5835322",
... | 0.0 | -1 |
Returns the value of the 'CDA Type' reference. If the meaning of the 'CDA Type' reference isn't clear, there really should be more of a description here... | Act getCDAType(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getcType() {\n return cType;\n }",
"DType getType();",
"public String getCocType() {\n\t\treturn cocType;\n\t}",
"public String getCtype() {\n return ctype;\n }",
"public String getLINK_TYPE_CD() {\n return LINK_TYPE_CD;\n }",
"public String getAccType() {\n\t\tSt... | [
"0.7385301",
"0.69186676",
"0.6909926",
"0.6829763",
"0.67283595",
"0.662665",
"0.66002613",
"0.6365875",
"0.6340756",
"0.6238689",
"0.6238689",
"0.6238689",
"0.6238689",
"0.6238689",
"0.6238689",
"0.6238689",
"0.6238689",
"0.6238689",
"0.6238689",
"0.6238689",
"0.6238689",
... | 0.75517416 | 0 |
CCD Policy Activity SHALL contain at least one [1..] id (CONF51). | II addId(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasCampaignId();",
"boolean hasCampaignId();",
"boolean hasPrerequisiteId();",
"private int isPrivacyModelFulfilled(Transformation<?> transformation, HashGroupifyEntry entry) {\n \n // Check minimal group size\n if (minimalClassSize != Integer.MAX_VALUE && entry.count < minimalCl... | [
"0.53438574",
"0.53438574",
"0.50676215",
"0.50667894",
"0.5055622",
"0.50366384",
"0.49764866",
"0.4953438",
"0.49510378",
"0.49510378",
"0.49139968",
"0.49139968",
"0.48941097",
"0.47972772",
"0.47966352",
"0.47966352",
"0.4749352",
"0.47432223",
"0.47055635",
"0.47023562",
... | 0.0 | -1 |
CCD Policy Activity SHALL contain at least one [1..] id (CONF51). | IPayerEntry addId(II value); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasCampaignId();",
"boolean hasCampaignId();",
"private int isPrivacyModelFulfilled(Transformation<?> transformation, HashGroupifyEntry entry) {\n \n // Check minimal group size\n if (minimalClassSize != Integer.MAX_VALUE && entry.count < minimalClassSize) {\n return 0;\... | [
"0.5343452",
"0.5343452",
"0.5066215",
"0.50660485",
"0.50558835",
"0.5035496",
"0.4976422",
"0.495295",
"0.4951126",
"0.4951126",
"0.49138895",
"0.49138895",
"0.48940688",
"0.47972357",
"0.47966406",
"0.47966406",
"0.47477746",
"0.47429833",
"0.47043929",
"0.47034144",
"0.46... | 0.0 | -1 |
CCD Policy Activity SHOULD contain exactly one [1..1] code, which SHOULD be selected from ValueSet 2.16.840.1.113883.1.11.19832 ActCoverageType DYNAMIC (CONF54, CONF55). | CD withCode(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testClaimCancAdjCd() {\n new ClaimFieldTester()\n .verifyEnumFieldStringValueExtractedCorrectly(\n FissClaim.Builder::setCancAdjCdEnum,\n RdaFissClaim::getCancAdjCd,\n FissCancelAdjustmentCode.CANCEL_ADJUSTMENT_CODE_COVERAGE,\n \"C\")\n ... | [
"0.49422783",
"0.48995242",
"0.4877483",
"0.48334554",
"0.47450122",
"0.46724457",
"0.4662693",
"0.45681813",
"0.45633888",
"0.45053837",
"0.44980788",
"0.44553432",
"0.44533807",
"0.44479498",
"0.44431448",
"0.44100332",
"0.44098273",
"0.4396971",
"0.43963087",
"0.43845123",
... | 0.0 | -1 |
CCD Policy Activity SHOULD contain exactly one [1..1] code, which SHOULD be selected from ValueSet 2.16.840.1.113883.1.11.19832 ActCoverageType DYNAMIC (CONF54, CONF55). | IPayerEntry setCode(CD value); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testClaimCancAdjCd() {\n new ClaimFieldTester()\n .verifyEnumFieldStringValueExtractedCorrectly(\n FissClaim.Builder::setCancAdjCdEnum,\n RdaFissClaim::getCancAdjCd,\n FissCancelAdjustmentCode.CANCEL_ADJUSTMENT_CODE_COVERAGE,\n \"C\")\n ... | [
"0.49441934",
"0.48995245",
"0.48747525",
"0.48351726",
"0.4744321",
"0.46709278",
"0.46601424",
"0.45667908",
"0.4563148",
"0.45060813",
"0.44968084",
"0.4451945",
"0.44515738",
"0.44466016",
"0.44426957",
"0.4413501",
"0.4409574",
"0.43972355",
"0.4394841",
"0.43828863",
"0... | 0.0 | -1 |
ccd::PolicyActivity::payerEntity. self.getAssignedEntities()>select(assignedEntity : cda::AssignedEntity | not assignedEntity.oclIsUndefined() and assignedEntity.oclIsKindOf(domain::PayerEntity))>asSequence()>first().oclAsType(domain::PayerEntity) | IPayerEntity getPayerEntity(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<NeeqCompanyAccountingFirmOnline> selectByExample(NeeqCompanyAccountingFirmOnlineExample example);",
"PiEntityType entityType();",
"List<SupplyNeed> selectByExample(SupplyNeedExample example);",
"List<RepaymentPlanInfoUn> selectByExample(RepaymentPlanInfoUnExample example);",
"List<InspectionAgency> se... | [
"0.5156903",
"0.49208564",
"0.4876711",
"0.48196837",
"0.48009714",
"0.47959587",
"0.47932366",
"0.47895426",
"0.4776319",
"0.47682646",
"0.4756835",
"0.47453198",
"0.47398886",
"0.47335076",
"0.4722395",
"0.47188574",
"0.46673524",
"0.46562642",
"0.46521923",
"0.4627763",
"0... | 0.43808562 | 61 |
CCD Policy Activity SHALL contain exactly one [1..1] performer (CONF56), such that. | IPayerEntity withPayerEntity(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int isPrivacyModelFulfilled(Transformation<?> transformation, HashGroupifyEntry entry) {\n \n // Check minimal group size\n if (minimalClassSize != Integer.MAX_VALUE && entry.count < minimalClassSize) {\n return 0;\n }\n \n // Check other criteria\n ... | [
"0.49127465",
"0.45975965",
"0.45736468",
"0.45448095",
"0.4443815",
"0.44344574",
"0.44329944",
"0.44235283",
"0.44119126",
"0.44003266",
"0.43972185",
"0.43915725",
"0.43562317",
"0.43348405",
"0.4331281",
"0.43231145",
"0.4318553",
"0.43159977",
"0.43062946",
"0.43055588",
... | 0.0 | -1 |
CCD Policy Activity SHALL contain exactly one [1..1] performer (CONF56), such that. | IPayerEntry setPayerEntity(IPayerEntity value); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int isPrivacyModelFulfilled(Transformation<?> transformation, HashGroupifyEntry entry) {\n \n // Check minimal group size\n if (minimalClassSize != Integer.MAX_VALUE && entry.count < minimalClassSize) {\n return 0;\n }\n \n // Check other criteria\n ... | [
"0.49139735",
"0.4597155",
"0.45758474",
"0.4545362",
"0.4445675",
"0.4434702",
"0.44345307",
"0.44209397",
"0.44128987",
"0.44022277",
"0.43939057",
"0.4391393",
"0.435752",
"0.4336711",
"0.43332258",
"0.432088",
"0.43205762",
"0.43162075",
"0.43068564",
"0.43056712",
"0.430... | 0.0 | -1 |
ccd::PolicyActivity::coveredParty. self.getParticipantRoles()>select(participantRole : cda::ParticipantRole | not participantRole.oclIsUndefined() and participantRole.oclIsKindOf(domain::CoveredParty))>asSequence()>first().oclAsType(domain::CoveredParty) | ICoveredParty getCoveredParty(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Optional<RoleType> getToRoleType(PartyRelationship partyRelationship) {\n\t\tList<RoleType> entityList = null;\n\t\tIn in = new In();\n\t\tin.setEntityName(RoleType.NAME);\n\t\tin.setEntityConditionList(new EntityConditionList<>(Arrays\n\t\t\t\t.asList(new EntityExpr(\"roleTypeId\", EntityOperator.EQUALS,\n... | [
"0.5835029",
"0.5751541",
"0.56228846",
"0.55548453",
"0.5477501",
"0.5472343",
"0.5471086",
"0.52795434",
"0.52771664",
"0.5271669",
"0.52692753",
"0.5257153",
"0.5233184",
"0.522563",
"0.5200178",
"0.5200178",
"0.5188058",
"0.5180018",
"0.51782805",
"0.51501274",
"0.5132548... | 0.49607217 | 31 |
CCD Policy Activity SHALL contain exactly one [1..1] participant (CONF58), such that. | ICoveredParty withCoveredParty(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testRemoveOnlyOneConference() throws Exception {\n EventData deltaEvent = prepareDeltaEvent(createdEvent);\n deltaEvent.setConferences(Collections.singletonList(createdEvent.getConferences().get(0)));\n updateEventAsOrganizer(deltaEvent);\n\n EventData updatedEven... | [
"0.50040483",
"0.48897263",
"0.48009148",
"0.4702605",
"0.468145",
"0.46574417",
"0.46454233",
"0.46360862",
"0.46269584",
"0.46013868",
"0.45980343",
"0.45934063",
"0.45587957",
"0.45548445",
"0.45104662",
"0.4507063",
"0.4503205",
"0.44997132",
"0.4492254",
"0.44801888",
"0... | 0.0 | -1 |
CCD Policy Activity SHALL contain exactly one [1..1] participant (CONF58), such that. | IPayerEntry setCoveredParty(ICoveredParty value); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testRemoveOnlyOneConference() throws Exception {\n EventData deltaEvent = prepareDeltaEvent(createdEvent);\n deltaEvent.setConferences(Collections.singletonList(createdEvent.getConferences().get(0)));\n updateEventAsOrganizer(deltaEvent);\n\n EventData updatedEven... | [
"0.50033104",
"0.4890275",
"0.48006576",
"0.47025025",
"0.46816483",
"0.4657146",
"0.46450305",
"0.4637209",
"0.46255496",
"0.46020338",
"0.45974642",
"0.45928583",
"0.45588174",
"0.455498",
"0.45096216",
"0.4505314",
"0.4502965",
"0.45015016",
"0.4493577",
"0.44814268",
"0.4... | 0.0 | -1 |
ccd::PolicyActivity::subscriber. self.getParticipantRoles()>select(participantRole : cda::ParticipantRole | not participantRole.oclIsUndefined() and participantRole.oclIsKindOf(domain::PolicySubscriber))>asSequence()>first().oclAsType(domain::PolicySubscriber) | IPolicySubscriber getSubscriber(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<RoleSystemauthority> selectByExample(RoleSystemauthorityExample example);",
"com.message.MessageInfo.RoleVO getRole();",
"List<UsercontrollerRole> selectByExample(UsercontrollerRoleExample example);",
"int getParticipantRoleValue();",
"List<TawRoleDomain> selectByExample(TawRoleDomainExample example);... | [
"0.58699673",
"0.5734993",
"0.5541848",
"0.5436662",
"0.5389874",
"0.5342785",
"0.5332003",
"0.5309305",
"0.5306532",
"0.5294173",
"0.5280139",
"0.5262564",
"0.5234774",
"0.5234774",
"0.51330405",
"0.5130688",
"0.51140404",
"0.5109798",
"0.49559963",
"0.49409473",
"0.49376813... | 0.0 | -1 |
CCD Policy Activity MAY contain exactly one [1..1] participant (CONF63), such that. | IPolicySubscriber withSubscriber(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testRemoveOnlyOneConference() throws Exception {\n EventData deltaEvent = prepareDeltaEvent(createdEvent);\n deltaEvent.setConferences(Collections.singletonList(createdEvent.getConferences().get(0)));\n updateEventAsOrganizer(deltaEvent);\n\n EventData updatedEven... | [
"0.52758265",
"0.5047301",
"0.48256385",
"0.48255357",
"0.47758403",
"0.46195734",
"0.461783",
"0.4585361",
"0.45768017",
"0.45604512",
"0.45418698",
"0.4540436",
"0.45205384",
"0.44936758",
"0.4459361",
"0.44534877",
"0.44054452",
"0.43884733",
"0.43716776",
"0.43703744",
"0... | 0.0 | -1 |
CCD Policy Activity MAY contain exactly one [1..1] participant (CONF63), such that. | IPayerEntry setSubscriber(IPolicySubscriber value); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testRemoveOnlyOneConference() throws Exception {\n EventData deltaEvent = prepareDeltaEvent(createdEvent);\n deltaEvent.setConferences(Collections.singletonList(createdEvent.getConferences().get(0)));\n updateEventAsOrganizer(deltaEvent);\n\n EventData updatedEven... | [
"0.5276512",
"0.50481254",
"0.4827167",
"0.48265746",
"0.47788486",
"0.46210408",
"0.46181762",
"0.45865136",
"0.45759258",
"0.45614895",
"0.45416474",
"0.4541257",
"0.45190984",
"0.4495182",
"0.44574094",
"0.44516575",
"0.44045132",
"0.43895778",
"0.4370924",
"0.4370306",
"0... | 0.0 | -1 |
String s = "pwwkew"; System.out.println(lengthOfLongestSubstring3(s)); reverse(456); | public static void main(String[] args){
int [] a= {18,10,23,46,9};
quickSort(a,0,a.length-1);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n String str = \"pwwkew\";\n// System.out.println(str.length());\n System.out.println(lengthOfLongestSubstring(str));\n\n\n }",
"@Test\n\tpublic void eg1() {\n\t\tString s=\"babad\";\n\t\tSystem.out.println(longestPalindromicSubString(s));\n\t\t\n\... | [
"0.8270508",
"0.7828076",
"0.76243067",
"0.7409536",
"0.74069613",
"0.7331496",
"0.73051065",
"0.7289043",
"0.7171868",
"0.71647584",
"0.7135155",
"0.7132989",
"0.7130191",
"0.7123175",
"0.71044976",
"0.70669836",
"0.7040121",
"0.701936",
"0.7011903",
"0.70061284",
"0.7003408... | 0.0 | -1 |
Write code here that turns the phrase above into concrete actions throw new PendingException(); DriverManager dm = new DriverManager(); | @Given("^Initialize the browser with Chrome$")
public void initialize_the_browser_with_Chrome() throws Throwable {
driver = DriverManager.getDriverInstance("chrome", 20);
System.out.println("Launched Chrome");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public MyDriver() throws SQLException {\n }",
"private void test() throws SQLException {\n\n\t}",
"@Test(timeout = 4000)\n public void test084() throws Throwable {\n JDBCConnectData jDBCConnectData0 = new JDBCConnectData((String) null, \"One-row database query returned multiple rows: \", \"One-row d... | [
"0.6439426",
"0.6039813",
"0.6004582",
"0.59263134",
"0.578654",
"0.5774573",
"0.57423645",
"0.5662933",
"0.56464076",
"0.5644028",
"0.5612522",
"0.5612343",
"0.5605312",
"0.56033117",
"0.5603042",
"0.5595582",
"0.55925244",
"0.55667543",
"0.5558146",
"0.55413604",
"0.5539605... | 0.0 | -1 |
Write code here that turns the phrase above into concrete actions throw new PendingException(); | @When("^Navigate to \"([^\"]*)\" Site$")
public void navigate_to_Site(String arg1) throws Throwable {
driver = DriverManager.getDriver();
driver.get(arg1);
System.out.println("Launched Mercury Tours Site");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Then(\"^the booking is successful$\")\n public void the_booking_is_successful() throws Throwable {\n throw new PendingException();\n }",
"@When(\"^I execute my test case$\")\n public void iExecuteMyTestCase() throws Throwable {\n throw new PendingException();\n }",
"@Then(\"^I should... | [
"0.66780454",
"0.65141594",
"0.6401435",
"0.6346158",
"0.6301794",
"0.620927",
"0.6132123",
"0.6110179",
"0.6037908",
"0.603113",
"0.599397",
"0.5983267",
"0.59585106",
"0.5947061",
"0.5945196",
"0.5944265",
"0.5869944",
"0.5865269",
"0.58456486",
"0.58419645",
"0.58319396",
... | 0.0 | -1 |
Write code here that turns the phrase above into concrete actions throw new PendingException(); | @Then("^Close Browser$")
public void close_Browser(DataTable dt) throws Throwable {
System.out.println(dt.getGherkinRows().size());
System.out.println(dt.getGherkinRows().get(0).getCells());
System.out.println(dt.getGherkinRows().get(1).getCells());
DriverManager.killDriverInstance();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Then(\"^the booking is successful$\")\n public void the_booking_is_successful() throws Throwable {\n throw new PendingException();\n }",
"@When(\"^I execute my test case$\")\n public void iExecuteMyTestCase() throws Throwable {\n throw new PendingException();\n }",
"@Then(\"^I should... | [
"0.6677174",
"0.6513673",
"0.64008087",
"0.63447237",
"0.6301511",
"0.62088287",
"0.6130419",
"0.6109835",
"0.60362107",
"0.6031433",
"0.5994029",
"0.5982437",
"0.5957016",
"0.5946188",
"0.59437114",
"0.5943646",
"0.5869198",
"0.5863756",
"0.58459616",
"0.5840422",
"0.5830778... | 0.0 | -1 |
When a server is created it creates a HashMap to allocate all users data. | public Server(){
users = new HashMap<String, Vector<Integer>>();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static void init() {\n\t\tuserDatabase = new HashMap<String, User>();\n\t}",
"private static void initializeServerThreadSocketMapping()\n\t{\n\t\tthreadSocketMap = new HashMap<Thread, InterruptibleRMIServerSideSocket>();\n\t\tsocketThreadMap = new HashMap<InterruptibleRMIServerSideSocket, Thread>();\n\t}",
"pr... | [
"0.6236544",
"0.6138852",
"0.60492194",
"0.59646577",
"0.5944271",
"0.59289813",
"0.58976805",
"0.58884466",
"0.58683157",
"0.58554715",
"0.57709414",
"0.5726175",
"0.5695672",
"0.56462455",
"0.5639776",
"0.5612241",
"0.5598172",
"0.55907565",
"0.55704576",
"0.55471903",
"0.5... | 0.7201706 | 0 |
Adds a new score to users data. Also creates a new user if it cannot find specified user's name. | synchronized void addScore(String name, int score){
if(!users.containsKey(name)){
Vector<Integer> scores = new Vector<Integer>();
users.put(name, scores);
}
users.get(name).add(score);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addScore(String name, int score) {\n loadScoreFile();\n scores.add(new Score(name, score));\n updateScoreFile();\n }",
"public void insert(String name, int score)\n\t{\n\t\tif (size == capacity)\n\t\t{\n\t\t\tString[] usersTmp = new String[capacity*=2];\n\t\t\tint[] countTmp = new int[cap... | [
"0.69722396",
"0.691513",
"0.66834414",
"0.65502065",
"0.65175223",
"0.6512603",
"0.64405453",
"0.64362645",
"0.64338666",
"0.63837147",
"0.63625765",
"0.63575685",
"0.6355846",
"0.63298935",
"0.6318499",
"0.63165075",
"0.62822276",
"0.62810546",
"0.6280093",
"0.6192406",
"0.... | 0.74965274 | 0 |
Opens a server and a port for the game to be played. Each new connection is handled as a thread. | public static void main(String[] args) throws Exception {
ServerSocket socket = new ServerSocket(port);
System.out.println("Port "+port+" open");
Server server = new Server();
new ScoreThread().start();
while(true){
Socket client = socket.accept();
new ServerThread(client, server).start();
System.out... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void runServer()\n\t{\n\t\taddText(\"Server started at \" + LocalDateTime.now());\n\t\t\n\t\tint cnt = 0;\n\t\twhile(true)\n\t\t{\n\t\t\ttry {\n\t\t\t\t// Accept a request\n\t\t\t\taddText(\"Server is waiting for connection....\");\n\t\t\t\tSocket client = server.accept();\n\t\t\t\tConnectionThread connect ... | [
"0.72684103",
"0.7265996",
"0.71917707",
"0.7004608",
"0.6993108",
"0.69432193",
"0.692229",
"0.6910051",
"0.6875152",
"0.6852528",
"0.68432283",
"0.6838847",
"0.6793116",
"0.6757296",
"0.67003036",
"0.6695924",
"0.66699696",
"0.6642751",
"0.6634671",
"0.6626196",
"0.66126937... | 0.6144724 | 81 |
This interface represents the contract that any continuous multivariate distribution must implement | public interface MultivariateDistribution extends Cloneable, Serializable {
/**
* Computes the log of the probability density function. If the probability of
* the input is zero, the log of zero would be {@link Double#NEGATIVE_INFINITY}.
* Instead, -{@link Double#MAX_VALUE} is returned.
*
*... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface IDistribution extends IUncertainty {\n\tstatic interface IParameter extends IUncertainty {};\n\n}",
"public interface UnivariateIntegrator {\n\n /**\n * Get the relative accuracy.\n *\n * @return the accuracy\n */\n double getRelativeAccuracy();\n\n /**\n * Get the a... | [
"0.67038566",
"0.6486874",
"0.63540256",
"0.6247372",
"0.6156247",
"0.60435736",
"0.5962638",
"0.5892589",
"0.5874431",
"0.5873108",
"0.5839887",
"0.57511604",
"0.5741457",
"0.5717243",
"0.56481814",
"0.5638393",
"0.5630785",
"0.5583368",
"0.5541353",
"0.5535158",
"0.55309564... | 0.74888945 | 0 |
Returns the probability of a given vector from this distribution. By definition, the probability will always be in the range [0, 1]. | default public double pdf(double... x) {
return pdf(DenseVector.toDenseVec(x));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setProbability(double v) {\n probability = v;\n }",
"public double getProbability() {\n return probability;\n }",
"public double probability(double x){\n\t\tdouble firstTerm = 1.0 / Math.sqrt(2 * Math.PI * variance);\n\t\tdouble secondTerm = Math.exp( -(Math.pow((x-mean),2.0)) /... | [
"0.6741553",
"0.66061974",
"0.66060185",
"0.6319646",
"0.63169026",
"0.626332",
"0.62605363",
"0.6189797",
"0.6139653",
"0.60093844",
"0.5934466",
"0.5895922",
"0.5868302",
"0.5858696",
"0.5814643",
"0.58141696",
"0.5678036",
"0.56477326",
"0.56334716",
"0.56243587",
"0.56148... | 0.5278295 | 47 |
Returns the probability of a given vector from this distribution. By definition, the probability will always be in the range [0, 1]. | default public double pdf(Vec x) {
return Math.exp(logPdf(x));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setProbability(double v) {\n probability = v;\n }",
"public double probability(double x){\n\t\tdouble firstTerm = 1.0 / Math.sqrt(2 * Math.PI * variance);\n\t\tdouble secondTerm = Math.exp( -(Math.pow((x-mean),2.0)) / (2 * variance) );\n\t\treturn firstTerm * secondTerm;\n\t}",
"public do... | [
"0.6742187",
"0.6603976",
"0.6602262",
"0.6319094",
"0.63147247",
"0.62595904",
"0.6256412",
"0.6185116",
"0.6136931",
"0.6006732",
"0.5933682",
"0.58945817",
"0.58640665",
"0.5855923",
"0.58150953",
"0.58135587",
"0.56755435",
"0.5645544",
"0.5630077",
"0.562031",
"0.5613748... | 0.55598575 | 24 |
Sets the parameters of the distribution to attempt to fit the given list of vectors. All vectors are assumed to have the same weight. | default public <V extends Vec> boolean setUsingData(List<V> dataSet) {
return setUsingData(dataSet, false);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void setParameters(double[] parameters) {\n\tthis.parameters = parameters;\n }",
"public void fit(ArrayList trainData) {\n this.trainingData = trainData;\n }",
"public Vector(boolean useGiven, double... elems) {\n\t\tif (useGiven) {\n\t\t\tthis.elements = elems;\n\t\t} else {\n\t\t\tthis.eleme... | [
"0.58944273",
"0.5611645",
"0.5563069",
"0.55253583",
"0.55056894",
"0.5481275",
"0.5445802",
"0.5445598",
"0.5413929",
"0.5344797",
"0.5327492",
"0.5315057",
"0.5296695",
"0.5278388",
"0.52701867",
"0.5264778",
"0.52607155",
"0.52522033",
"0.5221286",
"0.51907647",
"0.518176... | 0.0 | -1 |
Performs sampling on the current distribution. | public List<Vec> sample(int count, Random rand); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void sample() {\n getFunctionEstimator().sample();\n }",
"@Override\n public Builder sampling(double sampling) {\n super.sampling(sampling);\n return this;\n }",
"public abstract double sample();",
"double sample();",
"@Override\n protected void produ... | [
"0.7234162",
"0.67689776",
"0.6578034",
"0.65335625",
"0.6420349",
"0.6292707",
"0.6266309",
"0.62118554",
"0.61923957",
"0.61847687",
"0.6152722",
"0.6126906",
"0.6077594",
"0.6045744",
"0.60137624",
"0.59516823",
"0.5910335",
"0.5894071",
"0.5830093",
"0.5776616",
"0.576498... | 0.6260432 | 7 |
Close drawer layout Check condition | public static void closeDrawer(DrawerLayout drawerLayout) {
if(drawerLayout.isDrawerOpen(GravityCompat.START)){
//When drawer is open
//Close drawer
drawerLayout.closeDrawer(GravityCompat.START);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void closeDrawer(){\n if (drawerLayout.isDrawerOpen(GravityCompat.START)){\n drawerLayout.closeDrawer(GravityCompat.START);\n }\n }",
"private boolean closeDrawer() {\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n if (drawer.isDrawerOp... | [
"0.7674817",
"0.74036145",
"0.72760075",
"0.70914537",
"0.6949456",
"0.6876029",
"0.679927",
"0.6797897",
"0.6593818",
"0.6593818",
"0.65774775",
"0.65295637",
"0.64839",
"0.6468931",
"0.6445397",
"0.64367944",
"0.64065725",
"0.6404532",
"0.6402511",
"0.6401158",
"0.6401158",... | 0.6570233 | 11 |
Redirect activity to Vtube | public void ClickVtube(View view){
redirectActivity(this,Vtube.class);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void ClickVtube(View view){\n MainActivity.redirectActivity(this,Vtube.class);\n\n\n }",
"@Override\n public void onClick(View v) {\n Intent it = new Intent(Intent.ACTION_VIEW);\n Uri uri = Uri.parse(\"http://\"+ PostUrl.Media+\":8080/upload/\... | [
"0.7372226",
"0.6474005",
"0.6446206",
"0.64357686",
"0.6388018",
"0.6254938",
"0.61702365",
"0.61496526",
"0.61272454",
"0.6086346",
"0.6033082",
"0.60135037",
"0.5957779",
"0.5940819",
"0.593154",
"0.59227216",
"0.5895747",
"0.58616215",
"0.58613974",
"0.5849705",
"0.584661... | 0.7202401 | 1 |
Redirect activity to Vtube service | public void ClickVtube_Customer_service(View view){
redirectActivity(this,Vtube_Customer_service.class);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void ClickVtube(View view){\n MainActivity.redirectActivity(this,Vtube.class);\n\n\n }",
"public void ClickVtube(View view){\n redirectActivity(this,Vtube.class);\n }",
"public void ClickVtube_Customer_service(View view){\n MainActivity.redirectActivity(this,Vtube_Customer_ser... | [
"0.7033022",
"0.6873102",
"0.6209027",
"0.61380523",
"0.60963005",
"0.6045515",
"0.599797",
"0.59819794",
"0.5921142",
"0.5902481",
"0.57853955",
"0.57714015",
"0.5765832",
"0.57656974",
"0.5743088",
"0.57251906",
"0.56971776",
"0.5687037",
"0.56510836",
"0.5650933",
"0.56429... | 0.6023709 | 6 |
Redirect activity to Vtube service | public void ClickShoppingcart(View view){
redirectActivity(this,SummaryActivity.class);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void ClickVtube(View view){\n MainActivity.redirectActivity(this,Vtube.class);\n\n\n }",
"public void ClickVtube(View view){\n redirectActivity(this,Vtube.class);\n }",
"public void ClickVtube_Customer_service(View view){\n MainActivity.redirectActivity(this,Vtube_Customer_ser... | [
"0.70342267",
"0.6874477",
"0.62083936",
"0.613993",
"0.60972124",
"0.6046798",
"0.6023078",
"0.5999179",
"0.59814596",
"0.5923183",
"0.5904467",
"0.57863855",
"0.5773357",
"0.5766257",
"0.5764521",
"0.5745289",
"0.5727495",
"0.569849",
"0.5689539",
"0.5652518",
"0.56521475",... | 0.0 | -1 |
Redirect activity to about us | public void ClickAboutUs(View view){
redirectActivity(this,AboutUs.class);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void redirectTO() {\n\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n\n finish();\n }",
"public void showAbout() {\n\t\t/* track \"About\" */\n\t\ttracker.trackEvent(\"Listings\", \"Click\", \"About\", 0);\n\n\t\tUri uri = Uri.parse(\"http://stat... | [
"0.67323864",
"0.6460909",
"0.6406225",
"0.6378512",
"0.6366065",
"0.63627136",
"0.61971825",
"0.61725336",
"0.6150022",
"0.60970765",
"0.60799426",
"0.60747993",
"0.6022411",
"0.60027534",
"0.5985361",
"0.5960112",
"0.5950726",
"0.59496564",
"0.5949003",
"0.59387195",
"0.593... | 0.7209008 | 0 |
Close app Redirect back to login page | public void ClickLogout(View view ){
logout();
intent = new Intent(context,LoginActivity.class);
//remove all previous stack activities
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity(intent);
finish();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void logout() {\n ((MyApplication)this.getApplication()).setLoggedIn(false);\n// Intent intent = new Intent(this, StartupActivity.class);\n// startActivity(intent);\n }",
"private void takeUserToLoginScreenOnUnAuth() {\n Intent intent = new Intent(BaseActivity.this, LoginAc... | [
"0.7299832",
"0.7189039",
"0.7180494",
"0.717164",
"0.7155216",
"0.70584726",
"0.70076925",
"0.7003172",
"0.6984616",
"0.6966561",
"0.6847424",
"0.6838963",
"0.68343925",
"0.683178",
"0.67999715",
"0.6797891",
"0.67925423",
"0.6792094",
"0.677816",
"0.67524964",
"0.67278165",... | 0.0 | -1 |
Initiates database connection, creating it if it doesn't exist already. | public void initEDBConnection(String name) throws SQLException {
String dbName = buildDBName(name);
cache = new CacheManager<>(1024);
File f = new File(dbName);
if (!f.exists())
createDB(dbName);
else if(!f.isDirectory())
createDB(dbName);
else
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void initializeDatabase()\n\t{\n\t\tResultSet resultSet = dbConnect.getMetaData().getCatalogs();\n\t\tStatment statement = dbConnect.createStatement();\n\t\t\n\t\tif (resultSet.next())\n\t\t{\n\t\t\tstatement.execute(\"USE \" + resultSet.getString(1));\n\t\t\tstatement.close();\n\t\t\tresultSet.clos... | [
"0.74153435",
"0.7305279",
"0.72658926",
"0.7145403",
"0.70539784",
"0.7049111",
"0.70419544",
"0.7011788",
"0.700516",
"0.6995391",
"0.69930786",
"0.6974525",
"0.69677466",
"0.6942332",
"0.69199145",
"0.6919152",
"0.6889208",
"0.687429",
"0.68483645",
"0.68426013",
"0.682982... | 0.6932167 | 14 |
Executes an update query in the database | public void dbUpdate(String query) {
try {
tryDbUpdate(query);
} catch (SQLException e) {
e.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void executeUpdate();",
"void executeUpdate();",
"public void executeUpdate(String query) {\n \ttry {\n\t\t\tst.executeUpdate(query);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n }",
"public abstract int execUpdate(String query) ;",
"@Override\n\tpublic void update(String ... | [
"0.8079401",
"0.7881371",
"0.77503836",
"0.76139784",
"0.7565068",
"0.7502295",
"0.74836975",
"0.74434036",
"0.7441622",
"0.7403813",
"0.74028784",
"0.73898333",
"0.73488784",
"0.73352504",
"0.7311737",
"0.7278073",
"0.7223663",
"0.7211174",
"0.71111363",
"0.71033233",
"0.708... | 0.76140785 | 3 |
Executes an update query in the database | public void dbUpdate(String query, Connection con) {
try {
tryDbUpdate(query, con);
} catch (SQLException e) {
try {
con.rollback();
} catch (SQLException e1) {
e1.printStackTrace();
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void executeUpdate();",
"void executeUpdate();",
"public void executeUpdate(String query) {\n \ttry {\n\t\t\tst.executeUpdate(query);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n }",
"public abstract int execUpdate(String query) ;",
"public void dbUpdate(String query) {\n ... | [
"0.8079921",
"0.7882051",
"0.77507365",
"0.7614855",
"0.7613368",
"0.7564533",
"0.7501968",
"0.74836695",
"0.7443567",
"0.74425393",
"0.7404825",
"0.74029577",
"0.7389863",
"0.73490965",
"0.7336186",
"0.73110074",
"0.72776467",
"0.72242266",
"0.72105104",
"0.71112365",
"0.710... | 0.0 | -1 |
Returns a connection to the instantiated database | public Connection getTransactionConnection(){
try {
return rawDataSource.getConnection();
} catch (SQLException e) {
e.printStackTrace();
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Connection getConnection() {\n try {\n return DriverManager.getConnection(\"jdbc:sqlite:\" + dbName);\n } catch (SQLException e) {\n return null;\n }\n }",
"public IDatabaseConnection getConnection() {\n try {\n DatabaseConnection databaseCon... | [
"0.78959537",
"0.7872699",
"0.77948797",
"0.7788499",
"0.7755201",
"0.77508116",
"0.77367926",
"0.77279955",
"0.7711009",
"0.77083504",
"0.76961505",
"0.76686496",
"0.76642716",
"0.7654847",
"0.7648538",
"0.7645396",
"0.75994754",
"0.75593823",
"0.7551648",
"0.75511074",
"0.7... | 0.0 | -1 |
Prepares the connection to execute a transaction | public void initTransaction(Connection con) {
try {
con.setAutoCommit(false);
con.setTransactionIsolation(Connection.TRANSACTION_READ_UNCOMMITTED);
} catch (SQLException e) {
try {
con.rollback();
} catch (SQLException e1) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void beginTransaction(ConnectionContext context) throws IOException;",
"Transaction beginTx();",
"public void beginTransaction() throws Exception;",
"void beginTransaction();",
"@Override\n protected void doBegin(Object transaction, TransactionDefinition definition) {\n DataSourceTransactionObjec... | [
"0.7047395",
"0.69065917",
"0.66443104",
"0.6639078",
"0.6589408",
"0.6580567",
"0.6556852",
"0.6552198",
"0.64215475",
"0.64174557",
"0.6416396",
"0.6279972",
"0.6213136",
"0.6174524",
"0.61468965",
"0.61452216",
"0.6085683",
"0.6073465",
"0.6064074",
"0.602135",
"0.6010358"... | 0.65552115 | 7 |
Commits a transaction being executed withing the given connection | public void commitTransaction(Connection con){
try {
con.commit();
con.setAutoCommit(true);
con.setTransactionIsolation(Connection.TRANSACTION_READ_COMMITTED);
} catch (SQLException e) {
try {
con.rollback();
} catch (SQLExcepti... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void commitTransaction(ConnectionContext context) throws IOException;",
"@Override\n public void commitTransaction() {\n try {\n connection.commit();\n } catch (SQLException e) {\n LOGGER.error(\"Can't commit transaction \", e);\n } finally {\n closeConnec... | [
"0.7714744",
"0.7570158",
"0.70501184",
"0.694605",
"0.6934698",
"0.6910659",
"0.69064003",
"0.6828253",
"0.67239696",
"0.669711",
"0.669324",
"0.66577643",
"0.66195935",
"0.6616813",
"0.6609646",
"0.6584973",
"0.6584907",
"0.65792954",
"0.6536728",
"0.65202403",
"0.6494864",... | 0.6840703 | 7 |
Executes an update query in the database (throws SQLException) | private void tryDbUpdate(String query) throws SQLException {
Statement s = null;
try {
s = rawDataSource.getConnection().createStatement();
s.executeUpdate(query);
} finally {
s.close();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int executeUpdate() throws SQLException;",
"public void executeUpdate (String sql) throws SQLException {\n // creates a statement object\n Statement stmt = this._connection.createStatement ();\n\n // issues the update instruction\n stmt.executeUpdate (sql);\n\n // close the instruction\n... | [
"0.84014636",
"0.798795",
"0.7950737",
"0.79077333",
"0.78101957",
"0.7767709",
"0.77541864",
"0.77432543",
"0.7682376",
"0.76495475",
"0.754149",
"0.7512469",
"0.75101095",
"0.7455014",
"0.7396158",
"0.73815346",
"0.73804694",
"0.7352406",
"0.73407674",
"0.732099",
"0.732026... | 0.75746125 | 10 |
Executes an update query in the database (throws SQLException) | private void tryDbUpdate(String query, Connection con) throws SQLException {
Statement s = null;
try {
s = con.createStatement();
s.executeUpdate(query);
} finally {
s.close();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int executeUpdate() throws SQLException;",
"public void executeUpdate (String sql) throws SQLException {\n // creates a statement object\n Statement stmt = this._connection.createStatement ();\n\n // issues the update instruction\n stmt.executeUpdate (sql);\n\n // close the instruction\n... | [
"0.84014636",
"0.798795",
"0.7950737",
"0.79077333",
"0.78101957",
"0.7767709",
"0.77541864",
"0.77432543",
"0.7682376",
"0.76495475",
"0.75746125",
"0.754149",
"0.7512469",
"0.75101095",
"0.7455014",
"0.7396158",
"0.73815346",
"0.73804694",
"0.7352406",
"0.73407674",
"0.7320... | 0.7156771 | 31 |
Make movement in normal execution mode (logs the movement operations table and updates the account balance accounts table) | public int makeMovement(int mv_amount, int account_id, int final_balance){
int generated_id = 0;
try {
operationLock.lock();
executeMovement(generated_id = currentOperationId++, mv_amount, account_id, final_balance, rawDataSource.getConnection());
} catch (SQLException e... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void executeMovement(int op_id, int mv_amount, int account_id, int final_balance, Connection con) throws SQLException {\n PreparedStatement stmt = con.prepareStatement(\n \"insert into OPERATIONS (OP_ID, OP_TYPE, MV_AMOUNT, FROM_ACCOUNT_ID, FROM_CURRENT_BALANCE, TIMESTAMP) \" +\n ... | [
"0.60915196",
"0.6050928",
"0.59535843",
"0.56764054",
"0.56399053",
"0.5580012",
"0.5576699",
"0.55621284",
"0.55101436",
"0.54840493",
"0.5402772",
"0.5393091",
"0.5376345",
"0.536808",
"0.53492206",
"0.53448665",
"0.5343577",
"0.5341091",
"0.53335464",
"0.5325623",
"0.5305... | 0.5427503 | 10 |
Make movement in recovery execution mode(logs de movement with given id operations table) | public boolean recoverMovement(int op_id, int mv_amount, int account_id, int final_balance, Connection con){
try {
executeMovement(op_id, mv_amount, account_id, final_balance, con);
} catch (SQLException e) {
try {
con.rollback();
return false;
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void performRecovery();",
"public boolean reducir_log(){\n\t\t//se carga la consulta a una varible tipo string\n\t\tString query = \"exec sp_reducir_log_de_transacciones\";\n\t\t//variable distancia a la clase connection\n\t\tConnection con = new Connexion().conexion();\n //se declara la variable ... | [
"0.56299525",
"0.52768415",
"0.5258961",
"0.5153233",
"0.5148895",
"0.51213515",
"0.5116118",
"0.5110884",
"0.5106755",
"0.5105415",
"0.50888866",
"0.505517",
"0.5054241",
"0.50353813",
"0.50293607",
"0.50293607",
"0.50293607",
"0.50293607",
"0.5008469",
"0.5004781",
"0.49720... | 0.5259673 | 2 |
Execute movement statement with given parameters | public void executeMovement(int op_id, int mv_amount, int account_id, int final_balance, Connection con) throws SQLException {
PreparedStatement stmt = con.prepareStatement(
"insert into OPERATIONS (OP_ID, OP_TYPE, MV_AMOUNT, FROM_ACCOUNT_ID, FROM_CURRENT_BALANCE, TIMESTAMP) " +
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract Position executeMovement(Position pos, Surface surface);",
"@Override\n\tpublic void executeMove(Player player, Board gameBoard, int turn, int startRow, int startCol, int endRow,\n\t\t\tint endCol) {\n\t\t\n\t}",
"protected void execute() {\r\n \tmanipulator.moveElevator(speed);\r\n }",
... | [
"0.73254716",
"0.65731466",
"0.6541499",
"0.6437066",
"0.6402536",
"0.6366752",
"0.63661057",
"0.6320575",
"0.63010246",
"0.62764657",
"0.62314653",
"0.6202804",
"0.61743903",
"0.6097824",
"0.60693896",
"0.6020431",
"0.59992206",
"0.5986586",
"0.5976058",
"0.5976058",
"0.5974... | 0.56583816 | 81 |
Make transfer in normal execution mode (logs the transfer operations table and updates the accounts balance accounts table) | public int makeTransfer(int tr_amount, int from_account, int to_account, int from_final_balance, int to_final_balance) {
int generated_id = 0;
try {
operationLock.lock();
executeTransfer(generated_id = currentOperationId++, tr_amount, from_account,
to_account... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void transferBalnace() {\n\t\tSystem.out.println(\"balance is transferd\");\n\t}",
"public void transferMoney() {\n\t\tSystem.out.println(\"HSBC---transferMoney\");\n\t}",
"public static void transfer() {\n\t\ttry {\n\t\t\tif (!LoginMgr.isLoggedIn()) {\n\t\t\t\tthrow new NotLoggedInExceptio... | [
"0.68208754",
"0.6401826",
"0.63250905",
"0.6275406",
"0.6091655",
"0.606728",
"0.606435",
"0.59552896",
"0.59418136",
"0.5927436",
"0.5863398",
"0.5848647",
"0.57836354",
"0.5747468",
"0.57449144",
"0.566093",
"0.5650112",
"0.5647749",
"0.55878407",
"0.5574072",
"0.55552334"... | 0.5658131 | 16 |
Make transfer in recovery execution mode(logs de transfer with given id operations table) | public boolean recoverTransfer(int op_id, int tr_amount, int from_account, int to_account, int from_final_balance,
int to_final_balance, Connection con){
try {
executeTransfer(op_id, tr_amount, from_account, to_account, from_final_balance, to_final_balance, con);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void performRecovery();",
"public void doRollback() throws Exception{\n /* rollback to last stable checkpoint */\n rStateManager.rollback();\n\n /* gets the last stable checkpoint, or zero if it doesn't exist */\n long seqn = rStateManager.getCurrentCheckpointID();\n\n I... | [
"0.5818072",
"0.5159379",
"0.5154203",
"0.51266766",
"0.5107775",
"0.5086439",
"0.5074803",
"0.50532806",
"0.5053073",
"0.504354",
"0.50359136",
"0.50126207",
"0.4989375",
"0.49681884",
"0.49346963",
"0.49164826",
"0.4891039",
"0.48711297",
"0.48629206",
"0.48541167",
"0.4853... | 0.5664412 | 1 |
Execute transfer statement with given parameters | public void executeTransfer(int op_id, int tr_amount, int from_account, int to_account, int from_final_balance,
int to_final_balance, Connection con) throws SQLException {
PreparedStatement stmt = con.prepareStatement(
"insert into OPERATIONS (OP_ID, OP_TYPE, MV_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"CommandResult execute();",
"abstract public void execute(Parameters p);",
"@Override\n\tpublic void execute(String[] params) {\n\n\t}",
"String execute(String... parameters);",
"protected abstract Object execute(JdbcChannel con,\n PreparedStatement stmt,\n ... | [
"0.6467017",
"0.6318051",
"0.600034",
"0.5865705",
"0.5823841",
"0.5792009",
"0.5792009",
"0.5792009",
"0.5792009",
"0.5792009",
"0.5792009",
"0.5792009",
"0.5727782",
"0.5648048",
"0.5644448",
"0.5644448",
"0.5644448",
"0.5644448",
"0.5623459",
"0.5618628",
"0.56003773",
"... | 0.6410492 | 1 |
Log account creation in the operations table (recovery mode) | public boolean logNewAccount(int op_id, int account_id, int current_balance, Connection con){
try {
PreparedStatement stmt = con.prepareStatement(
"insert into OPERATIONS (OP_ID, OP_TYPE, FROM_ACCOUNT_ID, FROM_CURRENT_BALANCE, TIMESTAMP) " +
"values (?... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void logNewAccount(int op_id, int account_id, int current_balance){\n try {\n PreparedStatement stmt = rawDataSource.getConnection().prepareStatement(\n \"insert into OPERATIONS (OP_ID, OP_TYPE, FROM_ACCOUNT_ID, FROM_CURRENT_BALANCE, TIMESTAMP) \" +\n ... | [
"0.61591005",
"0.58144873",
"0.5795855",
"0.5656081",
"0.56433636",
"0.55987",
"0.5500723",
"0.5491125",
"0.54723096",
"0.54041904",
"0.5401949",
"0.53929645",
"0.5350146",
"0.53406787",
"0.53106546",
"0.53086025",
"0.5304167",
"0.5287316",
"0.5265868",
"0.5249864",
"0.523763... | 0.58948994 | 1 |
Log account creation in the operations table | public void logNewAccount(int op_id, int account_id, int current_balance){
try {
PreparedStatement stmt = rawDataSource.getConnection().prepareStatement(
"insert into OPERATIONS (OP_ID, OP_TYPE, FROM_ACCOUNT_ID, FROM_CURRENT_BALANCE, TIMESTAMP) " +
"va... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void create() {\n String salt = PasswordUtils.getSalt(30);\n\n // Protect user's password. The generated value can be stored in DB.\n String mySecurePassword = PasswordUtils.generateSecurePassword(password, salt);\n\n // Print out protected password\n System.out.println(\"... | [
"0.6318144",
"0.63178897",
"0.62839377",
"0.62578535",
"0.59769934",
"0.5949582",
"0.593044",
"0.58919877",
"0.5852407",
"0.58402634",
"0.5833295",
"0.5825775",
"0.57497275",
"0.57003665",
"0.56537014",
"0.56162196",
"0.5571479",
"0.5570771",
"0.5550633",
"0.55469376",
"0.552... | 0.6692133 | 0 |
Make new account in recovery execution mode(logs de creation with given id accounts table) | public boolean recoverAccount(int account_id, int balance, Connection con){
try {
executeNewAccount(account_id, balance, con);
} catch (SQLException e) {
try {
con.rollback();
return false;
} catch (SQLException e1) {
e1... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void createAccount(){\n System.out.println(\"vi skal starte \");\n }",
"public int makeNewAccount(int balance){\n int generated_id = 0;\n\n try {\n accountLock.lock();\n executeNewAccount(generated_id = currentAccountId++, balance, rawDataSource.getConnection(... | [
"0.61381984",
"0.601171",
"0.59125125",
"0.57258034",
"0.57077485",
"0.5677954",
"0.5675161",
"0.5646665",
"0.55907696",
"0.55717456",
"0.5525302",
"0.55227655",
"0.55128556",
"0.5498487",
"0.5459581",
"0.5428703",
"0.54001594",
"0.53863007",
"0.53736585",
"0.5371789",
"0.535... | 0.5436486 | 15 |
Make new account in normal execution mode(logs the new account accounts table and logs the operation operations table) | public int makeNewAccount(int balance){
int generated_id = 0;
try {
accountLock.lock();
executeNewAccount(generated_id = currentAccountId++, balance, rawDataSource.getConnection());
accountLock.unlock();
cache.add(new Account(generated_id, balance));
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void logNewAccount(int op_id, int account_id, int current_balance){\n try {\n PreparedStatement stmt = rawDataSource.getConnection().prepareStatement(\n \"insert into OPERATIONS (OP_ID, OP_TYPE, FROM_ACCOUNT_ID, FROM_CURRENT_BALANCE, TIMESTAMP) \" +\n ... | [
"0.672681",
"0.6305094",
"0.6298384",
"0.570925",
"0.5673103",
"0.5597531",
"0.55646366",
"0.5524966",
"0.5494628",
"0.5488504",
"0.54831636",
"0.54305553",
"0.54222965",
"0.5378733",
"0.5367744",
"0.5363199",
"0.5347561",
"0.5337572",
"0.5322875",
"0.53217417",
"0.5315899",
... | 0.5414147 | 13 |
Execute new account creation with given parameters | public void executeNewAccount(int account_id, int balance, Connection con) throws SQLException {
PreparedStatement stmt = con.prepareStatement(
"insert into ACCOUNTS (ACCOUNT_ID, BALANCE, TIMESTAMP) values (?,?,?)");
stmt.setInt(1, account_id);
stmt.setInt(2, balance);
s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Account create();",
"public void createAccount() {\n\t\tSystem.out.print(\"Enter Name: \");\n\t\tString name = nameCheck(sc.next());\n\t\tSystem.out.print(\"Enter Mobile No.: \");\n\t\tlong mobNo = mobCheck(sc.nextLong());\n\t\tlong accNo = mobNo - 1234;\n\t\tSystem.out.print(\"Enter Balance: \"); \n\t\tfloat ba... | [
"0.77204347",
"0.75323915",
"0.7515447",
"0.73952204",
"0.72966975",
"0.72533005",
"0.7176281",
"0.69681203",
"0.6966975",
"0.678684",
"0.67744255",
"0.6757655",
"0.67425936",
"0.6679243",
"0.6632596",
"0.66075754",
"0.65350044",
"0.6493268",
"0.6468029",
"0.6438684",
"0.6437... | 0.5721315 | 95 |
Update balance in account entry at the accounts table and update balance in the cache | public void updateBalance(int account_id, int final_amount){
dbUpdate("update ACCOUNTS set BALANCE = "+ final_amount + " where ACCOUNT_ID = " + account_id);
cache.add(new Account(account_id, final_amount));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void updateDatabaseAccountBalance() {\n\t\tString sql = \"UPDATE account SET balance = \" + this.balance + \" \";\n\t\tsql += \"WHERE accountID = '\" + this.accountID + \"';\";\n\n\t\tDbUtilities db = new MySqlUtilities();\n\t\tdb.executeQuery(sql);\n\t}",
"void updateAccount(int id, double accountBalanc... | [
"0.79129755",
"0.7326039",
"0.71784496",
"0.7154468",
"0.7139727",
"0.70357543",
"0.6917053",
"0.6904657",
"0.68198335",
"0.67895275",
"0.6646242",
"0.6639902",
"0.65534633",
"0.65251744",
"0.64910066",
"0.6461951",
"0.6459984",
"0.64522123",
"0.6446925",
"0.6441392",
"0.6404... | 0.7683071 | 1 |
Update balance in account entry at the accounts table and update balance in the cache (recovery mode) | public boolean updateBalance(int account_id, int final_amount, Connection con){
try {
tryDbUpdate("update ACCOUNTS set BALANCE = "+ final_amount + " where ACCOUNT_ID = " + account_id, con);
cache.add(new Account(account_id, final_amount));
} catch (SQLException e) {
t... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void updateDatabaseAccountBalance() {\n\t\tString sql = \"UPDATE account SET balance = \" + this.balance + \" \";\n\t\tsql += \"WHERE accountID = '\" + this.accountID + \"';\";\n\n\t\tDbUtilities db = new MySqlUtilities();\n\t\tdb.executeQuery(sql);\n\t}",
"public void updateBalance(int account_id, int f... | [
"0.7995225",
"0.74662846",
"0.7201882",
"0.69652104",
"0.69501585",
"0.68623966",
"0.6822075",
"0.68149364",
"0.67970467",
"0.67381036",
"0.6705084",
"0.6677904",
"0.6657206",
"0.6639469",
"0.66302687",
"0.6562214",
"0.6471153",
"0.6434174",
"0.6402276",
"0.6401755",
"0.63988... | 0.71540594 | 3 |
Returns account balance in case the account exists | public Integer getAccountBalance(int account_id){
Account a = cache.get(account_id);
if(a != null) return a.getBalance();
try (
Statement s = rawDataSource.getConnection().createStatement();
ResultSet res = s.executeQuery(
"SELECT BALANCE ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void checkBalance()\n\t{\n\t\tList<Account> accounts = Main.aDao.getAllAccounts(this.loggedIn.getUserId());\n\t\tdouble accountsTotal = 0;\n\t\t\n\t\tfor(Account a : accounts)\n\t\t{\n\t\t\taccountsTotal += a.getBalance();\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Total funds available across all accounts:\\n\... | [
"0.7264874",
"0.72205156",
"0.71101546",
"0.7088106",
"0.70389694",
"0.69621897",
"0.6885955",
"0.6862041",
"0.6862041",
"0.6829406",
"0.678649",
"0.6742857",
"0.67151546",
"0.66672885",
"0.66525877",
"0.66491205",
"0.66479206",
"0.6647032",
"0.66326874",
"0.66326874",
"0.662... | 0.7554988 | 0 |
Returns textual information about the last n operations on the given account id | public String getLastAccountOperations(int account_id, int n) {
StringBuilder a = new StringBuilder();
try (
Statement s = rawDataSource.getConnection().createStatement();
ResultSet res = s.executeQuery(
"SELECT * FROM OPERATIONS where FROM_ACCOUNT... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String getLastCommands(int numberOfCommands, Resource r) {\n String finalResult = \"\";\n ArrayList<String> inputLog = r.getInputLog();\n\n int upperLimit = inputLog.size();\n int begin = inputLog.size() - numberOfCommands;\n if (begin < 0) {\n begin = 0;\n }\n for (int i = begin;... | [
"0.61071247",
"0.5860098",
"0.5495024",
"0.54137707",
"0.53707576",
"0.5165381",
"0.5139203",
"0.50825936",
"0.5077591",
"0.49909815",
"0.49623942",
"0.49197865",
"0.49087894",
"0.48442045",
"0.4828904",
"0.47960436",
"0.4792124",
"0.47891092",
"0.47879586",
"0.47747692",
"0.... | 0.804521 | 0 |
Get last account id used | private int getCurrentAccountId() {
accountLock.lock();
int nmr = 1;
try (
Statement s = rawDataSource.getConnection().createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
ResultSet res = s.executeQuery(
"SELECT A... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getLastUserId();",
"String getAccountID();",
"String getAccountID();",
"@Override\r\n\tpublic int getLastId() {\n\t\treturn adminDAO.getLastId();\r\n\t}",
"private String getCurrentUserId() {\n\t\tUser currentUser = UserDirectoryService.getCurrentUser();\n \tString currentUserId = currentUser... | [
"0.7305665",
"0.69907594",
"0.69907594",
"0.6790585",
"0.6661691",
"0.66488516",
"0.6646174",
"0.6604962",
"0.66000324",
"0.6591616",
"0.6540156",
"0.6520632",
"0.6512976",
"0.65123475",
"0.6498142",
"0.64867103",
"0.6473789",
"0.6473789",
"0.6449618",
"0.6447187",
"0.6445996... | 0.7515725 | 0 |
Get last operation id used | public int getCurrentOperationId(){
int nmr = 1;
operationLock.lock();
try (
Statement s = rawDataSource.getConnection().createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
ResultSet res = s.executeQuery(
"SELECT... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"OperationIdT getOperationId();",
"java.lang.String getOperationId();",
"com.google.protobuf.ByteString getOperationIdBytes();",
"public Operation getLastOp() {\n\t\treturn ops.get(ops.size() - 1);\n\t}",
"public Integer getOperationId() {\n return operationId;\n }",
"String getForOperationId();... | [
"0.76487964",
"0.7454115",
"0.7379093",
"0.6991537",
"0.6954131",
"0.677861",
"0.6769626",
"0.6746495",
"0.6746495",
"0.6746495",
"0.6746495",
"0.6705796",
"0.6686604",
"0.6676806",
"0.66531104",
"0.66174823",
"0.649186",
"0.64902675",
"0.64802736",
"0.6420746",
"0.63717014",... | 0.7982648 | 0 |
Checks if database has the given account (normal mode) | public boolean hasAccount(int account){
boolean result;
if(cache.get(account) != null) return true;
try {
Statement s = rawDataSource.getConnection().createStatement();
ResultSet res = s.executeQuery(
"SELECT ACCOUNT_ID FROM APP.ACCOUNTS WHERE ACCOUNT_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasAccount();",
"boolean hasAccount();",
"boolean hasAccount();",
"public boolean hasAccount(int account, Connection con){\n boolean result;\n if(cache.get(account) != null) return true;\n try {\n Statement s = con.createStatement();\n ResultSet res = s.exec... | [
"0.7298314",
"0.7298314",
"0.7298314",
"0.7173072",
"0.6975783",
"0.68261003",
"0.6752026",
"0.670854",
"0.6640224",
"0.66365045",
"0.6582861",
"0.64653355",
"0.6460393",
"0.6460393",
"0.6460393",
"0.6460393",
"0.6460393",
"0.6460393",
"0.6460393",
"0.64300627",
"0.6417349",
... | 0.7219725 | 3 |
Checks if database has the given account (recovery mode) | public boolean hasAccount(int account, Connection con){
boolean result;
if(cache.get(account) != null) return true;
try {
Statement s = con.createStatement();
ResultSet res = s.executeQuery(
"SELECT ACCOUNT_ID FROM APP.ACCOUNTS WHERE ACCOUNT_ID = "+acc... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasAccount();",
"boolean hasAccount();",
"boolean hasAccount();",
"public boolean hasAccount(int account){\n boolean result;\n if(cache.get(account) != null) return true;\n try {\n Statement s = rawDataSource.getConnection().createStatement();\n ResultSet re... | [
"0.6509106",
"0.6509106",
"0.6509106",
"0.64130276",
"0.62611765",
"0.6188653",
"0.6186981",
"0.6186526",
"0.6167221",
"0.612622",
"0.6090774",
"0.6031201",
"0.60295635",
"0.59671414",
"0.5936415",
"0.5909805",
"0.5906986",
"0.5902564",
"0.5902564",
"0.5869993",
"0.5851346",
... | 0.62596834 | 5 |
Returns operations executed after a given id | public List<BankOperation> getOperationsAfter(int n_id){
List<BankOperation> op_list = new ArrayList<>();
try (
Statement s = rawDataSource.getConnection().createStatement();
ResultSet res = s.executeQuery(
"SELECT * FROM APP.OPERATIONS where OP_I... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void applyOperationId(Operation operation, Method method);",
"public Operacion obtenerOperacion(int id){\n return historialOperaciones.get(id);\n }",
"Boolean removeOperation(Long id);",
"public Integer getAfterId() {\r\n return afterId;\r\n }",
"public void postDoRetrieve(ID id)\n {... | [
"0.5825039",
"0.54449785",
"0.5279727",
"0.5272659",
"0.52337617",
"0.52146333",
"0.519479",
"0.5189377",
"0.51658946",
"0.5144063",
"0.512868",
"0.5085504",
"0.50074124",
"0.4999805",
"0.49687144",
"0.4943134",
"0.49257",
"0.49031237",
"0.48956892",
"0.487569",
"0.485336",
... | 0.55090576 | 1 |
This is one black box test that corresponds to scenario outline in the Server test file. This executes the API and the protocol code is run against the Server test stub An application layer would replace this and place similar calls | public static void main(String[] args)
{
String host;
String menuSelection;
InputStreamReader input = new InputStreamReader(System.in) ;
BufferedReader inputBuff = new BufferedReader(input) ;
//check for host and throw error if not provided
if(args.length!=... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"IMember getServerStub();",
"@Test\n public void placeShipsTest()throws GameException, StatusException, IOException,InterruptedException{\n SVToReadTester aliceGameEngineTester = new SVToReadTester();\n //real protocol engine on alice´s side\n SVProtocolEngine aliceSVProtocolEngine = new S... | [
"0.6596357",
"0.6460463",
"0.6432295",
"0.64005774",
"0.6357643",
"0.6350701",
"0.63380176",
"0.6314763",
"0.6104256",
"0.6033218",
"0.60328287",
"0.60161644",
"0.5997644",
"0.5985154",
"0.59850925",
"0.5970884",
"0.5933364",
"0.59325695",
"0.59263355",
"0.59244627",
"0.59213... | 0.0 | -1 |
/ This method displays main menu of options to user | static void DisplayMainMenu()
{
System.out.println("******");
System.out.println("Menu");
System.out.println("******");
System.out.println("Enter Selection");
System.out.println("1) Send Message");
System.out.println("2) Receive Message");
System.out.println("3) Run regression tes... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void displayMenu() {\n\t\tSystem.out.println(\"********Loan Approval System***********\");\n\t\tSystem.out.println(\"\\n\");\n\t\tSystem.out.println(\n\t\t\t\t\"Choose the following options:\\n(l)Load Applicaitons\\n(s)Set the Budget\\n(m)Make a decision\\n(p)Print\\n(u)Update the application\");\n\n\t}",
... | [
"0.8074894",
"0.7981746",
"0.79690343",
"0.79351485",
"0.79014033",
"0.78811127",
"0.78034264",
"0.78005266",
"0.77369213",
"0.7678341",
"0.7657931",
"0.76449746",
"0.76411605",
"0.76353866",
"0.7632333",
"0.7601582",
"0.7600717",
"0.7592056",
"0.758922",
"0.7578484",
"0.7559... | 0.7089574 | 59 |
/ This method handles the response object coming back from the CTP protocol. The object contains both the status and any application level information and uses the CTP protocol to communication with the server. | static void processResponse(CTPResponse response)
{
for(int i=0;i<response.GetNumResponses();i++)
{
int type = response.getReponseType(i);
switch (type) {
case CTPResponse.ERROR_RSP:{
if(response.getStatus(i)== -1)
System.out.println("ERROR_RSP Invalid client request"); ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void handleResponse() {\n\t\t\n\t}",
"@Override\n\tpublic void processResponse(Response response)\n\t{\n\t\t\n\t}",
"public int getResponse() {return response;}",
"@Override\r\n\t\t\t\t\tpublic void onSuccess(int statusCode, Header[] headers,\r\n\t\t\t\t\t\t\tJSONArray response) {\n\t\t\t... | [
"0.6304658",
"0.6102429",
"0.60794353",
"0.6042613",
"0.59790355",
"0.595583",
"0.5944515",
"0.59403706",
"0.5909417",
"0.58953005",
"0.58791834",
"0.5821708",
"0.5821708",
"0.58187044",
"0.58085716",
"0.57672924",
"0.57288325",
"0.5704436",
"0.5690366",
"0.5689301",
"0.56795... | 0.6547068 | 0 |
Checking whether the user has requested the components whose quantity is available | @Override
public void onClick(View view) {
if (count == 0){
Toast.makeText(EachComponentActivity.this, "Seriously! Zero components?", Toast.LENGTH_LONG).show();
return;
}
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasQuantity();",
"private void checkProductAvailability()\n\t{\n\n\t\tprodMsg = \"\";\n\t\tcartIsEmpty = false;\n\n\t\tMap <String,Product> products = getProducts();\n\n\t\tint qtyRequested, qtyAvailable;\n\n\t\t// Check for unavailable products\n\t\tfor ( Product p : shoppingCart.getProducts().keySet() ... | [
"0.70795035",
"0.64862",
"0.6427308",
"0.62513965",
"0.6161974",
"0.61470306",
"0.60770524",
"0.59808636",
"0.59411633",
"0.58759457",
"0.58546203",
"0.57757044",
"0.57736516",
"0.5739844",
"0.5728675",
"0.57283336",
"0.5723544",
"0.57061124",
"0.5705804",
"0.56905663",
"0.56... | 0.53273576 | 54 |
Function for syncing time and date with IST | private String syncTimeStamp(String timestamp){
StringBuilder dateBuilder = new StringBuilder(timestamp);
String time = dateBuilder.toString().split("T")[1].substring(0, 8);
String[] timeArr = time.split(":");
String seconds = timeArr[2];
String dd = dateBuilder.toString().s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract boolean useDaylightTime();",
"public abstract boolean useDaylightTime();",
"public void m1() {\n\t\tLocalDate dateInIndia = LocalDate.now();\r\n\t\tSystem.out.println(\"Date in India \" +dateInIndia);\r\n\r\n\t\t// Current Date and Time\r\n\t\t\t\tLocalTime timeInIndia = LocalTime.now();\r\n... | [
"0.60160035",
"0.60160035",
"0.59304947",
"0.5751548",
"0.5728073",
"0.56225705",
"0.5584139",
"0.546276",
"0.54462445",
"0.5418456",
"0.5406008",
"0.53754693",
"0.5344766",
"0.5344477",
"0.5337096",
"0.5326439",
"0.53236514",
"0.53134483",
"0.5306695",
"0.5292911",
"0.528563... | 0.5470627 | 7 |
TODO Autogenerated method stub | public static void main(String[] args) {
int [] a=new int[5];
a[1]=10;
a[2]=20;
a[3]=30;
a[4]=40;
a[5]=50;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.66730285",
"0.65698135",
"0.6524193",
"0.64818907",
"0.6477969",
"0.6459897",
"0.64150065",
"0.6378023",
"0.62785167",
"0.6256323",
"0.62391806",
"0.6225302",
"0.6203955",
"0.6196986",
"0.6196986",
"0.6193411",
"0.6188864",
"0.6175446",
"0.61352557",
"0.6129083",
"0.608151... | 0.0 | -1 |
private boolean accepted = false; | public Packet1Login () {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isAccept(){\n return isAccept; \n }",
"boolean getAccepted();",
"public boolean getAccepted()\n {\n return accepted;\n }",
"boolean isAccepting();",
"public boolean accepted() {\r\n\r\n return m_bAccepted;\r\n\r\n }",
"public boolean getAccepted() {\n ... | [
"0.7938067",
"0.7820838",
"0.76796335",
"0.75513697",
"0.738345",
"0.7266136",
"0.7101427",
"0.682295",
"0.6646082",
"0.65599823",
"0.6459853",
"0.6435376",
"0.64240706",
"0.64115995",
"0.6370042",
"0.6369344",
"0.6369344",
"0.6369344",
"0.63677055",
"0.63515306",
"0.63146156... | 0.0 | -1 |
if post is repost, then name of repost source else it's null and shouldn't be used, as the fields below | public String getRepost_source_name() {
return repost_source_name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getPost() {\r\n return post;\r\n }",
"private String getAuthor(CloudEntity post) {\n if (post.getCreatedBy() != null) {\n return \" \" + post.getCreatedBy().replaceFirst(\"@.*\", \"\");\n } else {\n return \"<anonymous>\";\n }\n }",
"private... | [
"0.5484667",
"0.5398647",
"0.5398647",
"0.53782326",
"0.53782326",
"0.5293879",
"0.5264819",
"0.5264819",
"0.52594906",
"0.52585196",
"0.5204132",
"0.51208055",
"0.51114005",
"0.5091545",
"0.5083218",
"0.5066336",
"0.5055588",
"0.5054206",
"0.49994957",
"0.49966052",
"0.49948... | 0.7412061 | 0 |
Get value of genres. | @NonNull
public final List<Genres> getGenres() {
return this.genres;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Set<String> getGenres() {\r\n return this.genres;\r\n }",
"public String getGenre()\r\n {\r\n String answer=genre;\r\n return answer;\r\n }",
"public String getGenus() {\n return genus;\n }",
"public int getGenre() {\n return genre;\n }",
"public String ge... | [
"0.7314812",
"0.71404386",
"0.6872192",
"0.6759065",
"0.6695309",
"0.6695309",
"0.666906",
"0.666906",
"0.66670334",
"0.6480045",
"0.64668125",
"0.6391309",
"0.63498026",
"0.6239639",
"0.61940795",
"0.617089",
"0.6146264",
"0.6142114",
"0.60263443",
"0.5986027",
"0.5983872",
... | 0.718113 | 1 |
Set value of genres. | public final void setGenres(@NonNull final List<Genres> genresParam) {
this.genres = genresParam;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Album setGenres(Set<String> genres) {\r\n this.genres = genres;\r\n return this;\r\n }",
"public void setGenre(int genre) {\n this.genre = genre;\n }",
"public void setGenre() {\r\n this.genre = genre;\r\n }",
"public void setGenre(Genre genre) {\n this.genre = genre;... | [
"0.7171276",
"0.6911898",
"0.6832238",
"0.6805773",
"0.6805773",
"0.680106",
"0.66749614",
"0.6652907",
"0.6525283",
"0.64809847",
"0.6439726",
"0.6348256",
"0.63074744",
"0.6177354",
"0.616128",
"0.61476666",
"0.60114205",
"0.58765167",
"0.5820067",
"0.5793832",
"0.57569486"... | 0.7185563 | 0 |
Constructor for a den, calls its parent class obstacle, sets the image and fills a circle with said image | Den(SimWorld aWorld) {
super(aWorld);
Image den = new Image(denURL);
this.getCollisionArea().setFill(Color.TRANSPARENT);
this.getCollisionBody().setFill(new ImagePattern(den, this.getxPos(), this.getyPos(), 1, 1, true));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Obstacle(int x, int y, int length, String direction)\n {\n super(x, y, length, direction);\n updateImages();\n }",
"public Obstacle(int xPos,BufferedImage bi)\r\n {\r\n super(xPos,(int)(bi.getHeight()*2/3*(Math.random()*0.5+0.25)),bi);\r\n //super(x,y,width,height);\r\n }",
"... | [
"0.7068792",
"0.69335586",
"0.66839164",
"0.664373",
"0.64438975",
"0.641301",
"0.62040687",
"0.61856294",
"0.61387783",
"0.6136247",
"0.61089164",
"0.6102967",
"0.6047973",
"0.6031576",
"0.6021365",
"0.601118",
"0.59972227",
"0.599391",
"0.5970624",
"0.59531003",
"0.59425354... | 0.67793643 | 2 |
Start of getters and setters for the den's attributes | public boolean isOccupied() {
return isOccupied;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected LPDMODOMAttribute() {\n }",
"@Override\npublic void setAttributes() {\n\t\n}",
"public int getDen()\n {\n return den;\n }",
"private void setAllAttributesFromController() {\n obsoData.setSupplier(supplier);\n \n obsoData.setEndOfOrderDate(endOfOrderDate);\n ... | [
"0.62572896",
"0.61184543",
"0.61093616",
"0.5925485",
"0.58334154",
"0.58183116",
"0.580006",
"0.579021",
"0.56900734",
"0.5663036",
"0.56483746",
"0.56095654",
"0.5600501",
"0.5572973",
"0.5543671",
"0.54985535",
"0.54926705",
"0.5488107",
"0.5486233",
"0.54527575",
"0.5451... | 0.0 | -1 |
/ access modifiers changed from: packageprivate | public interface zzxu<T> {
boolean equals(T t, T t2);
int hashCode(T t);
T newInstance();
void zza(T t, zzxt zzxt, zzvk zzvk) throws IOException;
void zza(T t, zzzh zzzh) throws IOException;
int zzai(T t);
boolean zzaj(T t);
void zzd(T t, T t2);
void zzy(T t);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n protected void prot() {\n }",
"public void method_4270() {}",
"@Override\n public void func_104112_b() {\n \n }",
"private void m50366E() {\n }",
"private void kk12() {\n\n\t}",
"public final void mo51373a... | [
"0.71507126",
"0.66852754",
"0.6558074",
"0.6482426",
"0.64311445",
"0.638545",
"0.63839656",
"0.63482744",
"0.63302624",
"0.6277197",
"0.62635255",
"0.6250569",
"0.62368745",
"0.6233547",
"0.6228953",
"0.6197293",
"0.6197293",
"0.6194772",
"0.6184139",
"0.6180766",
"0.615739... | 0.0 | -1 |
a Countable interface to display Alligator objects in the console | public interface Countable {
//methods used to count an object
void incrementCount();
void resetCount();
int getCount();
String getCountString();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void show()\n {\n System.out.println( getFullName() + \", \" +\n String.format(Locale.ENGLISH, \"%.1f\", getAcademicPerformance()) + \", \" +\n String.format(Locale.ENGLISH,\"%.1f\", getSocialActivity()) + \", \" +\n String.format(Locale.ENGLISH,\"%.1f\... | [
"0.5678967",
"0.5655453",
"0.56164885",
"0.5604035",
"0.55992234",
"0.5547602",
"0.551712",
"0.55054003",
"0.54958755",
"0.5390515",
"0.5390303",
"0.5369166",
"0.53593",
"0.5346417",
"0.5331111",
"0.53269637",
"0.532495",
"0.53190184",
"0.53050506",
"0.5284686",
"0.52809715",... | 0.0 | -1 |
methods used to count an object | void incrementCount(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getObjectCount() {\n\t\treturn objects.size(); // Replace with your code\n\t}",
"public long count() ;",
"public int get_count();",
"public void count() {\n\t\talgae = -1;\n\t\tcrab = -1;\n\t\tbigFish = -1;\n\t\tfor(GameObjects o: objects) {\n\t\t\tswitch(o.toString()) {\n\t\t\tcase \"algae\":\n\t... | [
"0.7644894",
"0.74787104",
"0.7383855",
"0.73790735",
"0.736906",
"0.73620325",
"0.73620325",
"0.73620325",
"0.73620325",
"0.7281292",
"0.7255657",
"0.7255038",
"0.72200644",
"0.72200644",
"0.7203153",
"0.7195934",
"0.71314234",
"0.7120492",
"0.70666987",
"0.70666987",
"0.706... | 0.0 | -1 |
Abstraction of YANG resolvable information. Abstracted to obtain the information required for linking resolution. | public interface Resolvable {
/**
* Returns the status of resolution. If completely resolved returns enum
* value "RESOLVED", if not returns "UNRESOLVED", in case reference of
* grouping/typedef is added to uses/type but it's not resolved
* "INTRA_FILE_RESOLVED" is returned.
*
* @retu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface Link<T> {\n\n /**\n * Resolve the link and get the underlying object.\n *\n * @return the target of the link, not null\n * @throws DataNotFoundException if the link is not resolved\n */\n T resolve();\n\n /**\n * Get the type of the object that this link targets.\n *\n * @return... | [
"0.6369767",
"0.62164295",
"0.56383216",
"0.5586659",
"0.5568452",
"0.5400194",
"0.5389639",
"0.53368527",
"0.53223044",
"0.5290372",
"0.5278367",
"0.526843",
"0.52618766",
"0.52137434",
"0.52113235",
"0.5207603",
"0.5199187",
"0.51697373",
"0.5147752",
"0.5146997",
"0.510148... | 0.7092903 | 0 |
Returns the status of resolution. If completely resolved returns enum value "RESOLVED", if not returns "UNRESOLVED", in case reference of grouping/typedef is added to uses/type but it's not resolved "INTRA_FILE_RESOLVED" is returned. | ResolvableStatus getResolvableStatus(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface Resolvable {\n\n /**\n * Returns the status of resolution. If completely resolved returns enum\n * value \"RESOLVED\", if not returns \"UNRESOLVED\", in case reference of\n * grouping/typedef is added to uses/type but it's not resolved\n * \"INTRA_FILE_RESOLVED\" is returned.\n ... | [
"0.6105788",
"0.546783",
"0.53312576",
"0.5316247",
"0.5301199",
"0.526688",
"0.5239079",
"0.51519704",
"0.5109627",
"0.50588953",
"0.5058845",
"0.5008398",
"0.50041187",
"0.49839336",
"0.4970337",
"0.49607572",
"0.49607572",
"0.49516982",
"0.49481863",
"0.49481863",
"0.49481... | 0.6889564 | 0 |
Set the status of type/uses resolution. If completely resolved set enum value "RESOLVED", if not set it to "UNRESOLVED", in case reference of grouping/typedef is added to uses/type but it's not resolved "INTRA_FILE_RESOLVED" should be set. | void setResolvableStatus(ResolvableStatus resolvableStatus); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface Resolvable {\n\n /**\n * Returns the status of resolution. If completely resolved returns enum\n * value \"RESOLVED\", if not returns \"UNRESOLVED\", in case reference of\n * grouping/typedef is added to uses/type but it's not resolved\n * \"INTRA_FILE_RESOLVED\" is returned.\n ... | [
"0.5955531",
"0.5537551",
"0.53313375",
"0.518511",
"0.51642275",
"0.50396556",
"0.5032243",
"0.49195433",
"0.48664746",
"0.48030686",
"0.48014125",
"0.47994608",
"0.47842595",
"0.47556195",
"0.47301948",
"0.46871662",
"0.4682394",
"0.46800327",
"0.46722442",
"0.46721178",
"0... | 0.6386687 | 0 |
/ Assembled paths methods | public String getProjectPath() {
return projectPath;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String path(String path1, String path2);",
"public abstract String getPath();",
"public abstract String getPath();",
"PathSegments getPath();",
"public ObjectNode resolvePaths();",
"public String getPath()\r\n/* 26: */ {\r\n/* 27:57 */ return this.path;\r\n/* 28: */ }",
"@Override\n\... | [
"0.6602276",
"0.65348035",
"0.65348035",
"0.6427319",
"0.63842905",
"0.63536197",
"0.63489383",
"0.6267764",
"0.62011045",
"0.61972356",
"0.61972356",
"0.6172676",
"0.6171363",
"0.6159744",
"0.6146036",
"0.6120033",
"0.6027582",
"0.6027582",
"0.6027582",
"0.6027582",
"0.60275... | 0.0 | -1 |
/ Properties direct methods | private String getSimplicityProjectName() {
return properties.getProperty("simplicity.starter.projectName");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private ReadProperty()\r\n {\r\n\r\n }",
"private PropertyAccess() {\n\t\tsuper();\n\t}",
"public void setupProperties() {\n // left empty for subclass to override\n }",
"Property getProperty();",
"Property getProperty();",
"Properties getProperties();",
"@Override\r\n\tpublic void setP... | [
"0.72310716",
"0.719139",
"0.71327686",
"0.67394",
"0.67394",
"0.67133844",
"0.6696622",
"0.66793066",
"0.66739994",
"0.66688955",
"0.6656083",
"0.66543174",
"0.66290313",
"0.65924406",
"0.65804297",
"0.65311784",
"0.65171236",
"0.64824796",
"0.6469828",
"0.6458078",
"0.64128... | 0.0 | -1 |
To prevent bulk duplication | public void setStocksAtHome(List<String> stockList){
HashSet<String> hashSet = new HashSet<String>(stockList);
List<String> stocksAtHome = getStocksAtHome();
hashSet.addAll(stocksAtHome);
//To proceed with easy storage
stockList = new ArrayList<String>(hashSet);
Gson gs... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected boolean isDuplicate(ELesxUseCase useCase) {\n return false;\n }",
"public boolean supportsUnique() {\n \t\treturn true;\n \t}",
"public void bulkAdd(){\n employees.add(new Employee(23.0, 15000.0, \"Shayan\"));\n employees.add(new Employee(22.0, 60000.0, \"Rishabh\"));\n emplo... | [
"0.6114292",
"0.5831401",
"0.57417315",
"0.574147",
"0.57236415",
"0.5716391",
"0.5629886",
"0.56263334",
"0.56128573",
"0.5548871",
"0.5540779",
"0.5531223",
"0.55201143",
"0.54702485",
"0.5462569",
"0.54582345",
"0.5433602",
"0.541158",
"0.5399355",
"0.53876245",
"0.5382890... | 0.0 | -1 |
Map query = new HashMap(16); query.put("sort", "dept_id"); query.put("order", "asc"); | @ApiOperation(value = "获取部门树形列表", notes = "")
@ResponseBody
@GetMapping("/treeList")
@RequiresPermissions("system:sysDept:sysDept")
public TreeGridDO<DeptDO> treeList(@RequestParam Map<String, Object> params) {
List<DeptDO> sysDeptList = sysDeptService.list(params);
return new TreeGridDO<DeptDO>(sysDeptList, nu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Map<String, org.springframework.batch.item.database.Order> genBatchOrderByFromSort(TableFields tableFields, Sort sort);",
"Sort asc(QueryParameter parameter);",
"@GET\n @Produces({ \"application/json\" })\n public abstract Response get(@QueryParam(\"sort\") String sort);",
"Sort desc(QueryParameter par... | [
"0.63614655",
"0.619009",
"0.58292776",
"0.57593244",
"0.5731852",
"0.5714943",
"0.5637198",
"0.5620547",
"0.56135464",
"0.56050414",
"0.55493546",
"0.54880357",
"0.5429161",
"0.5423322",
"0.5413038",
"0.5399094",
"0.53849113",
"0.53741485",
"0.5369638",
"0.5368501",
"0.53593... | 0.0 | -1 |
Returns list of all the authors where firstName, lastName, address or city matched the keyword | @GetMapping(path = "/")
@ResponseStatus(HttpStatus.OK)
public List<Author> getAuthors(@RequestParam(name = "keyword", required = false, defaultValue = EMPTY) final String keyword) {
return authorService.findAllAuthorsByKeyword(keyword);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Author> selectAllAuthors();",
"private static void queryBooksByAuthor(){\n\t\tSystem.out.println(\"===Query Books By Author===\");\n\t\tScanner string_input = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"Enter First Name of Author to Query Books by: \");\n\t\tString author_firstname = stri... | [
"0.6580934",
"0.62566173",
"0.62097216",
"0.613752",
"0.61322147",
"0.6095668",
"0.60151553",
"0.6013977",
"0.60068583",
"0.597277",
"0.5943245",
"0.59379286",
"0.59338987",
"0.59071577",
"0.5904908",
"0.58828163",
"0.5857446",
"0.5855078",
"0.58494407",
"0.5827586",
"0.58131... | 0.66327864 | 0 |
use the for loop to find | public static void chaotic (int numbers){
for (int n = 0 ; n < numbers ; n++){
// to return a value from 0 up to, but not including 1 use the equation below
int randNum = (int)(Math.random()*(5 - 1 + 1)) + 1;
//use an if loop to find if the answer from the equation equals to 5
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void findNext() {\n \tthis.find(true);\n }",
"private void searchFunction() {\n\t\t\r\n\t}",
"@Override\n\tpublic void find() {\n\n\t}",
"void findRec () {\r\n\r\n\t\tboolean found = false;\r\n\t\tfor (int x = 0; x < total; x++) {\r\n\t\t\tif (records[x][0].equals (txtNo.getText())) {\r\n\t\t\t... | [
"0.63403803",
"0.5699321",
"0.56150997",
"0.5569769",
"0.5559011",
"0.55129194",
"0.5431783",
"0.5409478",
"0.53967506",
"0.53426194",
"0.5331816",
"0.5331041",
"0.5295681",
"0.5289883",
"0.5282895",
"0.5282887",
"0.52807647",
"0.52634734",
"0.5227075",
"0.5217344",
"0.521338... | 0.0 | -1 |
Utility method to copy a file from one directory to another | public static void copyFile(final String fromPath, final String toPath) throws IOException {
FileUtils.copyFileToDirectory(new File(fromPath), new File(toPath));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void copyFile(String from, String to) throws IOException{\r\n Path src = Paths.get(from); // set path of source directory from parent function\r\n Path dest = Paths.get(to); // set path of destination directory from parent function\r\n Files.copy(src, dest); //inbuilt funct... | [
"0.78101563",
"0.7596949",
"0.744847",
"0.7342211",
"0.72486615",
"0.7216806",
"0.7166888",
"0.71431065",
"0.712895",
"0.71287763",
"0.7103269",
"0.70823693",
"0.7043945",
"0.7030463",
"0.70238966",
"0.69759995",
"0.6917639",
"0.69052017",
"0.6869747",
"0.68616885",
"0.682770... | 0.7287419 | 4 |
Utility method to copy a file from one directory to another | public static void copyFile(final String fileName, final String fromDir, final String toDir)
throws IOException {
FileUtils.copyFile(new File(fromDir, fileName), new File(toDir, fileName));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void copyFile(String from, String to) throws IOException{\r\n Path src = Paths.get(from); // set path of source directory from parent function\r\n Path dest = Paths.get(to); // set path of destination directory from parent function\r\n Files.copy(src, dest); //inbuilt funct... | [
"0.78116626",
"0.75970936",
"0.7448341",
"0.7341625",
"0.7286031",
"0.72503114",
"0.72158486",
"0.71674997",
"0.71423525",
"0.7129211",
"0.71287",
"0.71022505",
"0.70832443",
"0.7045123",
"0.7030523",
"0.70248055",
"0.697663",
"0.6916353",
"0.6905503",
"0.68689185",
"0.686204... | 0.6380024 | 45 |
Utility method to copy a file from one directory to another | public static void copyFile(final File from, final File toDir) throws IOException {
if (!from.canRead()) {
throw new IOException("Cannot read file '" + from + "'.");
}
if (toDir.exists() && (!toDir.canWrite())) {
throw new IOException("Cannot write to file '" + toDir + "'.");
}
toDir.get... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void copyFile(String from, String to) throws IOException{\r\n Path src = Paths.get(from); // set path of source directory from parent function\r\n Path dest = Paths.get(to); // set path of destination directory from parent function\r\n Files.copy(src, dest); //inbuilt funct... | [
"0.7810096",
"0.75946903",
"0.7446452",
"0.7340955",
"0.72868854",
"0.725045",
"0.72156507",
"0.71652037",
"0.71434945",
"0.71300334",
"0.7127376",
"0.7101864",
"0.7081261",
"0.7041158",
"0.7028677",
"0.7022495",
"0.6974205",
"0.6904065",
"0.68679106",
"0.6860213",
"0.6828179... | 0.691723 | 17 |
Utility method to get extension of a file return empty String if | public static String getExtension(final File file) throws IOException {
return FilenameUtils.getExtension(file.getName());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getFileExtension();",
"public String getFileExtension();",
"public String getExtension() {\r\n\t\t\tfinal String filename = path.getName();\r\n\t\t\tfinal int dotIndex = filename.lastIndexOf('.');\r\n\t\t\tif (dotIndex >= 0) {\r\n\t\t\t\tif (dotIndex == filename.length() - 1) {\r\n\t\t\t\t\treturn \"\";... | [
"0.8567105",
"0.84099877",
"0.83829993",
"0.8236604",
"0.8227642",
"0.8177552",
"0.8139361",
"0.8058116",
"0.80480283",
"0.8017973",
"0.79816383",
"0.7980229",
"0.79486203",
"0.7937094",
"0.785605",
"0.78233075",
"0.7812318",
"0.78119516",
"0.77921486",
"0.77916807",
"0.77761... | 0.74619067 | 49 |
Utility method to get extension of a file return empty String if | public static String getExtension(final String file) throws IOException {
return FilenameUtils.getExtension(file);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getFileExtension();",
"public String getFileExtension();",
"public String getExtension() {\r\n\t\t\tfinal String filename = path.getName();\r\n\t\t\tfinal int dotIndex = filename.lastIndexOf('.');\r\n\t\t\tif (dotIndex >= 0) {\r\n\t\t\t\tif (dotIndex == filename.length() - 1) {\r\n\t\t\t\t\treturn \"\";... | [
"0.8566764",
"0.8409623",
"0.8381615",
"0.8237232",
"0.82277197",
"0.81767726",
"0.8139299",
"0.80581844",
"0.8047136",
"0.8017554",
"0.79817176",
"0.79810244",
"0.7949693",
"0.79373634",
"0.785643",
"0.78218526",
"0.7811448",
"0.7811292",
"0.7792374",
"0.7791945",
"0.7775175... | 0.7721947 | 24 |
Deleting the children recursively | public static void deleteFiles(final String _file) throws IOException {
final File file = new File(_file);
FileUtils.forceDelete(file);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void removeChildren() {\r\n this.children.clear();\r\n childNum = 0;\r\n }",
"@objid (\"808c0839-1dec-11e2-8cad-001ec947c8cc\")\n @Override\n public void delete() {\n // List children from the end to avoid reordering of the other GMs\n for (int i = this.children.size()... | [
"0.76028603",
"0.7388697",
"0.73860425",
"0.7152122",
"0.7063642",
"0.7024625",
"0.6900388",
"0.6831797",
"0.6650884",
"0.6616517",
"0.6597496",
"0.64729273",
"0.6470072",
"0.6334418",
"0.6305335",
"0.6212054",
"0.61283344",
"0.6124206",
"0.61175984",
"0.6106881",
"0.60962826... | 0.0 | -1 |
Deleting the children recursively | public static void deleteFilesOnExit(final String _file) throws IOException {
final File file = new File(_file);
FileUtils.forceDeleteOnExit(file);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void removeChildren() {\r\n this.children.clear();\r\n childNum = 0;\r\n }",
"@objid (\"808c0839-1dec-11e2-8cad-001ec947c8cc\")\n @Override\n public void delete() {\n // List children from the end to avoid reordering of the other GMs\n for (int i = this.children.size()... | [
"0.76031625",
"0.7389558",
"0.7387766",
"0.7153273",
"0.7063644",
"0.7026237",
"0.6902536",
"0.68330675",
"0.66514903",
"0.6618092",
"0.65980166",
"0.64736384",
"0.64719605",
"0.63343155",
"0.63079786",
"0.6214786",
"0.61285007",
"0.61242586",
"0.6119246",
"0.6106178",
"0.609... | 0.0 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.