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 |
|---|---|---|---|---|---|---|
Create cubic tree of synsets. | void loadMyset() throws XVException {
CubeTree.init(null);
CubeTree.create(ecs, synsets);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void unionTreeCoreset(int k,int n_1,int n_2,int d, Point[] setA,Point[] setB, Point[] centres, MTRandom clustererRandom) {\n\t\t//printf(\"Computing coreset...\\n\");\n\t\t//total number of points\n\t\tint n = n_1+n_2;\n\n\t\t//choose the first centre (each point has the same probability of being choosen)\n\t\t\n\... | [
"0.5590658",
"0.5426319",
"0.5416336",
"0.5352983",
"0.5312317",
"0.52860475",
"0.52511",
"0.52080256",
"0.5195114",
"0.5171589",
"0.51284486",
"0.511626",
"0.5105326",
"0.50966966",
"0.5075403",
"0.506275",
"0.5059507",
"0.5052534",
"0.50383246",
"0.5028693",
"0.50116783",
... | 0.472775 | 78 |
Do something smart. Or run! | @Override
public void onFailure(Throwable t) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void internalRun() {\n work();\n }",
"protected final boolean exec()\n/* */ {\n/* 731 */ compute();\n/* 732 */ return false;\n/* */ }",
"public static void run(){}",
"public void run () { run (true); }",
"boolean run();",
"private void runBest() {\n }",
"prote... | [
"0.6647485",
"0.64541173",
"0.63633215",
"0.6337546",
"0.63200426",
"0.62400806",
"0.62109834",
"0.6200235",
"0.6177255",
"0.6150795",
"0.61465675",
"0.6141126",
"0.6133659",
"0.60927105",
"0.60809386",
"0.60809386",
"0.60809386",
"0.60809386",
"0.60649973",
"0.60379064",
"0.... | 0.0 | -1 |
Do not instantiate this class | private NameUtil() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Rekenhulp()\n\t{\n\t}",
"private ATCres() {\r\n // prevent to instantiate this class\r\n }",
"private Example() {\n\t\tthrow new Error(\"no instantiation is permitted\");\n\t}",
"protected Doodler() {\n\t}",
"private TMCourse() {\n\t}",
"private MApi() {}",
"private stendhal() {\n\t}"... | [
"0.7573428",
"0.74683857",
"0.74294084",
"0.7281481",
"0.72477275",
"0.718707",
"0.7182515",
"0.7157893",
"0.7149475",
"0.71439695",
"0.71012634",
"0.70902926",
"0.7084446",
"0.7052673",
"0.7020106",
"0.7005304",
"0.6988552",
"0.6967558",
"0.69662595",
"0.6940627",
"0.6937603... | 0.0 | -1 |
Determines whether or not the given name is valid for a userdefined entity in the database. Valid names are determined to not begin with a single underscore, not to begin with a digit, and to contain only unicode appropriate word characters. | public static boolean isValidUserDefinedDatabaseName(String name) {
boolean matchHit = letterFirstPattern.matcher(name).matches();
// TODO: uppercase is bad...
boolean reserveHit =
Collections.binarySearch(reservedNamesSortedList, name.toUpperCase(Locale.US)) >= 0;
return !reserveHit && matchHit... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean isNameValid(String name) {\n\n }",
"public boolean isValidName(String proposedName);",
"public boolean isValidName(String name)\r\n {\r\n // check for illegal combinations of characters\r\n // this is probably not a complete check, but hopefully it is good enough\r\n if ( (name == ... | [
"0.723071",
"0.6882832",
"0.6852215",
"0.6789226",
"0.67835844",
"0.67238754",
"0.67105585",
"0.66615987",
"0.6539999",
"0.6532839",
"0.65179586",
"0.6485519",
"0.64822185",
"0.64674854",
"0.64372957",
"0.6417539",
"0.63668793",
"0.6334292",
"0.62952703",
"0.628189",
"0.62767... | 0.6791997 | 3 |
Used in ColumnUtil, TableUtil, FormsProvider, OdkResolveConflictRowLoader, ODkResolveConflictFieldLoader, OdkResolveCheckpointRowLoader, OdkResolveCheckpointFieldLoader and SyncExecutionContext | @SuppressWarnings("WeakerAccess")
public static String constructSimpleDisplayName(String name) {
String displayName = name.replaceAll("_", " ");
if (displayName.startsWith(" ")) {
displayName = "_" + displayName;
}
if (displayName.endsWith(" ")) {
displayName += "_";
}
Map<String, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void applyLoaderData(@NotNull IndexRegistrar registrar, @NotNull Loader loader) {\n IntObjectHashMap<Loader[]> newClassPackageCache = new IntObjectHashMap<>(classPackageCache);\n IntObjectHashMap<Loader[]> newResourcePackageCache = new IntObjectHashMap<>(resourcePackageCache);\n registrar.registerPackageI... | [
"0.5197622",
"0.51131934",
"0.49926102",
"0.49652588",
"0.49557638",
"0.49502558",
"0.49400017",
"0.4933036",
"0.49290854",
"0.49155948",
"0.48759046",
"0.487528",
"0.4870976",
"0.48700005",
"0.4869091",
"0.48501158",
"0.48299474",
"0.48273587",
"0.48116478",
"0.48038647",
"0... | 0.0 | -1 |
Used in MediaCaptureVideoActivity, MediaCaptureImageActivity, MediaDeleteAudioActivity, MediaChooseAudioActivity, MediaCaptureAudioActivity, MediaChooseImageActivity, DeviceSettingsFragment, MediaDeleteImageActivity, MediaChooseVideoActivity, MediaDeleteVideoActivity | @SuppressWarnings("WeakerAccess")
public static String normalizeDisplayName(String displayName) {
// TODO this seems backwards
//noinspection UnnecessaryParentheses
if ((displayName.startsWith("\"") && displayName.endsWith("\"")) || (displayName.startsWith("{")
&& displayName.endsWith("}"))) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\tmediaManager.onActivityResult(requestCode, resultCode, data);\n\t}",
"protected void onMediaControllerConnected() {\n }",
"public void run() {\n\n\n ... | [
"0.6192905",
"0.6063965",
"0.6041019",
"0.6026717",
"0.6015504",
"0.60080546",
"0.6002207",
"0.5995527",
"0.59911656",
"0.59407115",
"0.59245646",
"0.5881781",
"0.5872417",
"0.5852202",
"0.58476776",
"0.58403605",
"0.58177114",
"0.58162963",
"0.5812431",
"0.5809251",
"0.57962... | 0.0 | -1 |
Recalcs the indicator using given parameters This method clears any Dst... series and recalculates them again using indicator parameters | public abstract void recalc(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void unsetValuePeriod();",
"public void reset() {\n\t\tsuper.reset(); // reset the Reportable, too.\n\n\t\tif (_interArrivalTimeActivated && _interArrivalTally != null)\n\t\t\t_interArrivalTally.reset();\n\t\t\n\t\t// really reset the counter value?\n\t\tif (!this.isResetResistant) {\n\t\t\tthis._value = 0;\n ... | [
"0.54240817",
"0.5302737",
"0.5219467",
"0.51935494",
"0.5190638",
"0.5190212",
"0.5188514",
"0.5170859",
"0.5170379",
"0.513247",
"0.5131332",
"0.5125879",
"0.51001143",
"0.50863194",
"0.50834066",
"0.49741057",
"0.4960931",
"0.4958545",
"0.49514306",
"0.4938589",
"0.4934758... | 0.5320095 | 1 |
public List retrievePaginguser(PageBean pageBean); | public List<Object> retrievePagingList(PageBean pageBean) ; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public PageList<User> getUserPageList(User user, int pageSize, int pageNum) throws DataAccessException;",
"public List<UserVO> pagingUser(Criteria cri);",
"public List<UserInfo> resultUserList(PageBean pBean) {\n\t\treturn adminSearchDao.resultUserList(pBean);\n\t}",
"@Override\n\tpublic List<SysUser> getAll... | [
"0.8066133",
"0.7762994",
"0.7421232",
"0.72251374",
"0.7060592",
"0.70534956",
"0.69803905",
"0.6963646",
"0.69211227",
"0.6913125",
"0.6828707",
"0.67717826",
"0.67326784",
"0.67113745",
"0.66874796",
"0.66444415",
"0.6632846",
"0.6611396",
"0.65720737",
"0.65702176",
"0.65... | 0.8998313 | 0 |
/ Print and count the vowels in a string variable. Ex: Hello World! e o o Total: 3 | public static void main(String[] args) {
String word;
Scanner in = new Scanner(System.in);
int count = 0;
System.out.println("Enter the string");
word = in.nextLine().toLowerCase().replaceAll("[^a-z]", "");
for (int i = 0;i<word.length();i++)
{
if (w... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static int countVowels( String w ) \n {\n int total = 0;\n int origLength = w.length();\n for (int i = 0; i < origLength; i++){\n if (isAVowel(w.substring(i,i+1))){\n total += 1;\n }\n }\n return total;\n }",
"public static int countVowels( String w ) \r\n { in... | [
"0.79876435",
"0.7952304",
"0.7630052",
"0.757565",
"0.74996716",
"0.74926347",
"0.73365384",
"0.73341924",
"0.72025007",
"0.6982918",
"0.68055665",
"0.6746761",
"0.6712904",
"0.6692657",
"0.66509527",
"0.6627088",
"0.6588485",
"0.65743804",
"0.6538832",
"0.64912677",
"0.6444... | 0.8128425 | 0 |
load config from db | @Override
public void merge(JobConfig config) {
System.out.println("========>>假装从数据库load一下配置");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void loadConfiguration() {\n Properties prop = new Properties();\n String propFileName = \".env_\" + this.dbmode.name().toLowerCase();\n InputStream inputStream = getClass().getClassLoader().getResourceAsStream(propFileName);\n try {\n if (inputStream != null) {\n ... | [
"0.70366466",
"0.66595846",
"0.6614499",
"0.6549974",
"0.653824",
"0.65074664",
"0.65056425",
"0.64969534",
"0.64761907",
"0.6458711",
"0.6442638",
"0.6397285",
"0.63820714",
"0.63177204",
"0.63091856",
"0.626148",
"0.62229425",
"0.61926514",
"0.61277914",
"0.6074224",
"0.603... | 0.60805315 | 19 |
save config to db | @Override
public void persist(JobConfig config) {
System.out.println("========>>假装保存配置到数据库");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void saveDbConfig () {\n\t\ttry {\n\t\t\tthis.databaseConfig.store(new FileWriter(new File(this.databaseAddress)), \"\");\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"[ERROR] Could not save initialization to database properties file: \" + databaseAddress);\n\t\t\tSystem.err.println(e.getMessag... | [
"0.77242756",
"0.7486732",
"0.69770706",
"0.6825111",
"0.6821492",
"0.67371184",
"0.6719651",
"0.6630398",
"0.65726674",
"0.65543425",
"0.6532178",
"0.6527645",
"0.6438284",
"0.64280266",
"0.6396211",
"0.6390133",
"0.6364084",
"0.6350637",
"0.630146",
"0.6281956",
"0.62717086... | 0.7226223 | 2 |
Selects a subset of instances according to their relative importance. | public static void selectInstances(Fold origFold, Fold normFold, String expId, ParametersManager params)
throws IOException {
determineFinalRanks(normFold, params);
for (double selectionLevel : params.getSelectionLevels())
applySelection(origFold, normFold, expId, params, select... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@RoughSet\npublic interface FeatureImportance4ActiveSampleSelection<V> \n\textends FeatureImportance<V>\n{\n\tFeatureImportance4ActiveSampleSelection<V> calculate(Collection<EquivalenceClass> equClasses);\n}",
"private ExtractedItemsCollection selectItemByChance(Collection<ExtractedItemsCollection> itemsCollecti... | [
"0.5889519",
"0.5213887",
"0.5213887",
"0.5157346",
"0.5084391",
"0.50817424",
"0.50452316",
"0.50385773",
"0.49684125",
"0.49590248",
"0.49281883",
"0.49194506",
"0.49176666",
"0.49159387",
"0.4901535",
"0.4856307",
"0.48154366",
"0.48036936",
"0.47781193",
"0.47704",
"0.476... | 0.4776559 | 19 |
Determines the order of elimination of all instances. | private static void determineFinalRanks(Fold fold, ParametersManager params) {
for (int currRank = fold.getNumInst(); currRank >= 1; currRank--) {
Instance instSmallestWeight = fold.getInstSmallestWeight(); // selects the next less important instance
instSmallestWeight.setRank(currRank)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void decrementOrder() {\n mOrder--;\n }",
"int order();",
"private void shuffleOrder() {\n\t\t// Simple shuffle: swap each piece with some other one\n\t\tfor (int i = 0; i < order.size(); i++) {\n\t\t\tint j = (int) (Math.random() * order.size());\n\t\t\tInteger pi = order.get(i);\n\t\t\torder... | [
"0.55469304",
"0.53760546",
"0.5375443",
"0.53714144",
"0.5361755",
"0.53508276",
"0.53151816",
"0.5310983",
"0.53007954",
"0.52883303",
"0.5209422",
"0.5167985",
"0.5160279",
"0.5155137",
"0.5087421",
"0.5074419",
"0.507348",
"0.5061288",
"0.50534505",
"0.5048112",
"0.503651... | 0.5304657 | 8 |
Selects the instances that will be written in the output file. | private static void applySelection(Fold origFold, Fold normFold, String expId, ParametersManager params,
double selectionLevel) throws IOException {
int numInst = normFold.getNumInst();
int numInstRemoved = (int) Math.round(selectionLevel / 100 * numInst);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static void saveDataFromInstances(String fileName,Instances instances) throws Exception{\n\t\t\t\t\n\t\tPrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter(fileName)));\n\t\t\t\t\t\t\n\t\t// Write header...\n\t\tAttribute IDAttribute = instances.attribute(\"ID\");\n\t\t\n\t\tif (IDAttribute == null)... | [
"0.5641412",
"0.5638596",
"0.5590061",
"0.542805",
"0.5119182",
"0.5115108",
"0.508463",
"0.50805575",
"0.5075561",
"0.5074862",
"0.50281227",
"0.5013994",
"0.50139606",
"0.4973276",
"0.49335787",
"0.4931044",
"0.49217394",
"0.4915834",
"0.4878249",
"0.4859804",
"0.48557237",... | 0.46533263 | 44 |
TODO Autogenerated method stub | @Override
public int write(cms_board_vo cms_board_vo) throws Exception {
return sql.insert("cms_board.write", cms_board_vo);
} | {
"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 List<cms_board_vo> list(SearchCriteria scri) throws Exception {
return sql.selectList("cms_board.list", scri);
} | {
"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 cms_board_vo read(int cms_bno) throws Exception {
return sql.selectOne("cms_board.read", cms_bno);
} | {
"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 int update(cms_board_vo cms_board_vo) throws Exception {
return sql.update("cms_board.update", cms_board_vo);
} | {
"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 int delete(int cms_bno) throws Exception {
return sql.delete("cms_board.delete", cms_bno);
} | {
"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 int list_count(SearchCriteria scri) throws Exception {
return sql.selectOne("cms_board.list_count", scri);
} | {
"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 int insert_file(Map<String, Object> map) throws Exception {
return sql.insert("cms_board.insert_file", map);
} | {
"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 List<Map<String, Object>> select_file_list(int cms_bno) throws Exception {
return sql.selectList("cms_board.select_file_list", cms_bno);
} | {
"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 Map<String, Object> select_file_info(Map<String, Object> map) throws Exception {
return sql.selectOne("cms_board.select_file_info", map);
} | {
"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 int update_file(Map<String, Object> map) throws Exception {
return sql.update("cms_board.update_file", map);
} | {
"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 int board_hit(int cms_bno) throws Exception {
return sql.update("cms_board.board_hit", cms_bno);
} | {
"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 |
import org.compiere.util.CPreparedStatement; Interface for Compiere Databases | public interface CompiereDatabase
{
/**
* Get Database Name
* @return database short name
*/
public String getName();
/**
* Get Database Description
* @return database long name and version
*/
public String getDescription();
/**
* Get Database Driver
* @return Driver
*/
public Driver get... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface DAOjdbc\n{\n Boolean admin_log(String u,String p) throws SQLException, ClassNotFoundException;\n Boolean add_topic(String l,String n,String r) throws SQLException, ClassNotFoundException;\n List<Topic> topic(String t) throws SQLException, ClassNotFoundException;\n List<Topic> Selec... | [
"0.63425934",
"0.6310619",
"0.6267267",
"0.6165299",
"0.6155697",
"0.61399955",
"0.6129327",
"0.6027519",
"0.5966034",
"0.5958876",
"0.5945379",
"0.5934242",
"0.59269834",
"0.59250784",
"0.59048504",
"0.5859132",
"0.58578706",
"0.584626",
"0.5836156",
"0.5835452",
"0.58238554... | 0.7909048 | 1 |
Get Standard JDBC Port | public int getStandardPort(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer getDatabasePort() {\n return this.databasePort;\n }",
"public String getDbPort() {\r\n return dbPort;\r\n }",
"java.lang.String getPort();",
"java.lang.String getPort();",
"public static int getPort(){\n return catalogue.port;\n }",
"String getPort();",
"public ... | [
"0.7376473",
"0.7225248",
"0.70949084",
"0.70949084",
"0.6982899",
"0.6954247",
"0.69389755",
"0.68692243",
"0.68226165",
"0.6759576",
"0.6759576",
"0.6759576",
"0.67319137",
"0.6728564",
"0.6671573",
"0.66102463",
"0.65714926",
"0.65714926",
"0.65714926",
"0.65714926",
"0.65... | 0.7015818 | 5 |
Get Database Connection String | public String getConnectionURL (CConnection connection); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String getConnectionDB(){\n return \"jdbc:mysql://\" + hostname +\":\"+ port+\"/\" + database;\n }",
"public String getDbconnstr() {\n return dbconnstr;\n }",
"public String getConnectionString()\n\t{\n\t\treturn connectionString;\n\t}",
"public String getRepositoryDatabaseC... | [
"0.8058001",
"0.76440746",
"0.7623729",
"0.7597154",
"0.7564584",
"0.75642246",
"0.7422463",
"0.7422463",
"0.7422463",
"0.7422463",
"0.7377652",
"0.7304085",
"0.72620636",
"0.72620636",
"0.72620636",
"0.72620636",
"0.7251434",
"0.71447575",
"0.71417946",
"0.71364784",
"0.7129... | 0.0 | -1 |
Convert an individual Oracle Style statements to target database statement syntax | public String convertStatement (String oraStatement); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String convertStatement (String oraStatement)\n\t{\n\t\tString retValue[] = m_convert.convert(oraStatement);\n\t\t\n //begin vpj-cd e-evolution 03/14/2005\n\t\tif (retValue.length == 0 )\n\t\t\treturn oraStatement;\n //end vpj-cd e-evolution 03/14/2005\n\t\t\n\t\tif (retValue == null)\n ... | [
"0.6158571",
"0.5946696",
"0.57686996",
"0.5645558",
"0.5630374",
"0.5630374",
"0.5630374",
"0.5586401",
"0.54953843",
"0.54810494",
"0.5468634",
"0.5468541",
"0.5440059",
"0.5416309",
"0.53847575",
"0.5367015",
"0.5282085",
"0.5265555",
"0.52458495",
"0.52436554",
"0.5223167... | 0.7513515 | 1 |
Get Cached Connection on Server | public Connection getCachedConnection (CConnection connection); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n default IServerPrx ice_connectionCached(boolean newCache)\n {\n return (IServerPrx)_ice_connectionCached(newCache);\n }",
"public static Connection getConnection() {\n \t\treturn connPool.getConnection();\n \t}",
"private Connection getConn(){\n \n return new util.Connecti... | [
"0.6681043",
"0.6659191",
"0.65868306",
"0.65025896",
"0.647643",
"0.64674264",
"0.6441857",
"0.64156926",
"0.63820845",
"0.63646924",
"0.6340477",
"0.6340477",
"0.6340477",
"0.6313813",
"0.6297389",
"0.6281483",
"0.6254417",
"0.62448686",
"0.622818",
"0.62226397",
"0.6218954... | 0.8293365 | 1 |
Create Pooled DataSource (Server) | public ConnectionPoolDataSource createPoolDataSource(CConnection connection); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static PoolingDataSource setupDataSource() {\n\t\tPoolingDataSource pds = new PoolingDataSource();\n\t\tpds.setUniqueName(\"jdbc/jbpm-ds\");\n\t\tpds.setClassName(\"bitronix.tm.resource.jdbc.lrc.LrcXADataSource\");\n\t\tpds.setMaxPoolSize(5);\n\t\tpds.setAllowLocalTransactions(true);\n\t\tpds.getDriverPrope... | [
"0.6715864",
"0.66831934",
"0.6572958",
"0.6551669",
"0.65409636",
"0.65028095",
"0.6370322",
"0.62182117",
"0.6183662",
"0.6124496",
"0.60993177",
"0.6066936",
"0.59918547",
"0.5951328",
"0.59069747",
"0.58891016",
"0.5880505",
"0.5859238",
"0.5773527",
"0.57732964",
"0.5750... | 0.72063065 | 1 |
import org.compiere.util.CPreparedStatement; Interface for Compiere Databases | public interface CompiereDatabase
{
/**
* Get Database Name
* @return database short name
*/
public String getName();
/**
* Get Database Description
* @return database long name and version
*/
public String getDescription();
/**
* Get Database Driver
* @return Driver
*/
public Driver get... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface DAOjdbc\n{\n Boolean admin_log(String u,String p) throws SQLException, ClassNotFoundException;\n Boolean add_topic(String l,String n,String r) throws SQLException, ClassNotFoundException;\n List<Topic> topic(String t) throws SQLException, ClassNotFoundException;\n List<Topic> Selec... | [
"0.63425934",
"0.6310619",
"0.6267267",
"0.6165299",
"0.6155697",
"0.61399955",
"0.6129327",
"0.6027519",
"0.5966034",
"0.5958876",
"0.5945379",
"0.5934242",
"0.59269834",
"0.59250784",
"0.59048504",
"0.5859132",
"0.58578706",
"0.584626",
"0.5836156",
"0.5835452",
"0.58238554... | 0.7909048 | 0 |
Get Standard JDBC Port | public int getStandardPort(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer getDatabasePort() {\n return this.databasePort;\n }",
"public String getDbPort() {\r\n return dbPort;\r\n }",
"java.lang.String getPort();",
"java.lang.String getPort();",
"public static int getPort(){\n return catalogue.port;\n }",
"String getPort();",
"public ... | [
"0.7376473",
"0.7225248",
"0.70949084",
"0.70949084",
"0.6982899",
"0.6954247",
"0.69389755",
"0.68692243",
"0.68226165",
"0.6759576",
"0.6759576",
"0.6759576",
"0.67319137",
"0.6728564",
"0.6671573",
"0.66102463",
"0.65714926",
"0.65714926",
"0.65714926",
"0.65714926",
"0.65... | 0.7015818 | 4 |
Get Database Connection String | public String getConnectionURL (CConnection connection); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String getConnectionDB(){\n return \"jdbc:mysql://\" + hostname +\":\"+ port+\"/\" + database;\n }",
"public String getDbconnstr() {\n return dbconnstr;\n }",
"public String getConnectionString()\n\t{\n\t\treturn connectionString;\n\t}",
"public String getRepositoryDatabaseC... | [
"0.8058001",
"0.76440746",
"0.7623729",
"0.7597154",
"0.7564584",
"0.75642246",
"0.7422463",
"0.7422463",
"0.7422463",
"0.7422463",
"0.7377652",
"0.7304085",
"0.72620636",
"0.72620636",
"0.72620636",
"0.72620636",
"0.7251434",
"0.71447575",
"0.71417946",
"0.71364784",
"0.7129... | 0.0 | -1 |
Convert an individual Oracle Style statements to target database statement syntax | public String convertStatement (String oraStatement); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String convertStatement (String oraStatement)\n\t{\n\t\tString retValue[] = m_convert.convert(oraStatement);\n\t\t\n //begin vpj-cd e-evolution 03/14/2005\n\t\tif (retValue.length == 0 )\n\t\t\treturn oraStatement;\n //end vpj-cd e-evolution 03/14/2005\n\t\t\n\t\tif (retValue == null)\n ... | [
"0.6158571",
"0.5946696",
"0.57686996",
"0.5645558",
"0.5630374",
"0.5630374",
"0.5630374",
"0.5586401",
"0.54953843",
"0.54810494",
"0.5468634",
"0.5468541",
"0.5440059",
"0.5416309",
"0.53847575",
"0.5367015",
"0.5282085",
"0.5265555",
"0.52458495",
"0.52436554",
"0.5223167... | 0.7513515 | 0 |
Get Cached Connection on Server | public Connection getCachedConnection (CConnection connection); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n default IServerPrx ice_connectionCached(boolean newCache)\n {\n return (IServerPrx)_ice_connectionCached(newCache);\n }",
"public static Connection getConnection() {\n \t\treturn connPool.getConnection();\n \t}",
"private Connection getConn(){\n \n return new util.Connecti... | [
"0.6681043",
"0.6659191",
"0.65868306",
"0.65025896",
"0.647643",
"0.64674264",
"0.6441857",
"0.64156926",
"0.63820845",
"0.63646924",
"0.6340477",
"0.6340477",
"0.6340477",
"0.6313813",
"0.6297389",
"0.6281483",
"0.6254417",
"0.62448686",
"0.622818",
"0.62226397",
"0.6218954... | 0.8293365 | 0 |
Create Pooled DataSource (Server) | public ConnectionPoolDataSource createPoolDataSource(CConnection connection); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static PoolingDataSource setupDataSource() {\n\t\tPoolingDataSource pds = new PoolingDataSource();\n\t\tpds.setUniqueName(\"jdbc/jbpm-ds\");\n\t\tpds.setClassName(\"bitronix.tm.resource.jdbc.lrc.LrcXADataSource\");\n\t\tpds.setMaxPoolSize(5);\n\t\tpds.setAllowLocalTransactions(true);\n\t\tpds.getDriverPrope... | [
"0.6715864",
"0.66831934",
"0.6572958",
"0.6551669",
"0.65409636",
"0.65028095",
"0.6370322",
"0.62182117",
"0.6183662",
"0.6124496",
"0.60993177",
"0.6066936",
"0.59918547",
"0.5951328",
"0.59069747",
"0.58891016",
"0.5880505",
"0.5859238",
"0.5773527",
"0.57732964",
"0.5750... | 0.72063065 | 0 |
used when creating the view in code | public BoxDrawingView(Context context) {
this(context,null);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tprotected void initView() {\n\t\t\n\t}",
"@Override\n\tprotected void initView() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initView() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initView() {\n\t\t\r\n\t}",
"@Override\n\tprotected void initView()\n\t{\n\n\t}",
"View createView();",
... | [
"0.76889604",
"0.76889604",
"0.76239574",
"0.76239574",
"0.75708777",
"0.7517493",
"0.74655586",
"0.74655586",
"0.7456567",
"0.7433815",
"0.7369419",
"0.7369419",
"0.7363742",
"0.731033",
"0.72395635",
"0.72388303",
"0.72371715",
"0.72351176",
"0.7222069",
"0.7186808",
"0.717... | 0.0 | -1 |
used when inflating the view from XML | public BoxDrawingView(Context context, AttributeSet attrs) {
super(context, attrs);
boxPaint = new Paint();
boxPaint.setColor(0x22ff0000);
backgroundPaint = new Paint();
backgroundPaint.setColor(0xfff8efe0);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void initView() {\n }",
"@Override\n protected void initView() {\n }",
"@Override\n\tprotected void initView() {\n\t\t\n\t}",
"@Override\n\tprotected void initView() {\n\t\t\n\t}",
"@Override\n public void initView() {\n\n }",
"@Override\r\n\tprotected void initVie... | [
"0.7156702",
"0.7156702",
"0.70291567",
"0.70291567",
"0.70168984",
"0.70082736",
"0.70082736",
"0.700252",
"0.69782466",
"0.6909709",
"0.6909709",
"0.6901854",
"0.6901554",
"0.6814687",
"0.6801166",
"0.671247",
"0.6680292",
"0.66517866",
"0.6634542",
"0.6632278",
"0.660999",... | 0.0 | -1 |
standard method to get the angle of rotation | public static float angleBetweenLines(float A1x,float A1y,float A2x,
float A2y,float B1x,float B1y,float B2x, float B2y){
float angle1 = (float)Math.atan2(A2y - A1y,A1x - A2x);
float angle2 = (float)Math.atan2(B2y - B1y, B1x - B2x);
float calculatedAngl... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"double getAngle();",
"double getAngle();",
"public double getAngle();",
"public static double rotation()\r\n\t{\r\n\t\treturn -(mxp.getAngle()/45);\r\n\t}",
"public double getRotation();",
"public double getAngle() {\n synchronized (this.angleLock) {\n return this.movementComposer.getOr... | [
"0.8223163",
"0.8223163",
"0.81260276",
"0.80888844",
"0.79990304",
"0.79756826",
"0.79687864",
"0.78811806",
"0.7820549",
"0.7796976",
"0.77581877",
"0.77455276",
"0.7743686",
"0.7737494",
"0.772301",
"0.77162176",
"0.7701784",
"0.7698473",
"0.7687233",
"0.76778674",
"0.7664... | 0.0 | -1 |
TODO Autogenerated method stub | @SuppressWarnings("resource")
public static void main(String[] args) {
Scanner myScanner;
int age;
myScanner=new Scanner(System.in);
System.out.println("Please enter your age");
age=myScanner.nextInt();
if (age>=1 && age<3) {
System.ou... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
return inflater.inflate(R.layout.fragment_user, container, false);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup... | [
"0.6739604",
"0.67235583",
"0.6721706",
"0.6698254",
"0.6691869",
"0.6687986",
"0.66869223",
"0.6684548",
"0.66766286",
"0.6674615",
"0.66654444",
"0.66654384",
"0.6664403",
"0.66596216",
"0.6653321",
"0.6647136",
"0.66423255",
"0.66388357",
"0.6637491",
"0.6634193",
"0.66251... | 0.0 | -1 |
create constructor with parameters | public SalesPerson(String firstName, String lastName, String ppsNumber){
//pulls the constructor with parameters from the superclass SalesEmployee
super(firstName, lastName, ppsNumber);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"HxMethod createConstructor(final String... parameterTypes);",
"public Constructor(){\n\t\t\n\t}",
"private Instantiation(){}",
"protected abstract void construct();",
"Reproducible newInstance();",
"HxMethod createConstructor(final HxType... parameterTypes);",
"Constructor<T> newConstructor();",
"pub... | [
"0.7100894",
"0.7063717",
"0.70142007",
"0.6899057",
"0.67973816",
"0.6728336",
"0.6701122",
"0.6676471",
"0.6649589",
"0.6630989",
"0.6630633",
"0.66253847",
"0.65944356",
"0.65830564",
"0.6500074",
"0.64440185",
"0.643501",
"0.64258313",
"0.6411825",
"0.63877434",
"0.635976... | 0.0 | -1 |
overriding and implementing the calculateCommissino method found in the Superclass | public void calculateCommission(){
commission = (sales) * 0.15;
//A sales Person makes 15% commission on sales
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public abstract float calculaPreuExcursio(float preuExcursioBase) throws ExcepcioClub;",
"public abstract int calcularOferta();",
"@Override\n\tpublic double calculaDesconto() {\n\t\treturn this.gastosEmCongressos;\n\t}",
"protected abstract Object doCalculations();",
"protected abstract Big... | [
"0.6537368",
"0.6478254",
"0.6387729",
"0.63800645",
"0.6331049",
"0.62459683",
"0.6220069",
"0.61203414",
"0.6085728",
"0.60845727",
"0.60752505",
"0.60660386",
"0.6031325",
"0.60222775",
"0.60207206",
"0.6015393",
"0.60118645",
"0.59739727",
"0.5969825",
"0.5966073",
"0.596... | 0.56716824 | 61 |
TODO Autogenerated method stub | @Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_dp_action_detail);
initToolbar();
img = (WImageView) findViewById(R.id.img);
activity_Id = getIntent().getStringExtra("activity_Id");
initData();
} | {
"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) {
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 onNetworkError(Request request, IOException e) {
} | {
"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 onBizSuccess(String responseDescription, JSONObject data, String flag) {
try {
String image_url = data.getString("image_url");
ImageUtil.drawImageFromUri(image_url, img);
} catch (JSONException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
} | {
"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 onBizFailure(String responseDescription, JSONObject data, String flag) {
} | {
"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 |
whether the edges have been cut | private void updateEdgeInfor(int index, int preWordIndex, String word, String preWord) {
if (index == preWordIndex || word == preWord)
return;
if (!nodes.get(index).inlinks.containsKey(preWordIndex))
nodes.get(index).inlinks.put(preWordIndex, 1);
else {
int vOld = nodes.g... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean hasNonEscapingEdges() {\n return addedEdges != null;\n }",
"private boolean hasHitEdge() {\n if (!enableClusterExitPurging) {\n return false;\n }\n int lx = (int) location.x, ly = (int) location.y;\n int sx = chip.getSize... | [
"0.66928655",
"0.6617656",
"0.6417636",
"0.62441385",
"0.6228578",
"0.6223757",
"0.62098193",
"0.61890185",
"0.6107333",
"0.6073737",
"0.6056106",
"0.605197",
"0.6047508",
"0.6022744",
"0.6017997",
"0.60130864",
"0.59974235",
"0.5996718",
"0.5974486",
"0.5963493",
"0.5925737"... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public boolean addNewBird(BIrd imageObj) throws Exception {
boolean b = false;
try
{
session = sessionfactory.openSession();
transaction = session.beginTransaction();
session.save(imageObj);
transaction.commit();
... | {
"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 List<BIrdBeans> birdListByCatId(int categoryId) throws Exception {
List<BIrdBeans> getBirdImageListbyBirdId = new ArrayList<BIrdBeans>();
List temp=null;
try
{
session = sessionfactory.openSession();
transaction = session.beginTransaction();
... | {
"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 List<BIrd> searchByName(String birdName) throws Exception {
List<BIrd> list=new ArrayList<BIrd>();
try{
session=sessionfactory.openSession();
transaction = session.beginTransaction();
String sql="SELECT * FROM tbl_bird WHERE BirdName LIKE '%"+birdName+"%'";
SQLQuery query=session.cre... | {
"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 BIrd validateBirdName(String birdName) throws Exception, HibernateException {
BIrd bird=new BIrd();
try {
session = sessionfactory.openSession();
Criteria criteria = session.createCriteria(bird.getClass());
criteria.add(Restrictions.eq("birdName", birdName));
bird = (BIrd) criter... | {
"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 BirdDetail validateBirdDetails(String bdId) throws Exception {
BirdDetail birddet=new BirdDetail();
try {
session=sessionfactory.openSession();
transaction = session.beginTransaction();
String sql="select * from tbl_bird bd, tbl_bird_detail bds where bd.BirdId = bds.BdId and bd.BirdI... | {
"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 boolean deleteBird(BIrd bird) throws Exception {
boolean b = false;
try {
session = sessionfactory.openSession();
transaction = session.beginTransaction();
session.delete(bird);
transaction.commit();
session.close();
b = true;
} catch (Exception e) {
// TODO Auto-g... | {
"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 List<BIrdBeans> birdList() throws Exception {
List<BIrdBeans> birdList= new ArrayList<BIrdBeans>();
try{
session = sessionfactory.openSession();
Criteria criteria = session.createCriteria(BIrd.class);
birdList = criteria.addOrder(Order.asc("category")).list();
System.out.println(... | {
"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 List<BIrd> birdListByBirdId(int birdId) throws Exception {
List<BIrd> getBird = new ArrayList<BIrd>();
try {
System.out.println("inside");
session = sessionfactory.openSession();
transaction = session.beginTransaction();
String sql = "SELECT * FROM tbl_bird WHERE birdId = "+birdI... | {
"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 boolean updateBird(BIrd bird) throws Exception {
boolean b = false;
try
{
session = sessionfactory.openSession();
transaction = session.beginTransaction();
session.saveOrUpdate(bird);
transaction.commit();
session.cl... | {
"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 List<BirdDetail> birdDetListByBirdDetId(int bdId) throws Exception {
List<BirdDetail> getBird = new ArrayList<BirdDetail>();
try {
System.out.println("inside");
session = sessionfactory.openSession();
transaction = session.beginTransaction();
String sql = "SELECT * FROM tbl_bird_... | {
"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 boolean deleteBirdDetails(BirdDetail bird) throws Exception {
boolean b = false;
try {
session = sessionfactory.openSession();
transaction = session.beginTransaction();
session.delete(bird);
transaction.commit();
session.close();
b = true;
} catch (Exception e) {
/... | {
"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 boolean updateBirdDetails(BirdDetail bird) throws Exception {
boolean b = false;
try
{
session = sessionfactory.openSession();
transaction = session.beginTransaction();
session.saveOrUpdate(bird);
transaction.commit();
... | {
"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 |
construct a powerup spawn runnable | public PowerupRunnable(Arena a, PowerupManager pm) {
this.a = a;
pum = pm;
db.i("PowerupRunnable constructor");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Ex spawn() {\n return spawn(false);\n }",
"private void startSpawning()\n {\n MAUtils.setSpawnFlags(plugin, world, 1, allowMonsters, allowAnimals);\n \n // Start the spawnThread.\n spawnThread = new MASpawnThread(plugin, this);\n spawnTaskId = Bukkit... | [
"0.61959416",
"0.6168362",
"0.5926091",
"0.5885036",
"0.5863738",
"0.58086187",
"0.5788133",
"0.5780015",
"0.5766186",
"0.56759995",
"0.5652115",
"0.5596236",
"0.5582273",
"0.5574351",
"0.5565465",
"0.55549234",
"0.55291593",
"0.55083305",
"0.5487186",
"0.54743296",
"0.540929... | 0.6187431 | 1 |
the run method, spawn a powerup | @Override
public void run() {
db.i("PowerupRunnable commiting spawn");
if (a.fightInProgress) {
pum.calcPowerupSpawn(a);
} else {
// deactivate the auto saving task
Bukkit.getServer().getScheduler().cancelTask(pum.SPAWN_ID);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void execute() {\n\t\tshooter.runShooter(power);\n\t}",
"@Override\n public void run() {\n if (random.nextInt(10) == 0)\n addPowerUp(random.nextInt(256));\n }",
"@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\tTXZPo... | [
"0.6691101",
"0.6673904",
"0.64545834",
"0.64435023",
"0.62776965",
"0.62324446",
"0.6178016",
"0.6175064",
"0.6175064",
"0.61327153",
"0.61327153",
"0.61327153",
"0.61327153",
"0.61327153",
"0.61327153",
"0.61327153",
"0.61327153",
"0.61327153",
"0.61308146",
"0.60685855",
"... | 0.6771572 | 0 |
Object baseBallCoach Coach baseBallCoach = new BaseBallCoach(); Object trackCouch This is still hardcode (not recommended) Coach trackCoach = new TrackCoach(); System.out.println(trackCoach.getDailyWorkout()); Using spring container with solve > IoC and DI / XML > Legacy, but still use this Java Annotation > Modern Jav... | public static void main(String[] args) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface Coach1 {\n\tpublic String getDailyWorkout();\n\t\n\tpublic String getDailyFortune();\n}",
"public static void main(String[] args) {\r\n\tAnnotationConfigApplicationContext context=new AnnotationConfigApplicationContext(SwimConfig.class);\r\n\tCoach myCoach=context.getBean(\"swimCoach\",Coach.cla... | [
"0.614373",
"0.613588",
"0.6064649",
"0.5963958",
"0.5927",
"0.58321995",
"0.58305126",
"0.5818569",
"0.5814337",
"0.5808639",
"0.5753467",
"0.5750593",
"0.57265943",
"0.570223",
"0.5693571",
"0.56602544",
"0.56550777",
"0.561803",
"0.5555994",
"0.555439",
"0.5476079",
"0.5... | 0.0 | -1 |
Creates new form JFloguim | public TelaCliente() {
initComponents();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"FORM createFORM();",
"public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }",
"public static void create(Formulario form){\n daoFormulario.create(form);\n }",
"public FormInserir() {\n initComponents();\n }",
"public void onNew() {\t\t... | [
"0.7536043",
"0.715862",
"0.6888148",
"0.6801379",
"0.66494966",
"0.65332663",
"0.64902914",
"0.6444811",
"0.6435758",
"0.6310707",
"0.6269225",
"0.6252548",
"0.6223621",
"0.6207852",
"0.617466",
"0.61696404",
"0.6131694",
"0.612212",
"0.6111164",
"0.61072063",
"0.6106669",
... | 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. | public static void main(String args[]) {
/* Set the Nimbus look and feel */
//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
/* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
* For details see http://down... | {
"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 |
Verify all related sub panels are listed if user selects Related: "All" in Leads Data View | @Test
public void Leads_17564_execute() throws Exception {
VoodooUtils.voodoo.log.info("Running " + testName + "...");
sugar().leads.navToListView();
sugar().leads.listView.clickRecord(1);
sugar().leads.recordView.showDataView();
// TODO: VOOD-598. Once it is fixed, please update the following steps.
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void verify_AddSubCategoriesPage_DisplayedElements() {\n\n\t\tboolean bstatus;\n\n\t\tbstatus = isElementDisplayed(select_mainCategory, true);\n\t\tReporter.log(bstatus, \"Main Category drop displayed \", \"Main Category drop down not displayed\");\n\n\t\tbstatus = isElementDisplayed(edit_SubCategory, tru... | [
"0.57430863",
"0.5685151",
"0.5427957",
"0.53496164",
"0.53485036",
"0.5254972",
"0.5252451",
"0.5139059",
"0.50474805",
"0.5047171",
"0.50453156",
"0.5038623",
"0.5019648",
"0.501197",
"0.5002726",
"0.49633244",
"0.49602863",
"0.49492043",
"0.49492043",
"0.49439576",
"0.4943... | 0.5706581 | 1 |
Test of execute method, of class ReceiveAsciiAction. | @Test
public void testExecute() throws Exception {
((FakeTransportHandler) tlsContext.getTransportHandler())
.setFetchableByte(new byte[] { 0x15, 0x03, 0x02, 0x01 });
action.execute(state);
assertTrue(action.isExecuted());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract protected String performAction(String input);",
"public void testExecute() {\n\t\taes.execute();\n\t\t\n\t\tassertTrue(a.wasStopPollingMessagesCalled);\n\t\tassertTrue(osm.wasWriteCalled);\n\t}",
"@Test\n\tpublic void execute() {\n\t\tcommand.execute(request);\n\t}",
"public void testGetPostTransfer... | [
"0.6363346",
"0.6268904",
"0.6155472",
"0.5857977",
"0.58510697",
"0.58399636",
"0.5830602",
"0.58165175",
"0.5704622",
"0.56817275",
"0.5673773",
"0.5663378",
"0.56478083",
"0.5618929",
"0.5607487",
"0.5583577",
"0.5582043",
"0.5558461",
"0.5544726",
"0.5542104",
"0.5541411"... | 0.6998228 | 0 |
Test of WorkflowExecutionException of execute method, of class ReceiveAsciiAction. | @Test(expected = WorkflowExecutionException.class)
public void testExecuteWorkflowExecutionException() {
action.execute(state);
action.execute(state);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testExecute() throws Exception {\n ((FakeTransportHandler) tlsContext.getTransportHandler())\n .setFetchableByte(new byte[] { 0x15, 0x03, 0x02, 0x01 });\n\n action.execute(state);\n assertTrue(action.isExecuted());\n }",
"public void testExecute3() th... | [
"0.71440685",
"0.6927623",
"0.63453424",
"0.6230491",
"0.6127968",
"0.6112758",
"0.6071245",
"0.6035291",
"0.5950204",
"0.59184533",
"0.59120107",
"0.58810335",
"0.58423156",
"0.5833093",
"0.5830247",
"0.58106047",
"0.5800375",
"0.57872236",
"0.5776962",
"0.57646",
"0.5751884... | 0.8094631 | 0 |
Test of reset method, of class ReceiveAsciiAction. | @Test
public void testReset() {
action.reset();
assertFalse(action.isExecuted());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void testReset() {\n\t}",
"private void sendReset() {\n\t\tif (hardReset) {\n\t\t\tfsmTeacher.handleAction(\"reset%hard_reset\");\n\t\t\t// System.out.println(\"hard reset\");\n\t\t} else if (semiSoftReset) {\n\t\t\tSystem.out.println(\"semi soft reset\");\n\t\t\tfsmTeacher.handleAction(\"reset%semi_soft_... | [
"0.69874704",
"0.6940077",
"0.67700684",
"0.6742356",
"0.67236185",
"0.669908",
"0.669908",
"0.669908",
"0.669908",
"0.669908",
"0.669908",
"0.669908",
"0.669908",
"0.669908",
"0.669908",
"0.669908",
"0.6666943",
"0.6633882",
"0.65739506",
"0.65739506",
"0.65739506",
"0.657... | 0.6883875 | 2 |
Test of executedAsPlanned method, of class ReceiveAsciiAction. | @Test
public void testExecutdAsPlanned() {
assertFalse(action.executedAsPlanned());
// TODO add assertTrue after execute
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test(timeout = 4000)\n public void test37() throws Throwable {\n String string0 = EWrapperMsgGenerator.receiveFA((-510), \"askExch\");\n assertEquals(\"FA: null askExch\", string0);\n }",
"@Test\n public void testMovesThenQuits1European() {\n this.readable = new StringReader(\"4 6 4 4 Q\");\n ... | [
"0.60572404",
"0.5877208",
"0.5804315",
"0.57863337",
"0.56822497",
"0.5650829",
"0.5585349",
"0.55163395",
"0.5476277",
"0.5456194",
"0.5420388",
"0.54199815",
"0.5401011",
"0.5383835",
"0.5363918",
"0.53083634",
"0.5278776",
"0.5273625",
"0.52593464",
"0.52577364",
"0.52395... | 0.6965607 | 0 |
Method which applies the SAPL parser to a String containing a SAPL document and generates the matching parsetree. | SAPL parse(String saplDefinition); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"SAPL parse(InputStream saplInputStream);",
"abstract protected Parser createSACParser();",
"private void LL1Parser() throws IOException {\n\n LA.ReadLine(0);\n ParsStack.push(\"$\");\n ParsStack.push(\"P\");\n int prod;\n token = LA.Scanner();\n while (token.getValue()... | [
"0.5999623",
"0.5767586",
"0.55972147",
"0.5527226",
"0.5476165",
"0.52583337",
"0.5184916",
"0.514195",
"0.5123935",
"0.5083745",
"0.50093955",
"0.493043",
"0.4882361",
"0.4872607",
"0.4872607",
"0.48503414",
"0.4835851",
"0.4806723",
"0.4773616",
"0.4769436",
"0.47313175",
... | 0.7248167 | 0 |
Method which applies the SAPL parser to an InputStream containing a SAPL document and generates the matching parsetree. | SAPL parse(InputStream saplInputStream); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"SAPL parse(String saplDefinition);",
"public Process parse(InputSource isrc, URI systemURI) throws IOException, SAXException {\n XMLReader _xr = XMLParserUtils.getXMLReader();\n LocalEntityResolver resolver = new LocalEntityResolver();\n resolver.register(Bpel11QNames.NS_BPEL4WS_2003_03, get... | [
"0.6224171",
"0.5863526",
"0.58288175",
"0.5713542",
"0.5342876",
"0.52966917",
"0.5233591",
"0.52184933",
"0.51937085",
"0.51586336",
"0.5071891",
"0.5071632",
"0.50710374",
"0.50666577",
"0.506571",
"0.50569606",
"0.5052963",
"0.5050648",
"0.5043587",
"0.50433356",
"0.50361... | 0.7389893 | 0 |
Method which analyzes a String containing a SAPL document. | DocumentAnalysisResult analyze(String saplDefinition); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"SAPL parse(String saplDefinition);",
"SAPL parse(InputStream saplInputStream);",
"static void analyze (String s) {\r\n // Assigns the given string to the global lexeme variable\r\n lexeme = s;\r\n\r\n //Ensures all lexemes are under 100 characters long\r\n if (lexeme.length() >= 100... | [
"0.74391127",
"0.66379774",
"0.54919106",
"0.54895836",
"0.51184183",
"0.5092441",
"0.50887614",
"0.5064511",
"0.49631715",
"0.4946573",
"0.4936447",
"0.4923891",
"0.48996615",
"0.48991802",
"0.4893727",
"0.48735347",
"0.48533174",
"0.4846712",
"0.48051822",
"0.47981644",
"0.... | 0.73974836 | 1 |
moet een lege constructor hebben om objecten te lezen uit een xmlbestand | public Account(int accNmr, String firstName, String lastName, double balance) {
this.accNmr = accNmr;
this.firstName = firstName;
this.lastName = lastName;
this.balance = balance;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public XmlAdaptedPerson() {}",
"public XmlElement() {\n }",
"public XMLData () {\r\n\r\n //code description\r\n\r\n try {\r\n DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();\r\n this.document = builder.newDocument(); \r\n }\r\n catch (ParserCon... | [
"0.709382",
"0.7080421",
"0.70660335",
"0.67379725",
"0.6714015",
"0.6694698",
"0.66921574",
"0.6662114",
"0.6620143",
"0.656265",
"0.65283227",
"0.65261",
"0.6512911",
"0.6504726",
"0.6484681",
"0.6483673",
"0.6476039",
"0.6465381",
"0.646303",
"0.64478856",
"0.6415289",
"... | 0.0 | -1 |
Any path satisfies this condition | public static Predicate<String> any() {
return (each) -> true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Predicate<String> paths() {\n return or(\n //regex(\"/business.*\"),\n // regex(\"/some.*\"),\n // regex(\"/contacts.*\"),\n // regex(\"/pet.*\"),\n regex(\"/api.*\"),\n regex(\"/oauth2.*\"));\n }",
"priva... | [
"0.63780075",
"0.6367556",
"0.61283255",
"0.60907084",
"0.6004276",
"0.5986986",
"0.590136",
"0.58334327",
"0.5816742",
"0.5765245",
"0.5748438",
"0.5709613",
"0.5641809",
"0.5628248",
"0.55950224",
"0.55950224",
"0.55950224",
"0.55950224",
"0.55950224",
"0.55950224",
"0.5595... | 0.0 | -1 |
No path satisfies this condition | public static Predicate<String> none() {
return (each) -> false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\r\n public void testNonExistentPath() {\r\n int[][] path =\r\n {{0, 0, 0, 0, 0, 0},\r\n {0, 0, 0, 0, 0, 0},\r\n {0, 0, 0, 0, 0, 0},\r\n {0, 0, 0, 0, 0, 0},\r\n {0, 0, 0, 0, 0, 0}};\r\n assertEquals(0, RecursiveMethods... | [
"0.66102606",
"0.65263593",
"0.6453973",
"0.6395451",
"0.63791203",
"0.63101965",
"0.6240356",
"0.6201885",
"0.6083879",
"0.6083346",
"0.6083346",
"0.6083346",
"0.6083346",
"0.6083346",
"0.6083346",
"0.6083346",
"0.6083346",
"0.6083346",
"0.6083346",
"0.6083346",
"0.6083346",... | 0.0 | -1 |
Predicate that evaluates the supplied regular expression | public static Predicate<String> regex(final String pathRegex) {
return new Predicate<String>() {
@Override
public boolean test(String input) {
return input.matches(pathRegex);
}
};
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasRegex();",
"public boolean isEvalMatching(final String expression, final String textPattern);",
"public boolean matchesRegex(URI uri);",
"public boolean match( DataExp p ) { return false; }",
"@Override public boolean\r\n matches(String regex, CharSequence input) {\n return ... | [
"0.68389165",
"0.6564325",
"0.6504751",
"0.6353101",
"0.6329271",
"0.62351525",
"0.61944985",
"0.61603606",
"0.6056056",
"0.6007239",
"0.5980344",
"0.5878931",
"0.5828667",
"0.57955605",
"0.57881355",
"0.5765125",
"0.5763868",
"0.5719244",
"0.5688271",
"0.5679504",
"0.5676217... | 0.57836556 | 15 |
Predicate that evaluates the supplied ant pattern | public static Predicate<String> ant(final String antPattern) {
return new Predicate<String>() {
@Override
public boolean test(String input) {
PathContainer pathContainer = PathContainer.parsePath(input, PathContainer.Options.HTTP_PATH);
return PathPatternP... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean accept(ZipEntry entry)\n {\n return super.accept(entry)\n && CommandLineTool.matches(entry.getName(), m_achPattern);\n }",
"public boolean isSetAntPattern() {\n return ((this.antPattern != null) && (!this.antPattern.isEmpty()));\n }",
"public b... | [
"0.599503",
"0.5873372",
"0.5784655",
"0.57621455",
"0.5722816",
"0.55974895",
"0.55569226",
"0.54950076",
"0.5454094",
"0.53622764",
"0.5333099",
"0.53157794",
"0.53145915",
"0.5311663",
"0.5291311",
"0.5287814",
"0.5276791",
"0.52721566",
"0.525755",
"0.52385086",
"0.519439... | 0.7398879 | 0 |
Retourniert den Key zu einem passenden Value in einer HashMap | public static <T, E> T getKeyByValue(Map<T, E> map, E value) {
for (Entry<T, E> entry : map.entrySet()) {
if (Objects.equals(value, entry.getValue())) {
return entry.getKey();
}
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getKey();",
"java.lang.String getKey();",
"java.lang.String getKey();",
"java.lang.String getKey();",
"java.lang.String getKey();",
"java.lang.String getKey();",
"public K getKey(Object value) {\n\t\treturn reverseLookup.get(value);\n\t}",
"private static <K, V> K getKey(final Map<K,... | [
"0.71277744",
"0.71277744",
"0.71277744",
"0.71277744",
"0.71277744",
"0.71277744",
"0.7122671",
"0.7060142",
"0.7010804",
"0.69101",
"0.69072366",
"0.68426263",
"0.67958635",
"0.6775228",
"0.6775228",
"0.6775228",
"0.6775228",
"0.6764412",
"0.6708223",
"0.6708223",
"0.663586... | 0.6332371 | 40 |
Description: Created on 2020/12/20 11:51. | public interface AccountService {
List<AccountDO> findAllAccount();
AccountDO findAccountByUserId(long userId);
/**
* 使用Hmily 事务
* @param accountDO
* @return
*/
@Hmily
boolean updateAccount(AccountDO accountDO);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getCreated() {\n return this.created;\n }",
"public String getCreated() {\n return this.created;\n }",
"public DateTime getCreationTime() {\n return created;\n }",
"public abstract long getCreated();",
"String timeCreated();",
"public Date getCreated() {\n return created;\n ... | [
"0.6621513",
"0.6621513",
"0.6579921",
"0.6557045",
"0.6547732",
"0.6515614",
"0.6515614",
"0.6482356",
"0.6482356",
"0.6482356",
"0.6482356",
"0.6482356",
"0.6482356",
"0.6482356",
"0.6482356",
"0.6482356",
"0.6482356",
"0.6482356",
"0.6482356",
"0.6482356",
"0.6473747",
"... | 0.0 | -1 |
/ resync the element from the value map | @Override
public void resync( final IComponent aComp, final Map<String,Double> valueMap ) throws SynchronizationException {
if ( !( aComp instanceof IdealPermMagQuad ) ) {
throw new IllegalArgumentException( "expected IdealPermMagQuad instance, got: " + aComp.getClass().getName() );
}
final IdealPermMagQuad ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic boolean update(Eleve o) {\n\t\tmap.replace(o.getId(), o);\n\t\treturn true;\n\t}",
"Value replaceValue(Entry<Key, Value> entry, Value value);",
"abstract protected DataValue updateValue(String key);",
"protected Object putElement(int key, Object value) {\n int index = key % capacit... | [
"0.62315357",
"0.598055",
"0.58336174",
"0.5776686",
"0.565993",
"0.56529003",
"0.56502646",
"0.56418705",
"0.5603664",
"0.55963916",
"0.5579609",
"0.5573182",
"0.5524633",
"0.5455394",
"0.54476315",
"0.54466695",
"0.5423347",
"0.5384094",
"0.537045",
"0.53607804",
"0.5347846... | 0.0 | -1 |
reusable method that can be used by this and other decorators for consistent error handling | static JobResult runWithExceptionHandling(JobMetadata metadata, Job delegate, Map<String, Object> params) {
try {
JobResult result = delegate.run(params);
return result != null ? result : JobResult.unknown(metadata, "Job returned null result");
} catch (Exception e) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected interface ProvideError {\n Exception getError();\n }",
"public void handleErrors() {\n // hook method\n }",
"protected abstract void error(String err);",
"@Override\n\t\t\t\t\t\t\tpublic void error(Exception e) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}",
"private void correctError()\r\n\... | [
"0.67790514",
"0.66536313",
"0.6529025",
"0.64011043",
"0.6397247",
"0.6372034",
"0.631714",
"0.62839437",
"0.62701327",
"0.6246053",
"0.62374264",
"0.6175454",
"0.6165196",
"0.615172",
"0.6113685",
"0.61050844",
"0.61034286",
"0.60766596",
"0.6040021",
"0.60337263",
"0.60318... | 0.0 | -1 |
WARNING No update of BBox!!! | public void add(Coord c){
coords.add(c);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public InsertUpdateBBOXOpPanel() {\r\n initComponents();\r\n }",
"private void updateGUIStatus() {\r\n\r\n }",
"void setBox();",
"private void drawBox(Graphics window, int hsBtoRGB, int x, int y) {\n\t\t\n\t}",
"public void updateOnScreen() {\n\t\tscreen.updateBox();\n\n\t}",
"protected void... | [
"0.66361415",
"0.64742374",
"0.6278201",
"0.61995333",
"0.61686385",
"0.6084178",
"0.60491747",
"0.60407287",
"0.603877",
"0.603877",
"0.6005381",
"0.59777224",
"0.5963856",
"0.5911377",
"0.5882612",
"0.5863617",
"0.5863352",
"0.58536816",
"0.5835506",
"0.57622796",
"0.574321... | 0.0 | -1 |
Created by netserve on 11/01/2019. | @Dao
public interface ServerDao {
@Query("SELECT * FROM server")
List<ServerEntry> getAllServers();
@Query("SELECT * FROM server WHERE is_active=:active")
ServerEntry getActiveServer(boolean active);
@Query("SELECT * FROM server WHERE hostname=:hostname")
ServerEntry getServerByHostname(String... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"@Override\n public void perish() {\n \n }",
"public final void mo51373a() {\n }",
"protected MetadataUGWD() {/* intentionally empty block */}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Overr... | [
"0.6044748",
"0.59469604",
"0.5934723",
"0.5794556",
"0.578786",
"0.57462263",
"0.5658753",
"0.56186676",
"0.5617749",
"0.5617749",
"0.5615096",
"0.5606756",
"0.5602448",
"0.5579346",
"0.5578039",
"0.5578039",
"0.5578039",
"0.5578039",
"0.5578039",
"0.5578039",
"0.55713487",
... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public boolean onCommand(CommandSender cs, Command arg1, String arg2,
String[] args) {
if (cs instanceof ConsoleCommandSender) {
cs.sendMessage(main.prefix + "Only Player");
return false;
}
Player p = (Player) cs;
if (p.getWorld().getGameRuleValue("doDaylightCycle").equals("true")) {
p.ge... | {
"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 |
Construtor da classe Roleta, armazena a quantidade de jogadas de cada jogador e cria uma lista de valores da roleta. | public Roleta()
{
contadorJogadas = new LinkedHashMap<>();
//adiciona os valores ao mapa de resultados.
valores = new ArrayList<>();
valores.add(EnumResultados.PASSA_VEZ);
valores.add(EnumResultados.PASSA_VEZ);
valores.add(EnumResultados.PERDE_TUDO);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ArreiList() {\n koko = 0;\n }",
"public CatalogoJogos() {\r\n\t\tthis.listaDeJogosComprados = new ArrayList<Jogo>();\r\n\t}",
"public Jogador(String nome, String cor){\r\n this.nome = nome;\r\n this.cor = cor;\r\n this.contaCorrente = new ContaCorrente(1500);\r\n th... | [
"0.5939407",
"0.5916731",
"0.5824063",
"0.57875985",
"0.5768674",
"0.5554174",
"0.55343086",
"0.55343044",
"0.5524702",
"0.5478389",
"0.54590183",
"0.5453459",
"0.54534245",
"0.5425315",
"0.54201317",
"0.54137677",
"0.5402726",
"0.5370951",
"0.535888",
"0.53184235",
"0.531549... | 0.6726912 | 0 |
Adiciona uma jogada ao mapa de jogadas e retorna qual o numero da jogada. | private Integer contabilizaJogas(Jogador jogador)
{
int i = 0 ;
if(contadorJogadas.containsKey(jogador)) {
i = contadorJogadas.get(jogador);
}
contadorJogadas.put(jogador, i + 1);
return contadorJogadas.get(jogador);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Jogo setNewJogo(int jogo_id, int jogador_id, String nome) {\n \tPreparedStatement pstmt = null;\n Jogo jogo = new Jogo();\n\t\tResultSet rs = null;\n\t\tConnection conexao = criarConexao();\n\t\ttry {\n jogo = getpJogo(jogo_id);\n String sql = \"IN... | [
"0.6118887",
"0.5554848",
"0.5527576",
"0.5513469",
"0.54746634",
"0.5448164",
"0.53653014",
"0.5335693",
"0.5313339",
"0.52255905",
"0.5191683",
"0.5189713",
"0.51659435",
"0.51630354",
"0.5099191",
"0.5082728",
"0.5068555",
"0.5043148",
"0.50263375",
"0.50160986",
"0.500974... | 0.67370826 | 0 |
Log.d("Warning!!!", "" + task.getException().getMessage()); | @Override
public void onComplete(@NonNull Task<AuthResult> task) {
if (task.isSuccessful()) {
userProfileChangeRequest = new UserProfileChangeRequest.Builder().setDisplayName(name).build();
firebaseUser = FirebaseAuth.getInstance().getCurrentUser();
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void onTaskFail() {\n\t\t\n\t}",
"@Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(getApplicationContext(),\"\"+e.getMessage(),Toast.LENGTH_SHORT).show();\n\n }",
"@Override\n ... | [
"0.7287727",
"0.6620817",
"0.649807",
"0.6496887",
"0.6467747",
"0.6405405",
"0.6371553",
"0.6368932",
"0.6342204",
"0.629208",
"0.6286317",
"0.6286317",
"0.62681186",
"0.6233975",
"0.62036186",
"0.61656314",
"0.6163475",
"0.61141515",
"0.61141515",
"0.61141515",
"0.61141515"... | 0.0 | -1 |
/ Overcomplex method to find out whether a collection has a replica on this node, based upon the Solr Collection API ClusterStatus call. It returns a mess of NamedList and LinkedHashMap objects that are hard to navigate. All we are really doing is extracting: /cluster/collections/$COLLECTION/shards/$SHARD/replicas/?/no... | private boolean hasExistingReplica(String collection, String shard, String node) throws IOException, SolrServerException {
CollectionAdminRequest.ClusterStatus statusRequest = new CollectionAdminRequest.ClusterStatus();
statusRequest.setCollectionName(collection);
NamedList<Object> response = statusReq... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@FameProperty(name = \"containsReplicas\", derived = true)\n public Boolean getContainsReplicas() {\n throw new UnsupportedOperationException(\"Not yet implemented!\"); \n }",
"public List<ReplicaInfo> getReplicas() {\n return replicas;\n }",
"entities.Torrent.NodeReplicationStatus getNodeSta... | [
"0.55405587",
"0.53979963",
"0.5351836",
"0.5318182",
"0.52152944",
"0.50813913",
"0.50810385",
"0.50643235",
"0.5051163",
"0.50499755",
"0.5029974",
"0.50266093",
"0.49671265",
"0.49387938",
"0.48807997",
"0.48549074",
"0.48213026",
"0.48056158",
"0.4795563",
"0.47870684",
"... | 0.70538867 | 0 |
create new account object | @PostMapping("/account/create")
@PreAuthorize("hasRole('USER') or hasRole('ADMIN')")
public ResponseEntity createAccount(
@AuthenticationPrincipal UserDetailsImpl userDetail
){
Account account = new Account(userDetail.getId());
// save the account to the database
Account createdAccount = ac... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Account create();",
"public void createUserAccount(UserAccount account);",
"int createAccount(Account account);",
"public void createAccount() {\n\t\tSystem.out.print(\"Enter Name: \");\n\t\tString name = nameCheck(sc.next());\n\t\tSystem.out.print(\"Enter Mobile No.: \");\n\t\tlong mobNo = mobCheck(sc.nextL... | [
"0.9007726",
"0.8265529",
"0.8105708",
"0.80681396",
"0.7949722",
"0.7851016",
"0.7622438",
"0.74855536",
"0.7479924",
"0.74679184",
"0.74549264",
"0.7381851",
"0.73080033",
"0.7301492",
"0.72962177",
"0.7255572",
"0.722934",
"0.7228907",
"0.7222407",
"0.7203502",
"0.7178231"... | 0.662863 | 68 |
get the subscription plan | @GetMapping("/account/{id}")
@PreAuthorize("hasRole('ADMIN')")
public ResponseEntity getAccount(
@PathVariable String id
){
Optional<Account> account = accountRepository.findById(id);
// check if the account exists
if(!account.isPresent()){
return ResponseEntity
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ProductPlan getProductPlan();",
"public java.lang.String getPlan() {\n return plan;\n }",
"public Plan getPlan(String planName);",
"com.google.cloud.commerce.consumer.procurement.v1.Subscription getSubscription();",
"public String getPlanUuid() {\n return planUuid;\n }",
"@Override\r\... | [
"0.73590755",
"0.7305637",
"0.71841854",
"0.6975659",
"0.679497",
"0.6585139",
"0.64281183",
"0.6392299",
"0.6390579",
"0.6189348",
"0.6094182",
"0.6036286",
"0.59184843",
"0.5897076",
"0.5858506",
"0.5851717",
"0.5817304",
"0.5813765",
"0.5802621",
"0.57873625",
"0.5737182",... | 0.0 | -1 |
preserve order, no duplicates Instantiates a new Rule Registry Set. | public RuleRegistrySet( RuleRegistry... ruleRegistries )
{
this( Arrays.asList( ruleRegistries ) );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public RuleRegistrySet( Collection<RuleRegistry> ruleRegistries )\n {\n this.ruleRegistries.addAll( ruleRegistries );\n\n for( RuleRegistry ruleRegistry : ruleRegistries )\n {\n if( Collections.frequency( this.ruleRegistries, ruleRegistry ) > 1 )\n throw new IllegalArgumentException( \"ma... | [
"0.6142202",
"0.5827203",
"0.5769888",
"0.5753607",
"0.5711633",
"0.557506",
"0.5505385",
"0.54907537",
"0.5484249",
"0.542343",
"0.54179204",
"0.53978187",
"0.5388816",
"0.5378856",
"0.53583163",
"0.5357063",
"0.5326614",
"0.529875",
"0.5288081",
"0.5272419",
"0.52720886",
... | 0.6784962 | 0 |
Instantiates a new Rule Registry Set. | public RuleRegistrySet( Collection<RuleRegistry> ruleRegistries )
{
this.ruleRegistries.addAll( ruleRegistries );
for( RuleRegistry ruleRegistry : ruleRegistries )
{
if( Collections.frequency( this.ruleRegistries, ruleRegistry ) > 1 )
throw new IllegalArgumentException( "may not include... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public RuleRegistrySet( RuleRegistry... ruleRegistries )\n {\n this( Arrays.asList( ruleRegistries ) );\n }",
"public RegistryCreator() {\n this.vehicleRegistry = new VehicleRegistry();\n this.inspectionResultRegistry = new InspectionResultRegistry();\n }",
"public RuleConfiguration()... | [
"0.7248851",
"0.6140304",
"0.5915274",
"0.5838956",
"0.58054066",
"0.56778413",
"0.56709385",
"0.5662516",
"0.56258845",
"0.55999684",
"0.5588515",
"0.55327815",
"0.55209607",
"0.5520228",
"0.54617697",
"0.54486215",
"0.54486215",
"0.54486215",
"0.5433714",
"0.54307234",
"0.5... | 0.5711042 | 5 |
Gets planner timeout, in seconds. | public int getPlannerTimeoutSec()
{
return plannerTimeoutSec;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public long getTimeout() { return timeout; }",
"public int getTimeout() {\n return params.getTimeout() * 1000;\n }",
"public int getTimeout() {\r\n return timeout;\r\n }",
"public int getTimeout() {\n return timeout;\n }",
"public long getTimeout() {\n return timeout;\n... | [
"0.7546455",
"0.74670386",
"0.742742",
"0.74255335",
"0.7422704",
"0.7422704",
"0.7422704",
"0.7416623",
"0.7400769",
"0.7346386",
"0.73034316",
"0.7210856",
"0.7165248",
"0.7104052",
"0.7062542",
"0.6998601",
"0.69753194",
"0.69697446",
"0.6912531",
"0.6912512",
"0.6903519",... | 0.8363908 | 0 |
Sets planner timeout, in seconds. Extremely large assemblies may take longer than the default timeout. This allows for increasing that timeout period when necessary. | public void setPlannerTimeoutSec( int plannerTimeoutSec )
{
this.plannerTimeoutSec = plannerTimeoutSec;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setNortpTimeout(int seconds);",
"T setStartTimeout(Integer timeout);",
"void setStartTimeout(int startTimeout);",
"public void setTimeout(int newTimeout) {\n this.timeout = newTimeout;\n }",
"public void setTimeout(double timeout){\n this.timeout = timeout;\n }",
"public void... | [
"0.66135573",
"0.6361851",
"0.63495916",
"0.6324547",
"0.6235442",
"0.61699164",
"0.61473453",
"0.61431664",
"0.61431664",
"0.61171883",
"0.6097445",
"0.6090322",
"0.6061239",
"0.6023833",
"0.60217124",
"0.6017585",
"0.5960403",
"0.58908033",
"0.5890439",
"0.58757204",
"0.587... | 0.7778861 | 0 |
When true, failures during planning will be ignored unless no registries are successful. When false, any failure will cause the planner to fail. | public boolean isIgnoreFailed()
{
return ignoreFailed;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean needsProblem();",
"@Override\n boolean isFailed() {\n return false;\n }",
"@Override\n boolean canFail() {\n return true;\n }",
"@Test\n public void testExecutdAsPlanned() {\n assertFalse(action.executedAsPlanned());\n // TODO add assertTrue after exe... | [
"0.56975806",
"0.560911",
"0.5531427",
"0.5439572",
"0.5400914",
"0.5381505",
"0.53446466",
"0.5295685",
"0.5275732",
"0.5217907",
"0.5183683",
"0.5182552",
"0.5170098",
"0.5162466",
"0.51571155",
"0.5134543",
"0.5131696",
"0.5120892",
"0.51184064",
"0.5098264",
"0.5096927",
... | 0.51840705 | 10 |
Returns the result selection type. | public Select getSelect()
{
return select;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Type getResultType();",
"@Override\r\n\tpublic List<Type> selectType() {\n\t\treturn gd.selectType();\r\n\t}",
"public SelectorType getType() {\r\n\t\treturn type;\r\n\t}",
"@Generated\n @Selector(\"resultType\")\n @NUInt\n public native long resultType();",
"public AbstractPokemon.Type selectType... | [
"0.72069037",
"0.70899653",
"0.70101786",
"0.69982713",
"0.67666733",
"0.66714066",
"0.66568404",
"0.6644381",
"0.66266716",
"0.6603283",
"0.6593568",
"0.65017414",
"0.6500863",
"0.6480896",
"0.6460154",
"0.6443938",
"0.6433189",
"0.64269936",
"0.6410155",
"0.63789976",
"0.63... | 0.0 | -1 |
Sets the result selection type. | public void setSelect( Select select )
{
if( select == null )
throw new IllegalArgumentException( "select may not be null" );
this.select = select;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setResultSetType(Class<? extends ResultSet> resultSetType)\r\n/* 40: */ {\r\n/* 41: 92 */ this.resultSetType = resultSetType;\r\n/* 42: */ }",
"public void setSelectMethod(Selection s){\n selectType = s;\n }",
"@Override\r\n\tpublic void setSelectedType(int paramInt) {\n\r\n\t}... | [
"0.7477983",
"0.6766227",
"0.6476043",
"0.6455773",
"0.62757427",
"0.6264275",
"0.6147227",
"0.6066663",
"0.5969292",
"0.59059644",
"0.5867584",
"0.58400714",
"0.58243877",
"0.58166057",
"0.5790787",
"0.5752863",
"0.5752863",
"0.5752863",
"0.57110196",
"0.57072073",
"0.570720... | 0.0 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.