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 |
|---|---|---|---|---|---|---|
Setter for property defaultAccount. | public void setDefaultAccount(String defaultAccount) {
this.defaultAccount = defaultAccount;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getDefaultAccount() {\n\n return this.defaultAccount;\n }",
"public Account getDefaultAccount() {\n return getNemesisAccount1();\n }",
"public void setDefaultHackystatAccount(String defaultHackystatAccount) {\r\n this.defaultHackystatAccount = defaultHackystatAccount;\r\n }",
... | [
"0.76759416",
"0.72294736",
"0.72265005",
"0.69693464",
"0.62973344",
"0.58461887",
"0.57954586",
"0.5675055",
"0.56593126",
"0.55833465",
"0.5417761",
"0.5416388",
"0.54004407",
"0.53948385",
"0.5357903",
"0.53552634",
"0.5354253",
"0.5335927",
"0.5327332",
"0.53182596",
"0.... | 0.847193 | 0 |
Getter for property parentKey. | public String getParentKey() {
return this.parentKey;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public long getParentKey() {\n\t\treturn parentKey;\n\t}",
"public String getParentId() {\n return getProperty(Property.PARENT_ID);\n }",
"public String getParentId() {\n return parentId;\n }",
"public String getParentId() {\n return parentId;\n }",
"public String getParentId() {\n ... | [
"0.8472056",
"0.7580876",
"0.7199181",
"0.7199181",
"0.7199181",
"0.7199181",
"0.7199181",
"0.7199181",
"0.7199181",
"0.7199181",
"0.7199181",
"0.71818656",
"0.71818656",
"0.71818656",
"0.71722144",
"0.7169861",
"0.7152403",
"0.7113205",
"0.70942086",
"0.70913076",
"0.7084989... | 0.85881 | 0 |
Setter for property parentKey. | public void setParentKey(String parentKey) {
this.parentKey = parentKey;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setParentKey(long value) {\n\t\tthis.parentKey = value;\n\t}",
"public String getParentKey() {\n\n return this.parentKey;\n }",
"public long getParentKey() {\n\t\treturn parentKey;\n\t}",
"public void setParent(String parent) {\n _parent = parent;\n }",
"public void setParen... | [
"0.79322463",
"0.7628721",
"0.7598346",
"0.68272096",
"0.6823095",
"0.6770567",
"0.67478967",
"0.67458993",
"0.6652806",
"0.6626024",
"0.6601961",
"0.6492538",
"0.6489202",
"0.6463157",
"0.64445037",
"0.64445037",
"0.64445037",
"0.64445037",
"0.64445037",
"0.64445037",
"0.644... | 0.8456948 | 0 |
Getter for property balanceSheet. | public String getBalanceSheet() {
return this.balanceSheet;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getBalanceSheetName() {\n\n return this.balanceSheetName;\n }",
"public void setBalanceSheet(String balanceSheet) {\n\n this.balanceSheet = balanceSheet;\n }",
"public int getSheetNumber(){\n return sheetNumber;\n }",
"public int getPropertyBalance()\n {\n ... | [
"0.744322",
"0.6299696",
"0.6197952",
"0.60458875",
"0.60009474",
"0.5921468",
"0.59126747",
"0.59126747",
"0.589234",
"0.5889948",
"0.5886516",
"0.5886516",
"0.58854824",
"0.58827174",
"0.58827174",
"0.58827174",
"0.58827174",
"0.58794934",
"0.58794934",
"0.58783853",
"0.587... | 0.81792957 | 0 |
Setter for property balanceSheet. | public void setBalanceSheet(String balanceSheet) {
this.balanceSheet = balanceSheet;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getBalanceSheet() {\n\n return this.balanceSheet;\n }",
"public void setBalanceSheetName(String balanceSheetName) {\n\n this.balanceSheetName = balanceSheetName;\n }",
"public String getBalanceSheetName() {\n\n return this.balanceSheetName;\n }",
"public void setBa... | [
"0.6625287",
"0.62178606",
"0.6105502",
"0.5845823",
"0.572289",
"0.5654274",
"0.5654274",
"0.56294125",
"0.5626554",
"0.56137294",
"0.56129533",
"0.55746204",
"0.55746204",
"0.5559323",
"0.55185705",
"0.54869115",
"0.547452",
"0.54459906",
"0.54367095",
"0.5400039",
"0.53990... | 0.75847566 | 0 |
Getter for property balanceSheetName. | public String getBalanceSheetName() {
return this.balanceSheetName;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getSheetName(){\n return sheetName;\n }",
"public String getSheetName() {\n return sheetName;\n }",
"public String getBalanceSheet() {\n\n return this.balanceSheet;\n }",
"public void setBalanceSheetName(String balanceSheetName) {\n\n this.balanceSheetName =... | [
"0.74961305",
"0.74940383",
"0.7320977",
"0.666527",
"0.6365567",
"0.6298364",
"0.6016298",
"0.60134673",
"0.60055983",
"0.5967524",
"0.596336",
"0.59284",
"0.58819634",
"0.58302873",
"0.5785034",
"0.57278985",
"0.57224935",
"0.5714143",
"0.57064444",
"0.5687439",
"0.56760967... | 0.8568212 | 0 |
Setter for property balanceSheetName. | public void setBalanceSheetName(String balanceSheetName) {
this.balanceSheetName = balanceSheetName;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getBalanceSheetName() {\n\n return this.balanceSheetName;\n }",
"public void setBalanceSheet(String balanceSheet) {\n\n this.balanceSheet = balanceSheet;\n }",
"public void setSheetName(String name){\n this.sheetName = name;\n }",
"public void setSheetNameForGermpl... | [
"0.7303464",
"0.686376",
"0.68301433",
"0.65403235",
"0.64787143",
"0.6475427",
"0.6450952",
"0.6235548",
"0.6064914",
"0.5619939",
"0.55555433",
"0.551723",
"0.5391405",
"0.5359137",
"0.53474385",
"0.5326825",
"0.53206456",
"0.5320153",
"0.5303874",
"0.52620524",
"0.5257232"... | 0.7637952 | 0 |
Getter for property us1120sheet. | public String getUs1120sheet() {
return this.us1120sheet;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getUs1120sheetName() {\n\n return this.us1120sheetName;\n }",
"public int getSheetNumber(){\n return sheetNumber;\n }",
"public String getSheetName(){\n return sheetName;\n }",
"public String getSheetName() {\n return sheetName;\n }",
"public long getSh... | [
"0.77453774",
"0.75290823",
"0.72247636",
"0.6915486",
"0.68116826",
"0.66999793",
"0.66597944",
"0.645321",
"0.6340812",
"0.6292097",
"0.6202143",
"0.61495864",
"0.6079159",
"0.6060135",
"0.6006497",
"0.5930784",
"0.5910377",
"0.5900406",
"0.58462685",
"0.5815537",
"0.576215... | 0.8473145 | 0 |
Setter for property us1120sheet. | public void setUs1120sheet(String us1120sheet) {
this.us1120sheet = us1120sheet;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getUs1120sheet() {\n\n return this.us1120sheet;\n }",
"public String getUs1120sheetName() {\n\n return this.us1120sheetName;\n }",
"public void setSheetNumber(int number){\n this.sheetNumber = number;\n }",
"public void setUs1120sheetName(String us1120sheetName) {\... | [
"0.7537785",
"0.7104956",
"0.6838251",
"0.6580224",
"0.65270376",
"0.6520085",
"0.63763875",
"0.62883955",
"0.62704355",
"0.6205091",
"0.59859186",
"0.5982495",
"0.59097296",
"0.5854271",
"0.5728556",
"0.5726734",
"0.5647485",
"0.5602705",
"0.5596614",
"0.5587486",
"0.5497653... | 0.7846468 | 0 |
Getter for property us1120sheetName. | public String getUs1120sheetName() {
return this.us1120sheetName;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getSheetName(){\n return sheetName;\n }",
"public String getSheetName() {\n return sheetName;\n }",
"public String getUs1120sheet() {\n\n return this.us1120sheet;\n }",
"public String getBalanceSheetName() {\n\n return this.balanceSheetName;\n }",
"publ... | [
"0.80172735",
"0.79731107",
"0.78372526",
"0.70568836",
"0.67012674",
"0.6684845",
"0.65766954",
"0.647856",
"0.62954175",
"0.62684",
"0.6241429",
"0.61933136",
"0.6112999",
"0.60939443",
"0.60305285",
"0.59830666",
"0.5967288",
"0.5922334",
"0.59123707",
"0.5904499",
"0.5879... | 0.8396031 | 0 |
Setter for property us1120sheetName. | public void setUs1120sheetName(String us1120sheetName) {
this.us1120sheetName = us1120sheetName;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getUs1120sheetName() {\n\n return this.us1120sheetName;\n }",
"public void setSheetName(String name){\n this.sheetName = name;\n }",
"public void setUs1120sheet(String us1120sheet) {\n\n this.us1120sheet = us1120sheet;\n }",
"public void setSheetNameForGermplasm(St... | [
"0.7717621",
"0.73296005",
"0.70675784",
"0.7059093",
"0.70469683",
"0.7035473",
"0.70343137",
"0.67305136",
"0.66807455",
"0.65150553",
"0.59519374",
"0.5927867",
"0.58830106",
"0.58567613",
"0.5799968",
"0.576755",
"0.5708453",
"0.5580189",
"0.54869443",
"0.54673755",
"0.54... | 0.7290949 | 2 |
Getter for property profitLoss. | public String getProfitLoss() {
return this.profitLoss;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getProfitLossName() {\n\n return this.profitLossName;\n }",
"public void setProfitLoss(String profitLoss) {\n\n this.profitLoss = profitLoss;\n }",
"public double getExpLoss()\r\n\t{\treturn this.expLoss;\t}",
"public double getProfit() {\n\t\treturn profit;\n\t}",
"public... | [
"0.7977064",
"0.74684083",
"0.72003436",
"0.70776415",
"0.70776415",
"0.69337153",
"0.6909278",
"0.6778766",
"0.66876036",
"0.66645926",
"0.66388464",
"0.6626183",
"0.65639734",
"0.64410514",
"0.63737833",
"0.6369831",
"0.6323241",
"0.6267939",
"0.61561537",
"0.61347",
"0.610... | 0.8719297 | 0 |
Setter for property profitLoss. | public void setProfitLoss(String profitLoss) {
this.profitLoss = profitLoss;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getProfitLoss() {\n\n return this.profitLoss;\n }",
"public void setProfitLossName(String profitLossName) {\n\n this.profitLossName = profitLossName;\n }",
"public String getProfitLossName() {\n\n return this.profitLossName;\n }",
"public void setProfit(double prof... | [
"0.7915954",
"0.7300634",
"0.723113",
"0.67540234",
"0.62589467",
"0.6131156",
"0.6110258",
"0.6110258",
"0.60515606",
"0.59939057",
"0.58778965",
"0.5813196",
"0.5786812",
"0.57019764",
"0.56929845",
"0.5661327",
"0.56601274",
"0.5647341",
"0.56001234",
"0.5546145",
"0.55045... | 0.8382297 | 0 |
Getter for property profitLossName. | public String getProfitLossName() {
return this.profitLossName;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getProfitLoss() {\n\n return this.profitLoss;\n }",
"public void setProfitLossName(String profitLossName) {\n\n this.profitLossName = profitLossName;\n }",
"public void setProfitLoss(String profitLoss) {\n\n this.profitLoss = profitLoss;\n }",
"public String getPro... | [
"0.8075139",
"0.7694716",
"0.69967943",
"0.6473561",
"0.6353485",
"0.61401886",
"0.61063045",
"0.61063045",
"0.61063045",
"0.59654576",
"0.5924676",
"0.59175223",
"0.5909089",
"0.5890534",
"0.5867315",
"0.5867315",
"0.5867315",
"0.5867217",
"0.5863925",
"0.58585304",
"0.58413... | 0.8820586 | 0 |
Setter for property profitLossName. | public void setProfitLossName(String profitLossName) {
this.profitLossName = profitLossName;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getProfitLossName() {\n\n return this.profitLossName;\n }",
"public void setProfitLoss(String profitLoss) {\n\n this.profitLoss = profitLoss;\n }",
"public String getProfitLoss() {\n\n return this.profitLoss;\n }",
"public void setProName(String proName) {\n ... | [
"0.82023954",
"0.7859379",
"0.7207541",
"0.62127453",
"0.61562437",
"0.5772477",
"0.5621229",
"0.55888027",
"0.5501534",
"0.54628795",
"0.54447675",
"0.542982",
"0.5409803",
"0.5357671",
"0.5352545",
"0.5312824",
"0.52981126",
"0.526784",
"0.52581275",
"0.52385044",
"0.523016... | 0.8556084 | 0 |
Getter for property us1120incomeStmt. | public String getUs1120incomeStmt() {
return this.us1120incomeStmt;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getUs1120incomeStmtName() {\n\n return this.us1120incomeStmtName;\n }",
"public void setUs1120incomeStmt(String us1120incomeStmt) {\n\n this.us1120incomeStmt = us1120incomeStmt;\n }",
"public void setUs1120incomeStmtName(String us1120incomeStmtName) {\n\n this.us1120inc... | [
"0.83245724",
"0.7397854",
"0.67908067",
"0.6527005",
"0.59365207",
"0.5914473",
"0.5893307",
"0.5838395",
"0.57772875",
"0.5738481",
"0.56972474",
"0.55835587",
"0.5513007",
"0.54838985",
"0.54633576",
"0.5462879",
"0.53808606",
"0.52270633",
"0.5200176",
"0.51508963",
"0.51... | 0.8702517 | 0 |
Setter for property us1120incomeStmt. | public void setUs1120incomeStmt(String us1120incomeStmt) {
this.us1120incomeStmt = us1120incomeStmt;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getUs1120incomeStmt() {\n\n return this.us1120incomeStmt;\n }",
"public String getUs1120incomeStmtName() {\n\n return this.us1120incomeStmtName;\n }",
"public void setUs1120incomeStmtName(String us1120incomeStmtName) {\n\n this.us1120incomeStmtName = us1120incomeStmtNam... | [
"0.7892394",
"0.77216107",
"0.74193525",
"0.5630381",
"0.5628475",
"0.52032346",
"0.51229244",
"0.51160705",
"0.5110249",
"0.4917036",
"0.4763958",
"0.4749984",
"0.47407728",
"0.4728446",
"0.4717618",
"0.46753892",
"0.46577665",
"0.46383098",
"0.46367103",
"0.4630534",
"0.460... | 0.8280265 | 0 |
Getter for property us1120incomeStmtName. | public String getUs1120incomeStmtName() {
return this.us1120incomeStmtName;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getUs1120incomeStmt() {\n\n return this.us1120incomeStmt;\n }",
"public void setUs1120incomeStmtName(String us1120incomeStmtName) {\n\n this.us1120incomeStmtName = us1120incomeStmtName;\n }",
"public void setUs1120incomeStmt(String us1120incomeStmt) {\n\n this.us1120inc... | [
"0.7934518",
"0.73239684",
"0.674522",
"0.6183315",
"0.6092007",
"0.6040124",
"0.58433604",
"0.5788048",
"0.5788048",
"0.57831895",
"0.5749424",
"0.57346904",
"0.57311016",
"0.5719319",
"0.57147",
"0.56998897",
"0.5693417",
"0.56876993",
"0.5618207",
"0.5595518",
"0.5552926",... | 0.8763318 | 0 |
Setter for property us1120incomeStmtName. | public void setUs1120incomeStmtName(String us1120incomeStmtName) {
this.us1120incomeStmtName = us1120incomeStmtName;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getUs1120incomeStmtName() {\n\n return this.us1120incomeStmtName;\n }",
"public void setUs1120incomeStmt(String us1120incomeStmt) {\n\n this.us1120incomeStmt = us1120incomeStmt;\n }",
"public String getUs1120incomeStmt() {\n\n return this.us1120incomeStmt;\n }",
"p... | [
"0.81378984",
"0.7410114",
"0.68917304",
"0.5917443",
"0.5824902",
"0.56566185",
"0.5640612",
"0.5520431",
"0.54568046",
"0.542317",
"0.5397443",
"0.5370178",
"0.53694123",
"0.5359254",
"0.5356494",
"0.5350743",
"0.5348496",
"0.53455454",
"0.5341246",
"0.533727",
"0.53318524"... | 0.8048922 | 1 |
Getter for property cashFlow. | public String getCashFlow() {
return this.cashFlow;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Key<CashFlow> getCashflow() {\n\t\treturn cashflow;\n\t}",
"public String getCashFlowName() {\n\n return this.cashFlowName;\n }",
"public Double getCash() {\n\t\treturn cash;\n\t}",
"public double getCash() {\n return cash;\n }",
"public void setCashFlow(String cashFlow) {\n\n ... | [
"0.78795093",
"0.7429451",
"0.71017694",
"0.7008596",
"0.6797394",
"0.6782647",
"0.66557986",
"0.65321434",
"0.64752513",
"0.644432",
"0.6310125",
"0.6257318",
"0.61117923",
"0.5999622",
"0.59225225",
"0.58805454",
"0.57614416",
"0.56808287",
"0.5674584",
"0.56555486",
"0.565... | 0.85742193 | 0 |
Setter for property cashFlow. | public void setCashFlow(String cashFlow) {
this.cashFlow = cashFlow;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getCashFlow() {\n\n return this.cashFlow;\n }",
"public void setCash(double cash_input) {\n cash = cash_input;\n }",
"public void setCashFlowName(String cashFlowName) {\n\n this.cashFlowName = cashFlowName;\n }",
"public Key<CashFlow> getCashflow() {\n\t\treturn ca... | [
"0.7141244",
"0.6486085",
"0.6435799",
"0.619927",
"0.60272133",
"0.58743876",
"0.5823982",
"0.5802413",
"0.57773626",
"0.56943583",
"0.5666696",
"0.5602399",
"0.5496126",
"0.54122174",
"0.5382785",
"0.5238757",
"0.51600975",
"0.514349",
"0.5119113",
"0.5096563",
"0.5083856",... | 0.8082439 | 0 |
Getter for property cashFlowName. | public String getCashFlowName() {
return this.cashFlowName;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getCashFlow() {\n\n return this.cashFlow;\n }",
"public void setCashFlowName(String cashFlowName) {\n\n this.cashFlowName = cashFlowName;\n }",
"public String getDataFlowName() {\n return dataFlowName;\n }",
"@ApiModelProperty(value = \"Name of a flow\")\n public ... | [
"0.68875253",
"0.67407",
"0.6303198",
"0.624807",
"0.61922854",
"0.61922854",
"0.61922854",
"0.60622907",
"0.60017425",
"0.5919747",
"0.59118724",
"0.5898836",
"0.58798295",
"0.58798295",
"0.58798295",
"0.5876097",
"0.5871979",
"0.5864156",
"0.5823735",
"0.5822907",
"0.582021... | 0.8657986 | 0 |
Setter for property cashFlowName. | public void setCashFlowName(String cashFlowName) {
this.cashFlowName = cashFlowName;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getCashFlowName() {\n\n return this.cashFlowName;\n }",
"public void setCashFlow(String cashFlow) {\n\n this.cashFlow = cashFlow;\n }",
"@ApiModelProperty(value = \"Name of a flow\")\n public String getName() {\n return name;\n }",
"@IcalProperty(pindex = PropertyInfoIn... | [
"0.7467573",
"0.6493708",
"0.595069",
"0.58585316",
"0.57579255",
"0.5729292",
"0.5667277",
"0.56639713",
"0.5660544",
"0.5660544",
"0.56512827",
"0.56478596",
"0.5640714",
"0.5633179",
"0.5622476",
"0.5610788",
"0.5610788",
"0.5610131",
"0.5605454",
"0.5604856",
"0.5603163",... | 0.78944373 | 0 |
private UserService userService; private User user; | @Autowired
public void setPostService(PostService postService) {
this.postService = postService;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface UserService {\n}",
"public interface UserService {\n}",
"public interface UserService\n{\n}",
"public interface UserService {\n\n User getUser(Long id);\n}",
"public interface UserService {\r\n\r\n User getUserById(Long id);\r\n User getUserNyName(String name);\r\n void saveUse... | [
"0.8184655",
"0.8184655",
"0.79585415",
"0.7939137",
"0.77692276",
"0.77503884",
"0.7748897",
"0.76868945",
"0.76643664",
"0.7643532",
"0.7635859",
"0.76211935",
"0.7619853",
"0.761795",
"0.7605434",
"0.75796753",
"0.75794244",
"0.7577913",
"0.75721735",
"0.75551057",
"0.7555... | 0.0 | -1 |
Creates new form AddVisite | public AddVisite(java.awt.Frame parent, boolean modal, EventType type) {
super(parent, modal);
isRadioEnable = true;
this.type = type;
if (type == EventType.OUTING){
eventType = "Sortie";
}
else
eventType = "Visite";
System.out.println(eventType);
initComponents();
alerteEmptyField.setVisible(false);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void addDao(Visite visite) {\r\n\t\t// Creation de la session\r\n\t\tSession s = sf.getCurrentSession();\r\n\r\n\t\ts.save(visite);\r\n\t\t\r\n\t}",
"public AddToVisitsDialogBox(Frame parent, GlobeApp gb) {\n this.gb = gb;\n this.parent = parent;\n Point loc = parent.ge... | [
"0.6307684",
"0.6021121",
"0.58142483",
"0.5756697",
"0.5696116",
"0.5685552",
"0.56672585",
"0.56516856",
"0.5593909",
"0.55725425",
"0.55592513",
"0.55147517",
"0.5466614",
"0.5461267",
"0.54144317",
"0.53783566",
"0.537118",
"0.5347981",
"0.53366673",
"0.53191686",
"0.5305... | 0.0 | -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() {
jLabel1 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
descripTextField = new javax.swing.JTextField();
jLabel3 = new javax.swing.JLabel();
validButton = new javax.swing.JButton();
startHour = new javax.swing.JTextField();
endHour = new javax.swing.JTextField();
eventLabel = new javax.swing.JLabel();
startMinute = new javax.swing.JTextField();
jLabel4 = new javax.swing.JLabel();
endMinute = new javax.swing.JTextField();
jLabel5 = new javax.swing.JLabel();
jLabel6 = new javax.swing.JLabel();
jLabel7 = new javax.swing.JLabel();
jLabel8 = new javax.swing.JLabel();
dateTextField = new javax.swing.JTextField();
todayRadioButton = new javax.swing.JRadioButton();
alerteEmptyField = new javax.swing.JLabel();
setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
jLabel1.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
jLabel1.setText("Heure de début :");
jLabel2.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
jLabel2.setText("Heure de fin :");
descripTextField.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
descripTextFieldActionPerformed(evt);
}
});
jLabel3.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
jLabel3.setText("Description (optionnelle)");
validButton.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
validButton.setText("Valider");
validButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
validButtonActionPerformed(evt);
}
});
startHour.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
startHourActionPerformed(evt);
}
});
endHour.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
endHourActionPerformed(evt);
}
});
eventLabel.setText("Ajouter une " + eventType);
eventLabel.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
jLabel4.setText("H");
jLabel5.setText("H");
jLabel6.setText("min");
jLabel7.setText("min");
jLabel8.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
jLabel8.setText("Le : (ex: 27/08/2001)");
todayRadioButton.setText("Aujourd'hui");
todayRadioButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
todayRadioButtonActionPerformed(evt);
}
});
alerteEmptyField.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
alerteEmptyField.setForeground(new java.awt.Color(255, 0, 51));
alerteEmptyField.setText("Champ obligatoire vide /!\\");
alerteEmptyField.addComponentListener(new java.awt.event.ComponentAdapter() {
public void componentShown(java.awt.event.ComponentEvent evt) {
alerteEmptyFieldComponentShown(evt);
}
});
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(119, 119, 119)
.addComponent(eventLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 190, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(descripTextField)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel1)
.addComponent(jLabel2)
.addComponent(jLabel8))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 91, Short.MAX_VALUE)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(startHour, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(endHour, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
.addGroup(layout.createSequentialGroup()
.addComponent(jLabel4)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(startMinute, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createSequentialGroup()
.addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 9, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(20, 20, 20)
.addComponent(endMinute, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))))
.addComponent(dateTextField, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 98, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(10, 10, 10)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel6)
.addComponent(jLabel7))
.addGap(38, 38, 38))
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(todayRadioButton)
.addGroup(layout.createSequentialGroup()
.addGap(63, 63, 63)
.addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 263, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createSequentialGroup()
.addGap(99, 99, 99)
.addComponent(validButton)
.addGap(18, 18, 18)
.addComponent(alerteEmptyField, javax.swing.GroupLayout.PREFERRED_SIZE, 218, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGap(0, 0, Short.MAX_VALUE)))
.addContainerGap())
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(eventLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, Short.MAX_VALUE)
.addComponent(todayRadioButton)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(dateTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(startHour, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(startMinute, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel4)
.addComponent(jLabel6))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(endHour, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(endMinute, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel5)
.addComponent(jLabel7))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel3)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(descripTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 82, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(alerteEmptyField, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(validButton, 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.73192346",
"0.7290526",
"0.7290526",
"0.7290526",
"0.7285891",
"0.72480357",
"0.7213616",
"0.7207808",
"0.71955067",
"0.71891475",
"0.71844363",
"0.7159038",
"0.71474695",
"0.7092269",
"0.7079923",
"0.70560205",
"0.69864315",
"0.697697",
"0.69552195",
"0.6953691",
"0.69458... | 0.0 | -1 |
Using an Anchor Pane as the root pane in this screen | @Override
public Scene createScene(Stage stage) {
AnchorPane anchor = new AnchorPane();
anchor.setPadding(new Insets(10, 10, 10, 10));
//Screen Title displayed and anchored at top
Label titleText = new Label("Create Your Playlist");
titleText.getStyleClass().add("label-title");
titleText.setAlignment(Pos.CENTER);
VBox titleBox = new VBox();
titleBox.setPadding(new Insets(15, 10, 10, 10));
titleBox.getChildren().add(titleText);
titleBox.setAlignment(Pos.CENTER_LEFT);
//set theme, if applicable
String theme = gd.getLobby().getTheme();
if (!theme.equals("")) {
Label themeLabel = new Label("Theme: " + theme);
themeLabel.setAlignment(Pos.CENTER_LEFT);
themeLabel.setPadding(new Insets(0, 10, 10, 10));
titleBox.getChildren().add(themeLabel);
}
AnchorPane.setTopAnchor(titleBox, null);
//Get names of all mp3s
File folder = new File(System.getProperty("user.dir") + "/bin/resources/Songs");
File[] listOfFiles = folder.listFiles();
for (int i = 0; i < listOfFiles.length; i++) {
if (listOfFiles[i].isFile() && listOfFiles[i].getName().contains(".mp3")) {
String[] parts = listOfFiles[i].getName().split("-");
Song s = new Song(parts[0].substring(0,parts[0].length()-1), parts[1].substring(1, parts[1].length()-4));
allSongs.add(s);
}
}
//Search Box and Results displayed in Center anchor with Playlist and Add Button
VBox leftVBox = addLeftVBox(songs);
VBox rightVBox = addRightVBox();
VBox nameVBox = addNameVBox();
VBox centerVBox = new VBox();
Button addButton = new Button();
addButton.setText("Add Song");
addButton.setPrefWidth(150.0);
//Add Song Button Functionality
addButton.setOnAction(new EventHandler<ActionEvent>() {
public void handle(ActionEvent e) {
Song selectedSong = searchResults.getSelectionModel().getSelectedItem();
if (selectedSong != null && numSongs < maxSongs) {
mySongs.add(selectedSong);
numSongs++;
}
if (selectedSong != null)
setPlaylistMade();
}
});
//Delete Song button and Functionality
Button delButton = new Button();
delButton.setText("Delete Song");
delButton.setPrefWidth(150.0);
delButton.setOnAction(new EventHandler<ActionEvent>() {
public void handle(ActionEvent e) {
if (playlist.getSelectionModel().getSelectedIndex() != -1) {
mySongs.remove(playlist.getSelectionModel().getSelectedIndex());
numSongs--;
decrementPlayistLength();
}
}
});
centerVBox.getChildren().addAll(addButton, delButton);
centerVBox.setSpacing(10.0);
centerVBox.setAlignment(Pos.CENTER);
GridPane inputGrid = new GridPane();
inputGrid.setHgap(20.0);
inputGrid.setVgap(10.0);
inputGrid.setPadding(new Insets(10, 10, 10, 10));
GridPane.setConstraints(leftVBox, 0, 1, 3, 4, null, null, null, null, null); // Bridget moved this down by 1
GridPane.setConstraints(centerVBox, 3, 3, 2, 1, null, null, null, null, null);
GridPane.setConstraints(nameVBox, 6, 0, 3, 1, null, null, null, null, null);
GridPane.setConstraints(rightVBox, 6, 1, 3, 4, null, null, null, null, null);
inputGrid.getChildren().addAll(leftVBox, centerVBox, rightVBox, nameVBox);
AnchorPane.setLeftAnchor(inputGrid, 10.0);
AnchorPane.setRightAnchor(inputGrid, 10.0);
AnchorPane.setTopAnchor(inputGrid, 100.0);
AnchorPane.setBottomAnchor(inputGrid, 100.0);
// Button to Save playlist anchored to bottom right of page
saveButton = new Button();
saveButton.setText("Save Playlist");
saveButton.setDisable(true);
saveButton.setOnAction(new EventHandler<ActionEvent>() {
public void handle(ActionEvent e) {
playerName = playerNameField.getText();
playlistName = playlistNameField.getText();
if (!playerName.equals("") && !playlistName.equals("")) { //if the player name AND playlist name field is filled
notifyObserver("listen");
Playlist p = new Playlist(playlistNameField.getText());
for (Song s : mySongs) {
p.addSong(s);
}
Player player = new Player(playerNameField.getText());
player.setPlaylist(p);
// send playlist to another class
gd.update(player);
notifyObserver("listen");
}
else if (playerName.equals("") && playlistName.equals("")) { //no player name and no playlist name
String msg = "You are missing the player name and playlist name. Please fill them out before moving forward.";
informPlayerOfMissingFields(msg);
}
else if (playerName.equals("")) { //no player name
String msg = "You are missing the player name. Please fill it out before moving forward.";
informPlayerOfMissingFields(msg);
}
else { //no playlist name
String msg = "You are missing the playlist name. Please fill it out before moving forward.";
informPlayerOfMissingFields(msg);
}
}
});
AnchorPane.setBottomAnchor(saveButton, 20.0);
AnchorPane.setRightAnchor(saveButton, 20.0);
anchor.getChildren().addAll(titleBox, inputGrid, saveButton);
Scene cpScene = new Scene(anchor, 275, 250);
cpScene.getStylesheets().add("application/application.css");
return cpScene;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setRoot(AnchorPane ap) {\n\t\t\r\n\t}",
"protected AnchorPane makeAnchorPane() {\n return new AnchorPane();\n }",
"public AnchorPane getAnchorPane(){return anchorPane;}",
"private Parent rootScene() {\r\n hBox = new HBox();\r\n hBox.setSpacing(10);\r\n hBox.setStyle... | [
"0.76446617",
"0.7383683",
"0.72201157",
"0.6926814",
"0.6768328",
"0.67469573",
"0.6729552",
"0.6711039",
"0.6707433",
"0.6616272",
"0.6547234",
"0.6546083",
"0.6542366",
"0.6457002",
"0.6447223",
"0.636292",
"0.6354706",
"0.63379973",
"0.6313584",
"0.62874794",
"0.6284655",... | 0.56683195 | 68 |
This is the Left grouping of boxes | public VBox addLeftVBox(ObservableList<Song> songs) {
VBox vbox = new VBox();
vbox.setPadding(new Insets(10, 10, 10, 10));
GridPane searchGrid = new GridPane();
searchGrid.setPadding(new Insets(10, 10, 10, 10));
searchGrid.setVgap(10.0);
TextField searchInput = new TextField();
searchInput.setPromptText("Search Songs");
searchInput.setPrefWidth(200);
Button searchBtn = new Button();
searchBtn.setText("Go");
searchBtn.setOnAction(new EventHandler<ActionEvent>() {
public void handle(ActionEvent e) {
songs.clear();
searchForSongs(searchInput.getText());
}
});
searchResults.setPrefSize(300, 400);
searchResults.setEditable(true);
GridPane.setConstraints(searchInput, 0, 0, 3, 1, null, null, null, null, null);
GridPane.setConstraints(searchBtn, 3, 0);
GridPane.setConstraints(searchResults, 0, 1, 3, 4, null, null, null, null, null);
searchGrid.getChildren().addAll(searchInput, searchBtn, searchResults);
vbox.getChildren().add(searchGrid);
return vbox;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void makeLeftBox() {\n\t\tgamePanel = new JPanel();\n\t\tgamePanel.setLayout(new BorderLayout());\n\t\tgamePanel.setBackground(Color.GRAY);\n\t\tgamePanel.setOpaque(true);\n\t\tleft = new JPanel();\n\t\tleft.setLayout(new GridLayout(1,1));\n\t\tleft.setBackground(Color.GRAY);\n\t\tbanner = new JLabel(\"Jeo... | [
"0.6927808",
"0.6856098",
"0.6493383",
"0.64810735",
"0.6108724",
"0.5976429",
"0.59328467",
"0.5905266",
"0.5893936",
"0.5887307",
"0.5876912",
"0.5873922",
"0.58280414",
"0.57852936",
"0.5781642",
"0.5757898",
"0.5751641",
"0.5741154",
"0.5736793",
"0.57115483",
"0.56911093... | 0.0 | -1 |
This method Not currently used | public VBox addButton(ObservableList<Song> searchResults, ObservableList<Song> playlist) {
VBox vbox = new VBox();
searchResults = searchResults;
playlist = playlist;
vbox.setPadding(new Insets(350, 100, 350, 10));
Button addSongBtn = new Button();
addSongBtn.setText("Add Song");
addSongBtn.setPrefSize(25.0, 15);
addSongBtn.setAlignment(Pos.CENTER_LEFT);
vbox.getChildren().addAll(addSongBtn);
return vbox;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n\tpublic void grabar() {\n\t... | [
"0.6320679",
"0.60903823",
"0.6051746",
"0.60215133",
"0.6009573",
"0.5966214",
"0.59374726",
"0.5920906",
"0.5892294",
"0.5878944",
"0.5878944",
"0.58665395",
"0.57877266",
"0.57524896",
"0.5729567",
"0.5698514",
"0.5698514",
"0.5663583",
"0.564756",
"0.5640039",
"0.5615721"... | 0.0 | -1 |
shutdownNow() is required because we have bydesign infinitely running calls | public boolean close(long timeout, TimeUnit timeoutUnit) throws InterruptedException {
channel.shutdownNow();
return channel.awaitTermination(timeout, timeoutUnit);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void shutdownNow() {\n }",
"public void shutdownNow() {\n }",
"public void shutdown() {\n/* 188 */ this.shutdown = true;\n/* */ }",
"public void shutdownNow() {\n\t\tupdater.shutdownNow();\n\t}",
"public void shutdown() {\n // no-op\n }",
"public void shut... | [
"0.8138444",
"0.8098498",
"0.7492087",
"0.7377547",
"0.722598",
"0.7163348",
"0.7065793",
"0.7053911",
"0.7030139",
"0.70171267",
"0.7008886",
"0.6945413",
"0.6941824",
"0.6930533",
"0.692004",
"0.69134915",
"0.69134915",
"0.69134915",
"0.6888765",
"0.68775016",
"0.68741363",... | 0.0 | -1 |
Test of nextToken method, of class Scanner. | @Test
public void testCommentLine() {
setupReaderAndErrorHandler("# This is a comment line");
scanner.nextToken();
assertTrue("EOFSY expected", scanner.getCurrentToken().getSymbol() == Symbol.EOFSY);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Token next();",
"private void scan() {\n token = nextToken;\n nextToken = scanner.next();\n }",
"private Token nextToken() {\n Token token = scanner.nextToken();\n lastSourcePosition = token.location.end;\n return token;\n }",
"private boolean getNextToken() throws IOException {\n ... | [
"0.7570858",
"0.73006755",
"0.7160009",
"0.69971186",
"0.69248736",
"0.68598056",
"0.67166334",
"0.66292495",
"0.6629222",
"0.65776837",
"0.6562504",
"0.65574247",
"0.6536088",
"0.6481028",
"0.64726985",
"0.6424487",
"0.6377311",
"0.63663596",
"0.63552105",
"0.63398695",
"0.6... | 0.5856383 | 100 |
Created by hide on 2016/09/23. | public interface IDeviceInfo
{
public DeviceInfo GetDeviceInfo();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Overri... | [
"0.59330475",
"0.58006805",
"0.57411087",
"0.5731517",
"0.5731517",
"0.57249755",
"0.57174474",
"0.565185",
"0.5634802",
"0.5565415",
"0.5561842",
"0.5555461",
"0.55545014",
"0.5540641",
"0.5538065",
"0.55377394",
"0.5523023",
"0.5512867",
"0.5507554",
"0.5507506",
"0.5504499... | 0.0 | -1 |
init method usage in constructor. Method split raw command by spaces. First part is command, second is parameter | private void init(String command) {
if (command == null) throw new IllegalArgumentException("Empty command");
this.raw = command;
String[] data = this.raw.split(" ");
this.map = new HashMap<>();
for ( int i = 0; i < data.length; i++) {
map.put( Index.values()[i], data[i] );
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void init(String command){\n\t\tStringTokenizer st = new StringTokenizer(command);\n\t\t\n\t\tthis.numberOfTokens = st.countTokens() ;\n\t\tthis.tokens = new String[this.numberOfTokens];\n\t\t\n\t\tString currentToken;\n\t\tint tokenNumber = 0;\n\t\t\n\t\t/*inizialize the entire array or cannot concatena... | [
"0.7631647",
"0.70513207",
"0.69771695",
"0.6793276",
"0.67413425",
"0.67218393",
"0.66165644",
"0.6560065",
"0.65456104",
"0.6542432",
"0.6529234",
"0.64822024",
"0.64699733",
"0.64682513",
"0.6464589",
"0.64568186",
"0.6440679",
"0.64322686",
"0.64167887",
"0.6404855",
"0.6... | 0.6028423 | 52 |
creating a list for category items | public GradeBook readIpGradeBook() throws IOException, ParseException {
List<String> cList = new ArrayList<>();
Map<String, String> gradeItem = new HashMap<>();
JSONParser parser = new JSONParser();
Object obj = parser.parse(new FileReader("src/inputandOutput/input.json"));
JSONArray jsonArray;
JSONObject jsonObject = null;
if (obj instanceof JSONArray) {
jsonArray = (JSONArray) obj;
jsonObject=(JSONObject) jsonArray.get(0);
} else if (obj instanceof JSONObject) {
jsonObject = (JSONObject)obj;
}
JSONArray grdBookArray;
JSONObject grdBookObject = null;
if(jsonObject.get("GradeBook") instanceof JSONArray){
grdBookArray = (JSONArray) jsonObject.get("GradeBook");
grdBookObject=(JSONObject) grdBookArray.get(0);
} else if(jsonObject.get("GradeBook") instanceof JSONObject){
grdBookObject=(JSONObject) jsonObject.get("GradeBook");
}
JSONArray gradingSchemaArray;
JSONObject gradingSchemaObject = null;
if(grdBookObject.get("GradingSchema") instanceof JSONArray){
gradingSchemaArray = (JSONArray) grdBookObject.get("GradingSchema");
gradingSchemaObject=(JSONObject) gradingSchemaArray.get(0);
} else if(grdBookObject.get("GradingSchema") instanceof JSONObject){
gradingSchemaObject=(JSONObject) grdBookObject.get("GradingSchema");
}
JSONArray grdItemArray;
JSONObject grdItemObject = null;
if(gradingSchemaObject.get("GradeItem") instanceof JSONArray){
grdItemArray = (JSONArray) gradingSchemaObject.get("GradeItem");
for(int i=0; i<grdItemArray.size();i++){
grdItemObject=(JSONObject) grdItemArray.get(i);
String category = (String) grdItemObject.get("Category");
String percentage = (String) grdItemObject.get("Percentage");
cList.add(category);
gradeItem.put(category, percentage);
}
} else if(gradingSchemaObject.get("GradeItem") instanceof JSONObject){
grdItemObject = (JSONObject) gradingSchemaObject.get("GradeItem");
String category = (String) grdItemObject.get("Category");
String percentage = (String) grdItemObject.get("Percentage");
cList.add(category);
gradeItem.put(category, percentage);
}
grdBook.setGradeItem(gradeItem);
grdBook.setCategory(cList);
return grdBook;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ArrayList<ItemCategory> createItemCategoryList() {\n return categoryLines\n .stream()\n .map(this::writeLineNumber)\n .map(this::createItemList)\n .peek(this::addCategoryForFasterTesting)\n .collect(Collectors.toCollection(Arr... | [
"0.7506959",
"0.71609473",
"0.6876156",
"0.68195564",
"0.6657705",
"0.6652389",
"0.6621363",
"0.6619389",
"0.65592605",
"0.6538364",
"0.65283424",
"0.65002936",
"0.64472926",
"0.6440147",
"0.64263093",
"0.6422266",
"0.6387921",
"0.6319202",
"0.63048995",
"0.6303566",
"0.62993... | 0.0 | -1 |
Constructor, asks to open a predefined sample image if no other image is currently open. | public Region_Eccentricity_Ellipse_Demo() {
if (noCurrentImage()) {
DialogUtils.askForSampleImage(GeneralSampleImage.ToolsSmall);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void openImageFile(ImageActions action) {\n\t\tsetImageHolder(action, RGPTUIUtil.getImageFile(this));\r\n\t}",
"private void getSampleImage() {\n\t\t_helpingImgPath = \"Media\\\\\"+_camType.toString()+_downStream.toString()+_camProfile.toString()+\".bmp\";\n//\t\tswitch( _downStream ){\n//\t\tcase Downst... | [
"0.6242346",
"0.6202628",
"0.577953",
"0.57216877",
"0.5720319",
"0.5562577",
"0.5557484",
"0.5550327",
"0.5548093",
"0.5533621",
"0.54506344",
"0.5448244",
"0.54388237",
"0.54300886",
"0.5425978",
"0.54249763",
"0.54249763",
"0.5424976",
"0.541124",
"0.53949016",
"0.53557926... | 0.0 | -1 |
Make other class can't call new MoneyFactory | protected MoneyFactory() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test(expected = IllegalArgumentException.class)\n public void testCreateIllegalThaiMoney() {\n setFactory(\"ThaiMoneyFactory\");\n moneyFactory.createMoney(0.9);\n }",
"@Test(expected = IllegalArgumentException.class)\n public void testCreateIllegalMalayMoney() {\n setFactory(\"Mal... | [
"0.64012486",
"0.63441443",
"0.6249763",
"0.6040585",
"0.60313964",
"0.6013395",
"0.58470917",
"0.57684594",
"0.57457566",
"0.573717",
"0.5684725",
"0.5660675",
"0.5643412",
"0.5637445",
"0.5629799",
"0.5615952",
"0.55994487",
"0.55845344",
"0.5564614",
"0.5561259",
"0.555661... | 0.7440136 | 0 |
Return the instance of the MoneyFactory. | public static MoneyFactory getInstance() {
return factory;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected MoneyFactory() {\n\t}",
"public static void setMoneyFactory(MoneyFactory f) {\n\t\tfactory = f;\n\t}",
"public interface AmountFactory {\r\n Amount amountFrom(BigDecimal amountValue);\r\n\r\n Amount amountFrom(BigDecimal amountValue, BigDecimal multiplier);\r\n}",
"public PriceFactory getCurr... | [
"0.72678435",
"0.6556473",
"0.62969315",
"0.61724734",
"0.6123452",
"0.59346175",
"0.5816365",
"0.5778038",
"0.561429",
"0.56127423",
"0.56082827",
"0.55945134",
"0.55883133",
"0.55459267",
"0.5524017",
"0.5508178",
"0.5502636",
"0.5491658",
"0.5480847",
"0.5450702",
"0.54490... | 0.8726338 | 0 |
Set the factory to f in the parameter. | public static void setMoneyFactory(MoneyFactory f) {
factory = f;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setFactory(ValueFactory<K, V> factory)\n {\n this.factory = factory;\n }",
"void setFactoryBean( FactoryBean factory );",
"public void setFeatureFactory(FeatureFactory featureFactory) {\n factory = featureFactory;\n }",
"private void setupFactory(Factory f) {\n f.c... | [
"0.7220745",
"0.68872446",
"0.67755854",
"0.65451247",
"0.61087483",
"0.6080093",
"0.6033242",
"0.6030495",
"0.60014546",
"0.5930983",
"0.5908865",
"0.5808983",
"0.57685876",
"0.57591754",
"0.5755716",
"0.5723965",
"0.56939924",
"0.5680209",
"0.5676038",
"0.56488204",
"0.5642... | 0.7281379 | 0 |
Abstract method, used to create the money by primitive double, for edited in each country factory. | abstract Valuable createMoney(double value); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic Valuable createMoney(double value) {\n\t\tValuable thaiMoney = null;\n\t\tif ( isCoin(value) ) {\n\t\t\tthaiMoney = new Coin(value);\n\t\t} else if ( isBankNote(value) ) {\n\t\t\tthaiMoney = new BankNote(value, nextSerialNumber++);\n\t\t} else {\n\t\t\tthrow new IllegalArgumentException();\n\t\... | [
"0.7180781",
"0.6706116",
"0.6550309",
"0.64953625",
"0.6417322",
"0.62035227",
"0.6188539",
"0.6182747",
"0.61757565",
"0.6132721",
"0.6127725",
"0.6094112",
"0.60730183",
"0.60711575",
"0.6040978",
"0.60087305",
"0.59450036",
"0.59396183",
"0.58765864",
"0.5875992",
"0.5873... | 0.79024106 | 0 |
Try parsing String value into Double to use createMoney(double value) method. Return the money in valuable, if try parsing String into Double and it's possible. Throw the IllegalArgumentException if cannot. | Valuable createMoney(String value) {
try {
Double.parseDouble(value);
} catch (NumberFormatException e) {
throw new IllegalArgumentException();
}
return createMoney(Double.parseDouble(value));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static Value<Double> parseDouble(String value) {\n try {\n if (value == null || value.isEmpty()) return empty();\n return of(Double.parseDouble(value));\n } catch (NumberFormatException error) {\n return empty();\n }\n }",
"private static double validateAm... | [
"0.6872182",
"0.65970695",
"0.6523461",
"0.62830955",
"0.6163286",
"0.6155614",
"0.6154624",
"0.60357547",
"0.6013682",
"0.600548",
"0.5959892",
"0.59582084",
"0.5940212",
"0.5937747",
"0.5923902",
"0.5866712",
"0.57924116",
"0.57596046",
"0.57356775",
"0.57336247",
"0.57193"... | 0.7530502 | 0 |
TODO Autogenerated method stub | @Override
public void onClick(View v)
{
Intent intent = new Intent(DeviceActivity.this, sdw.com.CountyActivity.class);// ����������Activity
Bundle bundle = new Bundle(0);
bundle.putString("fun1",transferValue);
Log.e("TAG",transferValue);
bundle.putString("search1","btnRunRecord");
intent.putExtras(bundle);//can't
startActivity(intent);
// finish();
} | {
"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(DeviceActivity.this, sdw.com.CountyActivity.class);// ����������Activity
Bundle bundle = new Bundle(0);
bundle.putString("fun1",transferValue);
bundle.putString("search1","btnCheckRecord");
intent.putExtras(bundle);//
startActivity(intent);
//finish();
} | {
"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(DeviceActivity.this, sdw.com.CountyActivity.class);// ����������Activity
Bundle bundle = new Bundle(0);
bundle.putString("fun1",transferValue);
bundle.putString("search1","btnCheckMap");
intent.putExtras(bundle);//
startActivity(intent);
//finish();
} | {
"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(DeviceActivity.this, sdw.com.CountyActivity.class);// ����������Activity
Bundle bundle = new Bundle(0);
bundle.putString("fun1",transferValue);
bundle.putString("search1","btnWaterFlow");
intent.putExtras(bundle);//
startActivity(intent);
//finish();
} | {
"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 |
Assuming name for simplicity. | @Override
public String storeTime(String empName, String type) {
Employee employee = employeeRepository.getEmployeeByEmployeeName(empName);
DateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss");
Date date = new Date();
LocalDateTime dateTime = LocalDateTime.now();
System.out.println("Time : "+dateFormat.format(date));
if("inTime".equalsIgnoreCase(type)){
employee.setInTime(dateFormat.format(date));
}else{
employee.setOutTime(dateFormat.format(date));
}
employeeRepository.save(employee);
return dateFormat.format(date);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract String name ();",
"abstract String getName();",
"abstract String name();",
"String getName() ;",
"@Override\n\tString name();",
"@Override\n\tpublic void name() {\n\t\t\n\t}",
"@Override\n\tpublic void name() {\n\t\t\n\t}",
"public String getName(){return this.aName;}",
"protecte... | [
"0.6917611",
"0.6872814",
"0.6841963",
"0.6827841",
"0.68124974",
"0.68084544",
"0.68084544",
"0.6800884",
"0.6775914",
"0.6761519",
"0.6756343",
"0.6744477",
"0.673586",
"0.67336905",
"0.67237633",
"0.6716125",
"0.670967",
"0.6698067",
"0.6690275",
"0.66878587",
"0.6667668",... | 0.0 | -1 |
Create a user and fill out all the required fields | @Parameters({"quantity","customerName","street","city","zip","cardNum","expNum"})
@Test(priority = 0)
public void creatingUser(String quantity, String customerName, String street,String city,String zip,String cardNum,String expNum) throws InterruptedException {
driver.findElement(By.xpath("//a[@href='Process.aspx']")).click();
sendText(driver.findElement(By.cssSelector("input#ctl00_MainContent_fmwOrder_txtQuantity")),quantity);
sendText(driver.findElement(By.cssSelector("input#ctl00_MainContent_fmwOrder_txtName")),customerName);
sendText(driver.findElement(By.cssSelector("input#ctl00_MainContent_fmwOrder_TextBox2")),street);
sendText(driver.findElement(By.cssSelector("input#ctl00_MainContent_fmwOrder_TextBox3")),city);
sendText(driver.findElement(By.cssSelector("input#ctl00_MainContent_fmwOrder_TextBox5")),zip);
driver.findElement(By.cssSelector("input#ctl00_MainContent_fmwOrder_cardList_0")).click();
sendText(driver.findElement(By.cssSelector("input#ctl00_MainContent_fmwOrder_TextBox6")),cardNum);
sendText(driver.findElement(By.cssSelector("input#ctl00_MainContent_fmwOrder_TextBox1")),expNum);
driver.findElement(By.cssSelector("a#ctl00_MainContent_fmwOrder_InsertButton")).click();
//Verify that user name appears on the table
driver.findElement(By.xpath("//a[text()='View all orders']")).click();
WebElement el = driver.findElement(By.cssSelector("#ctl00_MainContent_orderGrid > tbody > tr:nth-child(2) > td:nth-child(2)"));
String name=el.getText();
String expName = customerName;
Assert.assertEquals(name, expName);
System.out.println("User name on the table");
//Edit and update user's State, assert the new updated State is displayed and save the changes.
driver.findElement(By.xpath("//table[@id='ctl00_MainContent_orderGrid']/tbody/tr[2]/td[13]")).click();
sendText(driver.findElement(By.cssSelector("input#ctl00_MainContent_fmwOrder_TextBox4")), "New Jersey");
driver.findElement(By.xpath("//a[@id='ctl00_MainContent_fmwOrder_UpdateButton']")).click();
WebElement el1 = driver.findElement(By.cssSelector("#ctl00_MainContent_orderGrid > tbody > tr:nth-child(2) > td:nth-child(8)"));
String state=el1.getText();
String expState = "New Jersey";
Assert.assertEquals(state, expState);
System.out.println("State updated succesfully");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void createUser(User user) {\n\n\t}",
"public void createUser(User user);",
"UserCreateResponse createUser(UserCreateRequest request);",
"CreateUserResult createUser(CreateUserRequest createUserRequest);",
"private void createAccount()\n {\n // check for blank or invalid inputs\n if... | [
"0.77515036",
"0.7619387",
"0.7576411",
"0.7450125",
"0.73990643",
"0.7350841",
"0.7296505",
"0.7265082",
"0.72511756",
"0.72032183",
"0.71980906",
"0.7191268",
"0.71835417",
"0.7063725",
"0.7057419",
"0.7012626",
"0.7005776",
"0.69875324",
"0.6940025",
"0.6908295",
"0.690608... | 0.0 | -1 |
Adds the given effect to the Wizard's current effects. | public synchronized void addEffect(SpellEffect effect) {
effects.add(effect);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void effectAdded(Effect effect) {\n\t}",
"public void addEffect(BattleEffect btlEff) {\n effectsToApply.add(btlEff);\n effectsToRemove.add(btlEff);\n }",
"public void registerEffect(IEnvironmentalEffect effect);",
"public void addEffects() {\r\n\t\tfor (BlinkingButton eff... | [
"0.7140714",
"0.6908591",
"0.6552919",
"0.6529467",
"0.6462166",
"0.6378903",
"0.6344993",
"0.62429154",
"0.62098",
"0.6163465",
"0.6153484",
"0.6132145",
"0.5915065",
"0.58966094",
"0.5893174",
"0.58548945",
"0.57369936",
"0.57196474",
"0.56873757",
"0.5671758",
"0.564135",
... | 0.7478728 | 0 |
Gets a list of all of the SpellEffect objects of the given type which are currently affecting this wizard. | public synchronized List<SpellEffect> getEffect(String effectName) {
if (!hasEffect(effectName)) {
return null;
}
List<SpellEffect> currentEffects = new ArrayList<>();
for (SpellEffect effect : effects) {
if (effect.getName().equals(effectName)) {
currentEffects.add(effect);
}
}
return currentEffects;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public List<Effect> getEffect() {\n \treturn new ArrayList<Effect>(effects);\n }",
"public List<Effect> getEffects()\n {\n return m_effects;\n }",
"public List<String> getEffects(@Nonnull final Entity entity) {\n\t\tfinal IEntityFX caps = CapabilityEntityFXData.getCapability(entity);\... | [
"0.63166434",
"0.6137176",
"0.58613455",
"0.5853994",
"0.57163715",
"0.57032734",
"0.5619779",
"0.5589201",
"0.5579073",
"0.5489782",
"0.54682595",
"0.52966374",
"0.5244673",
"0.5135587",
"0.5085562",
"0.501606",
"0.4992593",
"0.49041793",
"0.48994118",
"0.4847061",
"0.483440... | 0.619116 | 1 |
Removes the given effect from the wizard if they are indeed being afflicted by it. This does NOT remove the effect's presence on the wizard. That must be done manually. | public synchronized void removeEffectFromList(SpellEffect effect) {
if (effects.contains(effect)) {
effects.remove(effect);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void doRemove()\n {\n Player target = p.getServer().getPlayer(targetID);\n if (target == null)\n return;\n\n // teleport them back to their original location\n target.teleport(originalLocation);\n\n // remove flying and immobolize effects\n ... | [
"0.6662432",
"0.6215105",
"0.6105289",
"0.606989",
"0.5954381",
"0.58810776",
"0.574994",
"0.57047117",
"0.56585664",
"0.5649567",
"0.56328195",
"0.5579687",
"0.55543494",
"0.54944354",
"0.54441595",
"0.53457075",
"0.5335625",
"0.5320414",
"0.5304216",
"0.52878946",
"0.523007... | 0.686243 | 0 |
Adds the given spell to the Wizard's known spell list if they do not already know it. | public void addSpell(Spell spell) {
if (!knownSpells.contains(spell)) {
knownSpells.add(spell);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void addSpell(Thing t) {\r\n \t\tString name=t.getString(\"Name\");\r\n \t\tspellNames.add(name);\r\n \t\t\r\n \t\tGame.assertTrue(t.getFlag(\"IsSpell\"));\r\n \r\n \t\tint level=t.getStat(\"Level\");\r\n \t\tGame.assertTrue(level>0);\r\n \t\tt.set(\"LevelMin\",level);\r\n \r\n \t\tint skillMin=(t.g... | [
"0.6669823",
"0.64733803",
"0.63510793",
"0.6130934",
"0.6130934",
"0.6130934",
"0.61228895",
"0.60937446",
"0.60461384",
"0.60358655",
"0.59031516",
"0.5881135",
"0.5868368",
"0.58316755",
"0.5757805",
"0.57283163",
"0.5641872",
"0.5632415",
"0.5624393",
"0.5614305",
"0.5605... | 0.8223574 | 0 |
Sets the selected spell for this wizard. The selected spell will be casted when the player interacts with their wand. | public void setSelectedSpell(Spell spell) {
selectedSpell = spell;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\t\tpublic Spell pickSpell(Spell[] spells, EntityWisp wisp) {\n\t\t\t\treturn getSpellToUse();\n\t\t\t}",
"@Override\r\n\tpublic void onSpellHit(Spell spell) {\n\t\tif (spell.getName().contains(\"Antlitz der Göttin\")){\r\n\t\t\tcaster.setFlying(false);\r\n\t\t\tcaster.setAllowFlight(false);\r\n\t\t... | [
"0.58736205",
"0.564999",
"0.5633935",
"0.5633935",
"0.5633935",
"0.56075263",
"0.5472076",
"0.5459593",
"0.5401448",
"0.53883904",
"0.52863574",
"0.52107805",
"0.51820993",
"0.51808685",
"0.51697093",
"0.51569027",
"0.51505154",
"0.5099177",
"0.5039763",
"0.5011612",
"0.4993... | 0.8249489 | 0 |
Sets the current page index of the wizard in their Known Spells GUI. Given a value less than 1 or greater than the maximum page limit will cause the index to remain the same. | public void setCurrentPageIndex(int pageIndex) {
if (pageIndex > 0 && pageIndex <= getMaxPageNumber()) {
currentPageIndex = pageIndex;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setPage(int index) throws IndexOutOfBoundsException;",
"public void setPage(int value) {\n this.page = value;\n }",
"public void setPageIncrement( final int value ) {\n checkWidget();\n if( value >= 1 && value <= maximum - minimum ) {\n pageIncrement = value;\n }\n }",
"pub... | [
"0.6828109",
"0.65987545",
"0.6487562",
"0.6356165",
"0.62964004",
"0.6157961",
"0.6148551",
"0.6128514",
"0.6125825",
"0.59875274",
"0.5974333",
"0.5973246",
"0.593957",
"0.5904613",
"0.5868332",
"0.5858459",
"0.5823885",
"0.58009654",
"0.5735676",
"0.57349545",
"0.5715657",... | 0.64755386 | 3 |
Creates the stage for Post Details | public PostDetails(Post post, String userid) {
postStage = new Stage();
postStage.initModality(Modality.APPLICATION_MODAL);
postDetailsController = new PostDetailsController();
userId = userid;
bp = new BorderPane();
bp.setPadding(new Insets(5));
bp.setTop(showTitle(post));
bp.setCenter(showPostDetails(post));
bp.setBottom(showReplyList(post));
Scene mainScene = new Scene(bp, 1000, 600);
postStage.setScene(mainScene);
postStage.show();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void CreateStage(int id, String name, String title,\n\t\t\tString description) throws Exception {\n\t\ttry {\n\t\t\tString query = \"INSERT INTO stage VALUES ('\" + id + \"', '\" + description + \"', '0', '\"+ name + \"', '\" + title + \"', '0')\";\n\t\t\tstatement.execute(query); \n\t\t} catch (Exceptio... | [
"0.6155691",
"0.6086447",
"0.60396326",
"0.57346463",
"0.56497633",
"0.5648374",
"0.5621819",
"0.555878",
"0.551881",
"0.5513078",
"0.548688",
"0.54825026",
"0.54745865",
"0.5452223",
"0.5451578",
"0.5430193",
"0.5375346",
"0.53720003",
"0.53720003",
"0.53720003",
"0.5355367"... | 0.6169905 | 0 |
Displays the reply List in TableView | private VBox showReplyList(Post post) {
ArrayList<Reply> reply = Post.getReplies(post.getId());
TableView<Reply> tableView = new TableView<Reply>();
if(post instanceof Event) {
TableColumn<Reply, String> responder = new TableColumn<Reply, String>("Users Participating in the Event");
responder.setCellValueFactory(new PropertyValueFactory<>("responderId"));
responder.setMinWidth(500);
responder.setStyle("-fx-alignment: CENTER");
tableView.getColumns().add(responder);
for(int i = 0; i < reply.size(); i++) {
tableView.getItems().add(reply.get(i));
}
}
else if(post instanceof Job || post instanceof Sale) {
TableColumn<Reply, String> responder = new TableColumn<Reply, String>("Responder ID");
responder.setCellValueFactory(new PropertyValueFactory<>("responderId"));
responder.setStyle("-fx-alignment: CENTER");
responder.setMinWidth(150);
TableColumn<Reply, Double> offerValue = new TableColumn<Reply, Double>("Offer Amount");
offerValue.setCellValueFactory(new PropertyValueFactory<>("value"));
offerValue.setStyle("-fx-alignment: CENTER");
offerValue.setMinWidth(150);
tableView.getColumns().add(responder);
tableView.getColumns().add(offerValue);
for (int i = reply.size() - 1; i >= 0; i--) {
tableView.getItems().add(reply.get(i));
}
}
Text replyTitle = new Text("Reply Details");
replyTitle.setFont(Font.font("Tahoma", FontWeight.BOLD, 20));
VBox vbox = new VBox(replyTitle, tableView);
return vbox;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic List<ReplyDTO> listReply(Integer bno) {\n\t\treturn replyMapper.list(bno);\r\n\t}",
"@RequestMapping(\"/reply_view\")\n\tpublic String reply_view(HttpServletRequest request, Model model) {\n\t\tBDto dto = dao.reply_view(request.getParameter(\"bId\"));\n\t\tmodel.addAttribute(\"reply_view\",... | [
"0.6054958",
"0.59757745",
"0.595334",
"0.5891346",
"0.5863859",
"0.5819005",
"0.57870424",
"0.5726953",
"0.5669626",
"0.5656264",
"0.56487495",
"0.5625174",
"0.5617337",
"0.560951",
"0.55930847",
"0.5539735",
"0.55351686",
"0.55336505",
"0.55112946",
"0.55108607",
"0.5489681... | 0.79105943 | 0 |
Displays the Post Details in GridPane | public static GridPane showPostDetails(Post post) {
GridPane grid = new GridPane();
grid.setHgap(10);
grid.setVgap(10);
grid.setPadding(new Insets(20, 20, 20, 20));
String imagePath = post.getImagePath();
if(imagePath.equalsIgnoreCase("none") || imagePath.isEmpty()) {
imagePath = "../../Images/No_image_available.jpg";
}
ImageView image = new ImageView(new Image("file:" + imagePath, 300, 300, false, false));
grid.add(image, 0, 0);
Button uploadImage = new Button("Upload Image");
uploadImage.setOnAction(PostDetailsController.uploadImageHandler(postStage, post));
HBox hbBtn = new HBox(300);
hbBtn.getChildren().add(uploadImage);
hbBtn.setAlignment(Pos.BOTTOM_CENTER);
grid.add(hbBtn, 0, 1);
VBox details = new VBox();
details.setSpacing(10);
details.getChildren().add(getLabel("Post ID: ", post.getId(), false, "string"));
details.getChildren().add(getLabel("Title: ", post.getTitle(), true, "string"));
details.getChildren().add(getLabel("Description: ", post.getDescription(), true, "string"));
details.getChildren().add(getLabel("Creator ID: ", post.getCid(), false, "string"));
details.getChildren().add(getLabel("Status: ", post.getStatus(), false, "string"));
if(post instanceof Event) {
details.getChildren().add(getLabel("Venue: ", ((Event) post).getVenue(), true, "string"));
details.getChildren().add(getLabel("Date: ", ((Event) post).getDate(), true, "date"));
details.getChildren().add(getLabel("Capacity: ", Integer.toString(((Event) post).getCapacity()), true, "int"));
details.getChildren().add(getLabel("Attendee Count: ", Integer.toString(((Event) post).getAttcount()), false, "int"));
}
else if(post instanceof Job) {
details.getChildren().add(getLabel("Proposed Price: ", Double.toString(((Job) post).getProprice()), true, "double"));
details.getChildren().add(getLabel("Lowest Offer: ", Double.toString(((Job) post).getLowoffer()), false, "double"));
}
else {
details.getChildren().add(getLabel("Highest Offer: ", Double.toString(((Sale) post).getHighoffer()), false, "double"));
details.getChildren().add(getLabel("Minimum Raise: ", Double.toString(((Sale) post).getMinraise()), true, "double"));
details.getChildren().add(getLabel("Asking Price: ", Double.toString(((Sale) post).getAskprice()), true, "double"));
}
grid.add(details, 3, 0);
Button closePost = new Button("Close Post");
closePost.setOnAction(PostDetailsController.closePostHandler(userId));
Button deletePost = new Button("Delete Post");
deletePost.setOnAction(PostDetailsController.deletePostHandler(userId));
Button savePost = new Button("Save(after edit)");
savePost.setOnAction(PostDetailsController.savePostHandler(userId, post));
Region region1 = new Region();
HBox.setHgrow(region1, Priority.ALWAYS);
Region region2 = new Region();
HBox.setHgrow(region2, Priority.ALWAYS);
HBox btn = new HBox(closePost, region1, deletePost, region2, savePost);
btn.setAlignment(Pos.BOTTOM_CENTER);
grid.add(btn, 3, 1, 10, 1);
return grid;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void showPosts() {\n\t\tpostsList.getItems().clear();\n\t\tList<Text> toPost = getPosts();\n\t\tfor(Text text : toPost) {\n\t\t\tSystem.out.println(text);\n\t\t\ttext.wrappingWidthProperty().bind(postsList.widthProperty());\n\t\t\tpostsList.getItems().add(text);\n\t\t}\n\t}",
"public PostDetails(Post post... | [
"0.6705479",
"0.6677153",
"0.66252214",
"0.66221464",
"0.6606093",
"0.6498634",
"0.6134316",
"0.60797566",
"0.5999843",
"0.5955827",
"0.5942468",
"0.59243673",
"0.58998954",
"0.58811414",
"0.5791189",
"0.5786492",
"0.56229097",
"0.55149144",
"0.5498204",
"0.5449209",
"0.53945... | 0.8444555 | 0 |
Refreshes the content of Post Details View | public static void refreshPostDetails(Post post) {
bp.setCenter(showPostDetails(post));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void onRefresh() {\n\t\tmodel.getPostsByType(userId, 0, method, postListiner);\n\t\tcurrentPage = 0;\n\n\t}",
"@Override\n public void onRefresh() {\n viewModel.fetchAllPostsASync();\n }",
"@Override\n public void onRefresh() {\n fetchPosts();\n ... | [
"0.7111272",
"0.69850457",
"0.6859844",
"0.67468476",
"0.6714722",
"0.66555303",
"0.66277933",
"0.66260594",
"0.6615243",
"0.6566589",
"0.6556046",
"0.6472091",
"0.63339573",
"0.6202221",
"0.6180332",
"0.6156532",
"0.6153058",
"0.61529374",
"0.6135263",
"0.6114261",
"0.609684... | 0.70799905 | 1 |
Displays the title pf the Post | private HBox showTitle(Post post) {
Button backMenu = new Button("Back To Main Window");
backMenu.setOnAction(PostDetailsController.backMenuhandler());
Region region1 = new Region();
HBox.setHgrow(region1, Priority.ALWAYS);
Region region2 = new Region();
HBox.setHgrow(region2, Priority.ALWAYS);
Text title = new Text(post.getId() + " - " + post.getTitle() + " : Post Details");
title.setFont(Font.font("Tahoma", FontWeight.SEMI_BOLD, 30));
HBox titleBox = new HBox(backMenu, region1, title, region2);
return titleBox;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setTitle(String postTitle) {\n\t\tthis.postTitle = postTitle;\n\t}",
"@Override\n\tpublic java.lang.String getTitle() {\n\t\treturn _news_Blogs.getTitle();\n\t}",
"@Override\r\n\tpublic String getTitle() {\n\t\treturn title;\r\n\t}",
"@Override\r\n public String getTitle() {\n return ti... | [
"0.770738",
"0.74908453",
"0.74208474",
"0.7317269",
"0.73166",
"0.72781473",
"0.7278093",
"0.7250678",
"0.72392714",
"0.72389865",
"0.72389865",
"0.7212313",
"0.72053707",
"0.7193175",
"0.7193175",
"0.71704507",
"0.71704507",
"0.71704507",
"0.71704507",
"0.71704507",
"0.7170... | 0.7446014 | 2 |
Creates a label with given message and Value along with its corresponding TextField | private static GridPane getLabel(String message, String value, boolean editable, String type) {
value = postDetailsController.lineBreaker(value);
GridPane grid = new GridPane();
Label label = new Label (message);
label.setFont(Font.font("Tahoma", FontWeight.SEMI_BOLD, 14));
TextField tf = new TextField();
tf.setText(value);
tf.setEditable(editable);
tf.focusedProperty().addListener((observableValue, oldValue, newValue) -> {
if(!newValue) {
if(type.equalsIgnoreCase("int")) {
if(!Pattern.matches("^[1-9]\\d*$", tf.getText().trim())) {
Alert invalidInput = AlertController.pushAlerts("WARNING", new InvalidInputException(" Enter a valid integer!").toString());
invalidInput.show();
}
}
else if(type.equalsIgnoreCase("date")) {
if(!Pattern.matches("^(0[1-9]|[12][0-9]|3[01])[- /.](0[1-9]|1[012])[- /.](19|20)\\d\\d$", tf.getText().trim())) {
Alert invalidInput = AlertController.pushAlerts("WARNING", new InvalidInputException(" Enter a valid date!").toString());
invalidInput.show();
}
}
else if(type.equalsIgnoreCase("double")) {
if(!Pattern.matches("^(-?)(0|([1-9][0-9]*))(\\.[0-9]+)?$", tf.getText().trim())) {
Alert invalidInput = AlertController.pushAlerts("WARNING", new InvalidInputException(" Enter a valid amount!").toString());
invalidInput.show();
}
}
}
});
grid.add(label, 0, 0);
grid.add(tf, 1, 0);
return grid;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Label createInputLabel(String lblValue) {\n\t\tLabel lbl = new Label(lblValue);\n\t\tlbl.setFont(Font.font(\"Arial\", FontWeight.SEMI_BOLD, 20));\n\t\treturn lbl;\n\t}",
"private void createTextFieldLabels() {\n // initialize empty textfield\n this.name = new TextField();\n this.id = new T... | [
"0.6871734",
"0.6842215",
"0.6299033",
"0.62978566",
"0.62972194",
"0.6224885",
"0.61670506",
"0.61624205",
"0.61451757",
"0.61371446",
"0.61151725",
"0.60567373",
"0.6022786",
"0.5994585",
"0.5971556",
"0.590334",
"0.5885131",
"0.58527035",
"0.58471835",
"0.5839525",
"0.5823... | 0.5984587 | 14 |
Method to fing whether the window is closed | public static boolean isWindowClosed() {
return windowClosed;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void windowClosed();",
"public boolean isCloseRequested(){\n return glfwWindowShouldClose(handle);\n }",
"public boolean requestCloseWindow() \n {\n return true; \n }",
"public boolean onClose() {\n\t\topenScreen(new Noticias());\n\t\treturn true ;\n\t}",
"public void windowC... | [
"0.77705216",
"0.7740892",
"0.7705936",
"0.761948",
"0.7310597",
"0.72965956",
"0.7199879",
"0.7113671",
"0.7064343",
"0.70138526",
"0.69958174",
"0.6992868",
"0.69928586",
"0.6954177",
"0.69221723",
"0.69221723",
"0.69221723",
"0.69221723",
"0.6895564",
"0.6882769",
"0.68802... | 0.8178852 | 0 |
PeopleAttribute.java Interface to get the additional attribute of People. | public interface PeopleAttribute {
/**
* Dynamically get the defined additional attribute of People
* depending on their type
*
* @return pair of key indicating the label of the property
* and value as the actual value of the additional attribute
* @see Pair
*/
Pair<String, String> getAdditionalAttribute();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Pair<String, String> getAdditionalAttribute();",
"public PersonAttributeType getAttributeType() {\n return attributeType;\n }",
"IAttributes getAttributes();",
"public org.omg.uml.foundation.core.Attribute getAttribute();",
"public final EObject rulePerson() throws RecognitionException {\n ... | [
"0.7111916",
"0.62507504",
"0.61414313",
"0.5932971",
"0.59306806",
"0.5928555",
"0.588249",
"0.58748966",
"0.5802332",
"0.57359457",
"0.57016885",
"0.57016885",
"0.5670859",
"0.5625233",
"0.55846107",
"0.5581859",
"0.55697125",
"0.5552445",
"0.55359685",
"0.55359685",
"0.553... | 0.7832523 | 0 |
Dynamically get the defined additional attribute of People depending on their type | Pair<String, String> getAdditionalAttribute(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface PeopleAttribute {\n\n /**\n * Dynamically get the defined additional attribute of People\n * depending on their type\n *\n * @return pair of key indicating the label of the property\n * and value as the actual value of the additional attribute\n * @see Pair\n */\n ... | [
"0.7225494",
"0.61817765",
"0.58545923",
"0.57666725",
"0.5752372",
"0.5589117",
"0.555414",
"0.54720515",
"0.545585",
"0.543731",
"0.5429581",
"0.53484464",
"0.53414005",
"0.5323454",
"0.5308308",
"0.52709067",
"0.5236744",
"0.5213917",
"0.5121746",
"0.51161444",
"0.5107485"... | 0.5568795 | 6 |
Sauvegarde le tableau des records dans un fichier | public static void sauvegarder(TableauRecords tableauRecords) {
File file = new File(HIGHSCORES_FILE);
PrintWriter writer;
try {
if(!file.exists()) {
file.getParentFile().mkdirs();
file.createNewFile();
}
writer = new PrintWriter(file);
}
catch (Exception e) {
e.printStackTrace();
return;
}
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
for(Record record : tableauRecords) {
writer.print(record.getNom() + "\t" + record.getScore() + "\t" + sdf.format(record.getDate()) + "\n");
}
writer.close();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public synchronized void saveTable() \n\t{\n\t\ttry {\n\t\t\tFileOutputStream fos = new FileOutputStream(tableFile);\n\t\t\t\n\t\t\tObjectOutputStream oos = new ObjectOutputStream(fos);\n\t\t\toos.writeObject(htRecords);\n\t\t\toos.close();\n\t\t\tfos.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tthrow ... | [
"0.6205184",
"0.61504096",
"0.6086403",
"0.6054687",
"0.6021693",
"0.5952179",
"0.5929593",
"0.5908672",
"0.5847858",
"0.5826207",
"0.5805761",
"0.57974434",
"0.5794769",
"0.57822824",
"0.57728004",
"0.57680744",
"0.5752242",
"0.57479596",
"0.57456326",
"0.5737319",
"0.572514... | 0.61551934 | 1 |
Add a selected part to the current product | @FXML
void onActionAddPart(ActionEvent event) {
Part part = TableView1.getSelectionModel().getSelectedItem();
if(part == null)
return;
else {
product.getAllAssociatedParts().add(part);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@FXML void onActionModifyProductAdd(ActionEvent event) {\n Part selectedPart = partTableView.getSelectionModel().getSelectedItem();\n tmpAssociatedParts.add(selectedPart);\n }",
"@Override\r\n\tpublic void BulidPartA() {\n\t product.add(\"part A\");\r\n\r\n\t}",
"public void addPart() {\n\n ... | [
"0.7010928",
"0.6795738",
"0.6718567",
"0.66646194",
"0.66245425",
"0.65783066",
"0.64848745",
"0.64675426",
"0.64120144",
"0.6324593",
"0.6311102",
"0.6304607",
"0.6247398",
"0.6231162",
"0.6194093",
"0.61244637",
"0.6082852",
"0.6080242",
"0.60636324",
"0.59831625",
"0.5965... | 0.70300275 | 0 |
Delete selected part from the current product | @FXML
void onActionDeletePart(ActionEvent event) {
Part part = TableView2.getSelectionModel().getSelectedItem();
if(part == null)
return;
//EXCEPTION SET 2 REQUIREMENT
Alert alert = new Alert(Alert.AlertType.CONFIRMATION);
alert.setHeaderText("You are about to delete the product you have selected!");
alert.setContentText("Are you sure you wish to continue?");
Optional<ButtonType> result = alert.showAndWait();
if (result.get() == ButtonType.OK){
product.deleteAssociatedPart(part.getId());
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void deletePart()\n {\n ObservableList<Part> partRowSelected;\n partRowSelected = partTableView.getSelectionModel().getSelectedItems();\n if(partRowSelected.isEmpty())\n {\n alert.setAlertType(Alert.AlertType.ERROR);\n alert.setContentText(\"Please select... | [
"0.7831314",
"0.7224282",
"0.721199",
"0.7199201",
"0.71844757",
"0.70818007",
"0.70762306",
"0.7010362",
"0.69632685",
"0.6957476",
"0.6945326",
"0.6903465",
"0.6807709",
"0.6708588",
"0.67023176",
"0.6699",
"0.66728336",
"0.6547586",
"0.64520043",
"0.64442116",
"0.64178413"... | 0.7195604 | 4 |
Save the product method | @FXML
void onActionSaveProduct(ActionEvent event) throws IOException {
int id = Inventory.ProductCounter();
String name = AddProductName.getText();
int stock = Integer.parseInt(AddProductStock.getText());
Double price = Double.parseDouble(AddProductPrice.getText());
int max = Integer.parseInt(AddProductMax.getText());
int min = Integer.parseInt(AddProductMin.getText());
Inventory.addProduct(new Product(id, name, price, stock, min, max, product.getAllAssociatedParts()));
//EXCEPTION SET 1 REQUIREMENT
if(min > max){
Alert alert = new Alert(Alert.AlertType.ERROR);
alert.setTitle("ERROR");
alert.setContentText("Quantity minimum is larger than maximum.");
alert.showAndWait();
return;
} if (stock > max){
Alert alert = new Alert(Alert.AlertType.ERROR);
alert.setTitle("ERROR");
alert.setContentText("Inventory quantity exceeds maximum stock allowed.");
alert.showAndWait();
return;
}
changeScreen(event, "MainScreen.fxml");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void saveProduct(Product product);",
"public void saveProduct(Product product);",
"@Override\r\n\tpublic void saveProduct(Product product) throws Exception {\n\r\n\t}",
"public boolean save(Product product);",
"Product save(Product product);",
"public void save() {\n ProductData.saveData(tree);\n }",... | [
"0.75219506",
"0.74355346",
"0.7177909",
"0.7176308",
"0.6937885",
"0.6932502",
"0.6851578",
"0.6582494",
"0.6466794",
"0.64560765",
"0.6376024",
"0.62911445",
"0.6278309",
"0.62382966",
"0.61910623",
"0.6177321",
"0.61766493",
"0.60811603",
"0.60275215",
"0.6023106",
"0.5989... | 0.0 | -1 |
Exit to the main screen | @FXML
void onActionDisplayMainScreen(ActionEvent event) throws IOException {
//EXCEPTION SET 2 REQUIREMENT
Alert alert = new Alert(Alert.AlertType.CONFIRMATION);
alert.setTitle("Confirmation Dialog");
alert.setHeaderText("Changes not Saved");
alert.setContentText("Would you like to continue?");
Optional<ButtonType> result = alert.showAndWait();
if (result.get() == ButtonType.OK){
stage = (Stage)((Button)event.getSource()).getScene().getWindow();
scene = FXMLLoader.load(getClass().getResource("MainScreen.fxml"));
stage.setScene(new Scene(scene));
stage.show();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void exit() {\n Intent intent = new Intent(this, MainActivity.class);\n this.startActivity(intent);\n }",
"public void exit()\r\n\t{\r\n\t\tmainFrame.exit();\r\n\t}",
"private void Exit() {\r\n this.dispose();\r\n app.setVisible(true);\r\n }",
"public void exitToMain(... | [
"0.7974104",
"0.77808374",
"0.75397533",
"0.7536224",
"0.7421128",
"0.7335452",
"0.73157513",
"0.7264323",
"0.7214802",
"0.719996",
"0.71793425",
"0.7174651",
"0.7155703",
"0.71520156",
"0.714857",
"0.7145228",
"0.71408427",
"0.71390826",
"0.71235543",
"0.71203434",
"0.710991... | 0.0 | -1 |
Evam Website Contact Form Automation | public static void main(String[] args) {
System.setProperty("webdriver.gecko.driver","C:\\geckodriver.exe");
WebDriver driver = new FirefoxDriver();
String baseUrl = "https://evam.com/";
// STEP 1 - launch Firefox and Visit EVAM Website
driver.get(baseUrl);
// Step 2 - Go to Contact tab
//Find Contact Link (HTML Element) with the help of xPath and then perform click operation to open the contact page
driver.findElement(By.xpath("(//span[contains(.,'Contact')])[1]")).click();
// Step 3- Copy all EVAM office addresses and paste them into the Message field of the form by pressing enter between each of them to make it easy to read.
// 1) Find out Span (HTML Element)t with xpath and get USA office address with getText method and finally store the text into a string variable called AddressUSA
String AddressUSA = driver.findElement(By.xpath("/html/body/div[2]/div/div[1]/div/div/div/div/div/div[10]/div[1]/div/div[1]/div/div[2]/p[2]/span")).getText();
// 2) Find the Message Text Area Element and then send the USA address value to Message with the help of sendkeys() method
driver.findElement(By.xpath("//textarea[@name='textarea-274']")).sendKeys(AddressUSA);
// 3) Finally to introduce a new line by replicating/impersonating the ENTER button I use Keys.ENTER in sendKeys() method
driver.findElement(By.xpath("//textarea[@name='textarea-274']")).sendKeys(Keys.ENTER);
// 1) Find out Span (HTML Element) with xpath and get Netherland office address with getText() method and finally store the text into a string variable called AddressNetherland
String AddressNetherland = driver.findElement(By.xpath("/html/body/div[2]/div/div[1]/div/div/div/div/div/div[10]/div[1]/div/div[2]/div/div[2]/p[2]/span")).getText();
// 2) Find the Message Text Area Element and then send the Netherland address value to Message with the help of sendkeys() method
driver.findElement(By.xpath("//textarea[@name='textarea-274']")).sendKeys(AddressNetherland);
// 3) Finally to introduce a new line by replicating/impersonating the ENTER button I use Keys.ENTER in sendKeys() method
driver.findElement(By.xpath("//textarea[@name='textarea-274']")).sendKeys(Keys.ENTER);
// 1) Find out Span (HTML Element) with xpath and get Turkey office address with getText() method and finally store the text into a string variable called AddressTurkey
String AddressTurkey = driver.findElement(By.xpath("/html/body/div[2]/div/div[1]/div/div/div/div/div/div[10]/div[1]/div/div[1]/div/div[3]/div/div/div[2]/p[2]/span")).getText();
// 2) Find the Message Text Area Element and then send the Turkey address value to Message with the help of sendkeys() method
driver.findElement(By.xpath("//textarea[@name='textarea-274']")).sendKeys(AddressTurkey);
// 3) Finally to introduce a new line by replicating/impersonating the ENTER button I use Keys.ENTER in sendKeys() method
driver.findElement(By.xpath("//textarea[@name='textarea-274']")).sendKeys(Keys.ENTER);
// 1) Find out Span (HTML Element) with xpath and get Russian office address with getText() method and finally store the text into a string variable called AddressRussia
String AddressRussia = driver.findElement(By.xpath("/html/body/div[2]/div/div[1]/div/div/div/div/div/div[10]/div[1]/div/div[2]/div/div[4]/p[2]/span")).getText();
// 2) Find the Message Text Area Element and then send the Russian address value to Message with the help of sendkeys() method
driver.findElement(By.xpath("//textarea[@name='textarea-274']")).sendKeys(AddressRussia);
// 3) Finally to introduce a new line by replicating/impersonating the ENTER button I use Keys.ENTER in sendKeys() method
driver.findElement(By.xpath("//textarea[@name='textarea-274']")).sendKeys(Keys.ENTER);
// Step 4 - Fill out Name, Email, Phone and Company Information
// First of all find HTML Elements one by one for (Name, Email, Phone and Company) and then use sendKeys() method to send the values in the text fields
driver.findElement(By.xpath("//input[@name='text-925']")).sendKeys("Hammad Afzal");
driver.findElement(By.xpath("//input[@name='email-705']")).sendKeys("hammad.shiekhh@gmail.com");
driver.findElement(By.xpath("//input[@type='tel']")).sendKeys("066987452");
driver.findElement(By.xpath("//input[contains(@name,'text-926')]")).sendKeys("Test Company");
try {
Thread.sleep(5000);
} catch (InterruptedException e) {
System.err.println("There was some error in Thread.sleep()");
}
// Step 5 - Find Span (HTML Element) with xpath for send button and then use to click() to submit the form
driver.findElement(By.xpath("(//input[contains(@type,'submit')])[2]")).click();
//close Firefox
driver.close();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void contactUs() {\n }",
"@Override\n public void onClick(View view) {\n final EditText name= (EditText) findViewById(R.id.namebox);\n String nam= name.getText().toString();\n final EditText message= (EditText) findViewById(R.id.messagebox);\n ... | [
"0.5863956",
"0.558643",
"0.55632174",
"0.54946375",
"0.5475692",
"0.54412675",
"0.5359625",
"0.535896",
"0.5351976",
"0.53328305",
"0.53154063",
"0.5273816",
"0.52711535",
"0.5235",
"0.52237093",
"0.5209095",
"0.5194641",
"0.5184695",
"0.5179626",
"0.5174834",
"0.51664263",
... | 0.62772876 | 0 |
create a cursor of batch size 1 with 4 results | @Test
public void cursorDirtyRead() throws IOException {
final ArangoCursor<VPackSlice> cursor = arango.db().query("FOR i IN 1..4 RETURN i",
new AqlQueryOptions().batchSize(1).allowDirtyRead(true), VPackSlice.class);
// get the initial result
assertThat(cursor.hasNext(), is(true));
assertThat(cursor.next().isInteger(), is(true));
// get the second batch
assertThat(cursor.hasNext(), is(true));
assertThat(cursor.next().isInteger(), is(true));
// close the cursor before fetching the all batches
cursor.close();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private CompletableFuture<Iterator<T>> batch() {\n return batch.thenCompose(iterator -> {\n if (iterator != null && !iterator.hasNext()) {\n batch = fetch(iterator.position());\n return batch.thenApply(Function.identity());\n }\n return CompletableFuture.completedFuture(... | [
"0.6362847",
"0.6227794",
"0.6123314",
"0.6031825",
"0.6004282",
"0.59581715",
"0.57572895",
"0.5666443",
"0.566261",
"0.56387955",
"0.56340957",
"0.56116587",
"0.55920005",
"0.55785185",
"0.55530477",
"0.55111635",
"0.55066663",
"0.5486087",
"0.5469905",
"0.5447607",
"0.5383... | 0.5841132 | 6 |
constructors Construct the ObservableHashMap. | public ObservableHashMap()
{
super();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public MyHashMap() {\n\n }",
"public MyHashMap() {\n\n }",
"public MyHashMap() {\n map = new HashMap();\n }",
"public TimeMap2() {\n map = new HashMap<>();\n }",
"public OwnMap() {\n super();\n keySet = new OwnSet();\n }",
"public MyHashMap() {\n ... | [
"0.7098961",
"0.70490575",
"0.7047082",
"0.6729185",
"0.6596694",
"0.65026563",
"0.6468164",
"0.6461102",
"0.6450804",
"0.6446489",
"0.6441768",
"0.6430716",
"0.6408592",
"0.6316406",
"0.63020545",
"0.629755",
"0.6291719",
"0.6281322",
"0.6276204",
"0.6270558",
"0.6258586",
... | 0.8671729 | 0 |
Construct an ObservableHashMap using the specified settings. | public ObservableHashMap(int cInitialBuckets, float flLoadFactor, float flGrowthRate)
{
super(cInitialBuckets, flLoadFactor, flGrowthRate);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ObservableHashMap()\n {\n super();\n }",
"@Override\n public Map makeMap() {\n Map<Integer,String> testMap = new HashingMap<>();\n return testMap;\n }",
"void setHashMap();",
"private static <K, V> Map<K, V> newHashMap() {\n return new HashMap<K, V>();\n... | [
"0.6510632",
"0.5720502",
"0.5676312",
"0.56741154",
"0.55559075",
"0.55417496",
"0.5494256",
"0.54472005",
"0.54246426",
"0.5409511",
"0.52503675",
"0.5217228",
"0.5191282",
"0.5164242",
"0.5155389",
"0.5105572",
"0.50998163",
"0.5092381",
"0.5058808",
"0.5057887",
"0.505419... | 0.5108487 | 15 |
Map interface Store a value in the cache. | public synchronized V put(K key, V value)
{
// COH-6009: map mutations must be synchronized with event dispatch
// to ensure in-order delivery
return super.put(key, value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void cache(String key, T value) throws IOException;",
"@Override\n\tpublic V add(K key, V value) {\n\t\tcheckNullKey(key);\n\t\tcheckNullValue(value);\n\t\twriteLock.lock();\n\t\ttry {\n\t\t\treturn cache.put(key, value);\n\t\t} finally {\n\t\t\twriteLock.unlock();\n\t\t}\n\t}",
"void put(K id, V cacheable);",... | [
"0.7108277",
"0.68066853",
"0.68052775",
"0.67007554",
"0.66987807",
"0.6698071",
"0.6669664",
"0.66400754",
"0.6635292",
"0.6586619",
"0.6553824",
"0.6499802",
"0.6489612",
"0.64703065",
"0.63690084",
"0.63334996",
"0.6330168",
"0.63099045",
"0.6279285",
"0.62297076",
"0.618... | 0.58339655 | 61 |
Remove an entry from the cache. | public synchronized V remove(Object oKey)
{
// COH-6009: map mutations must be synchronized with event dispatch
// to ensure in-order delivery
Entry<K, V> entry = (Entry<K, V>) getEntryInternal(oKey);
if (entry == null)
{
return null;
}
else
{
removeEntryInternal(entry);
entry.onRemove();
return entry.getValue();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void removeEntry(CacheEntry entry) {\n\t\tmap.remove(entry.getKey());\n\t\tsize.decrementAndGet();\n\t\tindex.remove(entry.getItem());\n\t\tentry.delete();\n\t}",
"final CacheData<K, V> removeEntry(final Object key) {\r\n // find the place to put it and stuff it in, overwriting what was\r\n ... | [
"0.76227576",
"0.7295699",
"0.7284046",
"0.7281012",
"0.7181602",
"0.70945334",
"0.705839",
"0.699278",
"0.6931236",
"0.6885893",
"0.6879211",
"0.6838496",
"0.67939436",
"0.6753241",
"0.67518985",
"0.67511696",
"0.673605",
"0.6718756",
"0.67111206",
"0.67030054",
"0.6695446",... | 0.0 | -1 |
Remove everything from the cache, notifying any registered listeners. | public synchronized void clear()
{
clear(false);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n public void processRemoveAll()\r\n {\r\n final ICacheEvent<String> cacheEvent =\r\n createICacheEvent(getCacheName(), \"all\", ICacheEventLogger.REMOVEALL_EVENT);\r\n try\r\n {\r\n reset();\r\n }\r\n finally\r\n {\r\n ... | [
"0.7459041",
"0.72057265",
"0.7026044",
"0.70079774",
"0.70052475",
"0.7003056",
"0.7003056",
"0.70026183",
"0.696416",
"0.69410115",
"0.68964136",
"0.68450534",
"0.67452353",
"0.67405236",
"0.67080617",
"0.6672596",
"0.66593844",
"0.6658855",
"0.6653267",
"0.66217",
"0.66138... | 0.0 | -1 |
ObservableHashMap methods Removes all mappings from this map. Note: the removal of entries caused by this truncate operation will not be observable. | public synchronized void truncate()
{
clear(true);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final void clear() { _map.clear(); }",
"@Override\r\n public void clear() {\r\n map.clear();\r\n }",
"public void clear() {\n map.clear();\n }",
"public void clear() {\n map.clear();\n }",
"public void clearMap() {\n if (mMap != null) {\n mMap.clear();\n ... | [
"0.7233048",
"0.7203419",
"0.7165494",
"0.7061087",
"0.6992358",
"0.696973",
"0.6966147",
"0.69412744",
"0.6929842",
"0.69247454",
"0.6898066",
"0.6893612",
"0.687557",
"0.6615736",
"0.64882874",
"0.6486082",
"0.64858085",
"0.64391994",
"0.63667667",
"0.63451856",
"0.6341516"... | 0.0 | -1 |
event dispatching Accessor for the MapListenerSupport for subclasses. | protected MapListenerSupport getMapListenerSupport()
{
return m_listenerSupport;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface MapDrawableAdapterListener extends EventListener\r\n{\r\n /**\r\n * Signaled when an MapDrawableAdapters object is removed.\r\n *\r\n * @param drawableAdapter the MapDrawableAdapter whose object is being removed.\r\n */\r\n public abstract void mapDrawableAdapterRemoved(MapDr... | [
"0.67193687",
"0.6579881",
"0.634513",
"0.63082254",
"0.618145",
"0.6085692",
"0.6004714",
"0.5994349",
"0.596766",
"0.5966964",
"0.5899998",
"0.587233",
"0.5830482",
"0.5779031",
"0.57572776",
"0.57527065",
"0.573627",
"0.5692909",
"0.56202084",
"0.55597353",
"0.5559469",
... | 0.7188532 | 0 |
Determine if the OverflowMap has any listeners at all. | protected boolean hasListeners()
{
// m_listenerSupport defaults to null, and it is reset to null when
// the last listener unregisters
return m_listenerSupport != null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean hasListeners() {\n return !listeners.isEmpty();\n }",
"public boolean hasListeners() {\n return !listeners.isEmpty();\n }",
"protected boolean isBound(){\n\t\treturn !listeners.isEmpty();\n\t}",
"protected boolean isBound(){\n\t\treturn !listeners.isEmpty();\n\t}",
"publi... | [
"0.7390836",
"0.7390836",
"0.70138043",
"0.70138043",
"0.6655281",
"0.6541489",
"0.6431672",
"0.62609917",
"0.6226593",
"0.6187231",
"0.6163014",
"0.61068666",
"0.6086787",
"0.6066765",
"0.59027535",
"0.57910013",
"0.5786527",
"0.57831985",
"0.57811147",
"0.57551056",
"0.5745... | 0.6971299 | 4 |
Dispatch the passed event. | protected void dispatchEvent(MapEvent evt)
{
MapListenerSupport listenerSupport = getMapListenerSupport();
if (listenerSupport != null)
{
// the events can only be generated while the current thread
// holds the monitor on this map
synchronized (this)
{
listenerSupport.fireEvent(evt, false);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void dispatchEvent(AWTEvent event) {\n Object src = event.getSource();\n if (event instanceof ActiveEvent) {\n // This could become the sole method of dispatching in time.\n ((ActiveEvent)event).dispatch();\n } else if (src instanceof Component) {\n (... | [
"0.7904768",
"0.7272571",
"0.72512305",
"0.68494",
"0.6786171",
"0.6597427",
"0.6574",
"0.6509961",
"0.6502295",
"0.6479338",
"0.6468188",
"0.646444",
"0.6435914",
"0.6385975",
"0.63650674",
"0.6336792",
"0.63338035",
"0.63295764",
"0.63194656",
"0.6287242",
"0.6264493",
"0... | 0.66816604 | 6 |
inner class: Entry Factory method. This method exists to allow the Cache class to be easily inherited from by allowing the Entry class to be easily subclassed. | protected SafeHashMap.Entry<K, V> instantiateEntry()
{
return new Entry<>();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected SafeHashMap.Entry instantiateEntry()\n {\n return new Entry();\n }",
"protected Entry(){}",
"public interface IEntryFactory\n\t{\n\t\t/** \n\t\t Create an entry based on name alone\n\t\t \n\t\t @param name\n\t\t Name of the new EntryPointNotFoundException to create\n\t\t \n\t\t @... | [
"0.7681215",
"0.7289853",
"0.69751114",
"0.6892142",
"0.66820604",
"0.656961",
"0.6464069",
"0.64534056",
"0.6452454",
"0.63194704",
"0.63051903",
"0.62765366",
"0.6274644",
"0.62711453",
"0.621328",
"0.6197454",
"0.612877",
"0.6126041",
"0.61137617",
"0.6056163",
"0.6006508"... | 0.7462897 | 1 |
Map.Entry interface This method is invoked when the containing Map has actually added this Entry to itself. | @SuppressWarnings("unchecked")
protected void onAdd()
{
// issue add notification
ObservableHashMap map = ObservableHashMap.this;
if (map.hasListeners())
{
map.dispatchEvent(new MapEvent(map, MapEvent.ENTRY_INSERTED,
getKey(), null, getValue()));
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n synchronized public void addEntry(Entry e) throws RemoteException {\n if (this.map.containsKey(e.getHash())) {\n return;\n }\n //System.out.println(\"Mapper.addEntry() :: entry=\"+e.getHash()+\",\"+e.getLocation());\n this.map.put(e.getHash(), e.getLocation());... | [
"0.7157696",
"0.69664335",
"0.68268424",
"0.64508003",
"0.62716293",
"0.6252456",
"0.6204809",
"0.60835713",
"0.60419935",
"0.603209",
"0.602097",
"0.6014933",
"0.6010725",
"0.59871286",
"0.59638083",
"0.59441227",
"0.5941583",
"0.5908171",
"0.5905217",
"0.5900621",
"0.585374... | 0.7509798 | 0 |
Update the cached value. | @SuppressWarnings("unchecked")
public V setValue(V oValue)
{
ObservableHashMap map = ObservableHashMap.this;
synchronized (map)
{
// perform the entry update
V oPrev = super.setValue(oValue);
// note: previous to Coherence 3.1, there was an optimization
// that would only raise an event if the reference was changing,
// i.e. if (oPrev != oValue) {..}
// issue update notification
if (map.hasListeners())
{
map.dispatchEvent(new MapEvent(map, MapEvent.ENTRY_UPDATED,
getKey(), oPrev, oValue));
}
return oPrev;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void update(String pathString, CacheEntry cacheEntry);",
"public void update() {\n\t\tmLast = mNow;\n\t\tmNow = get();\n\t}",
"public void storeInCache() {\r\n lockValueStored = IN_CACHE;\r\n }",
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"@Override\n\t\tpublic void update() {\n\n\t\t}",
... | [
"0.68370837",
"0.6688399",
"0.6575055",
"0.63207376",
"0.63207376",
"0.63207376",
"0.630782",
"0.62783366",
"0.62783366",
"0.6269303",
"0.6122008",
"0.6096775",
"0.6096775",
"0.60916555",
"0.6077011",
"0.60612077",
"0.6040238",
"0.6014929",
"0.5993407",
"0.5970619",
"0.596279... | 0.0 | -1 |
Called to inform the Entry that it has been removed. | @SuppressWarnings("unchecked")
protected void onRemove()
{
// issue remove notification
ObservableHashMap map = ObservableHashMap.this;
if (map.hasListeners())
{
map.dispatchEvent(new MapEvent(map, MapEvent.ENTRY_DELETED,
getKey(), getValue(), null));
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void entryRemoved (TudeySceneModel.Entry oentry)\n {\n // nada\n }",
"static public void removeEntry(Entry entry){ getEntryList().removeEntry(entry); }",
"protected abstract void remove(E entry);",
"public void removed() {\n }",
"protected void discard()\n {\n ... | [
"0.72532624",
"0.7227854",
"0.7206407",
"0.71031",
"0.69909936",
"0.6911158",
"0.6842402",
"0.67983437",
"0.67851657",
"0.67587036",
"0.6741633",
"0.6741633",
"0.6741633",
"0.6738853",
"0.6738853",
"0.6738334",
"0.67319274",
"0.6725675",
"0.6725675",
"0.6725675",
"0.6725675",... | 0.68135685 | 7 |
/ generateDestroyHelper Generates a helper function which, when / invoked, destroys the given object. The address of the object / should be in global memory. | @Converted(kind = Converted.Kind.AUTO,
source = "${LLVM_SRC}/llvm/tools/clang/lib/CodeGen/CGDeclCXX.cpp", line = 601,
FQN="clang::CodeGen::CodeGenFunction::generateDestroyHelper", NM="_ZN5clang7CodeGen15CodeGenFunction21generateDestroyHelperENS0_7AddressENS_8QualTypeEPFvRS1_S2_S3_EbPKNS_7VarDeclE",
cmd="jclank.sh -java-options=${SPUTNIK}/modules/org.clang.codegen/llvmToClangType -split-class=clang::CodeGen::CodeGenFunction@this ${LLVM_SRC}/llvm/tools/clang/lib/CodeGen/CGDeclCXX.cpp -nm=_ZN5clang7CodeGen15CodeGenFunction21generateDestroyHelperENS0_7AddressENS_8QualTypeEPFvRS1_S2_S3_EbPKNS_7VarDeclE")
//</editor-fold>
public final Function /*P*/ generateDestroyHelper(Address addr, QualType type, CodeGenFunction.AddressQualType2Void destroyer,
boolean useEHCleanupForArray, /*const*/ VarDecl /*P*/ VD) {
FunctionArgList args = null;
ImplicitParamDecl dst = null;
try {
args/*J*/= new FunctionArgList();
dst/*J*/= new ImplicitParamDecl($this().getContext(), (DeclContext /*P*/ )null, new SourceLocation(), (IdentifierInfo /*P*/ )null,
$this().getContext().VoidPtrTy.$QualType());
args.push_back($AddrOf(dst));
final /*const*/ CGFunctionInfo /*&*/ FI = $this().CGM.getTypes().arrangeBuiltinFunctionDeclaration($this().getContext().VoidTy.$QualType(), args);
org.llvm.ir.FunctionType /*P*/ FTy = $this().CGM.getTypes().GetFunctionType(FI);
Function /*P*/ fn = $this().CGM.CreateGlobalInitOrDestructFunction(FTy, new Twine(/*KEEP_STR*/"__cxx_global_array_dtor"), FI, VD.getLocation());
$this().CurEHLocation.$assignMove(VD.getLocStart());
$this().StartFunction(new GlobalDecl(VD), $this().getContext().VoidTy.$QualType(), fn, FI, args);
$this().emitDestroy(new Address(addr), new QualType(type), destroyer, useEHCleanupForArray);
$this().FinishFunction();
return fn;
} finally {
if (dst != null) { dst.$destroy(); }
if (args != null) { args.$destroy(); }
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void destroyImplObject(Object obj)\n {\n }",
"public abstract void destroy();",
"public void destroy() {}",
"public void destroy() {}",
"default void destroy() {}",
"public static void destroy() {\n\t}",
"public void destroy() {\n \n }",
"public void destroy() {\n ... | [
"0.6287933",
"0.61348635",
"0.6112061",
"0.6112061",
"0.6063535",
"0.6024669",
"0.60243905",
"0.6012457",
"0.6012457",
"0.6011932",
"0.6011932",
"0.6011932",
"0.6011932",
"0.6011932",
"0.6011932",
"0.6011932",
"0.6011932",
"0.5998542",
"0.5976537",
"0.5975431",
"0.5943009",
... | 0.0 | -1 |
/ EmitCXXGlobalVarDeclInit Create the initializer for a C++ / variable with global storage. | @Converted(kind = Converted.Kind.AUTO,
source = "${LLVM_SRC}/llvm/tools/clang/lib/CodeGen/CGDeclCXX.cpp", line = 140,
FQN="clang::CodeGen::CodeGenFunction::EmitCXXGlobalVarDeclInit", NM="_ZN5clang7CodeGen15CodeGenFunction24EmitCXXGlobalVarDeclInitERKNS_7VarDeclEPN4llvm8ConstantEb",
cmd="jclank.sh -java-options=${SPUTNIK}/modules/org.clang.codegen/llvmToClangType -split-class=clang::CodeGen::CodeGenFunction@this ${LLVM_SRC}/llvm/tools/clang/lib/CodeGen/CGDeclCXX.cpp -nm=_ZN5clang7CodeGen15CodeGenFunction24EmitCXXGlobalVarDeclInitERKNS_7VarDeclEPN4llvm8ConstantEb")
//</editor-fold>
public final void EmitCXXGlobalVarDeclInit(final /*const*/ VarDecl /*&*/ D,
Constant /*P*/ DeclPtr,
boolean PerformInit) {
/*const*/ Expr /*P*/ Init = D.getInit$Const();
QualType T = D.getType();
// The address space of a static local variable (DeclPtr) may be different
// from the address space of the "this" argument of the constructor. In that
// case, we need an addrspacecast before calling the constructor.
//
// struct StructWithCtor {
// __device__ StructWithCtor() {...}
// };
// __device__ void foo() {
// __shared__ StructWithCtor s;
// ...
// }
//
// For example, in the above CUDA code, the static local variable s has a
// "shared" address space qualifier, but the constructor of StructWithCtor
// expects "this" in the "generic" address space.
/*uint*/int ExpectedAddrSpace = $this().getContext().getTargetAddressSpace(new QualType(T));
/*uint*/int ActualAddrSpace = DeclPtr.getType().getPointerAddressSpace();
if (ActualAddrSpace != ExpectedAddrSpace) {
org.llvm.ir.Type /*P*/ LTy = $this().CGM.getTypes().ConvertTypeForMem(new QualType(T));
org.llvm.ir.PointerType /*P*/ PTy = org.llvm.ir.PointerType.get(LTy, ExpectedAddrSpace);
DeclPtr = ConstantExpr.getAddrSpaceCast(DeclPtr, PTy);
}
ConstantAddress DeclAddr/*J*/= new ConstantAddress(DeclPtr, $this().getContext().getDeclAlign($AddrOf(D)));
if (!T.$arrow().isReferenceType()) {
if (($this().getLangOpts().OpenMP != 0) && D.hasAttr(OMPThreadPrivateDeclAttr.class)) {
/*J:(void)*/$this().CGM.getOpenMPRuntime().emitThreadPrivateVarDefinition($AddrOf(D), new Address(DeclAddr), D.getAttr(OMPThreadPrivateDeclAttr.class).getLocation(),
PerformInit, $this());
}
if (PerformInit) {
CGDeclCXXStatics.EmitDeclInit(/*Deref*/$this(), D, new ConstantAddress(DeclAddr));
}
if ($this().CGM.isTypeConstant(D.getType(), true)) {
CGDeclCXXStatics.EmitDeclInvariant(/*Deref*/$this(), D, DeclPtr);
} else {
CGDeclCXXStatics.EmitDeclDestroy(/*Deref*/$this(), D, new ConstantAddress(DeclAddr));
}
return;
}
assert (PerformInit) : "cannot have constant initializer which needs destruction for reference";
RValue RV = $this().EmitReferenceBindingToExpr(Init);
$this().EmitStoreOfScalar(RV.getScalarVal(), new Address(DeclAddr), false, new QualType(T));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/tools/clang/lib/CodeGen/CGDeclCXX.cpp\", line = 495,\n FQN=\"clang::CodeGen::CodeGenFunction::GenerateCXXGlobalVarDeclInitFunc\", NM=\"_ZN5clang7CodeGen15CodeGenFunction32GenerateCXXGlobalVarDeclInitFuncEPN4llvm8FunctionEPKNS_7VarDeclEPNS2_14Glob... | [
"0.6587048",
"0.59449697",
"0.57122225",
"0.5668691",
"0.54665685",
"0.53914326",
"0.53791976",
"0.53133667",
"0.5273163",
"0.52150166",
"0.5214498",
"0.51609904",
"0.51585066",
"0.51406115",
"0.5123291",
"0.50941366",
"0.5091355",
"0.50849694",
"0.5077798",
"0.50497735",
"0.... | 0.60745394 | 1 |
/ Create a stub function, suitable for being passed to atexit, / which passes the given address to the given destructor function. | @Converted(kind = Converted.Kind.AUTO,
source = "${LLVM_SRC}/llvm/tools/clang/lib/CodeGen/CGDeclCXX.cpp", line = 194,
FQN="clang::CodeGen::CodeGenFunction::createAtExitStub", NM="_ZN5clang7CodeGen15CodeGenFunction16createAtExitStubERKNS_7VarDeclEPN4llvm8ConstantES7_",
cmd="jclank.sh -java-options=${SPUTNIK}/modules/org.clang.codegen/llvmToClangType -split-class=clang::CodeGen::CodeGenFunction@this ${LLVM_SRC}/llvm/tools/clang/lib/CodeGen/CGDeclCXX.cpp -nm=_ZN5clang7CodeGen15CodeGenFunction16createAtExitStubERKNS_7VarDeclEPN4llvm8ConstantES7_")
//</editor-fold>
public final Constant /*P*/ createAtExitStub(final /*const*/ VarDecl /*&*/ VD,
Constant /*P*/ dtor,
Constant /*P*/ addr) {
CodeGenFunction CGF = null;
JavaCleaner $c$ = $createJavaCleaner();
try {
// Get the destructor function type, void(*)(void).
org.llvm.ir.FunctionType /*P*/ ty = org.llvm.ir.FunctionType.get($this().CGM.VoidTy, false);
SmallString/*<256>*/ FnName/*J*/= new SmallString/*<256>*/(256);
{
raw_svector_ostream Out = null;
try {
Out/*J*/= new raw_svector_ostream(FnName);
$this().CGM.getCXXABI().getMangleContext().mangleDynamicAtExitDestructor($AddrOf(VD), Out);
} finally {
if (Out != null) { Out.$destroy(); }
}
}
final /*const*/ CGFunctionInfo /*&*/ FI = $this().CGM.getTypes().arrangeNullaryFunction();
Function /*P*/ fn = $this().CGM.CreateGlobalInitOrDestructFunction(ty, new Twine(FnName.str()),
FI,
VD.getLocation());
CGF/*J*/= new CodeGenFunction($this().CGM);
CGF.StartFunction(new GlobalDecl($AddrOf(VD)), $this().CGM.getContext().VoidTy.$QualType(), fn, FI, $c$.track(new FunctionArgList())); $c$.clean();
CallInst /*P*/ call = CGF.Builder.CreateCall_Value$P_ArrayRef$Value$P_Twine$C_MDNode$P(dtor, new ArrayRef<Value /*P*/ >(addr, true));
{
// Make sure the call and the callee agree on calling convention.
Function /*P*/ dtorFn = dyn_cast_Function(dtor.stripPointerCasts());
if ((dtorFn != null)) {
call.setCallingConv(dtorFn.getCallingConv());
}
}
CGF.FinishFunction();
return fn;
} finally {
if (CGF != null) { CGF.$destroy(); }
$c$.$destroy();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/tools/clang/lib/CodeGen/CGDeclCXX.cpp\", line = 227,\n FQN=\"clang::CodeGen::CodeGenFunction::registerGlobalDtorWithAtExit\", NM=\"_ZN5clang7CodeGen15CodeGenFunction28registerGlobalDtorWithAtExitERKNS_7VarDeclEPN4llvm8ConstantES7_\",\n cmd=\"jcla... | [
"0.57639104",
"0.5547018",
"0.5515339",
"0.5432642",
"0.53477544",
"0.53300613",
"0.52285606",
"0.5213514",
"0.51984376",
"0.5172296",
"0.5153668",
"0.50932",
"0.5090839",
"0.50601536",
"0.5051726",
"0.5041886",
"0.5031887",
"0.50267965",
"0.5021799",
"0.49506038",
"0.4944038... | 0.56153697 | 1 |
/ Call atexit() with a function that passes the given argument to / the given function. / Register a global destructor using the C atexit runtime function. | @Converted(kind = Converted.Kind.AUTO,
source = "${LLVM_SRC}/llvm/tools/clang/lib/CodeGen/CGDeclCXX.cpp", line = 227,
FQN="clang::CodeGen::CodeGenFunction::registerGlobalDtorWithAtExit", NM="_ZN5clang7CodeGen15CodeGenFunction28registerGlobalDtorWithAtExitERKNS_7VarDeclEPN4llvm8ConstantES7_",
cmd="jclank.sh -java-options=${SPUTNIK}/modules/org.clang.codegen/llvmToClangType -split-class=clang::CodeGen::CodeGenFunction@this ${LLVM_SRC}/llvm/tools/clang/lib/CodeGen/CGDeclCXX.cpp -nm=_ZN5clang7CodeGen15CodeGenFunction28registerGlobalDtorWithAtExitERKNS_7VarDeclEPN4llvm8ConstantES7_")
//</editor-fold>
public final void registerGlobalDtorWithAtExit(final /*const*/ VarDecl /*&*/ VD,
Constant /*P*/ dtor,
Constant /*P*/ addr) {
// Create a function which calls the destructor.
Constant /*P*/ dtorStub = $this().createAtExitStub(VD, dtor, addr);
// extern "C" int atexit(void (*f)(void));
org.llvm.ir.FunctionType /*P*/ atexitTy = org.llvm.ir.FunctionType.get(IntTy, new ArrayRef<org.llvm.ir.Type /*P*/ >(dtorStub.getType(), true), false);
Constant /*P*/ atexit = $this().CGM.CreateRuntimeFunction(atexitTy, new StringRef(/*KEEP_STR*/"atexit"));
{
Function /*P*/ atexitFn = dyn_cast_Function(atexit);
if ((atexitFn != null)) {
atexitFn.setDoesNotThrow();
}
}
$this().EmitNounwindRuntimeCall(atexit, new ArrayRef<Value /*P*/ >(dtorStub, true));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void onExit();",
"void onExit();",
"void onExit(FilterContext ctx)throws SoaException;",
"void exit();",
"public void exit();",
"void cleanup();",
"void cleanup();",
"void cleanup();",
"public abstract void exit();",
"public interface exitCallBack {\n /**\n *当调用退出软件时,需要做的操作\n */... | [
"0.6524555",
"0.63998103",
"0.6206953",
"0.6131773",
"0.6108075",
"0.5963104",
"0.5963104",
"0.5963104",
"0.59434944",
"0.593265",
"0.5882383",
"0.58271164",
"0.58256966",
"0.5797216",
"0.57943517",
"0.57943517",
"0.57874274",
"0.5734675",
"0.5734224",
"0.5731098",
"0.5722489... | 0.6208365 | 2 |
/ Emit code in this function to perform a guarded variable / initialization. Guarded initializations are used when it's not / possible to prove that an initialization will be done exactly / once, e.g. with a static local variable or a static data member / of a class template. | @Converted(kind = Converted.Kind.AUTO,
source = "${LLVM_SRC}/llvm/tools/clang/lib/CodeGen/CGDeclCXX.cpp", line = 245,
FQN="clang::CodeGen::CodeGenFunction::EmitCXXGuardedInit", NM="_ZN5clang7CodeGen15CodeGenFunction18EmitCXXGuardedInitERKNS_7VarDeclEPN4llvm14GlobalVariableEb",
cmd="jclank.sh -java-options=${SPUTNIK}/modules/org.clang.codegen/llvmToClangType -split-class=clang::CodeGen::CodeGenFunction@this ${LLVM_SRC}/llvm/tools/clang/lib/CodeGen/CGDeclCXX.cpp -nm=_ZN5clang7CodeGen15CodeGenFunction18EmitCXXGuardedInitERKNS_7VarDeclEPN4llvm14GlobalVariableEb")
//</editor-fold>
public final void EmitCXXGuardedInit(final /*const*/ VarDecl /*&*/ D,
GlobalVariable /*P*/ DeclPtr,
boolean PerformInit) {
// If we've been asked to forbid guard variables, emit an error now.
// This diagnostic is hard-coded for Darwin's use case; we can find
// better phrasing if someone else needs it.
if ($this().CGM.getCodeGenOpts().ForbidGuardVariables) {
$this().CGM.Error(D.getLocation(),
new StringRef(/*KEEP_STR*/"this initialization requires a guard variable, which the kernel does not support"));
}
$this().CGM.getCXXABI().EmitGuardedInit(/*Deref*/$this(), D, DeclPtr, PerformInit);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private synchronized void makeSureInitialized() {\n if (!initialized) {\n init();\n initialized = true;\n }\n }",
"boolean isOnlyAssignedInInitializer();",
"protected void naiveLazyInitailizaton() {\n\t\tisNaiveInitialized = true;\n\t}",
"void initSafeties(){\n ... | [
"0.6099803",
"0.56746936",
"0.55990624",
"0.549648",
"0.54719",
"0.52297366",
"0.52159965",
"0.52011955",
"0.5195153",
"0.51858604",
"0.5150535",
"0.5123601",
"0.50677556",
"0.50608295",
"0.5052104",
"0.5030015",
"0.50167185",
"0.496827",
"0.49306926",
"0.49092624",
"0.489858... | 0.5708255 | 1 |
/ GenerateCXXGlobalInitFunc Generates code for initializing global / variables. | @Converted(kind = Converted.Kind.AUTO,
source = "${LLVM_SRC}/llvm/tools/clang/lib/CodeGen/CGDeclCXX.cpp", line = 522,
FQN="clang::CodeGen::CodeGenFunction::GenerateCXXGlobalInitFunc", NM="_ZN5clang7CodeGen15CodeGenFunction25GenerateCXXGlobalInitFuncEPN4llvm8FunctionENS2_8ArrayRefIS4_EENS0_7AddressE",
cmd="jclank.sh -java-options=${SPUTNIK}/modules/org.clang.codegen/llvmToClangType -split-class=clang::CodeGen::CodeGenFunction@this ${LLVM_SRC}/llvm/tools/clang/lib/CodeGen/CGDeclCXX.cpp -nm=_ZN5clang7CodeGen15CodeGenFunction25GenerateCXXGlobalInitFuncEPN4llvm8FunctionENS2_8ArrayRefIS4_EENS0_7AddressE")
//</editor-fold>
public final void GenerateCXXGlobalInitFunc(Function /*P*/ Fn,
ArrayRef<Function /*P*/ > Decls) {
GenerateCXXGlobalInitFunc(Fn,
Decls,
Address.invalid());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/tools/clang/lib/CodeGen/CGDeclCXX.cpp\", line = 495,\n FQN=\"clang::CodeGen::CodeGenFunction::GenerateCXXGlobalVarDeclInitFunc\", NM=\"_ZN5clang7CodeGen15CodeGenFunction32GenerateCXXGlobalVarDeclInitFuncEPN4llvm8FunctionEPKNS_7VarDeclEPNS2_14Glob... | [
"0.60304475",
"0.5563568",
"0.55588216",
"0.52458906",
"0.50985456",
"0.5040119",
"0.49778023",
"0.49650502",
"0.49562806",
"0.48837128",
"0.4852633",
"0.48451895",
"0.4796443",
"0.47709915",
"0.47638395",
"0.47540334",
"0.47482973",
"0.4746139",
"0.47272074",
"0.47272074",
"... | 0.6264184 | 0 |
/ GenerateCXXGlobalDtorsFunc Generates code for destroying global / variables. | @Converted(kind = Converted.Kind.AUTO,
source = "${LLVM_SRC}/llvm/tools/clang/lib/CodeGen/CGDeclCXX.cpp", line = 574,
FQN="clang::CodeGen::CodeGenFunction::GenerateCXXGlobalDtorsFunc", NM="_ZN5clang7CodeGen15CodeGenFunction26GenerateCXXGlobalDtorsFuncEPN4llvm8FunctionERKSt6vectorISt4pairINS2_6WeakVHEPNS2_8ConstantEESaISA_EE",
cmd="jclank.sh -java-options=${SPUTNIK}/modules/org.clang.codegen/llvmToClangType -split-class=clang::CodeGen::CodeGenFunction@this ${LLVM_SRC}/llvm/tools/clang/lib/CodeGen/CGDeclCXX.cpp -nm=_ZN5clang7CodeGen15CodeGenFunction26GenerateCXXGlobalDtorsFuncEPN4llvm8FunctionERKSt6vectorISt4pairINS2_6WeakVHEPNS2_8ConstantEESaISA_EE")
//</editor-fold>
public final void GenerateCXXGlobalDtorsFunc(Function /*P*/ Fn,
final /*const*/std.vector<std.pair<WeakVH, Constant /*P*/ >> /*&*/ DtorsAndObjects) {
{
ApplyDebugLocation NL = null;
ApplyDebugLocation AL = null;
JavaCleaner $c$ = $createJavaCleaner();
try {
NL = ApplyDebugLocation.CreateEmpty(/*Deref*/$this());
$this().StartFunction(new GlobalDecl(), $this().getContext().VoidTy.$QualType(), Fn,
$this().getTypes().arrangeNullaryFunction(), $c$.track(new FunctionArgList())); $c$.clean();
// Emit an artificial location for this function.
AL = ApplyDebugLocation.CreateArtificial(/*Deref*/$this());
// Emit the dtors, in reverse order from construction.
for (/*uint*/int i = 0, e = DtorsAndObjects.size(); i != e; ++i) {
Value /*P*/ Callee = DtorsAndObjects.$at$Const(e - i - 1).first.$Value$P();
CallInst /*P*/ CI = $this().Builder.CreateCall_Value$P_ArrayRef$Value$P_Twine$C_MDNode$P(Callee,
new ArrayRef<Value /*P*/ >(DtorsAndObjects.$at$Const(e - i - 1).second, true));
{
// Make sure the call and the callee agree on calling convention.
Function /*P*/ F = dyn_cast_Function(Callee);
if ((F != null)) {
CI.setCallingConv(F.getCallingConv());
}
}
}
} finally {
if (AL != null) { AL.$destroy(); }
if (NL != null) { NL.$destroy(); }
$c$.$destroy();
}
}
$this().FinishFunction();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/tools/clang/lib/CodeGen/CGDeclCXX.cpp\", line = 601,\n FQN=\"clang::CodeGen::CodeGenFunction::generateDestroyHelper\", NM=\"_ZN5clang7CodeGen15CodeGenFunction21generateDestroyHelperENS0_7AddressENS_8QualTypeEPFvRS1_S2_S3_EbPKNS_7VarDeclE\",\n cmd... | [
"0.5641969",
"0.5533469",
"0.53554654",
"0.499161",
"0.49759528",
"0.48253208",
"0.48081535",
"0.48057768",
"0.4782918",
"0.47495493",
"0.47186756",
"0.46901846",
"0.46815702",
"0.46690407",
"0.46600297",
"0.46533918",
"0.46347457",
"0.46275482",
"0.45911294",
"0.45793512",
"... | 0.5930132 | 0 |
/ Emit the code necessary to initialize the given global variable. | @Converted(kind = Converted.Kind.AUTO,
source = "${LLVM_SRC}/llvm/tools/clang/lib/CodeGen/CGDeclCXX.cpp", line = 495,
FQN="clang::CodeGen::CodeGenFunction::GenerateCXXGlobalVarDeclInitFunc", NM="_ZN5clang7CodeGen15CodeGenFunction32GenerateCXXGlobalVarDeclInitFuncEPN4llvm8FunctionEPKNS_7VarDeclEPNS2_14GlobalVariableEb",
cmd="jclank.sh -java-options=${SPUTNIK}/modules/org.clang.codegen/llvmToClangType -split-class=clang::CodeGen::CodeGenFunction@this ${LLVM_SRC}/llvm/tools/clang/lib/CodeGen/CGDeclCXX.cpp -nm=_ZN5clang7CodeGen15CodeGenFunction32GenerateCXXGlobalVarDeclInitFuncEPN4llvm8FunctionEPKNS_7VarDeclEPNS2_14GlobalVariableEb")
//</editor-fold>
public final void GenerateCXXGlobalVarDeclInitFunc(Function /*P*/ Fn,
/*const*/ VarDecl /*P*/ D,
GlobalVariable /*P*/ Addr,
boolean PerformInit) {
JavaCleaner $c$ = $createJavaCleaner();
try {
// Check if we need to emit debug info for variable initializer.
if (D.hasAttr(NoDebugAttr.class)) {
$this().DebugInfo = null; // disable debug info indefinitely for this function
}
$this().CurEHLocation.$assignMove(D.getLocStart());
$this().StartFunction(new GlobalDecl(D), $this().getContext().VoidTy.$QualType(), Fn,
$this().getTypes().arrangeNullaryFunction(),
$c$.track(new FunctionArgList()), D.getLocation(),
D.getInit$Const().getExprLoc()); $c$.clean();
// Use guarded initialization if the global variable is weak. This
// occurs for, e.g., instantiated static data members and
// definitions explicitly marked weak.
if (Addr.hasWeakLinkage() || Addr.hasLinkOnceLinkage()) {
$this().EmitCXXGuardedInit($Deref(D), Addr, PerformInit);
} else {
$this().EmitCXXGlobalVarDeclInit($Deref(D), Addr, PerformInit);
}
$this().FinishFunction();
} finally {
$c$.$destroy();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String generateRuntimeInitialization();",
"protected void initVars() {}",
"public static void init() {}",
"void initFunDecl() {\n\t\t_localVarID = 0;\r\n\t\t_labelID = 0;\r\n\t\t_tempVarID = 32;\r\n\t\t_lsymtable.clear();\r\n\t}",
"public static void init() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init... | [
"0.61679506",
"0.614978",
"0.60799",
"0.6034827",
"0.5923772",
"0.5910298",
"0.587184",
"0.5864473",
"0.5864473",
"0.58488536",
"0.58488536",
"0.583322",
"0.58280915",
"0.58128107",
"0.579541",
"0.5749473",
"0.5748904",
"0.5748904",
"0.5748904",
"0.5748904",
"0.57453316",
"... | 0.62142926 | 0 |
by Jackie using DP, time complexity O(n) | public int wiggleMaxLength3(int[] nums) {
if(nums == null || nums.length == 0){
return 0;
} else if(nums.length == 1){
return 1;
}
int len = nums.length;
int[] tempNums = new int[len - 1];
int maxLen = 0;
int preFlag = 0;
for(int i = 0; i < len - 1; i++){
if(nums[i] - nums[i + 1] > 0){
tempNums[i] = 1;
} else if(nums[i] - nums[i + 1] < 0){
tempNums[i] = -1;
} else {
tempNums[i] = 0;
}
}
for(int i = 0; i < len - 1; i++){
if(tempNums[i] != 0){
if(preFlag == 0){
preFlag = tempNums[i];
maxLen++;
} else if(preFlag * tempNums[i] == -1){
preFlag = tempNums[i];
maxLen++;
}
}
}
return maxLen + 1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void dp() {\n\t\tm[0] = 0;\n\t\tk[0] = 0;\n\n\t\t// base case 1:for 1 cent we need give 1 cent\n\t\tm[1] = 1;\n\t\tk[1] = 1;\n\n\t\tfor (int i = 2; i <= n; i++) {\n\t\t\tint min = Integer.MAX_VALUE;\n\t\t\tint sel = -1;\n\t\t\tfor (int j = 0; j < sd; j++) {\n\t\t\t\tint a = d[j];\n\t\t\t\tif (a > i)... | [
"0.7069462",
"0.6922795",
"0.67463905",
"0.67332524",
"0.67100275",
"0.6611003",
"0.6491553",
"0.64787114",
"0.6474729",
"0.6446823",
"0.63109124",
"0.62639505",
"0.6252474",
"0.6222305",
"0.622137",
"0.6219498",
"0.62148046",
"0.62065524",
"0.6201693",
"0.6200031",
"0.619375... | 0.0 | -1 |
by Jackie using DP, time complexity O(n^2) | public int wiggleMaxLength4(int[] nums) {
if(nums == null || nums.length == 0){
return 0;
} else if(nums.length == 1){
return 1;
}
int len = nums.length;
int[] tempNums = new int[len - 1];
int[] dp = new int[len - 1];
int maxLen = 0;
for(int i = 0; i < len - 1; i++){
if(nums[i] - nums[i + 1] > 0){
tempNums[i] = 1;
} else if(nums[i] - nums[i + 1] < 0){
tempNums[i] = -1;
} else {
tempNums[i] = 0;
}
}
for(int i = 0; i < len - 1; i++){
if(tempNums[i] != 0){
dp[i] = 1;
}
}
maxLen = dp[0];
for(int i = 0; i < len - 1; i++){
for(int j = 0; j < i; j++){
if(tempNums[i] * tempNums[j] == -1){
dp[i] = Math.max(dp[i], dp[j] + 1);
maxLen = Math.max(maxLen, dp[i]);
}
}
}
return maxLen + 1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void dp() {\n\t\tm[0] = 0;\n\t\tk[0] = 0;\n\n\t\t// base case 1:for 1 cent we need give 1 cent\n\t\tm[1] = 1;\n\t\tk[1] = 1;\n\n\t\tfor (int i = 2; i <= n; i++) {\n\t\t\tint min = Integer.MAX_VALUE;\n\t\t\tint sel = -1;\n\t\t\tfor (int j = 0; j < sd; j++) {\n\t\t\t\tint a = d[j];\n\t\t\t\tif (a > i)... | [
"0.70231503",
"0.69944435",
"0.6797297",
"0.6794424",
"0.67116946",
"0.6672354",
"0.6531086",
"0.64935577",
"0.6458117",
"0.64190507",
"0.6290209",
"0.62869793",
"0.6273403",
"0.6271602",
"0.626217",
"0.6240332",
"0.6230144",
"0.62297183",
"0.61937976",
"0.6175117",
"0.616682... | 0.0 | -1 |
Converts a JSONObject to an XML string. The existing org.json.XML.toString() function does nothing to handle keys which, while valid in JSON, are not valid as XML elements; it just naively jams the key between triangle braces. Leeeeeet's fix it up. | public static String toString(final Object object, final String tagName) throws JSONException {
StringBuilder sb = new StringBuilder();
JSONArray ja;
JSONObject jo;
String string;
if (object instanceof JSONObject) {
// Prepend with tagName.
if (tagName != null) {
sb.append('<');
sb.append(tagName);
sb.append('>');
}
// Loop through the keys.
jo = (JSONObject) object;
for (final String key : jo.keySet()) {
// Sanitize the key using restricted version of the XML spec.
final String sanitizedKey = key.replaceFirst(invalidFirstCharacterRegex, "").replaceAll(invalidCharacterRegex, "");
// Get the value; convert if not JSONObject.
Object value = jo.get(key);
if (value == null) {
value = "";
} else if (value.getClass().isArray()) {
value = new JSONArray(value);
}
// Emit content in body.
if ("content".equals(key)) {
if (value instanceof JSONArray) {
ja = (JSONArray) value;
int i = 0;
for (Object val : ja) {
if (i > 0) {
sb.append('\n');
}
sb.append(escape(val.toString()));
i++;
}
} else {
sb.append(escape(value.toString()));
}
// Emit an array of similar keys.
} else if (value instanceof JSONArray) {
ja = (JSONArray) value;
for (Object val : ja) {
if (val instanceof JSONArray) {
sb.append('<');
sb.append(sanitizedKey);
sb.append('>');
sb.append(toString(val));
sb.append("</");
sb.append(sanitizedKey);
sb.append('>');
} else {
sb.append(toString(val, sanitizedKey));
}
}
// Give us a />'d version of the tag if the value is empty.
} else if ("".equals(value)) {
sb.append('<');
sb.append(sanitizedKey);
sb.append("/>");
// Emit a new tag using the sanitized key.
} else {
sb.append(toString(value, sanitizedKey));
}
}
// Close the tag if we must.
if (tagName != null) {
sb.append("</");
sb.append(tagName);
sb.append('>');
}
// Return the XML string we've built.
return sb.toString();
}
// If this is a JSONArray, create an array of elements.
if (object != null && (object instanceof JSONArray || object.getClass().isArray())) {
if (object.getClass().isArray()) {
ja = new JSONArray(object);
} else {
ja = (JSONArray) object;
}
for (Object val : ja) {
// XML does not have good support for arrays. If an array
// appears in a place where XML is lacking, synthesize an
// <array> element.
sb.append(toString(val, tagName == null ? "array" : tagName));
}
// Return the XML string we've built.
return sb.toString();
}
// If this is just a string, we've hit the bottom of the iterator and can
// just write an element.
string = (object == null) ? "null" : escape(object.toString());
return (tagName == null) ? "\"" + string + "\""
: (string.length() == 0) ? "<" + tagName + "/>" : "<" + tagName
+ ">" + string + "</" + tagName + ">";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String convertToString() {\n return mJSONObject.toString();\n }",
"public static native String serializeToString(JavaScriptObject node) /*-{\n\t\treturn Titanium.XML.serializeToString(node);\n\t}-*/;",
"public static String toXMLString(Object obj) {\r\n if (obj == null) {\r\n ... | [
"0.5520125",
"0.5507274",
"0.5404859",
"0.5284385",
"0.52768177",
"0.5135852",
"0.5119315",
"0.5111154",
"0.50584894",
"0.5051682",
"0.50473285",
"0.50261784",
"0.4895081",
"0.4893039",
"0.48922768",
"0.48639947",
"0.4851793",
"0.48429164",
"0.4831793",
"0.4829951",
"0.482983... | 0.6497137 | 0 |
We want to process a concept net room concept and construct a folder in the Concepts folder | public static void getRoomConcept(String concept)
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void createOntologyResources(String conceptName, String conditionName, \r\n\t\t\t\t\t\t\t\t\t\tVector<String> syndromeSensDefNames, Vector<String> syndromeSpecDefNames, \r\n\t\t\t\t\t\t\t\t\t\tString relation, String inclusionKeywords, String exclusionKeywords, \r\n\t\t\t\t\t\t\t\t\t\tVector<Coding> codes)... | [
"0.5255127",
"0.5238559",
"0.5216838",
"0.5092144",
"0.50905937",
"0.50806373",
"0.5064695",
"0.50374794",
"0.5034844",
"0.5008681",
"0.5003016",
"0.49790528",
"0.4932893",
"0.49031585",
"0.4891217",
"0.48828167",
"0.48602542",
"0.4834457",
"0.4825572",
"0.48205993",
"0.48024... | 0.5940343 | 0 |
get all the concept net entries that isa room | public static void getRoomsAPI()
{
try
{
WebClient checkIP = new WebClient("http://api.conceptnet.io/c/en/room/n?offset=0&limit=1000");
checkIP.post("");
long startIP = System.currentTimeMillis();
ArrayList<ArrayList<String> > checkq = new ArrayList<ArrayList<String> >();
while(true)
{
checkIP.getQueue(checkq);
boolean processedsomething = false;
for (int i = 0; i < checkq.size(); i++)
{
ArrayList<String> resultlines = checkq.remove(i);
String x = null;
String relation = null;
String relationweight = null;
String y = null;
for(int li=0;li<resultlines.size();li++)
{
processedsomething = true;
String line = resultlines.get(li);
line = line.trim();
if(line.startsWith("\"@id\": \"/a/["))
{
line = line.substring("\"@id\": \"/a/[".length());
int ind = line.indexOf(",");
relation = line.substring(0,ind);
line = line.substring(ind+1);
ind = line.indexOf(",");
x = line.substring(0,ind);
line = line.substring(ind+1);
ind = line.indexOf("]");
y = line.substring(0,ind);
}
if(line.startsWith("\"weight\": "))
{
relationweight = line.substring("\"weight\": ".length());
//can now process the edge information
//we only want the things that are a room not things a room is
if(y.equalsIgnoreCase("c/en/room/n"))
{
System.out.println(x+" "+relation+" "+y);
}
}
}
}
if(processedsomething)
break;
Thread.sleep(16);
long time = System.currentTimeMillis();
// if((time-startIP)>1000)
// {
// //timeout
// break;
// }
}
}
catch(Exception e)
{
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void getRoomsHTML()\n\t{\n\t\t//get all the concept net entries that isa room\n\t\ttry\n\t\t{\n\t\t\tWebClient checkIP = new WebClient(\"http://conceptnet.io/c/en/room/n?rel=/r/IsA&limit=100000\");\n\t\t\tcheckIP.post(\"\");\n\t\t\tlong startIP = System.currentTimeMillis();\n\t\t\t\n\t\t\tfinal int O... | [
"0.6245622",
"0.5814118",
"0.5789173",
"0.5584844",
"0.55250967",
"0.55219626",
"0.54174674",
"0.54167247",
"0.5391125",
"0.53706634",
"0.5362238",
"0.53515726",
"0.53455967",
"0.533061",
"0.53261137",
"0.5291836",
"0.52796996",
"0.52642554",
"0.5261561",
"0.5260166",
"0.5257... | 0.5833748 | 1 |
the website is blocking html requests which is a pity as the api doesn't contain all the data available i.e. references to external sites is not included | public static void getRoomsHTML()
{
//get all the concept net entries that isa room
try
{
WebClient checkIP = new WebClient("http://conceptnet.io/c/en/room/n?rel=/r/IsA&limit=100000");
checkIP.post("");
long startIP = System.currentTimeMillis();
final int OUTSIDE = 0;
final int INEDGESTART = 1;
final int INEDGEREL = 2;
final int INEDGEEND = 3;
int state = OUTSIDE;
ArrayList<ArrayList<String> > checkq = new ArrayList<ArrayList<String> >();
while(true)
{
checkIP.getQueue(checkq);
boolean processedsomething = false;
for (int i = 0; i < checkq.size(); i++)
{
ArrayList<String> resultlines = checkq.remove(i);
String x = null;
String relation = null;
String relationweight = null;
String y = null;
for(int li=0;li<resultlines.size();li++)
{
processedsomething = true;
String line = resultlines.get(li);
line = line.trim();
if(state==OUTSIDE)
{
if(line.startsWith("<td class=\"edge-start\">"))
{
state = INEDGESTART;
}
}
else
if(state==INEDGESTART)
{
if(line.startsWith("<a href=\""))
{
line = line.substring("<a href=\"".length());
int ind = line.indexOf("\"");
line = line.substring(0,ind);
x = line;
}
else
if(line.startsWith("<td class=\"edge-rel\">"))
{
state = INEDGEREL;
}
}
else
if(state==INEDGEREL)
{
if(line.startsWith("― <span class=\"rel-label\">"))
{
line = line.substring("― <span class=\"rel-label\">".length());
int ind = line.indexOf("<");
line = line.substring(0,ind);
relation = line;
}
else
if(line.startsWith("Weight: "))
{
line = line.substring("Weight: ".length());
relationweight = line;
}
else
if(line.startsWith("<td class=\"edge-end\">"))
{
state = INEDGEEND;
}
}
else
if(state==INEDGEEND)
{
//if(line.startsWith("<a href=\""))
//Grab the supplementary definition so we get the sense of the word i.e. a noun not a verb
if(line.startsWith("(<a href=\""))
{
line = line.substring("(<a href=\"".length());
int ind = line.indexOf("\"");
line = line.substring(0,ind);
y = line;
//can now process the edge information
//we only want the things that are a room not things a room is
if(y.equalsIgnoreCase("/c/en/room/n"))
{
System.out.println(x+" "+relation+" "+y);
}
}
else
if(line.startsWith("</sup>"))
{
state = OUTSIDE;
}
}
}
}
if(processedsomething)
break;
Thread.sleep(16);
long time = System.currentTimeMillis();
// if((time-startIP)>1000)
// {
// //timeout
// break;
// }
}
}
catch(Exception e)
{
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Document getPageWithRetries(URL url) throws IOException {\n Document doc;\n int retries = 3;\n while (true) {\n sendUpdate(STATUS.LOADING_RESOURCE, url.toExternalForm());\n LOGGER.info(\"Retrieving \" + url);\n doc = Http.url(url)\n ... | [
"0.59304553",
"0.59192413",
"0.5884985",
"0.5862913",
"0.5841572",
"0.57575095",
"0.5698627",
"0.56974316",
"0.56958145",
"0.5675194",
"0.5664991",
"0.5656247",
"0.5638586",
"0.55556595",
"0.5535916",
"0.54672474",
"0.5434251",
"0.54146224",
"0.5408428",
"0.53835803",
"0.5376... | 0.0 | -1 |
The average, the minimum, the maximum, and the standard deviation of the number of parades coordinated by the chapters | @Query("select avg((select count(p) from Parade p join p.brotherhood b where b.area.id=a.id)*1.), min((select count(p) from Parade p join p.brotherhood b where b.area.id=a.id)*1.), max((select count(p) from Parade p join p.brotherhood b where b.area.id=a.id)*1.), stddev((select count(p) from Parade p join p.brotherhood b where b.area.id=a.id)*1.) from Chapter c join c.area a")
Double[] avgMinMaxStddevParadesCoordinatedByChapter(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getAverage() { return (int)Math.ceil(getSumOfMarks()/ numberOfCourses); }",
"@Query(\"select c1.name from Chapter c1 join c1.area a1 where ((select count(p) from Parade p join p.brotherhood b where b.area.id=a1.id)*1.) > (select avg((select count(p) from Parade p join p.brotherhood b where b.area.id=a... | [
"0.6334783",
"0.6003587",
"0.5900748",
"0.572982",
"0.57004726",
"0.56456447",
"0.56424433",
"0.56273586",
"0.56131",
"0.56009847",
"0.5567904",
"0.55627036",
"0.5550625",
"0.553849",
"0.5520902",
"0.5510115",
"0.55063677",
"0.55043876",
"0.5488818",
"0.5487256",
"0.548259",
... | 0.7289172 | 0 |
The chapters that coordinate at least 10% more parades than the average | @Query("select c1.name from Chapter c1 join c1.area a1 where ((select count(p) from Parade p join p.brotherhood b where b.area.id=a1.id)*1.) > (select avg((select count(p) from Parade p join p.brotherhood b where b.area.id=a.id)*1.1) from Chapter c join c.area a)")
Collection<String> chaptersWith10PerCentParadesCoordinateThanAvg(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Query(\"select avg((select count(p) from Parade p join p.brotherhood b where b.area.id=a.id)*1.), min((select count(p) from Parade p join p.brotherhood b where b.area.id=a.id)*1.), max((select count(p) from Parade p join p.brotherhood b where b.area.id=a.id)*1.), stddev((select count(p) from Parade p join p.broth... | [
"0.60869545",
"0.6086452",
"0.6047846",
"0.5879171",
"0.5856739",
"0.57877666",
"0.5674289",
"0.5654524",
"0.54570866",
"0.54166216",
"0.5349154",
"0.52930045",
"0.529291",
"0.5273734",
"0.52660716",
"0.51839006",
"0.5174608",
"0.51667297",
"0.5166624",
"0.51424074",
"0.51367... | 0.74238724 | 0 |
Retrieves the chapter associated with a certain area. | @Query("select c from Chapter c where c.area.id=?1")
Chapter getChapterForArea(int id); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Chapter getChapter() {\n return chapter;\n }",
"@Override\n public final Chapter get(int index) {\n return chapterAt(index);\n }",
"public String getChapter(long id) {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n }",
"Section getSection();",
"pub... | [
"0.5940393",
"0.5925667",
"0.56726193",
"0.562092",
"0.5588725",
"0.5245007",
"0.52313125",
"0.51359856",
"0.50660855",
"0.50660306",
"0.50573194",
"0.504541",
"0.5030234",
"0.50107694",
"0.4944191",
"0.4931758",
"0.49030083",
"0.48957488",
"0.4867506",
"0.48619372",
"0.48583... | 0.69189465 | 0 |
if m_cache contains key | public void set(int key, int value) {
if (m_cache.containsKey(key)) {
m_cache.put(key, value);
m_visitedKeys.remove(new Integer(key)); // remove the current key because it is visited
// add this element to head: shows that this is been visited recently
m_visitedKeys.add(key);
} // if not:
else if (m_cache.size() + 1 <= m_maxCapacity) {
// 1) in capacity do not need to remove it from visitedList.
m_cache.put(key, value);
m_visitedKeys.add(key);
} else { // 2) out of capacity
// Get the oldest key from list
int lastUnUsedKey = m_visitedKeys.get(0);
// Remove this key from list
m_visitedKeys.remove(0);
// Get the oldest key's corresponding value in cache
int lastUnUsedVal = m_cache.get(lastUnUsedKey);
// Remove this value from cache
/*
* PAY ATTENTION !!!!1 Must use remove (key, value) at the same time,
*
* remove(new Integer(key)): can not remove the existed Object key in cache.
*
* */
m_cache.remove(lastUnUsedKey, lastUnUsedVal);
// Finally, insert the new element to cache
m_cache.put(key, value);
// Finally, insert the new element to head of list.
m_visitedKeys.add(key);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean inCache(String key);",
"boolean isKeyInCache(Object key);",
"@Override\n public synchronized boolean containsKey(Object key) {\n if ((System.currentTimeMillis() - this.lastCheck) > this.CACHE_TIME) {\n update();\n }\n if (this.ignoreCase) {\n return ... | [
"0.8353053",
"0.8027454",
"0.7620448",
"0.75641274",
"0.74081516",
"0.73233736",
"0.72072",
"0.7192561",
"0.71877277",
"0.7008328",
"0.69826907",
"0.6963259",
"0.6870557",
"0.6855788",
"0.68246955",
"0.68181765",
"0.6816783",
"0.68145114",
"0.68067443",
"0.68002486",
"0.67998... | 0.0 | -1 |
Create a scene and place the pane in the stage. | @Override
public final void start(final Stage primaryStage) {
Scene scene = new Scene(getPane(), PANE_WIDTH, PANE_HEIGHT);
primaryStage.setTitle("Tic-Tak-Toe"); // Set the stage title.
primaryStage.setScene(scene); // Place the scene in the stage.
primaryStage.show(); // Display the stage.
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void createScene() {\r\n imageView.setFitWidth(400);\r\n imageView.setFitHeight(300);\r\n\r\n Scene scene = new Scene(rootScene(), 700, 600);\r\n\r\n primaryStage.setTitle(TITLE);\r\n primaryStage.setScene(scene);\r\n primaryStage.show();\r\n }",
"void createS... | [
"0.7964293",
"0.7565479",
"0.7493628",
"0.73273",
"0.72806",
"0.7253586",
"0.7184519",
"0.71787935",
"0.7140614",
"0.7099998",
"0.7067838",
"0.7049253",
"0.703541",
"0.698509",
"0.6907364",
"0.6906067",
"0.68039876",
"0.6773329",
"0.67661786",
"0.67519665",
"0.67514026",
"0... | 0.66364384 | 27 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.