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 |
|---|---|---|---|---|---|---|
Builds the drop statements for database objects in this schema. | private List<String> buildDropStatements(final String dropPrefix, final String query, String schema) throws SQLException {
List<String> dropStatements = new ArrayList<String>();
List<String> dbObjects = jdbcTemplate.queryForStringList(query);
for (String dbObject : dbObjects) {
dropStatements.add(dropPrefix + " " + dbSupport.quote(schema, dbObject));
}
return dropStatements;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void doClean() throws SQLException {\n for (String dropStatement : generateDropStatements(name, \"V\", \"VIEW\")) {\n jdbcTemplate.execute(dropStatement);\n }\n\n // aliases\n for (String dropStatement : generateDropStatements(name, \"A\", \"ALIAS\"))... | [
"0.7474821",
"0.718897",
"0.7175591",
"0.71011347",
"0.6799737",
"0.6724662",
"0.66976357",
"0.66789955",
"0.66554016",
"0.6649021",
"0.66180265",
"0.66116625",
"0.6587747",
"0.6462971",
"0.64274627",
"0.642166",
"0.6412501",
"0.63145584",
"0.6297872",
"0.62805206",
"0.627343... | 0.7146819 | 3 |
Gets the attachmentId value for this TradeHistoryEntryVo. | public java.lang.Long getAttachmentId() {
return attachmentId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getAttachId() {\n return attachId;\n }",
"public String getAttachment() {\n return attachment;\n }",
"public Object getAttachment() {\n\t\treturn attachment;\n\t}",
"public void setAttachmentId(java.lang.Long attachmentId) {\n this.attachmentId = attachmentId;\n }"... | [
"0.6605577",
"0.5889038",
"0.5787316",
"0.55978096",
"0.5583142",
"0.55556655",
"0.5503281",
"0.5299462",
"0.52884984",
"0.5261268",
"0.52544373",
"0.5209555",
"0.52084655",
"0.5185389",
"0.5163788",
"0.5116713",
"0.5099035",
"0.50838494",
"0.507034",
"0.5064942",
"0.50152594... | 0.7436762 | 0 |
Sets the attachmentId value for this TradeHistoryEntryVo. | public void setAttachmentId(java.lang.Long attachmentId) {
this.attachmentId = attachmentId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.lang.Long getAttachmentId() {\n return attachmentId;\n }",
"public void setAttachment(Object attachment) {\n\t\tthis.attachment = attachment;\n\t}",
"public void setAttachId(String attachId) {\n this.attachId = attachId;\n }",
"public void setAttachment(Object attachment) {\n\... | [
"0.63760924",
"0.62926",
"0.62411207",
"0.6237269",
"0.581409",
"0.572244",
"0.5469092",
"0.53401023",
"0.5328686",
"0.529556",
"0.51650697",
"0.51555187",
"0.50718325",
"0.4962973",
"0.49598306",
"0.49386278",
"0.49304146",
"0.4882413",
"0.48598602",
"0.48117027",
"0.4798272... | 0.6871974 | 0 |
Gets the attachmentName value for this TradeHistoryEntryVo. | public java.lang.String getAttachmentName() {
return attachmentName;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getAttachmentName() {\n\t\treturn attachmentName;\n\t}",
"public String getAttachment() {\n return attachment;\n }",
"public Set getAttachmentNames() {\n if (attachments != null) {\n return Collections.unmodifiableSet(attachments.keySet());\n }\n return C... | [
"0.7342828",
"0.61258656",
"0.56761926",
"0.56658185",
"0.5621536",
"0.55825955",
"0.5545703",
"0.5472559",
"0.5451312",
"0.5386234",
"0.5354583",
"0.5353576",
"0.5350874",
"0.53337574",
"0.5305726",
"0.530413",
"0.53020835",
"0.52949804",
"0.52893823",
"0.5266545",
"0.526545... | 0.73753107 | 0 |
Sets the attachmentName value for this TradeHistoryEntryVo. | public void setAttachmentName(java.lang.String attachmentName) {
this.attachmentName = attachmentName;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setAttachmentName(String attachmentName) {\n\t\tthis.attachmentName = attachmentName;\n\t}",
"public void setFileAttachmentName(String name) {\n\t\tput(PdfName.A, new PdfString(name, PdfObject.TEXT_UNICODE));\n\t}",
"public String getAttachmentName() {\n\t\treturn attachmentName;\n\t}",
"public j... | [
"0.7060697",
"0.66979986",
"0.6352852",
"0.60273594",
"0.5863744",
"0.57527107",
"0.5623035",
"0.55846244",
"0.49861458",
"0.49009204",
"0.48789594",
"0.48589268",
"0.4790334",
"0.47796747",
"0.47790793",
"0.47714227",
"0.4762727",
"0.47606272",
"0.47500867",
"0.47300673",
"0... | 0.7221797 | 0 |
Gets the comment value for this TradeHistoryEntryVo. | public java.lang.String getComment() {
return comment;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getComment() {\n Object ref = comment_;\n if (!(ref instanceof String)) {\n String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n comment_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
... | [
"0.67011553",
"0.6679011",
"0.6640305",
"0.66182876",
"0.6610964",
"0.6610964",
"0.6610964",
"0.6610964",
"0.6610964",
"0.6610964",
"0.6610964",
"0.66071045",
"0.6602818",
"0.6602818",
"0.6596638",
"0.657992",
"0.6569975",
"0.65295994",
"0.6521703",
"0.6499547",
"0.64485675",... | 0.6524521 | 20 |
Sets the comment value for this TradeHistoryEntryVo. | public void setComment(java.lang.String comment) {
this.comment = comment;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setComment(String comment);",
"public void setComment(String comment);",
"public final void setComment(final String comment) {\n this.comment = comment;\n }",
"public void setComment(String c) {\n comment = c ;\n }",
"public void setComment(String comment) {\n this... | [
"0.7230685",
"0.7230685",
"0.7106237",
"0.7038998",
"0.7009017",
"0.6960546",
"0.6958948",
"0.69404864",
"0.69227046",
"0.69227046",
"0.68913156",
"0.68913156",
"0.68913156",
"0.68913156",
"0.6891022",
"0.6852214",
"0.680266",
"0.680266",
"0.67652094",
"0.6678088",
"0.6650455... | 0.68435836 | 17 |
Gets the createdByName value for this TradeHistoryEntryVo. | public java.lang.String getCreatedByName() {
return createdByName;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setCreatedByName(java.lang.String createdByName) {\n this.createdByName = createdByName;\n }",
"public String getCreatedUserName() {\n return createdUserName;\n }",
"public java.lang.String getCreatedById() {\n return createdById;\n }",
"public java.lang.String getCr... | [
"0.59519964",
"0.58363175",
"0.56601727",
"0.56601727",
"0.5651561",
"0.5651561",
"0.5549269",
"0.5480536",
"0.5432265",
"0.54094213",
"0.53501296",
"0.5338544",
"0.531259",
"0.531259",
"0.52889013",
"0.52889013",
"0.52889013",
"0.5281402",
"0.5279867",
"0.5266962",
"0.526437... | 0.747826 | 0 |
Sets the createdByName value for this TradeHistoryEntryVo. | public void setCreatedByName(java.lang.String createdByName) {
this.createdByName = createdByName;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.lang.String getCreatedByName() {\n return createdByName;\n }",
"public void setCreatedUserName(String createdUserName) {\n this.createdUserName = createdUserName;\n }",
"public void setCreatedBy(StringFilter createdBy) {\n\t\tthis.createdBy = createdBy;\n\t}",
"public void set... | [
"0.6260331",
"0.5567134",
"0.5299354",
"0.52621335",
"0.5174819",
"0.5127104",
"0.51006263",
"0.51006263",
"0.51006263",
"0.51006263",
"0.51006263",
"0.51006263",
"0.51006263",
"0.508543",
"0.50824016",
"0.50586814",
"0.5037657",
"0.5030957",
"0.49941632",
"0.49866527",
"0.49... | 0.72168666 | 0 |
Gets the date value for this TradeHistoryEntryVo. | public java.util.Calendar getDate() {
return date;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Date getTradeDate() {\r\n return tradeDate;\r\n }",
"public java.util.Date getDateHist() {\n\t\treturn _pnaAlerta.getDateHist();\n\t}",
"public long getTradeDate() {\n return tradeDate_;\n }",
"public long getTradeDate() {\n return tradeDate_;\n }",
"public java.util.Da... | [
"0.64565474",
"0.6414232",
"0.63400066",
"0.631292",
"0.627571",
"0.62632006",
"0.62254775",
"0.621203",
"0.6203817",
"0.620334",
"0.620334",
"0.620334",
"0.62022877",
"0.62022877",
"0.61846024",
"0.61758184",
"0.6171984",
"0.6171546",
"0.617094",
"0.617094",
"0.6165286",
"... | 0.0 | -1 |
Sets the date value for this TradeHistoryEntryVo. | public void setDate(java.util.Calendar date) {
this.date = date;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public StockEvent setDate(Date date) {\n this.date = date;\n return this;\n }",
"public void setDate(Date date) {\r\n\t\tthis.date = date;\r\n\t}",
"public void setDate(Date date) {\r\n\t\tthis.date = date;\r\n\t}",
"public void setDate(Date date) {\r\n\t\tthis.date = date;\r\n\t}",
"publi... | [
"0.68753904",
"0.68372035",
"0.68372035",
"0.68372035",
"0.6813402",
"0.6803749",
"0.6782688",
"0.6782688",
"0.6782688",
"0.6782688",
"0.6782688",
"0.6782688",
"0.6782688",
"0.6782688",
"0.6782688",
"0.67624724",
"0.67624724",
"0.67624724",
"0.67560506",
"0.6753039",
"0.67137... | 0.6097309 | 53 |
Gets the internalTradeId value for this TradeHistoryEntryVo. | public java.lang.Long getInternalTradeId() {
return internalTradeId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getTradeId() {\n\t\treturn this.tradeId;\n\t}",
"public Long getTradeId() {\n return tradeId;\n }",
"public String getTradeNo() {\n\t\treturn tradeNo;\n\t}",
"public List<ObjectIdentifier> getTradeIds() {\n return _tradeIds;\n }",
"public void setInternalTradeId(java.lang.Long i... | [
"0.72349834",
"0.7059041",
"0.6099177",
"0.5987471",
"0.5688968",
"0.5628295",
"0.56160635",
"0.55095285",
"0.54642725",
"0.53958833",
"0.5345764",
"0.5316412",
"0.5286124",
"0.5228403",
"0.5210772",
"0.5206446",
"0.5197298",
"0.51536673",
"0.51052564",
"0.5096556",
"0.502928... | 0.7320736 | 0 |
Sets the internalTradeId value for this TradeHistoryEntryVo. | public void setInternalTradeId(java.lang.Long internalTradeId) {
this.internalTradeId = internalTradeId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setTradeId(Long tradeId) {\n this.tradeId = tradeId;\n }",
"public java.lang.Long getInternalTradeId() {\n return internalTradeId;\n }",
"public String getTradeId() {\n\t\treturn this.tradeId;\n\t}",
"public void addTradeId(ObjectIdentifiable tradeId) {\n ArgumentChecker.no... | [
"0.67586523",
"0.58788157",
"0.5814592",
"0.5752042",
"0.568232",
"0.56660026",
"0.5628821",
"0.5414284",
"0.534732",
"0.5308711",
"0.52006185",
"0.49427867",
"0.4884043",
"0.4819686",
"0.4818682",
"0.47942695",
"0.47832462",
"0.4767711",
"0.47463346",
"0.47388217",
"0.467962... | 0.7094495 | 0 |
Gets the reclamationCloseComment value for this TradeHistoryEntryVo. | public java.lang.String getReclamationCloseComment() {
return reclamationCloseComment;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setReclamationCloseComment(java.lang.String reclamationCloseComment) {\n this.reclamationCloseComment = reclamationCloseComment;\n }",
"public java.lang.Boolean getReclamationClosed() {\n return reclamationClosed;\n }",
"public String getComment() {\n Object ref = comment... | [
"0.68753016",
"0.57062757",
"0.5591914",
"0.5590149",
"0.5553099",
"0.55490136",
"0.5527849",
"0.5497553",
"0.5486443",
"0.5451255",
"0.53989995",
"0.5391511",
"0.5366699",
"0.5358834",
"0.52711844",
"0.5212753",
"0.51792836",
"0.5171487",
"0.51670945",
"0.51627916",
"0.51624... | 0.7636946 | 0 |
Sets the reclamationCloseComment value for this TradeHistoryEntryVo. | public void setReclamationCloseComment(java.lang.String reclamationCloseComment) {
this.reclamationCloseComment = reclamationCloseComment;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.lang.String getReclamationCloseComment() {\n return reclamationCloseComment;\n }",
"public void setReclamationClosed(java.lang.Boolean reclamationClosed) {\n this.reclamationClosed = reclamationClosed;\n }",
"public void setCloseDate(String closeDate) {\n this.closeDate = clo... | [
"0.6561947",
"0.5570894",
"0.5340819",
"0.5194163",
"0.5140863",
"0.5033708",
"0.49751455",
"0.4954299",
"0.4935947",
"0.4880408",
"0.48726037",
"0.4841143",
"0.48345307",
"0.48072413",
"0.48072413",
"0.48040253",
"0.4774026",
"0.47703162",
"0.46709552",
"0.4657169",
"0.46165... | 0.7886282 | 0 |
Gets the reclamationClosed value for this TradeHistoryEntryVo. | public java.lang.Boolean getReclamationClosed() {
return reclamationClosed;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.lang.String getReclamationCloseComment() {\n return reclamationCloseComment;\n }",
"public boolean getClosed() {\n\treturn this.closed;\n }",
"public void setReclamationClosed(java.lang.Boolean reclamationClosed) {\n this.reclamationClosed = reclamationClosed;\n }",
"public... | [
"0.62737566",
"0.6224739",
"0.6181002",
"0.6138336",
"0.59499025",
"0.5852089",
"0.58038974",
"0.58010846",
"0.5763588",
"0.5763588",
"0.5695328",
"0.5694773",
"0.56912947",
"0.56770104",
"0.5629154",
"0.5622067",
"0.55791104",
"0.556874",
"0.55518085",
"0.55068636",
"0.54685... | 0.73163164 | 0 |
Sets the reclamationClosed value for this TradeHistoryEntryVo. | public void setReclamationClosed(java.lang.Boolean reclamationClosed) {
this.reclamationClosed = reclamationClosed;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setReclamationCloseComment(java.lang.String reclamationCloseComment) {\n this.reclamationCloseComment = reclamationCloseComment;\n }",
"public java.lang.Boolean getReclamationClosed() {\n return reclamationClosed;\n }",
"public void setClosed(boolean closed) {\n\tthis.closed = c... | [
"0.63546604",
"0.6218919",
"0.6026167",
"0.59978414",
"0.56518495",
"0.55929273",
"0.55125064",
"0.5507505",
"0.54160166",
"0.5278032",
"0.52093375",
"0.5165238",
"0.5142377",
"0.5088392",
"0.50604945",
"0.50176144",
"0.49169624",
"0.4897754",
"0.48867583",
"0.48798233",
"0.4... | 0.73526686 | 0 |
Gets the reclamationLevel value for this TradeHistoryEntryVo. | public java.lang.Integer getReclamationLevel() {
return reclamationLevel;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setReclamationLevel(java.lang.Integer reclamationLevel) {\n this.reclamationLevel = reclamationLevel;\n }",
"public tech.hry.logclient.grpc.LogLevel getLevel() {\n @SuppressWarnings(\"deprecation\")\n tech.hry.logclient.grpc.LogLevel result = tech.hry.logclient.grpc.LogLevel.value... | [
"0.5659319",
"0.5617537",
"0.5585847",
"0.5493106",
"0.5451754",
"0.53729147",
"0.53635556",
"0.5269222",
"0.5256181",
"0.52447087",
"0.5228321",
"0.5179169",
"0.51709354",
"0.51709354",
"0.51709354",
"0.51709354",
"0.51709354",
"0.5159387",
"0.5159387",
"0.5157653",
"0.51569... | 0.74645907 | 0 |
Sets the reclamationLevel value for this TradeHistoryEntryVo. | public void setReclamationLevel(java.lang.Integer reclamationLevel) {
this.reclamationLevel = reclamationLevel;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.lang.Integer getReclamationLevel() {\n return reclamationLevel;\n }",
"public void setLineVolume(int level) {\n if (level >= 0 && level <= 100) {\n int checkSum = 0x07 ^ 0x01 ^ 0x00 ^ 0x44 ^ 0x00 ^ level;\n String hexLevel = Integer.toHexString(level);\n ... | [
"0.59107673",
"0.4911896",
"0.48809367",
"0.4609308",
"0.4609308",
"0.4609308",
"0.4609308",
"0.45928025",
"0.45928025",
"0.45928025",
"0.45928025",
"0.45928025",
"0.4566454",
"0.45580488",
"0.45416278",
"0.45362377",
"0.4532198",
"0.45261857",
"0.45214972",
"0.45183888",
"0.... | 0.7329302 | 0 |
Gets the stateCode value for this TradeHistoryEntryVo. | public java.lang.String getStateCode() {
return stateCode;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.lang.String getStateCode() {\n\t\treturn _dmHistoryMaritime.getStateCode();\n\t}",
"@Override\n\tpublic java.lang.String getStateCode() {\n\t\treturn _state.getStateCode();\n\t}",
"public String getStateCode() {\n return (String)getAttributeInternal(STATECODE);\n }",
"public String getA... | [
"0.693833",
"0.6776298",
"0.6598768",
"0.64300084",
"0.64060646",
"0.6179523",
"0.6124814",
"0.60432714",
"0.596196",
"0.59616625",
"0.59421176",
"0.5940919",
"0.5940919",
"0.5940919",
"0.5940919",
"0.5910238",
"0.5838052",
"0.5826951",
"0.5826951",
"0.5826951",
"0.5826951",
... | 0.6965683 | 0 |
Sets the stateCode value for this TradeHistoryEntryVo. | public void setStateCode(java.lang.String stateCode) {
this.stateCode = stateCode;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setStateCode(java.lang.String stateCode) {\n\t\t_dmHistoryMaritime.setStateCode(stateCode);\n\t}",
"@Override\n\tpublic void setStateCode(java.lang.String stateCode) {\n\t\t_state.setStateCode(stateCode);\n\t}",
"public void setStateCode(java.lang.String stateCode) {\n\t\t_tempNoTiceShipMessage.set... | [
"0.7122992",
"0.6589484",
"0.6433387",
"0.63678247",
"0.61106086",
"0.56472707",
"0.54931986",
"0.5490474",
"0.54780936",
"0.5389229",
"0.5368056",
"0.5344198",
"0.5337248",
"0.5324803",
"0.5288968",
"0.5286498",
"0.5253566",
"0.5216856",
"0.52092665",
"0.52092665",
"0.520926... | 0.67170167 | 1 |
Gets the type value for this TradeHistoryEntryVo. | public java.lang.String getType() {
return type;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public EntryType getType() {\n return type;\n }",
"public Class<?> getType() {\n return this.value.getClass();\n }",
"public String getType() {\n return (String) getObject(\"type\");\n }",
"public Class getType() {\n Object value = getValue();\n if (value =... | [
"0.6459216",
"0.6306856",
"0.6202175",
"0.6182599",
"0.61802864",
"0.61703694",
"0.6148478",
"0.6125951",
"0.6125951",
"0.61203134",
"0.61150646",
"0.6114479",
"0.6090804",
"0.60899085",
"0.6087307",
"0.6087307",
"0.6087307",
"0.6087307",
"0.6087307",
"0.60768414",
"0.6074937... | 0.0 | -1 |
Sets the type value for this TradeHistoryEntryVo. | public void setType(java.lang.String type) {
this.type = type;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setType(Type t) {\n type = t;\n }",
"public void setType(Type t) {\n\t\ttype = t;\n\t}",
"public void setType(Type type) {\n this.type = type;\n }",
"public void setType(Type type) {\n this.type = type;\n }",
"public void setType(Type type) {\n this.type = t... | [
"0.6754028",
"0.6664385",
"0.66025907",
"0.66025907",
"0.66025907",
"0.65656054",
"0.6482323",
"0.6479",
"0.64713544",
"0.64163065",
"0.64031965",
"0.6388793",
"0.6381856",
"0.6381856",
"0.6381856",
"0.6381856",
"0.6381856",
"0.6381856",
"0.6381856",
"0.6381856",
"0.6381856",... | 0.6208653 | 78 |
Return type metadata object | public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public MetadataType getType();",
"public MetadataType getType() {\n return type;\n }",
"public MilanoTypeMetadata.TypeMetadata getMetadata()\n {\n if (typeMetadata == null) {\n return null;\n }\n\n return typeMetadata;\n }",
"private Metadata getMetadata(RubyModule type)... | [
"0.7969707",
"0.7373198",
"0.7358018",
"0.7090138",
"0.67353225",
"0.67259765",
"0.66725683",
"0.65644145",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",... | 0.0 | -1 |
To Get All the recipes with the username same as the one that is logged in | @GetMapping
public List<Recipe> get(HttpSession httpSession){
List<Recipe> recipes = new ArrayList<>();
String username = (String) httpSession.getAttribute("username");
//recipeRepository.findByAcess("PUBLIC").iterator().forEachRemaining(x -> recipes.add(x));
if(username != null){
recipeRepository.findByEmail(username).iterator().forEachRemaining(x -> recipes.add(x));
}
System.out.println(recipes);
return recipes;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@GetMapping(\"/jpa/users/{username}/recipes\")\n\tpublic List<Recipe> getAllRecipes(@PathVariable String username) {\n\t\t\n\t\treturn recipeJpaRepository.findByUsername(username);\n//\t\t\n\t\n\t\t\n\t}",
"@Override\n @SuppressWarnings(\"unchecked\")\n public List<RecipeEntity> getAllRecipe(long idUser)\n... | [
"0.7147295",
"0.6726249",
"0.6173398",
"0.6144184",
"0.6053309",
"0.59554553",
"0.5910091",
"0.5845245",
"0.56374085",
"0.5453146",
"0.54213756",
"0.54109854",
"0.5408161",
"0.53832126",
"0.5364825",
"0.53506553",
"0.5298117",
"0.52746254",
"0.52573895",
"0.52230436",
"0.5207... | 0.7098732 | 1 |
TODO Autogenerated method stub | @Override
public String exeFunc(ModelAction modelAction, ModelService modelService)
{
String loginName = modelAction.getRequest().getParameter("LOGIN_NAME");
String dataAuth = String.valueOf(modelAction.getRequest().getSession().getAttribute("mcDataAuth"));
Map<String, String> map = new HashMap<String, String>();
String sql="select name from sy_user ";
String sqlWhere = " where 1 = 1 ";
if (StringUtils.isNotBlank(loginName)) {
sqlWhere += " and id =:loginName1 ";
map.put("loginName1", loginName);
}
sqlWhere += " and DATA_AUTH =:DATA_AUTH ";
map.put("DATA_AUTH", dataAuth);
List list = modelService.listSql(sql+sqlWhere,null,map, null, null);
CommMethod.listToEscapeJs(list);
modelAction.setAjaxList(list);
return BaseActionSupport.AJAX;
} | {
"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 |
Get the component of each node. The integer denoting the component is the ID of a representative node in the component. | public int[] get() {
return res;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected Node getComponentNode() {\n return componentNode;\n }",
"private List<List<XGraph.XVertex>> getComponents() {\n scc = new SCC(graph);\n int componentCount = scc.findSSC();\n List<List<XGraph.XVertex>> components = new ArrayList<>();\n for (int i = 0; i < componentCount; ... | [
"0.67201984",
"0.6610122",
"0.6431877",
"0.5993136",
"0.5937254",
"0.59322035",
"0.5890706",
"0.58883756",
"0.58883166",
"0.5886278",
"0.58649945",
"0.58394885",
"0.5800209",
"0.5781245",
"0.57496953",
"0.5731496",
"0.57224244",
"0.5721089",
"0.5682973",
"0.5670089",
"0.56603... | 0.0 | -1 |
/__/////////////////////////////////////////////////////////////////////////////////////////////// ____///////////////////////////////// CONSTRUCTORS //////////////////////////////////////////////// ____///////////////////////////////////////////////////////////////////////////////////////////// Set the String value for this enum | ContentType(String value){
_value = value;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setValueString(org.hl7.fhir.String valueString);",
"void setValue(java.lang.String value);",
"public void setName(String value)\r\n\t{\r\n\r\n\t\tput(HtmlEnum.name.getAttributeName(), value);\r\n\t}",
"public void setString(String value) {\r\n\t\ttype(ConfigurationItemType.STRING);\r\n\t\tthis.stringVal... | [
"0.7111578",
"0.6856811",
"0.6842804",
"0.6751432",
"0.67487687",
"0.6656814",
"0.66184795",
"0.656538",
"0.6503071",
"0.6474545",
"0.6461107",
"0.64605",
"0.644556",
"0.644556",
"0.64422995",
"0.64305437",
"0.6412025",
"0.63924295",
"0.63924295",
"0.63924295",
"0.63924295",
... | 0.0 | -1 |
/__/////////////////////////////////////////////////////////////////////////////////////////////// ____/////////////////////////////// PUBLIC METHODS //////////////////////////////////////////////// ____///////////////////////////////////////////////////////////////////////////////////////////// Get the String value of the Contenttype | public String getValue(){
return _value;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getContentType();",
"String getContentType();",
"String getContentType();",
"public String getContenttype() {\n return contenttype;\n }",
"public String getContenttype() {\n return contenttype;\n }",
"public String getContenttype() {\n\t\treturn contenttype;\n\t}",
"public ja... | [
"0.77431715",
"0.77431715",
"0.77431715",
"0.7717473",
"0.7717473",
"0.7606253",
"0.7593477",
"0.7571949",
"0.74903893",
"0.7484331",
"0.74173874",
"0.74173874",
"0.7336232",
"0.7298699",
"0.72512",
"0.72313946",
"0.7179427",
"0.71517724",
"0.71507704",
"0.7150405",
"0.712614... | 0.0 | -1 |
Toast.makeText(MainActivity.this, "createUserWithEmail:onComplete:" + task.isSuccessful(), Toast.LENGTH_SHORT).show(); | @Override
public void onComplete(@NonNull Task<AuthResult> task) {
if(!task.isSuccessful())
{
Toast.makeText(MainActivity.this,"Some Error Occured,Please try again later",Toast.LENGTH_LONG).show();
}
if(task.isSuccessful())
{
Toast.makeText(MainActivity.this,"Regristration Successful",Toast.LENGTH_LONG).show();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful())\n {\n addNewUserData(auth.getUid(), email, username);\n if (onCompleteListener != null) {\n onCompleteListener.onComp... | [
"0.77720433",
"0.76531446",
"0.75912035",
"0.7568559",
"0.7565063",
"0.7534575",
"0.7529717",
"0.7526925",
"0.74435383",
"0.740122",
"0.7365417",
"0.7355358",
"0.73406345",
"0.72474337",
"0.72469115",
"0.72015184",
"0.71705884",
"0.7159184",
"0.71582246",
"0.7158202",
"0.7155... | 0.766343 | 1 |
The class holding records for this type | @Override
public Class<PatientRecord> getRecordType() {
return PatientRecord.class;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public RecordRecord() {\n\t\tsuper(org.jooq.examples.cubrid.demodb.tables.Record.RECORD);\n\t}",
"public Class<?> getRecordClass() \n\t{\n\t return recordClass ;\n\t}",
"public DataRecord() {\n super(DataTable.DATA);\n }",
"@Override\n public Class<Record> getRecordType() {\n return Re... | [
"0.68004626",
"0.66954035",
"0.64103794",
"0.6398801",
"0.6398801",
"0.6398801",
"0.6398801",
"0.6393993",
"0.6354873",
"0.6192012",
"0.61258304",
"0.61258304",
"0.61258304",
"0.6104736",
"0.60470754",
"0.60470754",
"0.60470754",
"0.6040716",
"0.6029211",
"0.6020949",
"0.6008... | 0.5884042 | 34 |
Create a patientregsys.patient table reference | public Patient() {
this(DSL.name("patient"), null);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public org.hl7.fhir.ResourceReference addNewPatient()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.ResourceReference target = null;\n target = (org.hl7.fhir.ResourceReference)get_store().add_element_user(PATIENT$2);\n return targ... | [
"0.5863514",
"0.56437784",
"0.5572443",
"0.5566132",
"0.5497761",
"0.5460373",
"0.54120255",
"0.5386069",
"0.53838754",
"0.5373246",
"0.5361375",
"0.5347973",
"0.5313809",
"0.5287453",
"0.52854216",
"0.5268652",
"0.52168876",
"0.51952887",
"0.5193661",
"0.5192674",
"0.5188835... | 0.54233956 | 6 |
Create an aliased patientregsys.patient table reference | public Patient(String alias) {
this(DSL.name(alias), PATIENT);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Patient(Name alias) {\n this(alias, PATIENT);\n }",
"Reference getPatient();",
"AliasStatement createAliasStatement();",
"public org.hl7.fhir.ResourceReference addNewPatient()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.Resourc... | [
"0.5503435",
"0.522111",
"0.5096916",
"0.49633533",
"0.4938742",
"0.493293",
"0.492364",
"0.48140374",
"0.48111755",
"0.47206852",
"0.46589226",
"0.4637428",
"0.4622243",
"0.46181712",
"0.45828083",
"0.4578649",
"0.4558834",
"0.45522246",
"0.45323336",
"0.45213726",
"0.451478... | 0.5647256 | 0 |
Create an aliased patientregsys.patient table reference | public Patient(Name alias) {
this(alias, PATIENT);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Patient(String alias) {\n this(DSL.name(alias), PATIENT);\n }",
"Reference getPatient();",
"AliasStatement createAliasStatement();",
"public org.hl7.fhir.ResourceReference addNewPatient()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.... | [
"0.5647256",
"0.522111",
"0.5096916",
"0.49633533",
"0.4938742",
"0.493293",
"0.492364",
"0.48140374",
"0.48111755",
"0.47206852",
"0.46589226",
"0.4637428",
"0.4622243",
"0.46181712",
"0.45828083",
"0.4578649",
"0.4558834",
"0.45522246",
"0.45323336",
"0.45213726",
"0.451478... | 0.5503435 | 1 |
Convert the given dtd file to the new xsd format. | public static File convert(final @NonNull File dtdfile, final @NonNull File xsdfile)
throws IOException
{
OutputStream outStream = new FileOutputStream(xsdfile);
final Writer writer = new Writer();
writer.setOutStream(outStream);
writer.parse(new XMLInputSource(null, dtdfile.getAbsolutePath(), null));
return xsdfile;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void convert(final String dtdfile, final String xsdfile) throws IOException\n\t{\n\t\tOutputStream outStream = new FileOutputStream(xsdfile);\n\t\tfinal Writer writer = new Writer();\n\t\twriter.setOutStream(outStream);\n\t\twriter.parse(new XMLInputSource(null, dtdfile, null));\n\t}",
"public stat... | [
"0.77178913",
"0.7433791",
"0.6207102",
"0.6110839",
"0.5410345",
"0.5302285",
"0.526587",
"0.47190723",
"0.47173604",
"0.4681965",
"0.4660275",
"0.45735496",
"0.4558579",
"0.45573574",
"0.45171845",
"0.44703022",
"0.43892738",
"0.43834114",
"0.43326336",
"0.43057173",
"0.430... | 0.7646016 | 1 |
Convert the given the dtd file(that is the path as String) to the new xsd format. | public static File convert(final @NonNull String dtdfile, final @NonNull File xsdfile)
throws IOException
{
OutputStream outStream = new FileOutputStream(xsdfile);
final Writer writer = new Writer();
writer.setOutStream(outStream);
writer.parse(new XMLInputSource(null, dtdfile, null));
return xsdfile;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void convert(final String dtdfile, final String xsdfile) throws IOException\n\t{\n\t\tOutputStream outStream = new FileOutputStream(xsdfile);\n\t\tfinal Writer writer = new Writer();\n\t\twriter.setOutStream(outStream);\n\t\twriter.parse(new XMLInputSource(null, dtdfile, null));\n\t}",
"public stat... | [
"0.7666098",
"0.7398327",
"0.61082697",
"0.6067268",
"0.54835266",
"0.5408676",
"0.5173845",
"0.51553625",
"0.5011881",
"0.49390298",
"0.49158886",
"0.48648763",
"0.48005846",
"0.47842363",
"0.47756407",
"0.47728336",
"0.4723275",
"0.4682279",
"0.46539038",
"0.46485835",
"0.4... | 0.7430399 | 1 |
Convert the given the dtd file(that is the path as String) to the new xsd format with target namespace. | public static void convert(final @NonNull String targetNamespace,
final List<TypePattern> listXsdTypePattern, final @NonNull String dtdfile,
final @NonNull File xsdfile) throws IOException
{
OutputStream outStream = new FileOutputStream(xsdfile);
final Writer writer = new Writer();
writer.setTargetNamespace(targetNamespace);
writer.addXsdTypePattern(listXsdTypePattern);
writer.setOutStream(outStream);
writer.parse(new XMLInputSource(null, dtdfile, null));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void convert(final String dtdfile, final String xsdfile) throws IOException\n\t{\n\t\tOutputStream outStream = new FileOutputStream(xsdfile);\n\t\tfinal Writer writer = new Writer();\n\t\twriter.setOutStream(outStream);\n\t\twriter.parse(new XMLInputSource(null, dtdfile, null));\n\t}",
"public stat... | [
"0.71521986",
"0.6878486",
"0.6835679",
"0.6444731",
"0.53701174",
"0.51463366",
"0.51333374",
"0.50691766",
"0.49744278",
"0.47925356",
"0.47421777",
"0.4707456",
"0.46968088",
"0.46598056",
"0.46329674",
"0.4629566",
"0.45710322",
"0.45392552",
"0.45218223",
"0.45110947",
"... | 0.6488222 | 3 |
Convert the given dtd file to the new xsd format with target namespace. | public static void convert(final @NonNull String targetNamespace,
final List<TypePattern> listXsdTypePattern, final @NonNull String dtdfile,
final @NonNull String xsdfile) throws IOException
{
OutputStream outStream = new FileOutputStream(xsdfile);
final Writer writer = new Writer();
writer.setTargetNamespace(targetNamespace);
writer.addXsdTypePattern(listXsdTypePattern);
writer.setOutStream(outStream);
writer.parse(new XMLInputSource(null, dtdfile, null));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void convert(final String dtdfile, final String xsdfile) throws IOException\n\t{\n\t\tOutputStream outStream = new FileOutputStream(xsdfile);\n\t\tfinal Writer writer = new Writer();\n\t\twriter.setOutStream(outStream);\n\t\twriter.parse(new XMLInputSource(null, dtdfile, null));\n\t}",
"public stat... | [
"0.71173143",
"0.69661313",
"0.67599225",
"0.6585291",
"0.52290726",
"0.5005988",
"0.49951276",
"0.47888592",
"0.46602353",
"0.4578658",
"0.45344463",
"0.450357",
"0.44785833",
"0.44622374",
"0.44444856",
"0.44399986",
"0.4438201",
"0.44251755",
"0.4416025",
"0.4379896",
"0.4... | 0.65129954 | 4 |
Convert the given the dtd file(that is the path as String) to the new xsd format. | public static void convert(final String dtdfile, final String xsdfile) throws IOException
{
OutputStream outStream = new FileOutputStream(xsdfile);
final Writer writer = new Writer();
writer.setOutStream(outStream);
writer.parse(new XMLInputSource(null, dtdfile, null));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static File convert(final @NonNull String dtdfile, final @NonNull File xsdfile)\n\t\tthrows IOException\n\t{\n\t\tOutputStream outStream = new FileOutputStream(xsdfile);\n\t\tfinal Writer writer = new Writer();\n\t\twriter.setOutStream(outStream);\n\t\twriter.parse(new XMLInputSource(null, dtdfile, null));\... | [
"0.7430399",
"0.7398327",
"0.61082697",
"0.6067268",
"0.54835266",
"0.5408676",
"0.5173845",
"0.51553625",
"0.5011881",
"0.49390298",
"0.49158886",
"0.48648763",
"0.48005846",
"0.47842363",
"0.47756407",
"0.47728336",
"0.4723275",
"0.4682279",
"0.46539038",
"0.46485835",
"0.4... | 0.7666098 | 0 |
TODO Autogenerated method stub | public static void main(String[] args) {
System.setProperty("webdriver.gecko.driver",
"F:\\Java Files\\Browser Drivers\\geckodriver-v0.19.0-win64\\geckodriver.exe");
FirefoxDriver driver = new FirefoxDriver();
driver.get("https://www.facebook.com/login/");
WebElement password, login, scroll;
driver.findElement(By.id("email")).sendKeys("sanjayjoe2020@gmail.com");
password = driver.findElement(By.id("pass"));
password.sendKeys("shanjayjo");
login = driver.findElement(By.xpath(".//*[@id='loginbutton']"));
login.click();
scroll = driver.findElement(By.xpath(".//*[@id='userNavigationLabel']"));
scroll.click();
} | {
"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 |
Rolls to left or right or returns to level if not currently turning). We set the roll rate such that after turning thru' 1 radian the roll is at its max value. | private void updateRoll(float dt) {
rollRate = (speed / turnRadius) * rollMax;
// special case if speed is zero - glider landed but still has
// to roll level !
if (speed == 0) {
rollRate = 1 / 1 * rollMax;
}
if (nextTurn != 0) {
// turning
roll += nextTurn * rollRate * dt;
if (roll > rollMax)
roll = rollMax;
if (roll < -rollMax)
roll = -rollMax;
} else if (roll != 0) {
// roll back towards level
float droll = rollRate * dt;
if (roll > droll) {
roll -= droll;
} else if (roll < -droll) {
roll += droll;
} else {
roll = 0;
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void roll() {\n\t\tthis.currentValue = ThreadLocalRandom.current().nextInt(1, this.numSides + 1);\n\t}",
"@BinderThread\n public void setRoll(float roll) {\n this.roll = -roll;\n }",
"public final flipsParser.roll_return roll() throws RecognitionException {\n flipsParser.roll_return re... | [
"0.6712591",
"0.6612917",
"0.66037613",
"0.6490554",
"0.6398925",
"0.61729807",
"0.6144159",
"0.60966283",
"0.6082757",
"0.6082757",
"0.6081121",
"0.59745693",
"0.59743285",
"0.59743285",
"0.59537923",
"0.59491694",
"0.59391946",
"0.5938416",
"0.5938416",
"0.59329945",
"0.592... | 0.7013313 | 0 |
if no change, just bail | public void setClockState ( ClockState clockState )
{
if (this.clockState == clockState)
return;
this.clockState = clockState;
fireSourceChanged(ISources.WORKBENCH, CLOCK_STATE_ID, getClockStateStr());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void changed() {\n // Ok to have a race here, see the field javadoc.\n if (!changed)\n changed = true;\n }",
"@Override\n\tfinal public boolean hasDoneChanges() {\n\t\treturn false;\n\t}",
"public void isChanged()\n\t{\n\t\tchange = true;\n\t}",
"void updateIfNeeded()\n ... | [
"0.62397957",
"0.5933342",
"0.5915903",
"0.5871362",
"0.5851741",
"0.58215344",
"0.58068985",
"0.5806037",
"0.5751676",
"0.57025725",
"0.5684447",
"0.56773484",
"0.5675993",
"0.56505936",
"0.56505936",
"0.56505936",
"0.5648626",
"0.5635684",
"0.56223935",
"0.5621611",
"0.5621... | 0.0 | -1 |
Inflate the menu; this adds items to the action bar if it is present. | @Override
public boolean onCreateOptionsMenu(Menu menu) {
getSupportMenuInflater().inflate(R.menu.activity_display_selected_scripture,
menu);
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {... | [
"0.7246102",
"0.7201358",
"0.7194834",
"0.7176498",
"0.71066517",
"0.7039537",
"0.7037961",
"0.70112145",
"0.70094734",
"0.69807225",
"0.6944953",
"0.69389373",
"0.6933199",
"0.6916928",
"0.6916928",
"0.6891486",
"0.68831646",
"0.68754137",
"0.68745375",
"0.68621665",
"0.6862... | 0.0 | -1 |
Methods to set custom bank behavior from a config.yml / Daily interest rate is computed as the compounding rate that will double the player's account value in the specified number of days, r = 2 ^ (1/days) | public boolean setInterest( int days ) {
// Interest is disabled by setting the rate to 0
if (days == 0) {
rate = 0;
BankMaster.plugin.getLogger().info("interest is disabled.");
return true;
}
// Double-up days can't be negative or more than a year
if (days < 0 || days > 365)
return false;
rate = Math.pow(2, 1.0/days);
Bukkit.getLogger().info("BankMaster interest rate = " + rate);
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setRate(double annualRate) {\nmonthlyInterestRate = annualRate / 100.0 / MONTHS;\n}",
"void setBalance(double value);",
"private float caculateAmount(float amountIn) {\n float amount = amountIn;\n if (1 == OppoBrightUtils.mBrightnessBitsConfig) {\n OppoBrightUtils oppoBrigh... | [
"0.63364094",
"0.60411775",
"0.5812358",
"0.577793",
"0.5746189",
"0.57412785",
"0.5721142",
"0.57201767",
"0.56772006",
"0.5675136",
"0.5617488",
"0.56072575",
"0.5604887",
"0.55484635",
"0.5459468",
"0.54545325",
"0.5452762",
"0.5444391",
"0.54431814",
"0.5434134",
"0.54301... | 0.53232163 | 29 |
/ findAccount Returns the requested account if in the inmemory list, otherwise reads the account.yml file and adds to the list | public Account getAccount(Player p) {
if (p == null)
return null; // safety
// If the account is in memory, return it
for ( Account a : accounts) {
if (a.isFor(p.getUniqueId()))
return a;
}
// spawn a new account object with default values
Account acct = new Account(p.getName(), p.getUniqueId());
// load account status from yml file, if it exists
acct.openAccount();
// append to the bank list
accounts.add(acct);
return acct;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Account findAccount() {\n Account[] accounts = accountManager.getAccountsByType(ACCOUNT_TYPE);\n\n // only one matching account - use it, and remember it for the next time.\n if (accounts.length == 1) {\n persistAccountName(accounts[0].name);\n return accounts[0];\n }\n\n // No acco... | [
"0.6454845",
"0.642638",
"0.632937",
"0.6303105",
"0.6202832",
"0.6108664",
"0.60661876",
"0.60463935",
"0.6030214",
"0.60141504",
"0.60117114",
"0.597735",
"0.5950357",
"0.59342885",
"0.59001493",
"0.5878598",
"0.5876806",
"0.5873594",
"0.5871469",
"0.58691907",
"0.5863382",... | 0.6116623 | 5 |
/ getAccount called from an admin command: This version does not apply interest to the player's account | public Account getAccount(String name) {
Player p = Bukkit.getPlayer(name);
if (p == null)
return null;
return getAccount(p);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getAccount();",
"Account getAccount();",
"public Account getAccount(Player p) {\n\t\tif (p == null)\n\t\t\treturn null; // safety\n\t\t// If the account is in memory, return it\n\t\tfor ( Account a : accounts) {\n\t\t\tif (a.isFor(p.getUniqueId()))\n\t\t\t\treturn a;\n\t\t}\n\t\t// spawn a new... | [
"0.74487793",
"0.7260252",
"0.6755064",
"0.6682947",
"0.66555417",
"0.66508466",
"0.66508466",
"0.66508466",
"0.66508466",
"0.66508466",
"0.66508466",
"0.66508466",
"0.66508466",
"0.66508466",
"0.66508466",
"0.6579193",
"0.65590394",
"0.65590394",
"0.65590394",
"0.6553909",
"... | 0.7083671 | 2 |
/ getUpdatedAccount apply accrued interest | public Account getUpdatedAccount(Player p) {
Account a = getAccount(p);
if (a != null) {
// update Account with pending interest
Date today = new Date();
long now = today.getTime() / 86400000 ;
/* 'now' is an integral number of days since epoch.
* There are 86,400 seconds in a day, and 1000 'ticks' in a getTime() value.
* Interest is considered to compound at midnight
*/
// Update account with accumulated interest, if applicable
if (a.lastUpdate > 0 && rate > 1.0) {
long periods = now - a.lastUpdate;
if (periods > 0) {
BigDecimal oldamt = a.money;
double newamt = oldamt.doubleValue() * Math.pow(rate, periods);
a.money = new BigDecimal(newamt, context);
a.money = a.money.setScale(Currency.getDecimals(), RoundingMode.HALF_UP);
if (a.money.compareTo(maxMoney) > 0)
a.money = maxMoney;
BigDecimal interest = a.money.subtract(oldamt);
p.sendMessage(ChatColor.YELLOW + "Interest applied: " + interest);
}
}
a.lastUpdate = now;
}
return a;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void updateAccount();",
"int updateAccountInfo(Account account);",
"Account.Update update();",
"Account apply();",
"void updateAccount(Account account);",
"public void update(Account account) {\n\t\t\n\t}",
"public Account update(Account user);",
"Account apply(Context context);",
"public void test... | [
"0.7024225",
"0.68734473",
"0.6860368",
"0.67978233",
"0.67309093",
"0.6384274",
"0.63710654",
"0.63363427",
"0.6334738",
"0.6270396",
"0.62582856",
"0.6148624",
"0.6094091",
"0.6086432",
"0.6071736",
"0.60522586",
"0.599611",
"0.59802777",
"0.59367716",
"0.586911",
"0.586567... | 0.7300068 | 0 |
/ borrow(Account) calculates how much the borrower can borrow with one click: nothing, if loans are maxed out unused balance of maxLoans, or, if more than maxSingleLoan, maxSingleLoan | public BigDecimal borrow(Account acct) {
BigDecimal amt = maxLoans.subtract(acct.loans);
if (amt.compareTo(BigDecimal.ZERO) < 0)
amt = BigDecimal.ZERO;
return amt;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Boolean canBorrowBook() {\n\t\tif (loans.size() >= getLoanLimit()) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"private void calcBills() {\n\t\tint changeDueRemaining = (int) this.changeDue;\n\n\t\tif (changeDueRemaining >= 20) {\n\t\t\tthis.twenty += changeDueRemaining / 20;\n\t\t\tchangeDueRe... | [
"0.5759754",
"0.56545365",
"0.5528614",
"0.5224802",
"0.5178504",
"0.5176309",
"0.5163871",
"0.51324385",
"0.5042341",
"0.5035637",
"0.5012595",
"0.50119925",
"0.49887303",
"0.49749333",
"0.4942238",
"0.49355564",
"0.4927742",
"0.49112642",
"0.49076116",
"0.48965624",
"0.4893... | 0.74742246 | 0 |
Construct a new BSCObjSiblingsIter for the given BSCObject. | public BSCObjSiblingsIter(BSCObject source)
{
curr_ci = null;
p_iter = source.getParents();
ready_for_fetch = false;
// initialize the HashSet with the source object
prevobjs = new HashSet<BSCObject>();
prevobjs.add(source);
// get the children iterator from the first parent
if (p_iter.hasNext())
curr_ci = p_iter.next().getChildren();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public TreeIterator<?> treeIterator(Object object)\n {\n return new DomainTreeIterator<Object>(this, object);\n }",
"public ResourceIterator<GrandFatherRel> getNextIterator(FatherRel _object) {\n\t\t\t\t_bindings.y = _object.child;\n\n\t\t\t\treturn new SingletonIterator(new GrandFatherRel(_bindings.x, _... | [
"0.50668186",
"0.5054615",
"0.48783338",
"0.48524708",
"0.4715417",
"0.46976432",
"0.4679618",
"0.45548368",
"0.45472488",
"0.449186",
"0.44678414",
"0.44531497",
"0.44518507",
"0.44264588",
"0.4421185",
"0.43063828",
"0.42060226",
"0.42053723",
"0.4175562",
"0.4169904",
"0.4... | 0.67774004 | 0 |
See if there are sibling objects left to retrieve. | public boolean hasNext()
{
if (curr_ci == null)
return false;
if (ready_for_fetch)
// the last sibling is still waiting to be retrieved via next()
return true;
// Prefetch the next sibling object to make sure it isn't the
// same as the original source object or a sibling we've already seen.
do
{
sibling = advance();
} while ((sibling != null) && prevobjs.contains(sibling));
if (sibling == null)
return false;
else
{
ready_for_fetch = true;
prevobjs.add(sibling);
return true;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean hasPrevious()\n {\n if(left == null)\n {\n return false;\n }\n else\n {\n return true;\n }\n }",
"public boolean hasMore(){\r\n return curr != null;\r\n }",
"public boolean hasP... | [
"0.6711912",
"0.64158875",
"0.61854804",
"0.6138459",
"0.60715425",
"0.6031415",
"0.6018629",
"0.59951997",
"0.5994811",
"0.5985154",
"0.5965915",
"0.59652454",
"0.59467876",
"0.59321916",
"0.5917681",
"0.59037197",
"0.58771944",
"0.5850256",
"0.58500504",
"0.5795182",
"0.578... | 0.69639707 | 0 |
Get the next sibling BSCObject from this iterator. | public BSCObject next()
{
if (ready_for_fetch)
{
// the next sibling is waiting to be returned, so just return it
ready_for_fetch = false;
return sibling;
}
else if (hasNext())
{
// make sure there is a next sibling; if so, return it
ready_for_fetch = false;
return sibling;
}
else
throw new NoSuchElementException();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"HNode getNextSibling();",
"@Override\r\n\t\tpublic Node getNextSibling()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}",
"@Override\n\tpublic Node getNextSibling() {\n\t\treturn null;\n\t}",
"public Object next()\n {\n if(!hasNext())\n {\n throw new NoSuchElementExce... | [
"0.6948655",
"0.67599636",
"0.6677015",
"0.6649028",
"0.65547264",
"0.6536252",
"0.6522368",
"0.6451364",
"0.6430473",
"0.64301294",
"0.64205056",
"0.6383018",
"0.63815165",
"0.6380677",
"0.6380144",
"0.6372024",
"0.63629645",
"0.63454175",
"0.6322962",
"0.6303349",
"0.629882... | 0.804942 | 0 |
The traversal depth relative to the starting object. Always 0 for BSCObjSiblingsIter. | @Override
public int getDepth() {
return 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getDepth()\n {\n return traversalStack.size();\n }",
"public int depth() {\r\n\t\treturn this.depth;\r\n\t}",
"public int depth() {\n return parts.length - (isIndex() ? 0 : 1);\n }",
"public int depth ();",
"public int getDepth();",
"public int getDepth() {\n return... | [
"0.74299127",
"0.71411073",
"0.7102077",
"0.7097165",
"0.7086015",
"0.70786107",
"0.70661235",
"0.70391685",
"0.702837",
"0.70257115",
"0.70250684",
"0.7011346",
"0.6977555",
"0.6965139",
"0.69284385",
"0.69250995",
"0.6801667",
"0.6801175",
"0.6801175",
"0.6743657",
"0.67176... | 0.6281421 | 39 |
TODO(patcoleman): Consider overriding handleBackspaceAfterNode so that buttons are harder to delete. | @Override
public boolean handleClick(ContentElement element, EditorEvent event) {
ContentNode last = element.getLastChild();
ContentNode events = (last != null && ContentEvents.isContentEvents(last)) ?
last : null;
if (events != null && NodeEventRouter.INSTANCE.handleClick(events, event)) {
return true;
} else {
return false;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean handleBackspaceAfterNode(ContentElement element, EditorEvent event) {\n return true;\n }",
"@Override\r\n\t\t\tpublic void onBackspace() {\n\t\t\t\tEmojiKeyboard.backspace(mEditEmojicon);\r\n\t\t\t}",
"public void backSpace(){\n if(currentText != null) {\n ... | [
"0.85543597",
"0.712575",
"0.6395315",
"0.63719296",
"0.6281144",
"0.5812479",
"0.57699025",
"0.56657195",
"0.5633909",
"0.56091887",
"0.5495115",
"0.54698944",
"0.5419592",
"0.5350983",
"0.53023964",
"0.529071",
"0.5284202",
"0.5251785",
"0.52340865",
"0.5231645",
"0.523063"... | 0.0 | -1 |
Registers subclass with ContentElement | public static void register(
final ElementHandlerRegistry registry) {
registry.registerEventHandler(TAGNAME, NODE_EVENT_HANDLER);
registry.registerRenderingMutationHandler(TAGNAME, RENDERING_MUTATION_HANDLER);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract void registerSuperTypes();",
"protected abstract Component addContent();",
"@SuppressWarnings(\"unchecked\")\n public void register()\n {\n this.phpProcessor.registerProcessorExtension(this);\n \n // Register the node type if specified\n if (this.nodeType != nul... | [
"0.65712696",
"0.6022996",
"0.59465665",
"0.5889638",
"0.5639392",
"0.5513835",
"0.5510819",
"0.54754823",
"0.54510844",
"0.54094666",
"0.5333603",
"0.53330976",
"0.52777505",
"0.52773505",
"0.51891565",
"0.5182569",
"0.51648813",
"0.51497585",
"0.51486903",
"0.5147938",
"0.5... | 0.0 | -1 |
Admin admin = (Admin) session.getAttribute("admin"); String type = admin.getType(); List participants = participantService.getAvailable(type); List children = participantService.getAvailableChildren(type); model.addAttribute("participants", participants); model.addAttribute("children", children); | @GetMapping("/room")
public String room(Model model) {
return "room";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@RequestMapping(value=\"/admin/resource/type/list\")\n\tpublic String teacherResouType(Model model,HttpSession session){\n\t\tlogger.info(\"#### Into TeacherResouType ####\");\n\t\tUserInfo userInfo = (UserInfo) session.getAttribute(GlobalDefs.SESSION_USER_INFO);\n\t\tList<ResourceType> list = resourceTypeService.... | [
"0.61091727",
"0.59269994",
"0.58832306",
"0.5867021",
"0.58446383",
"0.5700944",
"0.56996876",
"0.5688669",
"0.5633831",
"0.56302935",
"0.55994016",
"0.5500913",
"0.5484506",
"0.54822975",
"0.5466245",
"0.5460351",
"0.54432863",
"0.5438789",
"0.5433036",
"0.54264635",
"0.541... | 0.0 | -1 |
methods creates a random angle for the blue enemy to travel | public double calculateDegToAttack() {
double randX = Math.random() * (MAX_X - MIN_X + 1) + MIN_X;
double tempX = randX - this.getX();
double tempY = this.getY() - Y_HEIGHT;
double degRads = 0;
double deg = 0;
System.out.println("x: " + tempX + " y: " + tempY);
if(tempX<0) {
tempX*=-1;
degRads = Math.atan(tempY/tempX);
deg = Math.toDegrees(degRads);
deg = deg + ((90-deg)*2);
}else {
degRads = Math.atan(tempY/tempX);
deg = Math.toDegrees(degRads);
}
if(deg < 0) {
deg+=360;
}
System.out.println("degs: " + deg);
spaceToAttack = new space(randX, Y_HEIGHT);
return deg;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void randomWalk(){\r\n int newAngle = (int) ( (double) Math.random() * 360) ;\r\n\r\n super.xVelocity = (velocity * Math.cos(newAngle * Math.PI/180));\r\n super.yVelocity = (velocity * Math.cos(newAngle * Math.PI/180));\r\n }",
"public Ant(){ // The position and direction of the an... | [
"0.71746075",
"0.69321305",
"0.68215847",
"0.66738456",
"0.66411245",
"0.6400669",
"0.6270968",
"0.6250932",
"0.62102175",
"0.61867553",
"0.6178593",
"0.6175537",
"0.61748785",
"0.61491364",
"0.61453813",
"0.607289",
"0.60727316",
"0.6039768",
"0.603301",
"0.60169303",
"0.601... | 0.6006619 | 22 |
calculates the degrees for the blue enemy to return after attacking | public double calculateDegToRetreat() {
double newDeg = (degToAttack + 180) % 360;
System.out.println(newDeg);
return newDeg;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double calculateDegToAttack() {\r\n\t\tdouble randX = Math.random() * (MAX_X - MIN_X + 1) + MIN_X;\r\n\t\tdouble tempX = randX - this.getX();\r\n\t\tdouble tempY = this.getY() - Y_HEIGHT;\r\n\t\tdouble degRads = 0;\r\n\t\tdouble deg = 0;\r\n\t\tSystem.out.println(\"x: \" + tempX + \" y: \" + tempY);\r\n\t\t... | [
"0.7343426",
"0.6872261",
"0.67195135",
"0.6691319",
"0.66618514",
"0.65130734",
"0.6382717",
"0.63728476",
"0.6243245",
"0.6153982",
"0.61008763",
"0.6082003",
"0.60638154",
"0.59489036",
"0.59091735",
"0.5881386",
"0.5867575",
"0.5841",
"0.58152115",
"0.58152115",
"0.578664... | 0.7677134 | 0 |
Act do whatever the Player wants to do. This method is called whenever the 'Act' or 'Run' button gets pressed in the environment. | public void act()
{
if ( Greenfoot.isKeyDown( "left" ) )
{
turn( -5 );
}
else if ( Greenfoot.isKeyDown( "right" ) )
{
turn( 5 );
}
if ( Greenfoot.isKeyDown("up") )
{
move(10);
}
else if ( Greenfoot.isKeyDown( "down") )
{
move(-10);
}
if ( IsCollidingWithGoal() )
{
getWorld().showText( "You win!", 300, 200 );
Greenfoot.stop();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void act() \r\n {\r\n key();\r\n win();\r\n fall();\r\n lunch();\r\n }",
"public void act()\n {\n // handle key events\n String key = Greenfoot.getKey();\n if (key != null)\n {\n handleKeyPress(key);\n } \n\n /... | [
"0.7561136",
"0.75076497",
"0.7214579",
"0.7203288",
"0.71564025",
"0.7134227",
"0.70807356",
"0.70440257",
"0.7040749",
"0.6950049",
"0.6871623",
"0.6869331",
"0.68456817",
"0.6828558",
"0.6815012",
"0.6794134",
"0.677739",
"0.6772303",
"0.6761021",
"0.67425936",
"0.6726876"... | 0.7073666 | 7 |
Loads an existing context by URI using the specified data manager. The returned context will have meta information available (whenever attached). The method is nullsafe: in case the contextURI is null, a dummy context with URI SYSTEM_NAMESPACE:EmptyContext is returned. | public static Context loadContextByURI(URI contextURI, ReadDataManager dm)
{
if (contextURI == null)
return new Context(ContextType.EMPTY, null, null, null, null, null, null, null, null);
if (contextURI.equals(Vocabulary.SYSTEM_CONTEXT.METACONTEXT))
return new Context(ContextType.METACONTEXT, null, null, null, null, null, null, null, null);
else if (contextURI.equals(Vocabulary.SYSTEM_CONTEXT.VOIDCONTEXT))
return new Context(ContextType.VOID, null, null, null, null, null, null, null, null);
else
{
// remaining information is encoded in the DB, load it
try
{
RepositoryResult<Statement> stmts =
dm.getStatements(contextURI, null, null, false, Vocabulary.SYSTEM_CONTEXT.METACONTEXT);
ContextLabel label = null;
ContextState state = null;
ContextType type = null;
URI group = null;
URI source = null;
Long timestamp = null;
Boolean isEditable = null;
URI inputParameter = null;
// collect values: best-effort, load whatever is available in the DB
for(Statement s : stmts.asList())
{
if (s.getPredicate().equals(RDFS.LABEL))
label = stringToContextLabel(s.getObject().stringValue());
else if (s.getPredicate().equals(Vocabulary.SYSTEM_CONTEXT.CONTEXTSTATE))
state = stringToContextState(s.getObject().stringValue());
else if (s.getPredicate().equals(Vocabulary.SYSTEM_CONTEXT.CONTEXTTYPE))
type = stringToContextType(s.getObject().stringValue());
else if (s.getPredicate().equals(Vocabulary.SYSTEM_CONTEXT.CONTEXTGROUP))
{
Value groupVal = s.getObject();
if (groupVal instanceof URI)
group = (URI)groupVal;
}
else if (s.getPredicate().equals(Vocabulary.SYSTEM_CONTEXT.CONTEXTSRC))
{
Value sourceVal = s.getObject();
if (sourceVal instanceof URI)
source = (URI)sourceVal;
}
else if (s.getPredicate().equals(Vocabulary.DC.DATE))
{
String dateString = s.getObject().stringValue();
Date date = ReadWriteDataManagerImpl.ISOliteralToDate(dateString);
// for backward compatibility: We used to record the timestamp in different (inconsistent formats)
timestamp = date!=null ? date.getTime() : 0L;
}
else if (s.getPredicate().equals(Vocabulary.SYSTEM_CONTEXT.ISEDITABLE) )
isEditable = s.getObject().equals(Vocabulary.TRUE);
else if (s.getPredicate().equals(Vocabulary.SYSTEM_CONTEXT.INPUTPARAMETER))
inputParameter = ValueFactoryImpl.getInstance().createURI(s.getObject().stringValue());
}
stmts.close();
return new Context(type, contextURI, state, source, group, inputParameter, isEditable, timestamp, label);
}
catch (Exception e)
{
logger.error(e.getMessage(), e);
throw new RuntimeException(e);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static MetadataContext get() {\n if (null == METADATA_CONTEXT.get()) {\n MetadataContext metadataContext = new MetadataContext();\n if (metadataLocalProperties == null) {\n metadataLocalProperties = (MetadataLocalProperties) ApplicationContextAwareUtils\n ... | [
"0.5321227",
"0.47061756",
"0.46778035",
"0.46218377",
"0.45787743",
"0.45118",
"0.45000145",
"0.44289768",
"0.44289768",
"0.44019476",
"0.43419245",
"0.43314117",
"0.43249008",
"0.42799556",
"0.42574438",
"0.4257206",
"0.4254957",
"0.42329404",
"0.418864",
"0.41349682",
"0.4... | 0.7007785 | 0 |
Generates a fresh context with the given label for the current user and time. | public static Context getFreshUserContext( ContextLabel contextLabel )
{
return getFreshUserContextWithURI(null, contextLabel);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Context getFreshUserContextWithURI(URI contextUri, ContextLabel contextLabel ) \n\t{\t\t\t\n\t\tlong timestamp = getContextTimestampSafe();\n\t\tURI source = EndpointImpl.api().getUserURI();\n\t\t\t\n\t\tif (contextUri==null)\n\t\t\tcontextUri = getGeneratedContextURI(source, timestamp, ContextType.... | [
"0.5145581",
"0.5057891",
"0.4875314",
"0.48662937",
"0.48053807",
"0.48053807",
"0.47685954",
"0.47605073",
"0.47454387",
"0.47286093",
"0.46356317",
"0.46326777",
"0.4615049",
"0.45575735",
"0.45448637",
"0.45434883",
"0.4539393",
"0.44869247",
"0.44715175",
"0.44618493",
"... | 0.6161684 | 0 |
Get a new context for contextUri in the user context space. The state is initialized with PUBLISHED by default (and with DRAFT in editorial workflow mode). If the contextUri is null, this call is identical to method getFreshUserContext(ContextLabel), i.e. a context URI will be generated. | public static Context getFreshUserContextWithURI(URI contextUri, ContextLabel contextLabel )
{
long timestamp = getContextTimestampSafe();
URI source = EndpointImpl.api().getUserURI();
if (contextUri==null)
contextUri = getGeneratedContextURI(source, timestamp, ContextType.USER);
return new Context(ContextType.USER, contextUri,
getDefaultContextState(ContextType.USER),
source, null, null, true, timestamp, contextLabel );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Context getFreshUserContext( ContextLabel contextLabel )\n\t{\n\t\treturn getFreshUserContextWithURI(null, contextLabel);\n\t}",
"public UserContext getUserContext();",
"protected SearchState getSearchStateFromUserContext() {\n \tSearchState searchState = null;\n \tif (UserContextService.is... | [
"0.66390043",
"0.553099",
"0.5375101",
"0.52422345",
"0.5169765",
"0.5169765",
"0.50796616",
"0.5074842",
"0.5058859",
"0.5050978",
"0.50052047",
"0.49437997",
"0.49018103",
"0.481718",
"0.47861558",
"0.4781185",
"0.47493356",
"0.47490317",
"0.47361627",
"0.46799982",
"0.4670... | 0.69421315 | 0 |
Generates a context for the communication service. If the passed timestamp is null, a new context will be created; if the timestamp is passed and a communication service context with the specified parameters (i.e., source and group) already exists, the existing context is retrieved (yet the associated metadata is not loaded). | public static Context getCommunicationServiceContext(URI source, URI group, Long _timestamp)
{
long timestamp = _timestamp==null ? getContextTimestampSafe() : _timestamp;
try
{
return new Context(ContextType.COMMUNICATIONSERVICE,
getGeneratedContextURI(source, timestamp, ContextType.COMMUNICATIONSERVICE),
getDefaultContextState(ContextType.COMMUNICATIONSERVICE), source, group, null, false,
timestamp, ContextLabel.AUTOMATIC_SYNCHRONISATION);
}
catch ( Exception e )
{
throw new RuntimeException( "CommunicationService context could not retrieved", e );
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Context createContext();",
"Context createContext();",
"private void collectContextDataCreatContextSituation()\n\t\t\tthrows NumberFormatException, InterruptedException {\n\n\t\twhile (isTransmissionStarted) {\n\t\t\tVector<ContextElement> contextElements = new Vector<>();\n\n\t\t\tm_CASMediator = getCASMediat... | [
"0.542462",
"0.542462",
"0.5156496",
"0.5113012",
"0.5056922",
"0.49309564",
"0.48860672",
"0.4810736",
"0.47612336",
"0.47347063",
"0.47077453",
"0.46924606",
"0.46448785",
"0.46362302",
"0.46208233",
"0.4601408",
"0.4601028",
"0.45811278",
"0.45620558",
"0.45620558",
"0.454... | 0.7214369 | 0 |
Sets the current context state | public void setState(Context.ContextState state)
{
this.state = state;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setStateContext(State s);",
"@Override\r\n\tpublic void setContext(Context context) {\r\n\t\tthis.context = context;\r\n\t}",
"void setContext(Context context) {\n\t\tthis.context = context;\n\t}",
"public void setContext(Context _context) {\n context = _context;\n }",
"@Override\n\tp... | [
"0.7439135",
"0.71658236",
"0.68650603",
"0.67529285",
"0.67113894",
"0.66310734",
"0.66194683",
"0.65703547",
"0.6565513",
"0.65614164",
"0.6531748",
"0.6521368",
"0.64842385",
"0.64023566",
"0.63885003",
"0.63439864",
"0.6244079",
"0.62406355",
"0.6198654",
"0.6184064",
"0.... | 0.742112 | 1 |
Retrieve the actual editable property of this instance. Method is package private and can be used for instance in RDM | Boolean getIsEditable() {
return isEditable;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final SimpleBooleanProperty editableProperty() {\n return this.editable;\n }",
"public final boolean getEditable() {\n return this.editableProperty().getValue();\n }",
"public final BooleanProperty editableProperty() {\n\n return this.getWrappedControl().editableProperty();\n ... | [
"0.8174808",
"0.797559",
"0.79053617",
"0.7107611",
"0.70037246",
"0.69291395",
"0.6904354",
"0.68903166",
"0.6887089",
"0.6761811",
"0.67617095",
"0.67511773",
"0.67511773",
"0.6727647",
"0.66810924",
"0.667227",
"0.6670334",
"0.66436774",
"0.65916044",
"0.65549964",
"0.6542... | 0.749137 | 3 |
Set context editable. The method does not persist this information in the DB. | public void setEditable(boolean editable)
{
isEditable = editable;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setEditable(boolean editable)\n\t{ this.editable = editable; }",
"@Override\n\t\tpublic void setEditable(boolean isEditable) {\n\n\t\t}",
"public void setEditable(boolean editable)\n {\n this.editable = editable;\n }",
"public abstract void setEnabled(Context context, boolean enabled... | [
"0.61719906",
"0.61016095",
"0.60766226",
"0.5979251",
"0.5934536",
"0.59178364",
"0.5794056",
"0.5794056",
"0.5793619",
"0.5779002",
"0.576703",
"0.5765157",
"0.57346004",
"0.57016325",
"0.569566",
"0.5681507",
"0.56656253",
"0.56318116",
"0.5629969",
"0.5585167",
"0.558296"... | 0.59370965 | 4 |
Converts the context meta information into a humanreadable tooltip (e.g. for display in a table or list). | public String tooltip()
{
if (contextURI==null)
return "(no context specified)";
if (contextURI.equals(Vocabulary.SYSTEM_CONTEXT.METACONTEXT))
return "MetaContext (stores data about contexts)";
if(contextURI.equals(Vocabulary.SYSTEM_CONTEXT.VOIDCONTEXT))
return "VoID Context (stores statistics about contexts)";
if (type!=null && timestamp!=null)
{
GregorianCalendar c = new GregorianCalendar();
c.setTimeInMillis(timestamp);
String date = ReadWriteDataManagerImpl.dateToISOliteral(c.getTime());
if (!StringUtil.isNullOrEmpty(date))
date = ValueResolver.resolveSysDate(date);
String ret = "Created by " + type;
if (type.equals(ContextType.USER))
ret += " '"
+ source.getLocalName()
+ "'";
else
{
String displaySource = null;
if(source!=null)
{
displaySource = EndpointImpl.api().getNamespaceService().getAbbreviatedURI(source);
if (StringUtil.isNullOrEmpty(displaySource))
displaySource = source.stringValue(); // fallback solution: full URI
}
String displayGroup = null;
if (group!=null)
{
displayGroup = EndpointImpl.api().getNamespaceService().getAbbreviatedURI(group);
if (StringUtil.isNullOrEmpty(displayGroup))
displayGroup = group.stringValue(); // fallback solution: full URI
}
ret += " (";
ret += source==null ? "" : "source='" + displaySource + "'";
ret += source!=null && group!=null ? "/" : "";
ret += group==null ? "" : "group='" + displayGroup + "'";
ret += ")";
}
ret += " on " + date;
if (label!=null)
ret += " (" + label.toString() + ")";
if (state!=null && !state.equals(ContextState.PUBLISHED))
ret += " (" + state + ")";
return ret;
}
else
return contextURI.stringValue();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic String toString() {\n\t\treturn \"# \" + title + \" :\\n\" + context ;\n\t}",
"public abstract String getToolTip();",
"protected String getToolTip( MouseEvent event )\n {\n SmartText descr = new SmartText();\n int column = treeTable.columnAtPoint( event.getPoint() );\n ... | [
"0.6150446",
"0.6103016",
"0.60594505",
"0.5977424",
"0.5958895",
"0.5877117",
"0.58668154",
"0.58498764",
"0.58296275",
"0.5762426",
"0.57491696",
"0.57418394",
"0.5704872",
"0.56927156",
"0.5686621",
"0.5681923",
"0.5672458",
"0.5615276",
"0.55931795",
"0.5578921",
"0.55684... | 0.75171703 | 0 |
compares according to timestamp, required for ordering of changes | @Override
public int compareTo(Object o)
{
if(o instanceof Context)
{
if (timestamp==null || ((Context) o).timestamp==null)
return 0;
return timestamp.compareTo(((Context) o).timestamp);
}
return 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static boolean isInOrderTimestamp(\n long timestamp,\n long prevTimestamp)\n {\n long timestampDiff = timestamp - prevTimestamp;\n\n // Assume that a diff this big must be due to reordering. Don't update\n // with reordered samples.\n return (timestampDi... | [
"0.71380496",
"0.65993375",
"0.6527842",
"0.6328482",
"0.6285319",
"0.62248194",
"0.6187144",
"0.6120214",
"0.6094502",
"0.609025",
"0.60779226",
"0.60779226",
"0.6014385",
"0.587025",
"0.5835362",
"0.58291113",
"0.58285606",
"0.5791916",
"0.57731575",
"0.5760447",
"0.5737814... | 0.5913737 | 13 |
Context URIs are unique identifiers | @Override
public boolean equals(Object o)
{
if(o instanceof Context)
{
return contextURI.equals(((Context) o).contextURI);
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getContextId();",
"public java.lang.CharSequence getContextId() {\n return contextId;\n }",
"public java.lang.CharSequence getContextId() {\n return contextId;\n }",
"public String getContextIdentifier(HttpServletRequest httpServletRequest) {\n return null;\n }",
"public String... | [
"0.724885",
"0.6422958",
"0.64159286",
"0.6391779",
"0.62694275",
"0.62587243",
"0.6206301",
"0.6149544",
"0.61240464",
"0.61157864",
"0.6029177",
"0.6015953",
"0.60027504",
"0.5927815",
"0.5907201",
"0.5907201",
"0.5907201",
"0.59015805",
"0.59015805",
"0.5771664",
"0.577166... | 0.5701702 | 24 |
Persists the context's meta information. For normal operations (such as adding/removing triples, this is internally called by the data manager. However, if you manipulate the context's state directly, you need to call this function in order to assert that the context meta information is persisted in the database. | public void persistContextMetaInformation(ReadWriteDataManager dm)
{
// for transaction reasons, this is implemented inside the data manager directly:
dm.persistContextMetaInformation(this);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void context_save(long context) {\n context_save(nativeHandle, context);\n }",
"void saveContext();",
"public void persist() {\n getBuildContextHolder().persist();\n }",
"@Override\r\n\t\t\tprotected void saveContext() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n public void persist() {\n ... | [
"0.6277045",
"0.62433326",
"0.6242833",
"0.60761964",
"0.5596094",
"0.5585529",
"0.5558606",
"0.5543827",
"0.54858285",
"0.54666233",
"0.5437908",
"0.5437394",
"0.5434804",
"0.5330073",
"0.53279656",
"0.5319587",
"0.5310856",
"0.52853477",
"0.5251719",
"0.5240387",
"0.5239565... | 0.6789481 | 0 |
Initializes a (noneditable) system context. | private void initializeSystemContext(ContextType ctxType, URI contextUri)
{
this.type=ctxType;
// not in use for system contexts
this.source=null;
this.group=null;
this.timestamp=null;
this.inputParameter=null;
this.label=null;
this.isEditable=false;
this.contextURI = contextUri;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initContext() {\n contextId = System.getProperty(CONFIG_KEY_CERES_CONTEXT, DEFAULT_CERES_CONTEXT);\n\n // Initialize application specific configuration keys\n homeDirKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_HOME);\n debugKey = String.format(\"%s.%s\", contextId,... | [
"0.7049657",
"0.6750262",
"0.6715",
"0.65558726",
"0.64201313",
"0.6387747",
"0.6312663",
"0.6307962",
"0.6234001",
"0.62313306",
"0.6221861",
"0.6200831",
"0.6190326",
"0.6141915",
"0.6127888",
"0.6119636",
"0.61154276",
"0.6083423",
"0.6056619",
"0.6048453",
"0.6045427",
... | 0.738828 | 0 |
Converts a context source string back to the context src enum element. | private static ContextType stringToContextType(String s)
{
for (ContextType enumVal : ContextType.values())
{
if (enumVal.toString().equals(s))
return enumVal;
}
// in case of failure:
return ContextType.UNKNOWN;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static String convertTag(final String src) {\n final String s = TAG_NAMES.get(src);\n return s != null ? s : src;\n }",
"java.lang.String getSource();",
"java.lang.String getSource();",
"public void setSource(edu.umich.icpsr.ddi.FileTxtType.Source.Enum source)\n {\n synchronized (mon... | [
"0.61789876",
"0.5778554",
"0.5778554",
"0.57565504",
"0.57360286",
"0.56568986",
"0.5528497",
"0.5467438",
"0.5464724",
"0.5373886",
"0.5372033",
"0.53645414",
"0.53505766",
"0.53346264",
"0.5307965",
"0.529321",
"0.5245376",
"0.5244878",
"0.51947343",
"0.51481646",
"0.51438... | 0.51141006 | 23 |
Converts a context state string back to the context state enum element. | private static ContextState stringToContextState(String s)
{
for (ContextState enumVal : ContextState.values())
{
if (enumVal.toString().equals(s))
return enumVal;
}
// in case of failure:
return ContextState.PUBLISHED;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static ContextLabel stringToContextLabel(String s)\n {\n \tfor (ContextLabel enumVal : ContextLabel.values())\n \t{\n \t\tif (enumVal.toString().equals(s))\n \t\t\treturn enumVal;\n \t}\n \t\n \t// in case of failure\n \treturn ContextLabel.UNKNOWN;\n }",
"java.lang.String g... | [
"0.6350985",
"0.621536",
"0.6128827",
"0.6109435",
"0.590519",
"0.590519",
"0.590519",
"0.5769809",
"0.55665535",
"0.554126",
"0.55110663",
"0.5504945",
"0.54997885",
"0.54959106",
"0.5463542",
"0.546316",
"0.54584616",
"0.5436132",
"0.5436023",
"0.5429298",
"0.5429298",
"0... | 0.737016 | 0 |
Converts a string to a context label. | private static ContextLabel stringToContextLabel(String s)
{
for (ContextLabel enumVal : ContextLabel.values())
{
if (enumVal.toString().equals(s))
return enumVal;
}
// in case of failure
return ContextLabel.UNKNOWN;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getLabel(String s) {\n\t\ts = s.toUpperCase();\n\t\tString label = getRawLabelString(s);\n\t\tif (label != null) {\n\t\t\tif ((label.contains(\" \")) || (label.contains(\"\\t\")) || (label.contains(\"'\"))) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tint labeltype = getOperandType(label);\n\t\t\t//if (co... | [
"0.5644615",
"0.55773574",
"0.54307497",
"0.53798056",
"0.53712636",
"0.52640736",
"0.5263789",
"0.52606356",
"0.52593994",
"0.52470773",
"0.52470773",
"0.52449036",
"0.52082944",
"0.5196085",
"0.517982",
"0.5123495",
"0.5116532",
"0.5116078",
"0.51076794",
"0.5104619",
"0.50... | 0.7465493 | 0 |
Returns a unique timestamp considering the last stored timestamp. If the current timestamp is equal to the last one, one millisecond is added. The last step is repeated until a distinct timestamp is found. | protected static long getContextTimestampSafe()
{
long timestamp = System.currentTimeMillis();
boolean repeat = true;
while (repeat)
{
long lastUsed = lastTimestampUsed.get();
if (timestamp>lastUsed) {
repeat = !lastTimestampUsed.compareAndSet(lastUsed, timestamp);
} else {
timestamp = lastUsed+1;
}
}
return timestamp;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private long increment() {\n\t\tlong ts = latestTimestamp.incrementAndGet();\n\t\treturn ts;\n\t}",
"public String getUniqTime(){\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(Calendar.getInstance().getTime());\n return timeStamp;\n }",
"public static long next() {\n ... | [
"0.67635125",
"0.6253616",
"0.61026114",
"0.5961907",
"0.59343225",
"0.5932126",
"0.5772221",
"0.57070696",
"0.5635561",
"0.5621765",
"0.55707467",
"0.5555958",
"0.5515787",
"0.5511941",
"0.5510502",
"0.55002993",
"0.5497595",
"0.5489712",
"0.5453847",
"0.5450591",
"0.5450404... | 0.5460585 | 18 |
TODO cruise into another island, generating money for both island regarding of the biodiversity on this island. Can damage the biodiversity | @Override
public void useActive(Archipelago myArchipelago) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void BScreate() {\n\n\t\tint sum=0;//全枝数のカウント\n\t\tfor(int i=0;i<banknode;i++) sum+=Bank.get(i).deg;\n\n\t\t//e,d,nの決定\n\t\tif(NW==\"BA\"){\n\t\tfor(int i=0;i<banknode;i++) {\n\t\t\tBank.get(i).totalassets=E*((double)Bank.get(i).deg/(double)sum);\n\t\t\tBank.get(i).n=Bank.get(i).totalassets*Bank.get(i).CAR... | [
"0.5874568",
"0.5698337",
"0.56142515",
"0.5580538",
"0.5577342",
"0.5561367",
"0.55229205",
"0.54177785",
"0.5417561",
"0.5404148",
"0.5403364",
"0.53895694",
"0.5388047",
"0.5362883",
"0.5349195",
"0.53292686",
"0.5315022",
"0.5297524",
"0.52963895",
"0.5287948",
"0.5281109... | 0.0 | -1 |
TODO can evolve into biotourism or massivetourism | @Override
public void evolve(Island myIsland) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int steamPerDurability();",
"private void runBest() {\n }",
"private void optimiseEVProfile()\n\t{\n\t}",
"private void nourrireLePeuple() {\n\t\t\tint totalDepense = (int)((population * 1) + (populationColoniale * 0.8) + ((armee + armeeDeployee()) * nourritureParArmee));\r\n\t\t\tnourriture -= totalDepen... | [
"0.5486338",
"0.523106",
"0.51373065",
"0.5134362",
"0.5121001",
"0.5120414",
"0.51045775",
"0.50932825",
"0.50922436",
"0.50632125",
"0.5055785",
"0.5049199",
"0.5040579",
"0.5030339",
"0.50271225",
"0.5019741",
"0.5017845",
"0.50159156",
"0.5011909",
"0.50001156",
"0.496704... | 0.0 | -1 |
Do nothing for now, MarkLogic indexes content | public void addNode (NodeState node) throws RepositoryException, IOException
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void index(IDocument document, IIndexerOutput output) throws java.io.IOException;",
"public void index(List<Entity> entities) {\n\t\t\n\t}",
"LuceneMemoryIndex createLuceneMemoryIndex();",
"@Override\n public void reindexImpl()\n {\n List<StoreRef> storeRefs = nodeService.getStores();\n i... | [
"0.64354753",
"0.62434554",
"0.61882335",
"0.6187969",
"0.6073863",
"0.6073863",
"0.60702884",
"0.6070067",
"0.60517555",
"0.60506546",
"0.60473615",
"0.6041839",
"0.6026254",
"0.60171074",
"0.5990171",
"0.5988812",
"0.5966856",
"0.59592086",
"0.5945307",
"0.5934672",
"0.5903... | 0.0 | -1 |
Do nothing for now, MarkLogic indexes content | public void deleteNode (NodeId id) throws IOException
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void index(IDocument document, IIndexerOutput output) throws java.io.IOException;",
"public void index(List<Entity> entities) {\n\t\t\n\t}",
"LuceneMemoryIndex createLuceneMemoryIndex();",
"@Override\n public void reindexImpl()\n {\n List<StoreRef> storeRefs = nodeService.getStores();\n i... | [
"0.64354753",
"0.62434554",
"0.61882335",
"0.6187969",
"0.6073863",
"0.6073863",
"0.60702884",
"0.6070067",
"0.60517555",
"0.60506546",
"0.60473615",
"0.6041839",
"0.6026254",
"0.60171074",
"0.5990171",
"0.5988812",
"0.5966856",
"0.59592086",
"0.5945307",
"0.5934672",
"0.5903... | 0.0 | -1 |
Created by ccavusoglu on 23.06.2016. | public interface DietView extends MvpView {
void showDiet(Diet diet);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"public fina... | [
"0.6039132",
"0.5919425",
"0.58356893",
"0.57448405",
"0.57448405",
"0.5743661",
"0.56722695",
"0.5627965",
"0.56211025",
"0.5620127",
"0.5615706",
"0.5600935",
"0.56007993",
"0.5597462",
"0.55868626",
"0.5567748",
"0.55470955",
"0.5545461",
"0.5542",
"0.5530306",
"0.5530306"... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onClick(View v) {
Intent intent = new Intent();
intent.setClass(DataStoredActivity.this, SharePersActivity.class);
startActivity(intent);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onClick(View v) {
Intent intent = new Intent();
intent.setClass(DataStoredActivity.this, FileStoredActivity.class);
startActivity(intent);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onClick(View v) {
Intent intent = new Intent();
intent.setClass(DataStoredActivity.this, FileSdCardActivity.class);
startActivity(intent);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onClick(View v) {
Intent intent = new Intent();
intent.setClass(DataStoredActivity.this, SqliteActivity.class);
startActivity(intent);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onClick(View v) {
Intent intent = new Intent();
intent.setClass(DataStoredActivity.this, ContenProActivity.class);
startActivity(intent);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onClick(View v) {
Intent intent = new Intent();
intent.setClass(DataStoredActivity.this, DataHttpActivity.class);
startActivity(intent);
} | {
"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 |
Inflate the menu; this adds items to the action bar if it is present. | @Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.data_stored, menu);
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {... | [
"0.7246102",
"0.7201358",
"0.7194834",
"0.7176498",
"0.71066517",
"0.7039537",
"0.7037961",
"0.70112145",
"0.70094734",
"0.69807225",
"0.6944953",
"0.69389373",
"0.6933199",
"0.6916928",
"0.6916928",
"0.6891486",
"0.68831646",
"0.68754137",
"0.68745375",
"0.68621665",
"0.6862... | 0.0 | -1 |
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml. | @Override
public boolean onOptionsItemSelected(MenuItem item) {
int id = item.getItemId();
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ... | [
"0.79041183",
"0.7805934",
"0.77659106",
"0.7727251",
"0.7631684",
"0.7621701",
"0.75839096",
"0.75300384",
"0.74873656",
"0.7458051",
"0.7458051",
"0.7438486",
"0.742157",
"0.7403794",
"0.7391802",
"0.73870087",
"0.7379108",
"0.7370295",
"0.7362194",
"0.7355759",
"0.73454577... | 0.0 | -1 |
Get the WebApp context we want to work with | public static String getContext(HttpServletRequest request) {
String context = request.getParameter(CONTEXT_KEY);
if (context == null && Server.getInstance().getAllKnownInternalContexts().size() == 1) {
context = (String) Server.getInstance().getAllKnownInternalContexts().toArray()[0];//req.getContextPath();
}
// If no or invalid context, display a list of available WebApps
if (context == null || Server.getInstance().getApplication(context) == null) {
return null;
} else {
return context;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static WebContext getInstance() {\n return webContext;\n }",
"public static Context getContext(){\n return appContext;\n }",
"ApplicationContext getAppCtx();",
"public static Context getAppContext() {\n return _BaseApplication.context;\n }",
"public ServletContext getCo... | [
"0.7910659",
"0.7766879",
"0.74202657",
"0.735761",
"0.73480266",
"0.72481567",
"0.71587044",
"0.70045614",
"0.69795",
"0.6928904",
"0.6923778",
"0.6923778",
"0.69008034",
"0.68771964",
"0.68577033",
"0.6828803",
"0.6727861",
"0.6716251",
"0.6705688",
"0.66971767",
"0.6693683... | 0.66008025 | 23 |
Convenience method to get the ServletContext associated with an internal context | protected ServletContext getServletContext(String context) {
return ((ApplicationInfo)Server.getInstance().getApplication(context).getApplicationInfo()).getServletContext();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ServletContext getContext() {\r\n\t\treturn new ContextWrapper(getEvent().getServletContext());\r\n\t}",
"public ServletContext getServletContext() {\n\t\treturn _context;\n\t}",
"public ServletContext getServletContext() {\n return this.context;\n }",
"public ServletContext getApplication()... | [
"0.7662559",
"0.7177601",
"0.7045584",
"0.6943949",
"0.6943376",
"0.69186234",
"0.6804607",
"0.6699431",
"0.6610732",
"0.64448744",
"0.644153",
"0.644153",
"0.6338586",
"0.6330983",
"0.63288975",
"0.6306642",
"0.6301448",
"0.62273324",
"0.62227494",
"0.6213034",
"0.620092",
... | 0.7045984 | 2 |
Sucelje koje modelira metode iteratora nad kolekcijama iz paketa hr.fer.zemris.java.custom.collections | public interface ElementsGetter<T> {
/**
* Metoda provjerava ima li jos elemenata
* u kolekciji
* @return boolean true ako ima jos elemenata, false ako nema
*/
public boolean hasNextElement();
/**
* Metoda dohvaca iduci element kolekcije i vraca ga.
* @return Object koji je iduci element iz kolekcije
*/
public T getNextElement();
/**
* Nad svim preostalim elementima kolekcije poziva
* metodu procesora p process(Object value).
* @param p Procesor koji hocemo pozvati nad
* preostalim elementima kolekcije.
* @throws NullPointerException ako je procesor p null
*/
default void processRemaining(Processor<? super T> p) {
Objects.requireNonNull(p);
while(hasNextElement()) {
p.process(getNextElement());
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public Iterator<Map.Entry<K, V>> iterator() {\n return new SetIterator();\n }",
"@Override\r\n\tpublic Iterator<GIS_layer> iterator() {\n\t\treturn set.iterator();\r\n\t}",
"@Override public Iterator<MetaExample<L>> iterator();",
"private Iterator getEntries(){\r\n\t\tSet... | [
"0.623804",
"0.6209349",
"0.6206808",
"0.61140656",
"0.5990502",
"0.59857553",
"0.57764363",
"0.57637894",
"0.57607657",
"0.57510406",
"0.57328314",
"0.57150567",
"0.570693",
"0.56865346",
"0.56816983",
"0.5670253",
"0.56482553",
"0.564717",
"0.56361806",
"0.5612537",
"0.5611... | 0.0 | -1 |
Metoda provjerava ima li jos elemenata u kolekciji | public boolean hasNextElement(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void obrniListu() {\n if (prvi != null && prvi.veza != null) {\n Element preth = null;\n Element tek = prvi;\n \n while (tek != null) {\n Element sled = tek.veza;\n \n tek.veza = preth;\n preth = tek;\n tek = sled;\n }\n prvi = preth;\n ... | [
"0.70525986",
"0.64028275",
"0.628094",
"0.62132424",
"0.6210957",
"0.61898357",
"0.6131657",
"0.6118512",
"0.6073921",
"0.60551775",
"0.6053167",
"0.6045699",
"0.6045091",
"0.6016896",
"0.6006764",
"0.5984541",
"0.5923804",
"0.59112453",
"0.5871287",
"0.58489186",
"0.5754051... | 0.0 | -1 |
Metoda dohvaca iduci element kolekcije i vraca ga. | public T getNextElement(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getId()\r\n/* 53: */ {\r\n/* 54: 79 */ return this.idDetalleComponenteCosto;\r\n/* 55: */ }",
"public String getElementId();",
"public int getIden() {\n return iden;\n }",
"@Override\n\tpublic int getId() {\n\t\treturn _keHoachKiemDemNuoc.getId();\n\t}",
"public int ge... | [
"0.69046175",
"0.68089217",
"0.6671145",
"0.66355187",
"0.6612562",
"0.6455987",
"0.64328724",
"0.640365",
"0.63739175",
"0.6355093",
"0.6316714",
"0.63149637",
"0.6299926",
"0.6294322",
"0.62822264",
"0.62766135",
"0.626",
"0.6233317",
"0.62289995",
"0.621402",
"0.62089455",... | 0.0 | -1 |
Nad svim preostalim elementima kolekcije poziva metodu procesora p process(Object value). | default void processRemaining(Processor<? super T> p) {
Objects.requireNonNull(p);
while(hasNextElement()) {
p.process(getNextElement());
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void process(Object value) {}",
"public void process(Object value) {\n\t\t//empty\n\t}",
"public Object caseProcessElement(ProcessElement object) {\n\t\treturn null;\n\t}",
"@Override\r\n \tpublic void process() {\n \t\t\r\n \t}",
"public interface ValueProcessor {\n public void process(Object or... | [
"0.7581353",
"0.75429386",
"0.63299394",
"0.6136355",
"0.605297",
"0.5904673",
"0.58843464",
"0.5830139",
"0.57842165",
"0.5783841",
"0.5778165",
"0.57454205",
"0.5738115",
"0.57147014",
"0.57139057",
"0.5605797",
"0.5599594",
"0.5497583",
"0.5481822",
"0.54659516",
"0.544431... | 0.0 | -1 |
Creates new form Times | public Times() {
initComponents();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setTimeCreate(Date timeCreate) {\n this.timeCreate = timeCreate;\n }",
"private static void setupTimePicker(LoopView timeHours, LoopView timeMins, LoopView timeTime) {\n timeHours.setItemsVisibleCount(5);\n timeHours.setNotLoop();\n //timeMins.setItems(timeMinsList);\n ... | [
"0.6276896",
"0.58526474",
"0.5835241",
"0.5834118",
"0.5799181",
"0.5776271",
"0.5774322",
"0.5774322",
"0.5774322",
"0.5751003",
"0.57433736",
"0.57433736",
"0.57433736",
"0.57433736",
"0.57433736",
"0.57433736",
"0.57433736",
"0.57433736",
"0.5726464",
"0.57241714",
"0.571... | 0.6144349 | 1 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
buttonGroup1 = new javax.swing.ButtonGroup();
jPanel1 = new javax.swing.JPanel();
jLabel1 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
TextPalmeirasc = new javax.swing.JTextField();
TextPalmeirasf = new javax.swing.JTextField();
jLabel6 = new javax.swing.JLabel();
TextSPc = new javax.swing.JTextField();
jLabel7 = new javax.swing.JLabel();
TextSPf = new javax.swing.JTextField();
TextFlaf = new javax.swing.JTextField();
jLabel8 = new javax.swing.JLabel();
TextFlac = new javax.swing.JTextField();
jLabel9 = new javax.swing.JLabel();
TextGrec = new javax.swing.JTextField();
TextGref = new javax.swing.JTextField();
jLabel5 = new javax.swing.JLabel();
jButton1 = new javax.swing.JButton();
jLabel10 = new javax.swing.JLabel();
Tnomes = new javax.swing.JTextField();
setClosable(true);
jLabel1.setText("Palmeiras");
jLabel2.setText("Sao Paulo");
jLabel3.setText("Flamengo");
jLabel4.setText("Gremio");
TextPalmeirasc.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
TextPalmeirascActionPerformed(evt);
}
});
TextPalmeirasf.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
TextPalmeirasfActionPerformed(evt);
}
});
jLabel6.setText("x");
TextSPc.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
TextSPcActionPerformed(evt);
}
});
jLabel7.setText("x");
TextSPf.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
TextSPfActionPerformed(evt);
}
});
TextFlaf.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
TextFlafActionPerformed(evt);
}
});
jLabel8.setText("x");
TextFlac.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
TextFlacActionPerformed(evt);
}
});
jLabel9.setText("x");
TextGrec.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
TextGrecActionPerformed(evt);
}
});
TextGref.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
TextGrefActionPerformed(evt);
}
});
jLabel5.setFont(new java.awt.Font("Papyrus", 0, 18)); // NOI18N
jLabel5.setText("Times");
jLabel5.setToolTipText("");
jButton1.setText("adicionar");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
jLabel10.setText("Ano");
Tnomes.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
TnomesActionPerformed(evt);
}
});
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel10)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(Tnomes, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 35, Short.MAX_VALUE)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel5)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(78, 78, 78)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
.addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, 63, Short.MAX_VALUE)))
.addGap(11, 11, 11)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(TextGrec)
.addComponent(TextPalmeirasc, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 34, Short.MAX_VALUE)
.addComponent(TextSPc)
.addComponent(TextFlac))
.addGap(18, 18, 18)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addGroup(jPanel1Layout.createSequentialGroup()
.addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 8, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(TextPalmeirasf, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(jPanel1Layout.createSequentialGroup()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 8, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 8, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 8, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(TextSPf)
.addComponent(TextFlaf)
.addComponent(TextGref)))))
.addComponent(jButton1))
.addGap(79, 79, 79))
);
jPanel1Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {TextFlac, TextFlaf, TextGrec, TextGref, TextPalmeirasc, TextPalmeirasf, TextSPc, TextSPf});
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(14, 14, 14)
.addComponent(jLabel5)
.addGap(18, 18, 18)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(TextPalmeirasc, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(TextPalmeirasf, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel6))
.addGap(18, 18, 18)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel7)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(TextSPc, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(TextSPf, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGap(18, 18, 18)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(TextFlac, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel8)
.addComponent(TextFlaf, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel9)
.addComponent(TextGref, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(TextGrec, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 122, Short.MAX_VALUE)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel10)
.addComponent(Tnomes, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(27, 27, 27))
);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addContainerGap())
);
pack();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n ... | [
"0.73191476",
"0.72906625",
"0.72906625",
"0.72906625",
"0.72860986",
"0.7248112",
"0.7213479",
"0.72078276",
"0.7195841",
"0.71899796",
"0.71840525",
"0.7158498",
"0.71477973",
"0.7092748",
"0.70800966",
"0.70558053",
"0.69871384",
"0.69773406",
"0.69548076",
"0.69533914",
"... | 0.0 | -1 |
Test if Query is properly formmatted | @Test
public void selectStatementSuccessful() throws SQLException {
assertNotNull(testConnection.selectStatement(con, "SELECT * FROM Employees;"));
assertNull(testConnection.selectStatement(con, "SELECT * FROM Emp;"));
//Test if RS is empty
assertTrue(testConnection.selectStatement(con, "SELECT * FROM Employees").next());
assertFalse(testConnection.selectStatement(con, "SELECT * FROM Employees WHERE email='x'").next());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean isIsQuery();",
"boolean hasQuery();",
"public void validateQuery(Query query) throws InvalidQueryException;",
"@Test\n\tpublic void isValidQueryTest() {\n\t\tString query1 = \"< nice & cool \";\n\t\tString query2 = \"( hello & !!cool )\";\n\t\tString query3 = \"( hello | !cool )\";\n\t\t\n\t\texcepti... | [
"0.739922",
"0.70575297",
"0.66679996",
"0.6564949",
"0.6542669",
"0.6515663",
"0.6510717",
"0.6496622",
"0.6484785",
"0.6453258",
"0.64394504",
"0.6438884",
"0.64364135",
"0.64351976",
"0.64176464",
"0.64151853",
"0.64038813",
"0.6397767",
"0.6375285",
"0.63744503",
"0.63687... | 0.0 | -1 |
To turn off generation of API docs for certain roles, comment out | public static void main(String[] args) {
XmlToHtmlConverter x = new XmlToHtmlConverter();
x.populateForApi();
x.generateToc();
x.generateIndividualCommandPages();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean isRole() {\n return false;\n }",
"@Override\r\n\tpublic void list_privateWithoutViewPrivate() throws Exception {\n\t\tif (JavastravaApplicationConfig.STRAVA_ALLOWS_CHALLENGES_ENDPOINT) {\r\n\t\t\tsuper.list_privateWithoutViewPrivate();\r\n\t\t}\r\n\t}",
"private ExportRo... | [
"0.5740192",
"0.5514767",
"0.5488929",
"0.5477222",
"0.5457584",
"0.52873987",
"0.5242157",
"0.515689",
"0.5145018",
"0.5141049",
"0.5139951",
"0.513975",
"0.51369494",
"0.51223546",
"0.509969",
"0.5092693",
"0.5073344",
"0.50574476",
"0.50233734",
"0.5023185",
"0.5014221",
... | 0.0 | -1 |
Delete all data from h2 so each test can insert what it needs | @Before
public void init(){
List<Soda> sodaList = inventoryService.findAll();
for(Soda s: sodaList){
s.setCount(0);
inventoryService.save(s);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@After\n public void tearDown() throws Exception {\n File dbFile = new File(\"./data/clinicmate.h2.db\");\n dbFile.delete();\n dbFile = new File(\"./data/clinicmate.trace.db\");\n dbFile.delete();\n }",
"@After\n public void tearDown() {\n try(Connection con = DB.sql2o.o... | [
"0.6671815",
"0.6521805",
"0.6399475",
"0.6378803",
"0.6370511",
"0.6332335",
"0.6312284",
"0.6298518",
"0.6298348",
"0.62835664",
"0.62475693",
"0.6224352",
"0.62145376",
"0.61657137",
"0.6094952",
"0.6088927",
"0.6078058",
"0.60736966",
"0.60432684",
"0.60116947",
"0.601100... | 0.0 | -1 |
/Primero obtenemos el determiante | float determinante (){
//lo de adentro de la raiz
float det= (float)(Math.pow(b, 2)-4*a*c);
//(float) por que pow tiene valores por defecto de double
//entonces, hacemos casting: poniendole el (float) antes de
//toda la funcion.
return det;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic Dinero getDinero() {\n\t\treturn super.getDinero();\r\n\t}",
"Reserva Obtener();",
"public Nodo getNodoDerecho(){\n return der;\n }",
"public String obtenerDetalles(){\r\n return \"Nombre: \" + this.nombre + \", sueldo = \" + this.sueldo;\r\n }",
"private static void gra... | [
"0.6478947",
"0.6460182",
"0.6419138",
"0.6358231",
"0.632612",
"0.624558",
"0.6184689",
"0.60741925",
"0.60436535",
"0.6035623",
"0.60086054",
"0.600666",
"0.59476936",
"0.59463644",
"0.5933198",
"0.5917916",
"0.5900632",
"0.58994883",
"0.58897984",
"0.58862156",
"0.5861031"... | 0.0 | -1 |
Declarar un metodo publico | public String raiz1 (){
//primero, invocamos el determiante
float det=determinante(); //se asigna al determinante de arriba
String sol="raiz 1"; //la solucion la evuelve como string
if (det<0){
sol="Raiz imaginaria";
}else {
float r1= (float)(-b+ Math.sqrt(det) )/(2*a);
//tambien aplicamos casting pata Math, con (float)
sol="Raiz 1: "+r1; //texto + valor agregado
}
return sol;
//Uno para R1 y otro para R2
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void Ordenamiento() {\n\n\t}",
"private Public() {\n super(\"public\", null);\n }",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"public void inizializza() {\n Navigatore nav;\n Portale portale;\n\n super.inizializza();\n\n try { // prova ad eseguire il co... | [
"0.6473567",
"0.6467128",
"0.63592935",
"0.6216035",
"0.6034508",
"0.5990438",
"0.5926763",
"0.5921301",
"0.59082276",
"0.58965117",
"0.58657455",
"0.5857958",
"0.5857889",
"0.58438355",
"0.58305085",
"0.58241075",
"0.5816187",
"0.5756648",
"0.575294",
"0.5749313",
"0.5746864... | 0.0 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.