-
Notifications
You must be signed in to change notification settings - Fork 1
/
experiment_0000041.json
1 lines (1 loc) · 167 KB
/
experiment_0000041.json
1
[{"cap_original_tokens":["<SENTENCE_START>","{","this",".","<id>","path","<\/id>","=","<id>","path","<\/id>",";","}","<SENTENCE_END\/>"],"file_name":"GroupTypeEntity.java","formatted_lines":["{"," this.path = path;","}"],"function_name":"setPath","function_name_tokens":["set","path"],"id_body_hash":"eddf8e04b2b342578004b87b268b56a9","id_same_identifier_list":[0,1,2,3,4,5,6,7,8,9],"option_correct":"setPath","options":["setPathAddress","testSession30","setModulePath","setPath","path","testCorrectNamingContextUsedForEjbInWar","push"],"options_nlp":["set path address","test session 30","set module path","set path","path","test correct naming context used for ejb in war","push"],"options_random":["testSession30","testCorrectNamingContextUsedForEjbInWar","push"],"options_tfidf":["path","setPathAddress","setModulePath"],"project_name":"wildfly","source_code_string":"public void setPath(String path) {\n this.path = path;\n }","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":"path","start_char":9,"line":1},{"index_id":4,"token_group":4,"text":"=","start_char":14,"line":1},{"index_id":5,"token_group":5,"text":"path","start_char":16,"line":1},{"index_id":6,"token_group":6,"text":";","start_char":20,"line":1},{"index_id":7,"token_group":7,"text":"}","start_char":0,"line":2}],"tokens_list":["{","this",".","path","=","path",";","}"],"uuid":"00758cdcaf1f01adade4976d721fe49c"},{"cap_original_tokens":["<SENTENCE_START>","{","boolean","<id>","should","Fold","Doc","String","<\/id>","=","<id>","get","Doc","String","Owner","Type","<\/id>","(","<id>","node","<\/id>",")","!=","null","&&","<id>","string","Util","<\/id>",".","<id>","count","New","Lines","<\/id>","(","<id>","node","<\/id>",".","<id>","get","Chars","<\/id>","(",")",")",">","1",";","boolean","<id>","should","Fold","String","<\/id>","=","<id>","get","Doc","String","Owner","Type","<\/id>","(","<id>","node","<\/id>",")","==","null","&&","<id>","string","Util","<\/id>",".","<id>","count","New","Lines","<\/id>","(","<id>","node","<\/id>",".","<id>","get","Chars","<\/id>","(",")",")",">","0",";","if","(","<id>","should","Fold","Doc","String","<\/id>","||","<id>","should","Fold","String","<\/id>",")","{","<id>","descriptors","<\/id>",".","<id>","add","<\/id>","(","new","<id>","folding","Descriptor","<\/id>","(","<id>","node","<\/id>",",","<id>","node","<\/id>",".","<id>","get","Text","Range","<\/id>","(",")",")",")",";","}","}","<SENTENCE_END\/>"],"file_name":"PythonFoldingBuilder.java","formatted_lines":["{",""," boolean shouldFoldDocString = getDocStringOwnerType(node) != null &&"," StringUtil.countNewLines(node.getChars()) > 1;"," boolean shouldFoldString = getDocStringOwnerType(node) == null &&"," StringUtil.countNewLines(node.getChars()) > 0;"," if (shouldFoldDocString || shouldFoldString)"," {"," descriptors.add(new FoldingDescriptor(node, node.getTextRange()));"," }","}"],"function_name":"foldLongStrings","function_name_tokens":["fold","long","strings"],"id_body_hash":"425e9f0573cd90a332c1902ee61be3ed","id_same_identifier_list":[0,1,2,3,3,3,3,4,5,5,5,5,5,6,7,8,9,10,11,12,12,13,14,14,14,15,16,17,18,18,19,20,21,22,23,24,25,26,26,26,27,28,28,28,28,28,29,30,31,32,33,34,35,35,36,37,37,37,38,39,40,41,41,42,43,44,45,46,47,48,49,50,50,50,50,51,52,52,52,53,54,55,56,57,58,59,60,60,61,62,63,64,65,66,66,66,67,68,69,70,71,72,73,74],"option_correct":"foldLongStrings","options":["putFeedback","putLong","foldLongStrings","forLongFieldIn","checkTrackedBranchesConfigured","testIntPlusLongNotDouble","parseString"],"options_nlp":["put feedback","put long","fold long strings","for long field in","check tracked branches configured","test int plus long not double","parse string"],"options_random":["putFeedback","checkTrackedBranchesConfigured","parseString"],"options_tfidf":["putLong","testIntPlusLongNotDouble","forLongFieldIn"],"project_name":"intellij-community","source_code_string":"private static void foldLongStrings(ASTNode node, List<FoldingDescriptor> descriptors) {\n \n boolean shouldFoldDocString = getDocStringOwnerType(node) != null && StringUtil.countNewLines(node.getChars()) > 1;\n boolean shouldFoldString = getDocStringOwnerType(node) == null && StringUtil.countNewLines(node.getChars()) > 0;\n if (shouldFoldDocString || shouldFoldString) {\n descriptors.add(new FoldingDescriptor(node, node.getTextRange()));\n }\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"boolean","start_char":4,"line":2},{"index_id":2,"token_group":2,"text":"should","start_char":12,"line":2},{"index_id":3,"token_group":3,"text":"Fold","start_char":18,"line":2},{"index_id":4,"token_group":3,"text":"Doc","start_char":22,"line":2},{"index_id":5,"token_group":3,"text":"String","start_char":25,"line":2},{"index_id":6,"token_group":3,"text":"=","start_char":32,"line":2},{"index_id":7,"token_group":4,"text":"get","start_char":34,"line":2},{"index_id":8,"token_group":5,"text":"Doc","start_char":37,"line":2},{"index_id":9,"token_group":5,"text":"String","start_char":40,"line":2},{"index_id":10,"token_group":5,"text":"Owner","start_char":46,"line":2},{"index_id":11,"token_group":5,"text":"Type","start_char":51,"line":2},{"index_id":12,"token_group":5,"text":"(","start_char":55,"line":2},{"index_id":13,"token_group":6,"text":"node","start_char":56,"line":2},{"index_id":14,"token_group":7,"text":")","start_char":60,"line":2},{"index_id":15,"token_group":8,"text":"!=","start_char":62,"line":2},{"index_id":16,"token_group":9,"text":"null","start_char":65,"line":2},{"index_id":17,"token_group":10,"text":"&&","start_char":70,"line":2},{"index_id":18,"token_group":11,"text":"string","start_char":34,"line":3},{"index_id":19,"token_group":12,"text":"Util","start_char":40,"line":3},{"index_id":20,"token_group":12,"text":".","start_char":44,"line":3},{"index_id":21,"token_group":13,"text":"count","start_char":45,"line":3},{"index_id":22,"token_group":14,"text":"New","start_char":50,"line":3},{"index_id":23,"token_group":14,"text":"Lines","start_char":53,"line":3},{"index_id":24,"token_group":14,"text":"(","start_char":58,"line":3},{"index_id":25,"token_group":15,"text":"node","start_char":59,"line":3},{"index_id":26,"token_group":16,"text":".","start_char":63,"line":3},{"index_id":27,"token_group":17,"text":"get","start_char":64,"line":3},{"index_id":28,"token_group":18,"text":"Chars","start_char":67,"line":3},{"index_id":29,"token_group":18,"text":"(","start_char":72,"line":3},{"index_id":30,"token_group":19,"text":")","start_char":73,"line":3},{"index_id":31,"token_group":20,"text":")","start_char":74,"line":3},{"index_id":32,"token_group":21,"text":">","start_char":76,"line":3},{"index_id":33,"token_group":22,"text":"1","start_char":78,"line":3},{"index_id":34,"token_group":23,"text":";","start_char":79,"line":3},{"index_id":35,"token_group":24,"text":"boolean","start_char":4,"line":4},{"index_id":36,"token_group":25,"text":"should","start_char":12,"line":4},{"index_id":37,"token_group":26,"text":"Fold","start_char":18,"line":4},{"index_id":38,"token_group":26,"text":"String","start_char":22,"line":4},{"index_id":39,"token_group":26,"text":"=","start_char":29,"line":4},{"index_id":40,"token_group":27,"text":"get","start_char":31,"line":4},{"index_id":41,"token_group":28,"text":"Doc","start_char":34,"line":4},{"index_id":42,"token_group":28,"text":"String","start_char":37,"line":4},{"index_id":43,"token_group":28,"text":"Owner","start_char":43,"line":4},{"index_id":44,"token_group":28,"text":"Type","start_char":48,"line":4},{"index_id":45,"token_group":28,"text":"(","start_char":52,"line":4},{"index_id":46,"token_group":29,"text":"node","start_char":53,"line":4},{"index_id":47,"token_group":30,"text":")","start_char":57,"line":4},{"index_id":48,"token_group":31,"text":"==","start_char":59,"line":4},{"index_id":49,"token_group":32,"text":"null","start_char":62,"line":4},{"index_id":50,"token_group":33,"text":"&&","start_char":67,"line":4},{"index_id":51,"token_group":34,"text":"string","start_char":31,"line":5},{"index_id":52,"token_group":35,"text":"Util","start_char":37,"line":5},{"index_id":53,"token_group":35,"text":".","start_char":41,"line":5},{"index_id":54,"token_group":36,"text":"count","start_char":42,"line":5},{"index_id":55,"token_group":37,"text":"New","start_char":47,"line":5},{"index_id":56,"token_group":37,"text":"Lines","start_char":50,"line":5},{"index_id":57,"token_group":37,"text":"(","start_char":55,"line":5},{"index_id":58,"token_group":38,"text":"node","start_char":56,"line":5},{"index_id":59,"token_group":39,"text":".","start_char":60,"line":5},{"index_id":60,"token_group":40,"text":"get","start_char":61,"line":5},{"index_id":61,"token_group":41,"text":"Chars","start_char":64,"line":5},{"index_id":62,"token_group":41,"text":"(","start_char":69,"line":5},{"index_id":63,"token_group":42,"text":")","start_char":70,"line":5},{"index_id":64,"token_group":43,"text":")","start_char":71,"line":5},{"index_id":65,"token_group":44,"text":">","start_char":73,"line":5},{"index_id":66,"token_group":45,"text":"0","start_char":75,"line":5},{"index_id":67,"token_group":46,"text":";","start_char":76,"line":5},{"index_id":68,"token_group":47,"text":"if","start_char":4,"line":6},{"index_id":69,"token_group":48,"text":"(","start_char":7,"line":6},{"index_id":70,"token_group":49,"text":"should","start_char":8,"line":6},{"index_id":71,"token_group":50,"text":"Fold","start_char":14,"line":6},{"index_id":72,"token_group":50,"text":"Doc","start_char":18,"line":6},{"index_id":73,"token_group":50,"text":"String","start_char":21,"line":6},{"index_id":74,"token_group":50,"text":"||","start_char":28,"line":6},{"index_id":75,"token_group":51,"text":"should","start_char":31,"line":6},{"index_id":76,"token_group":52,"text":"Fold","start_char":37,"line":6},{"index_id":77,"token_group":52,"text":"String","start_char":41,"line":6},{"index_id":78,"token_group":52,"text":")","start_char":47,"line":6},{"index_id":79,"token_group":53,"text":"{","start_char":4,"line":7},{"index_id":80,"token_group":54,"text":"descriptors","start_char":8,"line":8},{"index_id":81,"token_group":55,"text":".","start_char":19,"line":8},{"index_id":82,"token_group":56,"text":"add","start_char":20,"line":8},{"index_id":83,"token_group":57,"text":"(","start_char":23,"line":8},{"index_id":84,"token_group":58,"text":"new","start_char":24,"line":8},{"index_id":85,"token_group":59,"text":"folding","start_char":28,"line":8},{"index_id":86,"token_group":60,"text":"Descriptor","start_char":35,"line":8},{"index_id":87,"token_group":60,"text":"(","start_char":45,"line":8},{"index_id":88,"token_group":61,"text":"node","start_char":46,"line":8},{"index_id":89,"token_group":62,"text":",","start_char":50,"line":8},{"index_id":90,"token_group":63,"text":"node","start_char":52,"line":8},{"index_id":91,"token_group":64,"text":".","start_char":56,"line":8},{"index_id":92,"token_group":65,"text":"get","start_char":57,"line":8},{"index_id":93,"token_group":66,"text":"Text","start_char":60,"line":8},{"index_id":94,"token_group":66,"text":"Range","start_char":64,"line":8},{"index_id":95,"token_group":66,"text":"(","start_char":69,"line":8},{"index_id":96,"token_group":67,"text":")","start_char":70,"line":8},{"index_id":97,"token_group":68,"text":")","start_char":71,"line":8},{"index_id":98,"token_group":69,"text":")","start_char":72,"line":8},{"index_id":99,"token_group":70,"text":";","start_char":73,"line":8},{"index_id":100,"token_group":71,"text":"}","start_char":4,"line":9},{"index_id":101,"token_group":72,"text":"}","start_char":0,"line":10}],"tokens_list":["{","boolean","should","Fold","Doc","String","=","get","Doc","String","Owner","Type","(","node",")","!=","null","&&","string","Util",".","count","New","Lines","(","node",".","get","Chars","(",")",")",">","1",";","boolean","should","Fold","String","=","get","Doc","String","Owner","Type","(","node",")","==","null","&&","string","Util",".","count","New","Lines","(","node",".","get","Chars","(",")",")",">","0",";","if","(","should","Fold","Doc","String","||","should","Fold","String",")","{","descriptors",".","add","(","new","folding","Descriptor","(","node",",","node",".","get","Text","Range","(",")",")",")",";","}","}"],"uuid":"78facc7d45ce96630733a03ef8dfe9ff"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","dimension","<\/id>","<id>","dim","<\/id>","=","new","<id>","dimension","<\/id>","(","<id>","my","Preferred","W","<\/id>",",","<id>","my","Preferred","H","<\/id>",")",";","<id>","component","<\/id>","[","]","<id>","components","<\/id>","=","<id>","get","Components","<\/id>","(",")",";","if","(","<id>","components","<\/id>","==","null",")","return",";","for","(","int","<id>","i","<\/id>","=","0",";","<id>","i","<\/id>","<","<id>","components","<\/id>",".","<id>","length","<\/id>",";","<id>","i","<\/id>","++",")","{","if","(","<id>","components","<\/id>","[","<id>","i","<\/id>","]","instanceof","<id>","abstract","Button","<\/id>",")","{","<id>","abstract","Button","<\/id>","<id>","button","<\/id>","=","(","<id>","abstract","Button","<\/id>",")","<id>","components","<\/id>","[","<id>","i","<\/id>","]",";","<id>","button","<\/id>",".","<id>","set","Preferred","Size","<\/id>","(","<id>","dim","<\/id>",")",";","<id>","button","<\/id>",".","<id>","set","Maximum","Size","<\/id>","(","<id>","dim","<\/id>",")",";","<id>","button","<\/id>",".","<id>","set","Minimum","Size","<\/id>","(","<id>","dim","<\/id>",")",";","}","}","}","<SENTENCE_END\/>"],"file_name":"CommandButtonGroup.java","formatted_lines":["{"," Dimension dim = new Dimension(myPreferredW, myPreferredH);"," Component[] components = getComponents();"," if (components == null) return;"," for(int i = 0; i < components.length; i++)"," {"," if (components[i] instanceof AbstractButton)"," {"," AbstractButton button = (AbstractButton)components[i];"," button.setPreferredSize(dim);"," button.setMaximumSize(dim);"," button.setMinimumSize(dim);"," }"," }","}"],"function_name":"updateButtonSizes","function_name_tokens":["update","button","sizes"],"id_body_hash":"acdbe81962d6ba3046cdeff181bab47b","id_same_identifier_list":[0,1,2,3,4,5,6,7,8,8,8,9,10,10,10,11,12,13,14,15,16,17,18,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,54,55,56,57,57,58,59,60,61,61,62,63,64,65,66,67,68,69,70,70,70,71,72,73,74,75,76,77,77,77,78,79,80,81,82,83,84,84,84,85,86,87,88,89,90,91,92],"option_correct":"updateButtonSizes","options":["updateButtonState","setUsePerProjectSettings","addRecentGroup","updateColumnSizes","updateButtonSizes","updateCustomButton","containsSurroundedTextMarker"],"options_nlp":["update button state","set use per project settings","add recent group","update column sizes","update button sizes","update custom button","contains surrounded text marker"],"options_random":["setUsePerProjectSettings","addRecentGroup","containsSurroundedTextMarker"],"options_tfidf":["updateColumnSizes","updateCustomButton","updateButtonState"],"project_name":"intellij-community","source_code_string":"private void updateButtonSizes() {\n Dimension dim = new Dimension(myPreferredW, myPreferredH);\n Component[] components = getComponents();\n if (components == null) return;\n for(int i = 0; i < components.length; i++){\n if (components[i] instanceof AbstractButton){\n AbstractButton button = (AbstractButton)components[i];\n button.setPreferredSize(dim);\n button.setMaximumSize(dim);\n button.setMinimumSize(dim);\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":"dimension","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"dim","start_char":14,"line":1},{"index_id":3,"token_group":3,"text":"=","start_char":18,"line":1},{"index_id":4,"token_group":4,"text":"new","start_char":20,"line":1},{"index_id":5,"token_group":5,"text":"dimension","start_char":24,"line":1},{"index_id":6,"token_group":6,"text":"(","start_char":33,"line":1},{"index_id":7,"token_group":7,"text":"my","start_char":34,"line":1},{"index_id":8,"token_group":8,"text":"Preferred","start_char":36,"line":1},{"index_id":9,"token_group":8,"text":"W","start_char":45,"line":1},{"index_id":10,"token_group":8,"text":",","start_char":46,"line":1},{"index_id":11,"token_group":9,"text":"my","start_char":48,"line":1},{"index_id":12,"token_group":10,"text":"Preferred","start_char":50,"line":1},{"index_id":13,"token_group":10,"text":"H","start_char":59,"line":1},{"index_id":14,"token_group":10,"text":")","start_char":60,"line":1},{"index_id":15,"token_group":11,"text":";","start_char":61,"line":1},{"index_id":16,"token_group":12,"text":"component","start_char":4,"line":2},{"index_id":17,"token_group":13,"text":"[","start_char":13,"line":2},{"index_id":18,"token_group":14,"text":"]","start_char":14,"line":2},{"index_id":19,"token_group":15,"text":"components","start_char":16,"line":2},{"index_id":20,"token_group":16,"text":"=","start_char":27,"line":2},{"index_id":21,"token_group":17,"text":"get","start_char":29,"line":2},{"index_id":22,"token_group":18,"text":"Components","start_char":32,"line":2},{"index_id":23,"token_group":18,"text":"(","start_char":42,"line":2},{"index_id":24,"token_group":19,"text":")","start_char":43,"line":2},{"index_id":25,"token_group":20,"text":";","start_char":44,"line":2},{"index_id":26,"token_group":21,"text":"if","start_char":4,"line":3},{"index_id":27,"token_group":22,"text":"(","start_char":7,"line":3},{"index_id":28,"token_group":23,"text":"components","start_char":8,"line":3},{"index_id":29,"token_group":24,"text":"==","start_char":19,"line":3},{"index_id":30,"token_group":25,"text":"null","start_char":22,"line":3},{"index_id":31,"token_group":26,"text":")","start_char":26,"line":3},{"index_id":32,"token_group":27,"text":"return","start_char":28,"line":3},{"index_id":33,"token_group":28,"text":";","start_char":34,"line":3},{"index_id":34,"token_group":29,"text":"for","start_char":4,"line":4},{"index_id":35,"token_group":30,"text":"(","start_char":7,"line":4},{"index_id":36,"token_group":31,"text":"int","start_char":8,"line":4},{"index_id":37,"token_group":32,"text":"i","start_char":12,"line":4},{"index_id":38,"token_group":33,"text":"=","start_char":14,"line":4},{"index_id":39,"token_group":34,"text":"0","start_char":16,"line":4},{"index_id":40,"token_group":35,"text":";","start_char":17,"line":4},{"index_id":41,"token_group":36,"text":"i","start_char":19,"line":4},{"index_id":42,"token_group":37,"text":"<","start_char":21,"line":4},{"index_id":43,"token_group":38,"text":"components","start_char":23,"line":4},{"index_id":44,"token_group":39,"text":".","start_char":33,"line":4},{"index_id":45,"token_group":40,"text":"length","start_char":34,"line":4},{"index_id":46,"token_group":41,"text":";","start_char":40,"line":4},{"index_id":47,"token_group":42,"text":"i","start_char":42,"line":4},{"index_id":48,"token_group":43,"text":"++","start_char":43,"line":4},{"index_id":49,"token_group":44,"text":")","start_char":45,"line":4},{"index_id":50,"token_group":45,"text":"{","start_char":4,"line":5},{"index_id":51,"token_group":46,"text":"if","start_char":8,"line":6},{"index_id":52,"token_group":47,"text":"(","start_char":11,"line":6},{"index_id":53,"token_group":48,"text":"components","start_char":12,"line":6},{"index_id":54,"token_group":49,"text":"[","start_char":22,"line":6},{"index_id":55,"token_group":50,"text":"i","start_char":23,"line":6},{"index_id":56,"token_group":51,"text":"]","start_char":24,"line":6},{"index_id":57,"token_group":52,"text":"instanceof","start_char":26,"line":6},{"index_id":58,"token_group":53,"text":"abstract","start_char":37,"line":6},{"index_id":59,"token_group":54,"text":"Button","start_char":45,"line":6},{"index_id":60,"token_group":54,"text":")","start_char":51,"line":6},{"index_id":61,"token_group":55,"text":"{","start_char":8,"line":7},{"index_id":62,"token_group":56,"text":"abstract","start_char":12,"line":8},{"index_id":63,"token_group":57,"text":"Button","start_char":20,"line":8},{"index_id":64,"token_group":57,"text":"button","start_char":27,"line":8},{"index_id":65,"token_group":58,"text":"=","start_char":34,"line":8},{"index_id":66,"token_group":59,"text":"(","start_char":36,"line":8},{"index_id":67,"token_group":60,"text":"abstract","start_char":37,"line":8},{"index_id":68,"token_group":61,"text":"Button","start_char":45,"line":8},{"index_id":69,"token_group":61,"text":")","start_char":51,"line":8},{"index_id":70,"token_group":62,"text":"components","start_char":52,"line":8},{"index_id":71,"token_group":63,"text":"[","start_char":62,"line":8},{"index_id":72,"token_group":64,"text":"i","start_char":63,"line":8},{"index_id":73,"token_group":65,"text":"]","start_char":64,"line":8},{"index_id":74,"token_group":66,"text":";","start_char":65,"line":8},{"index_id":75,"token_group":67,"text":"button","start_char":12,"line":9},{"index_id":76,"token_group":68,"text":".","start_char":18,"line":9},{"index_id":77,"token_group":69,"text":"set","start_char":19,"line":9},{"index_id":78,"token_group":70,"text":"Preferred","start_char":22,"line":9},{"index_id":79,"token_group":70,"text":"Size","start_char":31,"line":9},{"index_id":80,"token_group":70,"text":"(","start_char":35,"line":9},{"index_id":81,"token_group":71,"text":"dim","start_char":36,"line":9},{"index_id":82,"token_group":72,"text":")","start_char":39,"line":9},{"index_id":83,"token_group":73,"text":";","start_char":40,"line":9},{"index_id":84,"token_group":74,"text":"button","start_char":12,"line":10},{"index_id":85,"token_group":75,"text":".","start_char":18,"line":10},{"index_id":86,"token_group":76,"text":"set","start_char":19,"line":10},{"index_id":87,"token_group":77,"text":"Maximum","start_char":22,"line":10},{"index_id":88,"token_group":77,"text":"Size","start_char":29,"line":10},{"index_id":89,"token_group":77,"text":"(","start_char":33,"line":10},{"index_id":90,"token_group":78,"text":"dim","start_char":34,"line":10},{"index_id":91,"token_group":79,"text":")","start_char":37,"line":10},{"index_id":92,"token_group":80,"text":";","start_char":38,"line":10},{"index_id":93,"token_group":81,"text":"button","start_char":12,"line":11},{"index_id":94,"token_group":82,"text":".","start_char":18,"line":11},{"index_id":95,"token_group":83,"text":"set","start_char":19,"line":11},{"index_id":96,"token_group":84,"text":"Minimum","start_char":22,"line":11},{"index_id":97,"token_group":84,"text":"Size","start_char":29,"line":11},{"index_id":98,"token_group":84,"text":"(","start_char":33,"line":11},{"index_id":99,"token_group":85,"text":"dim","start_char":34,"line":11},{"index_id":100,"token_group":86,"text":")","start_char":37,"line":11},{"index_id":101,"token_group":87,"text":";","start_char":38,"line":11},{"index_id":102,"token_group":88,"text":"}","start_char":8,"line":12},{"index_id":103,"token_group":89,"text":"}","start_char":4,"line":13},{"index_id":104,"token_group":90,"text":"}","start_char":0,"line":14}],"tokens_list":["{","dimension","dim","=","new","dimension","(","my","Preferred","W",",","my","Preferred","H",")",";","component","[","]","components","=","get","Components","(",")",";","if","(","components","==","null",")","return",";","for","(","int","i","=","0",";","i","<","components",".","length",";","i","++",")","{","if","(","components","[","i","]","instanceof","abstract","Button",")","{","abstract","Button","button","=","(","abstract","Button",")","components","[","i","]",";","button",".","set","Preferred","Size","(","dim",")",";","button",".","set","Maximum","Size","(","dim",")",";","button",".","set","Minimum","Size","(","dim",")",";","}","}","}"],"uuid":"a663523381604eb80751e854b9f16615"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","list","<\/id>","<","<id>","psi","Element","<\/id>",">","<id>","elements","<\/id>","=","<id>","container","Util","<\/id>",".","<id>","new","Array","List","<\/id>","(",")",";","if","(","<id>","editor","<\/id>","!=","null",")","{","<id>","psi","Reference","<\/id>","<id>","reference","<\/id>","=","<id>","target","Element","Util","<\/id>",".","<id>","find","Reference","<\/id>","(","<id>","editor","<\/id>",")",";","if","(","<id>","reference","<\/id>","!=","null",")","{","<id>","container","Util","<\/id>",".","<id>","add","If","Not","Null","<\/id>","(","<id>","elements","<\/id>",",","<id>","reference","<\/id>",".","<id>","get","Element","<\/id>","(",")",")",";","}","}","if","(","<id>","elements","<\/id>",".","<id>","is","Empty","<\/id>","(",")",")","{","<id>","container","Util","<\/id>",".","<id>","add","If","Not","Null","<\/id>","(","<id>","elements","<\/id>",",","<id>","common","Data","Keys","<\/id>",".","<id>","psi","Element","<\/id>",".","<id>","get","Data","<\/id>","(","<id>","data","Context","<\/id>",")",")",";","}","if","(","<id>","elements","<\/id>",".","<id>","is","Empty","<\/id>","(",")","&&","<id>","editor","<\/id>","==","null",")","{","final","<id>","project","<\/id>","<id>","project","<\/id>","=","<id>","common","Data","Keys","<\/id>",".","<id>","project","<\/id>",".","<id>","get","Data","<\/id>","(","<id>","data","Context","<\/id>",")",";","<id>","virtual","File","<\/id>","[","]","<id>","files","<\/id>","=","<id>","common","Data","Keys","<\/id>",".","<id>","virtual","File","Array","<\/id>",".","<id>","get","Data","<\/id>","(","<id>","data","Context","<\/id>",")",";","if","(","<id>","project","<\/id>","!=","null","&&","<id>","files","<\/id>","!=","null",")","{","for","(","<id>","virtual","File","<\/id>","<id>","file","<\/id>",":","<id>","files","<\/id>",")","{","<id>","container","Util","<\/id>",".","<id>","add","If","Not","Null","<\/id>","(","<id>","elements","<\/id>",",","<id>","psi","Manager","<\/id>",".","<id>","get","Instance","<\/id>","(","<id>","project","<\/id>",")",".","<id>","find","File","<\/id>","(","<id>","file","<\/id>",")",")",";","}","}","}","return","<id>","container","Util","<\/id>",".","<id>","map","Not","Null","<\/id>","(","<id>","elements","<\/id>",",","new","<id>","function","<\/id>","<","<id>","psi","Element","<\/id>",",","<id>","psi","Element","<\/id>",">","(",")","{","@","<id>","override","<\/id>","Public","<id>","psi","Element","<\/id>","<id>","fun","<\/id>","(","<id>","psi","Element","<\/id>","<id>","element","<\/id>",")","{","return","<id>","element","<\/id>","Instanceof","<id>","psi","File","<\/id>","&&","!","(","(","<id>","psi","File","<\/id>",")","<id>","element","<\/id>",")",".","<id>","get","View","Provider","<\/id>","(",")",".","<id>","is","Physical","<\/id>","(",")","?","null",":","<id>","adjust","Element","<\/id>","(","<id>","element","<\/id>",")",";","}","}",")",";","}","<SENTENCE_END\/>"],"file_name":"CopyReferenceAction.java","formatted_lines":["{"," List<PsiElement> elements = ContainerUtil.newArrayList();"," if (editor != null)"," {"," PsiReference reference = TargetElementUtil.findReference(editor);"," if (reference != null)"," {"," ContainerUtil.addIfNotNull(elements, reference.getElement());"," }"," }",""," if (elements.isEmpty())"," {"," ContainerUtil.addIfNotNull(elements,"," CommonDataKeys.PSI_ELEMENT.getData(dataContext));"," }",""," if (elements.isEmpty() && editor == null)"," {"," final Project project = CommonDataKeys.PROJECT.getData(dataContext);"," VirtualFile[] files = CommonDataKeys.VIRTUAL_FILE_ARRAY.getData(dataContext);"," if (project != null && files != null)"," {"," for (VirtualFile file : files)"," {"," ContainerUtil.addIfNotNull(elements,"," PsiManager.getInstance(project).findFile(file));"," }"," }"," }",""," return ContainerUtil.mapNotNull(elements,"," new Function<PsiElement, PsiElement>()"," {"," @Override"," public PsiElement fun(PsiElement element)"," {"," return element instanceof PsiFile &&"," !((PsiFile)element).getViewProvider().isPhysical() ? null : adjustElement("," element);"," }"," });","}"],"function_name":"getElementsToCopy","function_name_tokens":["get","elements","to","copy"],"id_body_hash":"541b344eb721de6a763e87a7e1b46ceb","id_same_identifier_list":[0,1,2,3,4,4,5,6,7,8,8,9,10,10,10,11,12,13,14,15,16,17,18,19,20,21,21,22,23,24,24,24,25,26,26,27,28,29,30,31,32,33,34,35,36,37,38,38,39,40,40,40,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,57,58,59,60,61,62,62,63,64,64,64,64,65,66,67,68,68,68,69,70,70,71,72,72,73,74,74,75,76,77,78,79,80,81,82,83,83,84,85,86,87,88,89,90,91,92,93,94,95,96,96,96,97,98,99,100,100,101,102,102,103,104,105,105,106,107,108,109,110,110,110,111,112,112,112,113,114,114,115,116,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,132,133,134,135,136,137,138,138,139,140,140,140,140,141,142,143,144,144,145,146,146,147,148,149,150,151,151,152,153,154,155,156,157,158,159,160,161,161,162,163,163,163,164,165,166,167,168,169,170,170,171,172,172,173,174,175,176,177,178,179,180,180,181,182,183,183,184,185,186,187,188,189,190,190,191,192,193,194,195,195,196,197,198,199,200,200,200,201,202,203,204,204,205,206,207,208,209,210,210,211,212,213,214,215,216,217,218,219,220],"option_correct":"getElementsToCopy","options":["getElementsToCopy","getParametersAndSettings","doRefactoring","getElements","getTextValue","getCopy","copy"],"options_nlp":["get elements to copy","get parameters and settings","do refactoring","get elements","get text value","get copy","copy"],"options_random":["getParametersAndSettings","doRefactoring","getTextValue"],"options_tfidf":["getElements","copy","getCopy"],"project_name":"intellij-community","source_code_string":"@NotNull\n private static List<PsiElement> getElementsToCopy(@Nullable final Editor editor, final DataContext dataContext) {\n List<PsiElement> elements = ContainerUtil.newArrayList();\n if (editor != null) {\n PsiReference reference = TargetElementUtil.findReference(editor);\n if (reference != null) {\n ContainerUtil.addIfNotNull(elements, reference.getElement());\n }\n }\n\n if (elements.isEmpty()) {\n ContainerUtil.addIfNotNull(elements, CommonDataKeys.PSI_ELEMENT.getData(dataContext));\n }\n\n if (elements.isEmpty() && editor == null) {\n final Project project = CommonDataKeys.PROJECT.getData(dataContext);\n VirtualFile[] files = CommonDataKeys.VIRTUAL_FILE_ARRAY.getData(dataContext);\n if (project != null && files != null) {\n for (VirtualFile file : files) {\n ContainerUtil.addIfNotNull(elements, PsiManager.getInstance(project).findFile(file));\n }\n }\n }\n\n return ContainerUtil.mapNotNull(elements, new Function<PsiElement, PsiElement>() {\n @Override\n public PsiElement fun(PsiElement element) {\n return element instanceof PsiFile && !((PsiFile)element).getViewProvider().isPhysical() ? null : adjustElement(element);\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":"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":"psi","start_char":9,"line":1},{"index_id":4,"token_group":4,"text":"Element","start_char":12,"line":1},{"index_id":5,"token_group":4,"text":">","start_char":19,"line":1},{"index_id":6,"token_group":5,"text":"elements","start_char":21,"line":1},{"index_id":7,"token_group":6,"text":"=","start_char":30,"line":1},{"index_id":8,"token_group":7,"text":"container","start_char":32,"line":1},{"index_id":9,"token_group":8,"text":"Util","start_char":41,"line":1},{"index_id":10,"token_group":8,"text":".","start_char":45,"line":1},{"index_id":11,"token_group":9,"text":"new","start_char":46,"line":1},{"index_id":12,"token_group":10,"text":"Array","start_char":49,"line":1},{"index_id":13,"token_group":10,"text":"List","start_char":54,"line":1},{"index_id":14,"token_group":10,"text":"(","start_char":58,"line":1},{"index_id":15,"token_group":11,"text":")","start_char":59,"line":1},{"index_id":16,"token_group":12,"text":";","start_char":60,"line":1},{"index_id":17,"token_group":13,"text":"if","start_char":4,"line":2},{"index_id":18,"token_group":14,"text":"(","start_char":7,"line":2},{"index_id":19,"token_group":15,"text":"editor","start_char":8,"line":2},{"index_id":20,"token_group":16,"text":"!=","start_char":15,"line":2},{"index_id":21,"token_group":17,"text":"null","start_char":18,"line":2},{"index_id":22,"token_group":18,"text":")","start_char":22,"line":2},{"index_id":23,"token_group":19,"text":"{","start_char":4,"line":3},{"index_id":24,"token_group":20,"text":"psi","start_char":8,"line":4},{"index_id":25,"token_group":21,"text":"Reference","start_char":11,"line":4},{"index_id":26,"token_group":21,"text":"reference","start_char":21,"line":4},{"index_id":27,"token_group":22,"text":"=","start_char":31,"line":4},{"index_id":28,"token_group":23,"text":"target","start_char":33,"line":4},{"index_id":29,"token_group":24,"text":"Element","start_char":39,"line":4},{"index_id":30,"token_group":24,"text":"Util","start_char":46,"line":4},{"index_id":31,"token_group":24,"text":".","start_char":50,"line":4},{"index_id":32,"token_group":25,"text":"find","start_char":51,"line":4},{"index_id":33,"token_group":26,"text":"Reference","start_char":55,"line":4},{"index_id":34,"token_group":26,"text":"(","start_char":64,"line":4},{"index_id":35,"token_group":27,"text":"editor","start_char":65,"line":4},{"index_id":36,"token_group":28,"text":")","start_char":71,"line":4},{"index_id":37,"token_group":29,"text":";","start_char":72,"line":4},{"index_id":38,"token_group":30,"text":"if","start_char":8,"line":5},{"index_id":39,"token_group":31,"text":"(","start_char":11,"line":5},{"index_id":40,"token_group":32,"text":"reference","start_char":12,"line":5},{"index_id":41,"token_group":33,"text":"!=","start_char":22,"line":5},{"index_id":42,"token_group":34,"text":"null","start_char":25,"line":5},{"index_id":43,"token_group":35,"text":")","start_char":29,"line":5},{"index_id":44,"token_group":36,"text":"{","start_char":8,"line":6},{"index_id":45,"token_group":37,"text":"container","start_char":12,"line":7},{"index_id":46,"token_group":38,"text":"Util","start_char":21,"line":7},{"index_id":47,"token_group":38,"text":".","start_char":25,"line":7},{"index_id":48,"token_group":39,"text":"add","start_char":26,"line":7},{"index_id":49,"token_group":40,"text":"If","start_char":29,"line":7},{"index_id":50,"token_group":40,"text":"Not","start_char":31,"line":7},{"index_id":51,"token_group":40,"text":"Null","start_char":34,"line":7},{"index_id":52,"token_group":40,"text":"(","start_char":38,"line":7},{"index_id":53,"token_group":41,"text":"elements","start_char":39,"line":7},{"index_id":54,"token_group":42,"text":",","start_char":47,"line":7},{"index_id":55,"token_group":43,"text":"reference","start_char":49,"line":7},{"index_id":56,"token_group":44,"text":".","start_char":58,"line":7},{"index_id":57,"token_group":45,"text":"get","start_char":59,"line":7},{"index_id":58,"token_group":46,"text":"Element","start_char":62,"line":7},{"index_id":59,"token_group":46,"text":"(","start_char":69,"line":7},{"index_id":60,"token_group":47,"text":")","start_char":70,"line":7},{"index_id":61,"token_group":48,"text":")","start_char":71,"line":7},{"index_id":62,"token_group":49,"text":";","start_char":72,"line":7},{"index_id":63,"token_group":50,"text":"}","start_char":8,"line":8},{"index_id":64,"token_group":51,"text":"}","start_char":4,"line":9},{"index_id":65,"token_group":52,"text":"if","start_char":4,"line":11},{"index_id":66,"token_group":53,"text":"(","start_char":7,"line":11},{"index_id":67,"token_group":54,"text":"elements","start_char":8,"line":11},{"index_id":68,"token_group":55,"text":".","start_char":16,"line":11},{"index_id":69,"token_group":56,"text":"is","start_char":17,"line":11},{"index_id":70,"token_group":57,"text":"Empty","start_char":19,"line":11},{"index_id":71,"token_group":57,"text":"(","start_char":24,"line":11},{"index_id":72,"token_group":58,"text":")","start_char":25,"line":11},{"index_id":73,"token_group":59,"text":")","start_char":26,"line":11},{"index_id":74,"token_group":60,"text":"{","start_char":4,"line":12},{"index_id":75,"token_group":61,"text":"container","start_char":8,"line":13},{"index_id":76,"token_group":62,"text":"Util","start_char":17,"line":13},{"index_id":77,"token_group":62,"text":".","start_char":21,"line":13},{"index_id":78,"token_group":63,"text":"add","start_char":22,"line":13},{"index_id":79,"token_group":64,"text":"If","start_char":25,"line":13},{"index_id":80,"token_group":64,"text":"Not","start_char":27,"line":13},{"index_id":81,"token_group":64,"text":"Null","start_char":30,"line":13},{"index_id":82,"token_group":64,"text":"(","start_char":34,"line":13},{"index_id":83,"token_group":65,"text":"elements","start_char":35,"line":13},{"index_id":84,"token_group":66,"text":",","start_char":43,"line":13},{"index_id":85,"token_group":67,"text":"common","start_char":35,"line":14},{"index_id":86,"token_group":68,"text":"Data","start_char":41,"line":14},{"index_id":87,"token_group":68,"text":"Keys","start_char":45,"line":14},{"index_id":88,"token_group":68,"text":".","start_char":49,"line":14},{"index_id":89,"token_group":69,"text":"psi","start_char":50,"line":14},{"index_id":90,"token_group":70,"text":"Element","start_char":54,"line":14},{"index_id":91,"token_group":70,"text":".","start_char":61,"line":14},{"index_id":92,"token_group":71,"text":"get","start_char":62,"line":14},{"index_id":93,"token_group":72,"text":"Data","start_char":65,"line":14},{"index_id":94,"token_group":72,"text":"(","start_char":69,"line":14},{"index_id":95,"token_group":73,"text":"data","start_char":70,"line":14},{"index_id":96,"token_group":74,"text":"Context","start_char":74,"line":14},{"index_id":97,"token_group":74,"text":")","start_char":81,"line":14},{"index_id":98,"token_group":75,"text":")","start_char":82,"line":14},{"index_id":99,"token_group":76,"text":";","start_char":83,"line":14},{"index_id":100,"token_group":77,"text":"}","start_char":4,"line":15},{"index_id":101,"token_group":78,"text":"if","start_char":4,"line":17},{"index_id":102,"token_group":79,"text":"(","start_char":7,"line":17},{"index_id":103,"token_group":80,"text":"elements","start_char":8,"line":17},{"index_id":104,"token_group":81,"text":".","start_char":16,"line":17},{"index_id":105,"token_group":82,"text":"is","start_char":17,"line":17},{"index_id":106,"token_group":83,"text":"Empty","start_char":19,"line":17},{"index_id":107,"token_group":83,"text":"(","start_char":24,"line":17},{"index_id":108,"token_group":84,"text":")","start_char":25,"line":17},{"index_id":109,"token_group":85,"text":"&&","start_char":27,"line":17},{"index_id":110,"token_group":86,"text":"editor","start_char":30,"line":17},{"index_id":111,"token_group":87,"text":"==","start_char":37,"line":17},{"index_id":112,"token_group":88,"text":"null","start_char":40,"line":17},{"index_id":113,"token_group":89,"text":")","start_char":44,"line":17},{"index_id":114,"token_group":90,"text":"{","start_char":4,"line":18},{"index_id":115,"token_group":91,"text":"final","start_char":8,"line":19},{"index_id":116,"token_group":92,"text":"project","start_char":14,"line":19},{"index_id":117,"token_group":93,"text":"project","start_char":22,"line":19},{"index_id":118,"token_group":94,"text":"=","start_char":30,"line":19},{"index_id":119,"token_group":95,"text":"common","start_char":32,"line":19},{"index_id":120,"token_group":96,"text":"Data","start_char":38,"line":19},{"index_id":121,"token_group":96,"text":"Keys","start_char":42,"line":19},{"index_id":122,"token_group":96,"text":".","start_char":46,"line":19},{"index_id":123,"token_group":97,"text":"project","start_char":47,"line":19},{"index_id":124,"token_group":98,"text":".","start_char":54,"line":19},{"index_id":125,"token_group":99,"text":"get","start_char":55,"line":19},{"index_id":126,"token_group":100,"text":"Data","start_char":58,"line":19},{"index_id":127,"token_group":100,"text":"(","start_char":62,"line":19},{"index_id":128,"token_group":101,"text":"data","start_char":63,"line":19},{"index_id":129,"token_group":102,"text":"Context","start_char":67,"line":19},{"index_id":130,"token_group":102,"text":")","start_char":74,"line":19},{"index_id":131,"token_group":103,"text":";","start_char":75,"line":19},{"index_id":132,"token_group":104,"text":"virtual","start_char":8,"line":20},{"index_id":133,"token_group":105,"text":"File","start_char":15,"line":20},{"index_id":134,"token_group":105,"text":"[","start_char":19,"line":20},{"index_id":135,"token_group":106,"text":"]","start_char":20,"line":20},{"index_id":136,"token_group":107,"text":"files","start_char":22,"line":20},{"index_id":137,"token_group":108,"text":"=","start_char":28,"line":20},{"index_id":138,"token_group":109,"text":"common","start_char":30,"line":20},{"index_id":139,"token_group":110,"text":"Data","start_char":36,"line":20},{"index_id":140,"token_group":110,"text":"Keys","start_char":40,"line":20},{"index_id":141,"token_group":110,"text":".","start_char":44,"line":20},{"index_id":142,"token_group":111,"text":"virtual","start_char":45,"line":20},{"index_id":143,"token_group":112,"text":"File","start_char":53,"line":20},{"index_id":144,"token_group":112,"text":"Array","start_char":58,"line":20},{"index_id":145,"token_group":112,"text":".","start_char":63,"line":20},{"index_id":146,"token_group":113,"text":"get","start_char":64,"line":20},{"index_id":147,"token_group":114,"text":"Data","start_char":67,"line":20},{"index_id":148,"token_group":114,"text":"(","start_char":71,"line":20},{"index_id":149,"token_group":115,"text":"data","start_char":72,"line":20},{"index_id":150,"token_group":116,"text":"Context","start_char":76,"line":20},{"index_id":151,"token_group":116,"text":")","start_char":83,"line":20},{"index_id":152,"token_group":117,"text":";","start_char":84,"line":20},{"index_id":153,"token_group":118,"text":"if","start_char":8,"line":21},{"index_id":154,"token_group":119,"text":"(","start_char":11,"line":21},{"index_id":155,"token_group":120,"text":"project","start_char":12,"line":21},{"index_id":156,"token_group":121,"text":"!=","start_char":20,"line":21},{"index_id":157,"token_group":122,"text":"null","start_char":23,"line":21},{"index_id":158,"token_group":123,"text":"&&","start_char":28,"line":21},{"index_id":159,"token_group":124,"text":"files","start_char":31,"line":21},{"index_id":160,"token_group":125,"text":"!=","start_char":37,"line":21},{"index_id":161,"token_group":126,"text":"null","start_char":40,"line":21},{"index_id":162,"token_group":127,"text":")","start_char":44,"line":21},{"index_id":163,"token_group":128,"text":"{","start_char":8,"line":22},{"index_id":164,"token_group":129,"text":"for","start_char":12,"line":23},{"index_id":165,"token_group":130,"text":"(","start_char":16,"line":23},{"index_id":166,"token_group":131,"text":"virtual","start_char":17,"line":23},{"index_id":167,"token_group":132,"text":"File","start_char":24,"line":23},{"index_id":168,"token_group":132,"text":"file","start_char":29,"line":23},{"index_id":169,"token_group":133,"text":":","start_char":34,"line":23},{"index_id":170,"token_group":134,"text":"files","start_char":36,"line":23},{"index_id":171,"token_group":135,"text":")","start_char":41,"line":23},{"index_id":172,"token_group":136,"text":"{","start_char":12,"line":24},{"index_id":173,"token_group":137,"text":"container","start_char":16,"line":25},{"index_id":174,"token_group":138,"text":"Util","start_char":25,"line":25},{"index_id":175,"token_group":138,"text":".","start_char":29,"line":25},{"index_id":176,"token_group":139,"text":"add","start_char":30,"line":25},{"index_id":177,"token_group":140,"text":"If","start_char":33,"line":25},{"index_id":178,"token_group":140,"text":"Not","start_char":35,"line":25},{"index_id":179,"token_group":140,"text":"Null","start_char":38,"line":25},{"index_id":180,"token_group":140,"text":"(","start_char":42,"line":25},{"index_id":181,"token_group":141,"text":"elements","start_char":43,"line":25},{"index_id":182,"token_group":142,"text":",","start_char":51,"line":25},{"index_id":183,"token_group":143,"text":"psi","start_char":43,"line":26},{"index_id":184,"token_group":144,"text":"Manager","start_char":46,"line":26},{"index_id":185,"token_group":144,"text":".","start_char":53,"line":26},{"index_id":186,"token_group":145,"text":"get","start_char":54,"line":26},{"index_id":187,"token_group":146,"text":"Instance","start_char":57,"line":26},{"index_id":188,"token_group":146,"text":"(","start_char":65,"line":26},{"index_id":189,"token_group":147,"text":"project","start_char":66,"line":26},{"index_id":190,"token_group":148,"text":")","start_char":73,"line":26},{"index_id":191,"token_group":149,"text":".","start_char":74,"line":26},{"index_id":192,"token_group":150,"text":"find","start_char":75,"line":26},{"index_id":193,"token_group":151,"text":"File","start_char":79,"line":26},{"index_id":194,"token_group":151,"text":"(","start_char":83,"line":26},{"index_id":195,"token_group":152,"text":"file","start_char":84,"line":26},{"index_id":196,"token_group":153,"text":")","start_char":88,"line":26},{"index_id":197,"token_group":154,"text":")","start_char":89,"line":26},{"index_id":198,"token_group":155,"text":";","start_char":90,"line":26},{"index_id":199,"token_group":156,"text":"}","start_char":12,"line":27},{"index_id":200,"token_group":157,"text":"}","start_char":8,"line":28},{"index_id":201,"token_group":158,"text":"}","start_char":4,"line":29},{"index_id":202,"token_group":159,"text":"return","start_char":4,"line":31},{"index_id":203,"token_group":160,"text":"container","start_char":11,"line":31},{"index_id":204,"token_group":161,"text":"Util","start_char":20,"line":31},{"index_id":205,"token_group":161,"text":".","start_char":24,"line":31},{"index_id":206,"token_group":162,"text":"map","start_char":25,"line":31},{"index_id":207,"token_group":163,"text":"Not","start_char":28,"line":31},{"index_id":208,"token_group":163,"text":"Null","start_char":31,"line":31},{"index_id":209,"token_group":163,"text":"(","start_char":35,"line":31},{"index_id":210,"token_group":164,"text":"elements","start_char":36,"line":31},{"index_id":211,"token_group":165,"text":",","start_char":44,"line":31},{"index_id":212,"token_group":166,"text":"new","start_char":36,"line":32},{"index_id":213,"token_group":167,"text":"function","start_char":40,"line":32},{"index_id":214,"token_group":168,"text":"<","start_char":48,"line":32},{"index_id":215,"token_group":169,"text":"psi","start_char":49,"line":32},{"index_id":216,"token_group":170,"text":"Element","start_char":52,"line":32},{"index_id":217,"token_group":170,"text":",","start_char":59,"line":32},{"index_id":218,"token_group":171,"text":"psi","start_char":61,"line":32},{"index_id":219,"token_group":172,"text":"Element","start_char":64,"line":32},{"index_id":220,"token_group":172,"text":">","start_char":71,"line":32},{"index_id":221,"token_group":173,"text":"(","start_char":72,"line":32},{"index_id":222,"token_group":174,"text":")","start_char":73,"line":32},{"index_id":223,"token_group":175,"text":"{","start_char":4,"line":33},{"index_id":224,"token_group":176,"text":"@","start_char":8,"line":34},{"index_id":225,"token_group":177,"text":"override","start_char":9,"line":34},{"index_id":226,"token_group":178,"text":"Public","start_char":8,"line":35},{"index_id":227,"token_group":179,"text":"psi","start_char":15,"line":35},{"index_id":228,"token_group":180,"text":"Element","start_char":18,"line":35},{"index_id":229,"token_group":180,"text":"fun","start_char":26,"line":35},{"index_id":230,"token_group":181,"text":"(","start_char":29,"line":35},{"index_id":231,"token_group":182,"text":"psi","start_char":30,"line":35},{"index_id":232,"token_group":183,"text":"Element","start_char":33,"line":35},{"index_id":233,"token_group":183,"text":"element","start_char":41,"line":35},{"index_id":234,"token_group":184,"text":")","start_char":48,"line":35},{"index_id":235,"token_group":185,"text":"{","start_char":8,"line":36},{"index_id":236,"token_group":186,"text":"return","start_char":12,"line":37},{"index_id":237,"token_group":187,"text":"element","start_char":19,"line":37},{"index_id":238,"token_group":188,"text":"Instanceof","start_char":27,"line":37},{"index_id":239,"token_group":189,"text":"psi","start_char":38,"line":37},{"index_id":240,"token_group":190,"text":"File","start_char":41,"line":37},{"index_id":241,"token_group":190,"text":"&&","start_char":46,"line":37},{"index_id":242,"token_group":191,"text":"!","start_char":19,"line":38},{"index_id":243,"token_group":192,"text":"(","start_char":20,"line":38},{"index_id":244,"token_group":193,"text":"(","start_char":21,"line":38},{"index_id":245,"token_group":194,"text":"psi","start_char":22,"line":38},{"index_id":246,"token_group":195,"text":"File","start_char":25,"line":38},{"index_id":247,"token_group":195,"text":")","start_char":29,"line":38},{"index_id":248,"token_group":196,"text":"element","start_char":30,"line":38},{"index_id":249,"token_group":197,"text":")","start_char":37,"line":38},{"index_id":250,"token_group":198,"text":".","start_char":38,"line":38},{"index_id":251,"token_group":199,"text":"get","start_char":39,"line":38},{"index_id":252,"token_group":200,"text":"View","start_char":42,"line":38},{"index_id":253,"token_group":200,"text":"Provider","start_char":46,"line":38},{"index_id":254,"token_group":200,"text":"(","start_char":54,"line":38},{"index_id":255,"token_group":201,"text":")","start_char":55,"line":38},{"index_id":256,"token_group":202,"text":".","start_char":56,"line":38},{"index_id":257,"token_group":203,"text":"is","start_char":57,"line":38},{"index_id":258,"token_group":204,"text":"Physical","start_char":59,"line":38},{"index_id":259,"token_group":204,"text":"(","start_char":67,"line":38},{"index_id":260,"token_group":205,"text":")","start_char":68,"line":38},{"index_id":261,"token_group":206,"text":"?","start_char":70,"line":38},{"index_id":262,"token_group":207,"text":"null","start_char":72,"line":38},{"index_id":263,"token_group":208,"text":":","start_char":77,"line":38},{"index_id":264,"token_group":209,"text":"adjust","start_char":79,"line":38},{"index_id":265,"token_group":210,"text":"Element","start_char":85,"line":38},{"index_id":266,"token_group":210,"text":"(","start_char":92,"line":38},{"index_id":267,"token_group":211,"text":"element","start_char":23,"line":39},{"index_id":268,"token_group":212,"text":")","start_char":30,"line":39},{"index_id":269,"token_group":213,"text":";","start_char":31,"line":39},{"index_id":270,"token_group":214,"text":"}","start_char":8,"line":40},{"index_id":271,"token_group":215,"text":"}","start_char":4,"line":41},{"index_id":272,"token_group":216,"text":")","start_char":5,"line":41},{"index_id":273,"token_group":217,"text":";","start_char":6,"line":41},{"index_id":274,"token_group":218,"text":"}","start_char":0,"line":42}],"tokens_list":["{","list","<","psi","Element",">","elements","=","container","Util",".","new","Array","List","(",")",";","if","(","editor","!=","null",")","{","psi","Reference","reference","=","target","Element","Util",".","find","Reference","(","editor",")",";","if","(","reference","!=","null",")","{","container","Util",".","add","If","Not","Null","(","elements",",","reference",".","get","Element","(",")",")",";","}","}","if","(","elements",".","is","Empty","(",")",")","{","container","Util",".","add","If","Not","Null","(","elements",",","common","Data","Keys",".","psi","Element",".","get","Data","(","data","Context",")",")",";","}","if","(","elements",".","is","Empty","(",")","&&","editor","==","null",")","{","final","project","project","=","common","Data","Keys",".","project",".","get","Data","(","data","Context",")",";","virtual","File","[","]","files","=","common","Data","Keys",".","virtual","File","Array",".","get","Data","(","data","Context",")",";","if","(","project","!=","null","&&","files","!=","null",")","{","for","(","virtual","File","file",":","files",")","{","container","Util",".","add","If","Not","Null","(","elements",",","psi","Manager",".","get","Instance","(","project",")",".","find","File","(","file",")",")",";","}","}","}","return","container","Util",".","map","Not","Null","(","elements",",","new","function","<","psi","Element",",","psi","Element",">","(",")","{","@","override","Public","psi","Element","fun","(","psi","Element","element",")","{","return","element","Instanceof","psi","File","&&","!","(","(","psi","File",")","element",")",".","get","View","Provider","(",")",".","is","Physical","(",")","?","null",":","adjust","Element","(","element",")",";","}","}",")",";","}"],"uuid":"a0d99d3047629c3c4ff1924dd4f2760c"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","entity","Name","Resolvers","<\/id>",".","<id>","put","<\/id>","(","<id>","resolver","<\/id>",",","<id>","entity","Name","Resolver","Map","Value","<\/id>",")",";","}","<SENTENCE_END\/>"],"file_name":"SessionFactoryImpl.java","formatted_lines":["{"," entityNameResolvers.put( resolver, ENTITY_NAME_RESOLVER_MAP_VALUE );","}"],"function_name":"registerEntityNameResolver","function_name_tokens":["register","entity","name","resolver"],"id_body_hash":"eb672fe400f2b669e94fa95fe6166869","id_same_identifier_list":[0,1,2,2,2,3,4,5,6,7,8,8,8,8,8,9,10,11,12],"option_correct":"registerEntityNameResolver","options":["registerEntityNameResolvers","getComp","registerEntityNameResolver","registerParameters","min","getSubclassTableSpan","addResolver"],"options_nlp":["register entity name resolvers","get comp","register entity name resolver","register parameters","min","get subclass table span","add resolver"],"options_random":["getComp","min","getSubclassTableSpan"],"options_tfidf":["addResolver","registerEntityNameResolvers","registerParameters"],"project_name":"hibernate-orm","source_code_string":"public void registerEntityNameResolver(EntityNameResolver resolver) {\n\t\tentityNameResolvers.put( resolver, ENTITY_NAME_RESOLVER_MAP_VALUE );\n\t}","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"entity","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"Name","start_char":10,"line":1},{"index_id":3,"token_group":2,"text":"Resolvers","start_char":14,"line":1},{"index_id":4,"token_group":2,"text":".","start_char":23,"line":1},{"index_id":5,"token_group":3,"text":"put","start_char":24,"line":1},{"index_id":6,"token_group":4,"text":"(","start_char":27,"line":1},{"index_id":7,"token_group":5,"text":"resolver","start_char":29,"line":1},{"index_id":8,"token_group":6,"text":",","start_char":37,"line":1},{"index_id":9,"token_group":7,"text":"entity","start_char":39,"line":1},{"index_id":10,"token_group":8,"text":"Name","start_char":46,"line":1},{"index_id":11,"token_group":8,"text":"Resolver","start_char":51,"line":1},{"index_id":12,"token_group":8,"text":"Map","start_char":60,"line":1},{"index_id":13,"token_group":8,"text":"Value","start_char":64,"line":1},{"index_id":14,"token_group":8,"text":")","start_char":70,"line":1},{"index_id":15,"token_group":9,"text":";","start_char":71,"line":1},{"index_id":16,"token_group":10,"text":"}","start_char":0,"line":2}],"tokens_list":["{","entity","Name","Resolvers",".","put","(","resolver",",","entity","Name","Resolver","Map","Value",")",";","}"],"uuid":"a215914c97479324268b532744851544"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","string","<\/id>","<id>","status","<\/id>",",","<id>","state","<\/id>",",","<id>","load","<\/id>",",","<id>","str","Owns","<\/id>",",","<id>","host","Id","<\/id>",",","<id>","rack","<\/id>",",","<id>","fmt","<\/id>",";","<id>","fmt","<\/id>","=","<id>","get","Format","<\/id>","(","<id>","has","Effective","Owns","<\/id>",",","<id>","is","Token","Per","Node","<\/id>",")",";","if","(","<id>","live","Nodes","<\/id>",".","<id>","contains","<\/id>","(","<id>","endpoint","<\/id>",")",")","<id>","status","<\/id>","=","\"U\"",";","else","if","(","<id>","unreachable","Nodes","<\/id>",".","<id>","contains","<\/id>","(","<id>","endpoint","<\/id>",")",")","<id>","status","<\/id>","=","\"D\"",";","else","<id>","status","<\/id>","=","\"?\"",";","if","(","<id>","joining","Nodes","<\/id>",".","<id>","contains","<\/id>","(","<id>","endpoint","<\/id>",")",")","<id>","state","<\/id>","=","\"J\"",";","else","if","(","<id>","leaving","Nodes","<\/id>",".","<id>","contains","<\/id>","(","<id>","endpoint","<\/id>",")",")","<id>","state","<\/id>","=","\"L\"",";","else","if","(","<id>","moving","Nodes","<\/id>",".","<id>","contains","<\/id>","(","<id>","endpoint","<\/id>",")",")","<id>","state","<\/id>","=","\"M\"",";","else","<id>","state","<\/id>","=","\"N\"",";","<id>","load","<\/id>","=","<id>","load","Map","<\/id>",".","<id>","contains","Key","<\/id>","(","<id>","endpoint","<\/id>",")","?","<id>","load","Map","<\/id>",".","<id>","get","<\/id>","(","<id>","endpoint","<\/id>",")",":","\"?\"",";","<id>","str","Owns","<\/id>","=","<id>","owns","<\/id>","!=","null","&&","<id>","has","Effective","Owns","<\/id>","?","new","<id>","decimal","Format","<\/id>","(","\"##0.0%\"",")",".","<id>","format","<\/id>","(","<id>","owns","<\/id>",")",":","\"?\"",";","<id>","host","Id","<\/id>","=","<id>","host","Id","Map","<\/id>",".","<id>","get","<\/id>","(","<id>","endpoint","<\/id>",")",";","try","{","<id>","rack","<\/id>","=","<id>","ep","Snitch","Info","<\/id>",".","<id>","get","Rack","<\/id>","(","<id>","endpoint","<\/id>",")",";","}","catch","(","<id>","unknown","Host","Exception","<\/id>","<id>","e","<\/id>",")","{","throw","new","<id>","runtime","Exception","<\/id>","(","<id>","e","<\/id>",")",";","}","<id>","string","<\/id>","<id>","endpoint","Dns","<\/id>","=","<id>","tokens","<\/id>",".","<id>","get","<\/id>","(","0",")",".","<id>","ip","Or","Dns","<\/id>","(",")",";","if","(","<id>","is","Token","Per","Node","<\/id>",")","<id>","system","<\/id>",".","<id>","out","<\/id>",".","<id>","printf","<\/id>","(","<id>","fmt","<\/id>",",","<id>","status","<\/id>",",","<id>","state","<\/id>",",","<id>","endpoint","Dns","<\/id>",",","<id>","load","<\/id>",",","<id>","str","Owns","<\/id>",",","<id>","host","Id","<\/id>",",","<id>","tokens","<\/id>",".","<id>","get","<\/id>","(","0",")",".","<id>","token","<\/id>",",","<id>","rack","<\/id>",")",";","else","<id>","system","<\/id>",".","<id>","out","<\/id>",".","<id>","printf","<\/id>","(","<id>","fmt","<\/id>",",","<id>","status","<\/id>",",","<id>","state","<\/id>",",","<id>","endpoint","Dns","<\/id>",",","<id>","load","<\/id>",",","<id>","tokens","<\/id>",".","<id>","size","<\/id>","(",")",",","<id>","str","Owns","<\/id>",",","<id>","host","Id","<\/id>",",","<id>","rack","<\/id>",")",";","}","<SENTENCE_END\/>"],"file_name":"Status.java","formatted_lines":["{"," String status, state, load, strOwns, hostID, rack, fmt;"," fmt = getFormat(hasEffectiveOwns, isTokenPerNode);"," if (liveNodes.contains(endpoint)) status = \"U\";"," else if (unreachableNodes.contains(endpoint)) status = \"D\";"," else status = \"?\";"," if (joiningNodes.contains(endpoint)) state = \"J\";"," else if (leavingNodes.contains(endpoint)) state = \"L\";"," else if (movingNodes.contains(endpoint)) state = \"M\";"," else state = \"N\";",""," load = loadMap.containsKey(endpoint) ? loadMap.get(endpoint) : \"?\";"," strOwns = owns != null &&"," hasEffectiveOwns ? new DecimalFormat(\"##0.0%\").format(owns) : \"?\";"," hostID = hostIDMap.get(endpoint);",""," try"," {"," rack = epSnitchInfo.getRack(endpoint);"," }"," catch (UnknownHostException e)"," {"," throw new RuntimeException(e);"," }",""," String endpointDns = tokens.get(0).ipOrDns();"," if (isTokenPerNode)"," System.out.printf(fmt, status, state, endpointDns, load, strOwns, hostID,"," tokens.get(0).token, rack);"," else"," System.out.printf(fmt, status, state, endpointDns, load, tokens.size(), strOwns,"," hostID, rack);","}"],"function_name":"printNode","function_name_tokens":["print","node"],"id_body_hash":"05c4ce4bae82049897a8725b27a43260","id_same_identifier_list":[0,1,2,3,4,5,6,7,8,9,9,10,11,11,12,13,14,15,16,17,18,19,19,20,21,21,21,22,23,23,23,23,24,25,26,27,28,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,106,107,108,108,109,110,111,112,113,113,114,115,116,117,118,119,120,121,122,122,123,124,125,126,127,128,128,128,129,130,131,131,132,133,134,135,136,137,138,139,140,141,142,143,143,144,145,145,145,146,147,148,149,150,151,152,153,154,155,156,156,156,157,158,158,159,160,161,162,163,164,165,166,166,166,167,168,169,170,171,172,172,173,174,175,176,177,178,179,179,180,181,182,183,184,185,186,187,188,188,188,189,190,191,192,193,194,194,194,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,208,209,210,211,212,212,213,214,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,241,242,243,244,245,246,247,248,249,250,251,251,252,253,253,254,255,256,257,258,259],"option_correct":"printNode","options":["makeNode","getAbstractType","begin","updateTTL","toNode","printOptions","printNode"],"options_nlp":["make node","get abstract type","begin","update ttl","to node","print options","print node"],"options_random":["updateTTL","getAbstractType","begin"],"options_tfidf":["toNode","printOptions","makeNode"],"project_name":"cassandra","source_code_string":"private void printNode(String endpoint, Float owns, List<HostStat> tokens, boolean hasEffectiveOwns, boolean isTokenPerNode)\n {\n String status, state, load, strOwns, hostID, rack, fmt;\n fmt = getFormat(hasEffectiveOwns, isTokenPerNode);\n if (liveNodes.contains(endpoint)) status = \"U\";\n else if (unreachableNodes.contains(endpoint)) status = \"D\";\n else status = \"?\";\n if (joiningNodes.contains(endpoint)) state = \"J\";\n else if (leavingNodes.contains(endpoint)) state = \"L\";\n else if (movingNodes.contains(endpoint)) state = \"M\";\n else state = \"N\";\n\n load = loadMap.containsKey(endpoint) ? loadMap.get(endpoint) : \"?\";\n strOwns = owns != null && hasEffectiveOwns ? new DecimalFormat(\"##0.0%\").format(owns) : \"?\";\n hostID = hostIDMap.get(endpoint);\n\n try\n {\n rack = epSnitchInfo.getRack(endpoint);\n } catch (UnknownHostException e)\n {\n throw new RuntimeException(e);\n }\n\n String endpointDns = tokens.get(0).ipOrDns();\n if (isTokenPerNode)\n System.out.printf(fmt, status, state, endpointDns, load, strOwns, hostID, tokens.get(0).token, rack);\n else\n System.out.printf(fmt, status, state, endpointDns, load, tokens.size(), strOwns, hostID, rack);\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"string","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"status","start_char":11,"line":1},{"index_id":3,"token_group":3,"text":",","start_char":17,"line":1},{"index_id":4,"token_group":4,"text":"state","start_char":19,"line":1},{"index_id":5,"token_group":5,"text":",","start_char":24,"line":1},{"index_id":6,"token_group":6,"text":"load","start_char":26,"line":1},{"index_id":7,"token_group":7,"text":",","start_char":30,"line":1},{"index_id":8,"token_group":8,"text":"str","start_char":32,"line":1},{"index_id":9,"token_group":9,"text":"Owns","start_char":35,"line":1},{"index_id":10,"token_group":9,"text":",","start_char":39,"line":1},{"index_id":11,"token_group":10,"text":"host","start_char":41,"line":1},{"index_id":12,"token_group":11,"text":"Id","start_char":45,"line":1},{"index_id":13,"token_group":11,"text":",","start_char":47,"line":1},{"index_id":14,"token_group":12,"text":"rack","start_char":49,"line":1},{"index_id":15,"token_group":13,"text":",","start_char":53,"line":1},{"index_id":16,"token_group":14,"text":"fmt","start_char":55,"line":1},{"index_id":17,"token_group":15,"text":";","start_char":58,"line":1},{"index_id":18,"token_group":16,"text":"fmt","start_char":4,"line":2},{"index_id":19,"token_group":17,"text":"=","start_char":8,"line":2},{"index_id":20,"token_group":18,"text":"get","start_char":10,"line":2},{"index_id":21,"token_group":19,"text":"Format","start_char":13,"line":2},{"index_id":22,"token_group":19,"text":"(","start_char":19,"line":2},{"index_id":23,"token_group":20,"text":"has","start_char":20,"line":2},{"index_id":24,"token_group":21,"text":"Effective","start_char":23,"line":2},{"index_id":25,"token_group":21,"text":"Owns","start_char":32,"line":2},{"index_id":26,"token_group":21,"text":",","start_char":36,"line":2},{"index_id":27,"token_group":22,"text":"is","start_char":38,"line":2},{"index_id":28,"token_group":23,"text":"Token","start_char":40,"line":2},{"index_id":29,"token_group":23,"text":"Per","start_char":45,"line":2},{"index_id":30,"token_group":23,"text":"Node","start_char":48,"line":2},{"index_id":31,"token_group":23,"text":")","start_char":52,"line":2},{"index_id":32,"token_group":24,"text":";","start_char":53,"line":2},{"index_id":33,"token_group":25,"text":"if","start_char":4,"line":3},{"index_id":34,"token_group":26,"text":"(","start_char":7,"line":3},{"index_id":35,"token_group":27,"text":"live","start_char":8,"line":3},{"index_id":36,"token_group":28,"text":"Nodes","start_char":12,"line":3},{"index_id":37,"token_group":28,"text":".","start_char":17,"line":3},{"index_id":38,"token_group":29,"text":"contains","start_char":18,"line":3},{"index_id":39,"token_group":30,"text":"(","start_char":26,"line":3},{"index_id":40,"token_group":31,"text":"endpoint","start_char":27,"line":3},{"index_id":41,"token_group":32,"text":")","start_char":35,"line":3},{"index_id":42,"token_group":33,"text":")","start_char":36,"line":3},{"index_id":43,"token_group":34,"text":"status","start_char":38,"line":3},{"index_id":44,"token_group":35,"text":"=","start_char":45,"line":3},{"index_id":45,"token_group":36,"text":"\"U\"","start_char":47,"line":3},{"index_id":46,"token_group":37,"text":";","start_char":50,"line":3},{"index_id":47,"token_group":38,"text":"else","start_char":4,"line":4},{"index_id":48,"token_group":39,"text":"if","start_char":9,"line":4},{"index_id":49,"token_group":40,"text":"(","start_char":12,"line":4},{"index_id":50,"token_group":41,"text":"unreachable","start_char":13,"line":4},{"index_id":51,"token_group":42,"text":"Nodes","start_char":24,"line":4},{"index_id":52,"token_group":42,"text":".","start_char":29,"line":4},{"index_id":53,"token_group":43,"text":"contains","start_char":30,"line":4},{"index_id":54,"token_group":44,"text":"(","start_char":38,"line":4},{"index_id":55,"token_group":45,"text":"endpoint","start_char":39,"line":4},{"index_id":56,"token_group":46,"text":")","start_char":47,"line":4},{"index_id":57,"token_group":47,"text":")","start_char":48,"line":4},{"index_id":58,"token_group":48,"text":"status","start_char":50,"line":4},{"index_id":59,"token_group":49,"text":"=","start_char":57,"line":4},{"index_id":60,"token_group":50,"text":"\"D\"","start_char":59,"line":4},{"index_id":61,"token_group":51,"text":";","start_char":62,"line":4},{"index_id":62,"token_group":52,"text":"else","start_char":4,"line":5},{"index_id":63,"token_group":53,"text":"status","start_char":9,"line":5},{"index_id":64,"token_group":54,"text":"=","start_char":16,"line":5},{"index_id":65,"token_group":55,"text":"\"?\"","start_char":18,"line":5},{"index_id":66,"token_group":56,"text":";","start_char":21,"line":5},{"index_id":67,"token_group":57,"text":"if","start_char":4,"line":6},{"index_id":68,"token_group":58,"text":"(","start_char":7,"line":6},{"index_id":69,"token_group":59,"text":"joining","start_char":8,"line":6},{"index_id":70,"token_group":60,"text":"Nodes","start_char":15,"line":6},{"index_id":71,"token_group":60,"text":".","start_char":20,"line":6},{"index_id":72,"token_group":61,"text":"contains","start_char":21,"line":6},{"index_id":73,"token_group":62,"text":"(","start_char":29,"line":6},{"index_id":74,"token_group":63,"text":"endpoint","start_char":30,"line":6},{"index_id":75,"token_group":64,"text":")","start_char":38,"line":6},{"index_id":76,"token_group":65,"text":")","start_char":39,"line":6},{"index_id":77,"token_group":66,"text":"state","start_char":41,"line":6},{"index_id":78,"token_group":67,"text":"=","start_char":47,"line":6},{"index_id":79,"token_group":68,"text":"\"J\"","start_char":49,"line":6},{"index_id":80,"token_group":69,"text":";","start_char":52,"line":6},{"index_id":81,"token_group":70,"text":"else","start_char":4,"line":7},{"index_id":82,"token_group":71,"text":"if","start_char":9,"line":7},{"index_id":83,"token_group":72,"text":"(","start_char":12,"line":7},{"index_id":84,"token_group":73,"text":"leaving","start_char":13,"line":7},{"index_id":85,"token_group":74,"text":"Nodes","start_char":20,"line":7},{"index_id":86,"token_group":74,"text":".","start_char":25,"line":7},{"index_id":87,"token_group":75,"text":"contains","start_char":26,"line":7},{"index_id":88,"token_group":76,"text":"(","start_char":34,"line":7},{"index_id":89,"token_group":77,"text":"endpoint","start_char":35,"line":7},{"index_id":90,"token_group":78,"text":")","start_char":43,"line":7},{"index_id":91,"token_group":79,"text":")","start_char":44,"line":7},{"index_id":92,"token_group":80,"text":"state","start_char":46,"line":7},{"index_id":93,"token_group":81,"text":"=","start_char":52,"line":7},{"index_id":94,"token_group":82,"text":"\"L\"","start_char":54,"line":7},{"index_id":95,"token_group":83,"text":";","start_char":57,"line":7},{"index_id":96,"token_group":84,"text":"else","start_char":4,"line":8},{"index_id":97,"token_group":85,"text":"if","start_char":9,"line":8},{"index_id":98,"token_group":86,"text":"(","start_char":12,"line":8},{"index_id":99,"token_group":87,"text":"moving","start_char":13,"line":8},{"index_id":100,"token_group":88,"text":"Nodes","start_char":19,"line":8},{"index_id":101,"token_group":88,"text":".","start_char":24,"line":8},{"index_id":102,"token_group":89,"text":"contains","start_char":25,"line":8},{"index_id":103,"token_group":90,"text":"(","start_char":33,"line":8},{"index_id":104,"token_group":91,"text":"endpoint","start_char":34,"line":8},{"index_id":105,"token_group":92,"text":")","start_char":42,"line":8},{"index_id":106,"token_group":93,"text":")","start_char":43,"line":8},{"index_id":107,"token_group":94,"text":"state","start_char":45,"line":8},{"index_id":108,"token_group":95,"text":"=","start_char":51,"line":8},{"index_id":109,"token_group":96,"text":"\"M\"","start_char":53,"line":8},{"index_id":110,"token_group":97,"text":";","start_char":56,"line":8},{"index_id":111,"token_group":98,"text":"else","start_char":4,"line":9},{"index_id":112,"token_group":99,"text":"state","start_char":9,"line":9},{"index_id":113,"token_group":100,"text":"=","start_char":15,"line":9},{"index_id":114,"token_group":101,"text":"\"N\"","start_char":17,"line":9},{"index_id":115,"token_group":102,"text":";","start_char":20,"line":9},{"index_id":116,"token_group":103,"text":"load","start_char":4,"line":11},{"index_id":117,"token_group":104,"text":"=","start_char":9,"line":11},{"index_id":118,"token_group":105,"text":"load","start_char":11,"line":11},{"index_id":119,"token_group":106,"text":"Map","start_char":15,"line":11},{"index_id":120,"token_group":106,"text":".","start_char":18,"line":11},{"index_id":121,"token_group":107,"text":"contains","start_char":19,"line":11},{"index_id":122,"token_group":108,"text":"Key","start_char":27,"line":11},{"index_id":123,"token_group":108,"text":"(","start_char":30,"line":11},{"index_id":124,"token_group":109,"text":"endpoint","start_char":31,"line":11},{"index_id":125,"token_group":110,"text":")","start_char":39,"line":11},{"index_id":126,"token_group":111,"text":"?","start_char":41,"line":11},{"index_id":127,"token_group":112,"text":"load","start_char":43,"line":11},{"index_id":128,"token_group":113,"text":"Map","start_char":47,"line":11},{"index_id":129,"token_group":113,"text":".","start_char":50,"line":11},{"index_id":130,"token_group":114,"text":"get","start_char":51,"line":11},{"index_id":131,"token_group":115,"text":"(","start_char":54,"line":11},{"index_id":132,"token_group":116,"text":"endpoint","start_char":55,"line":11},{"index_id":133,"token_group":117,"text":")","start_char":63,"line":11},{"index_id":134,"token_group":118,"text":":","start_char":65,"line":11},{"index_id":135,"token_group":119,"text":"\"?\"","start_char":67,"line":11},{"index_id":136,"token_group":120,"text":";","start_char":70,"line":11},{"index_id":137,"token_group":121,"text":"str","start_char":4,"line":12},{"index_id":138,"token_group":122,"text":"Owns","start_char":7,"line":12},{"index_id":139,"token_group":122,"text":"=","start_char":12,"line":12},{"index_id":140,"token_group":123,"text":"owns","start_char":14,"line":12},{"index_id":141,"token_group":124,"text":"!=","start_char":19,"line":12},{"index_id":142,"token_group":125,"text":"null","start_char":22,"line":12},{"index_id":143,"token_group":126,"text":"&&","start_char":27,"line":12},{"index_id":144,"token_group":127,"text":"has","start_char":14,"line":13},{"index_id":145,"token_group":128,"text":"Effective","start_char":17,"line":13},{"index_id":146,"token_group":128,"text":"Owns","start_char":26,"line":13},{"index_id":147,"token_group":128,"text":"?","start_char":31,"line":13},{"index_id":148,"token_group":129,"text":"new","start_char":33,"line":13},{"index_id":149,"token_group":130,"text":"decimal","start_char":37,"line":13},{"index_id":150,"token_group":131,"text":"Format","start_char":44,"line":13},{"index_id":151,"token_group":131,"text":"(","start_char":50,"line":13},{"index_id":152,"token_group":132,"text":"\"##0.0%\"","start_char":51,"line":13},{"index_id":153,"token_group":133,"text":")","start_char":59,"line":13},{"index_id":154,"token_group":134,"text":".","start_char":60,"line":13},{"index_id":155,"token_group":135,"text":"format","start_char":61,"line":13},{"index_id":156,"token_group":136,"text":"(","start_char":67,"line":13},{"index_id":157,"token_group":137,"text":"owns","start_char":68,"line":13},{"index_id":158,"token_group":138,"text":")","start_char":72,"line":13},{"index_id":159,"token_group":139,"text":":","start_char":74,"line":13},{"index_id":160,"token_group":140,"text":"\"?\"","start_char":76,"line":13},{"index_id":161,"token_group":141,"text":";","start_char":79,"line":13},{"index_id":162,"token_group":142,"text":"host","start_char":4,"line":14},{"index_id":163,"token_group":143,"text":"Id","start_char":8,"line":14},{"index_id":164,"token_group":143,"text":"=","start_char":11,"line":14},{"index_id":165,"token_group":144,"text":"host","start_char":13,"line":14},{"index_id":166,"token_group":145,"text":"Id","start_char":17,"line":14},{"index_id":167,"token_group":145,"text":"Map","start_char":19,"line":14},{"index_id":168,"token_group":145,"text":".","start_char":22,"line":14},{"index_id":169,"token_group":146,"text":"get","start_char":23,"line":14},{"index_id":170,"token_group":147,"text":"(","start_char":26,"line":14},{"index_id":171,"token_group":148,"text":"endpoint","start_char":27,"line":14},{"index_id":172,"token_group":149,"text":")","start_char":35,"line":14},{"index_id":173,"token_group":150,"text":";","start_char":36,"line":14},{"index_id":174,"token_group":151,"text":"try","start_char":4,"line":16},{"index_id":175,"token_group":152,"text":"{","start_char":4,"line":17},{"index_id":176,"token_group":153,"text":"rack","start_char":8,"line":18},{"index_id":177,"token_group":154,"text":"=","start_char":13,"line":18},{"index_id":178,"token_group":155,"text":"ep","start_char":15,"line":18},{"index_id":179,"token_group":156,"text":"Snitch","start_char":17,"line":18},{"index_id":180,"token_group":156,"text":"Info","start_char":23,"line":18},{"index_id":181,"token_group":156,"text":".","start_char":27,"line":18},{"index_id":182,"token_group":157,"text":"get","start_char":28,"line":18},{"index_id":183,"token_group":158,"text":"Rack","start_char":31,"line":18},{"index_id":184,"token_group":158,"text":"(","start_char":35,"line":18},{"index_id":185,"token_group":159,"text":"endpoint","start_char":36,"line":18},{"index_id":186,"token_group":160,"text":")","start_char":44,"line":18},{"index_id":187,"token_group":161,"text":";","start_char":45,"line":18},{"index_id":188,"token_group":162,"text":"}","start_char":4,"line":19},{"index_id":189,"token_group":163,"text":"catch","start_char":4,"line":20},{"index_id":190,"token_group":164,"text":"(","start_char":10,"line":20},{"index_id":191,"token_group":165,"text":"unknown","start_char":11,"line":20},{"index_id":192,"token_group":166,"text":"Host","start_char":18,"line":20},{"index_id":193,"token_group":166,"text":"Exception","start_char":22,"line":20},{"index_id":194,"token_group":166,"text":"e","start_char":32,"line":20},{"index_id":195,"token_group":167,"text":")","start_char":33,"line":20},{"index_id":196,"token_group":168,"text":"{","start_char":4,"line":21},{"index_id":197,"token_group":169,"text":"throw","start_char":8,"line":22},{"index_id":198,"token_group":170,"text":"new","start_char":14,"line":22},{"index_id":199,"token_group":171,"text":"runtime","start_char":18,"line":22},{"index_id":200,"token_group":172,"text":"Exception","start_char":25,"line":22},{"index_id":201,"token_group":172,"text":"(","start_char":34,"line":22},{"index_id":202,"token_group":173,"text":"e","start_char":35,"line":22},{"index_id":203,"token_group":174,"text":")","start_char":36,"line":22},{"index_id":204,"token_group":175,"text":";","start_char":37,"line":22},{"index_id":205,"token_group":176,"text":"}","start_char":4,"line":23},{"index_id":206,"token_group":177,"text":"string","start_char":4,"line":25},{"index_id":207,"token_group":178,"text":"endpoint","start_char":11,"line":25},{"index_id":208,"token_group":179,"text":"Dns","start_char":19,"line":25},{"index_id":209,"token_group":179,"text":"=","start_char":23,"line":25},{"index_id":210,"token_group":180,"text":"tokens","start_char":25,"line":25},{"index_id":211,"token_group":181,"text":".","start_char":31,"line":25},{"index_id":212,"token_group":182,"text":"get","start_char":32,"line":25},{"index_id":213,"token_group":183,"text":"(","start_char":35,"line":25},{"index_id":214,"token_group":184,"text":"0","start_char":36,"line":25},{"index_id":215,"token_group":185,"text":")","start_char":37,"line":25},{"index_id":216,"token_group":186,"text":".","start_char":38,"line":25},{"index_id":217,"token_group":187,"text":"ip","start_char":39,"line":25},{"index_id":218,"token_group":188,"text":"Or","start_char":41,"line":25},{"index_id":219,"token_group":188,"text":"Dns","start_char":43,"line":25},{"index_id":220,"token_group":188,"text":"(","start_char":46,"line":25},{"index_id":221,"token_group":189,"text":")","start_char":47,"line":25},{"index_id":222,"token_group":190,"text":";","start_char":48,"line":25},{"index_id":223,"token_group":191,"text":"if","start_char":4,"line":26},{"index_id":224,"token_group":192,"text":"(","start_char":7,"line":26},{"index_id":225,"token_group":193,"text":"is","start_char":8,"line":26},{"index_id":226,"token_group":194,"text":"Token","start_char":10,"line":26},{"index_id":227,"token_group":194,"text":"Per","start_char":15,"line":26},{"index_id":228,"token_group":194,"text":"Node","start_char":18,"line":26},{"index_id":229,"token_group":194,"text":")","start_char":22,"line":26},{"index_id":230,"token_group":195,"text":"system","start_char":8,"line":27},{"index_id":231,"token_group":196,"text":".","start_char":14,"line":27},{"index_id":232,"token_group":197,"text":"out","start_char":15,"line":27},{"index_id":233,"token_group":198,"text":".","start_char":18,"line":27},{"index_id":234,"token_group":199,"text":"printf","start_char":19,"line":27},{"index_id":235,"token_group":200,"text":"(","start_char":25,"line":27},{"index_id":236,"token_group":201,"text":"fmt","start_char":26,"line":27},{"index_id":237,"token_group":202,"text":",","start_char":29,"line":27},{"index_id":238,"token_group":203,"text":"status","start_char":31,"line":27},{"index_id":239,"token_group":204,"text":",","start_char":37,"line":27},{"index_id":240,"token_group":205,"text":"state","start_char":39,"line":27},{"index_id":241,"token_group":206,"text":",","start_char":44,"line":27},{"index_id":242,"token_group":207,"text":"endpoint","start_char":46,"line":27},{"index_id":243,"token_group":208,"text":"Dns","start_char":54,"line":27},{"index_id":244,"token_group":208,"text":",","start_char":57,"line":27},{"index_id":245,"token_group":209,"text":"load","start_char":59,"line":27},{"index_id":246,"token_group":210,"text":",","start_char":63,"line":27},{"index_id":247,"token_group":211,"text":"str","start_char":65,"line":27},{"index_id":248,"token_group":212,"text":"Owns","start_char":68,"line":27},{"index_id":249,"token_group":212,"text":",","start_char":72,"line":27},{"index_id":250,"token_group":213,"text":"host","start_char":74,"line":27},{"index_id":251,"token_group":214,"text":"Id","start_char":78,"line":27},{"index_id":252,"token_group":214,"text":",","start_char":80,"line":27},{"index_id":253,"token_group":215,"text":"tokens","start_char":26,"line":28},{"index_id":254,"token_group":216,"text":".","start_char":32,"line":28},{"index_id":255,"token_group":217,"text":"get","start_char":33,"line":28},{"index_id":256,"token_group":218,"text":"(","start_char":36,"line":28},{"index_id":257,"token_group":219,"text":"0","start_char":37,"line":28},{"index_id":258,"token_group":220,"text":")","start_char":38,"line":28},{"index_id":259,"token_group":221,"text":".","start_char":39,"line":28},{"index_id":260,"token_group":222,"text":"token","start_char":40,"line":28},{"index_id":261,"token_group":223,"text":",","start_char":45,"line":28},{"index_id":262,"token_group":224,"text":"rack","start_char":47,"line":28},{"index_id":263,"token_group":225,"text":")","start_char":51,"line":28},{"index_id":264,"token_group":226,"text":";","start_char":52,"line":28},{"index_id":265,"token_group":227,"text":"else","start_char":4,"line":29},{"index_id":266,"token_group":228,"text":"system","start_char":8,"line":30},{"index_id":267,"token_group":229,"text":".","start_char":14,"line":30},{"index_id":268,"token_group":230,"text":"out","start_char":15,"line":30},{"index_id":269,"token_group":231,"text":".","start_char":18,"line":30},{"index_id":270,"token_group":232,"text":"printf","start_char":19,"line":30},{"index_id":271,"token_group":233,"text":"(","start_char":25,"line":30},{"index_id":272,"token_group":234,"text":"fmt","start_char":26,"line":30},{"index_id":273,"token_group":235,"text":",","start_char":29,"line":30},{"index_id":274,"token_group":236,"text":"status","start_char":31,"line":30},{"index_id":275,"token_group":237,"text":",","start_char":37,"line":30},{"index_id":276,"token_group":238,"text":"state","start_char":39,"line":30},{"index_id":277,"token_group":239,"text":",","start_char":44,"line":30},{"index_id":278,"token_group":240,"text":"endpoint","start_char":46,"line":30},{"index_id":279,"token_group":241,"text":"Dns","start_char":54,"line":30},{"index_id":280,"token_group":241,"text":",","start_char":57,"line":30},{"index_id":281,"token_group":242,"text":"load","start_char":59,"line":30},{"index_id":282,"token_group":243,"text":",","start_char":63,"line":30},{"index_id":283,"token_group":244,"text":"tokens","start_char":65,"line":30},{"index_id":284,"token_group":245,"text":".","start_char":71,"line":30},{"index_id":285,"token_group":246,"text":"size","start_char":72,"line":30},{"index_id":286,"token_group":247,"text":"(","start_char":76,"line":30},{"index_id":287,"token_group":248,"text":")","start_char":77,"line":30},{"index_id":288,"token_group":249,"text":",","start_char":78,"line":30},{"index_id":289,"token_group":250,"text":"str","start_char":80,"line":30},{"index_id":290,"token_group":251,"text":"Owns","start_char":83,"line":30},{"index_id":291,"token_group":251,"text":",","start_char":87,"line":30},{"index_id":292,"token_group":252,"text":"host","start_char":26,"line":31},{"index_id":293,"token_group":253,"text":"Id","start_char":30,"line":31},{"index_id":294,"token_group":253,"text":",","start_char":32,"line":31},{"index_id":295,"token_group":254,"text":"rack","start_char":34,"line":31},{"index_id":296,"token_group":255,"text":")","start_char":38,"line":31},{"index_id":297,"token_group":256,"text":";","start_char":39,"line":31},{"index_id":298,"token_group":257,"text":"}","start_char":0,"line":32}],"tokens_list":["{","string","status",",","state",",","load",",","str","Owns",",","host","Id",",","rack",",","fmt",";","fmt","=","get","Format","(","has","Effective","Owns",",","is","Token","Per","Node",")",";","if","(","live","Nodes",".","contains","(","endpoint",")",")","status","=","\"U\"",";","else","if","(","unreachable","Nodes",".","contains","(","endpoint",")",")","status","=","\"D\"",";","else","status","=","\"?\"",";","if","(","joining","Nodes",".","contains","(","endpoint",")",")","state","=","\"J\"",";","else","if","(","leaving","Nodes",".","contains","(","endpoint",")",")","state","=","\"L\"",";","else","if","(","moving","Nodes",".","contains","(","endpoint",")",")","state","=","\"M\"",";","else","state","=","\"N\"",";","load","=","load","Map",".","contains","Key","(","endpoint",")","?","load","Map",".","get","(","endpoint",")",":","\"?\"",";","str","Owns","=","owns","!=","null","&&","has","Effective","Owns","?","new","decimal","Format","(","\"##0.0%\"",")",".","format","(","owns",")",":","\"?\"",";","host","Id","=","host","Id","Map",".","get","(","endpoint",")",";","try","{","rack","=","ep","Snitch","Info",".","get","Rack","(","endpoint",")",";","}","catch","(","unknown","Host","Exception","e",")","{","throw","new","runtime","Exception","(","e",")",";","}","string","endpoint","Dns","=","tokens",".","get","(","0",")",".","ip","Or","Dns","(",")",";","if","(","is","Token","Per","Node",")","system",".","out",".","printf","(","fmt",",","status",",","state",",","endpoint","Dns",",","load",",","str","Owns",",","host","Id",",","tokens",".","get","(","0",")",".","token",",","rack",")",";","else","system",".","out",".","printf","(","fmt",",","status",",","state",",","endpoint","Dns",",","load",",","tokens",".","size","(",")",",","str","Owns",",","host","Id",",","rack",")",";","}"],"uuid":"cdc691f268961dee6ab66d1050337250"},{"cap_original_tokens":["<SENTENCE_START>","{","this",".","<id>","name","<\/id>","=","<id>","name","<\/id>",";","}","<SENTENCE_END\/>"],"file_name":"Catalog.java","formatted_lines":["{"," this.name = name;","}"],"function_name":"setName","function_name_tokens":["set","name"],"id_body_hash":"1baef982a6831f452c5432fc78e7f70f","id_same_identifier_list":[0,1,2,3,4,5,6,7,8,9],"option_correct":"setName","options":["testJobs","openLogFileForRead","setNameNode","setJobName","setFileName","getDefaultReadCachingStrategy","setName"],"options_nlp":["test jobs","open log file for read","set name node","set job name","set file name","get default read caching strategy","set name"],"options_random":["getDefaultReadCachingStrategy","testJobs","openLogFileForRead"],"options_tfidf":["setJobName","setNameNode","setFileName"],"project_name":"hadoop-common","source_code_string":"public void setName(String name) {\n this.name = name;\n }","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":"name","start_char":9,"line":1},{"index_id":4,"token_group":4,"text":"=","start_char":14,"line":1},{"index_id":5,"token_group":5,"text":"name","start_char":16,"line":1},{"index_id":6,"token_group":6,"text":";","start_char":20,"line":1},{"index_id":7,"token_group":7,"text":"}","start_char":0,"line":2}],"tokens_list":["{","this",".","name","=","name",";","}"],"uuid":"240eed23b22c3a0cb496f32fdb4ec1ec"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","dl","File","Entry","Metadata","<\/id>","<id>","new","Dl","File","Entry","Metadata","<\/id>","=","<id>","add","Dl","File","Entry","Metadata","<\/id>","(",")",";","<id>","dl","File","Entry","Metadata","<\/id>","<id>","existing","Dl","File","Entry","Metadata","<\/id>","=","<id>","","Persistence","<\/id>",".","<id>","find","By","Primary","Key","<\/id>","(","<id>","new","Dl","File","Entry","Metadata","<\/id>",".","<id>","get","Primary","Key","<\/id>","(",")",")",";","<id>","assert","<\/id>",".","<id>","assert","Equals","<\/id>","(","<id>","existing","Dl","File","Entry","Metadata","<\/id>",",","<id>","new","Dl","File","Entry","Metadata","<\/id>",")",";","}","<SENTENCE_END\/>"],"file_name":"DLFileEntryMetadataPersistenceTest.java","formatted_lines":["{"," DLFileEntryMetadata newDLFileEntryMetadata = addDLFileEntryMetadata();",""," DLFileEntryMetadata existingDLFileEntryMetadata = _persistence.findByPrimaryKey(newDLFileEntryMetadata.getPrimaryKey());",""," Assert.assertEquals(existingDLFileEntryMetadata, newDLFileEntryMetadata);","}"],"function_name":"testFindByPrimaryKeyExisting","function_name_tokens":["test","find","by","primary","key","existing"],"id_body_hash":"71c35f86ded0a4fef0589e17749f1bdc","id_same_identifier_list":[0,1,2,2,2,2,3,3,3,3,3,4,5,5,5,5,5,6,7,8,9,9,9,9,10,10,10,10,10,11,12,12,13,14,14,14,14,15,16,16,16,16,16,17,18,18,18,19,20,21,22,23,24,25,25,26,27,27,27,27,27,28,29,29,29,29,29,30,31,32,33],"option_correct":"testFindByPrimaryKeyExisting","options":["testFindByPrimaryKeyExisting","getPathArray","testFindByPrimaryKeyMissing","getDLFileShortcutPersistence","getDescription","testDynamicQueryByPrimaryKeyExisting","testFetchByPrimaryKeyExisting"],"options_nlp":["test find by primary key existing","get path array","test find by primary key missing","get dl file shortcut persistence","get description","test dynamic query by primary key existing","test fetch by primary key existing"],"options_random":["getDescription","getPathArray","getDLFileShortcutPersistence"],"options_tfidf":["testDynamicQueryByPrimaryKeyExisting","testFindByPrimaryKeyMissing","testFetchByPrimaryKeyExisting"],"project_name":"liferay-portal","source_code_string":"@Test\n\tpublic void testFindByPrimaryKeyExisting() throws Exception {\n\t\tDLFileEntryMetadata newDLFileEntryMetadata = addDLFileEntryMetadata();\n\n\t\tDLFileEntryMetadata existingDLFileEntryMetadata = _persistence.findByPrimaryKey(newDLFileEntryMetadata.getPrimaryKey());\n\n\t\tAssert.assertEquals(existingDLFileEntryMetadata, newDLFileEntryMetadata);\n\t}","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"dl","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"File","start_char":6,"line":1},{"index_id":3,"token_group":2,"text":"Entry","start_char":10,"line":1},{"index_id":4,"token_group":2,"text":"Metadata","start_char":15,"line":1},{"index_id":5,"token_group":2,"text":"new","start_char":24,"line":1},{"index_id":6,"token_group":3,"text":"Dl","start_char":27,"line":1},{"index_id":7,"token_group":3,"text":"File","start_char":29,"line":1},{"index_id":8,"token_group":3,"text":"Entry","start_char":33,"line":1},{"index_id":9,"token_group":3,"text":"Metadata","start_char":38,"line":1},{"index_id":10,"token_group":3,"text":"=","start_char":47,"line":1},{"index_id":11,"token_group":4,"text":"add","start_char":49,"line":1},{"index_id":12,"token_group":5,"text":"Dl","start_char":52,"line":1},{"index_id":13,"token_group":5,"text":"File","start_char":54,"line":1},{"index_id":14,"token_group":5,"text":"Entry","start_char":58,"line":1},{"index_id":15,"token_group":5,"text":"Metadata","start_char":63,"line":1},{"index_id":16,"token_group":5,"text":"(","start_char":71,"line":1},{"index_id":17,"token_group":6,"text":")","start_char":72,"line":1},{"index_id":18,"token_group":7,"text":";","start_char":73,"line":1},{"index_id":19,"token_group":8,"text":"dl","start_char":4,"line":3},{"index_id":20,"token_group":9,"text":"File","start_char":6,"line":3},{"index_id":21,"token_group":9,"text":"Entry","start_char":10,"line":3},{"index_id":22,"token_group":9,"text":"Metadata","start_char":15,"line":3},{"index_id":23,"token_group":9,"text":"existing","start_char":24,"line":3},{"index_id":24,"token_group":10,"text":"Dl","start_char":32,"line":3},{"index_id":25,"token_group":10,"text":"File","start_char":34,"line":3},{"index_id":26,"token_group":10,"text":"Entry","start_char":38,"line":3},{"index_id":27,"token_group":10,"text":"Metadata","start_char":43,"line":3},{"index_id":28,"token_group":10,"text":"=","start_char":52,"line":3},{"index_id":29,"token_group":11,"text":"","start_char":53,"line":3},{"index_id":30,"token_group":12,"text":"Persistence","start_char":55,"line":3},{"index_id":31,"token_group":12,"text":".","start_char":66,"line":3},{"index_id":32,"token_group":13,"text":"find","start_char":67,"line":3},{"index_id":33,"token_group":14,"text":"By","start_char":71,"line":3},{"index_id":34,"token_group":14,"text":"Primary","start_char":73,"line":3},{"index_id":35,"token_group":14,"text":"Key","start_char":80,"line":3},{"index_id":36,"token_group":14,"text":"(","start_char":83,"line":3},{"index_id":37,"token_group":15,"text":"new","start_char":84,"line":3},{"index_id":38,"token_group":16,"text":"Dl","start_char":87,"line":3},{"index_id":39,"token_group":16,"text":"File","start_char":89,"line":3},{"index_id":40,"token_group":16,"text":"Entry","start_char":93,"line":3},{"index_id":41,"token_group":16,"text":"Metadata","start_char":98,"line":3},{"index_id":42,"token_group":16,"text":".","start_char":106,"line":3},{"index_id":43,"token_group":17,"text":"get","start_char":107,"line":3},{"index_id":44,"token_group":18,"text":"Primary","start_char":110,"line":3},{"index_id":45,"token_group":18,"text":"Key","start_char":117,"line":3},{"index_id":46,"token_group":18,"text":"(","start_char":120,"line":3},{"index_id":47,"token_group":19,"text":")","start_char":121,"line":3},{"index_id":48,"token_group":20,"text":")","start_char":122,"line":3},{"index_id":49,"token_group":21,"text":";","start_char":123,"line":3},{"index_id":50,"token_group":22,"text":"assert","start_char":4,"line":5},{"index_id":51,"token_group":23,"text":".","start_char":10,"line":5},{"index_id":52,"token_group":24,"text":"assert","start_char":11,"line":5},{"index_id":53,"token_group":25,"text":"Equals","start_char":17,"line":5},{"index_id":54,"token_group":25,"text":"(","start_char":23,"line":5},{"index_id":55,"token_group":26,"text":"existing","start_char":24,"line":5},{"index_id":56,"token_group":27,"text":"Dl","start_char":32,"line":5},{"index_id":57,"token_group":27,"text":"File","start_char":34,"line":5},{"index_id":58,"token_group":27,"text":"Entry","start_char":38,"line":5},{"index_id":59,"token_group":27,"text":"Metadata","start_char":43,"line":5},{"index_id":60,"token_group":27,"text":",","start_char":51,"line":5},{"index_id":61,"token_group":28,"text":"new","start_char":53,"line":5},{"index_id":62,"token_group":29,"text":"Dl","start_char":56,"line":5},{"index_id":63,"token_group":29,"text":"File","start_char":58,"line":5},{"index_id":64,"token_group":29,"text":"Entry","start_char":62,"line":5},{"index_id":65,"token_group":29,"text":"Metadata","start_char":67,"line":5},{"index_id":66,"token_group":29,"text":")","start_char":75,"line":5},{"index_id":67,"token_group":30,"text":";","start_char":76,"line":5},{"index_id":68,"token_group":31,"text":"}","start_char":0,"line":6}],"tokens_list":["{","dl","File","Entry","Metadata","new","Dl","File","Entry","Metadata","=","add","Dl","File","Entry","Metadata","(",")",";","dl","File","Entry","Metadata","existing","Dl","File","Entry","Metadata","=","","Persistence",".","find","By","Primary","Key","(","new","Dl","File","Entry","Metadata",".","get","Primary","Key","(",")",")",";","assert",".","assert","Equals","(","existing","Dl","File","Entry","Metadata",",","new","Dl","File","Entry","Metadata",")",";","}"],"uuid":"d9f9e9be76d3517346dc8aa80baadd69"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","leaf","Block","Wrapper","<\/id>","<id>","current","<\/id>","=","<id>","my","First","Token","Block","<\/id>",";","while","(","<id>","current","<\/id>","!=","null",")","{","<id>","current","<\/id>",".","<id>","get","White","Space","<\/id>","(",")",".","<id>","set","Read","Only","<\/id>","(","true",")",";","<id>","current","<\/id>","=","<id>","current","<\/id>",".","<id>","get","Next","Block","<\/id>","(",")",";","}","}","<SENTENCE_END\/>"],"file_name":"FormatProcessor.java","formatted_lines":["{"," LeafBlockWrapper current = myFirstTokenBlock;"," while (current != null)"," {"," current.getWhiteSpace().setReadOnly(true);"," current = current.getNextBlock();"," }","}"],"function_name":"setAllWhiteSpacesAreReadOnly","function_name_tokens":["set","all","white","spaces","are","read","only"],"id_body_hash":"e0f8c2b8e557d8911d9c9542537b04ff","id_same_identifier_list":[0,1,2,2,2,3,4,5,5,5,5,6,7,8,9,10,11,12,13,14,15,16,16,16,17,18,19,20,20,20,21,22,23,24,25,26,27,28,29,29,29,30,31,32,33,34,35],"option_correct":"setAllWhiteSpacesAreReadOnly","options":["setAllWhiteSpacesAreReadOnly","testAutoImportOfGenericReference","setReadOnly","print","containsWhiteSpacesOnly","readOnly","getAsmJar"],"options_nlp":["set all white spaces are read only","test auto import of generic reference","set read only","print","contains white spaces only","read only","get asm jar"],"options_random":["print","testAutoImportOfGenericReference","getAsmJar"],"options_tfidf":["containsWhiteSpacesOnly","setReadOnly","readOnly"],"project_name":"intellij-community","source_code_string":"public void setAllWhiteSpacesAreReadOnly() {\n LeafBlockWrapper current = myFirstTokenBlock;\n while (current != null) {\n current.getWhiteSpace().setReadOnly(true);\n current = current.getNextBlock();\n }\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"leaf","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"Block","start_char":8,"line":1},{"index_id":3,"token_group":2,"text":"Wrapper","start_char":13,"line":1},{"index_id":4,"token_group":2,"text":"current","start_char":21,"line":1},{"index_id":5,"token_group":3,"text":"=","start_char":29,"line":1},{"index_id":6,"token_group":4,"text":"my","start_char":31,"line":1},{"index_id":7,"token_group":5,"text":"First","start_char":33,"line":1},{"index_id":8,"token_group":5,"text":"Token","start_char":38,"line":1},{"index_id":9,"token_group":5,"text":"Block","start_char":43,"line":1},{"index_id":10,"token_group":5,"text":";","start_char":48,"line":1},{"index_id":11,"token_group":6,"text":"while","start_char":4,"line":2},{"index_id":12,"token_group":7,"text":"(","start_char":10,"line":2},{"index_id":13,"token_group":8,"text":"current","start_char":11,"line":2},{"index_id":14,"token_group":9,"text":"!=","start_char":19,"line":2},{"index_id":15,"token_group":10,"text":"null","start_char":22,"line":2},{"index_id":16,"token_group":11,"text":")","start_char":26,"line":2},{"index_id":17,"token_group":12,"text":"{","start_char":4,"line":3},{"index_id":18,"token_group":13,"text":"current","start_char":8,"line":4},{"index_id":19,"token_group":14,"text":".","start_char":15,"line":4},{"index_id":20,"token_group":15,"text":"get","start_char":16,"line":4},{"index_id":21,"token_group":16,"text":"White","start_char":19,"line":4},{"index_id":22,"token_group":16,"text":"Space","start_char":24,"line":4},{"index_id":23,"token_group":16,"text":"(","start_char":29,"line":4},{"index_id":24,"token_group":17,"text":")","start_char":30,"line":4},{"index_id":25,"token_group":18,"text":".","start_char":31,"line":4},{"index_id":26,"token_group":19,"text":"set","start_char":32,"line":4},{"index_id":27,"token_group":20,"text":"Read","start_char":35,"line":4},{"index_id":28,"token_group":20,"text":"Only","start_char":39,"line":4},{"index_id":29,"token_group":20,"text":"(","start_char":43,"line":4},{"index_id":30,"token_group":21,"text":"true","start_char":44,"line":4},{"index_id":31,"token_group":22,"text":")","start_char":48,"line":4},{"index_id":32,"token_group":23,"text":";","start_char":49,"line":4},{"index_id":33,"token_group":24,"text":"current","start_char":8,"line":5},{"index_id":34,"token_group":25,"text":"=","start_char":16,"line":5},{"index_id":35,"token_group":26,"text":"current","start_char":18,"line":5},{"index_id":36,"token_group":27,"text":".","start_char":25,"line":5},{"index_id":37,"token_group":28,"text":"get","start_char":26,"line":5},{"index_id":38,"token_group":29,"text":"Next","start_char":29,"line":5},{"index_id":39,"token_group":29,"text":"Block","start_char":33,"line":5},{"index_id":40,"token_group":29,"text":"(","start_char":38,"line":5},{"index_id":41,"token_group":30,"text":")","start_char":39,"line":5},{"index_id":42,"token_group":31,"text":";","start_char":40,"line":5},{"index_id":43,"token_group":32,"text":"}","start_char":4,"line":6},{"index_id":44,"token_group":33,"text":"}","start_char":0,"line":7}],"tokens_list":["{","leaf","Block","Wrapper","current","=","my","First","Token","Block",";","while","(","current","!=","null",")","{","current",".","get","White","Space","(",")",".","set","Read","Only","(","true",")",";","current","=","current",".","get","Next","Block","(",")",";","}","}"],"uuid":"28f2bdc3470faeae47833dec3c9b9249"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","do","Test","<\/id>","(","\"AClass\"",",","\"I\"",",","true",")",";","}","<SENTENCE_END\/>"],"file_name":"TurnRefsToSuperTest.java","formatted_lines":["public void testUseAsArg() throws Exception { doTest(\"AClass\", \"I\", true); }"],"function_name":"testUseAsArg","function_name_tokens":["test","use","as","arg"],"id_body_hash":"b690e8aec53706b45f09a8c6189527dc","id_same_identifier_list":[0,1,2,2,3,4,5,6,7,8,9,10,11,12],"option_correct":"testUseAsArg","options":["testVarArg","testRefNewInner","testQualifierToArg1","createStub","as","createCBPanel","testUseAsArg"],"options_nlp":["test var arg","test ref new inner","test qualifier to arg 1","create stub","as","create cb panel","test use as arg"],"options_random":["createStub","testRefNewInner","createCBPanel"],"options_tfidf":["testQualifierToArg1","testVarArg","as"],"project_name":"intellij-community","source_code_string":"public void testUseAsArg() throws Exception { doTest(\"AClass\", \"I\", true); }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":38,"line":0},{"index_id":1,"token_group":1,"text":"do","start_char":40,"line":0},{"index_id":2,"token_group":2,"text":"Test","start_char":42,"line":0},{"index_id":3,"token_group":2,"text":"(","start_char":46,"line":0},{"index_id":4,"token_group":3,"text":"\"AClass\"","start_char":47,"line":0},{"index_id":5,"token_group":4,"text":",","start_char":55,"line":0},{"index_id":6,"token_group":5,"text":"\"I\"","start_char":57,"line":0},{"index_id":7,"token_group":6,"text":",","start_char":60,"line":0},{"index_id":8,"token_group":7,"text":"true","start_char":62,"line":0},{"index_id":9,"token_group":8,"text":")","start_char":66,"line":0},{"index_id":10,"token_group":9,"text":";","start_char":67,"line":0},{"index_id":11,"token_group":10,"text":"}","start_char":69,"line":0}],"tokens_list":["{","do","Test","(","\"AClass\"",",","\"I\"",",","true",")",";","}"],"uuid":"202be27f6435519d3b25ea8c3eb4c6f4"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","assert","<\/id>",".","<id>","not","Null","<\/id>","(","<id>","session","<\/id>",",","\"session must not be null\"",")",";","this",".","<id>","native","Session","<\/id>","=","<id>","session","<\/id>",";","}","<SENTENCE_END\/>"],"file_name":"AbstractWebSocketSession.java","formatted_lines":["{"," Assert.notNull(session, \"session must not be null\");"," this.nativeSession = session;","}"],"function_name":"initializeNativeSession","function_name_tokens":["initialize","native","session"],"id_body_hash":"e6c3b54f7986834cce67116e3ea84f38","id_same_identifier_list":[0,1,2,3,4,4,5,6,7,8,9,10,11,12,13,13,14,15,16,17,18],"option_correct":"initializeNativeSession","options":["executeWithNativeSession","isExposeNativeSession","isBridgeMethodFor","initializeNativeSession","getServer","buildFieldList","setExposeNativeSession"],"options_nlp":["execute with native session","is expose native session","is bridge method for","initialize native session","get server","build field list","set expose native session"],"options_random":["isBridgeMethodFor","getServer","buildFieldList"],"options_tfidf":["setExposeNativeSession","executeWithNativeSession","isExposeNativeSession"],"project_name":"spring-framework","source_code_string":"public void initializeNativeSession(T session) {\n\t\tAssert.notNull(session, \"session must not be null\");\n\t\tthis.nativeSession = session;\n\t}","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"assert","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":".","start_char":10,"line":1},{"index_id":3,"token_group":3,"text":"not","start_char":11,"line":1},{"index_id":4,"token_group":4,"text":"Null","start_char":14,"line":1},{"index_id":5,"token_group":4,"text":"(","start_char":18,"line":1},{"index_id":6,"token_group":5,"text":"session","start_char":19,"line":1},{"index_id":7,"token_group":6,"text":",","start_char":26,"line":1},{"index_id":8,"token_group":7,"text":"\"session must not be null\"","start_char":28,"line":1},{"index_id":9,"token_group":8,"text":")","start_char":54,"line":1},{"index_id":10,"token_group":9,"text":";","start_char":55,"line":1},{"index_id":11,"token_group":10,"text":"this","start_char":4,"line":2},{"index_id":12,"token_group":11,"text":".","start_char":8,"line":2},{"index_id":13,"token_group":12,"text":"native","start_char":9,"line":2},{"index_id":14,"token_group":13,"text":"Session","start_char":15,"line":2},{"index_id":15,"token_group":13,"text":"=","start_char":23,"line":2},{"index_id":16,"token_group":14,"text":"session","start_char":25,"line":2},{"index_id":17,"token_group":15,"text":";","start_char":32,"line":2},{"index_id":18,"token_group":16,"text":"}","start_char":0,"line":3}],"tokens_list":["{","assert",".","not","Null","(","session",",","\"session must not be null\"",")",";","this",".","native","Session","=","session",";","}"],"uuid":"1add9f11a35d704cd4238c36a51f2c55"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","internal","Search","Response","<\/id>","<id>","response","<\/id>","=","new","<id>","internal","Search","Response","<\/id>","(",")",";","<id>","response","<\/id>",".","<id>","read","From","<\/id>","(","<id>","in","<\/id>",")",";","return","<id>","response","<\/id>",";","}","<SENTENCE_END\/>"],"file_name":"InternalSearchResponse.java","formatted_lines":["{"," InternalSearchResponse response = new InternalSearchResponse();"," response.readFrom(in);"," return response;","}"],"function_name":"readInternalSearchResponse","function_name_tokens":["read","internal","search","response"],"id_body_hash":"a0554642020fbeaa186fc161a16105d4","id_same_identifier_list":[0,1,2,2,2,3,4,5,6,6,6,7,8,9,10,11,12,12,13,14,15,16,17,18,19,20,21],"option_correct":"readInternalSearchResponse","options":["readGetResponse","innerGetLoadFromStoredFields","testAllVersionsMatchId","readInternalSearchResponse","readNodeResponse","readResponseFrom","addNode"],"options_nlp":["read get response","inner get load from stored fields","test all versions match id","read internal search response","read node response","read response from","add node"],"options_random":["addNode","innerGetLoadFromStoredFields","testAllVersionsMatchId"],"options_tfidf":["readGetResponse","readNodeResponse","readResponseFrom"],"project_name":"elasticsearch","source_code_string":"public static InternalSearchResponse readInternalSearchResponse(StreamInput in) throws IOException {\n InternalSearchResponse response = new InternalSearchResponse();\n response.readFrom(in);\n return response;\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"internal","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"Search","start_char":12,"line":1},{"index_id":3,"token_group":2,"text":"Response","start_char":18,"line":1},{"index_id":4,"token_group":2,"text":"response","start_char":27,"line":1},{"index_id":5,"token_group":3,"text":"=","start_char":36,"line":1},{"index_id":6,"token_group":4,"text":"new","start_char":38,"line":1},{"index_id":7,"token_group":5,"text":"internal","start_char":42,"line":1},{"index_id":8,"token_group":6,"text":"Search","start_char":50,"line":1},{"index_id":9,"token_group":6,"text":"Response","start_char":56,"line":1},{"index_id":10,"token_group":6,"text":"(","start_char":64,"line":1},{"index_id":11,"token_group":7,"text":")","start_char":65,"line":1},{"index_id":12,"token_group":8,"text":";","start_char":66,"line":1},{"index_id":13,"token_group":9,"text":"response","start_char":4,"line":2},{"index_id":14,"token_group":10,"text":".","start_char":12,"line":2},{"index_id":15,"token_group":11,"text":"read","start_char":13,"line":2},{"index_id":16,"token_group":12,"text":"From","start_char":17,"line":2},{"index_id":17,"token_group":12,"text":"(","start_char":21,"line":2},{"index_id":18,"token_group":13,"text":"in","start_char":22,"line":2},{"index_id":19,"token_group":14,"text":")","start_char":24,"line":2},{"index_id":20,"token_group":15,"text":";","start_char":25,"line":2},{"index_id":21,"token_group":16,"text":"return","start_char":4,"line":3},{"index_id":22,"token_group":17,"text":"response","start_char":11,"line":3},{"index_id":23,"token_group":18,"text":";","start_char":19,"line":3},{"index_id":24,"token_group":19,"text":"}","start_char":0,"line":4}],"tokens_list":["{","internal","Search","Response","response","=","new","internal","Search","Response","(",")",";","response",".","read","From","(","in",")",";","return","response",";","}"],"uuid":"096ede195e38ce0c0c0941147add097f"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","properties","<\/id>","<id>","properties","<\/id>","=","new","<id>","properties","<\/id>","(",")",";","for","(","<id>","string","<\/id>","<id>","key","Value","Pair","<\/id>",":","<id>","key","Value","Pairs","<\/id>",")","{","<id>","string","<\/id>","[","]","<id>","key","Value","<\/id>","=","<id>","string","Util","<\/id>",".","<id>","split","<\/id>","(","<id>","key","Value","Pair","<\/id>",",","<id>","char","Pool","<\/id>",".","<id>","equal","<\/id>",")",";","if","(","<id>","array","Util","<\/id>",".","<id>","is","Empty","<\/id>","(","<id>","key","Value","<\/id>",")",")","{","continue",";","}","<id>","string","<\/id>","<id>","value","<\/id>","=","<id>","string","Pool","<\/id>",".","<id>","blank","<\/id>",";","if","(","<id>","key","Value","<\/id>",".","<id>","length","<\/id>","==","2",")","{","<id>","value","<\/id>","=","<id>","key","Value","<\/id>","[","1","]",";","}","<id>","properties","<\/id>",".","<id>","put","<\/id>","(","<id>","key","Value","<\/id>","[","0","]",",","<id>","value","<\/id>",")",";","}","return","<id>","properties","<\/id>",";","}","<SENTENCE_END\/>"],"file_name":"DefaultLDAPSettings.java","formatted_lines":["{"," Properties properties = new Properties();",""," for (String keyValuePair : keyValuePairs)"," {"," String[] keyValue = StringUtil.split(keyValuePair, CharPool.EQUAL);",""," if (ArrayUtil.isEmpty(keyValue))"," {"," continue;"," }",""," String value = StringPool.BLANK;",""," if (keyValue.length == 2)"," {"," value = keyValue[1];"," }",""," properties.put(keyValue[0], value);"," }",""," return properties;","}"],"function_name":"getProperties","function_name_tokens":["get","properties"],"id_body_hash":"9970e971babbe1ea9e4cd04b24574139","id_same_identifier_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,13,13,14,15,15,15,16,17,18,19,20,21,21,22,23,23,24,25,26,27,27,27,28,29,29,30,31,32,33,34,35,36,36,37,38,38,39,40,40,41,42,43,44,45,46,47,48,49,50,50,51,52,53,54,55,56,56,57,58,59,60,61,62,63,64,65,65,66,67,68,69,70,71,72,73,74,75,75,76,77,78,79,80,81,82,83,84,85,86,87,88],"option_correct":"getProperties","options":["testEncryptUFCCRYPT","getCategoryProperties","_getProperties","getProperties","_authenticate","getAssetCategoryPropertyPersistence","getDefaultProperties"],"options_nlp":["test encrypt ufccrypt","get category properties"," get properties","get properties"," authenticate","get asset category property persistence","get default properties"],"options_random":["testEncryptUFCCRYPT","_authenticate","getAssetCategoryPropertyPersistence"],"options_tfidf":["getCategoryProperties","getDefaultProperties","_getProperties"],"project_name":"liferay-portal","source_code_string":"protected Properties getProperties(String[] keyValuePairs) {\n\t\tProperties properties = new Properties();\n\n\t\tfor (String keyValuePair : keyValuePairs) {\n\t\t\tString[] keyValue = StringUtil.split(keyValuePair, CharPool.EQUAL);\n\n\t\t\tif (ArrayUtil.isEmpty(keyValue)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tString value = StringPool.BLANK;\n\n\t\t\tif (keyValue.length == 2) {\n\t\t\t\tvalue = keyValue[1];\n\t\t\t}\n\n\t\t\tproperties.put(keyValue[0], value);\n\t\t}\n\n\t\treturn properties;\n\t}","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"properties","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"properties","start_char":15,"line":1},{"index_id":3,"token_group":3,"text":"=","start_char":26,"line":1},{"index_id":4,"token_group":4,"text":"new","start_char":28,"line":1},{"index_id":5,"token_group":5,"text":"properties","start_char":32,"line":1},{"index_id":6,"token_group":6,"text":"(","start_char":42,"line":1},{"index_id":7,"token_group":7,"text":")","start_char":43,"line":1},{"index_id":8,"token_group":8,"text":";","start_char":44,"line":1},{"index_id":9,"token_group":9,"text":"for","start_char":4,"line":3},{"index_id":10,"token_group":10,"text":"(","start_char":8,"line":3},{"index_id":11,"token_group":11,"text":"string","start_char":9,"line":3},{"index_id":12,"token_group":12,"text":"key","start_char":16,"line":3},{"index_id":13,"token_group":13,"text":"Value","start_char":19,"line":3},{"index_id":14,"token_group":13,"text":"Pair","start_char":24,"line":3},{"index_id":15,"token_group":13,"text":":","start_char":29,"line":3},{"index_id":16,"token_group":14,"text":"key","start_char":31,"line":3},{"index_id":17,"token_group":15,"text":"Value","start_char":34,"line":3},{"index_id":18,"token_group":15,"text":"Pairs","start_char":39,"line":3},{"index_id":19,"token_group":15,"text":")","start_char":44,"line":3},{"index_id":20,"token_group":16,"text":"{","start_char":4,"line":4},{"index_id":21,"token_group":17,"text":"string","start_char":8,"line":5},{"index_id":22,"token_group":18,"text":"[","start_char":14,"line":5},{"index_id":23,"token_group":19,"text":"]","start_char":15,"line":5},{"index_id":24,"token_group":20,"text":"key","start_char":17,"line":5},{"index_id":25,"token_group":21,"text":"Value","start_char":20,"line":5},{"index_id":26,"token_group":21,"text":"=","start_char":26,"line":5},{"index_id":27,"token_group":22,"text":"string","start_char":28,"line":5},{"index_id":28,"token_group":23,"text":"Util","start_char":34,"line":5},{"index_id":29,"token_group":23,"text":".","start_char":38,"line":5},{"index_id":30,"token_group":24,"text":"split","start_char":39,"line":5},{"index_id":31,"token_group":25,"text":"(","start_char":44,"line":5},{"index_id":32,"token_group":26,"text":"key","start_char":45,"line":5},{"index_id":33,"token_group":27,"text":"Value","start_char":48,"line":5},{"index_id":34,"token_group":27,"text":"Pair","start_char":53,"line":5},{"index_id":35,"token_group":27,"text":",","start_char":57,"line":5},{"index_id":36,"token_group":28,"text":"char","start_char":59,"line":5},{"index_id":37,"token_group":29,"text":"Pool","start_char":63,"line":5},{"index_id":38,"token_group":29,"text":".","start_char":67,"line":5},{"index_id":39,"token_group":30,"text":"equal","start_char":68,"line":5},{"index_id":40,"token_group":31,"text":")","start_char":73,"line":5},{"index_id":41,"token_group":32,"text":";","start_char":74,"line":5},{"index_id":42,"token_group":33,"text":"if","start_char":8,"line":7},{"index_id":43,"token_group":34,"text":"(","start_char":11,"line":7},{"index_id":44,"token_group":35,"text":"array","start_char":12,"line":7},{"index_id":45,"token_group":36,"text":"Util","start_char":17,"line":7},{"index_id":46,"token_group":36,"text":".","start_char":21,"line":7},{"index_id":47,"token_group":37,"text":"is","start_char":22,"line":7},{"index_id":48,"token_group":38,"text":"Empty","start_char":24,"line":7},{"index_id":49,"token_group":38,"text":"(","start_char":29,"line":7},{"index_id":50,"token_group":39,"text":"key","start_char":30,"line":7},{"index_id":51,"token_group":40,"text":"Value","start_char":33,"line":7},{"index_id":52,"token_group":40,"text":")","start_char":38,"line":7},{"index_id":53,"token_group":41,"text":")","start_char":39,"line":7},{"index_id":54,"token_group":42,"text":"{","start_char":8,"line":8},{"index_id":55,"token_group":43,"text":"continue","start_char":12,"line":9},{"index_id":56,"token_group":44,"text":";","start_char":20,"line":9},{"index_id":57,"token_group":45,"text":"}","start_char":8,"line":10},{"index_id":58,"token_group":46,"text":"string","start_char":8,"line":12},{"index_id":59,"token_group":47,"text":"value","start_char":15,"line":12},{"index_id":60,"token_group":48,"text":"=","start_char":21,"line":12},{"index_id":61,"token_group":49,"text":"string","start_char":23,"line":12},{"index_id":62,"token_group":50,"text":"Pool","start_char":29,"line":12},{"index_id":63,"token_group":50,"text":".","start_char":33,"line":12},{"index_id":64,"token_group":51,"text":"blank","start_char":34,"line":12},{"index_id":65,"token_group":52,"text":";","start_char":39,"line":12},{"index_id":66,"token_group":53,"text":"if","start_char":8,"line":14},{"index_id":67,"token_group":54,"text":"(","start_char":11,"line":14},{"index_id":68,"token_group":55,"text":"key","start_char":12,"line":14},{"index_id":69,"token_group":56,"text":"Value","start_char":15,"line":14},{"index_id":70,"token_group":56,"text":".","start_char":20,"line":14},{"index_id":71,"token_group":57,"text":"length","start_char":21,"line":14},{"index_id":72,"token_group":58,"text":"==","start_char":28,"line":14},{"index_id":73,"token_group":59,"text":"2","start_char":31,"line":14},{"index_id":74,"token_group":60,"text":")","start_char":32,"line":14},{"index_id":75,"token_group":61,"text":"{","start_char":8,"line":15},{"index_id":76,"token_group":62,"text":"value","start_char":12,"line":16},{"index_id":77,"token_group":63,"text":"=","start_char":18,"line":16},{"index_id":78,"token_group":64,"text":"key","start_char":20,"line":16},{"index_id":79,"token_group":65,"text":"Value","start_char":23,"line":16},{"index_id":80,"token_group":65,"text":"[","start_char":28,"line":16},{"index_id":81,"token_group":66,"text":"1","start_char":29,"line":16},{"index_id":82,"token_group":67,"text":"]","start_char":30,"line":16},{"index_id":83,"token_group":68,"text":";","start_char":31,"line":16},{"index_id":84,"token_group":69,"text":"}","start_char":8,"line":17},{"index_id":85,"token_group":70,"text":"properties","start_char":8,"line":19},{"index_id":86,"token_group":71,"text":".","start_char":18,"line":19},{"index_id":87,"token_group":72,"text":"put","start_char":19,"line":19},{"index_id":88,"token_group":73,"text":"(","start_char":22,"line":19},{"index_id":89,"token_group":74,"text":"key","start_char":23,"line":19},{"index_id":90,"token_group":75,"text":"Value","start_char":26,"line":19},{"index_id":91,"token_group":75,"text":"[","start_char":31,"line":19},{"index_id":92,"token_group":76,"text":"0","start_char":32,"line":19},{"index_id":93,"token_group":77,"text":"]","start_char":33,"line":19},{"index_id":94,"token_group":78,"text":",","start_char":34,"line":19},{"index_id":95,"token_group":79,"text":"value","start_char":36,"line":19},{"index_id":96,"token_group":80,"text":")","start_char":41,"line":19},{"index_id":97,"token_group":81,"text":";","start_char":42,"line":19},{"index_id":98,"token_group":82,"text":"}","start_char":4,"line":20},{"index_id":99,"token_group":83,"text":"return","start_char":4,"line":22},{"index_id":100,"token_group":84,"text":"properties","start_char":11,"line":22},{"index_id":101,"token_group":85,"text":";","start_char":21,"line":22},{"index_id":102,"token_group":86,"text":"}","start_char":0,"line":23}],"tokens_list":["{","properties","properties","=","new","properties","(",")",";","for","(","string","key","Value","Pair",":","key","Value","Pairs",")","{","string","[","]","key","Value","=","string","Util",".","split","(","key","Value","Pair",",","char","Pool",".","equal",")",";","if","(","array","Util",".","is","Empty","(","key","Value",")",")","{","continue",";","}","string","value","=","string","Pool",".","blank",";","if","(","key","Value",".","length","==","2",")","{","value","=","key","Value","[","1","]",";","}","properties",".","put","(","key","Value","[","0","]",",","value",")",";","}","return","properties",";","}"],"uuid":"b33249e9e8fdc4409b3ff593e5454dfe"},{"cap_original_tokens":["<SENTENCE_START>","{","return","this",".","<id>","encoding","<\/id>",";","}","<SENTENCE_END\/>"],"file_name":"Zip.java","formatted_lines":["{"," return this.encoding;","}"],"function_name":"getEncoding","function_name_tokens":["get","encoding"],"id_body_hash":"fbea4702f6ff12ff1a9b1d9599652bea","id_same_identifier_list":[0,1,2,3,4,5,6,7,8],"option_correct":"getEncoding","options":["getEncoding","getGetGetter","get","getConstructibleTypeNames","isClasspathEmpty","publish","getDefaultCharacterEncoding"],"options_nlp":["get encoding","get get getter","get","get constructible type names","is classpath empty","publish","get default character encoding"],"options_random":["isClasspathEmpty","publish","getConstructibleTypeNames"],"options_tfidf":["get","getDefaultCharacterEncoding","getGetGetter"],"project_name":"gradle","source_code_string":"public String getEncoding() {\n return this.encoding;\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":"this","start_char":11,"line":1},{"index_id":3,"token_group":3,"text":".","start_char":15,"line":1},{"index_id":4,"token_group":4,"text":"encoding","start_char":16,"line":1},{"index_id":5,"token_group":5,"text":";","start_char":24,"line":1},{"index_id":6,"token_group":6,"text":"}","start_char":0,"line":2}],"tokens_list":["{","return","this",".","encoding",";","}"],"uuid":"a78f2561981252753e86dc4e677d6180"},{"cap_original_tokens":["<SENTENCE_START>","{","for","(","<id>","language","<\/id>","<id>","l","<\/id>",":","<id>","language","<\/id>",".","<id>","get","Registered","Languages","<\/id>","(",")",")","{","if","(","<id>","is","Available","For","Language","<\/id>","(","<id>","l","<\/id>",")",")","{","return","false",";","}","}","return","true",";","}","<SENTENCE_END\/>"],"file_name":"BasePlatformRefactoringAction.java","formatted_lines":["{"," for(Language l : Language.getRegisteredLanguages())"," {"," if (isAvailableForLanguage(l))"," {"," return false;"," }"," }"," return true;","}"],"function_name":"calcHidden","function_name_tokens":["calc","hidden"],"id_body_hash":"acac1df5e11c484a0bef5c6242b40ea0","id_same_identifier_list":[0,1,2,3,4,5,6,7,8,9,9,9,10,11,12,13,14,15,16,16,16,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31],"option_correct":"calcHidden","options":["calcChildren","setHidden","visitImport","calcHidden","createConsoleChildConfigurable","testStableUpdatePreferredByDefault","calcValue"],"options_nlp":["calc children","set hidden","visit import","calc hidden","create console child configurable","test stable update preferred by default","calc value"],"options_random":["createConsoleChildConfigurable","testStableUpdatePreferredByDefault","visitImport"],"options_tfidf":["calcChildren","setHidden","calcValue"],"project_name":"intellij-community","source_code_string":"private boolean calcHidden() {\n for(Language l: Language.getRegisteredLanguages()) {\n if (isAvailableForLanguage(l)) {\n return false;\n }\n }\n return true;\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"for","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"(","start_char":7,"line":1},{"index_id":3,"token_group":3,"text":"language","start_char":8,"line":1},{"index_id":4,"token_group":4,"text":"l","start_char":17,"line":1},{"index_id":5,"token_group":5,"text":":","start_char":19,"line":1},{"index_id":6,"token_group":6,"text":"language","start_char":21,"line":1},{"index_id":7,"token_group":7,"text":".","start_char":29,"line":1},{"index_id":8,"token_group":8,"text":"get","start_char":30,"line":1},{"index_id":9,"token_group":9,"text":"Registered","start_char":33,"line":1},{"index_id":10,"token_group":9,"text":"Languages","start_char":43,"line":1},{"index_id":11,"token_group":9,"text":"(","start_char":52,"line":1},{"index_id":12,"token_group":10,"text":")","start_char":53,"line":1},{"index_id":13,"token_group":11,"text":")","start_char":54,"line":1},{"index_id":14,"token_group":12,"text":"{","start_char":4,"line":2},{"index_id":15,"token_group":13,"text":"if","start_char":8,"line":3},{"index_id":16,"token_group":14,"text":"(","start_char":11,"line":3},{"index_id":17,"token_group":15,"text":"is","start_char":12,"line":3},{"index_id":18,"token_group":16,"text":"Available","start_char":14,"line":3},{"index_id":19,"token_group":16,"text":"For","start_char":23,"line":3},{"index_id":20,"token_group":16,"text":"Language","start_char":26,"line":3},{"index_id":21,"token_group":16,"text":"(","start_char":34,"line":3},{"index_id":22,"token_group":17,"text":"l","start_char":35,"line":3},{"index_id":23,"token_group":18,"text":")","start_char":36,"line":3},{"index_id":24,"token_group":19,"text":")","start_char":37,"line":3},{"index_id":25,"token_group":20,"text":"{","start_char":8,"line":4},{"index_id":26,"token_group":21,"text":"return","start_char":12,"line":5},{"index_id":27,"token_group":22,"text":"false","start_char":19,"line":5},{"index_id":28,"token_group":23,"text":";","start_char":24,"line":5},{"index_id":29,"token_group":24,"text":"}","start_char":8,"line":6},{"index_id":30,"token_group":25,"text":"}","start_char":4,"line":7},{"index_id":31,"token_group":26,"text":"return","start_char":4,"line":8},{"index_id":32,"token_group":27,"text":"true","start_char":11,"line":8},{"index_id":33,"token_group":28,"text":";","start_char":15,"line":8},{"index_id":34,"token_group":29,"text":"}","start_char":0,"line":9}],"tokens_list":["{","for","(","language","l",":","language",".","get","Registered","Languages","(",")",")","{","if","(","is","Available","For","Language","(","l",")",")","{","return","false",";","}","}","return","true",";","}"],"uuid":"ecc1a769ecb3aafaecced12a8a0da8e1"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","future","<\/id>","<","<id>","object","Value","Pair","<\/id>","<","byte","[","]",",","byte","[","]",">>","<id>","future","<\/id>","=","<id>","process","Util","<\/id>",".","<id>","execute","<\/id>","(","<id>","process","Util","<\/id>",".","<id>","collector","Output","Processor","<\/id>",",","\"jps\"",")",";","<id>","object","Value","Pair","<\/id>","<","byte","[","]",",","byte","[","]",">","<id>","object","Value","Pair","<\/id>","=","<id>","future","<\/id>",".","<id>","get","<\/id>","(",")",";","<id>","string","<\/id>","<id>","std","Out","String","<\/id>","=","new","<id>","string","<\/id>","(","<id>","object","Value","Pair","<\/id>",".","<id>","get","Key","<\/id>","(",")",")",";","if","(","!","<id>","std","Out","String","<\/id>",".","<id>","contains","<\/id>","(","<id>","string","<\/id>",".","<id>","value","Of","<\/id>","(","<id>","process","Id","<\/id>",")",")",")","{","throw","new","<id>","illegal","State","Exception","<\/id>","(","\"JPS cannot detect expected process ID \"","+","<id>","process","Id","<\/id>",")",";","}","byte","[","]","<id>","std","Err","Bytes","<\/id>","=","<id>","object","Value","Pair","<\/id>",".","<id>","get","Value","<\/id>","(",")",";","if","(","<id>","std","Err","Bytes","<\/id>",".","<id>","length","<\/id>","!=","0",")","{","throw","new","<id>","illegal","State","Exception","<\/id>","(","\"JPS returns with error: \"","+","new","<id>","string","<\/id>","(","<id>","std","Err","Bytes","<\/id>",")",")",";","}","}","<SENTENCE_END\/>"],"file_name":"HeapUtil.java","formatted_lines":["private static void _checkJPS(int processId) throws Exception {"," Future<ObjectValuePair<byte[], byte[]>> future = ProcessUtil.execute("," ProcessUtil.COLLECTOR_OUTPUT_PROCESSOR, \"jps\");",""," ObjectValuePair<byte[], byte[]> objectValuePair = future.get();",""," String stdOutString = new String(objectValuePair.getKey());",""," if (!stdOutString.contains(String.valueOf(processId)))"," {"," throw new IllegalStateException("," \"JPS cannot detect expected process ID \" + processId);"," }",""," byte[] stdErrBytes = objectValuePair.getValue();",""," if (stdErrBytes.length != 0)"," {"," throw new IllegalStateException("," \"JPS returns with error: \" + new String(stdErrBytes));"," }","}"],"function_name":"_checkJPS","function_name_tokens":["","check","jps"],"id_body_hash":"cb74b3d9eee2b0bbe36e27c8495a4bf5","id_same_identifier_list":[0,1,2,3,4,4,4,5,6,7,8,9,10,11,12,13,14,15,16,16,17,18,19,20,20,21,22,22,22,23,24,25,26,27,27,27,28,29,30,31,32,33,34,35,36,37,37,37,38,39,40,41,42,43,44,45,46,46,46,47,48,49,50,51,51,51,52,53,53,54,55,56,57,58,59,60,61,61,61,62,63,64,65,66,67,67,68,69,69,70,71,72,73,74,75,76,76,76,77,78,79,80,80,81,82,83,84,85,86,87,87,87,88,89,89,89,90,91,91,92,93,94,95,96,97,97,97,98,99,100,101,102,103,104,105,106,106,106,107,108,109,110,111,112,113,113,113,114,115,116,117,118,119],"option_correct":"_checkJPS","options":["checkAction","checkPermission","check","testCountByG_N","testCountStringEmptyArray","setPermissionService","_checkJPS"],"options_nlp":["check action","check permission","check","test count by g n","test count string empty array","set permission service"," check jps"],"options_random":["testCountStringEmptyArray","setPermissionService","testCountByG_N"],"options_tfidf":["checkPermission","checkAction","check"],"project_name":"liferay-portal","source_code_string":"private static void _checkJPS(int processId) throws Exception {\n\t\tFuture<ObjectValuePair<byte[], byte[]>> future = ProcessUtil.execute(\n\t\t\tProcessUtil.COLLECTOR_OUTPUT_PROCESSOR, \"jps\");\n\n\t\tObjectValuePair<byte[], byte[]> objectValuePair = future.get();\n\n\t\tString stdOutString = new String(objectValuePair.getKey());\n\n\t\tif (!stdOutString.contains(String.valueOf(processId))) {\n\t\t\tthrow new IllegalStateException(\n\t\t\t\t\"JPS cannot detect expected process ID \" + processId);\n\t\t}\n\n\t\tbyte[] stdErrBytes = objectValuePair.getValue();\n\n\t\tif (stdErrBytes.length != 0) {\n\t\t\tthrow new IllegalStateException(\n\t\t\t\t\"JPS returns with error: \" + new String(stdErrBytes));\n\t\t}\n\t}","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":59,"line":0},{"index_id":1,"token_group":1,"text":"future","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"<","start_char":10,"line":1},{"index_id":3,"token_group":3,"text":"object","start_char":11,"line":1},{"index_id":4,"token_group":4,"text":"Value","start_char":17,"line":1},{"index_id":5,"token_group":4,"text":"Pair","start_char":22,"line":1},{"index_id":6,"token_group":4,"text":"<","start_char":26,"line":1},{"index_id":7,"token_group":5,"text":"byte","start_char":27,"line":1},{"index_id":8,"token_group":6,"text":"[","start_char":31,"line":1},{"index_id":9,"token_group":7,"text":"]","start_char":32,"line":1},{"index_id":10,"token_group":8,"text":",","start_char":33,"line":1},{"index_id":11,"token_group":9,"text":"byte","start_char":35,"line":1},{"index_id":12,"token_group":10,"text":"[","start_char":39,"line":1},{"index_id":13,"token_group":11,"text":"]","start_char":40,"line":1},{"index_id":14,"token_group":12,"text":">>","start_char":41,"line":1},{"index_id":15,"token_group":13,"text":"future","start_char":44,"line":1},{"index_id":16,"token_group":14,"text":"=","start_char":51,"line":1},{"index_id":17,"token_group":15,"text":"process","start_char":53,"line":1},{"index_id":18,"token_group":16,"text":"Util","start_char":60,"line":1},{"index_id":19,"token_group":16,"text":".","start_char":64,"line":1},{"index_id":20,"token_group":17,"text":"execute","start_char":65,"line":1},{"index_id":21,"token_group":18,"text":"(","start_char":72,"line":1},{"index_id":22,"token_group":19,"text":"process","start_char":12,"line":2},{"index_id":23,"token_group":20,"text":"Util","start_char":19,"line":2},{"index_id":24,"token_group":20,"text":".","start_char":23,"line":2},{"index_id":25,"token_group":21,"text":"collector","start_char":24,"line":2},{"index_id":26,"token_group":22,"text":"Output","start_char":34,"line":2},{"index_id":27,"token_group":22,"text":"Processor","start_char":41,"line":2},{"index_id":28,"token_group":22,"text":",","start_char":50,"line":2},{"index_id":29,"token_group":23,"text":"\"jps\"","start_char":52,"line":2},{"index_id":30,"token_group":24,"text":")","start_char":57,"line":2},{"index_id":31,"token_group":25,"text":";","start_char":58,"line":2},{"index_id":32,"token_group":26,"text":"object","start_char":4,"line":4},{"index_id":33,"token_group":27,"text":"Value","start_char":10,"line":4},{"index_id":34,"token_group":27,"text":"Pair","start_char":15,"line":4},{"index_id":35,"token_group":27,"text":"<","start_char":19,"line":4},{"index_id":36,"token_group":28,"text":"byte","start_char":20,"line":4},{"index_id":37,"token_group":29,"text":"[","start_char":24,"line":4},{"index_id":38,"token_group":30,"text":"]","start_char":25,"line":4},{"index_id":39,"token_group":31,"text":",","start_char":26,"line":4},{"index_id":40,"token_group":32,"text":"byte","start_char":28,"line":4},{"index_id":41,"token_group":33,"text":"[","start_char":32,"line":4},{"index_id":42,"token_group":34,"text":"]","start_char":33,"line":4},{"index_id":43,"token_group":35,"text":">","start_char":34,"line":4},{"index_id":44,"token_group":36,"text":"object","start_char":36,"line":4},{"index_id":45,"token_group":37,"text":"Value","start_char":42,"line":4},{"index_id":46,"token_group":37,"text":"Pair","start_char":47,"line":4},{"index_id":47,"token_group":37,"text":"=","start_char":52,"line":4},{"index_id":48,"token_group":38,"text":"future","start_char":54,"line":4},{"index_id":49,"token_group":39,"text":".","start_char":60,"line":4},{"index_id":50,"token_group":40,"text":"get","start_char":61,"line":4},{"index_id":51,"token_group":41,"text":"(","start_char":64,"line":4},{"index_id":52,"token_group":42,"text":")","start_char":65,"line":4},{"index_id":53,"token_group":43,"text":";","start_char":66,"line":4},{"index_id":54,"token_group":44,"text":"string","start_char":4,"line":6},{"index_id":55,"token_group":45,"text":"std","start_char":11,"line":6},{"index_id":56,"token_group":46,"text":"Out","start_char":14,"line":6},{"index_id":57,"token_group":46,"text":"String","start_char":17,"line":6},{"index_id":58,"token_group":46,"text":"=","start_char":24,"line":6},{"index_id":59,"token_group":47,"text":"new","start_char":26,"line":6},{"index_id":60,"token_group":48,"text":"string","start_char":30,"line":6},{"index_id":61,"token_group":49,"text":"(","start_char":36,"line":6},{"index_id":62,"token_group":50,"text":"object","start_char":37,"line":6},{"index_id":63,"token_group":51,"text":"Value","start_char":43,"line":6},{"index_id":64,"token_group":51,"text":"Pair","start_char":48,"line":6},{"index_id":65,"token_group":51,"text":".","start_char":52,"line":6},{"index_id":66,"token_group":52,"text":"get","start_char":53,"line":6},{"index_id":67,"token_group":53,"text":"Key","start_char":56,"line":6},{"index_id":68,"token_group":53,"text":"(","start_char":59,"line":6},{"index_id":69,"token_group":54,"text":")","start_char":60,"line":6},{"index_id":70,"token_group":55,"text":")","start_char":61,"line":6},{"index_id":71,"token_group":56,"text":";","start_char":62,"line":6},{"index_id":72,"token_group":57,"text":"if","start_char":4,"line":8},{"index_id":73,"token_group":58,"text":"(","start_char":7,"line":8},{"index_id":74,"token_group":59,"text":"!","start_char":8,"line":8},{"index_id":75,"token_group":60,"text":"std","start_char":9,"line":8},{"index_id":76,"token_group":61,"text":"Out","start_char":12,"line":8},{"index_id":77,"token_group":61,"text":"String","start_char":15,"line":8},{"index_id":78,"token_group":61,"text":".","start_char":21,"line":8},{"index_id":79,"token_group":62,"text":"contains","start_char":22,"line":8},{"index_id":80,"token_group":63,"text":"(","start_char":30,"line":8},{"index_id":81,"token_group":64,"text":"string","start_char":31,"line":8},{"index_id":82,"token_group":65,"text":".","start_char":37,"line":8},{"index_id":83,"token_group":66,"text":"value","start_char":38,"line":8},{"index_id":84,"token_group":67,"text":"Of","start_char":43,"line":8},{"index_id":85,"token_group":67,"text":"(","start_char":45,"line":8},{"index_id":86,"token_group":68,"text":"process","start_char":46,"line":8},{"index_id":87,"token_group":69,"text":"Id","start_char":53,"line":8},{"index_id":88,"token_group":69,"text":")","start_char":55,"line":8},{"index_id":89,"token_group":70,"text":")","start_char":56,"line":8},{"index_id":90,"token_group":71,"text":")","start_char":57,"line":8},{"index_id":91,"token_group":72,"text":"{","start_char":4,"line":9},{"index_id":92,"token_group":73,"text":"throw","start_char":8,"line":10},{"index_id":93,"token_group":74,"text":"new","start_char":14,"line":10},{"index_id":94,"token_group":75,"text":"illegal","start_char":18,"line":10},{"index_id":95,"token_group":76,"text":"State","start_char":25,"line":10},{"index_id":96,"token_group":76,"text":"Exception","start_char":30,"line":10},{"index_id":97,"token_group":76,"text":"(","start_char":39,"line":10},{"index_id":98,"token_group":77,"text":"\"JPS cannot detect expected process ID \"","start_char":12,"line":11},{"index_id":99,"token_group":78,"text":"+","start_char":53,"line":11},{"index_id":100,"token_group":79,"text":"process","start_char":55,"line":11},{"index_id":101,"token_group":80,"text":"Id","start_char":62,"line":11},{"index_id":102,"token_group":80,"text":")","start_char":64,"line":11},{"index_id":103,"token_group":81,"text":";","start_char":65,"line":11},{"index_id":104,"token_group":82,"text":"}","start_char":4,"line":12},{"index_id":105,"token_group":83,"text":"byte","start_char":4,"line":14},{"index_id":106,"token_group":84,"text":"[","start_char":8,"line":14},{"index_id":107,"token_group":85,"text":"]","start_char":9,"line":14},{"index_id":108,"token_group":86,"text":"std","start_char":11,"line":14},{"index_id":109,"token_group":87,"text":"Err","start_char":14,"line":14},{"index_id":110,"token_group":87,"text":"Bytes","start_char":17,"line":14},{"index_id":111,"token_group":87,"text":"=","start_char":23,"line":14},{"index_id":112,"token_group":88,"text":"object","start_char":25,"line":14},{"index_id":113,"token_group":89,"text":"Value","start_char":31,"line":14},{"index_id":114,"token_group":89,"text":"Pair","start_char":36,"line":14},{"index_id":115,"token_group":89,"text":".","start_char":40,"line":14},{"index_id":116,"token_group":90,"text":"get","start_char":41,"line":14},{"index_id":117,"token_group":91,"text":"Value","start_char":44,"line":14},{"index_id":118,"token_group":91,"text":"(","start_char":49,"line":14},{"index_id":119,"token_group":92,"text":")","start_char":50,"line":14},{"index_id":120,"token_group":93,"text":";","start_char":51,"line":14},{"index_id":121,"token_group":94,"text":"if","start_char":4,"line":16},{"index_id":122,"token_group":95,"text":"(","start_char":7,"line":16},{"index_id":123,"token_group":96,"text":"std","start_char":8,"line":16},{"index_id":124,"token_group":97,"text":"Err","start_char":11,"line":16},{"index_id":125,"token_group":97,"text":"Bytes","start_char":14,"line":16},{"index_id":126,"token_group":97,"text":".","start_char":19,"line":16},{"index_id":127,"token_group":98,"text":"length","start_char":20,"line":16},{"index_id":128,"token_group":99,"text":"!=","start_char":27,"line":16},{"index_id":129,"token_group":100,"text":"0","start_char":30,"line":16},{"index_id":130,"token_group":101,"text":")","start_char":31,"line":16},{"index_id":131,"token_group":102,"text":"{","start_char":4,"line":17},{"index_id":132,"token_group":103,"text":"throw","start_char":8,"line":18},{"index_id":133,"token_group":104,"text":"new","start_char":14,"line":18},{"index_id":134,"token_group":105,"text":"illegal","start_char":18,"line":18},{"index_id":135,"token_group":106,"text":"State","start_char":25,"line":18},{"index_id":136,"token_group":106,"text":"Exception","start_char":30,"line":18},{"index_id":137,"token_group":106,"text":"(","start_char":39,"line":18},{"index_id":138,"token_group":107,"text":"\"JPS returns with error: \"","start_char":12,"line":19},{"index_id":139,"token_group":108,"text":"+","start_char":39,"line":19},{"index_id":140,"token_group":109,"text":"new","start_char":41,"line":19},{"index_id":141,"token_group":110,"text":"string","start_char":45,"line":19},{"index_id":142,"token_group":111,"text":"(","start_char":51,"line":19},{"index_id":143,"token_group":112,"text":"std","start_char":52,"line":19},{"index_id":144,"token_group":113,"text":"Err","start_char":55,"line":19},{"index_id":145,"token_group":113,"text":"Bytes","start_char":58,"line":19},{"index_id":146,"token_group":113,"text":")","start_char":63,"line":19},{"index_id":147,"token_group":114,"text":")","start_char":64,"line":19},{"index_id":148,"token_group":115,"text":";","start_char":65,"line":19},{"index_id":149,"token_group":116,"text":"}","start_char":4,"line":20},{"index_id":150,"token_group":117,"text":"}","start_char":0,"line":21}],"tokens_list":["{","future","<","object","Value","Pair","<","byte","[","]",",","byte","[","]",">>","future","=","process","Util",".","execute","(","process","Util",".","collector","Output","Processor",",","\"jps\"",")",";","object","Value","Pair","<","byte","[","]",",","byte","[","]",">","object","Value","Pair","=","future",".","get","(",")",";","string","std","Out","String","=","new","string","(","object","Value","Pair",".","get","Key","(",")",")",";","if","(","!","std","Out","String",".","contains","(","string",".","value","Of","(","process","Id",")",")",")","{","throw","new","illegal","State","Exception","(","\"JPS cannot detect expected process ID \"","+","process","Id",")",";","}","byte","[","]","std","Err","Bytes","=","object","Value","Pair",".","get","Value","(",")",";","if","(","std","Err","Bytes",".","length","!=","0",")","{","throw","new","illegal","State","Exception","(","\"JPS returns with error: \"","+","new","string","(","std","Err","Bytes",")",")",";","}","}"],"uuid":"134925983dd3bcba8ee444dc5eeddd88"},{"cap_original_tokens":["<SENTENCE_START>","{","this",".","<id>","masters","<\/id>","=","<id>","masters","<\/id>",";","}","<SENTENCE_END\/>"],"file_name":"DetailSuperclass.java","formatted_lines":["{"," this.masters = masters;","}"],"function_name":"setMasters","function_name_tokens":["set","masters"],"id_body_hash":"4043bacfddddd24a6491e0a8b909cfc9","id_same_identifier_list":[0,1,2,3,4,5,6,7,8,9],"option_correct":"setMasters","options":["listEmailsOfEvent","set","testPlaceholderReplacement","setA","renderPropertySelect","setC","setMasters"],"options_nlp":["list emails of event","set","test placeholder replacement","set a","render property select","set c","set masters"],"options_random":["listEmailsOfEvent","testPlaceholderReplacement","renderPropertySelect"],"options_tfidf":["setC","setA","set"],"project_name":"hibernate-orm","source_code_string":"public void setMasters(List<Master> masters) {\n\t\tthis.masters = masters;\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":"masters","start_char":9,"line":1},{"index_id":4,"token_group":4,"text":"=","start_char":17,"line":1},{"index_id":5,"token_group":5,"text":"masters","start_char":19,"line":1},{"index_id":6,"token_group":6,"text":";","start_char":26,"line":1},{"index_id":7,"token_group":7,"text":"}","start_char":0,"line":2}],"tokens_list":["{","this",".","masters","=","masters",";","}"],"uuid":"75d3bababc51fdd972779ac5023eb63f"},{"cap_original_tokens":["<SENTENCE_START>","{","int","<id>","error","Code","<\/id>","=","<id>","http","Url","Connection","<\/id>",".","<id>","http","Internal","Error","<\/id>",";","<id>","url","<\/id>","<id>","url","<\/id>","=","new","<id>","url","<\/id>","(","<id>","base","Url","<\/id>","+","\"\/ErrorGeneratorServlet?errorCode=\"","+","<id>","error","Code","<\/id>",")",";","<id>","test","Url","<\/id>","(","<id>","url","<\/id>",",","<id>","error","Code","<\/id>",",","\"500.jsp\"",",","null",")",";","}","<SENTENCE_END\/>"],"file_name":"CustomErrorsUnitTestCase.java","formatted_lines":["{"," int errorCode = HttpURLConnection.HTTP_INTERNAL_ERROR;"," URL url = new URL(baseURL + \"\/ErrorGeneratorServlet?errorCode=\" + errorCode);"," testURL(url, errorCode, \"500.jsp\", null);","}"],"function_name":"test500Error","function_name_tokens":["test","500","error"],"id_body_hash":"8e0400541effcaa7d0fcb65d40e1b4f8","id_same_identifier_list":[0,1,2,3,3,4,5,5,5,6,7,7,7,8,9,10,11,12,13,14,15,15,16,17,18,19,19,20,21,22,22,23,24,25,26,26,27,28,29,30,31,32,33,34],"option_correct":"test500Error","options":["test404Error","test500","test500Error","testExceptionError","geTestMBeanSar","parseRecoveryEnvironmentElement","peekLast"],"options_nlp":["test 404 error","test 500","test 500 error","test exception error","ge test m bean sar","parse recovery environment element","peek last"],"options_random":["geTestMBeanSar","parseRecoveryEnvironmentElement","peekLast"],"options_tfidf":["test500","testExceptionError","test404Error"],"project_name":"wildfly","source_code_string":"@Test \n @OperateOnDeployment(\"error-producer.war\")\n public void test500Error(@ArquillianResource(ErrorGeneratorServlet.class) URL baseURL) throws Exception {\n int errorCode = HttpURLConnection.HTTP_INTERNAL_ERROR;\n URL url = new URL(baseURL + \"\/ErrorGeneratorServlet?errorCode=\" + errorCode);\n testURL(url, errorCode, \"500.jsp\", null);\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":"error","start_char":8,"line":1},{"index_id":3,"token_group":3,"text":"Code","start_char":13,"line":1},{"index_id":4,"token_group":3,"text":"=","start_char":18,"line":1},{"index_id":5,"token_group":4,"text":"http","start_char":20,"line":1},{"index_id":6,"token_group":5,"text":"Url","start_char":24,"line":1},{"index_id":7,"token_group":5,"text":"Connection","start_char":27,"line":1},{"index_id":8,"token_group":5,"text":".","start_char":37,"line":1},{"index_id":9,"token_group":6,"text":"http","start_char":38,"line":1},{"index_id":10,"token_group":7,"text":"Internal","start_char":43,"line":1},{"index_id":11,"token_group":7,"text":"Error","start_char":52,"line":1},{"index_id":12,"token_group":7,"text":";","start_char":57,"line":1},{"index_id":13,"token_group":8,"text":"url","start_char":4,"line":2},{"index_id":14,"token_group":9,"text":"url","start_char":8,"line":2},{"index_id":15,"token_group":10,"text":"=","start_char":12,"line":2},{"index_id":16,"token_group":11,"text":"new","start_char":14,"line":2},{"index_id":17,"token_group":12,"text":"url","start_char":18,"line":2},{"index_id":18,"token_group":13,"text":"(","start_char":21,"line":2},{"index_id":19,"token_group":14,"text":"base","start_char":22,"line":2},{"index_id":20,"token_group":15,"text":"Url","start_char":26,"line":2},{"index_id":21,"token_group":15,"text":"+","start_char":30,"line":2},{"index_id":22,"token_group":16,"text":"\"\/ErrorGeneratorServlet?errorCode=\"","start_char":32,"line":2},{"index_id":23,"token_group":17,"text":"+","start_char":68,"line":2},{"index_id":24,"token_group":18,"text":"error","start_char":70,"line":2},{"index_id":25,"token_group":19,"text":"Code","start_char":75,"line":2},{"index_id":26,"token_group":19,"text":")","start_char":79,"line":2},{"index_id":27,"token_group":20,"text":";","start_char":80,"line":2},{"index_id":28,"token_group":21,"text":"test","start_char":4,"line":3},{"index_id":29,"token_group":22,"text":"Url","start_char":8,"line":3},{"index_id":30,"token_group":22,"text":"(","start_char":11,"line":3},{"index_id":31,"token_group":23,"text":"url","start_char":12,"line":3},{"index_id":32,"token_group":24,"text":",","start_char":15,"line":3},{"index_id":33,"token_group":25,"text":"error","start_char":17,"line":3},{"index_id":34,"token_group":26,"text":"Code","start_char":22,"line":3},{"index_id":35,"token_group":26,"text":",","start_char":26,"line":3},{"index_id":36,"token_group":27,"text":"\"500.jsp\"","start_char":28,"line":3},{"index_id":37,"token_group":28,"text":",","start_char":37,"line":3},{"index_id":38,"token_group":29,"text":"null","start_char":39,"line":3},{"index_id":39,"token_group":30,"text":")","start_char":43,"line":3},{"index_id":40,"token_group":31,"text":";","start_char":44,"line":3},{"index_id":41,"token_group":32,"text":"}","start_char":0,"line":4}],"tokens_list":["{","int","error","Code","=","http","Url","Connection",".","http","Internal","Error",";","url","url","=","new","url","(","base","Url","+","\"\/ErrorGeneratorServlet?errorCode=\"","+","error","Code",")",";","test","Url","(","url",",","error","Code",",","\"500.jsp\"",",","null",")",";","}"],"uuid":"82ccc19e1d23bb954b4d9a4b749c9199"},{"cap_original_tokens":["<SENTENCE_START>","{","if","(","<id>","my","Library","Table","<\/id>","!=","null",")","{","<id>","application","Manager","<\/id>",".","<id>","get","Application","<\/id>","(",")",".","<id>","assert","Write","Access","Allowed","<\/id>","(",")",";","}","if","(","!","<id>","comparing","<\/id>",".","<id>","equal","<\/id>","(","<id>","from","Model","<\/id>",".","<id>","my","Name","<\/id>",",","<id>","my","Name","<\/id>",")",")","{","<id>","my","Name","<\/id>","=","<id>","from","Model","<\/id>",".","<id>","my","Name","<\/id>",";","if","(","<id>","my","Library","Table","<\/id>","Instanceof","<id>","library","Table","Base","<\/id>",")","{","(","(","<id>","library","Table","Base","<\/id>",")","<id>","my","Library","Table","<\/id>",")",".","<id>","fire","Library","Renamed","<\/id>","(","this",")",";","}","}","<id>","my","Kind","<\/id>","=","<id>","from","Model","<\/id>",".","<id>","get","Kind","<\/id>","(",")",";","<id>","my","Properties","<\/id>","=","<id>","from","Model","<\/id>",".","<id>","my","Properties","<\/id>",";","if","(","<id>","are","Roots","Changed","<\/id>","(","<id>","from","Model","<\/id>",")",")","{","<id>","dispose","My","Pointers","<\/id>","(",")",";","<id>","copy","Roots","From","<\/id>","(","<id>","from","Model","<\/id>",")",";","<id>","my","Jar","Directories","<\/id>",".","<id>","copy","From","<\/id>","(","<id>","from","Model","<\/id>",".","<id>","my","Jar","Directories","<\/id>",")",";","<id>","my","Roots","Watcher","<\/id>",".","<id>","update","Watched","Roots","<\/id>","(",")",";","<id>","my","Root","Provider","<\/id>",".","<id>","fire","Root","Set","Changed","<\/id>","(",")",";","}","}","<SENTENCE_END\/>"],"file_name":"LibraryImpl.java","formatted_lines":["{"," if (myLibraryTable != null)"," {"," ApplicationManager.getApplication().assertWriteAccessAllowed();"," }"," if (!Comparing.equal(fromModel.myName, myName))"," {"," myName = fromModel.myName;"," if (myLibraryTable instanceof LibraryTableBase)"," {"," ((LibraryTableBase)myLibraryTable).fireLibraryRenamed(this);"," }"," }"," myKind = fromModel.getKind();"," myProperties = fromModel.myProperties;"," if (areRootsChanged(fromModel))"," {"," disposeMyPointers();"," copyRootsFrom(fromModel);"," myJarDirectories.copyFrom(fromModel.myJarDirectories);"," myRootsWatcher.updateWatchedRoots();"," myRootProvider.fireRootSetChanged();"," }","}"],"function_name":"commit","function_name_tokens":["commit"],"id_body_hash":"04ac1091c12b8502efc36e006fb0c0a3","id_same_identifier_list":[0,1,2,3,4,4,4,5,6,7,8,9,9,10,11,11,12,13,14,15,15,15,15,16,17,18,19,20,21,22,23,24,25,26,27,27,28,29,29,30,31,31,32,33,34,35,35,36,37,37,38,39,39,40,41,42,43,43,43,44,45,45,45,46,47,48,49,50,50,50,51,52,52,52,53,54,55,55,55,56,57,58,59,60,61,62,62,63,64,64,65,66,66,67,68,69,70,70,71,72,72,73,74,74,75,76,77,78,78,78,79,80,80,81,82,83,84,84,84,85,86,87,88,88,88,89,90,90,91,92,93,93,93,94,95,95,96,97,97,98,99,99,99,100,101,102,102,102,103,104,104,104,105,106,107,108,108,108,109,110,110,110,110,111,112,113,114,115,116],"option_correct":"commit","options":["commit","assertExplodedLayout","setTemplateLanguage","doCommit","testRenameVarOuterConstToInnerConst","commitAll","_commit"],"options_nlp":["commit","assert exploded layout","set template language","do commit","test rename var outer const to inner const","commit all"," commit"],"options_random":["setTemplateLanguage","testRenameVarOuterConstToInnerConst","assertExplodedLayout"],"options_tfidf":["_commit","commitAll","doCommit"],"project_name":"intellij-community","source_code_string":"private void commit(@NotNull LibraryImpl fromModel) {\n if (myLibraryTable != null) {\n ApplicationManager.getApplication().assertWriteAccessAllowed();\n }\n if (!Comparing.equal(fromModel.myName, myName)) {\n myName = fromModel.myName;\n if (myLibraryTable instanceof LibraryTableBase) {\n ((LibraryTableBase)myLibraryTable).fireLibraryRenamed(this);\n }\n }\n myKind = fromModel.getKind();\n myProperties = fromModel.myProperties;\n if (areRootsChanged(fromModel)) {\n disposeMyPointers();\n copyRootsFrom(fromModel);\n myJarDirectories.copyFrom(fromModel.myJarDirectories);\n myRootsWatcher.updateWatchedRoots();\n myRootProvider.fireRootSetChanged();\n }\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":"my","start_char":8,"line":1},{"index_id":4,"token_group":4,"text":"Library","start_char":10,"line":1},{"index_id":5,"token_group":4,"text":"Table","start_char":17,"line":1},{"index_id":6,"token_group":4,"text":"!=","start_char":23,"line":1},{"index_id":7,"token_group":5,"text":"null","start_char":26,"line":1},{"index_id":8,"token_group":6,"text":")","start_char":30,"line":1},{"index_id":9,"token_group":7,"text":"{","start_char":4,"line":2},{"index_id":10,"token_group":8,"text":"application","start_char":8,"line":3},{"index_id":11,"token_group":9,"text":"Manager","start_char":19,"line":3},{"index_id":12,"token_group":9,"text":".","start_char":26,"line":3},{"index_id":13,"token_group":10,"text":"get","start_char":27,"line":3},{"index_id":14,"token_group":11,"text":"Application","start_char":30,"line":3},{"index_id":15,"token_group":11,"text":"(","start_char":41,"line":3},{"index_id":16,"token_group":12,"text":")","start_char":42,"line":3},{"index_id":17,"token_group":13,"text":".","start_char":43,"line":3},{"index_id":18,"token_group":14,"text":"assert","start_char":44,"line":3},{"index_id":19,"token_group":15,"text":"Write","start_char":50,"line":3},{"index_id":20,"token_group":15,"text":"Access","start_char":55,"line":3},{"index_id":21,"token_group":15,"text":"Allowed","start_char":61,"line":3},{"index_id":22,"token_group":15,"text":"(","start_char":68,"line":3},{"index_id":23,"token_group":16,"text":")","start_char":69,"line":3},{"index_id":24,"token_group":17,"text":";","start_char":70,"line":3},{"index_id":25,"token_group":18,"text":"}","start_char":4,"line":4},{"index_id":26,"token_group":19,"text":"if","start_char":4,"line":5},{"index_id":27,"token_group":20,"text":"(","start_char":7,"line":5},{"index_id":28,"token_group":21,"text":"!","start_char":8,"line":5},{"index_id":29,"token_group":22,"text":"comparing","start_char":9,"line":5},{"index_id":30,"token_group":23,"text":".","start_char":18,"line":5},{"index_id":31,"token_group":24,"text":"equal","start_char":19,"line":5},{"index_id":32,"token_group":25,"text":"(","start_char":24,"line":5},{"index_id":33,"token_group":26,"text":"from","start_char":25,"line":5},{"index_id":34,"token_group":27,"text":"Model","start_char":29,"line":5},{"index_id":35,"token_group":27,"text":".","start_char":34,"line":5},{"index_id":36,"token_group":28,"text":"my","start_char":35,"line":5},{"index_id":37,"token_group":29,"text":"Name","start_char":37,"line":5},{"index_id":38,"token_group":29,"text":",","start_char":41,"line":5},{"index_id":39,"token_group":30,"text":"my","start_char":43,"line":5},{"index_id":40,"token_group":31,"text":"Name","start_char":45,"line":5},{"index_id":41,"token_group":31,"text":")","start_char":49,"line":5},{"index_id":42,"token_group":32,"text":")","start_char":50,"line":5},{"index_id":43,"token_group":33,"text":"{","start_char":4,"line":6},{"index_id":44,"token_group":34,"text":"my","start_char":8,"line":7},{"index_id":45,"token_group":35,"text":"Name","start_char":10,"line":7},{"index_id":46,"token_group":35,"text":"=","start_char":15,"line":7},{"index_id":47,"token_group":36,"text":"from","start_char":17,"line":7},{"index_id":48,"token_group":37,"text":"Model","start_char":21,"line":7},{"index_id":49,"token_group":37,"text":".","start_char":26,"line":7},{"index_id":50,"token_group":38,"text":"my","start_char":27,"line":7},{"index_id":51,"token_group":39,"text":"Name","start_char":29,"line":7},{"index_id":52,"token_group":39,"text":";","start_char":33,"line":7},{"index_id":53,"token_group":40,"text":"if","start_char":8,"line":8},{"index_id":54,"token_group":41,"text":"(","start_char":11,"line":8},{"index_id":55,"token_group":42,"text":"my","start_char":12,"line":8},{"index_id":56,"token_group":43,"text":"Library","start_char":14,"line":8},{"index_id":57,"token_group":43,"text":"Table","start_char":21,"line":8},{"index_id":58,"token_group":43,"text":"Instanceof","start_char":27,"line":8},{"index_id":59,"token_group":44,"text":"library","start_char":38,"line":8},{"index_id":60,"token_group":45,"text":"Table","start_char":45,"line":8},{"index_id":61,"token_group":45,"text":"Base","start_char":50,"line":8},{"index_id":62,"token_group":45,"text":")","start_char":54,"line":8},{"index_id":63,"token_group":46,"text":"{","start_char":8,"line":9},{"index_id":64,"token_group":47,"text":"(","start_char":12,"line":10},{"index_id":65,"token_group":48,"text":"(","start_char":13,"line":10},{"index_id":66,"token_group":49,"text":"library","start_char":14,"line":10},{"index_id":67,"token_group":50,"text":"Table","start_char":21,"line":10},{"index_id":68,"token_group":50,"text":"Base","start_char":26,"line":10},{"index_id":69,"token_group":50,"text":")","start_char":30,"line":10},{"index_id":70,"token_group":51,"text":"my","start_char":31,"line":10},{"index_id":71,"token_group":52,"text":"Library","start_char":33,"line":10},{"index_id":72,"token_group":52,"text":"Table","start_char":40,"line":10},{"index_id":73,"token_group":52,"text":")","start_char":45,"line":10},{"index_id":74,"token_group":53,"text":".","start_char":46,"line":10},{"index_id":75,"token_group":54,"text":"fire","start_char":47,"line":10},{"index_id":76,"token_group":55,"text":"Library","start_char":51,"line":10},{"index_id":77,"token_group":55,"text":"Renamed","start_char":58,"line":10},{"index_id":78,"token_group":55,"text":"(","start_char":65,"line":10},{"index_id":79,"token_group":56,"text":"this","start_char":66,"line":10},{"index_id":80,"token_group":57,"text":")","start_char":70,"line":10},{"index_id":81,"token_group":58,"text":";","start_char":71,"line":10},{"index_id":82,"token_group":59,"text":"}","start_char":8,"line":11},{"index_id":83,"token_group":60,"text":"}","start_char":4,"line":12},{"index_id":84,"token_group":61,"text":"my","start_char":4,"line":13},{"index_id":85,"token_group":62,"text":"Kind","start_char":6,"line":13},{"index_id":86,"token_group":62,"text":"=","start_char":11,"line":13},{"index_id":87,"token_group":63,"text":"from","start_char":13,"line":13},{"index_id":88,"token_group":64,"text":"Model","start_char":17,"line":13},{"index_id":89,"token_group":64,"text":".","start_char":22,"line":13},{"index_id":90,"token_group":65,"text":"get","start_char":23,"line":13},{"index_id":91,"token_group":66,"text":"Kind","start_char":26,"line":13},{"index_id":92,"token_group":66,"text":"(","start_char":30,"line":13},{"index_id":93,"token_group":67,"text":")","start_char":31,"line":13},{"index_id":94,"token_group":68,"text":";","start_char":32,"line":13},{"index_id":95,"token_group":69,"text":"my","start_char":4,"line":14},{"index_id":96,"token_group":70,"text":"Properties","start_char":6,"line":14},{"index_id":97,"token_group":70,"text":"=","start_char":17,"line":14},{"index_id":98,"token_group":71,"text":"from","start_char":19,"line":14},{"index_id":99,"token_group":72,"text":"Model","start_char":23,"line":14},{"index_id":100,"token_group":72,"text":".","start_char":28,"line":14},{"index_id":101,"token_group":73,"text":"my","start_char":29,"line":14},{"index_id":102,"token_group":74,"text":"Properties","start_char":31,"line":14},{"index_id":103,"token_group":74,"text":";","start_char":41,"line":14},{"index_id":104,"token_group":75,"text":"if","start_char":4,"line":15},{"index_id":105,"token_group":76,"text":"(","start_char":7,"line":15},{"index_id":106,"token_group":77,"text":"are","start_char":8,"line":15},{"index_id":107,"token_group":78,"text":"Roots","start_char":11,"line":15},{"index_id":108,"token_group":78,"text":"Changed","start_char":16,"line":15},{"index_id":109,"token_group":78,"text":"(","start_char":23,"line":15},{"index_id":110,"token_group":79,"text":"from","start_char":24,"line":15},{"index_id":111,"token_group":80,"text":"Model","start_char":28,"line":15},{"index_id":112,"token_group":80,"text":")","start_char":33,"line":15},{"index_id":113,"token_group":81,"text":")","start_char":34,"line":15},{"index_id":114,"token_group":82,"text":"{","start_char":4,"line":16},{"index_id":115,"token_group":83,"text":"dispose","start_char":8,"line":17},{"index_id":116,"token_group":84,"text":"My","start_char":15,"line":17},{"index_id":117,"token_group":84,"text":"Pointers","start_char":17,"line":17},{"index_id":118,"token_group":84,"text":"(","start_char":25,"line":17},{"index_id":119,"token_group":85,"text":")","start_char":26,"line":17},{"index_id":120,"token_group":86,"text":";","start_char":27,"line":17},{"index_id":121,"token_group":87,"text":"copy","start_char":8,"line":18},{"index_id":122,"token_group":88,"text":"Roots","start_char":12,"line":18},{"index_id":123,"token_group":88,"text":"From","start_char":17,"line":18},{"index_id":124,"token_group":88,"text":"(","start_char":21,"line":18},{"index_id":125,"token_group":89,"text":"from","start_char":22,"line":18},{"index_id":126,"token_group":90,"text":"Model","start_char":26,"line":18},{"index_id":127,"token_group":90,"text":")","start_char":31,"line":18},{"index_id":128,"token_group":91,"text":";","start_char":32,"line":18},{"index_id":129,"token_group":92,"text":"my","start_char":8,"line":19},{"index_id":130,"token_group":93,"text":"Jar","start_char":10,"line":19},{"index_id":131,"token_group":93,"text":"Directories","start_char":13,"line":19},{"index_id":132,"token_group":93,"text":".","start_char":24,"line":19},{"index_id":133,"token_group":94,"text":"copy","start_char":25,"line":19},{"index_id":134,"token_group":95,"text":"From","start_char":29,"line":19},{"index_id":135,"token_group":95,"text":"(","start_char":33,"line":19},{"index_id":136,"token_group":96,"text":"from","start_char":34,"line":19},{"index_id":137,"token_group":97,"text":"Model","start_char":38,"line":19},{"index_id":138,"token_group":97,"text":".","start_char":43,"line":19},{"index_id":139,"token_group":98,"text":"my","start_char":44,"line":19},{"index_id":140,"token_group":99,"text":"Jar","start_char":46,"line":19},{"index_id":141,"token_group":99,"text":"Directories","start_char":49,"line":19},{"index_id":142,"token_group":99,"text":")","start_char":60,"line":19},{"index_id":143,"token_group":100,"text":";","start_char":61,"line":19},{"index_id":144,"token_group":101,"text":"my","start_char":8,"line":20},{"index_id":145,"token_group":102,"text":"Roots","start_char":10,"line":20},{"index_id":146,"token_group":102,"text":"Watcher","start_char":15,"line":20},{"index_id":147,"token_group":102,"text":".","start_char":22,"line":20},{"index_id":148,"token_group":103,"text":"update","start_char":23,"line":20},{"index_id":149,"token_group":104,"text":"Watched","start_char":29,"line":20},{"index_id":150,"token_group":104,"text":"Roots","start_char":36,"line":20},{"index_id":151,"token_group":104,"text":"(","start_char":41,"line":20},{"index_id":152,"token_group":105,"text":")","start_char":42,"line":20},{"index_id":153,"token_group":106,"text":";","start_char":43,"line":20},{"index_id":154,"token_group":107,"text":"my","start_char":8,"line":21},{"index_id":155,"token_group":108,"text":"Root","start_char":10,"line":21},{"index_id":156,"token_group":108,"text":"Provider","start_char":14,"line":21},{"index_id":157,"token_group":108,"text":".","start_char":22,"line":21},{"index_id":158,"token_group":109,"text":"fire","start_char":23,"line":21},{"index_id":159,"token_group":110,"text":"Root","start_char":27,"line":21},{"index_id":160,"token_group":110,"text":"Set","start_char":31,"line":21},{"index_id":161,"token_group":110,"text":"Changed","start_char":34,"line":21},{"index_id":162,"token_group":110,"text":"(","start_char":41,"line":21},{"index_id":163,"token_group":111,"text":")","start_char":42,"line":21},{"index_id":164,"token_group":112,"text":";","start_char":43,"line":21},{"index_id":165,"token_group":113,"text":"}","start_char":4,"line":22},{"index_id":166,"token_group":114,"text":"}","start_char":0,"line":23}],"tokens_list":["{","if","(","my","Library","Table","!=","null",")","{","application","Manager",".","get","Application","(",")",".","assert","Write","Access","Allowed","(",")",";","}","if","(","!","comparing",".","equal","(","from","Model",".","my","Name",",","my","Name",")",")","{","my","Name","=","from","Model",".","my","Name",";","if","(","my","Library","Table","Instanceof","library","Table","Base",")","{","(","(","library","Table","Base",")","my","Library","Table",")",".","fire","Library","Renamed","(","this",")",";","}","}","my","Kind","=","from","Model",".","get","Kind","(",")",";","my","Properties","=","from","Model",".","my","Properties",";","if","(","are","Roots","Changed","(","from","Model",")",")","{","dispose","My","Pointers","(",")",";","copy","Roots","From","(","from","Model",")",";","my","Jar","Directories",".","copy","From","(","from","Model",".","my","Jar","Directories",")",";","my","Roots","Watcher",".","update","Watched","Roots","(",")",";","my","Root","Provider",".","fire","Root","Set","Changed","(",")",";","}","}"],"uuid":"bb279f6d86484313af55dd27a1c0a2ff"},{"cap_original_tokens":["<SENTENCE_START>","{","throw","new","<id>","unsupported","Operation","Exception","<\/id>","(",")",";","}","<SENTENCE_END\/>"],"file_name":"AbstractCopyTask.java","formatted_lines":["{"," throw new UnsupportedOperationException();","}"],"function_name":"getFileResolver","function_name_tokens":["get","file","resolver"],"id_body_hash":"8ca0ac882b6b44bac711b5429ba53019","id_same_identifier_list":[0,1,2,3,4,4,4,5,6,7,8,9],"option_correct":"getFileResolver","options":["getSourcesToCompile","providesAFileResolver","getFileResolver","providesAFileSystem","resolver","createFileResolver","withQuietLoggingOptions"],"options_nlp":["get sources to compile","provides a file resolver","get file resolver","provides a file system","resolver","create file resolver","with quiet logging options"],"options_random":["providesAFileSystem","getSourcesToCompile","withQuietLoggingOptions"],"options_tfidf":["resolver","providesAFileResolver","createFileResolver"],"project_name":"gradle","source_code_string":"@Inject\n protected FileResolver getFileResolver() {\n throw new UnsupportedOperationException();\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"throw","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"new","start_char":10,"line":1},{"index_id":3,"token_group":3,"text":"unsupported","start_char":14,"line":1},{"index_id":4,"token_group":4,"text":"Operation","start_char":25,"line":1},{"index_id":5,"token_group":4,"text":"Exception","start_char":34,"line":1},{"index_id":6,"token_group":4,"text":"(","start_char":43,"line":1},{"index_id":7,"token_group":5,"text":")","start_char":44,"line":1},{"index_id":8,"token_group":6,"text":";","start_char":45,"line":1},{"index_id":9,"token_group":7,"text":"}","start_char":0,"line":2}],"tokens_list":["{","throw","new","unsupported","Operation","Exception","(",")",";","}"],"uuid":"f436cebdeb1da08d1804e61e2ab7adb2"}]