-
Notifications
You must be signed in to change notification settings - Fork 1
/
experiment_0000015.json
1 lines (1 loc) · 215 KB
/
experiment_0000015.json
1
[{"cap_original_tokens":["<SENTENCE_START>","{","if","(","<id>","suggest","Mode","<\/id>","==","<id>","suggester","<\/id>",".","<id>","suggest","Mode","<\/id>",".","<id>","always","<\/id>",")","{","return","\"always\"",";","}","else","if","(","<id>","suggest","Mode","<\/id>","==","<id>","suggester","<\/id>",".","<id>","suggest","Mode","<\/id>",".","<id>","popular","<\/id>",")","{","return","\"popular\"",";","}","else","{","return","\"missing\"",";","}","}","<SENTENCE_END\/>"],"file_name":"BaseSuggesterTranslatorImpl.java","formatted_lines":["{"," if (suggestMode == Suggester.SuggestMode.ALWAYS)"," {"," return \"always\";"," }"," else if (suggestMode == Suggester.SuggestMode.POPULAR)"," {"," return \"popular\";"," }"," else"," {"," return \"missing\";"," }","}"],"function_name":"translate","function_name_tokens":["translate"],"id_body_hash":"05c7b20891da409a0b8c571cd4c36735","id_same_identifier_list":[0,1,2,3,4,4,5,6,7,8,8,9,10,11,12,13,14,15,16,17,18,19,20,20,21,22,23,24,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40],"option_correct":"translate","options":["getService","getRuleGroup","getMBCategoryFinder","_write","translate","testRemoveFromCharArray","addRuleGroup"],"options_nlp":["get service","get rule group","get mb category finder"," write","translate","test remove from char array","add rule group"],"options_random":["_write","getMBCategoryFinder","testRemoveFromCharArray"],"options_tfidf":["addRuleGroup","getService","getRuleGroup"],"project_name":"liferay-portal","source_code_string":"protected String translate(Suggester.SuggestMode suggestMode) {\n\t\tif (suggestMode == Suggester.SuggestMode.ALWAYS) {\n\t\t\treturn \"always\";\n\t\t}\n\t\telse if (suggestMode == Suggester.SuggestMode.POPULAR) {\n\t\t\treturn \"popular\";\n\t\t}\n\t\telse {\n\t\t\treturn \"missing\";\n\t\t}\n\t}","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"if","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"(","start_char":7,"line":1},{"index_id":3,"token_group":3,"text":"suggest","start_char":8,"line":1},{"index_id":4,"token_group":4,"text":"Mode","start_char":15,"line":1},{"index_id":5,"token_group":4,"text":"==","start_char":20,"line":1},{"index_id":6,"token_group":5,"text":"suggester","start_char":23,"line":1},{"index_id":7,"token_group":6,"text":".","start_char":32,"line":1},{"index_id":8,"token_group":7,"text":"suggest","start_char":33,"line":1},{"index_id":9,"token_group":8,"text":"Mode","start_char":40,"line":1},{"index_id":10,"token_group":8,"text":".","start_char":44,"line":1},{"index_id":11,"token_group":9,"text":"always","start_char":45,"line":1},{"index_id":12,"token_group":10,"text":")","start_char":51,"line":1},{"index_id":13,"token_group":11,"text":"{","start_char":4,"line":2},{"index_id":14,"token_group":12,"text":"return","start_char":8,"line":3},{"index_id":15,"token_group":13,"text":"\"always\"","start_char":15,"line":3},{"index_id":16,"token_group":14,"text":";","start_char":23,"line":3},{"index_id":17,"token_group":15,"text":"}","start_char":4,"line":4},{"index_id":18,"token_group":16,"text":"else","start_char":4,"line":5},{"index_id":19,"token_group":17,"text":"if","start_char":9,"line":5},{"index_id":20,"token_group":18,"text":"(","start_char":12,"line":5},{"index_id":21,"token_group":19,"text":"suggest","start_char":13,"line":5},{"index_id":22,"token_group":20,"text":"Mode","start_char":20,"line":5},{"index_id":23,"token_group":20,"text":"==","start_char":25,"line":5},{"index_id":24,"token_group":21,"text":"suggester","start_char":28,"line":5},{"index_id":25,"token_group":22,"text":".","start_char":37,"line":5},{"index_id":26,"token_group":23,"text":"suggest","start_char":38,"line":5},{"index_id":27,"token_group":24,"text":"Mode","start_char":45,"line":5},{"index_id":28,"token_group":24,"text":".","start_char":49,"line":5},{"index_id":29,"token_group":25,"text":"popular","start_char":50,"line":5},{"index_id":30,"token_group":26,"text":")","start_char":57,"line":5},{"index_id":31,"token_group":27,"text":"{","start_char":4,"line":6},{"index_id":32,"token_group":28,"text":"return","start_char":8,"line":7},{"index_id":33,"token_group":29,"text":"\"popular\"","start_char":15,"line":7},{"index_id":34,"token_group":30,"text":";","start_char":24,"line":7},{"index_id":35,"token_group":31,"text":"}","start_char":4,"line":8},{"index_id":36,"token_group":32,"text":"else","start_char":4,"line":9},{"index_id":37,"token_group":33,"text":"{","start_char":4,"line":10},{"index_id":38,"token_group":34,"text":"return","start_char":8,"line":11},{"index_id":39,"token_group":35,"text":"\"missing\"","start_char":15,"line":11},{"index_id":40,"token_group":36,"text":";","start_char":24,"line":11},{"index_id":41,"token_group":37,"text":"}","start_char":4,"line":12},{"index_id":42,"token_group":38,"text":"}","start_char":0,"line":13}],"tokens_list":["{","if","(","suggest","Mode","==","suggester",".","suggest","Mode",".","always",")","{","return","\"always\"",";","}","else","if","(","suggest","Mode","==","suggester",".","suggest","Mode",".","popular",")","{","return","\"popular\"",";","}","else","{","return","\"missing\"",";","}","}"],"uuid":"10cd4c1a581997b6b2d5daf606570ca7"},{"cap_original_tokens":["<SENTENCE_START>","{","int","<id>","i","<\/id>","=","0",";","<id>","iterator","<\/id>","<id>","itr","Keys","<\/id>","=","<id>","map","<\/id>",".","<id>","key","Set","<\/id>","(",")",".","<id>","iterator","<\/id>","(",")",";","while","(","<id>","i","<\/id>","<=","<id>","index","<\/id>","&&","<id>","itr","Keys","<\/id>",".","<id>","has","Next","<\/id>","(",")",")","{","<id>","object","<\/id>","<id>","key","<\/id>","=","<id>","itr","Keys","<\/id>",".","<id>","next","<\/id>","(",")",";","if","(","<id>","i","<\/id>","==","<id>","index","<\/id>",")","{","<id>","map","<\/id>",".","<id>","remove","<\/id>","(","<id>","key","<\/id>",")",";","break",";","}","}","}","<SENTENCE_END\/>"],"file_name":"ScriptableWrappedMap.java","formatted_lines":["{"," int i = 0;"," Iterator itrKeys = map.keySet().iterator();"," while (i <= index && itrKeys.hasNext())"," {"," Object key = itrKeys.next();"," if (i == index)"," {"," map.remove(key);"," break;"," }"," }","}"],"function_name":"delete","function_name_tokens":["delete"],"id_body_hash":"09355027966a48621a42317975465849","id_same_identifier_list":[0,1,2,3,4,5,6,7,8,8,9,10,11,12,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,26,27,28,28,29,30,31,32,33,34,35,36,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61],"option_correct":"delete","options":["deleteIndices","parseTuple","lsh","testDeleteIndex","deleteContent","delete","testPath"],"options_nlp":["delete indices","parse tuple","lsh","test delete index","delete content","delete","test path"],"options_random":["testPath","lsh","parseTuple"],"options_tfidf":["deleteIndices","testDeleteIndex","deleteContent"],"project_name":"elasticsearch","source_code_string":"public void delete(int index) {\n int i = 0;\n Iterator itrKeys = map.keySet().iterator();\n while (i <= index && itrKeys.hasNext()) {\n Object key = itrKeys.next();\n if (i == index) {\n map.remove(key);\n break;\n }\n }\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"int","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"i","start_char":8,"line":1},{"index_id":3,"token_group":3,"text":"=","start_char":10,"line":1},{"index_id":4,"token_group":4,"text":"0","start_char":12,"line":1},{"index_id":5,"token_group":5,"text":";","start_char":13,"line":1},{"index_id":6,"token_group":6,"text":"iterator","start_char":4,"line":2},{"index_id":7,"token_group":7,"text":"itr","start_char":13,"line":2},{"index_id":8,"token_group":8,"text":"Keys","start_char":16,"line":2},{"index_id":9,"token_group":8,"text":"=","start_char":21,"line":2},{"index_id":10,"token_group":9,"text":"map","start_char":23,"line":2},{"index_id":11,"token_group":10,"text":".","start_char":26,"line":2},{"index_id":12,"token_group":11,"text":"key","start_char":27,"line":2},{"index_id":13,"token_group":12,"text":"Set","start_char":30,"line":2},{"index_id":14,"token_group":12,"text":"(","start_char":33,"line":2},{"index_id":15,"token_group":13,"text":")","start_char":34,"line":2},{"index_id":16,"token_group":14,"text":".","start_char":35,"line":2},{"index_id":17,"token_group":15,"text":"iterator","start_char":36,"line":2},{"index_id":18,"token_group":16,"text":"(","start_char":44,"line":2},{"index_id":19,"token_group":17,"text":")","start_char":45,"line":2},{"index_id":20,"token_group":18,"text":";","start_char":46,"line":2},{"index_id":21,"token_group":19,"text":"while","start_char":4,"line":3},{"index_id":22,"token_group":20,"text":"(","start_char":10,"line":3},{"index_id":23,"token_group":21,"text":"i","start_char":11,"line":3},{"index_id":24,"token_group":22,"text":"<=","start_char":13,"line":3},{"index_id":25,"token_group":23,"text":"index","start_char":16,"line":3},{"index_id":26,"token_group":24,"text":"&&","start_char":22,"line":3},{"index_id":27,"token_group":25,"text":"itr","start_char":25,"line":3},{"index_id":28,"token_group":26,"text":"Keys","start_char":28,"line":3},{"index_id":29,"token_group":26,"text":".","start_char":32,"line":3},{"index_id":30,"token_group":27,"text":"has","start_char":33,"line":3},{"index_id":31,"token_group":28,"text":"Next","start_char":36,"line":3},{"index_id":32,"token_group":28,"text":"(","start_char":40,"line":3},{"index_id":33,"token_group":29,"text":")","start_char":41,"line":3},{"index_id":34,"token_group":30,"text":")","start_char":42,"line":3},{"index_id":35,"token_group":31,"text":"{","start_char":4,"line":4},{"index_id":36,"token_group":32,"text":"object","start_char":8,"line":5},{"index_id":37,"token_group":33,"text":"key","start_char":15,"line":5},{"index_id":38,"token_group":34,"text":"=","start_char":19,"line":5},{"index_id":39,"token_group":35,"text":"itr","start_char":21,"line":5},{"index_id":40,"token_group":36,"text":"Keys","start_char":24,"line":5},{"index_id":41,"token_group":36,"text":".","start_char":28,"line":5},{"index_id":42,"token_group":37,"text":"next","start_char":29,"line":5},{"index_id":43,"token_group":38,"text":"(","start_char":33,"line":5},{"index_id":44,"token_group":39,"text":")","start_char":34,"line":5},{"index_id":45,"token_group":40,"text":";","start_char":35,"line":5},{"index_id":46,"token_group":41,"text":"if","start_char":8,"line":6},{"index_id":47,"token_group":42,"text":"(","start_char":11,"line":6},{"index_id":48,"token_group":43,"text":"i","start_char":12,"line":6},{"index_id":49,"token_group":44,"text":"==","start_char":14,"line":6},{"index_id":50,"token_group":45,"text":"index","start_char":17,"line":6},{"index_id":51,"token_group":46,"text":")","start_char":22,"line":6},{"index_id":52,"token_group":47,"text":"{","start_char":8,"line":7},{"index_id":53,"token_group":48,"text":"map","start_char":12,"line":8},{"index_id":54,"token_group":49,"text":".","start_char":15,"line":8},{"index_id":55,"token_group":50,"text":"remove","start_char":16,"line":8},{"index_id":56,"token_group":51,"text":"(","start_char":22,"line":8},{"index_id":57,"token_group":52,"text":"key","start_char":23,"line":8},{"index_id":58,"token_group":53,"text":")","start_char":26,"line":8},{"index_id":59,"token_group":54,"text":";","start_char":27,"line":8},{"index_id":60,"token_group":55,"text":"break","start_char":12,"line":9},{"index_id":61,"token_group":56,"text":";","start_char":17,"line":9},{"index_id":62,"token_group":57,"text":"}","start_char":8,"line":10},{"index_id":63,"token_group":58,"text":"}","start_char":4,"line":11},{"index_id":64,"token_group":59,"text":"}","start_char":0,"line":12}],"tokens_list":["{","int","i","=","0",";","iterator","itr","Keys","=","map",".","key","Set","(",")",".","iterator","(",")",";","while","(","i","<=","index","&&","itr","Keys",".","has","Next","(",")",")","{","object","key","=","itr","Keys",".","next","(",")",";","if","(","i","==","index",")","{","map",".","remove","(","key",")",";","break",";","}","}","}"],"uuid":"50d1a6eee8aa501ce3224028134d46e2"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","my","Fixture","<\/id>",".","<id>","configure","By","File","<\/id>","(","\"typeParser\/typeParser.py\"",")",";","final","<id>","py","Tuple","Type","<\/id>","<id>","type","<\/id>","=","(","<id>","py","Tuple","Type","<\/id>",")","<id>","py","Type","Parser","<\/id>",".","<id>","get","Type","By","Name","<\/id>","(","<id>","my","Fixture","<\/id>",".","<id>","get","File","<\/id>","(",")",",","\"(str, MyObject)\"",")",";","<id>","assert","Equals","<\/id>","(","2",",","<id>","type","<\/id>",".","<id>","get","Element","Count","<\/id>","(",")",")",";","<id>","assert","Class","Type","<\/id>","(","<id>","type","<\/id>",".","<id>","get","Element","Type","<\/id>","(","0",")",",","\"str\"",")",";","<id>","assert","Class","Type","<\/id>","(","<id>","type","<\/id>",".","<id>","get","Element","Type","<\/id>","(","1",")",",","\"MyObject\"",")",";","}","<SENTENCE_END\/>"],"file_name":"PyTypeParserTest.java","formatted_lines":["{"," myFixture.configureByFile(\"typeParser\/typeParser.py\");"," final PyTupleType type = (PyTupleType)PyTypeParser.getTypeByName("," myFixture.getFile(), \"(str, MyObject)\");"," assertEquals(2, type.getElementCount());"," assertClassType(type.getElementType(0), \"str\");"," assertClassType(type.getElementType(1), \"MyObject\");","}"],"function_name":"testTupleType","function_name_tokens":["test","tuple","type"],"id_body_hash":"1fece4c3cae9ca779cfc03f212edcd46","id_same_identifier_list":[0,1,2,2,3,4,4,4,5,6,7,8,9,10,10,10,11,12,13,14,14,14,15,16,16,16,17,18,18,18,18,19,20,20,21,22,22,23,24,25,26,27,28,29,29,30,31,32,33,34,35,35,35,36,37,38,39,40,40,40,41,42,43,44,44,44,45,46,47,48,49,50,51,52,52,52,53,54,55,56,56,56,57,58,59,60,61,62,63,64,65],"option_correct":"testTupleType","options":["testTupleType","getAcceptableFrameworkRoles","testNamedTuple","tryConsume","testConvertListToTuple","registerMethodCallIntentions","testNamedTupleAssignment"],"options_nlp":["test tuple type","get acceptable framework roles","test named tuple","try consume","test convert list to tuple","register method call intentions","test named tuple assignment"],"options_random":["registerMethodCallIntentions","getAcceptableFrameworkRoles","tryConsume"],"options_tfidf":["testNamedTuple","testConvertListToTuple","testNamedTupleAssignment"],"project_name":"intellij-community","source_code_string":"public void testTupleType() {\n myFixture.configureByFile(\"typeParser\/typeParser.py\");\n final PyTupleType type = (PyTupleType)PyTypeParser.getTypeByName(myFixture.getFile(), \"(str, MyObject)\");\n assertEquals(2, type.getElementCount());\n assertClassType(type.getElementType(0), \"str\");\n assertClassType(type.getElementType(1), \"MyObject\");\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"my","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"Fixture","start_char":6,"line":1},{"index_id":3,"token_group":2,"text":".","start_char":13,"line":1},{"index_id":4,"token_group":3,"text":"configure","start_char":14,"line":1},{"index_id":5,"token_group":4,"text":"By","start_char":23,"line":1},{"index_id":6,"token_group":4,"text":"File","start_char":25,"line":1},{"index_id":7,"token_group":4,"text":"(","start_char":29,"line":1},{"index_id":8,"token_group":5,"text":"\"typeParser\/typeParser.py\"","start_char":30,"line":1},{"index_id":9,"token_group":6,"text":")","start_char":56,"line":1},{"index_id":10,"token_group":7,"text":";","start_char":57,"line":1},{"index_id":11,"token_group":8,"text":"final","start_char":4,"line":2},{"index_id":12,"token_group":9,"text":"py","start_char":10,"line":2},{"index_id":13,"token_group":10,"text":"Tuple","start_char":12,"line":2},{"index_id":14,"token_group":10,"text":"Type","start_char":17,"line":2},{"index_id":15,"token_group":10,"text":"type","start_char":22,"line":2},{"index_id":16,"token_group":11,"text":"=","start_char":27,"line":2},{"index_id":17,"token_group":12,"text":"(","start_char":29,"line":2},{"index_id":18,"token_group":13,"text":"py","start_char":30,"line":2},{"index_id":19,"token_group":14,"text":"Tuple","start_char":32,"line":2},{"index_id":20,"token_group":14,"text":"Type","start_char":37,"line":2},{"index_id":21,"token_group":14,"text":")","start_char":41,"line":2},{"index_id":22,"token_group":15,"text":"py","start_char":42,"line":2},{"index_id":23,"token_group":16,"text":"Type","start_char":44,"line":2},{"index_id":24,"token_group":16,"text":"Parser","start_char":48,"line":2},{"index_id":25,"token_group":16,"text":".","start_char":54,"line":2},{"index_id":26,"token_group":17,"text":"get","start_char":55,"line":2},{"index_id":27,"token_group":18,"text":"Type","start_char":58,"line":2},{"index_id":28,"token_group":18,"text":"By","start_char":62,"line":2},{"index_id":29,"token_group":18,"text":"Name","start_char":64,"line":2},{"index_id":30,"token_group":18,"text":"(","start_char":68,"line":2},{"index_id":31,"token_group":19,"text":"my","start_char":33,"line":3},{"index_id":32,"token_group":20,"text":"Fixture","start_char":35,"line":3},{"index_id":33,"token_group":20,"text":".","start_char":42,"line":3},{"index_id":34,"token_group":21,"text":"get","start_char":43,"line":3},{"index_id":35,"token_group":22,"text":"File","start_char":46,"line":3},{"index_id":36,"token_group":22,"text":"(","start_char":50,"line":3},{"index_id":37,"token_group":23,"text":")","start_char":51,"line":3},{"index_id":38,"token_group":24,"text":",","start_char":52,"line":3},{"index_id":39,"token_group":25,"text":"\"(str, MyObject)\"","start_char":54,"line":3},{"index_id":40,"token_group":26,"text":")","start_char":71,"line":3},{"index_id":41,"token_group":27,"text":";","start_char":72,"line":3},{"index_id":42,"token_group":28,"text":"assert","start_char":4,"line":4},{"index_id":43,"token_group":29,"text":"Equals","start_char":10,"line":4},{"index_id":44,"token_group":29,"text":"(","start_char":16,"line":4},{"index_id":45,"token_group":30,"text":"2","start_char":17,"line":4},{"index_id":46,"token_group":31,"text":",","start_char":18,"line":4},{"index_id":47,"token_group":32,"text":"type","start_char":20,"line":4},{"index_id":48,"token_group":33,"text":".","start_char":24,"line":4},{"index_id":49,"token_group":34,"text":"get","start_char":25,"line":4},{"index_id":50,"token_group":35,"text":"Element","start_char":28,"line":4},{"index_id":51,"token_group":35,"text":"Count","start_char":35,"line":4},{"index_id":52,"token_group":35,"text":"(","start_char":40,"line":4},{"index_id":53,"token_group":36,"text":")","start_char":41,"line":4},{"index_id":54,"token_group":37,"text":")","start_char":42,"line":4},{"index_id":55,"token_group":38,"text":";","start_char":43,"line":4},{"index_id":56,"token_group":39,"text":"assert","start_char":4,"line":5},{"index_id":57,"token_group":40,"text":"Class","start_char":10,"line":5},{"index_id":58,"token_group":40,"text":"Type","start_char":15,"line":5},{"index_id":59,"token_group":40,"text":"(","start_char":19,"line":5},{"index_id":60,"token_group":41,"text":"type","start_char":20,"line":5},{"index_id":61,"token_group":42,"text":".","start_char":24,"line":5},{"index_id":62,"token_group":43,"text":"get","start_char":25,"line":5},{"index_id":63,"token_group":44,"text":"Element","start_char":28,"line":5},{"index_id":64,"token_group":44,"text":"Type","start_char":35,"line":5},{"index_id":65,"token_group":44,"text":"(","start_char":39,"line":5},{"index_id":66,"token_group":45,"text":"0","start_char":40,"line":5},{"index_id":67,"token_group":46,"text":")","start_char":41,"line":5},{"index_id":68,"token_group":47,"text":",","start_char":42,"line":5},{"index_id":69,"token_group":48,"text":"\"str\"","start_char":44,"line":5},{"index_id":70,"token_group":49,"text":")","start_char":49,"line":5},{"index_id":71,"token_group":50,"text":";","start_char":50,"line":5},{"index_id":72,"token_group":51,"text":"assert","start_char":4,"line":6},{"index_id":73,"token_group":52,"text":"Class","start_char":10,"line":6},{"index_id":74,"token_group":52,"text":"Type","start_char":15,"line":6},{"index_id":75,"token_group":52,"text":"(","start_char":19,"line":6},{"index_id":76,"token_group":53,"text":"type","start_char":20,"line":6},{"index_id":77,"token_group":54,"text":".","start_char":24,"line":6},{"index_id":78,"token_group":55,"text":"get","start_char":25,"line":6},{"index_id":79,"token_group":56,"text":"Element","start_char":28,"line":6},{"index_id":80,"token_group":56,"text":"Type","start_char":35,"line":6},{"index_id":81,"token_group":56,"text":"(","start_char":39,"line":6},{"index_id":82,"token_group":57,"text":"1","start_char":40,"line":6},{"index_id":83,"token_group":58,"text":")","start_char":41,"line":6},{"index_id":84,"token_group":59,"text":",","start_char":42,"line":6},{"index_id":85,"token_group":60,"text":"\"MyObject\"","start_char":44,"line":6},{"index_id":86,"token_group":61,"text":")","start_char":54,"line":6},{"index_id":87,"token_group":62,"text":";","start_char":55,"line":6},{"index_id":88,"token_group":63,"text":"}","start_char":0,"line":7}],"tokens_list":["{","my","Fixture",".","configure","By","File","(","\"typeParser\/typeParser.py\"",")",";","final","py","Tuple","Type","type","=","(","py","Tuple","Type",")","py","Type","Parser",".","get","Type","By","Name","(","my","Fixture",".","get","File","(",")",",","\"(str, MyObject)\"",")",";","assert","Equals","(","2",",","type",".","get","Element","Count","(",")",")",";","assert","Class","Type","(","type",".","get","Element","Type","(","0",")",",","\"str\"",")",";","assert","Class","Type","(","type",".","get","Element","Type","(","1",")",",","\"MyObject\"",")",";","}"],"uuid":"ec803de38cff13d28f8f676cbca7ef5b"},{"cap_original_tokens":["<SENTENCE_START>","{","synchronized","(","<id>","dom","Element","Annotations","Manager","Impl","<\/id>",".","<id>","lock","<\/id>",")","{","return","<id>","my","Passed","Inspections","<\/id>",".","<id>","contains","<\/id>","(","<id>","inspection","Class","<\/id>",")",";","}","}","<SENTENCE_END\/>"],"file_name":"DomElementsProblemsHolderImpl.java","formatted_lines":["{"," synchronized (DomElementAnnotationsManagerImpl.LOCK)"," {"," return myPassedInspections.contains(inspectionClass);"," }","}"],"function_name":"isInspectionCompleted","function_name_tokens":["is","inspection","completed"],"id_body_hash":"4134c3383bb44371533aebd87ba35787","id_same_identifier_list":[0,1,2,3,4,4,4,4,4,5,6,7,8,9,10,10,10,11,12,13,14,14,15,16,17,18,19],"option_correct":"isInspectionCompleted","options":["isUnusedInspectionRequired","updateVarStateOnComparison","isInspectionEnabled","testFoDatatype","afterFileOpen","isInspectionCompleted","isGlobalInspectionRunCustomly"],"options_nlp":["is unused inspection required","update var state on comparison","is inspection enabled","test fo datatype","after file open","is inspection completed","is global inspection run customly"],"options_random":["testFoDatatype","afterFileOpen","updateVarStateOnComparison"],"options_tfidf":["isUnusedInspectionRequired","isGlobalInspectionRunCustomly","isInspectionEnabled"],"project_name":"intellij-community","source_code_string":"public final boolean isInspectionCompleted(final Class<? extends DomElementsInspection> inspectionClass) {\n synchronized (DomElementAnnotationsManagerImpl.LOCK) {\n return myPassedInspections.contains(inspectionClass);\n }\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"synchronized","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"(","start_char":17,"line":1},{"index_id":3,"token_group":3,"text":"dom","start_char":18,"line":1},{"index_id":4,"token_group":4,"text":"Element","start_char":21,"line":1},{"index_id":5,"token_group":4,"text":"Annotations","start_char":28,"line":1},{"index_id":6,"token_group":4,"text":"Manager","start_char":39,"line":1},{"index_id":7,"token_group":4,"text":"Impl","start_char":46,"line":1},{"index_id":8,"token_group":4,"text":".","start_char":50,"line":1},{"index_id":9,"token_group":5,"text":"lock","start_char":51,"line":1},{"index_id":10,"token_group":6,"text":")","start_char":55,"line":1},{"index_id":11,"token_group":7,"text":"{","start_char":4,"line":2},{"index_id":12,"token_group":8,"text":"return","start_char":8,"line":3},{"index_id":13,"token_group":9,"text":"my","start_char":15,"line":3},{"index_id":14,"token_group":10,"text":"Passed","start_char":17,"line":3},{"index_id":15,"token_group":10,"text":"Inspections","start_char":23,"line":3},{"index_id":16,"token_group":10,"text":".","start_char":34,"line":3},{"index_id":17,"token_group":11,"text":"contains","start_char":35,"line":3},{"index_id":18,"token_group":12,"text":"(","start_char":43,"line":3},{"index_id":19,"token_group":13,"text":"inspection","start_char":44,"line":3},{"index_id":20,"token_group":14,"text":"Class","start_char":54,"line":3},{"index_id":21,"token_group":14,"text":")","start_char":59,"line":3},{"index_id":22,"token_group":15,"text":";","start_char":60,"line":3},{"index_id":23,"token_group":16,"text":"}","start_char":4,"line":4},{"index_id":24,"token_group":17,"text":"}","start_char":0,"line":5}],"tokens_list":["{","synchronized","(","dom","Element","Annotations","Manager","Impl",".","lock",")","{","return","my","Passed","Inspections",".","contains","(","inspection","Class",")",";","}","}"],"uuid":"5041a7db931b4fa60dafeb255b922bfa"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","query","Definition","<\/id>","<","<id>","blogs","Entry","<\/id>",">","<id>","query","Definition","<\/id>","=","<id>","","Status","In","Trash","Query","Definition","<\/id>",";","if","(","!","<id>","status","In","Trash","<\/id>",")","{","<id>","query","Definition","<\/id>","=","<id>","","Status","Any","Query","Definition","<\/id>",";","}","int","<id>","initial","Count","<\/id>","=","<id>","blogs","Entry","Local","Service","Util","<\/id>",".","<id>","get","Group","User","Entries","Count","<\/id>","(","<id>","","Group","<\/id>",".","<id>","get","Group","Id","<\/id>","(",")",",","<id>","","User","<\/id>",".","<id>","get","User","Id","<\/id>","(",")",",","new","<id>","date","<\/id>","(",")",",","<id>","query","Definition","<\/id>",")",";","<id>","add","Entry","<\/id>","(","false",")",";","<id>","add","Entry","<\/id>","(","true",")",";","int","<id>","actual","Count","<\/id>","=","<id>","blogs","Entry","Local","Service","Util","<\/id>",".","<id>","get","Group","User","Entries","Count","<\/id>","(","<id>","","Group","<\/id>",".","<id>","get","Group","Id","<\/id>","(",")",",","<id>","","User","<\/id>",".","<id>","get","User","Id","<\/id>","(",")",",","new","<id>","date","<\/id>","(",")",",","<id>","query","Definition","<\/id>",")",";","<id>","assert","<\/id>",".","<id>","assert","Equals","<\/id>","(","<id>","initial","Count","<\/id>","+","1",",","<id>","actual","Count","<\/id>",")",";","}","<SENTENCE_END\/>"],"file_name":"BlogsEntryLocalServiceTest.java","formatted_lines":["{",""," QueryDefinition<BlogsEntry> queryDefinition ="," _statusInTrashQueryDefinition;",""," if (!statusInTrash)"," {"," queryDefinition = _statusAnyQueryDefinition;"," }",""," int initialCount = BlogsEntryLocalServiceUtil.getGroupUserEntriesCount("," _group.getGroupId(), _user.getUserId(), new Date(),"," queryDefinition);",""," addEntry(false);"," addEntry(true);",""," int actualCount = BlogsEntryLocalServiceUtil.getGroupUserEntriesCount("," _group.getGroupId(), _user.getUserId(), new Date(),"," queryDefinition);",""," Assert.assertEquals(initialCount + 1, actualCount);","}"],"function_name":"testGetGroupUserEntriesCount","function_name_tokens":["test","get","group","user","entries","count"],"id_body_hash":"17ecb7be1168f16944f38baa425d2c47","id_same_identifier_list":[0,1,2,2,3,4,4,5,6,6,7,8,8,8,8,8,8,9,10,11,12,13,13,13,14,15,16,16,17,18,18,18,18,18,19,20,21,22,22,23,24,24,24,24,24,25,26,26,26,26,26,27,28,28,29,30,30,30,31,32,33,34,34,35,36,36,36,37,38,39,40,41,42,43,44,45,45,46,47,48,48,49,50,51,52,53,53,54,55,56,57,58,59,59,60,61,61,61,61,61,62,63,63,63,63,63,64,65,65,66,67,67,67,68,69,70,71,71,72,73,73,73,74,75,76,77,78,79,80,81,82,82,83,84,85,86,87,87,88,89,89,90,91,92,93,93,94,95,96,97],"option_correct":"testGetGroupUserEntriesCount","options":["testGetGroupUserEntries","testGetGroupEntriesCount","getGroupEntriesCount","setAssetLinkLocalService","replaceJoinAndWhere","testGetGroupUserEntriesCount","testGetGroupPortletPreferencesCountByOwnerAndPlidAndPortletExcludeDefault"],"options_nlp":["test get group user entries","test get group entries count","get group entries count","set asset link local service","replace join and where","test get group user entries count","test get group portlet preferences count by owner and plid and portlet exclude default"],"options_random":["setAssetLinkLocalService","replaceJoinAndWhere","testGetGroupPortletPreferencesCountByOwnerAndPlidAndPortletExcludeDefault"],"options_tfidf":["getGroupEntriesCount","testGetGroupEntriesCount","testGetGroupUserEntries"],"project_name":"liferay-portal","source_code_string":"protected void testGetGroupUserEntriesCount(boolean statusInTrash)\n\t\tthrows Exception {\n\n\t\tQueryDefinition<BlogsEntry> queryDefinition =\n\t\t\t_statusInTrashQueryDefinition;\n\n\t\tif (!statusInTrash) {\n\t\t\tqueryDefinition = _statusAnyQueryDefinition;\n\t\t}\n\n\t\tint initialCount = BlogsEntryLocalServiceUtil.getGroupUserEntriesCount(\n\t\t\t_group.getGroupId(), _user.getUserId(), new Date(),\n\t\t\tqueryDefinition);\n\n\t\taddEntry(false);\n\t\taddEntry(true);\n\n\t\tint actualCount = BlogsEntryLocalServiceUtil.getGroupUserEntriesCount(\n\t\t\t_group.getGroupId(), _user.getUserId(), new Date(),\n\t\t\tqueryDefinition);\n\n\t\tAssert.assertEquals(initialCount + 1, actualCount);\n\t}","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"query","start_char":4,"line":2},{"index_id":2,"token_group":2,"text":"Definition","start_char":9,"line":2},{"index_id":3,"token_group":2,"text":"<","start_char":19,"line":2},{"index_id":4,"token_group":3,"text":"blogs","start_char":20,"line":2},{"index_id":5,"token_group":4,"text":"Entry","start_char":25,"line":2},{"index_id":6,"token_group":4,"text":">","start_char":30,"line":2},{"index_id":7,"token_group":5,"text":"query","start_char":32,"line":2},{"index_id":8,"token_group":6,"text":"Definition","start_char":37,"line":2},{"index_id":9,"token_group":6,"text":"=","start_char":48,"line":2},{"index_id":10,"token_group":7,"text":"","start_char":49,"line":2},{"index_id":11,"token_group":8,"text":"Status","start_char":5,"line":3},{"index_id":12,"token_group":8,"text":"In","start_char":11,"line":3},{"index_id":13,"token_group":8,"text":"Trash","start_char":13,"line":3},{"index_id":14,"token_group":8,"text":"Query","start_char":18,"line":3},{"index_id":15,"token_group":8,"text":"Definition","start_char":23,"line":3},{"index_id":16,"token_group":8,"text":";","start_char":33,"line":3},{"index_id":17,"token_group":9,"text":"if","start_char":4,"line":5},{"index_id":18,"token_group":10,"text":"(","start_char":7,"line":5},{"index_id":19,"token_group":11,"text":"!","start_char":8,"line":5},{"index_id":20,"token_group":12,"text":"status","start_char":9,"line":5},{"index_id":21,"token_group":13,"text":"In","start_char":15,"line":5},{"index_id":22,"token_group":13,"text":"Trash","start_char":17,"line":5},{"index_id":23,"token_group":13,"text":")","start_char":22,"line":5},{"index_id":24,"token_group":14,"text":"{","start_char":4,"line":6},{"index_id":25,"token_group":15,"text":"query","start_char":8,"line":7},{"index_id":26,"token_group":16,"text":"Definition","start_char":13,"line":7},{"index_id":27,"token_group":16,"text":"=","start_char":24,"line":7},{"index_id":28,"token_group":17,"text":"","start_char":25,"line":7},{"index_id":29,"token_group":18,"text":"Status","start_char":27,"line":7},{"index_id":30,"token_group":18,"text":"Any","start_char":33,"line":7},{"index_id":31,"token_group":18,"text":"Query","start_char":36,"line":7},{"index_id":32,"token_group":18,"text":"Definition","start_char":41,"line":7},{"index_id":33,"token_group":18,"text":";","start_char":51,"line":7},{"index_id":34,"token_group":19,"text":"}","start_char":4,"line":8},{"index_id":35,"token_group":20,"text":"int","start_char":4,"line":10},{"index_id":36,"token_group":21,"text":"initial","start_char":8,"line":10},{"index_id":37,"token_group":22,"text":"Count","start_char":15,"line":10},{"index_id":38,"token_group":22,"text":"=","start_char":21,"line":10},{"index_id":39,"token_group":23,"text":"blogs","start_char":23,"line":10},{"index_id":40,"token_group":24,"text":"Entry","start_char":28,"line":10},{"index_id":41,"token_group":24,"text":"Local","start_char":33,"line":10},{"index_id":42,"token_group":24,"text":"Service","start_char":38,"line":10},{"index_id":43,"token_group":24,"text":"Util","start_char":45,"line":10},{"index_id":44,"token_group":24,"text":".","start_char":49,"line":10},{"index_id":45,"token_group":25,"text":"get","start_char":50,"line":10},{"index_id":46,"token_group":26,"text":"Group","start_char":53,"line":10},{"index_id":47,"token_group":26,"text":"User","start_char":58,"line":10},{"index_id":48,"token_group":26,"text":"Entries","start_char":62,"line":10},{"index_id":49,"token_group":26,"text":"Count","start_char":69,"line":10},{"index_id":50,"token_group":26,"text":"(","start_char":74,"line":10},{"index_id":51,"token_group":27,"text":"","start_char":75,"line":10},{"index_id":52,"token_group":28,"text":"Group","start_char":9,"line":11},{"index_id":53,"token_group":28,"text":".","start_char":14,"line":11},{"index_id":54,"token_group":29,"text":"get","start_char":15,"line":11},{"index_id":55,"token_group":30,"text":"Group","start_char":18,"line":11},{"index_id":56,"token_group":30,"text":"Id","start_char":23,"line":11},{"index_id":57,"token_group":30,"text":"(","start_char":25,"line":11},{"index_id":58,"token_group":31,"text":")","start_char":26,"line":11},{"index_id":59,"token_group":32,"text":",","start_char":27,"line":11},{"index_id":60,"token_group":33,"text":"","start_char":28,"line":11},{"index_id":61,"token_group":34,"text":"User","start_char":30,"line":11},{"index_id":62,"token_group":34,"text":".","start_char":34,"line":11},{"index_id":63,"token_group":35,"text":"get","start_char":35,"line":11},{"index_id":64,"token_group":36,"text":"User","start_char":38,"line":11},{"index_id":65,"token_group":36,"text":"Id","start_char":42,"line":11},{"index_id":66,"token_group":36,"text":"(","start_char":44,"line":11},{"index_id":67,"token_group":37,"text":")","start_char":45,"line":11},{"index_id":68,"token_group":38,"text":",","start_char":46,"line":11},{"index_id":69,"token_group":39,"text":"new","start_char":48,"line":11},{"index_id":70,"token_group":40,"text":"date","start_char":52,"line":11},{"index_id":71,"token_group":41,"text":"(","start_char":56,"line":11},{"index_id":72,"token_group":42,"text":")","start_char":57,"line":11},{"index_id":73,"token_group":43,"text":",","start_char":58,"line":11},{"index_id":74,"token_group":44,"text":"query","start_char":8,"line":12},{"index_id":75,"token_group":45,"text":"Definition","start_char":13,"line":12},{"index_id":76,"token_group":45,"text":")","start_char":23,"line":12},{"index_id":77,"token_group":46,"text":";","start_char":24,"line":12},{"index_id":78,"token_group":47,"text":"add","start_char":4,"line":14},{"index_id":79,"token_group":48,"text":"Entry","start_char":7,"line":14},{"index_id":80,"token_group":48,"text":"(","start_char":12,"line":14},{"index_id":81,"token_group":49,"text":"false","start_char":13,"line":14},{"index_id":82,"token_group":50,"text":")","start_char":18,"line":14},{"index_id":83,"token_group":51,"text":";","start_char":19,"line":14},{"index_id":84,"token_group":52,"text":"add","start_char":4,"line":15},{"index_id":85,"token_group":53,"text":"Entry","start_char":7,"line":15},{"index_id":86,"token_group":53,"text":"(","start_char":12,"line":15},{"index_id":87,"token_group":54,"text":"true","start_char":13,"line":15},{"index_id":88,"token_group":55,"text":")","start_char":17,"line":15},{"index_id":89,"token_group":56,"text":";","start_char":18,"line":15},{"index_id":90,"token_group":57,"text":"int","start_char":4,"line":17},{"index_id":91,"token_group":58,"text":"actual","start_char":8,"line":17},{"index_id":92,"token_group":59,"text":"Count","start_char":14,"line":17},{"index_id":93,"token_group":59,"text":"=","start_char":20,"line":17},{"index_id":94,"token_group":60,"text":"blogs","start_char":22,"line":17},{"index_id":95,"token_group":61,"text":"Entry","start_char":27,"line":17},{"index_id":96,"token_group":61,"text":"Local","start_char":32,"line":17},{"index_id":97,"token_group":61,"text":"Service","start_char":37,"line":17},{"index_id":98,"token_group":61,"text":"Util","start_char":44,"line":17},{"index_id":99,"token_group":61,"text":".","start_char":48,"line":17},{"index_id":100,"token_group":62,"text":"get","start_char":49,"line":17},{"index_id":101,"token_group":63,"text":"Group","start_char":52,"line":17},{"index_id":102,"token_group":63,"text":"User","start_char":57,"line":17},{"index_id":103,"token_group":63,"text":"Entries","start_char":61,"line":17},{"index_id":104,"token_group":63,"text":"Count","start_char":68,"line":17},{"index_id":105,"token_group":63,"text":"(","start_char":73,"line":17},{"index_id":106,"token_group":64,"text":"","start_char":74,"line":17},{"index_id":107,"token_group":65,"text":"Group","start_char":9,"line":18},{"index_id":108,"token_group":65,"text":".","start_char":14,"line":18},{"index_id":109,"token_group":66,"text":"get","start_char":15,"line":18},{"index_id":110,"token_group":67,"text":"Group","start_char":18,"line":18},{"index_id":111,"token_group":67,"text":"Id","start_char":23,"line":18},{"index_id":112,"token_group":67,"text":"(","start_char":25,"line":18},{"index_id":113,"token_group":68,"text":")","start_char":26,"line":18},{"index_id":114,"token_group":69,"text":",","start_char":27,"line":18},{"index_id":115,"token_group":70,"text":"","start_char":28,"line":18},{"index_id":116,"token_group":71,"text":"User","start_char":30,"line":18},{"index_id":117,"token_group":71,"text":".","start_char":34,"line":18},{"index_id":118,"token_group":72,"text":"get","start_char":35,"line":18},{"index_id":119,"token_group":73,"text":"User","start_char":38,"line":18},{"index_id":120,"token_group":73,"text":"Id","start_char":42,"line":18},{"index_id":121,"token_group":73,"text":"(","start_char":44,"line":18},{"index_id":122,"token_group":74,"text":")","start_char":45,"line":18},{"index_id":123,"token_group":75,"text":",","start_char":46,"line":18},{"index_id":124,"token_group":76,"text":"new","start_char":48,"line":18},{"index_id":125,"token_group":77,"text":"date","start_char":52,"line":18},{"index_id":126,"token_group":78,"text":"(","start_char":56,"line":18},{"index_id":127,"token_group":79,"text":")","start_char":57,"line":18},{"index_id":128,"token_group":80,"text":",","start_char":58,"line":18},{"index_id":129,"token_group":81,"text":"query","start_char":8,"line":19},{"index_id":130,"token_group":82,"text":"Definition","start_char":13,"line":19},{"index_id":131,"token_group":82,"text":")","start_char":23,"line":19},{"index_id":132,"token_group":83,"text":";","start_char":24,"line":19},{"index_id":133,"token_group":84,"text":"assert","start_char":4,"line":21},{"index_id":134,"token_group":85,"text":".","start_char":10,"line":21},{"index_id":135,"token_group":86,"text":"assert","start_char":11,"line":21},{"index_id":136,"token_group":87,"text":"Equals","start_char":17,"line":21},{"index_id":137,"token_group":87,"text":"(","start_char":23,"line":21},{"index_id":138,"token_group":88,"text":"initial","start_char":24,"line":21},{"index_id":139,"token_group":89,"text":"Count","start_char":31,"line":21},{"index_id":140,"token_group":89,"text":"+","start_char":37,"line":21},{"index_id":141,"token_group":90,"text":"1","start_char":39,"line":21},{"index_id":142,"token_group":91,"text":",","start_char":40,"line":21},{"index_id":143,"token_group":92,"text":"actual","start_char":42,"line":21},{"index_id":144,"token_group":93,"text":"Count","start_char":48,"line":21},{"index_id":145,"token_group":93,"text":")","start_char":53,"line":21},{"index_id":146,"token_group":94,"text":";","start_char":54,"line":21},{"index_id":147,"token_group":95,"text":"}","start_char":0,"line":22}],"tokens_list":["{","query","Definition","<","blogs","Entry",">","query","Definition","=","","Status","In","Trash","Query","Definition",";","if","(","!","status","In","Trash",")","{","query","Definition","=","","Status","Any","Query","Definition",";","}","int","initial","Count","=","blogs","Entry","Local","Service","Util",".","get","Group","User","Entries","Count","(","","Group",".","get","Group","Id","(",")",",","","User",".","get","User","Id","(",")",",","new","date","(",")",",","query","Definition",")",";","add","Entry","(","false",")",";","add","Entry","(","true",")",";","int","actual","Count","=","blogs","Entry","Local","Service","Util",".","get","Group","User","Entries","Count","(","","Group",".","get","Group","Id","(",")",",","","User",".","get","User","Id","(",")",",","new","date","(",")",",","query","Definition",")",";","assert",".","assert","Equals","(","initial","Count","+","1",",","actual","Count",")",";","}"],"uuid":"2fad111299e16965a7ec4ce39423e079"},{"cap_original_tokens":["<SENTENCE_START>","{","if","(","<id>","wild","Fly","Security","Manager","<\/id>",".","<id>","is","Checking","<\/id>","(",")",")","{","<id>","system","<\/id>",".","<id>","get","Security","Manager","<\/id>","(",")",".","<id>","check","Permission","<\/id>","(","<id>","set","Active","Naming","Store","<\/id>",")",";","}","<id>","active","Naming","Store","<\/id>","=","<id>","naming","Store","<\/id>",";","}","<SENTENCE_END\/>"],"file_name":"NamingContext.java","formatted_lines":["{"," if(WildFlySecurityManager.isChecking())"," {"," System.getSecurityManager().checkPermission(SET_ACTIVE_NAMING_STORE);"," }"," ACTIVE_NAMING_STORE = namingStore;","}"],"function_name":"setActiveNamingStore","function_name_tokens":["set","active","naming","store"],"id_body_hash":"eca87c7e0edf847d9d2b9a8ae736ba76","id_same_identifier_list":[0,1,2,3,4,4,4,4,5,6,6,7,8,9,10,11,12,13,13,13,14,15,16,17,17,18,19,19,19,19,20,21,22,23,23,23,24,25,25,26,27,28],"option_correct":"setActiveNamingStore","options":["testDeployFalse","isActiveMQServerActive","testAS7","child","setActiveNamingStore","setDefaultObjectStore","setDeliveryActive"],"options_nlp":["test deploy false","is active mq server active","test as 7","child","set active naming store","set default object store","set delivery active"],"options_random":["testDeployFalse","child","testAS7"],"options_tfidf":["isActiveMQServerActive","setDefaultObjectStore","setDeliveryActive"],"project_name":"wildfly","source_code_string":"public static void setActiveNamingStore(final NamingStore namingStore) {\n if(WildFlySecurityManager.isChecking()) {\n System.getSecurityManager().checkPermission(SET_ACTIVE_NAMING_STORE);\n }\n ACTIVE_NAMING_STORE = namingStore;\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"if","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"(","start_char":6,"line":1},{"index_id":3,"token_group":3,"text":"wild","start_char":7,"line":1},{"index_id":4,"token_group":4,"text":"Fly","start_char":11,"line":1},{"index_id":5,"token_group":4,"text":"Security","start_char":14,"line":1},{"index_id":6,"token_group":4,"text":"Manager","start_char":22,"line":1},{"index_id":7,"token_group":4,"text":".","start_char":29,"line":1},{"index_id":8,"token_group":5,"text":"is","start_char":30,"line":1},{"index_id":9,"token_group":6,"text":"Checking","start_char":32,"line":1},{"index_id":10,"token_group":6,"text":"(","start_char":40,"line":1},{"index_id":11,"token_group":7,"text":")","start_char":41,"line":1},{"index_id":12,"token_group":8,"text":")","start_char":42,"line":1},{"index_id":13,"token_group":9,"text":"{","start_char":4,"line":2},{"index_id":14,"token_group":10,"text":"system","start_char":8,"line":3},{"index_id":15,"token_group":11,"text":".","start_char":14,"line":3},{"index_id":16,"token_group":12,"text":"get","start_char":15,"line":3},{"index_id":17,"token_group":13,"text":"Security","start_char":18,"line":3},{"index_id":18,"token_group":13,"text":"Manager","start_char":26,"line":3},{"index_id":19,"token_group":13,"text":"(","start_char":33,"line":3},{"index_id":20,"token_group":14,"text":")","start_char":34,"line":3},{"index_id":21,"token_group":15,"text":".","start_char":35,"line":3},{"index_id":22,"token_group":16,"text":"check","start_char":36,"line":3},{"index_id":23,"token_group":17,"text":"Permission","start_char":41,"line":3},{"index_id":24,"token_group":17,"text":"(","start_char":51,"line":3},{"index_id":25,"token_group":18,"text":"set","start_char":52,"line":3},{"index_id":26,"token_group":19,"text":"Active","start_char":56,"line":3},{"index_id":27,"token_group":19,"text":"Naming","start_char":63,"line":3},{"index_id":28,"token_group":19,"text":"Store","start_char":70,"line":3},{"index_id":29,"token_group":19,"text":")","start_char":75,"line":3},{"index_id":30,"token_group":20,"text":";","start_char":76,"line":3},{"index_id":31,"token_group":21,"text":"}","start_char":4,"line":4},{"index_id":32,"token_group":22,"text":"active","start_char":4,"line":5},{"index_id":33,"token_group":23,"text":"Naming","start_char":11,"line":5},{"index_id":34,"token_group":23,"text":"Store","start_char":18,"line":5},{"index_id":35,"token_group":23,"text":"=","start_char":24,"line":5},{"index_id":36,"token_group":24,"text":"naming","start_char":26,"line":5},{"index_id":37,"token_group":25,"text":"Store","start_char":32,"line":5},{"index_id":38,"token_group":25,"text":";","start_char":37,"line":5},{"index_id":39,"token_group":26,"text":"}","start_char":0,"line":6}],"tokens_list":["{","if","(","wild","Fly","Security","Manager",".","is","Checking","(",")",")","{","system",".","get","Security","Manager","(",")",".","check","Permission","(","set","Active","Naming","Store",")",";","}","active","Naming","Store","=","naming","Store",";","}"],"uuid":"835e1aeb6ab96b84a7562f1785a42b25"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","maven","Home","Component","<\/id>",".","<id>","get","Component","<\/id>","(",")",".","<id>","add","Browse","Folder","Listener","<\/id>","(","<id>","project","Bundle","<\/id>",".","<id>","message","<\/id>","(","\"maven.select.maven.home.directory\"",")",",","\"\"",",","null",",","<id>","browse","Files","Listener","<\/id>",".","<id>","single","Directory","Descriptor","<\/id>",",","<id>","text","Component","Accessor","<\/id>",".","<id>","text","Field","With","History","Whole","Text","<\/id>",")",";","<id>","maven","Home","Field","<\/id>",".","<id>","add","Document","Listener","<\/id>","(","new","<id>","document","Adapter","<\/id>","(",")","{","protected","void","<id>","text","Changed","<\/id>","(","<id>","document","Event","<\/id>","<id>","e","<\/id>",")","{","<id>","update","Maven","Version","Label","<\/id>","(",")",";","}","}",")",";","<id>","settings","File","Component","<\/id>",".","<id>","get","Component","<\/id>","(",")",".","<id>","add","Browse","Folder","Listener","<\/id>","(","<id>","project","Bundle","<\/id>",".","<id>","message","<\/id>","(","\"maven.select.maven.settings.file\"",")",",","\"\"",",","null",",","<id>","file","Chooser","Descriptor","Factory","<\/id>",".","<id>","create","Single","File","No","Jars","Descriptor","<\/id>","(",")",")",";","<id>","local","Repository","Component","<\/id>",".","<id>","get","Component","<\/id>","(",")",".","<id>","add","Browse","Folder","Listener","<\/id>","(","<id>","project","Bundle","<\/id>",".","<id>","message","<\/id>","(","\"maven.select.local.repository\"",")",",","\"\"",",","null",",","<id>","file","Chooser","Descriptor","Factory","<\/id>",".","<id>","create","Single","Folder","Descriptor","<\/id>","(",")",")",";","return","<id>","panel","<\/id>",";","}","<SENTENCE_END\/>"],"file_name":"MavenEnvironmentForm.java","formatted_lines":["{",""," mavenHomeComponent.getComponent().addBrowseFolderListener("," ProjectBundle.message(\"maven.select.maven.home.directory\"),"," \"\","," null, BrowseFilesListener.SINGLE_DIRECTORY_DESCRIPTOR,"," TextComponentAccessor.TEXT_FIELD_WITH_HISTORY_WHOLE_TEXT);"," mavenHomeField.addDocumentListener(new DocumentAdapter()"," {"," protected void textChanged(DocumentEvent e)"," {"," updateMavenVersionLabel();"," }"," });",""," settingsFileComponent.getComponent().addBrowseFolderListener("," ProjectBundle.message(\"maven.select.maven.settings.file\"), \"\", null,"," FileChooserDescriptorFactory.createSingleFileNoJarsDescriptor());"," localRepositoryComponent.getComponent().addBrowseFolderListener("," ProjectBundle.message(\"maven.select.local.repository\"), \"\", null,"," FileChooserDescriptorFactory.createSingleFolderDescriptor());"," return panel;","}"],"function_name":"createComponent","function_name_tokens":["create","component"],"id_body_hash":"980243ffca268ed32a425532509234b1","id_same_identifier_list":[0,1,2,2,2,3,4,4,5,6,7,8,8,8,8,9,10,10,11,12,13,14,15,16,17,18,19,20,21,21,21,22,23,23,23,24,25,25,25,26,27,27,27,27,27,27,28,29,30,30,30,31,32,32,32,33,34,35,35,36,37,38,39,40,41,41,42,43,43,44,45,46,47,47,47,47,48,49,50,51,52,53,54,55,55,55,56,57,57,58,59,60,61,61,61,61,62,63,63,64,65,66,67,68,69,70,71,72,73,74,74,74,74,75,76,76,76,76,76,76,77,78,79,80,81,81,81,82,83,83,84,85,86,87,87,87,87,88,89,89,90,91,92,93,94,95,96,97,98,99,100,100,100,100,101,102,102,102,102,103,104,105,106,107,108,109,110,111],"option_correct":"createComponent","options":["createCustomComponent","createEditorComponent","setStuff","createComponent","checkTypeParametersList","getMac","createActionComponent"],"options_nlp":["create custom component","create editor component","set stuff","create component","check type parameters list","get mac","create action component"],"options_random":["setStuff","getMac","checkTypeParametersList"],"options_tfidf":["createActionComponent","createCustomComponent","createEditorComponent"],"project_name":"intellij-community","source_code_string":"public JComponent createComponent() {\n \n mavenHomeComponent.getComponent().addBrowseFolderListener(ProjectBundle.message(\"maven.select.maven.home.directory\"),\n \"\",\n null, BrowseFilesListener.SINGLE_DIRECTORY_DESCRIPTOR,\n TextComponentAccessor.TEXT_FIELD_WITH_HISTORY_WHOLE_TEXT);\n mavenHomeField.addDocumentListener(new DocumentAdapter() {\n protected void textChanged(DocumentEvent e) {\n updateMavenVersionLabel();\n }\n });\n\n settingsFileComponent.getComponent().addBrowseFolderListener(ProjectBundle.message(\"maven.select.maven.settings.file\"), \"\", null,\n FileChooserDescriptorFactory.createSingleFileNoJarsDescriptor());\n localRepositoryComponent.getComponent().addBrowseFolderListener(ProjectBundle.message(\"maven.select.local.repository\"), \"\", null,\n FileChooserDescriptorFactory.createSingleFolderDescriptor());\n return panel;\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"maven","start_char":4,"line":2},{"index_id":2,"token_group":2,"text":"Home","start_char":9,"line":2},{"index_id":3,"token_group":2,"text":"Component","start_char":13,"line":2},{"index_id":4,"token_group":2,"text":".","start_char":22,"line":2},{"index_id":5,"token_group":3,"text":"get","start_char":23,"line":2},{"index_id":6,"token_group":4,"text":"Component","start_char":26,"line":2},{"index_id":7,"token_group":4,"text":"(","start_char":35,"line":2},{"index_id":8,"token_group":5,"text":")","start_char":36,"line":2},{"index_id":9,"token_group":6,"text":".","start_char":37,"line":2},{"index_id":10,"token_group":7,"text":"add","start_char":38,"line":2},{"index_id":11,"token_group":8,"text":"Browse","start_char":41,"line":2},{"index_id":12,"token_group":8,"text":"Folder","start_char":47,"line":2},{"index_id":13,"token_group":8,"text":"Listener","start_char":53,"line":2},{"index_id":14,"token_group":8,"text":"(","start_char":61,"line":2},{"index_id":15,"token_group":9,"text":"project","start_char":8,"line":3},{"index_id":16,"token_group":10,"text":"Bundle","start_char":15,"line":3},{"index_id":17,"token_group":10,"text":".","start_char":21,"line":3},{"index_id":18,"token_group":11,"text":"message","start_char":22,"line":3},{"index_id":19,"token_group":12,"text":"(","start_char":29,"line":3},{"index_id":20,"token_group":13,"text":"\"maven.select.maven.home.directory\"","start_char":30,"line":3},{"index_id":21,"token_group":14,"text":")","start_char":65,"line":3},{"index_id":22,"token_group":15,"text":",","start_char":66,"line":3},{"index_id":23,"token_group":16,"text":"\"\"","start_char":8,"line":4},{"index_id":24,"token_group":17,"text":",","start_char":10,"line":4},{"index_id":25,"token_group":18,"text":"null","start_char":8,"line":5},{"index_id":26,"token_group":19,"text":",","start_char":12,"line":5},{"index_id":27,"token_group":20,"text":"browse","start_char":14,"line":5},{"index_id":28,"token_group":21,"text":"Files","start_char":20,"line":5},{"index_id":29,"token_group":21,"text":"Listener","start_char":25,"line":5},{"index_id":30,"token_group":21,"text":".","start_char":33,"line":5},{"index_id":31,"token_group":22,"text":"single","start_char":34,"line":5},{"index_id":32,"token_group":23,"text":"Directory","start_char":41,"line":5},{"index_id":33,"token_group":23,"text":"Descriptor","start_char":51,"line":5},{"index_id":34,"token_group":23,"text":",","start_char":61,"line":5},{"index_id":35,"token_group":24,"text":"text","start_char":8,"line":6},{"index_id":36,"token_group":25,"text":"Component","start_char":12,"line":6},{"index_id":37,"token_group":25,"text":"Accessor","start_char":21,"line":6},{"index_id":38,"token_group":25,"text":".","start_char":29,"line":6},{"index_id":39,"token_group":26,"text":"text","start_char":30,"line":6},{"index_id":40,"token_group":27,"text":"Field","start_char":35,"line":6},{"index_id":41,"token_group":27,"text":"With","start_char":41,"line":6},{"index_id":42,"token_group":27,"text":"History","start_char":46,"line":6},{"index_id":43,"token_group":27,"text":"Whole","start_char":54,"line":6},{"index_id":44,"token_group":27,"text":"Text","start_char":60,"line":6},{"index_id":45,"token_group":27,"text":")","start_char":64,"line":6},{"index_id":46,"token_group":28,"text":";","start_char":65,"line":6},{"index_id":47,"token_group":29,"text":"maven","start_char":4,"line":7},{"index_id":48,"token_group":30,"text":"Home","start_char":9,"line":7},{"index_id":49,"token_group":30,"text":"Field","start_char":13,"line":7},{"index_id":50,"token_group":30,"text":".","start_char":18,"line":7},{"index_id":51,"token_group":31,"text":"add","start_char":19,"line":7},{"index_id":52,"token_group":32,"text":"Document","start_char":22,"line":7},{"index_id":53,"token_group":32,"text":"Listener","start_char":30,"line":7},{"index_id":54,"token_group":32,"text":"(","start_char":38,"line":7},{"index_id":55,"token_group":33,"text":"new","start_char":39,"line":7},{"index_id":56,"token_group":34,"text":"document","start_char":43,"line":7},{"index_id":57,"token_group":35,"text":"Adapter","start_char":51,"line":7},{"index_id":58,"token_group":35,"text":"(","start_char":58,"line":7},{"index_id":59,"token_group":36,"text":")","start_char":59,"line":7},{"index_id":60,"token_group":37,"text":"{","start_char":4,"line":8},{"index_id":61,"token_group":38,"text":"protected","start_char":8,"line":9},{"index_id":62,"token_group":39,"text":"void","start_char":18,"line":9},{"index_id":63,"token_group":40,"text":"text","start_char":23,"line":9},{"index_id":64,"token_group":41,"text":"Changed","start_char":27,"line":9},{"index_id":65,"token_group":41,"text":"(","start_char":34,"line":9},{"index_id":66,"token_group":42,"text":"document","start_char":35,"line":9},{"index_id":67,"token_group":43,"text":"Event","start_char":43,"line":9},{"index_id":68,"token_group":43,"text":"e","start_char":49,"line":9},{"index_id":69,"token_group":44,"text":")","start_char":50,"line":9},{"index_id":70,"token_group":45,"text":"{","start_char":8,"line":10},{"index_id":71,"token_group":46,"text":"update","start_char":12,"line":11},{"index_id":72,"token_group":47,"text":"Maven","start_char":18,"line":11},{"index_id":73,"token_group":47,"text":"Version","start_char":23,"line":11},{"index_id":74,"token_group":47,"text":"Label","start_char":30,"line":11},{"index_id":75,"token_group":47,"text":"(","start_char":35,"line":11},{"index_id":76,"token_group":48,"text":")","start_char":36,"line":11},{"index_id":77,"token_group":49,"text":";","start_char":37,"line":11},{"index_id":78,"token_group":50,"text":"}","start_char":8,"line":12},{"index_id":79,"token_group":51,"text":"}","start_char":4,"line":13},{"index_id":80,"token_group":52,"text":")","start_char":5,"line":13},{"index_id":81,"token_group":53,"text":";","start_char":6,"line":13},{"index_id":82,"token_group":54,"text":"settings","start_char":4,"line":15},{"index_id":83,"token_group":55,"text":"File","start_char":12,"line":15},{"index_id":84,"token_group":55,"text":"Component","start_char":16,"line":15},{"index_id":85,"token_group":55,"text":".","start_char":25,"line":15},{"index_id":86,"token_group":56,"text":"get","start_char":26,"line":15},{"index_id":87,"token_group":57,"text":"Component","start_char":29,"line":15},{"index_id":88,"token_group":57,"text":"(","start_char":38,"line":15},{"index_id":89,"token_group":58,"text":")","start_char":39,"line":15},{"index_id":90,"token_group":59,"text":".","start_char":40,"line":15},{"index_id":91,"token_group":60,"text":"add","start_char":41,"line":15},{"index_id":92,"token_group":61,"text":"Browse","start_char":44,"line":15},{"index_id":93,"token_group":61,"text":"Folder","start_char":50,"line":15},{"index_id":94,"token_group":61,"text":"Listener","start_char":56,"line":15},{"index_id":95,"token_group":61,"text":"(","start_char":64,"line":15},{"index_id":96,"token_group":62,"text":"project","start_char":8,"line":16},{"index_id":97,"token_group":63,"text":"Bundle","start_char":15,"line":16},{"index_id":98,"token_group":63,"text":".","start_char":21,"line":16},{"index_id":99,"token_group":64,"text":"message","start_char":22,"line":16},{"index_id":100,"token_group":65,"text":"(","start_char":29,"line":16},{"index_id":101,"token_group":66,"text":"\"maven.select.maven.settings.file\"","start_char":30,"line":16},{"index_id":102,"token_group":67,"text":")","start_char":64,"line":16},{"index_id":103,"token_group":68,"text":",","start_char":65,"line":16},{"index_id":104,"token_group":69,"text":"\"\"","start_char":67,"line":16},{"index_id":105,"token_group":70,"text":",","start_char":69,"line":16},{"index_id":106,"token_group":71,"text":"null","start_char":71,"line":16},{"index_id":107,"token_group":72,"text":",","start_char":75,"line":16},{"index_id":108,"token_group":73,"text":"file","start_char":8,"line":17},{"index_id":109,"token_group":74,"text":"Chooser","start_char":12,"line":17},{"index_id":110,"token_group":74,"text":"Descriptor","start_char":19,"line":17},{"index_id":111,"token_group":74,"text":"Factory","start_char":29,"line":17},{"index_id":112,"token_group":74,"text":".","start_char":36,"line":17},{"index_id":113,"token_group":75,"text":"create","start_char":37,"line":17},{"index_id":114,"token_group":76,"text":"Single","start_char":43,"line":17},{"index_id":115,"token_group":76,"text":"File","start_char":49,"line":17},{"index_id":116,"token_group":76,"text":"No","start_char":53,"line":17},{"index_id":117,"token_group":76,"text":"Jars","start_char":55,"line":17},{"index_id":118,"token_group":76,"text":"Descriptor","start_char":59,"line":17},{"index_id":119,"token_group":76,"text":"(","start_char":69,"line":17},{"index_id":120,"token_group":77,"text":")","start_char":70,"line":17},{"index_id":121,"token_group":78,"text":")","start_char":71,"line":17},{"index_id":122,"token_group":79,"text":";","start_char":72,"line":17},{"index_id":123,"token_group":80,"text":"local","start_char":4,"line":18},{"index_id":124,"token_group":81,"text":"Repository","start_char":9,"line":18},{"index_id":125,"token_group":81,"text":"Component","start_char":19,"line":18},{"index_id":126,"token_group":81,"text":".","start_char":28,"line":18},{"index_id":127,"token_group":82,"text":"get","start_char":29,"line":18},{"index_id":128,"token_group":83,"text":"Component","start_char":32,"line":18},{"index_id":129,"token_group":83,"text":"(","start_char":41,"line":18},{"index_id":130,"token_group":84,"text":")","start_char":42,"line":18},{"index_id":131,"token_group":85,"text":".","start_char":43,"line":18},{"index_id":132,"token_group":86,"text":"add","start_char":44,"line":18},{"index_id":133,"token_group":87,"text":"Browse","start_char":47,"line":18},{"index_id":134,"token_group":87,"text":"Folder","start_char":53,"line":18},{"index_id":135,"token_group":87,"text":"Listener","start_char":59,"line":18},{"index_id":136,"token_group":87,"text":"(","start_char":67,"line":18},{"index_id":137,"token_group":88,"text":"project","start_char":8,"line":19},{"index_id":138,"token_group":89,"text":"Bundle","start_char":15,"line":19},{"index_id":139,"token_group":89,"text":".","start_char":21,"line":19},{"index_id":140,"token_group":90,"text":"message","start_char":22,"line":19},{"index_id":141,"token_group":91,"text":"(","start_char":29,"line":19},{"index_id":142,"token_group":92,"text":"\"maven.select.local.repository\"","start_char":30,"line":19},{"index_id":143,"token_group":93,"text":")","start_char":61,"line":19},{"index_id":144,"token_group":94,"text":",","start_char":62,"line":19},{"index_id":145,"token_group":95,"text":"\"\"","start_char":64,"line":19},{"index_id":146,"token_group":96,"text":",","start_char":66,"line":19},{"index_id":147,"token_group":97,"text":"null","start_char":68,"line":19},{"index_id":148,"token_group":98,"text":",","start_char":72,"line":19},{"index_id":149,"token_group":99,"text":"file","start_char":8,"line":20},{"index_id":150,"token_group":100,"text":"Chooser","start_char":12,"line":20},{"index_id":151,"token_group":100,"text":"Descriptor","start_char":19,"line":20},{"index_id":152,"token_group":100,"text":"Factory","start_char":29,"line":20},{"index_id":153,"token_group":100,"text":".","start_char":36,"line":20},{"index_id":154,"token_group":101,"text":"create","start_char":37,"line":20},{"index_id":155,"token_group":102,"text":"Single","start_char":43,"line":20},{"index_id":156,"token_group":102,"text":"Folder","start_char":49,"line":20},{"index_id":157,"token_group":102,"text":"Descriptor","start_char":55,"line":20},{"index_id":158,"token_group":102,"text":"(","start_char":65,"line":20},{"index_id":159,"token_group":103,"text":")","start_char":66,"line":20},{"index_id":160,"token_group":104,"text":")","start_char":67,"line":20},{"index_id":161,"token_group":105,"text":";","start_char":68,"line":20},{"index_id":162,"token_group":106,"text":"return","start_char":4,"line":21},{"index_id":163,"token_group":107,"text":"panel","start_char":11,"line":21},{"index_id":164,"token_group":108,"text":";","start_char":16,"line":21},{"index_id":165,"token_group":109,"text":"}","start_char":0,"line":22}],"tokens_list":["{","maven","Home","Component",".","get","Component","(",")",".","add","Browse","Folder","Listener","(","project","Bundle",".","message","(","\"maven.select.maven.home.directory\"",")",",","\"\"",",","null",",","browse","Files","Listener",".","single","Directory","Descriptor",",","text","Component","Accessor",".","text","Field","With","History","Whole","Text",")",";","maven","Home","Field",".","add","Document","Listener","(","new","document","Adapter","(",")","{","protected","void","text","Changed","(","document","Event","e",")","{","update","Maven","Version","Label","(",")",";","}","}",")",";","settings","File","Component",".","get","Component","(",")",".","add","Browse","Folder","Listener","(","project","Bundle",".","message","(","\"maven.select.maven.settings.file\"",")",",","\"\"",",","null",",","file","Chooser","Descriptor","Factory",".","create","Single","File","No","Jars","Descriptor","(",")",")",";","local","Repository","Component",".","get","Component","(",")",".","add","Browse","Folder","Listener","(","project","Bundle",".","message","(","\"maven.select.local.repository\"",")",",","\"\"",",","null",",","file","Chooser","Descriptor","Factory",".","create","Single","Folder","Descriptor","(",")",")",";","return","panel",";","}"],"uuid":"a2614a46ae1d7725639236e6546fa822"},{"cap_original_tokens":["<SENTENCE_START>","{","final","<id>","builder","Message","<\/id>",".","<id>","build","Event","<\/id>",".","<id>","builder","<\/id>","<id>","builder","<\/id>","=","<id>","builder","Message","<\/id>",".","<id>","build","Event","<\/id>",".","<id>","new","Builder","<\/id>","(",")",".","<id>","set","Event","Type","<\/id>","(","<id>","type","<\/id>",")",";","if","(","<id>","description","<\/id>","!=","null",")","{","<id>","builder","<\/id>",".","<id>","set","Description","<\/id>","(","<id>","description","<\/id>",")",";","}","if","(","<id>","status","<\/id>","!=","null",")","{","<id>","builder","<\/id>",".","<id>","set","Completion","Status","<\/id>","(","<id>","status","<\/id>",")",";","}","if","(","<id>","generated","Paths","<\/id>","!=","null",")","{","for","(","<id>","pair","<\/id>","<","<id>","string","<\/id>",",","<id>","string","<\/id>",">","<id>","pair","<\/id>",":","<id>","generated","Paths","<\/id>",")","{","final","<id>","builder","Message","<\/id>",".","<id>","build","Event","<\/id>",".","<id>","generated","File","<\/id>",".","<id>","builder","<\/id>","<id>","file","Builder","<\/id>","=","<id>","builder","Message","<\/id>",".","<id>","build","Event","<\/id>",".","<id>","generated","File","<\/id>",".","<id>","new","Builder","<\/id>","(",")",";","final","<id>","builder","Message","<\/id>",".","<id>","build","Event","<\/id>",".","<id>","generated","File","<\/id>","<id>","generated","File","<\/id>","=","<id>","file","Builder","<\/id>",".","<id>","set","Output","Root","<\/id>","(","<id>","pair","<\/id>",".","<id>","first","<\/id>",")",".","<id>","set","Relative","Path","<\/id>","(","<id>","pair","<\/id>",".","<id>","second","<\/id>",")",".","<id>","build","<\/id>","(",")",";","<id>","builder","<\/id>",".","<id>","add","Generated","Files","<\/id>","(","<id>","generated","File","<\/id>",")",";","}","}","if","(","<id>","builder","Message","<\/id>","!=","null",")","{","<id>","builder","<\/id>",".","<id>","set","Custom","Builder","Message","<\/id>","(","<id>","builder","Message","<\/id>",")",";","}","return","<id>","builder","Message","<\/id>",".","<id>","new","Builder","<\/id>","(",")",".","<id>","set","Type","<\/id>","(","<id>","builder","Message","<\/id>",".","<id>","type","<\/id>",".","<id>","build","Event","<\/id>",")",".","<id>","set","Build","Event","<\/id>","(","<id>","builder","<\/id>",".","<id>","build","<\/id>","(",")",")",".","<id>","build","<\/id>","(",")",";","}","<SENTENCE_END\/>"],"file_name":"CmdlineProtoUtil.java","formatted_lines":["{"," final BuilderMessage.BuildEvent.Builder builder ="," BuilderMessage.BuildEvent.newBuilder().setEventType(type);"," if (description != null)"," {"," builder.setDescription(description);"," }"," if (status != null)"," {"," builder.setCompletionStatus(status);"," }"," if (generatedPaths != null)"," {"," for (Pair<String, String> pair : generatedPaths)"," {"," final BuilderMessage.BuildEvent.GeneratedFile.Builder fileBuilder ="," BuilderMessage.BuildEvent.GeneratedFile.newBuilder();"," final BuilderMessage.BuildEvent.GeneratedFile generatedFile ="," fileBuilder.setOutputRoot(pair.first).setRelativePath(pair.second).build();"," builder.addGeneratedFiles(generatedFile);"," }"," }"," if (builderMessage != null)"," {"," builder.setCustomBuilderMessage(builderMessage);"," }"," return BuilderMessage.newBuilder().setType("," BuilderMessage.Type.BUILD_EVENT).setBuildEvent(builder.build()).build();","}"],"function_name":"createBuildEvent","function_name_tokens":["create","build","event"],"id_body_hash":"707e2f334ee68debca65993c9b1d1591","id_same_identifier_list":[0,1,2,3,3,4,5,5,6,7,8,9,10,10,11,12,12,13,14,14,15,16,17,18,18,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,47,47,48,49,50,51,52,53,54,55,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,70,71,72,73,74,74,75,76,76,77,78,78,79,80,81,81,82,83,83,84,85,85,86,87,87,88,89,89,90,91,92,93,94,94,95,96,96,97,98,98,99,99,100,101,101,102,103,103,103,104,105,106,107,108,109,110,110,110,111,112,113,114,115,116,117,118,119,120,121,122,123,123,123,124,125,125,126,127,128,129,130,131,132,132,133,134,135,136,137,138,139,139,139,139,140,141,141,142,143,144,145,146,146,147,148,148,149,150,151,152,152,153,154,154,155,156,157,158,158,159,160,161,161,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175],"option_correct":"createBuildEvent","options":["getParentKind","createEvent","testParamTypeReplacement","createBasicAuth","createBuildCompletedEvent","createBuildEvent","createEventHandler"],"options_nlp":["get parent kind","create event","test param type replacement","create basic auth","create build completed event","create build event","create event handler"],"options_random":["getParentKind","testParamTypeReplacement","createBasicAuth"],"options_tfidf":["createEventHandler","createEvent","createBuildCompletedEvent"],"project_name":"intellij-community","source_code_string":"private static BuilderMessage createBuildEvent(final BuilderMessage.BuildEvent.Type type,\n @Nullable String description,\n @Nullable final BuilderMessage.BuildEvent.Status status,\n @Nullable Collection<Pair<String, String>> generatedPaths,\n @Nullable final BuilderMessage.BuildEvent.CustomBuilderMessage builderMessage) {\n final BuilderMessage.BuildEvent.Builder builder = BuilderMessage.BuildEvent.newBuilder().setEventType(type);\n if (description != null) {\n builder.setDescription(description);\n }\n if (status != null) {\n builder.setCompletionStatus(status);\n }\n if (generatedPaths != null) {\n for (Pair<String, String> pair : generatedPaths) {\n final BuilderMessage.BuildEvent.GeneratedFile.Builder fileBuilder = BuilderMessage.BuildEvent.GeneratedFile.newBuilder();\n final BuilderMessage.BuildEvent.GeneratedFile generatedFile = fileBuilder.setOutputRoot(pair.first).setRelativePath(pair.second).build();\n builder.addGeneratedFiles(generatedFile);\n }\n }\n if (builderMessage != null) {\n builder.setCustomBuilderMessage(builderMessage);\n }\n return BuilderMessage.newBuilder().setType(BuilderMessage.Type.BUILD_EVENT).setBuildEvent(builder.build()).build();\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"final","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"builder","start_char":10,"line":1},{"index_id":3,"token_group":3,"text":"Message","start_char":17,"line":1},{"index_id":4,"token_group":3,"text":".","start_char":24,"line":1},{"index_id":5,"token_group":4,"text":"build","start_char":25,"line":1},{"index_id":6,"token_group":5,"text":"Event","start_char":30,"line":1},{"index_id":7,"token_group":5,"text":".","start_char":35,"line":1},{"index_id":8,"token_group":6,"text":"builder","start_char":36,"line":1},{"index_id":9,"token_group":7,"text":"builder","start_char":44,"line":1},{"index_id":10,"token_group":8,"text":"=","start_char":52,"line":1},{"index_id":11,"token_group":9,"text":"builder","start_char":8,"line":2},{"index_id":12,"token_group":10,"text":"Message","start_char":15,"line":2},{"index_id":13,"token_group":10,"text":".","start_char":22,"line":2},{"index_id":14,"token_group":11,"text":"build","start_char":23,"line":2},{"index_id":15,"token_group":12,"text":"Event","start_char":28,"line":2},{"index_id":16,"token_group":12,"text":".","start_char":33,"line":2},{"index_id":17,"token_group":13,"text":"new","start_char":34,"line":2},{"index_id":18,"token_group":14,"text":"Builder","start_char":37,"line":2},{"index_id":19,"token_group":14,"text":"(","start_char":44,"line":2},{"index_id":20,"token_group":15,"text":")","start_char":45,"line":2},{"index_id":21,"token_group":16,"text":".","start_char":46,"line":2},{"index_id":22,"token_group":17,"text":"set","start_char":47,"line":2},{"index_id":23,"token_group":18,"text":"Event","start_char":50,"line":2},{"index_id":24,"token_group":18,"text":"Type","start_char":55,"line":2},{"index_id":25,"token_group":18,"text":"(","start_char":59,"line":2},{"index_id":26,"token_group":19,"text":"type","start_char":60,"line":2},{"index_id":27,"token_group":20,"text":")","start_char":64,"line":2},{"index_id":28,"token_group":21,"text":";","start_char":65,"line":2},{"index_id":29,"token_group":22,"text":"if","start_char":4,"line":3},{"index_id":30,"token_group":23,"text":"(","start_char":7,"line":3},{"index_id":31,"token_group":24,"text":"description","start_char":8,"line":3},{"index_id":32,"token_group":25,"text":"!=","start_char":20,"line":3},{"index_id":33,"token_group":26,"text":"null","start_char":23,"line":3},{"index_id":34,"token_group":27,"text":")","start_char":27,"line":3},{"index_id":35,"token_group":28,"text":"{","start_char":4,"line":4},{"index_id":36,"token_group":29,"text":"builder","start_char":8,"line":5},{"index_id":37,"token_group":30,"text":".","start_char":15,"line":5},{"index_id":38,"token_group":31,"text":"set","start_char":16,"line":5},{"index_id":39,"token_group":32,"text":"Description","start_char":19,"line":5},{"index_id":40,"token_group":32,"text":"(","start_char":30,"line":5},{"index_id":41,"token_group":33,"text":"description","start_char":31,"line":5},{"index_id":42,"token_group":34,"text":")","start_char":42,"line":5},{"index_id":43,"token_group":35,"text":";","start_char":43,"line":5},{"index_id":44,"token_group":36,"text":"}","start_char":4,"line":6},{"index_id":45,"token_group":37,"text":"if","start_char":4,"line":7},{"index_id":46,"token_group":38,"text":"(","start_char":7,"line":7},{"index_id":47,"token_group":39,"text":"status","start_char":8,"line":7},{"index_id":48,"token_group":40,"text":"!=","start_char":15,"line":7},{"index_id":49,"token_group":41,"text":"null","start_char":18,"line":7},{"index_id":50,"token_group":42,"text":")","start_char":22,"line":7},{"index_id":51,"token_group":43,"text":"{","start_char":4,"line":8},{"index_id":52,"token_group":44,"text":"builder","start_char":8,"line":9},{"index_id":53,"token_group":45,"text":".","start_char":15,"line":9},{"index_id":54,"token_group":46,"text":"set","start_char":16,"line":9},{"index_id":55,"token_group":47,"text":"Completion","start_char":19,"line":9},{"index_id":56,"token_group":47,"text":"Status","start_char":29,"line":9},{"index_id":57,"token_group":47,"text":"(","start_char":35,"line":9},{"index_id":58,"token_group":48,"text":"status","start_char":36,"line":9},{"index_id":59,"token_group":49,"text":")","start_char":42,"line":9},{"index_id":60,"token_group":50,"text":";","start_char":43,"line":9},{"index_id":61,"token_group":51,"text":"}","start_char":4,"line":10},{"index_id":62,"token_group":52,"text":"if","start_char":4,"line":11},{"index_id":63,"token_group":53,"text":"(","start_char":7,"line":11},{"index_id":64,"token_group":54,"text":"generated","start_char":8,"line":11},{"index_id":65,"token_group":55,"text":"Paths","start_char":17,"line":11},{"index_id":66,"token_group":55,"text":"!=","start_char":23,"line":11},{"index_id":67,"token_group":56,"text":"null","start_char":26,"line":11},{"index_id":68,"token_group":57,"text":")","start_char":30,"line":11},{"index_id":69,"token_group":58,"text":"{","start_char":4,"line":12},{"index_id":70,"token_group":59,"text":"for","start_char":8,"line":13},{"index_id":71,"token_group":60,"text":"(","start_char":12,"line":13},{"index_id":72,"token_group":61,"text":"pair","start_char":13,"line":13},{"index_id":73,"token_group":62,"text":"<","start_char":17,"line":13},{"index_id":74,"token_group":63,"text":"string","start_char":18,"line":13},{"index_id":75,"token_group":64,"text":",","start_char":24,"line":13},{"index_id":76,"token_group":65,"text":"string","start_char":26,"line":13},{"index_id":77,"token_group":66,"text":">","start_char":32,"line":13},{"index_id":78,"token_group":67,"text":"pair","start_char":34,"line":13},{"index_id":79,"token_group":68,"text":":","start_char":39,"line":13},{"index_id":80,"token_group":69,"text":"generated","start_char":41,"line":13},{"index_id":81,"token_group":70,"text":"Paths","start_char":50,"line":13},{"index_id":82,"token_group":70,"text":")","start_char":55,"line":13},{"index_id":83,"token_group":71,"text":"{","start_char":8,"line":14},{"index_id":84,"token_group":72,"text":"final","start_char":12,"line":15},{"index_id":85,"token_group":73,"text":"builder","start_char":18,"line":15},{"index_id":86,"token_group":74,"text":"Message","start_char":25,"line":15},{"index_id":87,"token_group":74,"text":".","start_char":32,"line":15},{"index_id":88,"token_group":75,"text":"build","start_char":33,"line":15},{"index_id":89,"token_group":76,"text":"Event","start_char":38,"line":15},{"index_id":90,"token_group":76,"text":".","start_char":43,"line":15},{"index_id":91,"token_group":77,"text":"generated","start_char":44,"line":15},{"index_id":92,"token_group":78,"text":"File","start_char":53,"line":15},{"index_id":93,"token_group":78,"text":".","start_char":57,"line":15},{"index_id":94,"token_group":79,"text":"builder","start_char":58,"line":15},{"index_id":95,"token_group":80,"text":"file","start_char":66,"line":15},{"index_id":96,"token_group":81,"text":"Builder","start_char":70,"line":15},{"index_id":97,"token_group":81,"text":"=","start_char":78,"line":15},{"index_id":98,"token_group":82,"text":"builder","start_char":16,"line":16},{"index_id":99,"token_group":83,"text":"Message","start_char":23,"line":16},{"index_id":100,"token_group":83,"text":".","start_char":30,"line":16},{"index_id":101,"token_group":84,"text":"build","start_char":31,"line":16},{"index_id":102,"token_group":85,"text":"Event","start_char":36,"line":16},{"index_id":103,"token_group":85,"text":".","start_char":41,"line":16},{"index_id":104,"token_group":86,"text":"generated","start_char":42,"line":16},{"index_id":105,"token_group":87,"text":"File","start_char":51,"line":16},{"index_id":106,"token_group":87,"text":".","start_char":55,"line":16},{"index_id":107,"token_group":88,"text":"new","start_char":56,"line":16},{"index_id":108,"token_group":89,"text":"Builder","start_char":59,"line":16},{"index_id":109,"token_group":89,"text":"(","start_char":66,"line":16},{"index_id":110,"token_group":90,"text":")","start_char":67,"line":16},{"index_id":111,"token_group":91,"text":";","start_char":68,"line":16},{"index_id":112,"token_group":92,"text":"final","start_char":12,"line":17},{"index_id":113,"token_group":93,"text":"builder","start_char":18,"line":17},{"index_id":114,"token_group":94,"text":"Message","start_char":25,"line":17},{"index_id":115,"token_group":94,"text":".","start_char":32,"line":17},{"index_id":116,"token_group":95,"text":"build","start_char":33,"line":17},{"index_id":117,"token_group":96,"text":"Event","start_char":38,"line":17},{"index_id":118,"token_group":96,"text":".","start_char":43,"line":17},{"index_id":119,"token_group":97,"text":"generated","start_char":44,"line":17},{"index_id":120,"token_group":98,"text":"File","start_char":53,"line":17},{"index_id":121,"token_group":98,"text":"generated","start_char":58,"line":17},{"index_id":122,"token_group":99,"text":"File","start_char":67,"line":17},{"index_id":123,"token_group":99,"text":"=","start_char":72,"line":17},{"index_id":124,"token_group":100,"text":"file","start_char":16,"line":18},{"index_id":125,"token_group":101,"text":"Builder","start_char":20,"line":18},{"index_id":126,"token_group":101,"text":".","start_char":27,"line":18},{"index_id":127,"token_group":102,"text":"set","start_char":28,"line":18},{"index_id":128,"token_group":103,"text":"Output","start_char":31,"line":18},{"index_id":129,"token_group":103,"text":"Root","start_char":37,"line":18},{"index_id":130,"token_group":103,"text":"(","start_char":41,"line":18},{"index_id":131,"token_group":104,"text":"pair","start_char":42,"line":18},{"index_id":132,"token_group":105,"text":".","start_char":46,"line":18},{"index_id":133,"token_group":106,"text":"first","start_char":47,"line":18},{"index_id":134,"token_group":107,"text":")","start_char":52,"line":18},{"index_id":135,"token_group":108,"text":".","start_char":53,"line":18},{"index_id":136,"token_group":109,"text":"set","start_char":54,"line":18},{"index_id":137,"token_group":110,"text":"Relative","start_char":57,"line":18},{"index_id":138,"token_group":110,"text":"Path","start_char":65,"line":18},{"index_id":139,"token_group":110,"text":"(","start_char":69,"line":18},{"index_id":140,"token_group":111,"text":"pair","start_char":70,"line":18},{"index_id":141,"token_group":112,"text":".","start_char":74,"line":18},{"index_id":142,"token_group":113,"text":"second","start_char":75,"line":18},{"index_id":143,"token_group":114,"text":")","start_char":81,"line":18},{"index_id":144,"token_group":115,"text":".","start_char":82,"line":18},{"index_id":145,"token_group":116,"text":"build","start_char":83,"line":18},{"index_id":146,"token_group":117,"text":"(","start_char":88,"line":18},{"index_id":147,"token_group":118,"text":")","start_char":89,"line":18},{"index_id":148,"token_group":119,"text":";","start_char":90,"line":18},{"index_id":149,"token_group":120,"text":"builder","start_char":12,"line":19},{"index_id":150,"token_group":121,"text":".","start_char":19,"line":19},{"index_id":151,"token_group":122,"text":"add","start_char":20,"line":19},{"index_id":152,"token_group":123,"text":"Generated","start_char":23,"line":19},{"index_id":153,"token_group":123,"text":"Files","start_char":32,"line":19},{"index_id":154,"token_group":123,"text":"(","start_char":37,"line":19},{"index_id":155,"token_group":124,"text":"generated","start_char":38,"line":19},{"index_id":156,"token_group":125,"text":"File","start_char":47,"line":19},{"index_id":157,"token_group":125,"text":")","start_char":51,"line":19},{"index_id":158,"token_group":126,"text":";","start_char":52,"line":19},{"index_id":159,"token_group":127,"text":"}","start_char":8,"line":20},{"index_id":160,"token_group":128,"text":"}","start_char":4,"line":21},{"index_id":161,"token_group":129,"text":"if","start_char":4,"line":22},{"index_id":162,"token_group":130,"text":"(","start_char":7,"line":22},{"index_id":163,"token_group":131,"text":"builder","start_char":8,"line":22},{"index_id":164,"token_group":132,"text":"Message","start_char":15,"line":22},{"index_id":165,"token_group":132,"text":"!=","start_char":23,"line":22},{"index_id":166,"token_group":133,"text":"null","start_char":26,"line":22},{"index_id":167,"token_group":134,"text":")","start_char":30,"line":22},{"index_id":168,"token_group":135,"text":"{","start_char":4,"line":23},{"index_id":169,"token_group":136,"text":"builder","start_char":8,"line":24},{"index_id":170,"token_group":137,"text":".","start_char":15,"line":24},{"index_id":171,"token_group":138,"text":"set","start_char":16,"line":24},{"index_id":172,"token_group":139,"text":"Custom","start_char":19,"line":24},{"index_id":173,"token_group":139,"text":"Builder","start_char":25,"line":24},{"index_id":174,"token_group":139,"text":"Message","start_char":32,"line":24},{"index_id":175,"token_group":139,"text":"(","start_char":39,"line":24},{"index_id":176,"token_group":140,"text":"builder","start_char":40,"line":24},{"index_id":177,"token_group":141,"text":"Message","start_char":47,"line":24},{"index_id":178,"token_group":141,"text":")","start_char":54,"line":24},{"index_id":179,"token_group":142,"text":";","start_char":55,"line":24},{"index_id":180,"token_group":143,"text":"}","start_char":4,"line":25},{"index_id":181,"token_group":144,"text":"return","start_char":4,"line":26},{"index_id":182,"token_group":145,"text":"builder","start_char":11,"line":26},{"index_id":183,"token_group":146,"text":"Message","start_char":18,"line":26},{"index_id":184,"token_group":146,"text":".","start_char":25,"line":26},{"index_id":185,"token_group":147,"text":"new","start_char":26,"line":26},{"index_id":186,"token_group":148,"text":"Builder","start_char":29,"line":26},{"index_id":187,"token_group":148,"text":"(","start_char":36,"line":26},{"index_id":188,"token_group":149,"text":")","start_char":37,"line":26},{"index_id":189,"token_group":150,"text":".","start_char":38,"line":26},{"index_id":190,"token_group":151,"text":"set","start_char":39,"line":26},{"index_id":191,"token_group":152,"text":"Type","start_char":42,"line":26},{"index_id":192,"token_group":152,"text":"(","start_char":46,"line":26},{"index_id":193,"token_group":153,"text":"builder","start_char":15,"line":27},{"index_id":194,"token_group":154,"text":"Message","start_char":22,"line":27},{"index_id":195,"token_group":154,"text":".","start_char":29,"line":27},{"index_id":196,"token_group":155,"text":"type","start_char":30,"line":27},{"index_id":197,"token_group":156,"text":".","start_char":34,"line":27},{"index_id":198,"token_group":157,"text":"build","start_char":35,"line":27},{"index_id":199,"token_group":158,"text":"Event","start_char":41,"line":27},{"index_id":200,"token_group":158,"text":")","start_char":46,"line":27},{"index_id":201,"token_group":159,"text":".","start_char":47,"line":27},{"index_id":202,"token_group":160,"text":"set","start_char":48,"line":27},{"index_id":203,"token_group":161,"text":"Build","start_char":51,"line":27},{"index_id":204,"token_group":161,"text":"Event","start_char":56,"line":27},{"index_id":205,"token_group":161,"text":"(","start_char":61,"line":27},{"index_id":206,"token_group":162,"text":"builder","start_char":62,"line":27},{"index_id":207,"token_group":163,"text":".","start_char":69,"line":27},{"index_id":208,"token_group":164,"text":"build","start_char":70,"line":27},{"index_id":209,"token_group":165,"text":"(","start_char":75,"line":27},{"index_id":210,"token_group":166,"text":")","start_char":76,"line":27},{"index_id":211,"token_group":167,"text":")","start_char":77,"line":27},{"index_id":212,"token_group":168,"text":".","start_char":78,"line":27},{"index_id":213,"token_group":169,"text":"build","start_char":79,"line":27},{"index_id":214,"token_group":170,"text":"(","start_char":84,"line":27},{"index_id":215,"token_group":171,"text":")","start_char":85,"line":27},{"index_id":216,"token_group":172,"text":";","start_char":86,"line":27},{"index_id":217,"token_group":173,"text":"}","start_char":0,"line":28}],"tokens_list":["{","final","builder","Message",".","build","Event",".","builder","builder","=","builder","Message",".","build","Event",".","new","Builder","(",")",".","set","Event","Type","(","type",")",";","if","(","description","!=","null",")","{","builder",".","set","Description","(","description",")",";","}","if","(","status","!=","null",")","{","builder",".","set","Completion","Status","(","status",")",";","}","if","(","generated","Paths","!=","null",")","{","for","(","pair","<","string",",","string",">","pair",":","generated","Paths",")","{","final","builder","Message",".","build","Event",".","generated","File",".","builder","file","Builder","=","builder","Message",".","build","Event",".","generated","File",".","new","Builder","(",")",";","final","builder","Message",".","build","Event",".","generated","File","generated","File","=","file","Builder",".","set","Output","Root","(","pair",".","first",")",".","set","Relative","Path","(","pair",".","second",")",".","build","(",")",";","builder",".","add","Generated","Files","(","generated","File",")",";","}","}","if","(","builder","Message","!=","null",")","{","builder",".","set","Custom","Builder","Message","(","builder","Message",")",";","}","return","builder","Message",".","new","Builder","(",")",".","set","Type","(","builder","Message",".","type",".","build","Event",")",".","set","Build","Event","(","builder",".","build","(",")",")",".","build","(",")",";","}"],"uuid":"4a5bece51b1c33e71b93b105df849424"},{"cap_original_tokens":["<SENTENCE_START>","{","try","{","this",".","<id>","root","<\/id>","=","<id>","load","Resource","<\/id>","(","<id>","xml","Input","<\/id>",")",";","}","catch","(","<id>","parser","Configuration","Exception","<\/id>","<id>","e","<\/id>",")","{","throw","new","<id>","runtime","Exception","<\/id>","(","<id>","e","<\/id>",")",";","}","catch","(","<id>","sax","Exception","<\/id>","<id>","e","<\/id>",")","{","throw","new","<id>","runtime","Exception","<\/id>","(","<id>","e","<\/id>",")",";","}","catch","(","<id>","io","Exception","<\/id>","<id>","e","<\/id>",")","{","throw","new","<id>","runtime","Exception","<\/id>","(","<id>","e","<\/id>",")",";","}","}","<SENTENCE_END\/>"],"file_name":"QueueConfigurationParser.java","formatted_lines":["{"," try"," {"," this.root = loadResource(xmlInput);"," }"," catch (ParserConfigurationException e)"," {"," throw new RuntimeException(e);"," }"," catch (SAXException e)"," {"," throw new RuntimeException(e);"," }"," catch (IOException e)"," {"," throw new RuntimeException(e);"," }","}"],"function_name":"loadFrom","function_name_tokens":["load","from"],"id_body_hash":"500e916bf113a29d0f59b591b9db2e38","id_same_identifier_list":[0,1,2,3,4,5,6,7,8,8,9,10,10,11,12,13,14,15,16,16,16,17,18,19,20,21,22,22,23,24,25,26,27,28,29,30,30,31,32,33,34,35,36,36,37,38,39,40,41,42,43,44,44,45,46,47,48,49,50,50,51,52,53,54,55,56,57],"option_correct":"loadFrom","options":["loadFrom","setForce","loadTokensFromBucket","checkExpected","loadTokenFromBucket","getFilesCached","load"],"options_nlp":["load from","set force","load tokens from bucket","check expected","load token from bucket","get files cached","load"],"options_random":["setForce","checkExpected","getFilesCached"],"options_tfidf":["load","loadTokensFromBucket","loadTokenFromBucket"],"project_name":"hadoop-common","source_code_string":"private void loadFrom(InputStream xmlInput) {\n try {\n this.root = loadResource(xmlInput);\n } catch (ParserConfigurationException e) {\n throw new RuntimeException(e);\n } catch (SAXException e) {\n throw new RuntimeException(e);\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"try","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"{","start_char":4,"line":2},{"index_id":3,"token_group":3,"text":"this","start_char":8,"line":3},{"index_id":4,"token_group":4,"text":".","start_char":12,"line":3},{"index_id":5,"token_group":5,"text":"root","start_char":13,"line":3},{"index_id":6,"token_group":6,"text":"=","start_char":18,"line":3},{"index_id":7,"token_group":7,"text":"load","start_char":20,"line":3},{"index_id":8,"token_group":8,"text":"Resource","start_char":24,"line":3},{"index_id":9,"token_group":8,"text":"(","start_char":32,"line":3},{"index_id":10,"token_group":9,"text":"xml","start_char":33,"line":3},{"index_id":11,"token_group":10,"text":"Input","start_char":36,"line":3},{"index_id":12,"token_group":10,"text":")","start_char":41,"line":3},{"index_id":13,"token_group":11,"text":";","start_char":42,"line":3},{"index_id":14,"token_group":12,"text":"}","start_char":4,"line":4},{"index_id":15,"token_group":13,"text":"catch","start_char":4,"line":5},{"index_id":16,"token_group":14,"text":"(","start_char":10,"line":5},{"index_id":17,"token_group":15,"text":"parser","start_char":11,"line":5},{"index_id":18,"token_group":16,"text":"Configuration","start_char":17,"line":5},{"index_id":19,"token_group":16,"text":"Exception","start_char":30,"line":5},{"index_id":20,"token_group":16,"text":"e","start_char":40,"line":5},{"index_id":21,"token_group":17,"text":")","start_char":41,"line":5},{"index_id":22,"token_group":18,"text":"{","start_char":4,"line":6},{"index_id":23,"token_group":19,"text":"throw","start_char":8,"line":7},{"index_id":24,"token_group":20,"text":"new","start_char":14,"line":7},{"index_id":25,"token_group":21,"text":"runtime","start_char":18,"line":7},{"index_id":26,"token_group":22,"text":"Exception","start_char":25,"line":7},{"index_id":27,"token_group":22,"text":"(","start_char":34,"line":7},{"index_id":28,"token_group":23,"text":"e","start_char":35,"line":7},{"index_id":29,"token_group":24,"text":")","start_char":36,"line":7},{"index_id":30,"token_group":25,"text":";","start_char":37,"line":7},{"index_id":31,"token_group":26,"text":"}","start_char":4,"line":8},{"index_id":32,"token_group":27,"text":"catch","start_char":4,"line":9},{"index_id":33,"token_group":28,"text":"(","start_char":10,"line":9},{"index_id":34,"token_group":29,"text":"sax","start_char":11,"line":9},{"index_id":35,"token_group":30,"text":"Exception","start_char":14,"line":9},{"index_id":36,"token_group":30,"text":"e","start_char":24,"line":9},{"index_id":37,"token_group":31,"text":")","start_char":25,"line":9},{"index_id":38,"token_group":32,"text":"{","start_char":4,"line":10},{"index_id":39,"token_group":33,"text":"throw","start_char":8,"line":11},{"index_id":40,"token_group":34,"text":"new","start_char":14,"line":11},{"index_id":41,"token_group":35,"text":"runtime","start_char":18,"line":11},{"index_id":42,"token_group":36,"text":"Exception","start_char":25,"line":11},{"index_id":43,"token_group":36,"text":"(","start_char":34,"line":11},{"index_id":44,"token_group":37,"text":"e","start_char":35,"line":11},{"index_id":45,"token_group":38,"text":")","start_char":36,"line":11},{"index_id":46,"token_group":39,"text":";","start_char":37,"line":11},{"index_id":47,"token_group":40,"text":"}","start_char":4,"line":12},{"index_id":48,"token_group":41,"text":"catch","start_char":4,"line":13},{"index_id":49,"token_group":42,"text":"(","start_char":10,"line":13},{"index_id":50,"token_group":43,"text":"io","start_char":11,"line":13},{"index_id":51,"token_group":44,"text":"Exception","start_char":13,"line":13},{"index_id":52,"token_group":44,"text":"e","start_char":23,"line":13},{"index_id":53,"token_group":45,"text":")","start_char":24,"line":13},{"index_id":54,"token_group":46,"text":"{","start_char":4,"line":14},{"index_id":55,"token_group":47,"text":"throw","start_char":8,"line":15},{"index_id":56,"token_group":48,"text":"new","start_char":14,"line":15},{"index_id":57,"token_group":49,"text":"runtime","start_char":18,"line":15},{"index_id":58,"token_group":50,"text":"Exception","start_char":25,"line":15},{"index_id":59,"token_group":50,"text":"(","start_char":34,"line":15},{"index_id":60,"token_group":51,"text":"e","start_char":35,"line":15},{"index_id":61,"token_group":52,"text":")","start_char":36,"line":15},{"index_id":62,"token_group":53,"text":";","start_char":37,"line":15},{"index_id":63,"token_group":54,"text":"}","start_char":4,"line":16},{"index_id":64,"token_group":55,"text":"}","start_char":0,"line":17}],"tokens_list":["{","try","{","this",".","root","=","load","Resource","(","xml","Input",")",";","}","catch","(","parser","Configuration","Exception","e",")","{","throw","new","runtime","Exception","(","e",")",";","}","catch","(","sax","Exception","e",")","{","throw","new","runtime","Exception","(","e",")",";","}","catch","(","io","Exception","e",")","{","throw","new","runtime","Exception","(","e",")",";","}","}"],"uuid":"5f6a96e532dc4ae9c34e3ba6ae8e283d"},{"cap_original_tokens":["<SENTENCE_START>","{","final","<id>","default","Noticeable","Future","<\/id>","<","<id>","map","<\/id>","<","<id>","path","<\/id>",",","<id>","path","<\/id>",">>","<id>","default","Noticeable","Future","<\/id>","=","new","<id>","default","Noticeable","Future","<\/id>","<",">","(",")",";","<id>","netty","Fabric","Worker","Stub","<\/id>","<","<id>","string","<\/id>",">","<id>","netty","Fabric","Worker","Stub","<\/id>","=","new","<id>","netty","Fabric","Worker","Stub","<\/id>","<","<id>","string","<\/id>",">","(","0",",","<id>","netty","Test","Util","<\/id>",".","<id>","create","Empty","Embedded","Channel","<\/id>","(",")",",","new","<id>","mock","Repository","<\/id>","<","<id>","channel","<\/id>",">","(",")","{","@","<id>","override","<\/id>","Public","<id>","noticeable","Future","<\/id>","<","<id>","map","<\/id>","<","<id>","path","<\/id>",",","<id>","path","<\/id>",">>","<id>","get","Files","<\/id>","(","<id>","channel","<\/id>","<id>","channel","<\/id>",",","<id>","map","<\/id>","<","<id>","path","<\/id>",",","<id>","path","<\/id>",">","<id>","path","Map","<\/id>",",","boolean","<id>","delete","After","Fetch","<\/id>",")","{","return","<id>","default","Noticeable","Future","<\/id>",";","}","}",",","<id>","collections","<\/id>",".","<","<id>","path","<\/id>",",","<id>","path","<\/id>",">","<id>","empty","Map","<\/id>","(",")",",","0",")",";","<id>","netty","Fabric","Worker","Stub","<\/id>",".","<id>","set","Result","<\/id>","(","\"Test result\"",")",";","<id>","noticeable","Future","<\/id>","<","<id>","string","<\/id>",">","<id>","noticeable","Future","<\/id>","=","<id>","netty","Fabric","Worker","Stub","<\/id>",".","<id>","get","Process","Noticeable","Future","<\/id>","(",")",";","<id>","assert","<\/id>",".","<id>","assert","False","<\/id>","(","<id>","noticeable","Future","<\/id>",".","<id>","is","Done","<\/id>","(",")",")",";","<id>","throwable","<\/id>","<id>","throwable","<\/id>","=","new","<id>","throwable","<\/id>","(",")",";","<id>","default","Noticeable","Future","<\/id>",".","<id>","set","Exception","<\/id>","(","<id>","throwable","<\/id>",")",";","try","{","<id>","default","Noticeable","Future","<\/id>",".","<id>","get","<\/id>","(",")",";","<id>","assert","<\/id>",".","<id>","fail","<\/id>","(",")",";","}","catch","(","<id>","execution","Exception","<\/id>","<id>","ee","<\/id>",")","{","<id>","assert","<\/id>",".","<id>","assert","Same","<\/id>","(","<id>","throwable","<\/id>",",","<id>","ee","<\/id>",".","<id>","get","Cause","<\/id>","(",")",")",";","}","}","<SENTENCE_END\/>"],"file_name":"NettyFabricWorkerStubTest.java","formatted_lines":["{"," final DefaultNoticeableFuture<Map<Path, Path>> defaultNoticeableFuture ="," new DefaultNoticeableFuture<>();",""," NettyFabricWorkerStub<String> nettyFabricWorkerStub ="," new NettyFabricWorkerStub<String>("," 0, NettyTestUtil.createEmptyEmbeddedChannel(),"," new MockRepository<Channel>()"," {",""," @Override"," public NoticeableFuture<Map<Path, Path>> getFiles("," Channel channel, Map<Path, Path> pathMap,"," boolean deleteAfterFetch)"," {",""," return defaultNoticeableFuture;"," }",""," },"," Collections.<Path, Path>emptyMap(), 0);",""," nettyFabricWorkerStub.setResult(\"Test result\");",""," NoticeableFuture<String> noticeableFuture ="," nettyFabricWorkerStub.getProcessNoticeableFuture();",""," Assert.assertFalse(noticeableFuture.isDone());",""," Throwable throwable = new Throwable();",""," defaultNoticeableFuture.setException(throwable);",""," try"," {"," defaultNoticeableFuture.get();",""," Assert.fail();"," }"," catch (ExecutionException ee)"," {"," Assert.assertSame(throwable, ee.getCause());"," }","}"],"function_name":"testSetResultWithException","function_name_tokens":["test","set","result","with","exception"],"id_body_hash":"197e6656a4b7cecfd5251a719ed87ec2","id_same_identifier_list":[0,1,2,3,3,3,4,5,6,7,8,9,10,11,11,11,12,13,14,14,14,15,16,17,18,19,20,20,20,20,21,22,23,24,24,24,24,25,26,27,27,27,27,28,29,30,31,32,33,34,34,34,35,36,36,36,36,37,38,39,40,41,41,42,43,44,45,46,47,48,49,50,51,51,52,53,54,55,56,57,58,59,59,60,61,62,63,64,65,66,67,68,69,70,70,71,72,73,73,73,74,75,76,77,77,77,78,79,80,81,82,83,84,85,86,87,88,89,89,90,91,92,93,94,95,96,96,96,96,97,98,98,99,100,101,102,103,103,104,105,106,107,107,108,109,109,109,109,110,111,111,111,111,112,113,114,115,116,117,117,118,119,119,120,121,121,122,123,124,125,126,127,128,129,130,131,132,133,134,134,134,135,136,136,137,138,139,140,141,142,143,143,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,158,159,160,161,162,163,164,164,165,166,167,168,169,170,170,171,172,173,174,175,176,177],"option_correct":"testSetResultWithException","options":["testGetDDMFormFieldsJSONArray","deleteLayout","createEntryLink","testSetResult","setException","testSetResultWithException","testSetException"],"options_nlp":["test get ddm form fields json array","delete layout","create entry link","test set result","set exception","test set result with exception","test set exception"],"options_random":["testGetDDMFormFieldsJSONArray","deleteLayout","createEntryLink"],"options_tfidf":["testSetException","testSetResult","setException"],"project_name":"liferay-portal","source_code_string":"@Test\n\tpublic void testSetResultWithException() throws InterruptedException {\n\t\tfinal DefaultNoticeableFuture<Map<Path, Path>> defaultNoticeableFuture =\n\t\t\tnew DefaultNoticeableFuture<>();\n\n\t\tNettyFabricWorkerStub<String> nettyFabricWorkerStub =\n\t\t\tnew NettyFabricWorkerStub<String>(\n\t\t\t\t0, NettyTestUtil.createEmptyEmbeddedChannel(),\n\t\t\t\tnew MockRepository<Channel>() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic NoticeableFuture<Map<Path, Path>> getFiles(\n\t\t\t\t\t\tChannel channel, Map<Path, Path> pathMap,\n\t\t\t\t\t\tboolean deleteAfterFetch) {\n\n\t\t\t\t\t\treturn defaultNoticeableFuture;\n\t\t\t\t\t}\n\n\t\t\t\t},\n\t\t\t\tCollections.<Path, Path>emptyMap(), 0);\n\n\t\tnettyFabricWorkerStub.setResult(\"Test result\");\n\n\t\tNoticeableFuture<String> noticeableFuture =\n\t\t\tnettyFabricWorkerStub.getProcessNoticeableFuture();\n\n\t\tAssert.assertFalse(noticeableFuture.isDone());\n\n\t\tThrowable throwable = new Throwable();\n\n\t\tdefaultNoticeableFuture.setException(throwable);\n\n\t\ttry {\n\t\t\tdefaultNoticeableFuture.get();\n\n\t\t\tAssert.fail();\n\t\t}\n\t\tcatch (ExecutionException ee) {\n\t\t\tAssert.assertSame(throwable, ee.getCause());\n\t\t}\n\t}","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"final","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"default","start_char":10,"line":1},{"index_id":3,"token_group":3,"text":"Noticeable","start_char":17,"line":1},{"index_id":4,"token_group":3,"text":"Future","start_char":27,"line":1},{"index_id":5,"token_group":3,"text":"<","start_char":33,"line":1},{"index_id":6,"token_group":4,"text":"map","start_char":34,"line":1},{"index_id":7,"token_group":5,"text":"<","start_char":37,"line":1},{"index_id":8,"token_group":6,"text":"path","start_char":38,"line":1},{"index_id":9,"token_group":7,"text":",","start_char":42,"line":1},{"index_id":10,"token_group":8,"text":"path","start_char":44,"line":1},{"index_id":11,"token_group":9,"text":">>","start_char":48,"line":1},{"index_id":12,"token_group":10,"text":"default","start_char":51,"line":1},{"index_id":13,"token_group":11,"text":"Noticeable","start_char":58,"line":1},{"index_id":14,"token_group":11,"text":"Future","start_char":68,"line":1},{"index_id":15,"token_group":11,"text":"=","start_char":75,"line":1},{"index_id":16,"token_group":12,"text":"new","start_char":12,"line":2},{"index_id":17,"token_group":13,"text":"default","start_char":16,"line":2},{"index_id":18,"token_group":14,"text":"Noticeable","start_char":23,"line":2},{"index_id":19,"token_group":14,"text":"Future","start_char":33,"line":2},{"index_id":20,"token_group":14,"text":"<","start_char":39,"line":2},{"index_id":21,"token_group":15,"text":">","start_char":40,"line":2},{"index_id":22,"token_group":16,"text":"(","start_char":41,"line":2},{"index_id":23,"token_group":17,"text":")","start_char":42,"line":2},{"index_id":24,"token_group":18,"text":";","start_char":43,"line":2},{"index_id":25,"token_group":19,"text":"netty","start_char":4,"line":4},{"index_id":26,"token_group":20,"text":"Fabric","start_char":9,"line":4},{"index_id":27,"token_group":20,"text":"Worker","start_char":15,"line":4},{"index_id":28,"token_group":20,"text":"Stub","start_char":21,"line":4},{"index_id":29,"token_group":20,"text":"<","start_char":25,"line":4},{"index_id":30,"token_group":21,"text":"string","start_char":26,"line":4},{"index_id":31,"token_group":22,"text":">","start_char":32,"line":4},{"index_id":32,"token_group":23,"text":"netty","start_char":34,"line":4},{"index_id":33,"token_group":24,"text":"Fabric","start_char":39,"line":4},{"index_id":34,"token_group":24,"text":"Worker","start_char":45,"line":4},{"index_id":35,"token_group":24,"text":"Stub","start_char":51,"line":4},{"index_id":36,"token_group":24,"text":"=","start_char":56,"line":4},{"index_id":37,"token_group":25,"text":"new","start_char":4,"line":5},{"index_id":38,"token_group":26,"text":"netty","start_char":8,"line":5},{"index_id":39,"token_group":27,"text":"Fabric","start_char":13,"line":5},{"index_id":40,"token_group":27,"text":"Worker","start_char":19,"line":5},{"index_id":41,"token_group":27,"text":"Stub","start_char":25,"line":5},{"index_id":42,"token_group":27,"text":"<","start_char":29,"line":5},{"index_id":43,"token_group":28,"text":"string","start_char":30,"line":5},{"index_id":44,"token_group":29,"text":">","start_char":36,"line":5},{"index_id":45,"token_group":30,"text":"(","start_char":37,"line":5},{"index_id":46,"token_group":31,"text":"0","start_char":8,"line":6},{"index_id":47,"token_group":32,"text":",","start_char":9,"line":6},{"index_id":48,"token_group":33,"text":"netty","start_char":11,"line":6},{"index_id":49,"token_group":34,"text":"Test","start_char":16,"line":6},{"index_id":50,"token_group":34,"text":"Util","start_char":20,"line":6},{"index_id":51,"token_group":34,"text":".","start_char":24,"line":6},{"index_id":52,"token_group":35,"text":"create","start_char":25,"line":6},{"index_id":53,"token_group":36,"text":"Empty","start_char":31,"line":6},{"index_id":54,"token_group":36,"text":"Embedded","start_char":36,"line":6},{"index_id":55,"token_group":36,"text":"Channel","start_char":44,"line":6},{"index_id":56,"token_group":36,"text":"(","start_char":51,"line":6},{"index_id":57,"token_group":37,"text":")","start_char":52,"line":6},{"index_id":58,"token_group":38,"text":",","start_char":53,"line":6},{"index_id":59,"token_group":39,"text":"new","start_char":8,"line":7},{"index_id":60,"token_group":40,"text":"mock","start_char":12,"line":7},{"index_id":61,"token_group":41,"text":"Repository","start_char":16,"line":7},{"index_id":62,"token_group":41,"text":"<","start_char":26,"line":7},{"index_id":63,"token_group":42,"text":"channel","start_char":27,"line":7},{"index_id":64,"token_group":43,"text":">","start_char":34,"line":7},{"index_id":65,"token_group":44,"text":"(","start_char":35,"line":7},{"index_id":66,"token_group":45,"text":")","start_char":36,"line":7},{"index_id":67,"token_group":46,"text":"{","start_char":4,"line":8},{"index_id":68,"token_group":47,"text":"@","start_char":8,"line":10},{"index_id":69,"token_group":48,"text":"override","start_char":9,"line":10},{"index_id":70,"token_group":49,"text":"Public","start_char":8,"line":11},{"index_id":71,"token_group":50,"text":"noticeable","start_char":15,"line":11},{"index_id":72,"token_group":51,"text":"Future","start_char":25,"line":11},{"index_id":73,"token_group":51,"text":"<","start_char":31,"line":11},{"index_id":74,"token_group":52,"text":"map","start_char":32,"line":11},{"index_id":75,"token_group":53,"text":"<","start_char":35,"line":11},{"index_id":76,"token_group":54,"text":"path","start_char":36,"line":11},{"index_id":77,"token_group":55,"text":",","start_char":40,"line":11},{"index_id":78,"token_group":56,"text":"path","start_char":42,"line":11},{"index_id":79,"token_group":57,"text":">>","start_char":46,"line":11},{"index_id":80,"token_group":58,"text":"get","start_char":49,"line":11},{"index_id":81,"token_group":59,"text":"Files","start_char":52,"line":11},{"index_id":82,"token_group":59,"text":"(","start_char":57,"line":11},{"index_id":83,"token_group":60,"text":"channel","start_char":16,"line":12},{"index_id":84,"token_group":61,"text":"channel","start_char":24,"line":12},{"index_id":85,"token_group":62,"text":",","start_char":31,"line":12},{"index_id":86,"token_group":63,"text":"map","start_char":33,"line":12},{"index_id":87,"token_group":64,"text":"<","start_char":36,"line":12},{"index_id":88,"token_group":65,"text":"path","start_char":37,"line":12},{"index_id":89,"token_group":66,"text":",","start_char":41,"line":12},{"index_id":90,"token_group":67,"text":"path","start_char":43,"line":12},{"index_id":91,"token_group":68,"text":">","start_char":47,"line":12},{"index_id":92,"token_group":69,"text":"path","start_char":49,"line":12},{"index_id":93,"token_group":70,"text":"Map","start_char":53,"line":12},{"index_id":94,"token_group":70,"text":",","start_char":56,"line":12},{"index_id":95,"token_group":71,"text":"boolean","start_char":16,"line":13},{"index_id":96,"token_group":72,"text":"delete","start_char":24,"line":13},{"index_id":97,"token_group":73,"text":"After","start_char":30,"line":13},{"index_id":98,"token_group":73,"text":"Fetch","start_char":35,"line":13},{"index_id":99,"token_group":73,"text":")","start_char":40,"line":13},{"index_id":100,"token_group":74,"text":"{","start_char":8,"line":14},{"index_id":101,"token_group":75,"text":"return","start_char":12,"line":16},{"index_id":102,"token_group":76,"text":"default","start_char":19,"line":16},{"index_id":103,"token_group":77,"text":"Noticeable","start_char":26,"line":16},{"index_id":104,"token_group":77,"text":"Future","start_char":36,"line":16},{"index_id":105,"token_group":77,"text":";","start_char":42,"line":16},{"index_id":106,"token_group":78,"text":"}","start_char":8,"line":17},{"index_id":107,"token_group":79,"text":"}","start_char":4,"line":19},{"index_id":108,"token_group":80,"text":",","start_char":5,"line":19},{"index_id":109,"token_group":81,"text":"collections","start_char":4,"line":20},{"index_id":110,"token_group":82,"text":".","start_char":15,"line":20},{"index_id":111,"token_group":83,"text":"<","start_char":16,"line":20},{"index_id":112,"token_group":84,"text":"path","start_char":17,"line":20},{"index_id":113,"token_group":85,"text":",","start_char":21,"line":20},{"index_id":114,"token_group":86,"text":"path","start_char":23,"line":20},{"index_id":115,"token_group":87,"text":">","start_char":27,"line":20},{"index_id":116,"token_group":88,"text":"empty","start_char":28,"line":20},{"index_id":117,"token_group":89,"text":"Map","start_char":33,"line":20},{"index_id":118,"token_group":89,"text":"(","start_char":36,"line":20},{"index_id":119,"token_group":90,"text":")","start_char":37,"line":20},{"index_id":120,"token_group":91,"text":",","start_char":38,"line":20},{"index_id":121,"token_group":92,"text":"0","start_char":40,"line":20},{"index_id":122,"token_group":93,"text":")","start_char":41,"line":20},{"index_id":123,"token_group":94,"text":";","start_char":42,"line":20},{"index_id":124,"token_group":95,"text":"netty","start_char":4,"line":22},{"index_id":125,"token_group":96,"text":"Fabric","start_char":9,"line":22},{"index_id":126,"token_group":96,"text":"Worker","start_char":15,"line":22},{"index_id":127,"token_group":96,"text":"Stub","start_char":21,"line":22},{"index_id":128,"token_group":96,"text":".","start_char":25,"line":22},{"index_id":129,"token_group":97,"text":"set","start_char":26,"line":22},{"index_id":130,"token_group":98,"text":"Result","start_char":29,"line":22},{"index_id":131,"token_group":98,"text":"(","start_char":35,"line":22},{"index_id":132,"token_group":99,"text":"\"Test result\"","start_char":36,"line":22},{"index_id":133,"token_group":100,"text":")","start_char":49,"line":22},{"index_id":134,"token_group":101,"text":";","start_char":50,"line":22},{"index_id":135,"token_group":102,"text":"noticeable","start_char":4,"line":24},{"index_id":136,"token_group":103,"text":"Future","start_char":14,"line":24},{"index_id":137,"token_group":103,"text":"<","start_char":20,"line":24},{"index_id":138,"token_group":104,"text":"string","start_char":21,"line":24},{"index_id":139,"token_group":105,"text":">","start_char":27,"line":24},{"index_id":140,"token_group":106,"text":"noticeable","start_char":29,"line":24},{"index_id":141,"token_group":107,"text":"Future","start_char":39,"line":24},{"index_id":142,"token_group":107,"text":"=","start_char":46,"line":24},{"index_id":143,"token_group":108,"text":"netty","start_char":8,"line":25},{"index_id":144,"token_group":109,"text":"Fabric","start_char":13,"line":25},{"index_id":145,"token_group":109,"text":"Worker","start_char":19,"line":25},{"index_id":146,"token_group":109,"text":"Stub","start_char":25,"line":25},{"index_id":147,"token_group":109,"text":".","start_char":29,"line":25},{"index_id":148,"token_group":110,"text":"get","start_char":30,"line":25},{"index_id":149,"token_group":111,"text":"Process","start_char":33,"line":25},{"index_id":150,"token_group":111,"text":"Noticeable","start_char":40,"line":25},{"index_id":151,"token_group":111,"text":"Future","start_char":50,"line":25},{"index_id":152,"token_group":111,"text":"(","start_char":56,"line":25},{"index_id":153,"token_group":112,"text":")","start_char":57,"line":25},{"index_id":154,"token_group":113,"text":";","start_char":58,"line":25},{"index_id":155,"token_group":114,"text":"assert","start_char":4,"line":27},{"index_id":156,"token_group":115,"text":".","start_char":10,"line":27},{"index_id":157,"token_group":116,"text":"assert","start_char":11,"line":27},{"index_id":158,"token_group":117,"text":"False","start_char":17,"line":27},{"index_id":159,"token_group":117,"text":"(","start_char":22,"line":27},{"index_id":160,"token_group":118,"text":"noticeable","start_char":23,"line":27},{"index_id":161,"token_group":119,"text":"Future","start_char":33,"line":27},{"index_id":162,"token_group":119,"text":".","start_char":39,"line":27},{"index_id":163,"token_group":120,"text":"is","start_char":40,"line":27},{"index_id":164,"token_group":121,"text":"Done","start_char":42,"line":27},{"index_id":165,"token_group":121,"text":"(","start_char":46,"line":27},{"index_id":166,"token_group":122,"text":")","start_char":47,"line":27},{"index_id":167,"token_group":123,"text":")","start_char":48,"line":27},{"index_id":168,"token_group":124,"text":";","start_char":49,"line":27},{"index_id":169,"token_group":125,"text":"throwable","start_char":4,"line":29},{"index_id":170,"token_group":126,"text":"throwable","start_char":14,"line":29},{"index_id":171,"token_group":127,"text":"=","start_char":24,"line":29},{"index_id":172,"token_group":128,"text":"new","start_char":26,"line":29},{"index_id":173,"token_group":129,"text":"throwable","start_char":30,"line":29},{"index_id":174,"token_group":130,"text":"(","start_char":39,"line":29},{"index_id":175,"token_group":131,"text":")","start_char":40,"line":29},{"index_id":176,"token_group":132,"text":";","start_char":41,"line":29},{"index_id":177,"token_group":133,"text":"default","start_char":4,"line":31},{"index_id":178,"token_group":134,"text":"Noticeable","start_char":11,"line":31},{"index_id":179,"token_group":134,"text":"Future","start_char":21,"line":31},{"index_id":180,"token_group":134,"text":".","start_char":27,"line":31},{"index_id":181,"token_group":135,"text":"set","start_char":28,"line":31},{"index_id":182,"token_group":136,"text":"Exception","start_char":31,"line":31},{"index_id":183,"token_group":136,"text":"(","start_char":40,"line":31},{"index_id":184,"token_group":137,"text":"throwable","start_char":41,"line":31},{"index_id":185,"token_group":138,"text":")","start_char":50,"line":31},{"index_id":186,"token_group":139,"text":";","start_char":51,"line":31},{"index_id":187,"token_group":140,"text":"try","start_char":4,"line":33},{"index_id":188,"token_group":141,"text":"{","start_char":4,"line":34},{"index_id":189,"token_group":142,"text":"default","start_char":8,"line":35},{"index_id":190,"token_group":143,"text":"Noticeable","start_char":15,"line":35},{"index_id":191,"token_group":143,"text":"Future","start_char":25,"line":35},{"index_id":192,"token_group":143,"text":".","start_char":31,"line":35},{"index_id":193,"token_group":144,"text":"get","start_char":32,"line":35},{"index_id":194,"token_group":145,"text":"(","start_char":35,"line":35},{"index_id":195,"token_group":146,"text":")","start_char":36,"line":35},{"index_id":196,"token_group":147,"text":";","start_char":37,"line":35},{"index_id":197,"token_group":148,"text":"assert","start_char":8,"line":37},{"index_id":198,"token_group":149,"text":".","start_char":14,"line":37},{"index_id":199,"token_group":150,"text":"fail","start_char":15,"line":37},{"index_id":200,"token_group":151,"text":"(","start_char":19,"line":37},{"index_id":201,"token_group":152,"text":")","start_char":20,"line":37},{"index_id":202,"token_group":153,"text":";","start_char":21,"line":37},{"index_id":203,"token_group":154,"text":"}","start_char":4,"line":38},{"index_id":204,"token_group":155,"text":"catch","start_char":4,"line":39},{"index_id":205,"token_group":156,"text":"(","start_char":10,"line":39},{"index_id":206,"token_group":157,"text":"execution","start_char":11,"line":39},{"index_id":207,"token_group":158,"text":"Exception","start_char":20,"line":39},{"index_id":208,"token_group":158,"text":"ee","start_char":30,"line":39},{"index_id":209,"token_group":159,"text":")","start_char":32,"line":39},{"index_id":210,"token_group":160,"text":"{","start_char":4,"line":40},{"index_id":211,"token_group":161,"text":"assert","start_char":8,"line":41},{"index_id":212,"token_group":162,"text":".","start_char":14,"line":41},{"index_id":213,"token_group":163,"text":"assert","start_char":15,"line":41},{"index_id":214,"token_group":164,"text":"Same","start_char":21,"line":41},{"index_id":215,"token_group":164,"text":"(","start_char":25,"line":41},{"index_id":216,"token_group":165,"text":"throwable","start_char":26,"line":41},{"index_id":217,"token_group":166,"text":",","start_char":35,"line":41},{"index_id":218,"token_group":167,"text":"ee","start_char":37,"line":41},{"index_id":219,"token_group":168,"text":".","start_char":39,"line":41},{"index_id":220,"token_group":169,"text":"get","start_char":40,"line":41},{"index_id":221,"token_group":170,"text":"Cause","start_char":43,"line":41},{"index_id":222,"token_group":170,"text":"(","start_char":48,"line":41},{"index_id":223,"token_group":171,"text":")","start_char":49,"line":41},{"index_id":224,"token_group":172,"text":")","start_char":50,"line":41},{"index_id":225,"token_group":173,"text":";","start_char":51,"line":41},{"index_id":226,"token_group":174,"text":"}","start_char":4,"line":42},{"index_id":227,"token_group":175,"text":"}","start_char":0,"line":43}],"tokens_list":["{","final","default","Noticeable","Future","<","map","<","path",",","path",">>","default","Noticeable","Future","=","new","default","Noticeable","Future","<",">","(",")",";","netty","Fabric","Worker","Stub","<","string",">","netty","Fabric","Worker","Stub","=","new","netty","Fabric","Worker","Stub","<","string",">","(","0",",","netty","Test","Util",".","create","Empty","Embedded","Channel","(",")",",","new","mock","Repository","<","channel",">","(",")","{","@","override","Public","noticeable","Future","<","map","<","path",",","path",">>","get","Files","(","channel","channel",",","map","<","path",",","path",">","path","Map",",","boolean","delete","After","Fetch",")","{","return","default","Noticeable","Future",";","}","}",",","collections",".","<","path",",","path",">","empty","Map","(",")",",","0",")",";","netty","Fabric","Worker","Stub",".","set","Result","(","\"Test result\"",")",";","noticeable","Future","<","string",">","noticeable","Future","=","netty","Fabric","Worker","Stub",".","get","Process","Noticeable","Future","(",")",";","assert",".","assert","False","(","noticeable","Future",".","is","Done","(",")",")",";","throwable","throwable","=","new","throwable","(",")",";","default","Noticeable","Future",".","set","Exception","(","throwable",")",";","try","{","default","Noticeable","Future",".","get","(",")",";","assert",".","fail","(",")",";","}","catch","(","execution","Exception","ee",")","{","assert",".","assert","Same","(","throwable",",","ee",".","get","Cause","(",")",")",";","}","}"],"uuid":"15354cef6aa0eeee839e8651c56054d0"},{"cap_original_tokens":["<SENTENCE_START>","{","int","<id>","count","<\/id>","=","0",";","for","(","<id>","ns","Conf","<\/id>","<id>","ns","<\/id>",":","<id>","nameservices","<\/id>",")","{","<id>","count","<\/id>","+=","<id>","ns","<\/id>",".","<id>","nns","<\/id>",".","<id>","size","<\/id>","(",")",";","}","return","<id>","count","<\/id>",";","}","<SENTENCE_END\/>"],"file_name":"MiniDFSNNTopology.java","formatted_lines":["{"," int count = 0;"," for (NSConf ns : nameservices)"," {"," count += ns.nns.size();"," }"," return count;","}"],"function_name":"countNameNodes","function_name_tokens":["count","name","nodes"],"id_body_hash":"656fa1e181d6bb016a524ee7fe1de705","id_same_identifier_list":[0,1,2,3,4,5,6,7,8,9,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30],"option_correct":"countNameNodes","options":["setParentReference","countNameNodes","testLegacyEstimator","processFullNameINodes","getHdfsTimeout","processLocalNameINodes","getINodes"],"options_nlp":["set parent reference","count name nodes","test legacy estimator","process full name i nodes","get hdfs timeout","process local name i nodes","get i nodes"],"options_random":["setParentReference","getHdfsTimeout","testLegacyEstimator"],"options_tfidf":["getINodes","processLocalNameINodes","processFullNameINodes"],"project_name":"hadoop-common","source_code_string":"public int countNameNodes() {\n int count = 0;\n for (NSConf ns : nameservices) {\n count += ns.nns.size();\n }\n return count;\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"int","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"count","start_char":8,"line":1},{"index_id":3,"token_group":3,"text":"=","start_char":14,"line":1},{"index_id":4,"token_group":4,"text":"0","start_char":16,"line":1},{"index_id":5,"token_group":5,"text":";","start_char":17,"line":1},{"index_id":6,"token_group":6,"text":"for","start_char":4,"line":2},{"index_id":7,"token_group":7,"text":"(","start_char":8,"line":2},{"index_id":8,"token_group":8,"text":"ns","start_char":9,"line":2},{"index_id":9,"token_group":9,"text":"Conf","start_char":11,"line":2},{"index_id":10,"token_group":9,"text":"ns","start_char":16,"line":2},{"index_id":11,"token_group":10,"text":":","start_char":19,"line":2},{"index_id":12,"token_group":11,"text":"nameservices","start_char":21,"line":2},{"index_id":13,"token_group":12,"text":")","start_char":33,"line":2},{"index_id":14,"token_group":13,"text":"{","start_char":4,"line":3},{"index_id":15,"token_group":14,"text":"count","start_char":8,"line":4},{"index_id":16,"token_group":15,"text":"+=","start_char":14,"line":4},{"index_id":17,"token_group":16,"text":"ns","start_char":17,"line":4},{"index_id":18,"token_group":17,"text":".","start_char":19,"line":4},{"index_id":19,"token_group":18,"text":"nns","start_char":20,"line":4},{"index_id":20,"token_group":19,"text":".","start_char":23,"line":4},{"index_id":21,"token_group":20,"text":"size","start_char":24,"line":4},{"index_id":22,"token_group":21,"text":"(","start_char":28,"line":4},{"index_id":23,"token_group":22,"text":")","start_char":29,"line":4},{"index_id":24,"token_group":23,"text":";","start_char":30,"line":4},{"index_id":25,"token_group":24,"text":"}","start_char":4,"line":5},{"index_id":26,"token_group":25,"text":"return","start_char":4,"line":6},{"index_id":27,"token_group":26,"text":"count","start_char":11,"line":6},{"index_id":28,"token_group":27,"text":";","start_char":16,"line":6},{"index_id":29,"token_group":28,"text":"}","start_char":0,"line":7}],"tokens_list":["{","int","count","=","0",";","for","(","ns","Conf","ns",":","nameservices",")","{","count","+=","ns",".","nns",".","size","(",")",";","}","return","count",";","}"],"uuid":"723fc263e55c5ff3753b502d127fa32a"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","get","Attribute","Process","Callable","<\/id>","<id>","get","Attribute","Process","Callable","<\/id>","=","new","<id>","get","Attribute","Process","Callable","<\/id>","(","<id>","","Unknow","Object","Name","<\/id>",",","\"Name\"",",","true",")",";","try","{","<id>","get","Attribute","Process","Callable","<\/id>",".","<id>","call","<\/id>","(",")",";","<id>","assert","<\/id>",".","<id>","fail","<\/id>","(",")",";","}","catch","(","<id>","process","Exception","<\/id>","<id>","pe","<\/id>",")","{","<id>","throwable","<\/id>","<id>","throwable","<\/id>","=","<id>","pe","<\/id>",".","<id>","get","Cause","<\/id>","(",")",";","<id>","assert","<\/id>",".","<id>","assert","Same","<\/id>","(","<id>","instance","Not","Found","Exception","<\/id>",".","class",",","<id>","throwable","<\/id>",".","<id>","get","Class","<\/id>","(",")",")",";","}","}","<SENTENCE_END\/>"],"file_name":"JMXProxyUtilTest.java","formatted_lines":["{"," GetAttributeProcessCallable getAttributeProcessCallable ="," new GetAttributeProcessCallable(_unknowObjectName, \"Name\", true);",""," try"," {"," getAttributeProcessCallable.call();",""," Assert.fail();"," }"," catch (ProcessException pe)"," {"," Throwable throwable = pe.getCause();",""," Assert.assertSame("," InstanceNotFoundException.class, throwable.getClass());"," }","}"],"function_name":"testGetAttributeProcessCallableFailureInstanceNotFound","function_name_tokens":["test","get","attribute","process","callable","failure","instance","not","found"],"id_body_hash":"ea467335ca3d933f8b15cfbb5d3440bb","id_same_identifier_list":[0,1,2,2,2,2,3,3,3,3,4,5,6,6,6,6,7,8,8,8,8,9,10,11,12,13,14,15,16,17,17,17,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,32,33,34,35,36,37,38,39,40,41,41,42,43,44,45,46,47,47,48,49,49,49,49,50,51,52,53,54,55,55,56,57,58,59,60,61,62],"option_correct":"testGetAttributeProcessCallableFailureInstanceNotFound","options":["testGetAttributeProcessCallableFailureInstanceRequired","testGetAttributeProcessCallableFailureInstanceOptional","testGetAttributeProcessCallableFailureInstanceNotFound","testUpdateContent","migrateImageFiles","checkPrimitives","testSetAttributeProcessCallableFailureOptional"],"options_nlp":["test get attribute process callable failure instance required","test get attribute process callable failure instance optional","test get attribute process callable failure instance not found","test update content","migrate image files","check primitives","test set attribute process callable failure optional"],"options_random":["migrateImageFiles","checkPrimitives","testUpdateContent"],"options_tfidf":["testSetAttributeProcessCallableFailureOptional","testGetAttributeProcessCallableFailureInstanceRequired","testGetAttributeProcessCallableFailureInstanceOptional"],"project_name":"liferay-portal","source_code_string":"@Test\n\tpublic void testGetAttributeProcessCallableFailureInstanceNotFound() {\n\t\tGetAttributeProcessCallable getAttributeProcessCallable =\n\t\t\tnew GetAttributeProcessCallable(_unknowObjectName, \"Name\", true);\n\n\t\ttry {\n\t\t\tgetAttributeProcessCallable.call();\n\n\t\t\tAssert.fail();\n\t\t}\n\t\tcatch (ProcessException pe) {\n\t\t\tThrowable throwable = pe.getCause();\n\n\t\t\tAssert.assertSame(\n\t\t\t\tInstanceNotFoundException.class, throwable.getClass());\n\t\t}\n\t}","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"get","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"Attribute","start_char":7,"line":1},{"index_id":3,"token_group":2,"text":"Process","start_char":16,"line":1},{"index_id":4,"token_group":2,"text":"Callable","start_char":23,"line":1},{"index_id":5,"token_group":2,"text":"get","start_char":32,"line":1},{"index_id":6,"token_group":3,"text":"Attribute","start_char":35,"line":1},{"index_id":7,"token_group":3,"text":"Process","start_char":44,"line":1},{"index_id":8,"token_group":3,"text":"Callable","start_char":51,"line":1},{"index_id":9,"token_group":3,"text":"=","start_char":60,"line":1},{"index_id":10,"token_group":4,"text":"new","start_char":8,"line":2},{"index_id":11,"token_group":5,"text":"get","start_char":12,"line":2},{"index_id":12,"token_group":6,"text":"Attribute","start_char":15,"line":2},{"index_id":13,"token_group":6,"text":"Process","start_char":24,"line":2},{"index_id":14,"token_group":6,"text":"Callable","start_char":31,"line":2},{"index_id":15,"token_group":6,"text":"(","start_char":39,"line":2},{"index_id":16,"token_group":7,"text":"","start_char":40,"line":2},{"index_id":17,"token_group":8,"text":"Unknow","start_char":41,"line":2},{"index_id":18,"token_group":8,"text":"Object","start_char":47,"line":2},{"index_id":19,"token_group":8,"text":"Name","start_char":53,"line":2},{"index_id":20,"token_group":8,"text":",","start_char":57,"line":2},{"index_id":21,"token_group":9,"text":"\"Name\"","start_char":59,"line":2},{"index_id":22,"token_group":10,"text":",","start_char":65,"line":2},{"index_id":23,"token_group":11,"text":"true","start_char":67,"line":2},{"index_id":24,"token_group":12,"text":")","start_char":71,"line":2},{"index_id":25,"token_group":13,"text":";","start_char":72,"line":2},{"index_id":26,"token_group":14,"text":"try","start_char":4,"line":4},{"index_id":27,"token_group":15,"text":"{","start_char":4,"line":5},{"index_id":28,"token_group":16,"text":"get","start_char":8,"line":6},{"index_id":29,"token_group":17,"text":"Attribute","start_char":11,"line":6},{"index_id":30,"token_group":17,"text":"Process","start_char":20,"line":6},{"index_id":31,"token_group":17,"text":"Callable","start_char":27,"line":6},{"index_id":32,"token_group":17,"text":".","start_char":35,"line":6},{"index_id":33,"token_group":18,"text":"call","start_char":36,"line":6},{"index_id":34,"token_group":19,"text":"(","start_char":40,"line":6},{"index_id":35,"token_group":20,"text":")","start_char":41,"line":6},{"index_id":36,"token_group":21,"text":";","start_char":42,"line":6},{"index_id":37,"token_group":22,"text":"assert","start_char":8,"line":8},{"index_id":38,"token_group":23,"text":".","start_char":14,"line":8},{"index_id":39,"token_group":24,"text":"fail","start_char":15,"line":8},{"index_id":40,"token_group":25,"text":"(","start_char":19,"line":8},{"index_id":41,"token_group":26,"text":")","start_char":20,"line":8},{"index_id":42,"token_group":27,"text":";","start_char":21,"line":8},{"index_id":43,"token_group":28,"text":"}","start_char":4,"line":9},{"index_id":44,"token_group":29,"text":"catch","start_char":4,"line":10},{"index_id":45,"token_group":30,"text":"(","start_char":10,"line":10},{"index_id":46,"token_group":31,"text":"process","start_char":11,"line":10},{"index_id":47,"token_group":32,"text":"Exception","start_char":18,"line":10},{"index_id":48,"token_group":32,"text":"pe","start_char":28,"line":10},{"index_id":49,"token_group":33,"text":")","start_char":30,"line":10},{"index_id":50,"token_group":34,"text":"{","start_char":4,"line":11},{"index_id":51,"token_group":35,"text":"throwable","start_char":8,"line":12},{"index_id":52,"token_group":36,"text":"throwable","start_char":18,"line":12},{"index_id":53,"token_group":37,"text":"=","start_char":28,"line":12},{"index_id":54,"token_group":38,"text":"pe","start_char":30,"line":12},{"index_id":55,"token_group":39,"text":".","start_char":32,"line":12},{"index_id":56,"token_group":40,"text":"get","start_char":33,"line":12},{"index_id":57,"token_group":41,"text":"Cause","start_char":36,"line":12},{"index_id":58,"token_group":41,"text":"(","start_char":41,"line":12},{"index_id":59,"token_group":42,"text":")","start_char":42,"line":12},{"index_id":60,"token_group":43,"text":";","start_char":43,"line":12},{"index_id":61,"token_group":44,"text":"assert","start_char":8,"line":14},{"index_id":62,"token_group":45,"text":".","start_char":14,"line":14},{"index_id":63,"token_group":46,"text":"assert","start_char":15,"line":14},{"index_id":64,"token_group":47,"text":"Same","start_char":21,"line":14},{"index_id":65,"token_group":47,"text":"(","start_char":25,"line":14},{"index_id":66,"token_group":48,"text":"instance","start_char":12,"line":15},{"index_id":67,"token_group":49,"text":"Not","start_char":20,"line":15},{"index_id":68,"token_group":49,"text":"Found","start_char":23,"line":15},{"index_id":69,"token_group":49,"text":"Exception","start_char":28,"line":15},{"index_id":70,"token_group":49,"text":".","start_char":37,"line":15},{"index_id":71,"token_group":50,"text":"class","start_char":38,"line":15},{"index_id":72,"token_group":51,"text":",","start_char":43,"line":15},{"index_id":73,"token_group":52,"text":"throwable","start_char":45,"line":15},{"index_id":74,"token_group":53,"text":".","start_char":54,"line":15},{"index_id":75,"token_group":54,"text":"get","start_char":55,"line":15},{"index_id":76,"token_group":55,"text":"Class","start_char":58,"line":15},{"index_id":77,"token_group":55,"text":"(","start_char":63,"line":15},{"index_id":78,"token_group":56,"text":")","start_char":64,"line":15},{"index_id":79,"token_group":57,"text":")","start_char":65,"line":15},{"index_id":80,"token_group":58,"text":";","start_char":66,"line":15},{"index_id":81,"token_group":59,"text":"}","start_char":4,"line":16},{"index_id":82,"token_group":60,"text":"}","start_char":0,"line":17}],"tokens_list":["{","get","Attribute","Process","Callable","get","Attribute","Process","Callable","=","new","get","Attribute","Process","Callable","(","","Unknow","Object","Name",",","\"Name\"",",","true",")",";","try","{","get","Attribute","Process","Callable",".","call","(",")",";","assert",".","fail","(",")",";","}","catch","(","process","Exception","pe",")","{","throwable","throwable","=","pe",".","get","Cause","(",")",";","assert",".","assert","Same","(","instance","Not","Found","Exception",".","class",",","throwable",".","get","Class","(",")",")",";","}","}"],"uuid":"0f98e693eac061e1d7ccea5da912afb1"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","uri","<\/id>","<id>","uri","1","<\/id>","=","<id>","stateful","Servlet","<\/id>",".","<id>","create","Uri","<\/id>","(","<id>","base","Url","1","<\/id>",",","<id>","module","Name","<\/id>",",","<id>","passivation","Incapable","Incrementor","Bean","<\/id>",".","class",".","<id>","get","Simple","Name","<\/id>","(",")",")",";","<id>","uri","<\/id>","<id>","uri","2","<\/id>","=","<id>","stateful","Servlet","<\/id>",".","<id>","create","Uri","<\/id>","(","<id>","base","Url","2","<\/id>",",","<id>","module","Name","<\/id>",",","<id>","passivation","Incapable","Incrementor","Bean","<\/id>",".","class",".","<id>","get","Simple","Name","<\/id>","(",")",")",";","try","(","<id>","closeable","Http","Client","<\/id>","<id>","client","<\/id>","=","<id>","test","Http","Client","Utils","<\/id>",".","<id>","promiscuous","Cookie","Http","Client","<\/id>","(",")",")","{","<id>","assert","Equals","<\/id>","(","1",",","<id>","query","Count","<\/id>","(","<id>","client","<\/id>",",","<id>","uri","1","<\/id>",")",")",";","<id>","assert","Equals","<\/id>","(","2",",","<id>","query","Count","<\/id>","(","<id>","client","<\/id>",",","<id>","uri","1","<\/id>",")",")",";","<id>","assert","Equals","<\/id>","(","0",",","<id>","query","Count","<\/id>","(","<id>","client","<\/id>",",","<id>","uri","2","<\/id>",")",")",";","<id>","undeploy","<\/id>","(","<id>","deployment","2","<\/id>",")",";","<id>","assert","Equals","<\/id>","(","1",",","<id>","query","Count","<\/id>","(","<id>","client","<\/id>",",","<id>","uri","1","<\/id>",")",")",";","<id>","assert","Equals","<\/id>","(","2",",","<id>","query","Count","<\/id>","(","<id>","client","<\/id>",",","<id>","uri","1","<\/id>",")",")",";","<id>","deploy","<\/id>","(","<id>","deployment","2","<\/id>",")",";","<id>","assert","Equals","<\/id>","(","3",",","<id>","query","Count","<\/id>","(","<id>","client","<\/id>",",","<id>","uri","1","<\/id>",")",")",";","<id>","assert","Equals","<\/id>","(","4",",","<id>","query","Count","<\/id>","(","<id>","client","<\/id>",",","<id>","uri","1","<\/id>",")",")",";","<id>","assert","Equals","<\/id>","(","0",",","<id>","query","Count","<\/id>","(","<id>","client","<\/id>",",","<id>","uri","2","<\/id>",")",")",";","<id>","undeploy","<\/id>","(","<id>","deployment","1","<\/id>",")",";","<id>","assert","Equals","<\/id>","(","1",",","<id>","query","Count","<\/id>","(","<id>","client","<\/id>",",","<id>","uri","2","<\/id>",")",")",";","<id>","assert","Equals","<\/id>","(","2",",","<id>","query","Count","<\/id>","(","<id>","client","<\/id>",",","<id>","uri","2","<\/id>",")",")",";","<id>","deploy","<\/id>","(","<id>","deployment","1","<\/id>",")",";","<id>","assert","Equals","<\/id>","(","0",",","<id>","query","Count","<\/id>","(","<id>","client","<\/id>",",","<id>","uri","1","<\/id>",")",")",";","}","}","<SENTENCE_END\/>"],"file_name":"StatefulFailoverTestCase.java","formatted_lines":["{",""," URI uri1 = StatefulServlet.createURI(baseURL1, MODULE_NAME, PassivationIncapableIncrementorBean.class.getSimpleName());"," URI uri2 = StatefulServlet.createURI(baseURL2, MODULE_NAME, PassivationIncapableIncrementorBean.class.getSimpleName());",""," try (CloseableHttpClient client = TestHttpClientUtils.promiscuousCookieHttpClient())"," {"," assertEquals(1, queryCount(client, uri1));"," assertEquals(2, queryCount(client, uri1));",""," assertEquals(0, queryCount(client, uri2));",""," undeploy(DEPLOYMENT_2);",""," assertEquals(1, queryCount(client, uri1));"," assertEquals(2, queryCount(client, uri1));",""," deploy(DEPLOYMENT_2);",""," assertEquals(3, queryCount(client, uri1));"," assertEquals(4, queryCount(client, uri1));",""," assertEquals(0, queryCount(client, uri2));",""," undeploy(DEPLOYMENT_1);",""," assertEquals(1, queryCount(client, uri2));"," assertEquals(2, queryCount(client, uri2));",""," deploy(DEPLOYMENT_1);",""," assertEquals(0, queryCount(client, uri1));"," }","}"],"function_name":"noFailover","function_name_tokens":["no","failover"],"id_body_hash":"0ed857ac48acdbce8d840cbca1059a7b","id_same_identifier_list":[0,1,2,3,3,4,5,5,6,7,7,8,9,9,9,10,11,11,12,13,13,13,13,14,15,16,17,17,17,18,19,20,21,22,23,23,24,25,25,26,27,27,28,29,29,29,30,31,31,32,33,33,33,33,34,35,36,37,37,37,38,39,40,41,42,43,44,44,44,45,46,47,47,47,47,48,49,49,49,49,50,51,52,53,54,54,55,56,57,58,58,59,60,61,62,62,63,64,65,66,66,67,68,69,70,70,71,72,73,74,74,75,76,77,78,78,79,80,81,82,82,83,84,85,86,86,87,88,89,90,91,92,92,93,94,95,95,96,97,98,99,99,100,101,102,103,103,104,105,106,107,107,108,109,110,111,111,112,113,114,115,115,116,117,118,119,120,121,121,122,123,124,124,125,126,127,128,128,129,130,131,132,132,133,134,135,136,136,137,138,139,140,140,141,142,143,144,144,145,146,147,148,148,149,150,151,152,152,153,154,155,156,156,157,158,159,160,161,162,162,163,164,165,165,166,167,168,169,169,170,171,172,173,173,174,175,176,177,177,178,179,180,181,181,182,183,184,185,185,186,187,188,189,190,191,191,192,193,194,194,195,196,197,198,198,199,200,201,202,202,203,204,205,206,207,208],"option_correct":"noFailover","options":["testHashUserPasswordFalse","getCurrent","testStatefulFailover","getLocalClass","noFailover","failover","simpleFailover"],"options_nlp":["test hash user password false","get current","test stateful failover","get local class","no failover","failover","simple failover"],"options_random":["testHashUserPasswordFalse","getCurrent","getLocalClass"],"options_tfidf":["failover","testStatefulFailover","simpleFailover"],"project_name":"wildfly","source_code_string":"@Test\n public void noFailover(\n @ArquillianResource() @OperateOnDeployment(DEPLOYMENT_1) URL baseURL1,\n @ArquillianResource() @OperateOnDeployment(DEPLOYMENT_2) URL baseURL2) throws Exception {\n\n URI uri1 = StatefulServlet.createURI(baseURL1, MODULE_NAME, PassivationIncapableIncrementorBean.class.getSimpleName());\n URI uri2 = StatefulServlet.createURI(baseURL2, MODULE_NAME, PassivationIncapableIncrementorBean.class.getSimpleName());\n\n try (CloseableHttpClient client = TestHttpClientUtils.promiscuousCookieHttpClient()) {\n assertEquals(1, queryCount(client, uri1));\n assertEquals(2, queryCount(client, uri1));\n\n assertEquals(0, queryCount(client, uri2));\n\n undeploy(DEPLOYMENT_2);\n\n assertEquals(1, queryCount(client, uri1));\n assertEquals(2, queryCount(client, uri1));\n\n deploy(DEPLOYMENT_2);\n\n assertEquals(3, queryCount(client, uri1));\n assertEquals(4, queryCount(client, uri1));\n\n assertEquals(0, queryCount(client, uri2));\n\n undeploy(DEPLOYMENT_1);\n\n assertEquals(1, queryCount(client, uri2));\n assertEquals(2, queryCount(client, uri2));\n\n deploy(DEPLOYMENT_1);\n\n assertEquals(0, queryCount(client, uri1));\n }\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"uri","start_char":4,"line":2},{"index_id":2,"token_group":2,"text":"uri","start_char":8,"line":2},{"index_id":3,"token_group":3,"text":"1","start_char":11,"line":2},{"index_id":4,"token_group":3,"text":"=","start_char":13,"line":2},{"index_id":5,"token_group":4,"text":"stateful","start_char":15,"line":2},{"index_id":6,"token_group":5,"text":"Servlet","start_char":23,"line":2},{"index_id":7,"token_group":5,"text":".","start_char":30,"line":2},{"index_id":8,"token_group":6,"text":"create","start_char":31,"line":2},{"index_id":9,"token_group":7,"text":"Uri","start_char":37,"line":2},{"index_id":10,"token_group":7,"text":"(","start_char":40,"line":2},{"index_id":11,"token_group":8,"text":"base","start_char":41,"line":2},{"index_id":12,"token_group":9,"text":"Url","start_char":45,"line":2},{"index_id":13,"token_group":9,"text":"1","start_char":48,"line":2},{"index_id":14,"token_group":9,"text":",","start_char":49,"line":2},{"index_id":15,"token_group":10,"text":"module","start_char":51,"line":2},{"index_id":16,"token_group":11,"text":"Name","start_char":58,"line":2},{"index_id":17,"token_group":11,"text":",","start_char":62,"line":2},{"index_id":18,"token_group":12,"text":"passivation","start_char":64,"line":2},{"index_id":19,"token_group":13,"text":"Incapable","start_char":75,"line":2},{"index_id":20,"token_group":13,"text":"Incrementor","start_char":84,"line":2},{"index_id":21,"token_group":13,"text":"Bean","start_char":95,"line":2},{"index_id":22,"token_group":13,"text":".","start_char":99,"line":2},{"index_id":23,"token_group":14,"text":"class","start_char":100,"line":2},{"index_id":24,"token_group":15,"text":".","start_char":105,"line":2},{"index_id":25,"token_group":16,"text":"get","start_char":106,"line":2},{"index_id":26,"token_group":17,"text":"Simple","start_char":109,"line":2},{"index_id":27,"token_group":17,"text":"Name","start_char":115,"line":2},{"index_id":28,"token_group":17,"text":"(","start_char":119,"line":2},{"index_id":29,"token_group":18,"text":")","start_char":120,"line":2},{"index_id":30,"token_group":19,"text":")","start_char":121,"line":2},{"index_id":31,"token_group":20,"text":";","start_char":122,"line":2},{"index_id":32,"token_group":21,"text":"uri","start_char":4,"line":3},{"index_id":33,"token_group":22,"text":"uri","start_char":8,"line":3},{"index_id":34,"token_group":23,"text":"2","start_char":11,"line":3},{"index_id":35,"token_group":23,"text":"=","start_char":13,"line":3},{"index_id":36,"token_group":24,"text":"stateful","start_char":15,"line":3},{"index_id":37,"token_group":25,"text":"Servlet","start_char":23,"line":3},{"index_id":38,"token_group":25,"text":".","start_char":30,"line":3},{"index_id":39,"token_group":26,"text":"create","start_char":31,"line":3},{"index_id":40,"token_group":27,"text":"Uri","start_char":37,"line":3},{"index_id":41,"token_group":27,"text":"(","start_char":40,"line":3},{"index_id":42,"token_group":28,"text":"base","start_char":41,"line":3},{"index_id":43,"token_group":29,"text":"Url","start_char":45,"line":3},{"index_id":44,"token_group":29,"text":"2","start_char":48,"line":3},{"index_id":45,"token_group":29,"text":",","start_char":49,"line":3},{"index_id":46,"token_group":30,"text":"module","start_char":51,"line":3},{"index_id":47,"token_group":31,"text":"Name","start_char":58,"line":3},{"index_id":48,"token_group":31,"text":",","start_char":62,"line":3},{"index_id":49,"token_group":32,"text":"passivation","start_char":64,"line":3},{"index_id":50,"token_group":33,"text":"Incapable","start_char":75,"line":3},{"index_id":51,"token_group":33,"text":"Incrementor","start_char":84,"line":3},{"index_id":52,"token_group":33,"text":"Bean","start_char":95,"line":3},{"index_id":53,"token_group":33,"text":".","start_char":99,"line":3},{"index_id":54,"token_group":34,"text":"class","start_char":100,"line":3},{"index_id":55,"token_group":35,"text":".","start_char":105,"line":3},{"index_id":56,"token_group":36,"text":"get","start_char":106,"line":3},{"index_id":57,"token_group":37,"text":"Simple","start_char":109,"line":3},{"index_id":58,"token_group":37,"text":"Name","start_char":115,"line":3},{"index_id":59,"token_group":37,"text":"(","start_char":119,"line":3},{"index_id":60,"token_group":38,"text":")","start_char":120,"line":3},{"index_id":61,"token_group":39,"text":")","start_char":121,"line":3},{"index_id":62,"token_group":40,"text":";","start_char":122,"line":3},{"index_id":63,"token_group":41,"text":"try","start_char":4,"line":5},{"index_id":64,"token_group":42,"text":"(","start_char":8,"line":5},{"index_id":65,"token_group":43,"text":"closeable","start_char":9,"line":5},{"index_id":66,"token_group":44,"text":"Http","start_char":18,"line":5},{"index_id":67,"token_group":44,"text":"Client","start_char":22,"line":5},{"index_id":68,"token_group":44,"text":"client","start_char":29,"line":5},{"index_id":69,"token_group":45,"text":"=","start_char":36,"line":5},{"index_id":70,"token_group":46,"text":"test","start_char":38,"line":5},{"index_id":71,"token_group":47,"text":"Http","start_char":42,"line":5},{"index_id":72,"token_group":47,"text":"Client","start_char":46,"line":5},{"index_id":73,"token_group":47,"text":"Utils","start_char":52,"line":5},{"index_id":74,"token_group":47,"text":".","start_char":57,"line":5},{"index_id":75,"token_group":48,"text":"promiscuous","start_char":58,"line":5},{"index_id":76,"token_group":49,"text":"Cookie","start_char":69,"line":5},{"index_id":77,"token_group":49,"text":"Http","start_char":75,"line":5},{"index_id":78,"token_group":49,"text":"Client","start_char":79,"line":5},{"index_id":79,"token_group":49,"text":"(","start_char":85,"line":5},{"index_id":80,"token_group":50,"text":")","start_char":86,"line":5},{"index_id":81,"token_group":51,"text":")","start_char":87,"line":5},{"index_id":82,"token_group":52,"text":"{","start_char":4,"line":6},{"index_id":83,"token_group":53,"text":"assert","start_char":8,"line":7},{"index_id":84,"token_group":54,"text":"Equals","start_char":14,"line":7},{"index_id":85,"token_group":54,"text":"(","start_char":20,"line":7},{"index_id":86,"token_group":55,"text":"1","start_char":21,"line":7},{"index_id":87,"token_group":56,"text":",","start_char":22,"line":7},{"index_id":88,"token_group":57,"text":"query","start_char":24,"line":7},{"index_id":89,"token_group":58,"text":"Count","start_char":29,"line":7},{"index_id":90,"token_group":58,"text":"(","start_char":34,"line":7},{"index_id":91,"token_group":59,"text":"client","start_char":35,"line":7},{"index_id":92,"token_group":60,"text":",","start_char":41,"line":7},{"index_id":93,"token_group":61,"text":"uri","start_char":43,"line":7},{"index_id":94,"token_group":62,"text":"1","start_char":46,"line":7},{"index_id":95,"token_group":62,"text":")","start_char":47,"line":7},{"index_id":96,"token_group":63,"text":")","start_char":48,"line":7},{"index_id":97,"token_group":64,"text":";","start_char":49,"line":7},{"index_id":98,"token_group":65,"text":"assert","start_char":8,"line":8},{"index_id":99,"token_group":66,"text":"Equals","start_char":14,"line":8},{"index_id":100,"token_group":66,"text":"(","start_char":20,"line":8},{"index_id":101,"token_group":67,"text":"2","start_char":21,"line":8},{"index_id":102,"token_group":68,"text":",","start_char":22,"line":8},{"index_id":103,"token_group":69,"text":"query","start_char":24,"line":8},{"index_id":104,"token_group":70,"text":"Count","start_char":29,"line":8},{"index_id":105,"token_group":70,"text":"(","start_char":34,"line":8},{"index_id":106,"token_group":71,"text":"client","start_char":35,"line":8},{"index_id":107,"token_group":72,"text":",","start_char":41,"line":8},{"index_id":108,"token_group":73,"text":"uri","start_char":43,"line":8},{"index_id":109,"token_group":74,"text":"1","start_char":46,"line":8},{"index_id":110,"token_group":74,"text":")","start_char":47,"line":8},{"index_id":111,"token_group":75,"text":")","start_char":48,"line":8},{"index_id":112,"token_group":76,"text":";","start_char":49,"line":8},{"index_id":113,"token_group":77,"text":"assert","start_char":8,"line":10},{"index_id":114,"token_group":78,"text":"Equals","start_char":14,"line":10},{"index_id":115,"token_group":78,"text":"(","start_char":20,"line":10},{"index_id":116,"token_group":79,"text":"0","start_char":21,"line":10},{"index_id":117,"token_group":80,"text":",","start_char":22,"line":10},{"index_id":118,"token_group":81,"text":"query","start_char":24,"line":10},{"index_id":119,"token_group":82,"text":"Count","start_char":29,"line":10},{"index_id":120,"token_group":82,"text":"(","start_char":34,"line":10},{"index_id":121,"token_group":83,"text":"client","start_char":35,"line":10},{"index_id":122,"token_group":84,"text":",","start_char":41,"line":10},{"index_id":123,"token_group":85,"text":"uri","start_char":43,"line":10},{"index_id":124,"token_group":86,"text":"2","start_char":46,"line":10},{"index_id":125,"token_group":86,"text":")","start_char":47,"line":10},{"index_id":126,"token_group":87,"text":")","start_char":48,"line":10},{"index_id":127,"token_group":88,"text":";","start_char":49,"line":10},{"index_id":128,"token_group":89,"text":"undeploy","start_char":8,"line":12},{"index_id":129,"token_group":90,"text":"(","start_char":16,"line":12},{"index_id":130,"token_group":91,"text":"deployment","start_char":17,"line":12},{"index_id":131,"token_group":92,"text":"2","start_char":28,"line":12},{"index_id":132,"token_group":92,"text":")","start_char":29,"line":12},{"index_id":133,"token_group":93,"text":";","start_char":30,"line":12},{"index_id":134,"token_group":94,"text":"assert","start_char":8,"line":14},{"index_id":135,"token_group":95,"text":"Equals","start_char":14,"line":14},{"index_id":136,"token_group":95,"text":"(","start_char":20,"line":14},{"index_id":137,"token_group":96,"text":"1","start_char":21,"line":14},{"index_id":138,"token_group":97,"text":",","start_char":22,"line":14},{"index_id":139,"token_group":98,"text":"query","start_char":24,"line":14},{"index_id":140,"token_group":99,"text":"Count","start_char":29,"line":14},{"index_id":141,"token_group":99,"text":"(","start_char":34,"line":14},{"index_id":142,"token_group":100,"text":"client","start_char":35,"line":14},{"index_id":143,"token_group":101,"text":",","start_char":41,"line":14},{"index_id":144,"token_group":102,"text":"uri","start_char":43,"line":14},{"index_id":145,"token_group":103,"text":"1","start_char":46,"line":14},{"index_id":146,"token_group":103,"text":")","start_char":47,"line":14},{"index_id":147,"token_group":104,"text":")","start_char":48,"line":14},{"index_id":148,"token_group":105,"text":";","start_char":49,"line":14},{"index_id":149,"token_group":106,"text":"assert","start_char":8,"line":15},{"index_id":150,"token_group":107,"text":"Equals","start_char":14,"line":15},{"index_id":151,"token_group":107,"text":"(","start_char":20,"line":15},{"index_id":152,"token_group":108,"text":"2","start_char":21,"line":15},{"index_id":153,"token_group":109,"text":",","start_char":22,"line":15},{"index_id":154,"token_group":110,"text":"query","start_char":24,"line":15},{"index_id":155,"token_group":111,"text":"Count","start_char":29,"line":15},{"index_id":156,"token_group":111,"text":"(","start_char":34,"line":15},{"index_id":157,"token_group":112,"text":"client","start_char":35,"line":15},{"index_id":158,"token_group":113,"text":",","start_char":41,"line":15},{"index_id":159,"token_group":114,"text":"uri","start_char":43,"line":15},{"index_id":160,"token_group":115,"text":"1","start_char":46,"line":15},{"index_id":161,"token_group":115,"text":")","start_char":47,"line":15},{"index_id":162,"token_group":116,"text":")","start_char":48,"line":15},{"index_id":163,"token_group":117,"text":";","start_char":49,"line":15},{"index_id":164,"token_group":118,"text":"deploy","start_char":8,"line":17},{"index_id":165,"token_group":119,"text":"(","start_char":14,"line":17},{"index_id":166,"token_group":120,"text":"deployment","start_char":15,"line":17},{"index_id":167,"token_group":121,"text":"2","start_char":26,"line":17},{"index_id":168,"token_group":121,"text":")","start_char":27,"line":17},{"index_id":169,"token_group":122,"text":";","start_char":28,"line":17},{"index_id":170,"token_group":123,"text":"assert","start_char":8,"line":19},{"index_id":171,"token_group":124,"text":"Equals","start_char":14,"line":19},{"index_id":172,"token_group":124,"text":"(","start_char":20,"line":19},{"index_id":173,"token_group":125,"text":"3","start_char":21,"line":19},{"index_id":174,"token_group":126,"text":",","start_char":22,"line":19},{"index_id":175,"token_group":127,"text":"query","start_char":24,"line":19},{"index_id":176,"token_group":128,"text":"Count","start_char":29,"line":19},{"index_id":177,"token_group":128,"text":"(","start_char":34,"line":19},{"index_id":178,"token_group":129,"text":"client","start_char":35,"line":19},{"index_id":179,"token_group":130,"text":",","start_char":41,"line":19},{"index_id":180,"token_group":131,"text":"uri","start_char":43,"line":19},{"index_id":181,"token_group":132,"text":"1","start_char":46,"line":19},{"index_id":182,"token_group":132,"text":")","start_char":47,"line":19},{"index_id":183,"token_group":133,"text":")","start_char":48,"line":19},{"index_id":184,"token_group":134,"text":";","start_char":49,"line":19},{"index_id":185,"token_group":135,"text":"assert","start_char":8,"line":20},{"index_id":186,"token_group":136,"text":"Equals","start_char":14,"line":20},{"index_id":187,"token_group":136,"text":"(","start_char":20,"line":20},{"index_id":188,"token_group":137,"text":"4","start_char":21,"line":20},{"index_id":189,"token_group":138,"text":",","start_char":22,"line":20},{"index_id":190,"token_group":139,"text":"query","start_char":24,"line":20},{"index_id":191,"token_group":140,"text":"Count","start_char":29,"line":20},{"index_id":192,"token_group":140,"text":"(","start_char":34,"line":20},{"index_id":193,"token_group":141,"text":"client","start_char":35,"line":20},{"index_id":194,"token_group":142,"text":",","start_char":41,"line":20},{"index_id":195,"token_group":143,"text":"uri","start_char":43,"line":20},{"index_id":196,"token_group":144,"text":"1","start_char":46,"line":20},{"index_id":197,"token_group":144,"text":")","start_char":47,"line":20},{"index_id":198,"token_group":145,"text":")","start_char":48,"line":20},{"index_id":199,"token_group":146,"text":";","start_char":49,"line":20},{"index_id":200,"token_group":147,"text":"assert","start_char":8,"line":22},{"index_id":201,"token_group":148,"text":"Equals","start_char":14,"line":22},{"index_id":202,"token_group":148,"text":"(","start_char":20,"line":22},{"index_id":203,"token_group":149,"text":"0","start_char":21,"line":22},{"index_id":204,"token_group":150,"text":",","start_char":22,"line":22},{"index_id":205,"token_group":151,"text":"query","start_char":24,"line":22},{"index_id":206,"token_group":152,"text":"Count","start_char":29,"line":22},{"index_id":207,"token_group":152,"text":"(","start_char":34,"line":22},{"index_id":208,"token_group":153,"text":"client","start_char":35,"line":22},{"index_id":209,"token_group":154,"text":",","start_char":41,"line":22},{"index_id":210,"token_group":155,"text":"uri","start_char":43,"line":22},{"index_id":211,"token_group":156,"text":"2","start_char":46,"line":22},{"index_id":212,"token_group":156,"text":")","start_char":47,"line":22},{"index_id":213,"token_group":157,"text":")","start_char":48,"line":22},{"index_id":214,"token_group":158,"text":";","start_char":49,"line":22},{"index_id":215,"token_group":159,"text":"undeploy","start_char":8,"line":24},{"index_id":216,"token_group":160,"text":"(","start_char":16,"line":24},{"index_id":217,"token_group":161,"text":"deployment","start_char":17,"line":24},{"index_id":218,"token_group":162,"text":"1","start_char":28,"line":24},{"index_id":219,"token_group":162,"text":")","start_char":29,"line":24},{"index_id":220,"token_group":163,"text":";","start_char":30,"line":24},{"index_id":221,"token_group":164,"text":"assert","start_char":8,"line":26},{"index_id":222,"token_group":165,"text":"Equals","start_char":14,"line":26},{"index_id":223,"token_group":165,"text":"(","start_char":20,"line":26},{"index_id":224,"token_group":166,"text":"1","start_char":21,"line":26},{"index_id":225,"token_group":167,"text":",","start_char":22,"line":26},{"index_id":226,"token_group":168,"text":"query","start_char":24,"line":26},{"index_id":227,"token_group":169,"text":"Count","start_char":29,"line":26},{"index_id":228,"token_group":169,"text":"(","start_char":34,"line":26},{"index_id":229,"token_group":170,"text":"client","start_char":35,"line":26},{"index_id":230,"token_group":171,"text":",","start_char":41,"line":26},{"index_id":231,"token_group":172,"text":"uri","start_char":43,"line":26},{"index_id":232,"token_group":173,"text":"2","start_char":46,"line":26},{"index_id":233,"token_group":173,"text":")","start_char":47,"line":26},{"index_id":234,"token_group":174,"text":")","start_char":48,"line":26},{"index_id":235,"token_group":175,"text":";","start_char":49,"line":26},{"index_id":236,"token_group":176,"text":"assert","start_char":8,"line":27},{"index_id":237,"token_group":177,"text":"Equals","start_char":14,"line":27},{"index_id":238,"token_group":177,"text":"(","start_char":20,"line":27},{"index_id":239,"token_group":178,"text":"2","start_char":21,"line":27},{"index_id":240,"token_group":179,"text":",","start_char":22,"line":27},{"index_id":241,"token_group":180,"text":"query","start_char":24,"line":27},{"index_id":242,"token_group":181,"text":"Count","start_char":29,"line":27},{"index_id":243,"token_group":181,"text":"(","start_char":34,"line":27},{"index_id":244,"token_group":182,"text":"client","start_char":35,"line":27},{"index_id":245,"token_group":183,"text":",","start_char":41,"line":27},{"index_id":246,"token_group":184,"text":"uri","start_char":43,"line":27},{"index_id":247,"token_group":185,"text":"2","start_char":46,"line":27},{"index_id":248,"token_group":185,"text":")","start_char":47,"line":27},{"index_id":249,"token_group":186,"text":")","start_char":48,"line":27},{"index_id":250,"token_group":187,"text":";","start_char":49,"line":27},{"index_id":251,"token_group":188,"text":"deploy","start_char":8,"line":29},{"index_id":252,"token_group":189,"text":"(","start_char":14,"line":29},{"index_id":253,"token_group":190,"text":"deployment","start_char":15,"line":29},{"index_id":254,"token_group":191,"text":"1","start_char":26,"line":29},{"index_id":255,"token_group":191,"text":")","start_char":27,"line":29},{"index_id":256,"token_group":192,"text":";","start_char":28,"line":29},{"index_id":257,"token_group":193,"text":"assert","start_char":8,"line":31},{"index_id":258,"token_group":194,"text":"Equals","start_char":14,"line":31},{"index_id":259,"token_group":194,"text":"(","start_char":20,"line":31},{"index_id":260,"token_group":195,"text":"0","start_char":21,"line":31},{"index_id":261,"token_group":196,"text":",","start_char":22,"line":31},{"index_id":262,"token_group":197,"text":"query","start_char":24,"line":31},{"index_id":263,"token_group":198,"text":"Count","start_char":29,"line":31},{"index_id":264,"token_group":198,"text":"(","start_char":34,"line":31},{"index_id":265,"token_group":199,"text":"client","start_char":35,"line":31},{"index_id":266,"token_group":200,"text":",","start_char":41,"line":31},{"index_id":267,"token_group":201,"text":"uri","start_char":43,"line":31},{"index_id":268,"token_group":202,"text":"1","start_char":46,"line":31},{"index_id":269,"token_group":202,"text":")","start_char":47,"line":31},{"index_id":270,"token_group":203,"text":")","start_char":48,"line":31},{"index_id":271,"token_group":204,"text":";","start_char":49,"line":31},{"index_id":272,"token_group":205,"text":"}","start_char":4,"line":32},{"index_id":273,"token_group":206,"text":"}","start_char":0,"line":33}],"tokens_list":["{","uri","uri","1","=","stateful","Servlet",".","create","Uri","(","base","Url","1",",","module","Name",",","passivation","Incapable","Incrementor","Bean",".","class",".","get","Simple","Name","(",")",")",";","uri","uri","2","=","stateful","Servlet",".","create","Uri","(","base","Url","2",",","module","Name",",","passivation","Incapable","Incrementor","Bean",".","class",".","get","Simple","Name","(",")",")",";","try","(","closeable","Http","Client","client","=","test","Http","Client","Utils",".","promiscuous","Cookie","Http","Client","(",")",")","{","assert","Equals","(","1",",","query","Count","(","client",",","uri","1",")",")",";","assert","Equals","(","2",",","query","Count","(","client",",","uri","1",")",")",";","assert","Equals","(","0",",","query","Count","(","client",",","uri","2",")",")",";","undeploy","(","deployment","2",")",";","assert","Equals","(","1",",","query","Count","(","client",",","uri","1",")",")",";","assert","Equals","(","2",",","query","Count","(","client",",","uri","1",")",")",";","deploy","(","deployment","2",")",";","assert","Equals","(","3",",","query","Count","(","client",",","uri","1",")",")",";","assert","Equals","(","4",",","query","Count","(","client",",","uri","1",")",")",";","assert","Equals","(","0",",","query","Count","(","client",",","uri","2",")",")",";","undeploy","(","deployment","1",")",";","assert","Equals","(","1",",","query","Count","(","client",",","uri","2",")",")",";","assert","Equals","(","2",",","query","Count","(","client",",","uri","2",")",")",";","deploy","(","deployment","1",")",";","assert","Equals","(","0",",","query","Count","(","client",",","uri","1",")",")",";","}","}"],"uuid":"eb812fada89423d71332de420f5bc9d7"},{"cap_original_tokens":["<SENTENCE_START>","{","return","new","<id>","uri","<\/id>","(","<id>","wasb","Scheme","<\/id>","+","\":\"","+","<id>","path","Delimiter","<\/id>","+","<id>","path","Delimiter","<\/id>","+","<id>","container","Name","<\/id>","+","<id>","wasb","Authority","Delimiter","<\/id>","+","<id>","account","Name","<\/id>",")",";","}","<SENTENCE_END\/>"],"file_name":"AzureBlobStorageTestAccount.java","formatted_lines":["{"," return new URI(WASB_SCHEME + \":\" + PATH_DELIMITER + PATH_DELIMITER"," + containerName + WASB_AUTHORITY_DELIMITER + accountName);","}"],"function_name":"createAccountUri","function_name_tokens":["create","account","uri"],"id_body_hash":"651581d2ac4093cef441333147f4f2f7","id_same_identifier_list":[0,1,2,3,4,5,6,6,7,8,9,10,10,11,12,12,13,14,14,15,16,16,16,17,18,18,19,20,21,22],"option_correct":"createAccountUri","options":["testRemoveDefaultAclMustBeOwnerOrSuper","createJournalURI","getNumActiveTrackers","createAccountUri","loadFirst","createKMSUri","createTestAccount"],"options_nlp":["test remove default acl must be owner or super","create journal uri","get num active trackers","create account uri","load first","create kms uri","create test account"],"options_random":["testRemoveDefaultAclMustBeOwnerOrSuper","getNumActiveTrackers","loadFirst"],"options_tfidf":["createKMSUri","createJournalURI","createTestAccount"],"project_name":"hadoop-common","source_code_string":"private static URI createAccountUri(String accountName, String containerName)\n throws URISyntaxException {\n return new URI(WASB_SCHEME + \":\" + PATH_DELIMITER + PATH_DELIMITER\n + containerName + WASB_AUTHORITY_DELIMITER + accountName);\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"return","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"new","start_char":11,"line":1},{"index_id":3,"token_group":3,"text":"uri","start_char":15,"line":1},{"index_id":4,"token_group":4,"text":"(","start_char":18,"line":1},{"index_id":5,"token_group":5,"text":"wasb","start_char":19,"line":1},{"index_id":6,"token_group":6,"text":"Scheme","start_char":24,"line":1},{"index_id":7,"token_group":6,"text":"+","start_char":31,"line":1},{"index_id":8,"token_group":7,"text":"\":\"","start_char":33,"line":1},{"index_id":9,"token_group":8,"text":"+","start_char":37,"line":1},{"index_id":10,"token_group":9,"text":"path","start_char":39,"line":1},{"index_id":11,"token_group":10,"text":"Delimiter","start_char":44,"line":1},{"index_id":12,"token_group":10,"text":"+","start_char":54,"line":1},{"index_id":13,"token_group":11,"text":"path","start_char":56,"line":1},{"index_id":14,"token_group":12,"text":"Delimiter","start_char":61,"line":1},{"index_id":15,"token_group":12,"text":"+","start_char":19,"line":2},{"index_id":16,"token_group":13,"text":"container","start_char":21,"line":2},{"index_id":17,"token_group":14,"text":"Name","start_char":30,"line":2},{"index_id":18,"token_group":14,"text":"+","start_char":35,"line":2},{"index_id":19,"token_group":15,"text":"wasb","start_char":37,"line":2},{"index_id":20,"token_group":16,"text":"Authority","start_char":42,"line":2},{"index_id":21,"token_group":16,"text":"Delimiter","start_char":52,"line":2},{"index_id":22,"token_group":16,"text":"+","start_char":62,"line":2},{"index_id":23,"token_group":17,"text":"account","start_char":64,"line":2},{"index_id":24,"token_group":18,"text":"Name","start_char":71,"line":2},{"index_id":25,"token_group":18,"text":")","start_char":75,"line":2},{"index_id":26,"token_group":19,"text":";","start_char":76,"line":2},{"index_id":27,"token_group":20,"text":"}","start_char":0,"line":3}],"tokens_list":["{","return","new","uri","(","wasb","Scheme","+","\":\"","+","path","Delimiter","+","path","Delimiter","+","container","Name","+","wasb","Authority","Delimiter","+","account","Name",")",";","}"],"uuid":"dc146ee6fa0bba4a2f49185a1b3705cb"},{"cap_original_tokens":["<SENTENCE_START>","{","if","(","<id>","token","<\/id>","==","null",")","{","return","null",";","}","switch","(","<id>","token","<\/id>",")","{","case","<id>","field","Name","<\/id>",":","return","<id>","token","<\/id>",".","<id>","field","Name","<\/id>",";","case","<id>","value","False","<\/id>",":","case","<id>","value","True","<\/id>",":","return","<id>","token","<\/id>",".","<id>","value","Boolean","<\/id>",";","case","<id>","value","String","<\/id>",":","return","<id>","token","<\/id>",".","<id>","value","String","<\/id>",";","case","<id>","value","Number","Int","<\/id>",":","case","<id>","value","Number","Float","<\/id>",":","return","<id>","token","<\/id>",".","<id>","value","Number","<\/id>",";","case","<id>","value","Null","<\/id>",":","return","<id>","token","<\/id>",".","<id>","value","Null","<\/id>",";","case","<id>","start","Object","<\/id>",":","return","<id>","token","<\/id>",".","<id>","start","Object","<\/id>",";","case","<id>","end","Object","<\/id>",":","return","<id>","token","<\/id>",".","<id>","end","Object","<\/id>",";","case","<id>","start","Array","<\/id>",":","return","<id>","token","<\/id>",".","<id>","start","Array","<\/id>",";","case","<id>","end","Array","<\/id>",":","return","<id>","token","<\/id>",".","<id>","end","Array","<\/id>",";","case","<id>","value","Embedded","Object","<\/id>",":","return","<id>","token","<\/id>",".","<id>","value","Embedded","Object","<\/id>",";","}","throw","new","<id>","illegal","State","Exception","<\/id>","(","\"No matching token for json_token [\"","+","<id>","token","<\/id>","+","\"]\"",")",";","}","<SENTENCE_END\/>"],"file_name":"JsonXContentParser.java","formatted_lines":["{"," if (token == null)"," {"," return null;"," }"," switch (token)"," {"," case FIELD_NAME:"," return Token.FIELD_NAME;"," case VALUE_FALSE:"," case VALUE_TRUE:"," return Token.VALUE_BOOLEAN;"," case VALUE_STRING:"," return Token.VALUE_STRING;"," case VALUE_NUMBER_INT:"," case VALUE_NUMBER_FLOAT:"," return Token.VALUE_NUMBER;"," case VALUE_NULL:"," return Token.VALUE_NULL;"," case START_OBJECT:"," return Token.START_OBJECT;"," case END_OBJECT:"," return Token.END_OBJECT;"," case START_ARRAY:"," return Token.START_ARRAY;"," case END_ARRAY:"," return Token.END_ARRAY;"," case VALUE_EMBEDDED_OBJECT:"," return Token.VALUE_EMBEDDED_OBJECT;"," }"," throw new IllegalStateException(\"No matching token for json_token [\" + token +"," \"]\");","}"],"function_name":"convertToken","function_name_tokens":["convert","token"],"id_body_hash":"a85182cf029e9f2f69756b3516b76621","id_same_identifier_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,19,20,21,22,23,24,24,25,26,27,27,28,29,30,30,31,32,33,34,35,35,36,37,38,38,39,40,41,42,43,43,44,45,46,46,46,47,48,49,49,49,50,51,52,53,54,54,55,56,57,57,58,59,60,61,62,62,63,64,65,65,66,67,68,69,70,70,71,72,73,73,74,75,76,77,78,78,79,80,81,81,82,83,84,85,86,86,87,88,89,89,90,91,92,93,94,94,95,96,97,97,97,98,99,100,101,102,102,102,103,104,105,106,107,107,107,108,109,110,111,112,113,114,115,116,117],"option_correct":"convertToken","options":["convertToMap","convert","testCloseAllRequiresName","assertTokenFilter","convertToken","testIntConst","testClusterIndexHealth"],"options_nlp":["convert to map","convert","test close all requires name","assert token filter","convert token","test int const","test cluster index health"],"options_random":["testIntConst","testClusterIndexHealth","testCloseAllRequiresName"],"options_tfidf":["assertTokenFilter","convertToMap","convert"],"project_name":"elasticsearch","source_code_string":"private Token convertToken(JsonToken token) {\n if (token == null) {\n return null;\n }\n switch (token) {\n case FIELD_NAME:\n return Token.FIELD_NAME;\n case VALUE_FALSE:\n case VALUE_TRUE:\n return Token.VALUE_BOOLEAN;\n case VALUE_STRING:\n return Token.VALUE_STRING;\n case VALUE_NUMBER_INT:\n case VALUE_NUMBER_FLOAT:\n return Token.VALUE_NUMBER;\n case VALUE_NULL:\n return Token.VALUE_NULL;\n case START_OBJECT:\n return Token.START_OBJECT;\n case END_OBJECT:\n return Token.END_OBJECT;\n case START_ARRAY:\n return Token.START_ARRAY;\n case END_ARRAY:\n return Token.END_ARRAY;\n case VALUE_EMBEDDED_OBJECT:\n return Token.VALUE_EMBEDDED_OBJECT;\n }\n throw new IllegalStateException(\"No matching token for json_token [\" + token + \"]\");\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"if","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"(","start_char":7,"line":1},{"index_id":3,"token_group":3,"text":"token","start_char":8,"line":1},{"index_id":4,"token_group":4,"text":"==","start_char":14,"line":1},{"index_id":5,"token_group":5,"text":"null","start_char":17,"line":1},{"index_id":6,"token_group":6,"text":")","start_char":21,"line":1},{"index_id":7,"token_group":7,"text":"{","start_char":4,"line":2},{"index_id":8,"token_group":8,"text":"return","start_char":8,"line":3},{"index_id":9,"token_group":9,"text":"null","start_char":15,"line":3},{"index_id":10,"token_group":10,"text":";","start_char":19,"line":3},{"index_id":11,"token_group":11,"text":"}","start_char":4,"line":4},{"index_id":12,"token_group":12,"text":"switch","start_char":4,"line":5},{"index_id":13,"token_group":13,"text":"(","start_char":11,"line":5},{"index_id":14,"token_group":14,"text":"token","start_char":12,"line":5},{"index_id":15,"token_group":15,"text":")","start_char":17,"line":5},{"index_id":16,"token_group":16,"text":"{","start_char":4,"line":6},{"index_id":17,"token_group":17,"text":"case","start_char":4,"line":7},{"index_id":18,"token_group":18,"text":"field","start_char":9,"line":7},{"index_id":19,"token_group":19,"text":"Name","start_char":15,"line":7},{"index_id":20,"token_group":19,"text":":","start_char":19,"line":7},{"index_id":21,"token_group":20,"text":"return","start_char":8,"line":8},{"index_id":22,"token_group":21,"text":"token","start_char":15,"line":8},{"index_id":23,"token_group":22,"text":".","start_char":20,"line":8},{"index_id":24,"token_group":23,"text":"field","start_char":21,"line":8},{"index_id":25,"token_group":24,"text":"Name","start_char":27,"line":8},{"index_id":26,"token_group":24,"text":";","start_char":31,"line":8},{"index_id":27,"token_group":25,"text":"case","start_char":4,"line":9},{"index_id":28,"token_group":26,"text":"value","start_char":9,"line":9},{"index_id":29,"token_group":27,"text":"False","start_char":15,"line":9},{"index_id":30,"token_group":27,"text":":","start_char":20,"line":9},{"index_id":31,"token_group":28,"text":"case","start_char":4,"line":10},{"index_id":32,"token_group":29,"text":"value","start_char":9,"line":10},{"index_id":33,"token_group":30,"text":"True","start_char":15,"line":10},{"index_id":34,"token_group":30,"text":":","start_char":19,"line":10},{"index_id":35,"token_group":31,"text":"return","start_char":8,"line":11},{"index_id":36,"token_group":32,"text":"token","start_char":15,"line":11},{"index_id":37,"token_group":33,"text":".","start_char":20,"line":11},{"index_id":38,"token_group":34,"text":"value","start_char":21,"line":11},{"index_id":39,"token_group":35,"text":"Boolean","start_char":27,"line":11},{"index_id":40,"token_group":35,"text":";","start_char":34,"line":11},{"index_id":41,"token_group":36,"text":"case","start_char":4,"line":12},{"index_id":42,"token_group":37,"text":"value","start_char":9,"line":12},{"index_id":43,"token_group":38,"text":"String","start_char":15,"line":12},{"index_id":44,"token_group":38,"text":":","start_char":21,"line":12},{"index_id":45,"token_group":39,"text":"return","start_char":8,"line":13},{"index_id":46,"token_group":40,"text":"token","start_char":15,"line":13},{"index_id":47,"token_group":41,"text":".","start_char":20,"line":13},{"index_id":48,"token_group":42,"text":"value","start_char":21,"line":13},{"index_id":49,"token_group":43,"text":"String","start_char":27,"line":13},{"index_id":50,"token_group":43,"text":";","start_char":33,"line":13},{"index_id":51,"token_group":44,"text":"case","start_char":4,"line":14},{"index_id":52,"token_group":45,"text":"value","start_char":9,"line":14},{"index_id":53,"token_group":46,"text":"Number","start_char":15,"line":14},{"index_id":54,"token_group":46,"text":"Int","start_char":22,"line":14},{"index_id":55,"token_group":46,"text":":","start_char":25,"line":14},{"index_id":56,"token_group":47,"text":"case","start_char":4,"line":15},{"index_id":57,"token_group":48,"text":"value","start_char":9,"line":15},{"index_id":58,"token_group":49,"text":"Number","start_char":15,"line":15},{"index_id":59,"token_group":49,"text":"Float","start_char":22,"line":15},{"index_id":60,"token_group":49,"text":":","start_char":27,"line":15},{"index_id":61,"token_group":50,"text":"return","start_char":8,"line":16},{"index_id":62,"token_group":51,"text":"token","start_char":15,"line":16},{"index_id":63,"token_group":52,"text":".","start_char":20,"line":16},{"index_id":64,"token_group":53,"text":"value","start_char":21,"line":16},{"index_id":65,"token_group":54,"text":"Number","start_char":27,"line":16},{"index_id":66,"token_group":54,"text":";","start_char":33,"line":16},{"index_id":67,"token_group":55,"text":"case","start_char":4,"line":17},{"index_id":68,"token_group":56,"text":"value","start_char":9,"line":17},{"index_id":69,"token_group":57,"text":"Null","start_char":15,"line":17},{"index_id":70,"token_group":57,"text":":","start_char":19,"line":17},{"index_id":71,"token_group":58,"text":"return","start_char":8,"line":18},{"index_id":72,"token_group":59,"text":"token","start_char":15,"line":18},{"index_id":73,"token_group":60,"text":".","start_char":20,"line":18},{"index_id":74,"token_group":61,"text":"value","start_char":21,"line":18},{"index_id":75,"token_group":62,"text":"Null","start_char":27,"line":18},{"index_id":76,"token_group":62,"text":";","start_char":31,"line":18},{"index_id":77,"token_group":63,"text":"case","start_char":4,"line":19},{"index_id":78,"token_group":64,"text":"start","start_char":9,"line":19},{"index_id":79,"token_group":65,"text":"Object","start_char":15,"line":19},{"index_id":80,"token_group":65,"text":":","start_char":21,"line":19},{"index_id":81,"token_group":66,"text":"return","start_char":8,"line":20},{"index_id":82,"token_group":67,"text":"token","start_char":15,"line":20},{"index_id":83,"token_group":68,"text":".","start_char":20,"line":20},{"index_id":84,"token_group":69,"text":"start","start_char":21,"line":20},{"index_id":85,"token_group":70,"text":"Object","start_char":27,"line":20},{"index_id":86,"token_group":70,"text":";","start_char":33,"line":20},{"index_id":87,"token_group":71,"text":"case","start_char":4,"line":21},{"index_id":88,"token_group":72,"text":"end","start_char":9,"line":21},{"index_id":89,"token_group":73,"text":"Object","start_char":13,"line":21},{"index_id":90,"token_group":73,"text":":","start_char":19,"line":21},{"index_id":91,"token_group":74,"text":"return","start_char":8,"line":22},{"index_id":92,"token_group":75,"text":"token","start_char":15,"line":22},{"index_id":93,"token_group":76,"text":".","start_char":20,"line":22},{"index_id":94,"token_group":77,"text":"end","start_char":21,"line":22},{"index_id":95,"token_group":78,"text":"Object","start_char":25,"line":22},{"index_id":96,"token_group":78,"text":";","start_char":31,"line":22},{"index_id":97,"token_group":79,"text":"case","start_char":4,"line":23},{"index_id":98,"token_group":80,"text":"start","start_char":9,"line":23},{"index_id":99,"token_group":81,"text":"Array","start_char":15,"line":23},{"index_id":100,"token_group":81,"text":":","start_char":20,"line":23},{"index_id":101,"token_group":82,"text":"return","start_char":8,"line":24},{"index_id":102,"token_group":83,"text":"token","start_char":15,"line":24},{"index_id":103,"token_group":84,"text":".","start_char":20,"line":24},{"index_id":104,"token_group":85,"text":"start","start_char":21,"line":24},{"index_id":105,"token_group":86,"text":"Array","start_char":27,"line":24},{"index_id":106,"token_group":86,"text":";","start_char":32,"line":24},{"index_id":107,"token_group":87,"text":"case","start_char":4,"line":25},{"index_id":108,"token_group":88,"text":"end","start_char":9,"line":25},{"index_id":109,"token_group":89,"text":"Array","start_char":13,"line":25},{"index_id":110,"token_group":89,"text":":","start_char":18,"line":25},{"index_id":111,"token_group":90,"text":"return","start_char":8,"line":26},{"index_id":112,"token_group":91,"text":"token","start_char":15,"line":26},{"index_id":113,"token_group":92,"text":".","start_char":20,"line":26},{"index_id":114,"token_group":93,"text":"end","start_char":21,"line":26},{"index_id":115,"token_group":94,"text":"Array","start_char":25,"line":26},{"index_id":116,"token_group":94,"text":";","start_char":30,"line":26},{"index_id":117,"token_group":95,"text":"case","start_char":4,"line":27},{"index_id":118,"token_group":96,"text":"value","start_char":9,"line":27},{"index_id":119,"token_group":97,"text":"Embedded","start_char":15,"line":27},{"index_id":120,"token_group":97,"text":"Object","start_char":24,"line":27},{"index_id":121,"token_group":97,"text":":","start_char":30,"line":27},{"index_id":122,"token_group":98,"text":"return","start_char":8,"line":28},{"index_id":123,"token_group":99,"text":"token","start_char":15,"line":28},{"index_id":124,"token_group":100,"text":".","start_char":20,"line":28},{"index_id":125,"token_group":101,"text":"value","start_char":21,"line":28},{"index_id":126,"token_group":102,"text":"Embedded","start_char":27,"line":28},{"index_id":127,"token_group":102,"text":"Object","start_char":36,"line":28},{"index_id":128,"token_group":102,"text":";","start_char":42,"line":28},{"index_id":129,"token_group":103,"text":"}","start_char":4,"line":29},{"index_id":130,"token_group":104,"text":"throw","start_char":4,"line":30},{"index_id":131,"token_group":105,"text":"new","start_char":10,"line":30},{"index_id":132,"token_group":106,"text":"illegal","start_char":14,"line":30},{"index_id":133,"token_group":107,"text":"State","start_char":21,"line":30},{"index_id":134,"token_group":107,"text":"Exception","start_char":26,"line":30},{"index_id":135,"token_group":107,"text":"(","start_char":35,"line":30},{"index_id":136,"token_group":108,"text":"\"No matching token for json_token [\"","start_char":36,"line":30},{"index_id":137,"token_group":109,"text":"+","start_char":73,"line":30},{"index_id":138,"token_group":110,"text":"token","start_char":75,"line":30},{"index_id":139,"token_group":111,"text":"+","start_char":81,"line":30},{"index_id":140,"token_group":112,"text":"\"]\"","start_char":36,"line":31},{"index_id":141,"token_group":113,"text":")","start_char":39,"line":31},{"index_id":142,"token_group":114,"text":";","start_char":40,"line":31},{"index_id":143,"token_group":115,"text":"}","start_char":0,"line":32}],"tokens_list":["{","if","(","token","==","null",")","{","return","null",";","}","switch","(","token",")","{","case","field","Name",":","return","token",".","field","Name",";","case","value","False",":","case","value","True",":","return","token",".","value","Boolean",";","case","value","String",":","return","token",".","value","String",";","case","value","Number","Int",":","case","value","Number","Float",":","return","token",".","value","Number",";","case","value","Null",":","return","token",".","value","Null",";","case","start","Object",":","return","token",".","start","Object",";","case","end","Object",":","return","token",".","end","Object",";","case","start","Array",":","return","token",".","start","Array",";","case","end","Array",":","return","token",".","end","Array",";","case","value","Embedded","Object",":","return","token",".","value","Embedded","Object",";","}","throw","new","illegal","State","Exception","(","\"No matching token for json_token [\"","+","token","+","\"]\"",")",";","}"],"uuid":"fdf48ac456b22de5e1702d66ea6095ca"},{"cap_original_tokens":["<SENTENCE_START>","{","this",".","<id>","payload","Converter","<\/id>","=","<id>","payload","Converter","<\/id>",";","}","<SENTENCE_END\/>"],"file_name":"MessagingMessageConverter.java","formatted_lines":["{"," this.payloadConverter = payloadConverter;","}"],"function_name":"setPayloadConverter","function_name_tokens":["set","payload","converter"],"id_body_hash":"b9ac09ac7d7bbad531904920687458ce","id_same_identifier_list":[0,1,2,3,4,4,5,6,6,7,8,9],"option_correct":"setPayloadConverter","options":["setConverterLookup","testExposeRequestAttributesSunnyDay","setTypeConverter","handleReturnValueWithAsyncHandler","setMessageConverter","setPayloadConverter","convertValueToRequiredType"],"options_nlp":["set converter lookup","test expose request attributes sunny day","set type converter","handle return value with async handler","set message converter","set payload converter","convert value to required type"],"options_random":["handleReturnValueWithAsyncHandler","testExposeRequestAttributesSunnyDay","convertValueToRequiredType"],"options_tfidf":["setTypeConverter","setMessageConverter","setConverterLookup"],"project_name":"spring-framework","source_code_string":"public void setPayloadConverter(MessageConverter payloadConverter) {\n\t\tthis.payloadConverter = payloadConverter;\n\t}","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"this","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":".","start_char":8,"line":1},{"index_id":3,"token_group":3,"text":"payload","start_char":9,"line":1},{"index_id":4,"token_group":4,"text":"Converter","start_char":16,"line":1},{"index_id":5,"token_group":4,"text":"=","start_char":26,"line":1},{"index_id":6,"token_group":5,"text":"payload","start_char":28,"line":1},{"index_id":7,"token_group":6,"text":"Converter","start_char":35,"line":1},{"index_id":8,"token_group":6,"text":";","start_char":44,"line":1},{"index_id":9,"token_group":7,"text":"}","start_char":0,"line":2}],"tokens_list":["{","this",".","payload","Converter","=","payload","Converter",";","}"],"uuid":"119801266521484b4b0a89698412f6ba"},{"cap_original_tokens":["<SENTENCE_START>","{","return","<id>","dl","App","Local","Service","<\/id>",";","}","<SENTENCE_END\/>"],"file_name":"JournalArticleServiceBaseImpl.java","formatted_lines":["{"," return dlAppLocalService;","}"],"function_name":"getDLAppLocalService","function_name_tokens":["get","dl","app","local","service"],"id_body_hash":"05b6d80e8a450d69a8487b68176d4b22","id_same_identifier_list":[0,1,2,3,3,3,3,4,5,6],"option_correct":"getDLAppLocalService","options":["getDLAppService","getKaleoTimerId","addCreateDateProperty","setDLAppLocalService","getDLAppLocalService","getAllRowIds","getWrappedDLAppLocalService"],"options_nlp":["get dl app service","get kaleo timer id","add create date property","set dl app local service","get dl app local service","get all row ids","get wrapped dl app local service"],"options_random":["addCreateDateProperty","getKaleoTimerId","getAllRowIds"],"options_tfidf":["getWrappedDLAppLocalService","getDLAppService","setDLAppLocalService"],"project_name":"liferay-portal","source_code_string":"public com.liferay.portlet.documentlibrary.service.DLAppLocalService getDLAppLocalService() {\n\t\treturn dlAppLocalService;\n\t}","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"return","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"dl","start_char":11,"line":1},{"index_id":3,"token_group":3,"text":"App","start_char":13,"line":1},{"index_id":4,"token_group":3,"text":"Local","start_char":16,"line":1},{"index_id":5,"token_group":3,"text":"Service","start_char":21,"line":1},{"index_id":6,"token_group":3,"text":";","start_char":28,"line":1},{"index_id":7,"token_group":4,"text":"}","start_char":0,"line":2}],"tokens_list":["{","return","dl","App","Local","Service",";","}"],"uuid":"f6d6740ffdada14b29c033a83384261e"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","tool","Dependencies","<\/id>",".","<id>","wire","Caches","<\/id>","(",")",";","<id>","html","Util","<\/id>","<id>","html","Util","<\/id>","=","new","<id>","html","Util","<\/id>","(",")",";","<id>","html","Util","<\/id>",".","<id>","set","Html","<\/id>","(","new","<id>","html","Impl","<\/id>","(",")",")",";","<id>","secure","Xml","Factory","Provider","Util","<\/id>","<id>","secure","Xml","Factory","Provider","Util","<\/id>","=","new","<id>","secure","Xml","Factory","Provider","Util","<\/id>","(",")",";","<id>","secure","Xml","Factory","Provider","Util","<\/id>",".","<id>","set","Secure","Xml","Factory","Provider","<\/id>","(","new","<id>","secure","Xml","Factory","Provider","Impl","<\/id>","(",")",")",";","<id>","portlet","Preferences","Factory","Util","<\/id>","<id>","portlet","Preferences","Factory","Util","<\/id>","=","new","<id>","portlet","Preferences","Factory","Util","<\/id>","(",")",";","<id>","portlet","Preferences","Factory","Util","<\/id>",".","<id>","set","Portlet","Preferences","Factory","<\/id>","(","new","<id>","portlet","Preferences","Factory","Impl","<\/id>","(",")",")",";","}","<SENTENCE_END\/>"],"file_name":"TemplatePortletPreferencesTest.java","formatted_lines":["{"," ToolDependencies.wireCaches();",""," HtmlUtil htmlUtil = new HtmlUtil();",""," htmlUtil.setHtml(new HtmlImpl());",""," SecureXMLFactoryProviderUtil secureXMLFactoryProviderUtil ="," new SecureXMLFactoryProviderUtil();",""," secureXMLFactoryProviderUtil.setSecureXMLFactoryProvider("," new SecureXMLFactoryProviderImpl());",""," PortletPreferencesFactoryUtil portletPreferencesFactoryUtil ="," new PortletPreferencesFactoryUtil();",""," portletPreferencesFactoryUtil.setPortletPreferencesFactory("," new PortletPreferencesFactoryImpl());","}"],"function_name":"setUpClass","function_name_tokens":["set","up","class"],"id_body_hash":"395a2629aef28adf398f8e6dd2cdaa06","id_same_identifier_list":[0,1,2,2,3,4,4,5,6,7,8,8,9,9,10,11,12,12,13,14,15,16,16,17,18,18,19,20,21,21,22,23,24,25,26,26,26,26,26,27,27,27,27,27,28,29,30,30,30,30,30,31,32,33,34,34,34,34,34,35,36,36,36,36,36,37,38,39,39,39,39,39,40,41,42,43,44,44,44,44,45,45,45,45,46,47,48,48,48,48,49,50,51,52,52,52,52,53,54,54,54,54,55,56,57,57,57,57,58,59,60,61,62,63],"option_correct":"setUpClass","options":["setUp","mSLASH","setUpClass1","setUpClass","setUpClass2","testCountByE_E","testAddFileEntryBasic07"],"options_nlp":["set up","m slash","set up class 1","set up class","set up class 2","test count by e e","test add file entry basic 07"],"options_random":["testAddFileEntryBasic07","mSLASH","testCountByE_E"],"options_tfidf":["setUp","setUpClass1","setUpClass2"],"project_name":"liferay-portal","source_code_string":"@BeforeClass\n\tpublic static void setUpClass() {\n\t\tToolDependencies.wireCaches();\n\n\t\tHtmlUtil htmlUtil = new HtmlUtil();\n\n\t\thtmlUtil.setHtml(new HtmlImpl());\n\n\t\tSecureXMLFactoryProviderUtil secureXMLFactoryProviderUtil =\n\t\t\tnew SecureXMLFactoryProviderUtil();\n\n\t\tsecureXMLFactoryProviderUtil.setSecureXMLFactoryProvider(\n\t\t\tnew SecureXMLFactoryProviderImpl());\n\n\t\tPortletPreferencesFactoryUtil portletPreferencesFactoryUtil =\n\t\t\tnew PortletPreferencesFactoryUtil();\n\n\t\tportletPreferencesFactoryUtil.setPortletPreferencesFactory(\n\t\t\tnew PortletPreferencesFactoryImpl());\n\t}","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"tool","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"Dependencies","start_char":8,"line":1},{"index_id":3,"token_group":2,"text":".","start_char":20,"line":1},{"index_id":4,"token_group":3,"text":"wire","start_char":21,"line":1},{"index_id":5,"token_group":4,"text":"Caches","start_char":25,"line":1},{"index_id":6,"token_group":4,"text":"(","start_char":31,"line":1},{"index_id":7,"token_group":5,"text":")","start_char":32,"line":1},{"index_id":8,"token_group":6,"text":";","start_char":33,"line":1},{"index_id":9,"token_group":7,"text":"html","start_char":4,"line":3},{"index_id":10,"token_group":8,"text":"Util","start_char":8,"line":3},{"index_id":11,"token_group":8,"text":"html","start_char":13,"line":3},{"index_id":12,"token_group":9,"text":"Util","start_char":17,"line":3},{"index_id":13,"token_group":9,"text":"=","start_char":22,"line":3},{"index_id":14,"token_group":10,"text":"new","start_char":24,"line":3},{"index_id":15,"token_group":11,"text":"html","start_char":28,"line":3},{"index_id":16,"token_group":12,"text":"Util","start_char":32,"line":3},{"index_id":17,"token_group":12,"text":"(","start_char":36,"line":3},{"index_id":18,"token_group":13,"text":")","start_char":37,"line":3},{"index_id":19,"token_group":14,"text":";","start_char":38,"line":3},{"index_id":20,"token_group":15,"text":"html","start_char":4,"line":5},{"index_id":21,"token_group":16,"text":"Util","start_char":8,"line":5},{"index_id":22,"token_group":16,"text":".","start_char":12,"line":5},{"index_id":23,"token_group":17,"text":"set","start_char":13,"line":5},{"index_id":24,"token_group":18,"text":"Html","start_char":16,"line":5},{"index_id":25,"token_group":18,"text":"(","start_char":20,"line":5},{"index_id":26,"token_group":19,"text":"new","start_char":21,"line":5},{"index_id":27,"token_group":20,"text":"html","start_char":25,"line":5},{"index_id":28,"token_group":21,"text":"Impl","start_char":29,"line":5},{"index_id":29,"token_group":21,"text":"(","start_char":33,"line":5},{"index_id":30,"token_group":22,"text":")","start_char":34,"line":5},{"index_id":31,"token_group":23,"text":")","start_char":35,"line":5},{"index_id":32,"token_group":24,"text":";","start_char":36,"line":5},{"index_id":33,"token_group":25,"text":"secure","start_char":4,"line":7},{"index_id":34,"token_group":26,"text":"Xml","start_char":10,"line":7},{"index_id":35,"token_group":26,"text":"Factory","start_char":13,"line":7},{"index_id":36,"token_group":26,"text":"Provider","start_char":20,"line":7},{"index_id":37,"token_group":26,"text":"Util","start_char":28,"line":7},{"index_id":38,"token_group":26,"text":"secure","start_char":33,"line":7},{"index_id":39,"token_group":27,"text":"Xml","start_char":39,"line":7},{"index_id":40,"token_group":27,"text":"Factory","start_char":42,"line":7},{"index_id":41,"token_group":27,"text":"Provider","start_char":49,"line":7},{"index_id":42,"token_group":27,"text":"Util","start_char":57,"line":7},{"index_id":43,"token_group":27,"text":"=","start_char":62,"line":7},{"index_id":44,"token_group":28,"text":"new","start_char":8,"line":8},{"index_id":45,"token_group":29,"text":"secure","start_char":12,"line":8},{"index_id":46,"token_group":30,"text":"Xml","start_char":18,"line":8},{"index_id":47,"token_group":30,"text":"Factory","start_char":21,"line":8},{"index_id":48,"token_group":30,"text":"Provider","start_char":28,"line":8},{"index_id":49,"token_group":30,"text":"Util","start_char":36,"line":8},{"index_id":50,"token_group":30,"text":"(","start_char":40,"line":8},{"index_id":51,"token_group":31,"text":")","start_char":41,"line":8},{"index_id":52,"token_group":32,"text":";","start_char":42,"line":8},{"index_id":53,"token_group":33,"text":"secure","start_char":4,"line":10},{"index_id":54,"token_group":34,"text":"Xml","start_char":10,"line":10},{"index_id":55,"token_group":34,"text":"Factory","start_char":13,"line":10},{"index_id":56,"token_group":34,"text":"Provider","start_char":20,"line":10},{"index_id":57,"token_group":34,"text":"Util","start_char":28,"line":10},{"index_id":58,"token_group":34,"text":".","start_char":32,"line":10},{"index_id":59,"token_group":35,"text":"set","start_char":33,"line":10},{"index_id":60,"token_group":36,"text":"Secure","start_char":36,"line":10},{"index_id":61,"token_group":36,"text":"Xml","start_char":42,"line":10},{"index_id":62,"token_group":36,"text":"Factory","start_char":45,"line":10},{"index_id":63,"token_group":36,"text":"Provider","start_char":52,"line":10},{"index_id":64,"token_group":36,"text":"(","start_char":60,"line":10},{"index_id":65,"token_group":37,"text":"new","start_char":8,"line":11},{"index_id":66,"token_group":38,"text":"secure","start_char":12,"line":11},{"index_id":67,"token_group":39,"text":"Xml","start_char":18,"line":11},{"index_id":68,"token_group":39,"text":"Factory","start_char":21,"line":11},{"index_id":69,"token_group":39,"text":"Provider","start_char":28,"line":11},{"index_id":70,"token_group":39,"text":"Impl","start_char":36,"line":11},{"index_id":71,"token_group":39,"text":"(","start_char":40,"line":11},{"index_id":72,"token_group":40,"text":")","start_char":41,"line":11},{"index_id":73,"token_group":41,"text":")","start_char":42,"line":11},{"index_id":74,"token_group":42,"text":";","start_char":43,"line":11},{"index_id":75,"token_group":43,"text":"portlet","start_char":4,"line":13},{"index_id":76,"token_group":44,"text":"Preferences","start_char":11,"line":13},{"index_id":77,"token_group":44,"text":"Factory","start_char":22,"line":13},{"index_id":78,"token_group":44,"text":"Util","start_char":29,"line":13},{"index_id":79,"token_group":44,"text":"portlet","start_char":34,"line":13},{"index_id":80,"token_group":45,"text":"Preferences","start_char":41,"line":13},{"index_id":81,"token_group":45,"text":"Factory","start_char":52,"line":13},{"index_id":82,"token_group":45,"text":"Util","start_char":59,"line":13},{"index_id":83,"token_group":45,"text":"=","start_char":64,"line":13},{"index_id":84,"token_group":46,"text":"new","start_char":8,"line":14},{"index_id":85,"token_group":47,"text":"portlet","start_char":12,"line":14},{"index_id":86,"token_group":48,"text":"Preferences","start_char":19,"line":14},{"index_id":87,"token_group":48,"text":"Factory","start_char":30,"line":14},{"index_id":88,"token_group":48,"text":"Util","start_char":37,"line":14},{"index_id":89,"token_group":48,"text":"(","start_char":41,"line":14},{"index_id":90,"token_group":49,"text":")","start_char":42,"line":14},{"index_id":91,"token_group":50,"text":";","start_char":43,"line":14},{"index_id":92,"token_group":51,"text":"portlet","start_char":4,"line":16},{"index_id":93,"token_group":52,"text":"Preferences","start_char":11,"line":16},{"index_id":94,"token_group":52,"text":"Factory","start_char":22,"line":16},{"index_id":95,"token_group":52,"text":"Util","start_char":29,"line":16},{"index_id":96,"token_group":52,"text":".","start_char":33,"line":16},{"index_id":97,"token_group":53,"text":"set","start_char":34,"line":16},{"index_id":98,"token_group":54,"text":"Portlet","start_char":37,"line":16},{"index_id":99,"token_group":54,"text":"Preferences","start_char":44,"line":16},{"index_id":100,"token_group":54,"text":"Factory","start_char":55,"line":16},{"index_id":101,"token_group":54,"text":"(","start_char":62,"line":16},{"index_id":102,"token_group":55,"text":"new","start_char":8,"line":17},{"index_id":103,"token_group":56,"text":"portlet","start_char":12,"line":17},{"index_id":104,"token_group":57,"text":"Preferences","start_char":19,"line":17},{"index_id":105,"token_group":57,"text":"Factory","start_char":30,"line":17},{"index_id":106,"token_group":57,"text":"Impl","start_char":37,"line":17},{"index_id":107,"token_group":57,"text":"(","start_char":41,"line":17},{"index_id":108,"token_group":58,"text":")","start_char":42,"line":17},{"index_id":109,"token_group":59,"text":")","start_char":43,"line":17},{"index_id":110,"token_group":60,"text":";","start_char":44,"line":17},{"index_id":111,"token_group":61,"text":"}","start_char":0,"line":18}],"tokens_list":["{","tool","Dependencies",".","wire","Caches","(",")",";","html","Util","html","Util","=","new","html","Util","(",")",";","html","Util",".","set","Html","(","new","html","Impl","(",")",")",";","secure","Xml","Factory","Provider","Util","secure","Xml","Factory","Provider","Util","=","new","secure","Xml","Factory","Provider","Util","(",")",";","secure","Xml","Factory","Provider","Util",".","set","Secure","Xml","Factory","Provider","(","new","secure","Xml","Factory","Provider","Impl","(",")",")",";","portlet","Preferences","Factory","Util","portlet","Preferences","Factory","Util","=","new","portlet","Preferences","Factory","Util","(",")",";","portlet","Preferences","Factory","Util",".","set","Portlet","Preferences","Factory","(","new","portlet","Preferences","Factory","Impl","(",")",")",";","}"],"uuid":"a0fb391b700bcaca80e568493646f99d"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","method","<\/id>","<id>","method","<\/id>","=","<id>","methods","<\/id>",".","class",".","<id>","get","Method","<\/id>","(","\"typedParameter\"",",","<id>","object","<\/id>",".","class",")",";","<id>","resolvable","Type","<\/id>","<id>","type","<\/id>","=","<id>","resolvable","Type","<\/id>",".","<id>","for","Method","Parameter","<\/id>","(","<id>","method","<\/id>",",","0",",","<id>","typed","Methods","<\/id>",".","class",")",";","<id>","assert","That","<\/id>","(","<id>","type","<\/id>",".","<id>","resolve","<\/id>","(",")",",","<id>","equal","To","<\/id>","(","(","<id>","class","<\/id>",")","<id>","string","<\/id>",".","class",")",")",";","<id>","assert","That","<\/id>","(","<id>","type","<\/id>",".","<id>","get","Type","<\/id>","(",")",".","<id>","to","String","<\/id>","(",")",",","<id>","equal","To","<\/id>","(","\"T\"",")",")",";","}","<SENTENCE_END\/>"],"file_name":"ResolvableTypeTests.java","formatted_lines":["{"," Method method = Methods.class.getMethod(\"typedParameter\", Object.class);"," ResolvableType type = ResolvableType.forMethodParameter(method, 0, TypedMethods.class);"," assertThat(type.resolve(), equalTo((Class) String.class));"," assertThat(type.getType().toString(), equalTo(\"T\"));","}"],"function_name":"resolveTypeVariableFromMethodParameterWithImplementsClass","function_name_tokens":["resolve","type","variable","from","method","parameter","with","implements","class"],"id_body_hash":"6d1deed3a28b20abe016a05b7946012b","id_same_identifier_list":[0,1,2,3,4,5,6,7,8,9,9,10,11,12,13,14,15,16,17,18,18,19,20,21,21,22,23,23,23,24,25,26,27,28,29,29,30,31,32,33,34,34,35,36,37,38,39,40,41,42,42,43,44,45,46,47,48,49,50,51,52,53,53,54,55,56,57,57,58,59,60,61,61,62,63,64,65,65,66,67,68,69,70,71,72],"option_correct":"resolveTypeVariableFromMethodParameterWithImplementsClass","options":["getPersistentClassName","resolveTypeVariableFromMethodReturnWithImplementsClass","reservedWords_8228","consumes","resolveTypeVariableFromMethodParameterWithImplementsClass","resolveTypeVariableFromMethodParameterTypeWithImplementsClass","resolveTypeVariableFromConstructorParameterWithImplementsClass"],"options_nlp":["get persistent class name","resolve type variable from method return with implements class","reserved words 8228","consumes","resolve type variable from method parameter with implements class","resolve type variable from method parameter type with implements class","resolve type variable from constructor parameter with implements class"],"options_random":["getPersistentClassName","reservedWords_8228","consumes"],"options_tfidf":["resolveTypeVariableFromMethodParameterTypeWithImplementsClass","resolveTypeVariableFromMethodReturnWithImplementsClass","resolveTypeVariableFromConstructorParameterWithImplementsClass"],"project_name":"spring-framework","source_code_string":"@Test\n\tpublic void resolveTypeVariableFromMethodParameterWithImplementsClass() throws Exception {\n\t\tMethod method = Methods.class.getMethod(\"typedParameter\", Object.class);\n\t\tResolvableType type = ResolvableType.forMethodParameter(method, 0, TypedMethods.class);\n\t\tassertThat(type.resolve(), equalTo((Class) String.class));\n\t\tassertThat(type.getType().toString(), equalTo(\"T\"));\n\t}","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"method","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"method","start_char":11,"line":1},{"index_id":3,"token_group":3,"text":"=","start_char":18,"line":1},{"index_id":4,"token_group":4,"text":"methods","start_char":20,"line":1},{"index_id":5,"token_group":5,"text":".","start_char":27,"line":1},{"index_id":6,"token_group":6,"text":"class","start_char":28,"line":1},{"index_id":7,"token_group":7,"text":".","start_char":33,"line":1},{"index_id":8,"token_group":8,"text":"get","start_char":34,"line":1},{"index_id":9,"token_group":9,"text":"Method","start_char":37,"line":1},{"index_id":10,"token_group":9,"text":"(","start_char":43,"line":1},{"index_id":11,"token_group":10,"text":"\"typedParameter\"","start_char":44,"line":1},{"index_id":12,"token_group":11,"text":",","start_char":60,"line":1},{"index_id":13,"token_group":12,"text":"object","start_char":62,"line":1},{"index_id":14,"token_group":13,"text":".","start_char":68,"line":1},{"index_id":15,"token_group":14,"text":"class","start_char":69,"line":1},{"index_id":16,"token_group":15,"text":")","start_char":74,"line":1},{"index_id":17,"token_group":16,"text":";","start_char":75,"line":1},{"index_id":18,"token_group":17,"text":"resolvable","start_char":4,"line":2},{"index_id":19,"token_group":18,"text":"Type","start_char":14,"line":2},{"index_id":20,"token_group":18,"text":"type","start_char":19,"line":2},{"index_id":21,"token_group":19,"text":"=","start_char":24,"line":2},{"index_id":22,"token_group":20,"text":"resolvable","start_char":26,"line":2},{"index_id":23,"token_group":21,"text":"Type","start_char":36,"line":2},{"index_id":24,"token_group":21,"text":".","start_char":40,"line":2},{"index_id":25,"token_group":22,"text":"for","start_char":41,"line":2},{"index_id":26,"token_group":23,"text":"Method","start_char":44,"line":2},{"index_id":27,"token_group":23,"text":"Parameter","start_char":50,"line":2},{"index_id":28,"token_group":23,"text":"(","start_char":59,"line":2},{"index_id":29,"token_group":24,"text":"method","start_char":60,"line":2},{"index_id":30,"token_group":25,"text":",","start_char":66,"line":2},{"index_id":31,"token_group":26,"text":"0","start_char":68,"line":2},{"index_id":32,"token_group":27,"text":",","start_char":69,"line":2},{"index_id":33,"token_group":28,"text":"typed","start_char":71,"line":2},{"index_id":34,"token_group":29,"text":"Methods","start_char":76,"line":2},{"index_id":35,"token_group":29,"text":".","start_char":83,"line":2},{"index_id":36,"token_group":30,"text":"class","start_char":84,"line":2},{"index_id":37,"token_group":31,"text":")","start_char":89,"line":2},{"index_id":38,"token_group":32,"text":";","start_char":90,"line":2},{"index_id":39,"token_group":33,"text":"assert","start_char":4,"line":3},{"index_id":40,"token_group":34,"text":"That","start_char":10,"line":3},{"index_id":41,"token_group":34,"text":"(","start_char":14,"line":3},{"index_id":42,"token_group":35,"text":"type","start_char":15,"line":3},{"index_id":43,"token_group":36,"text":".","start_char":19,"line":3},{"index_id":44,"token_group":37,"text":"resolve","start_char":20,"line":3},{"index_id":45,"token_group":38,"text":"(","start_char":27,"line":3},{"index_id":46,"token_group":39,"text":")","start_char":28,"line":3},{"index_id":47,"token_group":40,"text":",","start_char":29,"line":3},{"index_id":48,"token_group":41,"text":"equal","start_char":31,"line":3},{"index_id":49,"token_group":42,"text":"To","start_char":36,"line":3},{"index_id":50,"token_group":42,"text":"(","start_char":38,"line":3},{"index_id":51,"token_group":43,"text":"(","start_char":39,"line":3},{"index_id":52,"token_group":44,"text":"class","start_char":40,"line":3},{"index_id":53,"token_group":45,"text":")","start_char":45,"line":3},{"index_id":54,"token_group":46,"text":"string","start_char":47,"line":3},{"index_id":55,"token_group":47,"text":".","start_char":53,"line":3},{"index_id":56,"token_group":48,"text":"class","start_char":54,"line":3},{"index_id":57,"token_group":49,"text":")","start_char":59,"line":3},{"index_id":58,"token_group":50,"text":")","start_char":60,"line":3},{"index_id":59,"token_group":51,"text":";","start_char":61,"line":3},{"index_id":60,"token_group":52,"text":"assert","start_char":4,"line":4},{"index_id":61,"token_group":53,"text":"That","start_char":10,"line":4},{"index_id":62,"token_group":53,"text":"(","start_char":14,"line":4},{"index_id":63,"token_group":54,"text":"type","start_char":15,"line":4},{"index_id":64,"token_group":55,"text":".","start_char":19,"line":4},{"index_id":65,"token_group":56,"text":"get","start_char":20,"line":4},{"index_id":66,"token_group":57,"text":"Type","start_char":23,"line":4},{"index_id":67,"token_group":57,"text":"(","start_char":27,"line":4},{"index_id":68,"token_group":58,"text":")","start_char":28,"line":4},{"index_id":69,"token_group":59,"text":".","start_char":29,"line":4},{"index_id":70,"token_group":60,"text":"to","start_char":30,"line":4},{"index_id":71,"token_group":61,"text":"String","start_char":32,"line":4},{"index_id":72,"token_group":61,"text":"(","start_char":38,"line":4},{"index_id":73,"token_group":62,"text":")","start_char":39,"line":4},{"index_id":74,"token_group":63,"text":",","start_char":40,"line":4},{"index_id":75,"token_group":64,"text":"equal","start_char":42,"line":4},{"index_id":76,"token_group":65,"text":"To","start_char":47,"line":4},{"index_id":77,"token_group":65,"text":"(","start_char":49,"line":4},{"index_id":78,"token_group":66,"text":"\"T\"","start_char":50,"line":4},{"index_id":79,"token_group":67,"text":")","start_char":53,"line":4},{"index_id":80,"token_group":68,"text":")","start_char":54,"line":4},{"index_id":81,"token_group":69,"text":";","start_char":55,"line":4},{"index_id":82,"token_group":70,"text":"}","start_char":0,"line":5}],"tokens_list":["{","method","method","=","methods",".","class",".","get","Method","(","\"typedParameter\"",",","object",".","class",")",";","resolvable","Type","type","=","resolvable","Type",".","for","Method","Parameter","(","method",",","0",",","typed","Methods",".","class",")",";","assert","That","(","type",".","resolve","(",")",",","equal","To","(","(","class",")","string",".","class",")",")",";","assert","That","(","type",".","get","Type","(",")",".","to","String","(",")",",","equal","To","(","\"T\"",")",")",";","}"],"uuid":"0db175b3dc06b5f7b5dfbb3bf18ed2e5"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","list","<\/id>","<","<id>","string","<\/id>",">","<id>","names","<\/id>","=","<id>","arrays","<\/id>",".","<id>","as","List","<\/id>","(","\"Bob\"",",","\"Alice\"",",","\"Bob\"",",","\"Carol\"",")",";","<id>","set","<\/id>","<","<id>","string","<\/id>",">","<id>","uniq","Names","<\/id>","=","new","<id>","hash","Set","<\/id>","<",">","(","<id>","names","<\/id>",".","<id>","size","<\/id>","(",")",")",";","for","(","<id>","string","<\/id>","<id>","name","<\/id>",":","<id>","na","<\/id>","<","<id>","caret","<\/id>",">","<id>","mes","<\/id>",")","{","<id>","uniq","Names","<\/id>",".","<id>","add","<\/id>","(","<id>","make","Name","Unique","<\/id>","(","<id>","name","<\/id>",",","<id>","uniq","Names","<\/id>",")",")",";","}","<id>","uniq","Names","<\/id>",".","<id>","for","Each","<\/id>","(","<id>","system","<\/id>",".","<id>","out","<\/id>","::","<id>","println","<\/id>",")",";","}","<SENTENCE_END\/>"],"file_name":"beforeTooLazyCalculation.java","formatted_lines":["{"," List<String> names = Arrays.asList(\"Bob\", \"Alice\", \"Bob\", \"Carol\");"," Set<String> uniqNames = new HashSet<>(names.size());"," for (String name : na<caret>mes)"," {"," uniqNames.add(makeNameUnique(name, uniqNames));"," }"," uniqNames.forEach(System.out::println);","}"],"function_name":"main","function_name_tokens":["main"],"id_body_hash":"fe36efb683339c51f18fa8b32c7089c3","id_same_identifier_list":[0,1,2,3,4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,25,26,27,28,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,51,52,53,54,55,55,55,56,57,58,59,59,60,61,62,63,64,64,65,66,66,67,68,69,70,71,72,73,74,75,76],"option_correct":"main","options":["keepEmptyProperties","getMainClassName","getMainComponent","getMainClass","hasValidContext","getMediator","main"],"options_nlp":["keep empty properties","get main class name","get main component","get main class","has valid context","get mediator","main"],"options_random":["hasValidContext","keepEmptyProperties","getMediator"],"options_tfidf":["getMainComponent","getMainClass","getMainClassName"],"project_name":"intellij-community","source_code_string":"public static void main(String[] args) {\n List<String> names = Arrays.asList(\"Bob\", \"Alice\", \"Bob\", \"Carol\");\n Set<String> uniqNames = new HashSet<>(names.size());\n for (String name : na<caret>mes){\n uniqNames.add(makeNameUnique(name, uniqNames));\n }\n uniqNames.forEach(System.out::println);\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"list","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"<","start_char":8,"line":1},{"index_id":3,"token_group":3,"text":"string","start_char":9,"line":1},{"index_id":4,"token_group":4,"text":">","start_char":15,"line":1},{"index_id":5,"token_group":5,"text":"names","start_char":17,"line":1},{"index_id":6,"token_group":6,"text":"=","start_char":23,"line":1},{"index_id":7,"token_group":7,"text":"arrays","start_char":25,"line":1},{"index_id":8,"token_group":8,"text":".","start_char":31,"line":1},{"index_id":9,"token_group":9,"text":"as","start_char":32,"line":1},{"index_id":10,"token_group":10,"text":"List","start_char":34,"line":1},{"index_id":11,"token_group":10,"text":"(","start_char":38,"line":1},{"index_id":12,"token_group":11,"text":"\"Bob\"","start_char":39,"line":1},{"index_id":13,"token_group":12,"text":",","start_char":44,"line":1},{"index_id":14,"token_group":13,"text":"\"Alice\"","start_char":46,"line":1},{"index_id":15,"token_group":14,"text":",","start_char":53,"line":1},{"index_id":16,"token_group":15,"text":"\"Bob\"","start_char":55,"line":1},{"index_id":17,"token_group":16,"text":",","start_char":60,"line":1},{"index_id":18,"token_group":17,"text":"\"Carol\"","start_char":62,"line":1},{"index_id":19,"token_group":18,"text":")","start_char":69,"line":1},{"index_id":20,"token_group":19,"text":";","start_char":70,"line":1},{"index_id":21,"token_group":20,"text":"set","start_char":4,"line":2},{"index_id":22,"token_group":21,"text":"<","start_char":7,"line":2},{"index_id":23,"token_group":22,"text":"string","start_char":8,"line":2},{"index_id":24,"token_group":23,"text":">","start_char":14,"line":2},{"index_id":25,"token_group":24,"text":"uniq","start_char":16,"line":2},{"index_id":26,"token_group":25,"text":"Names","start_char":20,"line":2},{"index_id":27,"token_group":25,"text":"=","start_char":26,"line":2},{"index_id":28,"token_group":26,"text":"new","start_char":28,"line":2},{"index_id":29,"token_group":27,"text":"hash","start_char":32,"line":2},{"index_id":30,"token_group":28,"text":"Set","start_char":36,"line":2},{"index_id":31,"token_group":28,"text":"<","start_char":39,"line":2},{"index_id":32,"token_group":29,"text":">","start_char":40,"line":2},{"index_id":33,"token_group":30,"text":"(","start_char":41,"line":2},{"index_id":34,"token_group":31,"text":"names","start_char":42,"line":2},{"index_id":35,"token_group":32,"text":".","start_char":47,"line":2},{"index_id":36,"token_group":33,"text":"size","start_char":48,"line":2},{"index_id":37,"token_group":34,"text":"(","start_char":52,"line":2},{"index_id":38,"token_group":35,"text":")","start_char":53,"line":2},{"index_id":39,"token_group":36,"text":")","start_char":54,"line":2},{"index_id":40,"token_group":37,"text":";","start_char":55,"line":2},{"index_id":41,"token_group":38,"text":"for","start_char":4,"line":3},{"index_id":42,"token_group":39,"text":"(","start_char":8,"line":3},{"index_id":43,"token_group":40,"text":"string","start_char":9,"line":3},{"index_id":44,"token_group":41,"text":"name","start_char":16,"line":3},{"index_id":45,"token_group":42,"text":":","start_char":21,"line":3},{"index_id":46,"token_group":43,"text":"na","start_char":23,"line":3},{"index_id":47,"token_group":44,"text":"<","start_char":25,"line":3},{"index_id":48,"token_group":45,"text":"caret","start_char":26,"line":3},{"index_id":49,"token_group":46,"text":">","start_char":31,"line":3},{"index_id":50,"token_group":47,"text":"mes","start_char":32,"line":3},{"index_id":51,"token_group":48,"text":")","start_char":35,"line":3},{"index_id":52,"token_group":49,"text":"{","start_char":4,"line":4},{"index_id":53,"token_group":50,"text":"uniq","start_char":8,"line":5},{"index_id":54,"token_group":51,"text":"Names","start_char":12,"line":5},{"index_id":55,"token_group":51,"text":".","start_char":17,"line":5},{"index_id":56,"token_group":52,"text":"add","start_char":18,"line":5},{"index_id":57,"token_group":53,"text":"(","start_char":21,"line":5},{"index_id":58,"token_group":54,"text":"make","start_char":22,"line":5},{"index_id":59,"token_group":55,"text":"Name","start_char":26,"line":5},{"index_id":60,"token_group":55,"text":"Unique","start_char":30,"line":5},{"index_id":61,"token_group":55,"text":"(","start_char":36,"line":5},{"index_id":62,"token_group":56,"text":"name","start_char":37,"line":5},{"index_id":63,"token_group":57,"text":",","start_char":41,"line":5},{"index_id":64,"token_group":58,"text":"uniq","start_char":43,"line":5},{"index_id":65,"token_group":59,"text":"Names","start_char":47,"line":5},{"index_id":66,"token_group":59,"text":")","start_char":52,"line":5},{"index_id":67,"token_group":60,"text":")","start_char":53,"line":5},{"index_id":68,"token_group":61,"text":";","start_char":54,"line":5},{"index_id":69,"token_group":62,"text":"}","start_char":4,"line":6},{"index_id":70,"token_group":63,"text":"uniq","start_char":4,"line":7},{"index_id":71,"token_group":64,"text":"Names","start_char":8,"line":7},{"index_id":72,"token_group":64,"text":".","start_char":13,"line":7},{"index_id":73,"token_group":65,"text":"for","start_char":14,"line":7},{"index_id":74,"token_group":66,"text":"Each","start_char":17,"line":7},{"index_id":75,"token_group":66,"text":"(","start_char":21,"line":7},{"index_id":76,"token_group":67,"text":"system","start_char":22,"line":7},{"index_id":77,"token_group":68,"text":".","start_char":28,"line":7},{"index_id":78,"token_group":69,"text":"out","start_char":29,"line":7},{"index_id":79,"token_group":70,"text":"::","start_char":32,"line":7},{"index_id":80,"token_group":71,"text":"println","start_char":34,"line":7},{"index_id":81,"token_group":72,"text":")","start_char":41,"line":7},{"index_id":82,"token_group":73,"text":";","start_char":42,"line":7},{"index_id":83,"token_group":74,"text":"}","start_char":0,"line":8}],"tokens_list":["{","list","<","string",">","names","=","arrays",".","as","List","(","\"Bob\"",",","\"Alice\"",",","\"Bob\"",",","\"Carol\"",")",";","set","<","string",">","uniq","Names","=","new","hash","Set","<",">","(","names",".","size","(",")",")",";","for","(","string","name",":","na","<","caret",">","mes",")","{","uniq","Names",".","add","(","make","Name","Unique","(","name",",","uniq","Names",")",")",";","}","uniq","Names",".","for","Each","(","system",".","out","::","println",")",";","}"],"uuid":"866898977eac17908d43b85ea35edc3d"}]