-
Notifications
You must be signed in to change notification settings - Fork 1
/
experiment_0000059.json
1 lines (1 loc) · 196 KB
/
experiment_0000059.json
1
[{"cap_original_tokens":["<SENTENCE_START>","{","return","<id>","","Get","Logger","Element","From","Element","<\/id>","(","<id>","element","<\/id>",")",";","}","<SENTENCE_END\/>"],"file_name":"XMLLoggerHandler.java","formatted_lines":["{",""," return _getLoggerElementFromElement(element);","}"],"function_name":"_getForLoggerElement","function_name_tokens":["","get","for","logger","element"],"id_body_hash":"d6c5bb979d96bc30181e4ad09fee8386","id_same_identifier_list":[0,1,2,3,3,3,3,3,3,4,5,6,7,8,9],"option_correct":"_getForLoggerElement","options":["testAssetCategoryNotAnyAndAny","_getForLoggerElement","_getLoggerElementFromElement","_getVarLoggerElement","getXMLLoggerElement","createBooleanValue","testIsFieldRepeatable"],"options_nlp":["test asset category not any and any"," get for logger element"," get logger element from element"," get var logger element","get xml logger element","create boolean value","test is field repeatable"],"options_random":["testAssetCategoryNotAnyAndAny","createBooleanValue","testIsFieldRepeatable"],"options_tfidf":["_getVarLoggerElement","_getLoggerElementFromElement","getXMLLoggerElement"],"project_name":"liferay-portal","source_code_string":"private static LoggerElement _getForLoggerElement(Element element)\n\t\tthrows Exception {\n\n\t\treturn _getLoggerElementFromElement(element);\n\t}","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"return","start_char":4,"line":2},{"index_id":2,"token_group":2,"text":"","start_char":10,"line":2},{"index_id":3,"token_group":3,"text":"Get","start_char":12,"line":2},{"index_id":4,"token_group":3,"text":"Logger","start_char":15,"line":2},{"index_id":5,"token_group":3,"text":"Element","start_char":21,"line":2},{"index_id":6,"token_group":3,"text":"From","start_char":28,"line":2},{"index_id":7,"token_group":3,"text":"Element","start_char":32,"line":2},{"index_id":8,"token_group":3,"text":"(","start_char":39,"line":2},{"index_id":9,"token_group":4,"text":"element","start_char":40,"line":2},{"index_id":10,"token_group":5,"text":")","start_char":47,"line":2},{"index_id":11,"token_group":6,"text":";","start_char":48,"line":2},{"index_id":12,"token_group":7,"text":"}","start_char":0,"line":3}],"tokens_list":["{","return","","Get","Logger","Element","From","Element","(","element",")",";","}"],"uuid":"13405760562823ea69c931d569bdb226"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","spel","Expression","Parser","<\/id>","<id>","parser","<\/id>","=","new","<id>","spel","Expression","Parser","<\/id>","(",")",";","<id>","spel","Expression","<\/id>","<id>","expr","<\/id>","=","<id>","parser","<\/id>",".","<id>","parse","Raw","<\/id>","(","\"2*3\"",")",";","<id>","assert","Not","Null","<\/id>","(","<id>","expr","<\/id>",")",";","<id>","assert","Not","Null","<\/id>","(","<id>","expr","<\/id>",".","<id>","get","Ast","<\/id>","(",")",")",";","<id>","assert","Equals","<\/id>","(","6",",","<id>","expr","<\/id>",".","<id>","get","Value","<\/id>","(",")",")",";","}","<SENTENCE_END\/>"],"file_name":"SpelParserTests.java","formatted_lines":["{"," SpelExpressionParser parser = new SpelExpressionParser();"," SpelExpression expr = parser.parseRaw(\"2*3\");"," assertNotNull(expr);"," assertNotNull(expr.getAST());",""," assertEquals(6, expr.getValue());","}"],"function_name":"arithmeticMultiply1","function_name_tokens":["arithmetic","multiply","1"],"id_body_hash":"47aa0397d6433d96da930b1e758b9bf0","id_same_identifier_list":[0,1,2,2,2,3,4,5,6,6,6,7,8,9,10,10,11,12,13,14,15,15,16,17,18,19,20,20,20,21,22,23,24,25,25,25,26,27,28,29,29,30,31,32,33,34,34,35,36,37,38,39,40,40,41,42,43,44,45,46],"option_correct":"arithmeticMultiply1","options":["getThemeSource","arithmeticMultiply1","getExceptionName","getTypeDescriptors","arithmeticPrecedence2","arithmeticPlus1","opMultiply"],"options_nlp":["get theme source","arithmetic multiply 1","get exception name","get type descriptors","arithmetic precedence 2","arithmetic plus 1","op multiply"],"options_random":["getTypeDescriptors","getThemeSource","getExceptionName"],"options_tfidf":["arithmeticPlus1","arithmeticPrecedence2","opMultiply"],"project_name":"spring-framework","source_code_string":"@Test\n\tpublic void arithmeticMultiply1() throws EvaluationException, ParseException {\n\t\tSpelExpressionParser parser = new SpelExpressionParser();\n\t\tSpelExpression expr = parser.parseRaw(\"2*3\");\n\t\tassertNotNull(expr);\n\t\tassertNotNull(expr.getAST());\n\t\t\n\t\tassertEquals(6, expr.getValue());\n\t}","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"spel","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"Expression","start_char":8,"line":1},{"index_id":3,"token_group":2,"text":"Parser","start_char":18,"line":1},{"index_id":4,"token_group":2,"text":"parser","start_char":25,"line":1},{"index_id":5,"token_group":3,"text":"=","start_char":32,"line":1},{"index_id":6,"token_group":4,"text":"new","start_char":34,"line":1},{"index_id":7,"token_group":5,"text":"spel","start_char":38,"line":1},{"index_id":8,"token_group":6,"text":"Expression","start_char":42,"line":1},{"index_id":9,"token_group":6,"text":"Parser","start_char":52,"line":1},{"index_id":10,"token_group":6,"text":"(","start_char":58,"line":1},{"index_id":11,"token_group":7,"text":")","start_char":59,"line":1},{"index_id":12,"token_group":8,"text":";","start_char":60,"line":1},{"index_id":13,"token_group":9,"text":"spel","start_char":4,"line":2},{"index_id":14,"token_group":10,"text":"Expression","start_char":8,"line":2},{"index_id":15,"token_group":10,"text":"expr","start_char":19,"line":2},{"index_id":16,"token_group":11,"text":"=","start_char":24,"line":2},{"index_id":17,"token_group":12,"text":"parser","start_char":26,"line":2},{"index_id":18,"token_group":13,"text":".","start_char":32,"line":2},{"index_id":19,"token_group":14,"text":"parse","start_char":33,"line":2},{"index_id":20,"token_group":15,"text":"Raw","start_char":38,"line":2},{"index_id":21,"token_group":15,"text":"(","start_char":41,"line":2},{"index_id":22,"token_group":16,"text":"\"2*3\"","start_char":42,"line":2},{"index_id":23,"token_group":17,"text":")","start_char":47,"line":2},{"index_id":24,"token_group":18,"text":";","start_char":48,"line":2},{"index_id":25,"token_group":19,"text":"assert","start_char":4,"line":3},{"index_id":26,"token_group":20,"text":"Not","start_char":10,"line":3},{"index_id":27,"token_group":20,"text":"Null","start_char":13,"line":3},{"index_id":28,"token_group":20,"text":"(","start_char":17,"line":3},{"index_id":29,"token_group":21,"text":"expr","start_char":18,"line":3},{"index_id":30,"token_group":22,"text":")","start_char":22,"line":3},{"index_id":31,"token_group":23,"text":";","start_char":23,"line":3},{"index_id":32,"token_group":24,"text":"assert","start_char":4,"line":4},{"index_id":33,"token_group":25,"text":"Not","start_char":10,"line":4},{"index_id":34,"token_group":25,"text":"Null","start_char":13,"line":4},{"index_id":35,"token_group":25,"text":"(","start_char":17,"line":4},{"index_id":36,"token_group":26,"text":"expr","start_char":18,"line":4},{"index_id":37,"token_group":27,"text":".","start_char":22,"line":4},{"index_id":38,"token_group":28,"text":"get","start_char":23,"line":4},{"index_id":39,"token_group":29,"text":"Ast","start_char":26,"line":4},{"index_id":40,"token_group":29,"text":"(","start_char":29,"line":4},{"index_id":41,"token_group":30,"text":")","start_char":30,"line":4},{"index_id":42,"token_group":31,"text":")","start_char":31,"line":4},{"index_id":43,"token_group":32,"text":";","start_char":32,"line":4},{"index_id":44,"token_group":33,"text":"assert","start_char":4,"line":6},{"index_id":45,"token_group":34,"text":"Equals","start_char":10,"line":6},{"index_id":46,"token_group":34,"text":"(","start_char":16,"line":6},{"index_id":47,"token_group":35,"text":"6","start_char":17,"line":6},{"index_id":48,"token_group":36,"text":",","start_char":18,"line":6},{"index_id":49,"token_group":37,"text":"expr","start_char":20,"line":6},{"index_id":50,"token_group":38,"text":".","start_char":24,"line":6},{"index_id":51,"token_group":39,"text":"get","start_char":25,"line":6},{"index_id":52,"token_group":40,"text":"Value","start_char":28,"line":6},{"index_id":53,"token_group":40,"text":"(","start_char":33,"line":6},{"index_id":54,"token_group":41,"text":")","start_char":34,"line":6},{"index_id":55,"token_group":42,"text":")","start_char":35,"line":6},{"index_id":56,"token_group":43,"text":";","start_char":36,"line":6},{"index_id":57,"token_group":44,"text":"}","start_char":0,"line":7}],"tokens_list":["{","spel","Expression","Parser","parser","=","new","spel","Expression","Parser","(",")",";","spel","Expression","expr","=","parser",".","parse","Raw","(","\"2*3\"",")",";","assert","Not","Null","(","expr",")",";","assert","Not","Null","(","expr",".","get","Ast","(",")",")",";","assert","Equals","(","6",",","expr",".","get","Value","(",")",")",";","}"],"uuid":"a03049e7fe2753a8373ac45870702b3b"},{"cap_original_tokens":["<SENTENCE_START>","{","return","<id>","boolean","<\/id>",".","<id>","true","<\/id>",".","<id>","equals","<\/id>","(","<id>","c","<\/id>",".","<id>","get","Client","Property","<\/id>","(","<id>","list","Util","<\/id>",".","<id>","selected","By","Mouse","Event","<\/id>",")",")",";","}","<SENTENCE_END\/>"],"file_name":"HintUpdateSupply.java","formatted_lines":["{"," return Boolean.TRUE.equals(c.getClientProperty("," ListUtil.SELECTED_BY_MOUSE_EVENT));","}"],"function_name":"isSelectedByMouse","function_name_tokens":["is","selected","by","mouse"],"id_body_hash":"89a3f0cf1b4c3f28ea2b0caf814381e0","id_same_identifier_list":[0,1,2,3,4,5,6,7,8,9,10,11,11,11,12,13,13,14,15,15,15,15,16,17,18,19,20],"option_correct":"isSelectedByMouse","options":["findNext","addCellToPanel","isSelected","isSelectedByDefault","isInstanceAttributeStub","isPressedByMouse","isSelectedByMouse"],"options_nlp":["find next","add cell to panel","is selected","is selected by default","is instance attribute stub","is pressed by mouse","is selected by mouse"],"options_random":["findNext","addCellToPanel","isInstanceAttributeStub"],"options_tfidf":["isSelected","isSelectedByDefault","isPressedByMouse"],"project_name":"intellij-community","source_code_string":"private static boolean isSelectedByMouse(@NotNull JComponent c) {\n return Boolean.TRUE.equals(c.getClientProperty(ListUtil.SELECTED_BY_MOUSE_EVENT));\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":"boolean","start_char":11,"line":1},{"index_id":3,"token_group":3,"text":".","start_char":18,"line":1},{"index_id":4,"token_group":4,"text":"true","start_char":19,"line":1},{"index_id":5,"token_group":5,"text":".","start_char":23,"line":1},{"index_id":6,"token_group":6,"text":"equals","start_char":24,"line":1},{"index_id":7,"token_group":7,"text":"(","start_char":30,"line":1},{"index_id":8,"token_group":8,"text":"c","start_char":31,"line":1},{"index_id":9,"token_group":9,"text":".","start_char":32,"line":1},{"index_id":10,"token_group":10,"text":"get","start_char":33,"line":1},{"index_id":11,"token_group":11,"text":"Client","start_char":36,"line":1},{"index_id":12,"token_group":11,"text":"Property","start_char":42,"line":1},{"index_id":13,"token_group":11,"text":"(","start_char":50,"line":1},{"index_id":14,"token_group":12,"text":"list","start_char":35,"line":2},{"index_id":15,"token_group":13,"text":"Util","start_char":39,"line":2},{"index_id":16,"token_group":13,"text":".","start_char":43,"line":2},{"index_id":17,"token_group":14,"text":"selected","start_char":44,"line":2},{"index_id":18,"token_group":15,"text":"By","start_char":53,"line":2},{"index_id":19,"token_group":15,"text":"Mouse","start_char":56,"line":2},{"index_id":20,"token_group":15,"text":"Event","start_char":62,"line":2},{"index_id":21,"token_group":15,"text":")","start_char":67,"line":2},{"index_id":22,"token_group":16,"text":")","start_char":68,"line":2},{"index_id":23,"token_group":17,"text":";","start_char":69,"line":2},{"index_id":24,"token_group":18,"text":"}","start_char":0,"line":3}],"tokens_list":["{","return","boolean",".","true",".","equals","(","c",".","get","Client","Property","(","list","Util",".","selected","By","Mouse","Event",")",")",";","}"],"uuid":"558512a504ac585bc99de2d220143bfc"},{"cap_original_tokens":["<SENTENCE_START>","{","return","<id>","shortcuts","By","Id","<\/id>","(","<id>","ide","Actions","<\/id>",".","<id>","action","Editor","Move","Line","Start","<\/id>",")",";","}","<SENTENCE_END\/>"],"file_name":"CommonShortcuts.java","formatted_lines":["{"," return shortcutsById(IdeActions.ACTION_EDITOR_MOVE_LINE_START);","}"],"function_name":"getMoveHome","function_name_tokens":["get","move","home"],"id_body_hash":"40e54b16418df6bba09462b2bbd61ad2","id_same_identifier_list":[0,1,2,3,3,3,4,5,5,6,7,7,7,7,7,8,9,10,11],"option_correct":"getMoveHome","options":["getHomePath","getMove","editCached","getMoveHome","getHomeDirectory","removeProperty","addPathToActionsTree"],"options_nlp":["get home path","get move","edit cached","get move home","get home directory","remove property","add path to actions tree"],"options_random":["addPathToActionsTree","removeProperty","editCached"],"options_tfidf":["getHomeDirectory","getHomePath","getMove"],"project_name":"intellij-community","source_code_string":"public static ShortcutSet getMoveHome() {\n return shortcutsById(IdeActions.ACTION_EDITOR_MOVE_LINE_START);\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":"shortcuts","start_char":11,"line":1},{"index_id":3,"token_group":3,"text":"By","start_char":20,"line":1},{"index_id":4,"token_group":3,"text":"Id","start_char":22,"line":1},{"index_id":5,"token_group":3,"text":"(","start_char":24,"line":1},{"index_id":6,"token_group":4,"text":"ide","start_char":25,"line":1},{"index_id":7,"token_group":5,"text":"Actions","start_char":28,"line":1},{"index_id":8,"token_group":5,"text":".","start_char":35,"line":1},{"index_id":9,"token_group":6,"text":"action","start_char":36,"line":1},{"index_id":10,"token_group":7,"text":"Editor","start_char":43,"line":1},{"index_id":11,"token_group":7,"text":"Move","start_char":50,"line":1},{"index_id":12,"token_group":7,"text":"Line","start_char":55,"line":1},{"index_id":13,"token_group":7,"text":"Start","start_char":60,"line":1},{"index_id":14,"token_group":7,"text":")","start_char":65,"line":1},{"index_id":15,"token_group":8,"text":";","start_char":66,"line":1},{"index_id":16,"token_group":9,"text":"}","start_char":0,"line":2}],"tokens_list":["{","return","shortcuts","By","Id","(","ide","Actions",".","action","Editor","Move","Line","Start",")",";","}"],"uuid":"cb31b4de4035c17d6a20f2261e30d6a9"},{"cap_original_tokens":["<SENTENCE_START>","{","this",".","<id>","packet","Len","<\/id>","=","<id>","in","<\/id>",".","<id>","read","Int","<\/id>","(",")",";","short","<id>","proto","Len","<\/id>","=","<id>","in","<\/id>",".","<id>","read","Short","<\/id>","(",")",";","byte","[","]","<id>","data","<\/id>","=","new","byte","[","<id>","proto","Len","<\/id>","]",";","<id>","in","<\/id>",".","<id>","read","Fully","<\/id>","(","<id>","data","<\/id>",")",";","<id>","proto","<\/id>","=","<id>","packet","Header","Proto","<\/id>",".","<id>","parse","From","<\/id>","(","<id>","data","<\/id>",")",";","}","<SENTENCE_END\/>"],"file_name":"PacketHeader.java","formatted_lines":["{"," this.packetLen = in.readInt();"," short protoLen = in.readShort();"," byte[] data = new byte[protoLen];"," in.readFully(data);"," proto = PacketHeaderProto.parseFrom(data);","}"],"function_name":"readFields","function_name_tokens":["read","fields"],"id_body_hash":"fa7f5fc73895070bd34b5c65ca279292","id_same_identifier_list":[0,1,2,3,4,4,5,6,7,8,8,9,10,11,12,13,13,14,15,16,17,17,18,19,20,21,22,23,24,25,26,27,28,29,29,30,31,32,33,34,34,35,36,37,38,39,40,41,41,41,42,43,43,44,45,46,47,48,49],"option_correct":"readFields","options":["setFieldsFromData","testGetUri","read","readFields","getMapTasks","testRecursiveParam","maskFields"],"options_nlp":["set fields from data","test get uri","read","read fields","get map tasks","test recursive param","mask fields"],"options_random":["getMapTasks","testGetUri","testRecursiveParam"],"options_tfidf":["setFieldsFromData","maskFields","read"],"project_name":"hadoop-common","source_code_string":"public void readFields(DataInputStream in) throws IOException {\n this.packetLen = in.readInt();\n short protoLen = in.readShort();\n byte[] data = new byte[protoLen];\n in.readFully(data);\n proto = PacketHeaderProto.parseFrom(data);\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":"packet","start_char":9,"line":1},{"index_id":4,"token_group":4,"text":"Len","start_char":15,"line":1},{"index_id":5,"token_group":4,"text":"=","start_char":19,"line":1},{"index_id":6,"token_group":5,"text":"in","start_char":21,"line":1},{"index_id":7,"token_group":6,"text":".","start_char":23,"line":1},{"index_id":8,"token_group":7,"text":"read","start_char":24,"line":1},{"index_id":9,"token_group":8,"text":"Int","start_char":28,"line":1},{"index_id":10,"token_group":8,"text":"(","start_char":31,"line":1},{"index_id":11,"token_group":9,"text":")","start_char":32,"line":1},{"index_id":12,"token_group":10,"text":";","start_char":33,"line":1},{"index_id":13,"token_group":11,"text":"short","start_char":4,"line":2},{"index_id":14,"token_group":12,"text":"proto","start_char":10,"line":2},{"index_id":15,"token_group":13,"text":"Len","start_char":15,"line":2},{"index_id":16,"token_group":13,"text":"=","start_char":19,"line":2},{"index_id":17,"token_group":14,"text":"in","start_char":21,"line":2},{"index_id":18,"token_group":15,"text":".","start_char":23,"line":2},{"index_id":19,"token_group":16,"text":"read","start_char":24,"line":2},{"index_id":20,"token_group":17,"text":"Short","start_char":28,"line":2},{"index_id":21,"token_group":17,"text":"(","start_char":33,"line":2},{"index_id":22,"token_group":18,"text":")","start_char":34,"line":2},{"index_id":23,"token_group":19,"text":";","start_char":35,"line":2},{"index_id":24,"token_group":20,"text":"byte","start_char":4,"line":3},{"index_id":25,"token_group":21,"text":"[","start_char":8,"line":3},{"index_id":26,"token_group":22,"text":"]","start_char":9,"line":3},{"index_id":27,"token_group":23,"text":"data","start_char":11,"line":3},{"index_id":28,"token_group":24,"text":"=","start_char":16,"line":3},{"index_id":29,"token_group":25,"text":"new","start_char":18,"line":3},{"index_id":30,"token_group":26,"text":"byte","start_char":22,"line":3},{"index_id":31,"token_group":27,"text":"[","start_char":26,"line":3},{"index_id":32,"token_group":28,"text":"proto","start_char":27,"line":3},{"index_id":33,"token_group":29,"text":"Len","start_char":32,"line":3},{"index_id":34,"token_group":29,"text":"]","start_char":35,"line":3},{"index_id":35,"token_group":30,"text":";","start_char":36,"line":3},{"index_id":36,"token_group":31,"text":"in","start_char":4,"line":4},{"index_id":37,"token_group":32,"text":".","start_char":6,"line":4},{"index_id":38,"token_group":33,"text":"read","start_char":7,"line":4},{"index_id":39,"token_group":34,"text":"Fully","start_char":11,"line":4},{"index_id":40,"token_group":34,"text":"(","start_char":16,"line":4},{"index_id":41,"token_group":35,"text":"data","start_char":17,"line":4},{"index_id":42,"token_group":36,"text":")","start_char":21,"line":4},{"index_id":43,"token_group":37,"text":";","start_char":22,"line":4},{"index_id":44,"token_group":38,"text":"proto","start_char":4,"line":5},{"index_id":45,"token_group":39,"text":"=","start_char":10,"line":5},{"index_id":46,"token_group":40,"text":"packet","start_char":12,"line":5},{"index_id":47,"token_group":41,"text":"Header","start_char":18,"line":5},{"index_id":48,"token_group":41,"text":"Proto","start_char":24,"line":5},{"index_id":49,"token_group":41,"text":".","start_char":29,"line":5},{"index_id":50,"token_group":42,"text":"parse","start_char":30,"line":5},{"index_id":51,"token_group":43,"text":"From","start_char":35,"line":5},{"index_id":52,"token_group":43,"text":"(","start_char":39,"line":5},{"index_id":53,"token_group":44,"text":"data","start_char":40,"line":5},{"index_id":54,"token_group":45,"text":")","start_char":44,"line":5},{"index_id":55,"token_group":46,"text":";","start_char":45,"line":5},{"index_id":56,"token_group":47,"text":"}","start_char":0,"line":6}],"tokens_list":["{","this",".","packet","Len","=","in",".","read","Int","(",")",";","short","proto","Len","=","in",".","read","Short","(",")",";","byte","[","]","data","=","new","byte","[","proto","Len","]",";","in",".","read","Fully","(","data",")",";","proto","=","packet","Header","Proto",".","parse","From","(","data",")",";","}"],"uuid":"5c635f8bd899511684009360d9a73be7"},{"cap_original_tokens":["<SENTENCE_START>","{","this",".","<id>","lifecycle","Task","<\/id>","=","<id>","lifecycle","Task","<\/id>",";","<id>","lifecycle","Task","<\/id>",".","<id>","depends","On","<\/id>","(","<id>","build","Dependencies","<\/id>",")",";","}","<SENTENCE_END\/>"],"file_name":"AbstractBuildableModelElement.java","formatted_lines":["{"," this.lifecycleTask = lifecycleTask;"," lifecycleTask.dependsOn(buildDependencies);","}"],"function_name":"setBuildTask","function_name_tokens":["set","build","task"],"id_body_hash":"ac718c74ca3b901e224c05f86a2c9fbf","id_same_identifier_list":[0,1,2,3,4,4,5,6,6,7,8,8,9,10,10,11,12,12,13,14,15,16],"option_correct":"setBuildTask","options":["setBuildProjectDependencies","validationActionSucceedsWhenInputValueSpecified","moduleTargetByteIsMaxBytecodeLevel","setBuildFile","getPrevious","setBuildTask","setTaskNames"],"options_nlp":["set build project dependencies","validation action succeeds when input value specified","module target byte is max bytecode level","set build file","get previous","set build task","set task names"],"options_random":["validationActionSucceedsWhenInputValueSpecified","getPrevious","moduleTargetByteIsMaxBytecodeLevel"],"options_tfidf":["setBuildFile","setBuildProjectDependencies","setTaskNames"],"project_name":"gradle","source_code_string":"public void setBuildTask(Task lifecycleTask) {\n this.lifecycleTask = lifecycleTask;\n lifecycleTask.dependsOn(buildDependencies);\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":"lifecycle","start_char":9,"line":1},{"index_id":4,"token_group":4,"text":"Task","start_char":18,"line":1},{"index_id":5,"token_group":4,"text":"=","start_char":23,"line":1},{"index_id":6,"token_group":5,"text":"lifecycle","start_char":25,"line":1},{"index_id":7,"token_group":6,"text":"Task","start_char":34,"line":1},{"index_id":8,"token_group":6,"text":";","start_char":38,"line":1},{"index_id":9,"token_group":7,"text":"lifecycle","start_char":4,"line":2},{"index_id":10,"token_group":8,"text":"Task","start_char":13,"line":2},{"index_id":11,"token_group":8,"text":".","start_char":17,"line":2},{"index_id":12,"token_group":9,"text":"depends","start_char":18,"line":2},{"index_id":13,"token_group":10,"text":"On","start_char":25,"line":2},{"index_id":14,"token_group":10,"text":"(","start_char":27,"line":2},{"index_id":15,"token_group":11,"text":"build","start_char":28,"line":2},{"index_id":16,"token_group":12,"text":"Dependencies","start_char":33,"line":2},{"index_id":17,"token_group":12,"text":")","start_char":45,"line":2},{"index_id":18,"token_group":13,"text":";","start_char":46,"line":2},{"index_id":19,"token_group":14,"text":"}","start_char":0,"line":3}],"tokens_list":["{","this",".","lifecycle","Task","=","lifecycle","Task",";","lifecycle","Task",".","depends","On","(","build","Dependencies",")",";","}"],"uuid":"3a6df0407cfa4bc481640bcd813de8f5"},{"cap_original_tokens":["<SENTENCE_START>","{","final","<id>","transaction","Template","<\/id>","<id>","tt","<\/id>","=","new","<id>","transaction","Template","<\/id>","(","<id>","tm","<\/id>",")",";","<id>","tt","<\/id>",".","<id>","set","Propagation","Behavior","<\/id>","(","<id>","transaction","Definition","<\/id>",".","<id>","propagation","Requires","New","<\/id>",")",";","<id>","assert","True","<\/id>","(","\"Hasn't thread connection\"",",","!","<id>","transaction","Synchronization","Manager","<\/id>",".","<id>","has","Resource","<\/id>","(","<id>","ds","<\/id>",")",")",";","<id>","assert","True","<\/id>","(","\"Synchronization not active\"",",","!","<id>","transaction","Synchronization","Manager","<\/id>",".","<id>","is","Synchronization","Active","<\/id>","(",")",")",";","try","{","<id>","tt","<\/id>",".","<id>","execute","<\/id>","(","new","<id>","transaction","Callback","Without","Result","<\/id>","(",")","{","@","<id>","override","<\/id>","Protected","void","<id>","do","In","Transaction","Without","Result","<\/id>","(","<id>","transaction","Status","<\/id>","<id>","status","<\/id>",")","throws","<id>","runtime","Exception","<\/id>","{","<id>","assert","True","<\/id>","(","\"Is new transaction\"",",","<id>","status","<\/id>",".","<id>","is","New","Transaction","<\/id>","(",")",")",";","<id>","tt","<\/id>",".","<id>","set","Propagation","Behavior","<\/id>","(","<id>","transaction","Definition","<\/id>",".","<id>","propagation","Never","<\/id>",")",";","<id>","tt","<\/id>",".","<id>","execute","<\/id>","(","new","<id>","transaction","Callback","Without","Result","<\/id>","(",")","{","@","<id>","override","<\/id>","Protected","void","<id>","do","In","Transaction","Without","Result","<\/id>","(","<id>","transaction","Status","<\/id>","<id>","status","<\/id>",")","throws","<id>","runtime","Exception","<\/id>","{","<id>","fail","<\/id>","(","\"Should have thrown IllegalTransactionStateException\"",")",";","}","}",")",";","<id>","fail","<\/id>","(","\"Should have thrown IllegalTransactionStateException\"",")",";","}","}",")",";","}","catch","(","<id>","illegal","Transaction","State","Exception","<\/id>","<id>","ex","<\/id>",")","{","}","<id>","assert","True","<\/id>","(","\"Hasn't thread connection\"",",","!","<id>","transaction","Synchronization","Manager","<\/id>",".","<id>","has","Resource","<\/id>","(","<id>","ds","<\/id>",")",")",";","<id>","verify","<\/id>","(","<id>","con","<\/id>",")",".","<id>","rollback","<\/id>","(",")",";","<id>","verify","<\/id>","(","<id>","con","<\/id>",")",".","<id>","close","<\/id>","(",")",";","}","<SENTENCE_END\/>"],"file_name":"DataSourceTransactionManagerTests.java","formatted_lines":["{"," final TransactionTemplate tt = new TransactionTemplate(tm);"," tt.setPropagationBehavior(TransactionDefinition.PROPAGATION_REQUIRES_NEW);"," assertTrue(\"Hasn't thread connection\", !TransactionSynchronizationManager.hasResource(ds));"," assertTrue(\"Synchronization not active\", !TransactionSynchronizationManager.isSynchronizationActive());",""," try"," {"," tt.execute(new TransactionCallbackWithoutResult()"," {"," @Override"," protected void doInTransactionWithoutResult(TransactionStatus status) throws"," RuntimeException"," {"," assertTrue(\"Is new transaction\", status.isNewTransaction());"," tt.setPropagationBehavior(TransactionDefinition.PROPAGATION_NEVER);"," tt.execute(new TransactionCallbackWithoutResult()"," {"," @Override"," protected void doInTransactionWithoutResult(TransactionStatus status) throws"," RuntimeException"," {"," fail(\"Should have thrown IllegalTransactionStateException\");"," }"," });"," fail(\"Should have thrown IllegalTransactionStateException\");"," }"," });"," }"," catch (IllegalTransactionStateException ex)"," {",""," }",""," assertTrue(\"Hasn't thread connection\", !TransactionSynchronizationManager.hasResource(ds));"," verify(con).rollback();"," verify(con).close();","}"],"function_name":"testPropagationNeverWithExistingTransaction","function_name_tokens":["test","propagation","never","with","existing","transaction"],"id_body_hash":"40234a35c5ce274ad718da77ce57e814","id_same_identifier_list":[0,1,2,3,3,4,5,6,7,7,8,9,10,11,12,13,14,14,14,15,16,16,17,18,18,18,19,20,21,21,22,23,24,25,26,26,26,27,28,28,29,30,31,32,33,34,34,35,36,37,38,39,39,39,40,41,41,41,42,43,44,45,46,47,48,49,50,51,52,53,53,53,53,54,55,56,57,58,59,60,61,61,61,61,61,62,63,63,64,65,66,67,67,68,69,69,70,71,72,73,74,75,75,75,76,77,78,79,80,81,82,82,82,83,84,84,85,86,86,87,88,89,90,91,92,93,94,94,94,94,95,96,97,98,99,100,101,102,102,102,102,102,103,104,104,105,106,107,108,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,131,131,131,132,133,134,135,136,136,137,138,139,140,141,141,141,142,143,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168],"option_correct":"testPropagationNeverWithExistingTransaction","options":["getEventCount","testTransactionWithPropagationNever","testPropagationNeverWithExistingTransaction","testExistingTransactionWithPropagationNested","isNotAcceptable","scopedProxyTargetMarkedAsNonAutowireCandidate","propagationNeverFailsInCaseOfExistingTransaction"],"options_nlp":["get event count","test transaction with propagation never","test propagation never with existing transaction","test existing transaction with propagation nested","is not acceptable","scoped proxy target marked as non autowire candidate","propagation never fails in case of existing transaction"],"options_random":["isNotAcceptable","getEventCount","scopedProxyTargetMarkedAsNonAutowireCandidate"],"options_tfidf":["testTransactionWithPropagationNever","testExistingTransactionWithPropagationNested","propagationNeverFailsInCaseOfExistingTransaction"],"project_name":"spring-framework","source_code_string":"@Test\n\tpublic void testPropagationNeverWithExistingTransaction() throws Exception {\n\t\tfinal TransactionTemplate tt = new TransactionTemplate(tm);\n\t\ttt.setPropagationBehavior(TransactionDefinition.PROPAGATION_REQUIRES_NEW);\n\t\tassertTrue(\"Hasn't thread connection\", !TransactionSynchronizationManager.hasResource(ds));\n\t\tassertTrue(\"Synchronization not active\", !TransactionSynchronizationManager.isSynchronizationActive());\n\n\t\ttry {\n\t\t\ttt.execute(new TransactionCallbackWithoutResult() {\n\t\t\t\t@Override\n\t\t\t\tprotected void doInTransactionWithoutResult(TransactionStatus status) throws RuntimeException {\n\t\t\t\t\tassertTrue(\"Is new transaction\", status.isNewTransaction());\n\t\t\t\t\ttt.setPropagationBehavior(TransactionDefinition.PROPAGATION_NEVER);\n\t\t\t\t\ttt.execute(new TransactionCallbackWithoutResult() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tprotected void doInTransactionWithoutResult(TransactionStatus status) throws RuntimeException {\n\t\t\t\t\t\t\tfail(\"Should have thrown IllegalTransactionStateException\");\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tfail(\"Should have thrown IllegalTransactionStateException\");\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\tcatch (IllegalTransactionStateException ex) {\n\t\t\t\n\t\t}\n\n\t\tassertTrue(\"Hasn't thread connection\", !TransactionSynchronizationManager.hasResource(ds));\n\t\tverify(con).rollback();\n\t\tverify(con).close();\n\t}","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"final","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"transaction","start_char":10,"line":1},{"index_id":3,"token_group":3,"text":"Template","start_char":21,"line":1},{"index_id":4,"token_group":3,"text":"tt","start_char":30,"line":1},{"index_id":5,"token_group":4,"text":"=","start_char":33,"line":1},{"index_id":6,"token_group":5,"text":"new","start_char":35,"line":1},{"index_id":7,"token_group":6,"text":"transaction","start_char":39,"line":1},{"index_id":8,"token_group":7,"text":"Template","start_char":50,"line":1},{"index_id":9,"token_group":7,"text":"(","start_char":58,"line":1},{"index_id":10,"token_group":8,"text":"tm","start_char":59,"line":1},{"index_id":11,"token_group":9,"text":")","start_char":61,"line":1},{"index_id":12,"token_group":10,"text":";","start_char":62,"line":1},{"index_id":13,"token_group":11,"text":"tt","start_char":4,"line":2},{"index_id":14,"token_group":12,"text":".","start_char":6,"line":2},{"index_id":15,"token_group":13,"text":"set","start_char":7,"line":2},{"index_id":16,"token_group":14,"text":"Propagation","start_char":10,"line":2},{"index_id":17,"token_group":14,"text":"Behavior","start_char":21,"line":2},{"index_id":18,"token_group":14,"text":"(","start_char":29,"line":2},{"index_id":19,"token_group":15,"text":"transaction","start_char":30,"line":2},{"index_id":20,"token_group":16,"text":"Definition","start_char":41,"line":2},{"index_id":21,"token_group":16,"text":".","start_char":51,"line":2},{"index_id":22,"token_group":17,"text":"propagation","start_char":52,"line":2},{"index_id":23,"token_group":18,"text":"Requires","start_char":64,"line":2},{"index_id":24,"token_group":18,"text":"New","start_char":73,"line":2},{"index_id":25,"token_group":18,"text":")","start_char":76,"line":2},{"index_id":26,"token_group":19,"text":";","start_char":77,"line":2},{"index_id":27,"token_group":20,"text":"assert","start_char":4,"line":3},{"index_id":28,"token_group":21,"text":"True","start_char":10,"line":3},{"index_id":29,"token_group":21,"text":"(","start_char":14,"line":3},{"index_id":30,"token_group":22,"text":"\"Hasn't thread connection\"","start_char":15,"line":3},{"index_id":31,"token_group":23,"text":",","start_char":41,"line":3},{"index_id":32,"token_group":24,"text":"!","start_char":43,"line":3},{"index_id":33,"token_group":25,"text":"transaction","start_char":44,"line":3},{"index_id":34,"token_group":26,"text":"Synchronization","start_char":55,"line":3},{"index_id":35,"token_group":26,"text":"Manager","start_char":70,"line":3},{"index_id":36,"token_group":26,"text":".","start_char":77,"line":3},{"index_id":37,"token_group":27,"text":"has","start_char":78,"line":3},{"index_id":38,"token_group":28,"text":"Resource","start_char":81,"line":3},{"index_id":39,"token_group":28,"text":"(","start_char":89,"line":3},{"index_id":40,"token_group":29,"text":"ds","start_char":90,"line":3},{"index_id":41,"token_group":30,"text":")","start_char":92,"line":3},{"index_id":42,"token_group":31,"text":")","start_char":93,"line":3},{"index_id":43,"token_group":32,"text":";","start_char":94,"line":3},{"index_id":44,"token_group":33,"text":"assert","start_char":4,"line":4},{"index_id":45,"token_group":34,"text":"True","start_char":10,"line":4},{"index_id":46,"token_group":34,"text":"(","start_char":14,"line":4},{"index_id":47,"token_group":35,"text":"\"Synchronization not active\"","start_char":15,"line":4},{"index_id":48,"token_group":36,"text":",","start_char":43,"line":4},{"index_id":49,"token_group":37,"text":"!","start_char":45,"line":4},{"index_id":50,"token_group":38,"text":"transaction","start_char":46,"line":4},{"index_id":51,"token_group":39,"text":"Synchronization","start_char":57,"line":4},{"index_id":52,"token_group":39,"text":"Manager","start_char":72,"line":4},{"index_id":53,"token_group":39,"text":".","start_char":79,"line":4},{"index_id":54,"token_group":40,"text":"is","start_char":80,"line":4},{"index_id":55,"token_group":41,"text":"Synchronization","start_char":82,"line":4},{"index_id":56,"token_group":41,"text":"Active","start_char":97,"line":4},{"index_id":57,"token_group":41,"text":"(","start_char":103,"line":4},{"index_id":58,"token_group":42,"text":")","start_char":104,"line":4},{"index_id":59,"token_group":43,"text":")","start_char":105,"line":4},{"index_id":60,"token_group":44,"text":";","start_char":106,"line":4},{"index_id":61,"token_group":45,"text":"try","start_char":4,"line":6},{"index_id":62,"token_group":46,"text":"{","start_char":4,"line":7},{"index_id":63,"token_group":47,"text":"tt","start_char":8,"line":8},{"index_id":64,"token_group":48,"text":".","start_char":10,"line":8},{"index_id":65,"token_group":49,"text":"execute","start_char":11,"line":8},{"index_id":66,"token_group":50,"text":"(","start_char":18,"line":8},{"index_id":67,"token_group":51,"text":"new","start_char":19,"line":8},{"index_id":68,"token_group":52,"text":"transaction","start_char":23,"line":8},{"index_id":69,"token_group":53,"text":"Callback","start_char":34,"line":8},{"index_id":70,"token_group":53,"text":"Without","start_char":42,"line":8},{"index_id":71,"token_group":53,"text":"Result","start_char":49,"line":8},{"index_id":72,"token_group":53,"text":"(","start_char":55,"line":8},{"index_id":73,"token_group":54,"text":")","start_char":56,"line":8},{"index_id":74,"token_group":55,"text":"{","start_char":8,"line":9},{"index_id":75,"token_group":56,"text":"@","start_char":12,"line":10},{"index_id":76,"token_group":57,"text":"override","start_char":13,"line":10},{"index_id":77,"token_group":58,"text":"Protected","start_char":12,"line":11},{"index_id":78,"token_group":59,"text":"void","start_char":22,"line":11},{"index_id":79,"token_group":60,"text":"do","start_char":27,"line":11},{"index_id":80,"token_group":61,"text":"In","start_char":29,"line":11},{"index_id":81,"token_group":61,"text":"Transaction","start_char":31,"line":11},{"index_id":82,"token_group":61,"text":"Without","start_char":42,"line":11},{"index_id":83,"token_group":61,"text":"Result","start_char":49,"line":11},{"index_id":84,"token_group":61,"text":"(","start_char":55,"line":11},{"index_id":85,"token_group":62,"text":"transaction","start_char":56,"line":11},{"index_id":86,"token_group":63,"text":"Status","start_char":67,"line":11},{"index_id":87,"token_group":63,"text":"status","start_char":74,"line":11},{"index_id":88,"token_group":64,"text":")","start_char":80,"line":11},{"index_id":89,"token_group":65,"text":"throws","start_char":82,"line":11},{"index_id":90,"token_group":66,"text":"runtime","start_char":12,"line":12},{"index_id":91,"token_group":67,"text":"Exception","start_char":19,"line":12},{"index_id":92,"token_group":67,"text":"{","start_char":12,"line":13},{"index_id":93,"token_group":68,"text":"assert","start_char":16,"line":14},{"index_id":94,"token_group":69,"text":"True","start_char":22,"line":14},{"index_id":95,"token_group":69,"text":"(","start_char":26,"line":14},{"index_id":96,"token_group":70,"text":"\"Is new transaction\"","start_char":27,"line":14},{"index_id":97,"token_group":71,"text":",","start_char":47,"line":14},{"index_id":98,"token_group":72,"text":"status","start_char":49,"line":14},{"index_id":99,"token_group":73,"text":".","start_char":55,"line":14},{"index_id":100,"token_group":74,"text":"is","start_char":56,"line":14},{"index_id":101,"token_group":75,"text":"New","start_char":58,"line":14},{"index_id":102,"token_group":75,"text":"Transaction","start_char":61,"line":14},{"index_id":103,"token_group":75,"text":"(","start_char":72,"line":14},{"index_id":104,"token_group":76,"text":")","start_char":73,"line":14},{"index_id":105,"token_group":77,"text":")","start_char":74,"line":14},{"index_id":106,"token_group":78,"text":";","start_char":75,"line":14},{"index_id":107,"token_group":79,"text":"tt","start_char":16,"line":15},{"index_id":108,"token_group":80,"text":".","start_char":18,"line":15},{"index_id":109,"token_group":81,"text":"set","start_char":19,"line":15},{"index_id":110,"token_group":82,"text":"Propagation","start_char":22,"line":15},{"index_id":111,"token_group":82,"text":"Behavior","start_char":33,"line":15},{"index_id":112,"token_group":82,"text":"(","start_char":41,"line":15},{"index_id":113,"token_group":83,"text":"transaction","start_char":42,"line":15},{"index_id":114,"token_group":84,"text":"Definition","start_char":53,"line":15},{"index_id":115,"token_group":84,"text":".","start_char":63,"line":15},{"index_id":116,"token_group":85,"text":"propagation","start_char":64,"line":15},{"index_id":117,"token_group":86,"text":"Never","start_char":76,"line":15},{"index_id":118,"token_group":86,"text":")","start_char":81,"line":15},{"index_id":119,"token_group":87,"text":";","start_char":82,"line":15},{"index_id":120,"token_group":88,"text":"tt","start_char":16,"line":16},{"index_id":121,"token_group":89,"text":".","start_char":18,"line":16},{"index_id":122,"token_group":90,"text":"execute","start_char":19,"line":16},{"index_id":123,"token_group":91,"text":"(","start_char":26,"line":16},{"index_id":124,"token_group":92,"text":"new","start_char":27,"line":16},{"index_id":125,"token_group":93,"text":"transaction","start_char":31,"line":16},{"index_id":126,"token_group":94,"text":"Callback","start_char":42,"line":16},{"index_id":127,"token_group":94,"text":"Without","start_char":50,"line":16},{"index_id":128,"token_group":94,"text":"Result","start_char":57,"line":16},{"index_id":129,"token_group":94,"text":"(","start_char":63,"line":16},{"index_id":130,"token_group":95,"text":")","start_char":64,"line":16},{"index_id":131,"token_group":96,"text":"{","start_char":16,"line":17},{"index_id":132,"token_group":97,"text":"@","start_char":20,"line":18},{"index_id":133,"token_group":98,"text":"override","start_char":21,"line":18},{"index_id":134,"token_group":99,"text":"Protected","start_char":20,"line":19},{"index_id":135,"token_group":100,"text":"void","start_char":30,"line":19},{"index_id":136,"token_group":101,"text":"do","start_char":35,"line":19},{"index_id":137,"token_group":102,"text":"In","start_char":37,"line":19},{"index_id":138,"token_group":102,"text":"Transaction","start_char":39,"line":19},{"index_id":139,"token_group":102,"text":"Without","start_char":50,"line":19},{"index_id":140,"token_group":102,"text":"Result","start_char":57,"line":19},{"index_id":141,"token_group":102,"text":"(","start_char":63,"line":19},{"index_id":142,"token_group":103,"text":"transaction","start_char":64,"line":19},{"index_id":143,"token_group":104,"text":"Status","start_char":75,"line":19},{"index_id":144,"token_group":104,"text":"status","start_char":82,"line":19},{"index_id":145,"token_group":105,"text":")","start_char":88,"line":19},{"index_id":146,"token_group":106,"text":"throws","start_char":90,"line":19},{"index_id":147,"token_group":107,"text":"runtime","start_char":20,"line":20},{"index_id":148,"token_group":108,"text":"Exception","start_char":27,"line":20},{"index_id":149,"token_group":108,"text":"{","start_char":20,"line":21},{"index_id":150,"token_group":109,"text":"fail","start_char":24,"line":22},{"index_id":151,"token_group":110,"text":"(","start_char":28,"line":22},{"index_id":152,"token_group":111,"text":"\"Should have thrown IllegalTransactionStateException\"","start_char":29,"line":22},{"index_id":153,"token_group":112,"text":")","start_char":82,"line":22},{"index_id":154,"token_group":113,"text":";","start_char":83,"line":22},{"index_id":155,"token_group":114,"text":"}","start_char":20,"line":23},{"index_id":156,"token_group":115,"text":"}","start_char":16,"line":24},{"index_id":157,"token_group":116,"text":")","start_char":17,"line":24},{"index_id":158,"token_group":117,"text":";","start_char":18,"line":24},{"index_id":159,"token_group":118,"text":"fail","start_char":16,"line":25},{"index_id":160,"token_group":119,"text":"(","start_char":20,"line":25},{"index_id":161,"token_group":120,"text":"\"Should have thrown IllegalTransactionStateException\"","start_char":21,"line":25},{"index_id":162,"token_group":121,"text":")","start_char":74,"line":25},{"index_id":163,"token_group":122,"text":";","start_char":75,"line":25},{"index_id":164,"token_group":123,"text":"}","start_char":12,"line":26},{"index_id":165,"token_group":124,"text":"}","start_char":8,"line":27},{"index_id":166,"token_group":125,"text":")","start_char":9,"line":27},{"index_id":167,"token_group":126,"text":";","start_char":10,"line":27},{"index_id":168,"token_group":127,"text":"}","start_char":4,"line":28},{"index_id":169,"token_group":128,"text":"catch","start_char":4,"line":29},{"index_id":170,"token_group":129,"text":"(","start_char":10,"line":29},{"index_id":171,"token_group":130,"text":"illegal","start_char":11,"line":29},{"index_id":172,"token_group":131,"text":"Transaction","start_char":18,"line":29},{"index_id":173,"token_group":131,"text":"State","start_char":29,"line":29},{"index_id":174,"token_group":131,"text":"Exception","start_char":34,"line":29},{"index_id":175,"token_group":131,"text":"ex","start_char":44,"line":29},{"index_id":176,"token_group":132,"text":")","start_char":46,"line":29},{"index_id":177,"token_group":133,"text":"{","start_char":4,"line":30},{"index_id":178,"token_group":134,"text":"}","start_char":4,"line":32},{"index_id":179,"token_group":135,"text":"assert","start_char":4,"line":34},{"index_id":180,"token_group":136,"text":"True","start_char":10,"line":34},{"index_id":181,"token_group":136,"text":"(","start_char":14,"line":34},{"index_id":182,"token_group":137,"text":"\"Hasn't thread connection\"","start_char":15,"line":34},{"index_id":183,"token_group":138,"text":",","start_char":41,"line":34},{"index_id":184,"token_group":139,"text":"!","start_char":43,"line":34},{"index_id":185,"token_group":140,"text":"transaction","start_char":44,"line":34},{"index_id":186,"token_group":141,"text":"Synchronization","start_char":55,"line":34},{"index_id":187,"token_group":141,"text":"Manager","start_char":70,"line":34},{"index_id":188,"token_group":141,"text":".","start_char":77,"line":34},{"index_id":189,"token_group":142,"text":"has","start_char":78,"line":34},{"index_id":190,"token_group":143,"text":"Resource","start_char":81,"line":34},{"index_id":191,"token_group":143,"text":"(","start_char":89,"line":34},{"index_id":192,"token_group":144,"text":"ds","start_char":90,"line":34},{"index_id":193,"token_group":145,"text":")","start_char":92,"line":34},{"index_id":194,"token_group":146,"text":")","start_char":93,"line":34},{"index_id":195,"token_group":147,"text":";","start_char":94,"line":34},{"index_id":196,"token_group":148,"text":"verify","start_char":4,"line":35},{"index_id":197,"token_group":149,"text":"(","start_char":10,"line":35},{"index_id":198,"token_group":150,"text":"con","start_char":11,"line":35},{"index_id":199,"token_group":151,"text":")","start_char":14,"line":35},{"index_id":200,"token_group":152,"text":".","start_char":15,"line":35},{"index_id":201,"token_group":153,"text":"rollback","start_char":16,"line":35},{"index_id":202,"token_group":154,"text":"(","start_char":24,"line":35},{"index_id":203,"token_group":155,"text":")","start_char":25,"line":35},{"index_id":204,"token_group":156,"text":";","start_char":26,"line":35},{"index_id":205,"token_group":157,"text":"verify","start_char":4,"line":36},{"index_id":206,"token_group":158,"text":"(","start_char":10,"line":36},{"index_id":207,"token_group":159,"text":"con","start_char":11,"line":36},{"index_id":208,"token_group":160,"text":")","start_char":14,"line":36},{"index_id":209,"token_group":161,"text":".","start_char":15,"line":36},{"index_id":210,"token_group":162,"text":"close","start_char":16,"line":36},{"index_id":211,"token_group":163,"text":"(","start_char":21,"line":36},{"index_id":212,"token_group":164,"text":")","start_char":22,"line":36},{"index_id":213,"token_group":165,"text":";","start_char":23,"line":36},{"index_id":214,"token_group":166,"text":"}","start_char":0,"line":37}],"tokens_list":["{","final","transaction","Template","tt","=","new","transaction","Template","(","tm",")",";","tt",".","set","Propagation","Behavior","(","transaction","Definition",".","propagation","Requires","New",")",";","assert","True","(","\"Hasn't thread connection\"",",","!","transaction","Synchronization","Manager",".","has","Resource","(","ds",")",")",";","assert","True","(","\"Synchronization not active\"",",","!","transaction","Synchronization","Manager",".","is","Synchronization","Active","(",")",")",";","try","{","tt",".","execute","(","new","transaction","Callback","Without","Result","(",")","{","@","override","Protected","void","do","In","Transaction","Without","Result","(","transaction","Status","status",")","throws","runtime","Exception","{","assert","True","(","\"Is new transaction\"",",","status",".","is","New","Transaction","(",")",")",";","tt",".","set","Propagation","Behavior","(","transaction","Definition",".","propagation","Never",")",";","tt",".","execute","(","new","transaction","Callback","Without","Result","(",")","{","@","override","Protected","void","do","In","Transaction","Without","Result","(","transaction","Status","status",")","throws","runtime","Exception","{","fail","(","\"Should have thrown IllegalTransactionStateException\"",")",";","}","}",")",";","fail","(","\"Should have thrown IllegalTransactionStateException\"",")",";","}","}",")",";","}","catch","(","illegal","Transaction","State","Exception","ex",")","{","}","assert","True","(","\"Hasn't thread connection\"",",","!","transaction","Synchronization","Manager",".","has","Resource","(","ds",")",")",";","verify","(","con",")",".","rollback","(",")",";","verify","(","con",")",".","close","(",")",";","}"],"uuid":"8dc14a8721308b0957d48bdfdc60836c"},{"cap_original_tokens":["<SENTENCE_START>","{","return","<id>","receiving","Streams","<\/id>",".","<id>","get","<\/id>","(","<id>","plan","Id","<\/id>",")",";","}","<SENTENCE_END\/>"],"file_name":"StreamManager.java","formatted_lines":["{"," return receivingStreams.get(planId);","}"],"function_name":"getReceivingStream","function_name_tokens":["get","receiving","stream"],"id_body_hash":"32c832dbe8fedc22882df33525f39eb8","id_same_identifier_list":[0,1,2,3,3,4,5,6,7,7,8,9,10,11],"option_correct":"getReceivingStream","options":["nonCustomIndexesRequireExactlyOneTargetColumn","flushBufferPool","setStreamId","assertClustering","getStreamId","registerReceiving","getReceivingStream"],"options_nlp":["non custom indexes require exactly one target column","flush buffer pool","set stream id","assert clustering","get stream id","register receiving","get receiving stream"],"options_random":["nonCustomIndexesRequireExactlyOneTargetColumn","flushBufferPool","assertClustering"],"options_tfidf":["setStreamId","registerReceiving","getStreamId"],"project_name":"cassandra","source_code_string":"public StreamResultFuture getReceivingStream(UUID planId)\n {\n return receivingStreams.get(planId);\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":"receiving","start_char":11,"line":1},{"index_id":3,"token_group":3,"text":"Streams","start_char":20,"line":1},{"index_id":4,"token_group":3,"text":".","start_char":27,"line":1},{"index_id":5,"token_group":4,"text":"get","start_char":28,"line":1},{"index_id":6,"token_group":5,"text":"(","start_char":31,"line":1},{"index_id":7,"token_group":6,"text":"plan","start_char":32,"line":1},{"index_id":8,"token_group":7,"text":"Id","start_char":36,"line":1},{"index_id":9,"token_group":7,"text":")","start_char":38,"line":1},{"index_id":10,"token_group":8,"text":";","start_char":39,"line":1},{"index_id":11,"token_group":9,"text":"}","start_char":0,"line":2}],"tokens_list":["{","return","receiving","Streams",".","get","(","plan","Id",")",";","}"],"uuid":"74d14d8e2dd177ea62fdc68833d8b460"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","","Company","Local","Service","<\/id>","=","<id>","company","Local","Service","<\/id>",";","}","<SENTENCE_END\/>"],"file_name":"CompanyLocalServiceWrapper.java","formatted_lines":["{"," _companyLocalService = companyLocalService;","}"],"function_name":"setWrappedCompanyLocalService","function_name_tokens":["set","wrapped","company","local","service"],"id_body_hash":"e40114d825374fb0143ad38d4bd843af","id_same_identifier_list":[0,1,2,2,2,2,3,4,4,4,5,6,7],"option_correct":"setWrappedCompanyLocalService","options":["getWorkflowInstanceLinkLocalService","getRuntimePage","getCompanyLocalService","setWrappedCompanyLocalService","setSearchJsp","setCompanyLocalService","getWrappedCompanyLocalService"],"options_nlp":["get workflow instance link local service","get runtime page","get company local service","set wrapped company local service","set search jsp","set company local service","get wrapped company local service"],"options_random":["setSearchJsp","getWorkflowInstanceLinkLocalService","getRuntimePage"],"options_tfidf":["getWrappedCompanyLocalService","setCompanyLocalService","getCompanyLocalService"],"project_name":"liferay-portal","source_code_string":"@Deprecated\n\tpublic void setWrappedCompanyLocalService(\n\t\tCompanyLocalService companyLocalService) {\n\t\t_companyLocalService = companyLocalService;\n\t}","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"","start_char":1,"line":0},{"index_id":2,"token_group":2,"text":"Company","start_char":5,"line":1},{"index_id":3,"token_group":2,"text":"Local","start_char":12,"line":1},{"index_id":4,"token_group":2,"text":"Service","start_char":17,"line":1},{"index_id":5,"token_group":2,"text":"=","start_char":25,"line":1},{"index_id":6,"token_group":3,"text":"company","start_char":27,"line":1},{"index_id":7,"token_group":4,"text":"Local","start_char":34,"line":1},{"index_id":8,"token_group":4,"text":"Service","start_char":39,"line":1},{"index_id":9,"token_group":4,"text":";","start_char":46,"line":1},{"index_id":10,"token_group":5,"text":"}","start_char":0,"line":2}],"tokens_list":["{","","Company","Local","Service","=","company","Local","Service",";","}"],"uuid":"e491e735c831ad882981e4d16915e339"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","do","Move","Symbol","Test","<\/id>","(","\"func\"",",","\"b.py\"",")",";","}","<SENTENCE_END\/>"],"file_name":"PyMoveTest.java","formatted_lines":["{"," doMoveSymbolTest(\"func\", \"b.py\");","}"],"function_name":"testDunderAllTwoElementsTuple","function_name_tokens":["test","dunder","all","two","elements","tuple"],"id_body_hash":"23575f0dae5d4fb6e337614c8aa13ba8","id_same_identifier_list":[0,1,2,2,2,2,3,4,5,6,7,8,9,10],"option_correct":"testDunderAllTwoElementsTuple","options":["testDunderAll","getImplementNames","testDunderClass","wrapToItems","trySaveToIndex","testDunderAllSingleElementTuple","testDunderAllTwoElementsTuple"],"options_nlp":["test dunder all","get implement names","test dunder class","wrap to items","try save to index","test dunder all single element tuple","test dunder all two elements tuple"],"options_random":["wrapToItems","getImplementNames","trySaveToIndex"],"options_tfidf":["testDunderAllSingleElementTuple","testDunderAll","testDunderClass"],"project_name":"intellij-community","source_code_string":"public void testDunderAllTwoElementsTuple() {\n doMoveSymbolTest(\"func\", \"b.py\");\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"do","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"Move","start_char":6,"line":1},{"index_id":3,"token_group":2,"text":"Symbol","start_char":10,"line":1},{"index_id":4,"token_group":2,"text":"Test","start_char":16,"line":1},{"index_id":5,"token_group":2,"text":"(","start_char":20,"line":1},{"index_id":6,"token_group":3,"text":"\"func\"","start_char":21,"line":1},{"index_id":7,"token_group":4,"text":",","start_char":27,"line":1},{"index_id":8,"token_group":5,"text":"\"b.py\"","start_char":29,"line":1},{"index_id":9,"token_group":6,"text":")","start_char":35,"line":1},{"index_id":10,"token_group":7,"text":";","start_char":36,"line":1},{"index_id":11,"token_group":8,"text":"}","start_char":0,"line":2}],"tokens_list":["{","do","Move","Symbol","Test","(","\"func\"",",","\"b.py\"",")",";","}"],"uuid":"1a274334d97513f06499f9c140d99dc0"},{"cap_original_tokens":["<SENTENCE_START>","{","this",".","<id>","select","<\/id>","=","<id>","select","<\/id>",";","return","this",";","}","<SENTENCE_END\/>"],"file_name":"InsertSelect.java","formatted_lines":["{"," this.select = select;"," return this;","}"],"function_name":"setSelect","function_name_tokens":["set","select"],"id_body_hash":"aa26996bc9628acfd5f3607b6bca61e8","id_same_identifier_list":[0,1,2,3,4,5,6,7,8,9,10,11,12],"option_correct":"setSelect","options":["setSequentialSelect","setIsbn","setSelect","setA","renderArguments","setSelectExpression","cascadeOnMerge"],"options_nlp":["set sequential select","set isbn","set select","set a","render arguments","set select expression","cascade on merge"],"options_random":["setIsbn","renderArguments","cascadeOnMerge"],"options_tfidf":["setA","setSequentialSelect","setSelectExpression"],"project_name":"hibernate-orm","source_code_string":"public InsertSelect setSelect(Select select) {\n\t\tthis.select = select;\n\t\treturn this;\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":"select","start_char":9,"line":1},{"index_id":4,"token_group":4,"text":"=","start_char":16,"line":1},{"index_id":5,"token_group":5,"text":"select","start_char":18,"line":1},{"index_id":6,"token_group":6,"text":";","start_char":24,"line":1},{"index_id":7,"token_group":7,"text":"return","start_char":4,"line":2},{"index_id":8,"token_group":8,"text":"this","start_char":11,"line":2},{"index_id":9,"token_group":9,"text":";","start_char":15,"line":2},{"index_id":10,"token_group":10,"text":"}","start_char":0,"line":3}],"tokens_list":["{","this",".","select","=","select",";","return","this",";","}"],"uuid":"bf33c9a6288a9cd8736a1cec98e721f9"},{"cap_original_tokens":["<SENTENCE_START>","{","@","<id>","non","Nls","<\/id>","<id>","string","<\/id>","<id>","text","<\/id>","=","\"class I {}\"",";","final","<id>","psi","Java","File","<\/id>","<id>","file","<\/id>","=","(","<id>","psi","Java","File","<\/id>",")","<id>","configure","By","Text","<\/id>","(","<id>","std","File","Types","<\/id>",".","<id>","java","<\/id>",",","<id>","text","<\/id>",")",";","<id>","assert","Empty","<\/id>","(","<id>","highlight","Errors","<\/id>","(",")",")",";","<id>","command","Processor","<\/id>",".","<id>","get","Instance","<\/id>","(",")",".","<id>","execute","Command","<\/id>","(","<id>","get","Project","<\/id>","(",")",",","new","<id>","runnable","<\/id>","(",")","{","@","<id>","override","<\/id>","Public","void","<id>","run","<\/id>","(",")","{","<id>","write","Command","Action","<\/id>",".","<id>","run","Write","Command","Action","<\/id>","(","null",",","new","<id>","runnable","<\/id>","(",")","{","@","<id>","override","<\/id>","Public","void","<id>","run","<\/id>","(",")","{","try","{","<id>","check","Add","Import","<\/id>","(","<id>","file","<\/id>",",","<id>","common","Class","Names","<\/id>",".","<id>","java","Util","List","<\/id>",",","<id>","common","Class","Names","<\/id>",".","<id>","java","Util","List","<\/id>",")",";","<id>","check","Add","Import","<\/id>","(","<id>","file","<\/id>",",","\"java.util.ArrayList\"",",","\"java.util.ArrayList\"",",","<id>","common","Class","Names","<\/id>",".","<id>","java","Util","List","<\/id>",")",";","<id>","check","Add","Import","<\/id>","(","<id>","file","<\/id>",",","\"java.util.HashMap\"",",","\"java.util.ArrayList\"",",","\"java.util.HashMap\"",",","<id>","common","Class","Names","<\/id>",".","<id>","java","Util","List","<\/id>",")",";","<id>","check","Add","Import","<\/id>","(","<id>","file","<\/id>",",","\"java.util.SortedMap\"",",","\"java.util.ArrayList\"",",","\"java.util.HashMap\"",",","<id>","common","Class","Names","<\/id>",".","<id>","java","Util","List","<\/id>",",","\"java.util.SortedMap\"",")",";","<id>","check","Add","Import","<\/id>","(","<id>","file","<\/id>",",","<id>","common","Class","Names","<\/id>",".","<id>","java","Util","Map","<\/id>",",","\"java.util.ArrayList\"",",","\"java.util.HashMap\"",",","<id>","common","Class","Names","<\/id>",".","<id>","java","Util","List","<\/id>",",","<id>","common","Class","Names","<\/id>",".","<id>","java","Util","Map","<\/id>",",","\"java.util.SortedMap\"",")",";","<id>","check","Add","Import","<\/id>","(","<id>","file","<\/id>",",","\"java.util.AbstractList\"",",","\"java.util.AbstractList\"",",","\"java.util.ArrayList\"",",","\"java.util.HashMap\"",",","<id>","common","Class","Names","<\/id>",".","<id>","java","Util","List","<\/id>",",","<id>","common","Class","Names","<\/id>",".","<id>","java","Util","Map","<\/id>",",","\"java.util.SortedMap\"",")",";","<id>","check","Add","Import","<\/id>","(","<id>","file","<\/id>",",","\"java.util.AbstractList\"",",","\"java.util.AbstractList\"",",","\"java.util.ArrayList\"",",","\"java.util.HashMap\"",",","<id>","common","Class","Names","<\/id>",".","<id>","java","Util","List","<\/id>",",","<id>","common","Class","Names","<\/id>",".","<id>","java","Util","Map","<\/id>",",","\"java.util.SortedMap\"",")",";","<id>","check","Add","Import","<\/id>","(","<id>","file","<\/id>",",","\"java.util.TreeMap\"",",","\"java.util.AbstractList\"",",","\"java.util.ArrayList\"",",","\"java.util.HashMap\"",",","<id>","common","Class","Names","<\/id>",".","<id>","java","Util","List","<\/id>",",","<id>","common","Class","Names","<\/id>",".","<id>","java","Util","Map","<\/id>",",","\"java.util.SortedMap\"",",","\"java.util.TreeMap\"",")",";","<id>","check","Add","Import","<\/id>","(","<id>","file","<\/id>",",","\"java.util.concurrent.atomic.AtomicBoolean\"",",","\"java.util.AbstractList\"",",","\"java.util.ArrayList\"",",","\"java.util.HashMap\"",",","<id>","common","Class","Names","<\/id>",".","<id>","java","Util","List","<\/id>",",","<id>","common","Class","Names","<\/id>",".","<id>","java","Util","Map","<\/id>",",","\"java.util.SortedMap\"",",","\"java.util.TreeMap\"",",","\"java.util.concurrent.atomic.AtomicBoolean\"",")",";","<id>","check","Add","Import","<\/id>","(","<id>","file","<\/id>",",","\"java.io.File\"",",","\"java.io.File\"",",","\"java.util.AbstractList\"",",","\"java.util.ArrayList\"",",","\"java.util.HashMap\"",",","<id>","common","Class","Names","<\/id>",".","<id>","java","Util","List","<\/id>",",","<id>","common","Class","Names","<\/id>",".","<id>","java","Util","Map","<\/id>",",","\"java.util.SortedMap\"",",","\"java.util.TreeMap\"",",","\"java.util.concurrent.atomic.AtomicBoolean\"",")",";","}","catch","(","<id>","throwable","<\/id>","<id>","e","<\/id>",")","{","<id>","log","<\/id>",".","<id>","error","<\/id>","(","<id>","e","<\/id>",")",";","}","}","}",")",";","}","}",",","\"\"",",","\"\"",")",";","}","<SENTENCE_END\/>"],"file_name":"ImportHelperTest.java","formatted_lines":["{"," @NonNls String text = \"class I {}\";"," final PsiJavaFile file = (PsiJavaFile)configureByText(StdFileTypes.JAVA, text);"," assertEmpty(highlightErrors());"," CommandProcessor.getInstance().executeCommand("," getProject(), new Runnable()"," {"," @Override"," public void run()"," {"," WriteCommandAction.runWriteCommandAction(null, new Runnable()"," {"," @Override"," public void run()"," {"," try"," {"," checkAddImport(file, CommonClassNames.JAVA_UTIL_LIST,"," CommonClassNames.JAVA_UTIL_LIST);"," checkAddImport(file, \"java.util.ArrayList\", \"java.util.ArrayList\","," CommonClassNames.JAVA_UTIL_LIST);"," checkAddImport(file, \"java.util.HashMap\", \"java.util.ArrayList\","," \"java.util.HashMap\", CommonClassNames.JAVA_UTIL_LIST);"," checkAddImport(file, \"java.util.SortedMap\", \"java.util.ArrayList\","," \"java.util.HashMap\", CommonClassNames.JAVA_UTIL_LIST, \"java.util.SortedMap\");"," checkAddImport(file, CommonClassNames.JAVA_UTIL_MAP, \"java.util.ArrayList\","," \"java.util.HashMap\","," CommonClassNames.JAVA_UTIL_LIST,"," CommonClassNames.JAVA_UTIL_MAP, \"java.util.SortedMap\");"," checkAddImport(file, \"java.util.AbstractList\", \"java.util.AbstractList\","," \"java.util.ArrayList\", \"java.util.HashMap\","," CommonClassNames.JAVA_UTIL_LIST,"," CommonClassNames.JAVA_UTIL_MAP, \"java.util.SortedMap\");"," checkAddImport(file, \"java.util.AbstractList\", \"java.util.AbstractList\","," \"java.util.ArrayList\", \"java.util.HashMap\","," CommonClassNames.JAVA_UTIL_LIST,"," CommonClassNames.JAVA_UTIL_MAP, \"java.util.SortedMap\");"," checkAddImport(file, \"java.util.TreeMap\", \"java.util.AbstractList\","," \"java.util.ArrayList\", \"java.util.HashMap\","," CommonClassNames.JAVA_UTIL_LIST,"," CommonClassNames.JAVA_UTIL_MAP, \"java.util.SortedMap\", \"java.util.TreeMap\");"," checkAddImport(file, \"java.util.concurrent.atomic.AtomicBoolean\","," \"java.util.AbstractList\", \"java.util.ArrayList\", \"java.util.HashMap\","," CommonClassNames.JAVA_UTIL_LIST,"," CommonClassNames.JAVA_UTIL_MAP, \"java.util.SortedMap\", \"java.util.TreeMap\","," \"java.util.concurrent.atomic.AtomicBoolean\");"," checkAddImport(file, \"java.io.File\", \"java.io.File\", \"java.util.AbstractList\","," \"java.util.ArrayList\", \"java.util.HashMap\","," CommonClassNames.JAVA_UTIL_LIST,"," CommonClassNames.JAVA_UTIL_MAP, \"java.util.SortedMap\", \"java.util.TreeMap\","," \"java.util.concurrent.atomic.AtomicBoolean\");"," }"," catch (Throwable e)"," {"," LOG.error(e);"," }"," }"," });"," }"," }, \"\", \"\");","}"],"function_name":"testImportsInsertedAlphabetically","function_name_tokens":["test","imports","inserted","alphabetically"],"id_body_hash":"6c6a27671260cb0d7fa01af0a5a95d2c","id_same_identifier_list":[0,1,2,3,3,4,5,6,7,8,9,10,10,10,11,12,13,14,14,14,15,16,16,16,17,18,18,18,19,20,21,22,23,24,25,25,26,27,27,28,29,30,31,32,32,33,34,34,35,36,37,38,38,39,40,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,57,57,58,59,59,59,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,78,78,79,80,81,82,82,82,83,84,84,84,85,86,86,86,87,88,88,88,89,90,91,91,91,92,93,94,95,96,97,98,99,99,99,100,101,101,101,102,103,104,104,104,105,106,107,108,109,110,111,112,113,114,114,114,115,116,116,116,117,118,119,119,119,120,121,122,123,124,125,126,127,128,129,129,129,130,131,131,131,132,133,134,135,136,136,136,137,138,139,140,140,140,141,142,142,142,143,144,145,146,147,148,148,148,149,150,150,150,151,152,152,152,153,154,154,154,155,156,157,158,159,159,159,160,161,162,163,164,165,166,167,168,169,170,171,171,171,172,173,173,173,174,175,175,175,176,177,177,177,178,179,180,181,182,182,182,183,184,185,186,187,188,189,190,191,192,193,194,194,194,195,196,196,196,197,198,198,198,199,200,200,200,201,202,203,204,205,205,205,206,207,208,209,210,211,212,213,214,215,216,217,217,217,218,219,219,219,220,221,221,221,222,223,223,223,224,225,226,227,228,229,230,230,230,231,232,233,234,235,236,237,238,239,240,241,242,242,242,243,244,244,244,245,246,246,246,247,248,248,248,249,250,251,252,253,254,255,256,257,257,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,271,271,272,273,273,273,274,275,275,275,276,277,277,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314],"option_correct":"testImportsInsertedAlphabetically","options":["testConditionalImports","showErrorLater","testStaticImports","getTextSkippingWhitespaceComments","testImportsInsertedAlphabetically","testInnerImports","modelToView"],"options_nlp":["test conditional imports","show error later","test static imports","get text skipping whitespace comments","test imports inserted alphabetically","test inner imports","model to view"],"options_random":["showErrorLater","modelToView","getTextSkippingWhitespaceComments"],"options_tfidf":["testInnerImports","testStaticImports","testConditionalImports"],"project_name":"intellij-community","source_code_string":"@WrapInCommand\n public void testImportsInsertedAlphabetically() throws Throwable {\n @NonNls String text = \"class I {}\";\n final PsiJavaFile file = (PsiJavaFile)configureByText(StdFileTypes.JAVA, text);\n assertEmpty(highlightErrors());\n CommandProcessor.getInstance().executeCommand(\n getProject(), new Runnable() {\n @Override\n public void run() {\n WriteCommandAction.runWriteCommandAction(null, new Runnable() {\n @Override\n public void run() {\n try {\n checkAddImport(file, CommonClassNames.JAVA_UTIL_LIST, CommonClassNames.JAVA_UTIL_LIST);\n checkAddImport(file, \"java.util.ArrayList\", \"java.util.ArrayList\", CommonClassNames.JAVA_UTIL_LIST);\n checkAddImport(file, \"java.util.HashMap\", \"java.util.ArrayList\",\"java.util.HashMap\", CommonClassNames.JAVA_UTIL_LIST);\n checkAddImport(file, \"java.util.SortedMap\", \"java.util.ArrayList\",\"java.util.HashMap\", CommonClassNames.JAVA_UTIL_LIST,\"java.util.SortedMap\");\n checkAddImport(file, CommonClassNames.JAVA_UTIL_MAP, \"java.util.ArrayList\",\"java.util.HashMap\",\n CommonClassNames.JAVA_UTIL_LIST,\n CommonClassNames.JAVA_UTIL_MAP,\"java.util.SortedMap\");\n checkAddImport(file, \"java.util.AbstractList\", \"java.util.AbstractList\",\"java.util.ArrayList\",\"java.util.HashMap\",\n CommonClassNames.JAVA_UTIL_LIST,\n CommonClassNames.JAVA_UTIL_MAP,\"java.util.SortedMap\");\n checkAddImport(file, \"java.util.AbstractList\", \"java.util.AbstractList\",\"java.util.ArrayList\",\"java.util.HashMap\",\n CommonClassNames.JAVA_UTIL_LIST,\n CommonClassNames.JAVA_UTIL_MAP,\"java.util.SortedMap\");\n checkAddImport(file, \"java.util.TreeMap\", \"java.util.AbstractList\",\"java.util.ArrayList\",\"java.util.HashMap\",\n CommonClassNames.JAVA_UTIL_LIST,\n CommonClassNames.JAVA_UTIL_MAP,\"java.util.SortedMap\", \"java.util.TreeMap\");\n checkAddImport(file, \"java.util.concurrent.atomic.AtomicBoolean\", \"java.util.AbstractList\",\"java.util.ArrayList\",\"java.util.HashMap\",\n CommonClassNames.JAVA_UTIL_LIST,\n CommonClassNames.JAVA_UTIL_MAP,\"java.util.SortedMap\", \"java.util.TreeMap\", \"java.util.concurrent.atomic.AtomicBoolean\");\n checkAddImport(file, \"java.io.File\", \"java.io.File\",\"java.util.AbstractList\",\"java.util.ArrayList\",\"java.util.HashMap\",\n CommonClassNames.JAVA_UTIL_LIST,\n CommonClassNames.JAVA_UTIL_MAP,\"java.util.SortedMap\", \"java.util.TreeMap\", \"java.util.concurrent.atomic.AtomicBoolean\");\n }\n catch (Throwable e) {\n LOG.error(e);\n }\n }\n });\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":"@","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"non","start_char":5,"line":1},{"index_id":3,"token_group":3,"text":"Nls","start_char":8,"line":1},{"index_id":4,"token_group":3,"text":"string","start_char":12,"line":1},{"index_id":5,"token_group":4,"text":"text","start_char":19,"line":1},{"index_id":6,"token_group":5,"text":"=","start_char":24,"line":1},{"index_id":7,"token_group":6,"text":"\"class I {}\"","start_char":26,"line":1},{"index_id":8,"token_group":7,"text":";","start_char":38,"line":1},{"index_id":9,"token_group":8,"text":"final","start_char":4,"line":2},{"index_id":10,"token_group":9,"text":"psi","start_char":10,"line":2},{"index_id":11,"token_group":10,"text":"Java","start_char":13,"line":2},{"index_id":12,"token_group":10,"text":"File","start_char":17,"line":2},{"index_id":13,"token_group":10,"text":"file","start_char":22,"line":2},{"index_id":14,"token_group":11,"text":"=","start_char":27,"line":2},{"index_id":15,"token_group":12,"text":"(","start_char":29,"line":2},{"index_id":16,"token_group":13,"text":"psi","start_char":30,"line":2},{"index_id":17,"token_group":14,"text":"Java","start_char":33,"line":2},{"index_id":18,"token_group":14,"text":"File","start_char":37,"line":2},{"index_id":19,"token_group":14,"text":")","start_char":41,"line":2},{"index_id":20,"token_group":15,"text":"configure","start_char":42,"line":2},{"index_id":21,"token_group":16,"text":"By","start_char":51,"line":2},{"index_id":22,"token_group":16,"text":"Text","start_char":53,"line":2},{"index_id":23,"token_group":16,"text":"(","start_char":57,"line":2},{"index_id":24,"token_group":17,"text":"std","start_char":58,"line":2},{"index_id":25,"token_group":18,"text":"File","start_char":61,"line":2},{"index_id":26,"token_group":18,"text":"Types","start_char":65,"line":2},{"index_id":27,"token_group":18,"text":".","start_char":70,"line":2},{"index_id":28,"token_group":19,"text":"java","start_char":71,"line":2},{"index_id":29,"token_group":20,"text":",","start_char":75,"line":2},{"index_id":30,"token_group":21,"text":"text","start_char":77,"line":2},{"index_id":31,"token_group":22,"text":")","start_char":81,"line":2},{"index_id":32,"token_group":23,"text":";","start_char":82,"line":2},{"index_id":33,"token_group":24,"text":"assert","start_char":4,"line":3},{"index_id":34,"token_group":25,"text":"Empty","start_char":10,"line":3},{"index_id":35,"token_group":25,"text":"(","start_char":15,"line":3},{"index_id":36,"token_group":26,"text":"highlight","start_char":16,"line":3},{"index_id":37,"token_group":27,"text":"Errors","start_char":25,"line":3},{"index_id":38,"token_group":27,"text":"(","start_char":31,"line":3},{"index_id":39,"token_group":28,"text":")","start_char":32,"line":3},{"index_id":40,"token_group":29,"text":")","start_char":33,"line":3},{"index_id":41,"token_group":30,"text":";","start_char":34,"line":3},{"index_id":42,"token_group":31,"text":"command","start_char":4,"line":4},{"index_id":43,"token_group":32,"text":"Processor","start_char":11,"line":4},{"index_id":44,"token_group":32,"text":".","start_char":20,"line":4},{"index_id":45,"token_group":33,"text":"get","start_char":21,"line":4},{"index_id":46,"token_group":34,"text":"Instance","start_char":24,"line":4},{"index_id":47,"token_group":34,"text":"(","start_char":32,"line":4},{"index_id":48,"token_group":35,"text":")","start_char":33,"line":4},{"index_id":49,"token_group":36,"text":".","start_char":34,"line":4},{"index_id":50,"token_group":37,"text":"execute","start_char":35,"line":4},{"index_id":51,"token_group":38,"text":"Command","start_char":42,"line":4},{"index_id":52,"token_group":38,"text":"(","start_char":49,"line":4},{"index_id":53,"token_group":39,"text":"get","start_char":8,"line":5},{"index_id":54,"token_group":40,"text":"Project","start_char":11,"line":5},{"index_id":55,"token_group":40,"text":"(","start_char":18,"line":5},{"index_id":56,"token_group":41,"text":")","start_char":19,"line":5},{"index_id":57,"token_group":42,"text":",","start_char":20,"line":5},{"index_id":58,"token_group":43,"text":"new","start_char":22,"line":5},{"index_id":59,"token_group":44,"text":"runnable","start_char":26,"line":5},{"index_id":60,"token_group":45,"text":"(","start_char":34,"line":5},{"index_id":61,"token_group":46,"text":")","start_char":35,"line":5},{"index_id":62,"token_group":47,"text":"{","start_char":4,"line":6},{"index_id":63,"token_group":48,"text":"@","start_char":8,"line":7},{"index_id":64,"token_group":49,"text":"override","start_char":9,"line":7},{"index_id":65,"token_group":50,"text":"Public","start_char":8,"line":8},{"index_id":66,"token_group":51,"text":"void","start_char":15,"line":8},{"index_id":67,"token_group":52,"text":"run","start_char":20,"line":8},{"index_id":68,"token_group":53,"text":"(","start_char":23,"line":8},{"index_id":69,"token_group":54,"text":")","start_char":24,"line":8},{"index_id":70,"token_group":55,"text":"{","start_char":8,"line":9},{"index_id":71,"token_group":56,"text":"write","start_char":12,"line":10},{"index_id":72,"token_group":57,"text":"Command","start_char":17,"line":10},{"index_id":73,"token_group":57,"text":"Action","start_char":24,"line":10},{"index_id":74,"token_group":57,"text":".","start_char":30,"line":10},{"index_id":75,"token_group":58,"text":"run","start_char":31,"line":10},{"index_id":76,"token_group":59,"text":"Write","start_char":34,"line":10},{"index_id":77,"token_group":59,"text":"Command","start_char":39,"line":10},{"index_id":78,"token_group":59,"text":"Action","start_char":46,"line":10},{"index_id":79,"token_group":59,"text":"(","start_char":52,"line":10},{"index_id":80,"token_group":60,"text":"null","start_char":53,"line":10},{"index_id":81,"token_group":61,"text":",","start_char":57,"line":10},{"index_id":82,"token_group":62,"text":"new","start_char":59,"line":10},{"index_id":83,"token_group":63,"text":"runnable","start_char":63,"line":10},{"index_id":84,"token_group":64,"text":"(","start_char":71,"line":10},{"index_id":85,"token_group":65,"text":")","start_char":72,"line":10},{"index_id":86,"token_group":66,"text":"{","start_char":12,"line":11},{"index_id":87,"token_group":67,"text":"@","start_char":16,"line":12},{"index_id":88,"token_group":68,"text":"override","start_char":17,"line":12},{"index_id":89,"token_group":69,"text":"Public","start_char":16,"line":13},{"index_id":90,"token_group":70,"text":"void","start_char":23,"line":13},{"index_id":91,"token_group":71,"text":"run","start_char":28,"line":13},{"index_id":92,"token_group":72,"text":"(","start_char":31,"line":13},{"index_id":93,"token_group":73,"text":")","start_char":32,"line":13},{"index_id":94,"token_group":74,"text":"{","start_char":16,"line":14},{"index_id":95,"token_group":75,"text":"try","start_char":20,"line":15},{"index_id":96,"token_group":76,"text":"{","start_char":20,"line":16},{"index_id":97,"token_group":77,"text":"check","start_char":24,"line":17},{"index_id":98,"token_group":78,"text":"Add","start_char":29,"line":17},{"index_id":99,"token_group":78,"text":"Import","start_char":32,"line":17},{"index_id":100,"token_group":78,"text":"(","start_char":38,"line":17},{"index_id":101,"token_group":79,"text":"file","start_char":39,"line":17},{"index_id":102,"token_group":80,"text":",","start_char":43,"line":17},{"index_id":103,"token_group":81,"text":"common","start_char":45,"line":17},{"index_id":104,"token_group":82,"text":"Class","start_char":51,"line":17},{"index_id":105,"token_group":82,"text":"Names","start_char":56,"line":17},{"index_id":106,"token_group":82,"text":".","start_char":61,"line":17},{"index_id":107,"token_group":83,"text":"java","start_char":62,"line":17},{"index_id":108,"token_group":84,"text":"Util","start_char":67,"line":17},{"index_id":109,"token_group":84,"text":"List","start_char":72,"line":17},{"index_id":110,"token_group":84,"text":",","start_char":76,"line":17},{"index_id":111,"token_group":85,"text":"common","start_char":39,"line":18},{"index_id":112,"token_group":86,"text":"Class","start_char":45,"line":18},{"index_id":113,"token_group":86,"text":"Names","start_char":50,"line":18},{"index_id":114,"token_group":86,"text":".","start_char":55,"line":18},{"index_id":115,"token_group":87,"text":"java","start_char":56,"line":18},{"index_id":116,"token_group":88,"text":"Util","start_char":61,"line":18},{"index_id":117,"token_group":88,"text":"List","start_char":66,"line":18},{"index_id":118,"token_group":88,"text":")","start_char":70,"line":18},{"index_id":119,"token_group":89,"text":";","start_char":71,"line":18},{"index_id":120,"token_group":90,"text":"check","start_char":24,"line":19},{"index_id":121,"token_group":91,"text":"Add","start_char":29,"line":19},{"index_id":122,"token_group":91,"text":"Import","start_char":32,"line":19},{"index_id":123,"token_group":91,"text":"(","start_char":38,"line":19},{"index_id":124,"token_group":92,"text":"file","start_char":39,"line":19},{"index_id":125,"token_group":93,"text":",","start_char":43,"line":19},{"index_id":126,"token_group":94,"text":"\"java.util.ArrayList\"","start_char":45,"line":19},{"index_id":127,"token_group":95,"text":",","start_char":66,"line":19},{"index_id":128,"token_group":96,"text":"\"java.util.ArrayList\"","start_char":68,"line":19},{"index_id":129,"token_group":97,"text":",","start_char":89,"line":19},{"index_id":130,"token_group":98,"text":"common","start_char":39,"line":20},{"index_id":131,"token_group":99,"text":"Class","start_char":45,"line":20},{"index_id":132,"token_group":99,"text":"Names","start_char":50,"line":20},{"index_id":133,"token_group":99,"text":".","start_char":55,"line":20},{"index_id":134,"token_group":100,"text":"java","start_char":56,"line":20},{"index_id":135,"token_group":101,"text":"Util","start_char":61,"line":20},{"index_id":136,"token_group":101,"text":"List","start_char":66,"line":20},{"index_id":137,"token_group":101,"text":")","start_char":70,"line":20},{"index_id":138,"token_group":102,"text":";","start_char":71,"line":20},{"index_id":139,"token_group":103,"text":"check","start_char":24,"line":21},{"index_id":140,"token_group":104,"text":"Add","start_char":29,"line":21},{"index_id":141,"token_group":104,"text":"Import","start_char":32,"line":21},{"index_id":142,"token_group":104,"text":"(","start_char":38,"line":21},{"index_id":143,"token_group":105,"text":"file","start_char":39,"line":21},{"index_id":144,"token_group":106,"text":",","start_char":43,"line":21},{"index_id":145,"token_group":107,"text":"\"java.util.HashMap\"","start_char":45,"line":21},{"index_id":146,"token_group":108,"text":",","start_char":64,"line":21},{"index_id":147,"token_group":109,"text":"\"java.util.ArrayList\"","start_char":66,"line":21},{"index_id":148,"token_group":110,"text":",","start_char":87,"line":21},{"index_id":149,"token_group":111,"text":"\"java.util.HashMap\"","start_char":39,"line":22},{"index_id":150,"token_group":112,"text":",","start_char":58,"line":22},{"index_id":151,"token_group":113,"text":"common","start_char":60,"line":22},{"index_id":152,"token_group":114,"text":"Class","start_char":66,"line":22},{"index_id":153,"token_group":114,"text":"Names","start_char":71,"line":22},{"index_id":154,"token_group":114,"text":".","start_char":76,"line":22},{"index_id":155,"token_group":115,"text":"java","start_char":77,"line":22},{"index_id":156,"token_group":116,"text":"Util","start_char":82,"line":22},{"index_id":157,"token_group":116,"text":"List","start_char":87,"line":22},{"index_id":158,"token_group":116,"text":")","start_char":91,"line":22},{"index_id":159,"token_group":117,"text":";","start_char":92,"line":22},{"index_id":160,"token_group":118,"text":"check","start_char":24,"line":23},{"index_id":161,"token_group":119,"text":"Add","start_char":29,"line":23},{"index_id":162,"token_group":119,"text":"Import","start_char":32,"line":23},{"index_id":163,"token_group":119,"text":"(","start_char":38,"line":23},{"index_id":164,"token_group":120,"text":"file","start_char":39,"line":23},{"index_id":165,"token_group":121,"text":",","start_char":43,"line":23},{"index_id":166,"token_group":122,"text":"\"java.util.SortedMap\"","start_char":45,"line":23},{"index_id":167,"token_group":123,"text":",","start_char":66,"line":23},{"index_id":168,"token_group":124,"text":"\"java.util.ArrayList\"","start_char":68,"line":23},{"index_id":169,"token_group":125,"text":",","start_char":89,"line":23},{"index_id":170,"token_group":126,"text":"\"java.util.HashMap\"","start_char":39,"line":24},{"index_id":171,"token_group":127,"text":",","start_char":58,"line":24},{"index_id":172,"token_group":128,"text":"common","start_char":60,"line":24},{"index_id":173,"token_group":129,"text":"Class","start_char":66,"line":24},{"index_id":174,"token_group":129,"text":"Names","start_char":71,"line":24},{"index_id":175,"token_group":129,"text":".","start_char":76,"line":24},{"index_id":176,"token_group":130,"text":"java","start_char":77,"line":24},{"index_id":177,"token_group":131,"text":"Util","start_char":82,"line":24},{"index_id":178,"token_group":131,"text":"List","start_char":87,"line":24},{"index_id":179,"token_group":131,"text":",","start_char":91,"line":24},{"index_id":180,"token_group":132,"text":"\"java.util.SortedMap\"","start_char":93,"line":24},{"index_id":181,"token_group":133,"text":")","start_char":114,"line":24},{"index_id":182,"token_group":134,"text":";","start_char":115,"line":24},{"index_id":183,"token_group":135,"text":"check","start_char":24,"line":25},{"index_id":184,"token_group":136,"text":"Add","start_char":29,"line":25},{"index_id":185,"token_group":136,"text":"Import","start_char":32,"line":25},{"index_id":186,"token_group":136,"text":"(","start_char":38,"line":25},{"index_id":187,"token_group":137,"text":"file","start_char":39,"line":25},{"index_id":188,"token_group":138,"text":",","start_char":43,"line":25},{"index_id":189,"token_group":139,"text":"common","start_char":45,"line":25},{"index_id":190,"token_group":140,"text":"Class","start_char":51,"line":25},{"index_id":191,"token_group":140,"text":"Names","start_char":56,"line":25},{"index_id":192,"token_group":140,"text":".","start_char":61,"line":25},{"index_id":193,"token_group":141,"text":"java","start_char":62,"line":25},{"index_id":194,"token_group":142,"text":"Util","start_char":67,"line":25},{"index_id":195,"token_group":142,"text":"Map","start_char":72,"line":25},{"index_id":196,"token_group":142,"text":",","start_char":75,"line":25},{"index_id":197,"token_group":143,"text":"\"java.util.ArrayList\"","start_char":77,"line":25},{"index_id":198,"token_group":144,"text":",","start_char":98,"line":25},{"index_id":199,"token_group":145,"text":"\"java.util.HashMap\"","start_char":39,"line":26},{"index_id":200,"token_group":146,"text":",","start_char":58,"line":26},{"index_id":201,"token_group":147,"text":"common","start_char":39,"line":27},{"index_id":202,"token_group":148,"text":"Class","start_char":45,"line":27},{"index_id":203,"token_group":148,"text":"Names","start_char":50,"line":27},{"index_id":204,"token_group":148,"text":".","start_char":55,"line":27},{"index_id":205,"token_group":149,"text":"java","start_char":56,"line":27},{"index_id":206,"token_group":150,"text":"Util","start_char":61,"line":27},{"index_id":207,"token_group":150,"text":"List","start_char":66,"line":27},{"index_id":208,"token_group":150,"text":",","start_char":70,"line":27},{"index_id":209,"token_group":151,"text":"common","start_char":39,"line":28},{"index_id":210,"token_group":152,"text":"Class","start_char":45,"line":28},{"index_id":211,"token_group":152,"text":"Names","start_char":50,"line":28},{"index_id":212,"token_group":152,"text":".","start_char":55,"line":28},{"index_id":213,"token_group":153,"text":"java","start_char":56,"line":28},{"index_id":214,"token_group":154,"text":"Util","start_char":61,"line":28},{"index_id":215,"token_group":154,"text":"Map","start_char":66,"line":28},{"index_id":216,"token_group":154,"text":",","start_char":69,"line":28},{"index_id":217,"token_group":155,"text":"\"java.util.SortedMap\"","start_char":71,"line":28},{"index_id":218,"token_group":156,"text":")","start_char":92,"line":28},{"index_id":219,"token_group":157,"text":";","start_char":93,"line":28},{"index_id":220,"token_group":158,"text":"check","start_char":24,"line":29},{"index_id":221,"token_group":159,"text":"Add","start_char":29,"line":29},{"index_id":222,"token_group":159,"text":"Import","start_char":32,"line":29},{"index_id":223,"token_group":159,"text":"(","start_char":38,"line":29},{"index_id":224,"token_group":160,"text":"file","start_char":39,"line":29},{"index_id":225,"token_group":161,"text":",","start_char":43,"line":29},{"index_id":226,"token_group":162,"text":"\"java.util.AbstractList\"","start_char":45,"line":29},{"index_id":227,"token_group":163,"text":",","start_char":69,"line":29},{"index_id":228,"token_group":164,"text":"\"java.util.AbstractList\"","start_char":71,"line":29},{"index_id":229,"token_group":165,"text":",","start_char":95,"line":29},{"index_id":230,"token_group":166,"text":"\"java.util.ArrayList\"","start_char":39,"line":30},{"index_id":231,"token_group":167,"text":",","start_char":60,"line":30},{"index_id":232,"token_group":168,"text":"\"java.util.HashMap\"","start_char":62,"line":30},{"index_id":233,"token_group":169,"text":",","start_char":81,"line":30},{"index_id":234,"token_group":170,"text":"common","start_char":39,"line":31},{"index_id":235,"token_group":171,"text":"Class","start_char":45,"line":31},{"index_id":236,"token_group":171,"text":"Names","start_char":50,"line":31},{"index_id":237,"token_group":171,"text":".","start_char":55,"line":31},{"index_id":238,"token_group":172,"text":"java","start_char":56,"line":31},{"index_id":239,"token_group":173,"text":"Util","start_char":61,"line":31},{"index_id":240,"token_group":173,"text":"List","start_char":66,"line":31},{"index_id":241,"token_group":173,"text":",","start_char":70,"line":31},{"index_id":242,"token_group":174,"text":"common","start_char":39,"line":32},{"index_id":243,"token_group":175,"text":"Class","start_char":45,"line":32},{"index_id":244,"token_group":175,"text":"Names","start_char":50,"line":32},{"index_id":245,"token_group":175,"text":".","start_char":55,"line":32},{"index_id":246,"token_group":176,"text":"java","start_char":56,"line":32},{"index_id":247,"token_group":177,"text":"Util","start_char":61,"line":32},{"index_id":248,"token_group":177,"text":"Map","start_char":66,"line":32},{"index_id":249,"token_group":177,"text":",","start_char":69,"line":32},{"index_id":250,"token_group":178,"text":"\"java.util.SortedMap\"","start_char":71,"line":32},{"index_id":251,"token_group":179,"text":")","start_char":92,"line":32},{"index_id":252,"token_group":180,"text":";","start_char":93,"line":32},{"index_id":253,"token_group":181,"text":"check","start_char":24,"line":33},{"index_id":254,"token_group":182,"text":"Add","start_char":29,"line":33},{"index_id":255,"token_group":182,"text":"Import","start_char":32,"line":33},{"index_id":256,"token_group":182,"text":"(","start_char":38,"line":33},{"index_id":257,"token_group":183,"text":"file","start_char":39,"line":33},{"index_id":258,"token_group":184,"text":",","start_char":43,"line":33},{"index_id":259,"token_group":185,"text":"\"java.util.AbstractList\"","start_char":45,"line":33},{"index_id":260,"token_group":186,"text":",","start_char":69,"line":33},{"index_id":261,"token_group":187,"text":"\"java.util.AbstractList\"","start_char":71,"line":33},{"index_id":262,"token_group":188,"text":",","start_char":95,"line":33},{"index_id":263,"token_group":189,"text":"\"java.util.ArrayList\"","start_char":39,"line":34},{"index_id":264,"token_group":190,"text":",","start_char":60,"line":34},{"index_id":265,"token_group":191,"text":"\"java.util.HashMap\"","start_char":62,"line":34},{"index_id":266,"token_group":192,"text":",","start_char":81,"line":34},{"index_id":267,"token_group":193,"text":"common","start_char":39,"line":35},{"index_id":268,"token_group":194,"text":"Class","start_char":45,"line":35},{"index_id":269,"token_group":194,"text":"Names","start_char":50,"line":35},{"index_id":270,"token_group":194,"text":".","start_char":55,"line":35},{"index_id":271,"token_group":195,"text":"java","start_char":56,"line":35},{"index_id":272,"token_group":196,"text":"Util","start_char":61,"line":35},{"index_id":273,"token_group":196,"text":"List","start_char":66,"line":35},{"index_id":274,"token_group":196,"text":",","start_char":70,"line":35},{"index_id":275,"token_group":197,"text":"common","start_char":39,"line":36},{"index_id":276,"token_group":198,"text":"Class","start_char":45,"line":36},{"index_id":277,"token_group":198,"text":"Names","start_char":50,"line":36},{"index_id":278,"token_group":198,"text":".","start_char":55,"line":36},{"index_id":279,"token_group":199,"text":"java","start_char":56,"line":36},{"index_id":280,"token_group":200,"text":"Util","start_char":61,"line":36},{"index_id":281,"token_group":200,"text":"Map","start_char":66,"line":36},{"index_id":282,"token_group":200,"text":",","start_char":69,"line":36},{"index_id":283,"token_group":201,"text":"\"java.util.SortedMap\"","start_char":71,"line":36},{"index_id":284,"token_group":202,"text":")","start_char":92,"line":36},{"index_id":285,"token_group":203,"text":";","start_char":93,"line":36},{"index_id":286,"token_group":204,"text":"check","start_char":24,"line":37},{"index_id":287,"token_group":205,"text":"Add","start_char":29,"line":37},{"index_id":288,"token_group":205,"text":"Import","start_char":32,"line":37},{"index_id":289,"token_group":205,"text":"(","start_char":38,"line":37},{"index_id":290,"token_group":206,"text":"file","start_char":39,"line":37},{"index_id":291,"token_group":207,"text":",","start_char":43,"line":37},{"index_id":292,"token_group":208,"text":"\"java.util.TreeMap\"","start_char":45,"line":37},{"index_id":293,"token_group":209,"text":",","start_char":64,"line":37},{"index_id":294,"token_group":210,"text":"\"java.util.AbstractList\"","start_char":66,"line":37},{"index_id":295,"token_group":211,"text":",","start_char":90,"line":37},{"index_id":296,"token_group":212,"text":"\"java.util.ArrayList\"","start_char":39,"line":38},{"index_id":297,"token_group":213,"text":",","start_char":60,"line":38},{"index_id":298,"token_group":214,"text":"\"java.util.HashMap\"","start_char":62,"line":38},{"index_id":299,"token_group":215,"text":",","start_char":81,"line":38},{"index_id":300,"token_group":216,"text":"common","start_char":39,"line":39},{"index_id":301,"token_group":217,"text":"Class","start_char":45,"line":39},{"index_id":302,"token_group":217,"text":"Names","start_char":50,"line":39},{"index_id":303,"token_group":217,"text":".","start_char":55,"line":39},{"index_id":304,"token_group":218,"text":"java","start_char":56,"line":39},{"index_id":305,"token_group":219,"text":"Util","start_char":61,"line":39},{"index_id":306,"token_group":219,"text":"List","start_char":66,"line":39},{"index_id":307,"token_group":219,"text":",","start_char":70,"line":39},{"index_id":308,"token_group":220,"text":"common","start_char":39,"line":40},{"index_id":309,"token_group":221,"text":"Class","start_char":45,"line":40},{"index_id":310,"token_group":221,"text":"Names","start_char":50,"line":40},{"index_id":311,"token_group":221,"text":".","start_char":55,"line":40},{"index_id":312,"token_group":222,"text":"java","start_char":56,"line":40},{"index_id":313,"token_group":223,"text":"Util","start_char":61,"line":40},{"index_id":314,"token_group":223,"text":"Map","start_char":66,"line":40},{"index_id":315,"token_group":223,"text":",","start_char":69,"line":40},{"index_id":316,"token_group":224,"text":"\"java.util.SortedMap\"","start_char":71,"line":40},{"index_id":317,"token_group":225,"text":",","start_char":92,"line":40},{"index_id":318,"token_group":226,"text":"\"java.util.TreeMap\"","start_char":94,"line":40},{"index_id":319,"token_group":227,"text":")","start_char":113,"line":40},{"index_id":320,"token_group":228,"text":";","start_char":114,"line":40},{"index_id":321,"token_group":229,"text":"check","start_char":24,"line":41},{"index_id":322,"token_group":230,"text":"Add","start_char":29,"line":41},{"index_id":323,"token_group":230,"text":"Import","start_char":32,"line":41},{"index_id":324,"token_group":230,"text":"(","start_char":38,"line":41},{"index_id":325,"token_group":231,"text":"file","start_char":39,"line":41},{"index_id":326,"token_group":232,"text":",","start_char":43,"line":41},{"index_id":327,"token_group":233,"text":"\"java.util.concurrent.atomic.AtomicBoolean\"","start_char":45,"line":41},{"index_id":328,"token_group":234,"text":",","start_char":88,"line":41},{"index_id":329,"token_group":235,"text":"\"java.util.AbstractList\"","start_char":39,"line":42},{"index_id":330,"token_group":236,"text":",","start_char":63,"line":42},{"index_id":331,"token_group":237,"text":"\"java.util.ArrayList\"","start_char":65,"line":42},{"index_id":332,"token_group":238,"text":",","start_char":86,"line":42},{"index_id":333,"token_group":239,"text":"\"java.util.HashMap\"","start_char":88,"line":42},{"index_id":334,"token_group":240,"text":",","start_char":107,"line":42},{"index_id":335,"token_group":241,"text":"common","start_char":39,"line":43},{"index_id":336,"token_group":242,"text":"Class","start_char":45,"line":43},{"index_id":337,"token_group":242,"text":"Names","start_char":50,"line":43},{"index_id":338,"token_group":242,"text":".","start_char":55,"line":43},{"index_id":339,"token_group":243,"text":"java","start_char":56,"line":43},{"index_id":340,"token_group":244,"text":"Util","start_char":61,"line":43},{"index_id":341,"token_group":244,"text":"List","start_char":66,"line":43},{"index_id":342,"token_group":244,"text":",","start_char":70,"line":43},{"index_id":343,"token_group":245,"text":"common","start_char":39,"line":44},{"index_id":344,"token_group":246,"text":"Class","start_char":45,"line":44},{"index_id":345,"token_group":246,"text":"Names","start_char":50,"line":44},{"index_id":346,"token_group":246,"text":".","start_char":55,"line":44},{"index_id":347,"token_group":247,"text":"java","start_char":56,"line":44},{"index_id":348,"token_group":248,"text":"Util","start_char":61,"line":44},{"index_id":349,"token_group":248,"text":"Map","start_char":66,"line":44},{"index_id":350,"token_group":248,"text":",","start_char":69,"line":44},{"index_id":351,"token_group":249,"text":"\"java.util.SortedMap\"","start_char":71,"line":44},{"index_id":352,"token_group":250,"text":",","start_char":92,"line":44},{"index_id":353,"token_group":251,"text":"\"java.util.TreeMap\"","start_char":94,"line":44},{"index_id":354,"token_group":252,"text":",","start_char":113,"line":44},{"index_id":355,"token_group":253,"text":"\"java.util.concurrent.atomic.AtomicBoolean\"","start_char":39,"line":45},{"index_id":356,"token_group":254,"text":")","start_char":82,"line":45},{"index_id":357,"token_group":255,"text":";","start_char":83,"line":45},{"index_id":358,"token_group":256,"text":"check","start_char":24,"line":46},{"index_id":359,"token_group":257,"text":"Add","start_char":29,"line":46},{"index_id":360,"token_group":257,"text":"Import","start_char":32,"line":46},{"index_id":361,"token_group":257,"text":"(","start_char":38,"line":46},{"index_id":362,"token_group":258,"text":"file","start_char":39,"line":46},{"index_id":363,"token_group":259,"text":",","start_char":43,"line":46},{"index_id":364,"token_group":260,"text":"\"java.io.File\"","start_char":45,"line":46},{"index_id":365,"token_group":261,"text":",","start_char":59,"line":46},{"index_id":366,"token_group":262,"text":"\"java.io.File\"","start_char":61,"line":46},{"index_id":367,"token_group":263,"text":",","start_char":75,"line":46},{"index_id":368,"token_group":264,"text":"\"java.util.AbstractList\"","start_char":77,"line":46},{"index_id":369,"token_group":265,"text":",","start_char":101,"line":46},{"index_id":370,"token_group":266,"text":"\"java.util.ArrayList\"","start_char":39,"line":47},{"index_id":371,"token_group":267,"text":",","start_char":60,"line":47},{"index_id":372,"token_group":268,"text":"\"java.util.HashMap\"","start_char":62,"line":47},{"index_id":373,"token_group":269,"text":",","start_char":81,"line":47},{"index_id":374,"token_group":270,"text":"common","start_char":39,"line":48},{"index_id":375,"token_group":271,"text":"Class","start_char":45,"line":48},{"index_id":376,"token_group":271,"text":"Names","start_char":50,"line":48},{"index_id":377,"token_group":271,"text":".","start_char":55,"line":48},{"index_id":378,"token_group":272,"text":"java","start_char":56,"line":48},{"index_id":379,"token_group":273,"text":"Util","start_char":61,"line":48},{"index_id":380,"token_group":273,"text":"List","start_char":66,"line":48},{"index_id":381,"token_group":273,"text":",","start_char":70,"line":48},{"index_id":382,"token_group":274,"text":"common","start_char":39,"line":49},{"index_id":383,"token_group":275,"text":"Class","start_char":45,"line":49},{"index_id":384,"token_group":275,"text":"Names","start_char":50,"line":49},{"index_id":385,"token_group":275,"text":".","start_char":55,"line":49},{"index_id":386,"token_group":276,"text":"java","start_char":56,"line":49},{"index_id":387,"token_group":277,"text":"Util","start_char":61,"line":49},{"index_id":388,"token_group":277,"text":"Map","start_char":66,"line":49},{"index_id":389,"token_group":277,"text":",","start_char":69,"line":49},{"index_id":390,"token_group":278,"text":"\"java.util.SortedMap\"","start_char":71,"line":49},{"index_id":391,"token_group":279,"text":",","start_char":92,"line":49},{"index_id":392,"token_group":280,"text":"\"java.util.TreeMap\"","start_char":94,"line":49},{"index_id":393,"token_group":281,"text":",","start_char":113,"line":49},{"index_id":394,"token_group":282,"text":"\"java.util.concurrent.atomic.AtomicBoolean\"","start_char":39,"line":50},{"index_id":395,"token_group":283,"text":")","start_char":82,"line":50},{"index_id":396,"token_group":284,"text":";","start_char":83,"line":50},{"index_id":397,"token_group":285,"text":"}","start_char":20,"line":51},{"index_id":398,"token_group":286,"text":"catch","start_char":20,"line":52},{"index_id":399,"token_group":287,"text":"(","start_char":26,"line":52},{"index_id":400,"token_group":288,"text":"throwable","start_char":27,"line":52},{"index_id":401,"token_group":289,"text":"e","start_char":37,"line":52},{"index_id":402,"token_group":290,"text":")","start_char":38,"line":52},{"index_id":403,"token_group":291,"text":"{","start_char":20,"line":53},{"index_id":404,"token_group":292,"text":"log","start_char":24,"line":54},{"index_id":405,"token_group":293,"text":".","start_char":27,"line":54},{"index_id":406,"token_group":294,"text":"error","start_char":28,"line":54},{"index_id":407,"token_group":295,"text":"(","start_char":33,"line":54},{"index_id":408,"token_group":296,"text":"e","start_char":34,"line":54},{"index_id":409,"token_group":297,"text":")","start_char":35,"line":54},{"index_id":410,"token_group":298,"text":";","start_char":36,"line":54},{"index_id":411,"token_group":299,"text":"}","start_char":20,"line":55},{"index_id":412,"token_group":300,"text":"}","start_char":16,"line":56},{"index_id":413,"token_group":301,"text":"}","start_char":12,"line":57},{"index_id":414,"token_group":302,"text":")","start_char":13,"line":57},{"index_id":415,"token_group":303,"text":";","start_char":14,"line":57},{"index_id":416,"token_group":304,"text":"}","start_char":8,"line":58},{"index_id":417,"token_group":305,"text":"}","start_char":4,"line":59},{"index_id":418,"token_group":306,"text":",","start_char":5,"line":59},{"index_id":419,"token_group":307,"text":"\"\"","start_char":7,"line":59},{"index_id":420,"token_group":308,"text":",","start_char":9,"line":59},{"index_id":421,"token_group":309,"text":"\"\"","start_char":11,"line":59},{"index_id":422,"token_group":310,"text":")","start_char":13,"line":59},{"index_id":423,"token_group":311,"text":";","start_char":14,"line":59},{"index_id":424,"token_group":312,"text":"}","start_char":0,"line":60}],"tokens_list":["{","@","non","Nls","string","text","=","\"class I {}\"",";","final","psi","Java","File","file","=","(","psi","Java","File",")","configure","By","Text","(","std","File","Types",".","java",",","text",")",";","assert","Empty","(","highlight","Errors","(",")",")",";","command","Processor",".","get","Instance","(",")",".","execute","Command","(","get","Project","(",")",",","new","runnable","(",")","{","@","override","Public","void","run","(",")","{","write","Command","Action",".","run","Write","Command","Action","(","null",",","new","runnable","(",")","{","@","override","Public","void","run","(",")","{","try","{","check","Add","Import","(","file",",","common","Class","Names",".","java","Util","List",",","common","Class","Names",".","java","Util","List",")",";","check","Add","Import","(","file",",","\"java.util.ArrayList\"",",","\"java.util.ArrayList\"",",","common","Class","Names",".","java","Util","List",")",";","check","Add","Import","(","file",",","\"java.util.HashMap\"",",","\"java.util.ArrayList\"",",","\"java.util.HashMap\"",",","common","Class","Names",".","java","Util","List",")",";","check","Add","Import","(","file",",","\"java.util.SortedMap\"",",","\"java.util.ArrayList\"",",","\"java.util.HashMap\"",",","common","Class","Names",".","java","Util","List",",","\"java.util.SortedMap\"",")",";","check","Add","Import","(","file",",","common","Class","Names",".","java","Util","Map",",","\"java.util.ArrayList\"",",","\"java.util.HashMap\"",",","common","Class","Names",".","java","Util","List",",","common","Class","Names",".","java","Util","Map",",","\"java.util.SortedMap\"",")",";","check","Add","Import","(","file",",","\"java.util.AbstractList\"",",","\"java.util.AbstractList\"",",","\"java.util.ArrayList\"",",","\"java.util.HashMap\"",",","common","Class","Names",".","java","Util","List",",","common","Class","Names",".","java","Util","Map",",","\"java.util.SortedMap\"",")",";","check","Add","Import","(","file",",","\"java.util.AbstractList\"",",","\"java.util.AbstractList\"",",","\"java.util.ArrayList\"",",","\"java.util.HashMap\"",",","common","Class","Names",".","java","Util","List",",","common","Class","Names",".","java","Util","Map",",","\"java.util.SortedMap\"",")",";","check","Add","Import","(","file",",","\"java.util.TreeMap\"",",","\"java.util.AbstractList\"",",","\"java.util.ArrayList\"",",","\"java.util.HashMap\"",",","common","Class","Names",".","java","Util","List",",","common","Class","Names",".","java","Util","Map",",","\"java.util.SortedMap\"",",","\"java.util.TreeMap\"",")",";","check","Add","Import","(","file",",","\"java.util.concurrent.atomic.AtomicBoolean\"",",","\"java.util.AbstractList\"",",","\"java.util.ArrayList\"",",","\"java.util.HashMap\"",",","common","Class","Names",".","java","Util","List",",","common","Class","Names",".","java","Util","Map",",","\"java.util.SortedMap\"",",","\"java.util.TreeMap\"",",","\"java.util.concurrent.atomic.AtomicBoolean\"",")",";","check","Add","Import","(","file",",","\"java.io.File\"",",","\"java.io.File\"",",","\"java.util.AbstractList\"",",","\"java.util.ArrayList\"",",","\"java.util.HashMap\"",",","common","Class","Names",".","java","Util","List",",","common","Class","Names",".","java","Util","Map",",","\"java.util.SortedMap\"",",","\"java.util.TreeMap\"",",","\"java.util.concurrent.atomic.AtomicBoolean\"",")",";","}","catch","(","throwable","e",")","{","log",".","error","(","e",")",";","}","}","}",")",";","}","}",",","\"\"",",","\"\"",")",";","}"],"uuid":"eda12df26460f7109ce51ba1291621e8"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","latch","<\/id>",".","<id>","await","<\/id>","(","5",",","<id>","time","Unit","<\/id>",".","<id>","seconds","<\/id>",")",";","<id>","future","Method","Called","<\/id>","=","true",";","return","new","<id>","async","Result","<\/id>","<","<id>","boolean","<\/id>",">","(","true",")",";","}","<SENTENCE_END\/>"],"file_name":"AsyncSingleton.java","formatted_lines":["{"," latch.await(5, TimeUnit.SECONDS);"," futureMethodCalled = true;"," return new AsyncResult<Boolean>(true);","}"],"function_name":"futureMethod","function_name_tokens":["future","method"],"id_body_hash":"697ff5ded68e19bdbac491c2a02c4140","id_same_identifier_list":[0,1,2,3,4,5,6,7,8,8,9,10,11,12,13,13,13,14,15,16,17,18,19,19,20,21,22,23,24,25,26,27,28],"option_correct":"futureMethod","options":["aMethod","testGetEjbHome","getTimers","setHostControllerManagementProtocol","method1","bMethod","futureMethod"],"options_nlp":["a method","test get ejb home","get timers","set host controller management protocol","method 1","b method","future method"],"options_random":["getTimers","setHostControllerManagementProtocol","testGetEjbHome"],"options_tfidf":["method1","aMethod","bMethod"],"project_name":"wildfly","source_code_string":"public Future<Boolean> futureMethod(CountDownLatch latch) throws InterruptedException {\n latch.await(5, TimeUnit.SECONDS);\n futureMethodCalled = true;\n return new AsyncResult<Boolean>(true);\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"latch","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":".","start_char":9,"line":1},{"index_id":3,"token_group":3,"text":"await","start_char":10,"line":1},{"index_id":4,"token_group":4,"text":"(","start_char":15,"line":1},{"index_id":5,"token_group":5,"text":"5","start_char":16,"line":1},{"index_id":6,"token_group":6,"text":",","start_char":17,"line":1},{"index_id":7,"token_group":7,"text":"time","start_char":19,"line":1},{"index_id":8,"token_group":8,"text":"Unit","start_char":23,"line":1},{"index_id":9,"token_group":8,"text":".","start_char":27,"line":1},{"index_id":10,"token_group":9,"text":"seconds","start_char":28,"line":1},{"index_id":11,"token_group":10,"text":")","start_char":35,"line":1},{"index_id":12,"token_group":11,"text":";","start_char":36,"line":1},{"index_id":13,"token_group":12,"text":"future","start_char":4,"line":2},{"index_id":14,"token_group":13,"text":"Method","start_char":10,"line":2},{"index_id":15,"token_group":13,"text":"Called","start_char":16,"line":2},{"index_id":16,"token_group":13,"text":"=","start_char":23,"line":2},{"index_id":17,"token_group":14,"text":"true","start_char":25,"line":2},{"index_id":18,"token_group":15,"text":";","start_char":29,"line":2},{"index_id":19,"token_group":16,"text":"return","start_char":4,"line":3},{"index_id":20,"token_group":17,"text":"new","start_char":11,"line":3},{"index_id":21,"token_group":18,"text":"async","start_char":15,"line":3},{"index_id":22,"token_group":19,"text":"Result","start_char":20,"line":3},{"index_id":23,"token_group":19,"text":"<","start_char":26,"line":3},{"index_id":24,"token_group":20,"text":"boolean","start_char":27,"line":3},{"index_id":25,"token_group":21,"text":">","start_char":34,"line":3},{"index_id":26,"token_group":22,"text":"(","start_char":35,"line":3},{"index_id":27,"token_group":23,"text":"true","start_char":36,"line":3},{"index_id":28,"token_group":24,"text":")","start_char":40,"line":3},{"index_id":29,"token_group":25,"text":";","start_char":41,"line":3},{"index_id":30,"token_group":26,"text":"}","start_char":0,"line":4}],"tokens_list":["{","latch",".","await","(","5",",","time","Unit",".","seconds",")",";","future","Method","Called","=","true",";","return","new","async","Result","<","boolean",">","(","true",")",";","}"],"uuid":"b7ac34c32e0b4ed40c70cbce3787eae1"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","set","<\/id>","<","<id>","string","<\/id>",">","<id>","duplicate","Lines","<\/id>","=","<id>","","Duplicate","Language","Key","Lines","Map","<\/id>",".","<id>","get","<\/id>","(","<id>","file","Name","<\/id>",")",";","if","(","<id>","duplicate","Lines","<\/id>","==","null",")","{","<id>","duplicate","Lines","<\/id>","=","new","<id>","hash","Set","<\/id>","<",">","(",")",";","}","<id>","duplicate","Lines","<\/id>",".","<id>","add","<\/id>","(","<id>","line","<\/id>",")",";","<id>","","Duplicate","Language","Key","Lines","Map","<\/id>",".","<id>","put","<\/id>","(","<id>","file","Name","<\/id>",",","<id>","duplicate","Lines","<\/id>",")",";","}","<SENTENCE_END\/>"],"file_name":"PropertiesSourceProcessor.java","formatted_lines":["{"," Set<String> duplicateLines = _duplicateLanguageKeyLinesMap.get("," fileName);",""," if (duplicateLines == null)"," {"," duplicateLines = new HashSet<>();"," }",""," duplicateLines.add(line);",""," _duplicateLanguageKeyLinesMap.put(fileName, duplicateLines);","}"],"function_name":"addDuplicateLanguageKey","function_name_tokens":["add","duplicate","language","key"],"id_body_hash":"b3b63cfca4677ca1123ea2e7f8119f67","id_same_identifier_list":[0,1,2,3,4,5,6,6,7,8,8,8,8,8,8,9,10,11,12,12,13,14,15,16,17,17,18,19,20,21,22,22,23,24,25,25,26,27,28,29,30,31,32,32,33,34,35,36,37,38,39,39,39,39,39,39,40,41,42,43,43,44,45,45,46,47,48,49],"option_correct":"addDuplicateLanguageKey","options":["_initSassCompiler","addDuplicateLanguageKey","whenLanguageGetLanguageId","testAddDuplicateComment","setWrappedDDMStructureVersionService","addDefaultLanguageId","setWrappedAssetCategoryLocalService"],"options_nlp":[" init sass compiler","add duplicate language key","when language get language id","test add duplicate comment","set wrapped ddm structure version service","add default language id","set wrapped asset category local service"],"options_random":["_initSassCompiler","setWrappedDDMStructureVersionService","setWrappedAssetCategoryLocalService"],"options_tfidf":["addDefaultLanguageId","testAddDuplicateComment","whenLanguageGetLanguageId"],"project_name":"liferay-portal","source_code_string":"protected void addDuplicateLanguageKey(String fileName, String line) {\n\t\tSet<String> duplicateLines = _duplicateLanguageKeyLinesMap.get(\n\t\t\tfileName);\n\n\t\tif (duplicateLines == null) {\n\t\t\tduplicateLines = new HashSet<>();\n\t\t}\n\n\t\tduplicateLines.add(line);\n\n\t\t_duplicateLanguageKeyLinesMap.put(fileName, duplicateLines);\n\t}","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"set","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"<","start_char":7,"line":1},{"index_id":3,"token_group":3,"text":"string","start_char":8,"line":1},{"index_id":4,"token_group":4,"text":">","start_char":14,"line":1},{"index_id":5,"token_group":5,"text":"duplicate","start_char":16,"line":1},{"index_id":6,"token_group":6,"text":"Lines","start_char":25,"line":1},{"index_id":7,"token_group":6,"text":"=","start_char":31,"line":1},{"index_id":8,"token_group":7,"text":"","start_char":32,"line":1},{"index_id":9,"token_group":8,"text":"Duplicate","start_char":34,"line":1},{"index_id":10,"token_group":8,"text":"Language","start_char":43,"line":1},{"index_id":11,"token_group":8,"text":"Key","start_char":51,"line":1},{"index_id":12,"token_group":8,"text":"Lines","start_char":54,"line":1},{"index_id":13,"token_group":8,"text":"Map","start_char":59,"line":1},{"index_id":14,"token_group":8,"text":".","start_char":62,"line":1},{"index_id":15,"token_group":9,"text":"get","start_char":63,"line":1},{"index_id":16,"token_group":10,"text":"(","start_char":66,"line":1},{"index_id":17,"token_group":11,"text":"file","start_char":37,"line":2},{"index_id":18,"token_group":12,"text":"Name","start_char":41,"line":2},{"index_id":19,"token_group":12,"text":")","start_char":45,"line":2},{"index_id":20,"token_group":13,"text":";","start_char":46,"line":2},{"index_id":21,"token_group":14,"text":"if","start_char":4,"line":4},{"index_id":22,"token_group":15,"text":"(","start_char":7,"line":4},{"index_id":23,"token_group":16,"text":"duplicate","start_char":8,"line":4},{"index_id":24,"token_group":17,"text":"Lines","start_char":17,"line":4},{"index_id":25,"token_group":17,"text":"==","start_char":23,"line":4},{"index_id":26,"token_group":18,"text":"null","start_char":26,"line":4},{"index_id":27,"token_group":19,"text":")","start_char":30,"line":4},{"index_id":28,"token_group":20,"text":"{","start_char":4,"line":5},{"index_id":29,"token_group":21,"text":"duplicate","start_char":8,"line":6},{"index_id":30,"token_group":22,"text":"Lines","start_char":17,"line":6},{"index_id":31,"token_group":22,"text":"=","start_char":23,"line":6},{"index_id":32,"token_group":23,"text":"new","start_char":25,"line":6},{"index_id":33,"token_group":24,"text":"hash","start_char":29,"line":6},{"index_id":34,"token_group":25,"text":"Set","start_char":33,"line":6},{"index_id":35,"token_group":25,"text":"<","start_char":36,"line":6},{"index_id":36,"token_group":26,"text":">","start_char":37,"line":6},{"index_id":37,"token_group":27,"text":"(","start_char":38,"line":6},{"index_id":38,"token_group":28,"text":")","start_char":39,"line":6},{"index_id":39,"token_group":29,"text":";","start_char":40,"line":6},{"index_id":40,"token_group":30,"text":"}","start_char":4,"line":7},{"index_id":41,"token_group":31,"text":"duplicate","start_char":4,"line":9},{"index_id":42,"token_group":32,"text":"Lines","start_char":13,"line":9},{"index_id":43,"token_group":32,"text":".","start_char":18,"line":9},{"index_id":44,"token_group":33,"text":"add","start_char":19,"line":9},{"index_id":45,"token_group":34,"text":"(","start_char":22,"line":9},{"index_id":46,"token_group":35,"text":"line","start_char":23,"line":9},{"index_id":47,"token_group":36,"text":")","start_char":27,"line":9},{"index_id":48,"token_group":37,"text":";","start_char":28,"line":9},{"index_id":49,"token_group":38,"text":"","start_char":29,"line":9},{"index_id":50,"token_group":39,"text":"Duplicate","start_char":5,"line":11},{"index_id":51,"token_group":39,"text":"Language","start_char":14,"line":11},{"index_id":52,"token_group":39,"text":"Key","start_char":22,"line":11},{"index_id":53,"token_group":39,"text":"Lines","start_char":25,"line":11},{"index_id":54,"token_group":39,"text":"Map","start_char":30,"line":11},{"index_id":55,"token_group":39,"text":".","start_char":33,"line":11},{"index_id":56,"token_group":40,"text":"put","start_char":34,"line":11},{"index_id":57,"token_group":41,"text":"(","start_char":37,"line":11},{"index_id":58,"token_group":42,"text":"file","start_char":38,"line":11},{"index_id":59,"token_group":43,"text":"Name","start_char":42,"line":11},{"index_id":60,"token_group":43,"text":",","start_char":46,"line":11},{"index_id":61,"token_group":44,"text":"duplicate","start_char":48,"line":11},{"index_id":62,"token_group":45,"text":"Lines","start_char":57,"line":11},{"index_id":63,"token_group":45,"text":")","start_char":62,"line":11},{"index_id":64,"token_group":46,"text":";","start_char":63,"line":11},{"index_id":65,"token_group":47,"text":"}","start_char":0,"line":12}],"tokens_list":["{","set","<","string",">","duplicate","Lines","=","","Duplicate","Language","Key","Lines","Map",".","get","(","file","Name",")",";","if","(","duplicate","Lines","==","null",")","{","duplicate","Lines","=","new","hash","Set","<",">","(",")",";","}","duplicate","Lines",".","add","(","line",")",";","","Duplicate","Language","Key","Lines","Map",".","put","(","file","Name",",","duplicate","Lines",")",";","}"],"uuid":"39e8292267a42ec5307096dc39ae965c"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","runtime","Exception","<\/id>","<id>","ex","<\/id>","=","new","<id>","runtime","Exception","<\/id>","(",")",";","this",".","<id>","test","Bean","<\/id>",".","<id>","exceptional","<\/id>","(","<id>","ex","<\/id>",")",";","<id>","verify","<\/id>","(","<id>","mock","Collaborator","<\/id>",")",".","<id>","one","Runtime","Exception","<\/id>","(","<id>","ex","<\/id>",")",";","}","<SENTENCE_END\/>"],"file_name":"AfterThrowingAdviceBindingTests.java","formatted_lines":["{"," RuntimeException ex = new RuntimeException();"," this.testBean.exceptional(ex);"," verify(mockCollaborator).oneRuntimeException(ex);","}"],"function_name":"testAfterThrowingWithRuntimeExceptionBinding","function_name_tokens":["test","after","throwing","with","runtime","exception","binding"],"id_body_hash":"cf1f96cc22fa795751589c43d915ee0e","id_same_identifier_list":[0,1,2,2,3,4,5,6,6,7,8,9,10,11,12,12,13,14,15,16,17,18,19,20,21,21,22,23,24,24,24,25,26,27,28,29,30],"option_correct":"testAfterThrowingWithRuntimeExceptionBinding","options":["testAfterThrowingWithBinding","instanceOfMessage","testAfterThrowingWithRuntimeExceptionBinding","testSimpleAfterThrowing","testAfterThrowingWithRuntimeTypeSpecified","getDatabasePlatform","testDefaultInitAndDestroyMethodsNotDefined"],"options_nlp":["test after throwing with binding","instance of message","test after throwing with runtime exception binding","test simple after throwing","test after throwing with runtime type specified","get database platform","test default init and destroy methods not defined"],"options_random":["testDefaultInitAndDestroyMethodsNotDefined","getDatabasePlatform","instanceOfMessage"],"options_tfidf":["testAfterThrowingWithRuntimeTypeSpecified","testAfterThrowingWithBinding","testSimpleAfterThrowing"],"project_name":"spring-framework","source_code_string":"@Test(expected=Throwable.class)\n\tpublic void testAfterThrowingWithRuntimeExceptionBinding() throws Throwable {\n\t\tRuntimeException ex = new RuntimeException();\n\t\tthis.testBean.exceptional(ex);\n\t\tverify(mockCollaborator).oneRuntimeException(ex);\n\t}","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"runtime","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"Exception","start_char":11,"line":1},{"index_id":3,"token_group":2,"text":"ex","start_char":21,"line":1},{"index_id":4,"token_group":3,"text":"=","start_char":24,"line":1},{"index_id":5,"token_group":4,"text":"new","start_char":26,"line":1},{"index_id":6,"token_group":5,"text":"runtime","start_char":30,"line":1},{"index_id":7,"token_group":6,"text":"Exception","start_char":37,"line":1},{"index_id":8,"token_group":6,"text":"(","start_char":46,"line":1},{"index_id":9,"token_group":7,"text":")","start_char":47,"line":1},{"index_id":10,"token_group":8,"text":";","start_char":48,"line":1},{"index_id":11,"token_group":9,"text":"this","start_char":4,"line":2},{"index_id":12,"token_group":10,"text":".","start_char":8,"line":2},{"index_id":13,"token_group":11,"text":"test","start_char":9,"line":2},{"index_id":14,"token_group":12,"text":"Bean","start_char":13,"line":2},{"index_id":15,"token_group":12,"text":".","start_char":17,"line":2},{"index_id":16,"token_group":13,"text":"exceptional","start_char":18,"line":2},{"index_id":17,"token_group":14,"text":"(","start_char":29,"line":2},{"index_id":18,"token_group":15,"text":"ex","start_char":30,"line":2},{"index_id":19,"token_group":16,"text":")","start_char":32,"line":2},{"index_id":20,"token_group":17,"text":";","start_char":33,"line":2},{"index_id":21,"token_group":18,"text":"verify","start_char":4,"line":3},{"index_id":22,"token_group":19,"text":"(","start_char":10,"line":3},{"index_id":23,"token_group":20,"text":"mock","start_char":11,"line":3},{"index_id":24,"token_group":21,"text":"Collaborator","start_char":15,"line":3},{"index_id":25,"token_group":21,"text":")","start_char":27,"line":3},{"index_id":26,"token_group":22,"text":".","start_char":28,"line":3},{"index_id":27,"token_group":23,"text":"one","start_char":29,"line":3},{"index_id":28,"token_group":24,"text":"Runtime","start_char":32,"line":3},{"index_id":29,"token_group":24,"text":"Exception","start_char":39,"line":3},{"index_id":30,"token_group":24,"text":"(","start_char":48,"line":3},{"index_id":31,"token_group":25,"text":"ex","start_char":49,"line":3},{"index_id":32,"token_group":26,"text":")","start_char":51,"line":3},{"index_id":33,"token_group":27,"text":";","start_char":52,"line":3},{"index_id":34,"token_group":28,"text":"}","start_char":0,"line":4}],"tokens_list":["{","runtime","Exception","ex","=","new","runtime","Exception","(",")",";","this",".","test","Bean",".","exceptional","(","ex",")",";","verify","(","mock","Collaborator",")",".","one","Runtime","Exception","(","ex",")",";","}"],"uuid":"6d02172456adc644969bd1eef7a8a09c"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","","Contact","<\/id>","=","<id>","contact","<\/id>",";","}","<SENTENCE_END\/>"],"file_name":"UserNameFieldsTag.java","formatted_lines":["{"," _contact = contact;","}"],"function_name":"setContact","function_name_tokens":["set","contact"],"id_body_hash":"792ca5b1f6c7229ab0e56eb6d0ae3649","id_same_identifier_list":[0,1,2,2,3,4,5,6,7],"option_correct":"setContact","options":["set","setContact","populateExtraHelperUtilities","configureTaskDownloadNodeDir","setContactPersistence","setContactExpandoAttributes","getOriginalCategory"],"options_nlp":["set","set contact","populate extra helper utilities","configure task download node dir","set contact persistence","set contact expando attributes","get original category"],"options_random":["populateExtraHelperUtilities","configureTaskDownloadNodeDir","getOriginalCategory"],"options_tfidf":["setContactPersistence","setContactExpandoAttributes","set"],"project_name":"liferay-portal","source_code_string":"public void setContact(Contact contact) {\n\t\t_contact = contact;\n\t}","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"","start_char":1,"line":0},{"index_id":2,"token_group":2,"text":"Contact","start_char":5,"line":1},{"index_id":3,"token_group":2,"text":"=","start_char":13,"line":1},{"index_id":4,"token_group":3,"text":"contact","start_char":15,"line":1},{"index_id":5,"token_group":4,"text":";","start_char":22,"line":1},{"index_id":6,"token_group":5,"text":"}","start_char":0,"line":2}],"tokens_list":["{","","Contact","=","contact",";","}"],"uuid":"e9c94358c929cb0878e93d723ed5b105"},{"cap_original_tokens":["<SENTENCE_START>","{","final","<id>","list","<\/id>","<","<id>","module","<\/id>",">","<id>","obsolete","Modules","<\/id>","=","<id>","collect","Obsolete","Modules","<\/id>","(",")",";","if","(","<id>","obsolete","Modules","<\/id>",".","<id>","is","Empty","<\/id>","(",")",")","return","false",";","<id>","set","Mavenized","Modules","<\/id>","(","<id>","obsolete","Modules","<\/id>",",","false",")",";","final","int","[","]","<id>","result","<\/id>","=","new","int","[","1","]",";","<id>","maven","Util","<\/id>",".","<id>","invoke","And","Wait","<\/id>","(","<id>","my","Project","<\/id>",",","<id>","my","Models","Provider","<\/id>",".","<id>","get","Modality","State","For","Question","Dialogs","<\/id>","(",")",",","new","<id>","runnable","<\/id>","(",")","{","public","void","<id>","run","<\/id>","(",")","{","<id>","result","<\/id>","[","0","]","=","<id>","messages","<\/id>",".","<id>","show","Yes","No","Dialog","<\/id>","(","<id>","my","Project","<\/id>",",","<id>","project","Bundle","<\/id>",".","<id>","message","<\/id>","(","\"maven.import.message.delete.obsolete\"",",","<id>","format","Modules","<\/id>","(","<id>","obsolete","Modules","<\/id>",")",")",",","<id>","project","Bundle","<\/id>",".","<id>","message","<\/id>","(","\"maven.project.import.title\"",")",",","<id>","messages","<\/id>",".","<id>","get","Question","Icon","<\/id>","(",")",")",";","}","}",")",";","if","(","<id>","result","<\/id>","[","0","]","==","<id>","messages","<\/id>",".","<id>","no","<\/id>",")","return","false",";","for","(","<id>","module","<\/id>","<id>","each","<\/id>",":","<id>","obsolete","Modules","<\/id>",")","{","if","(","!","<id>","each","<\/id>",".","<id>","is","Disposed","<\/id>","(",")",")","{","<id>","my","Module","Model","<\/id>",".","<id>","dispose","Module","<\/id>","(","<id>","each","<\/id>",")",";","}","}","return","true",";","}","<SENTENCE_END\/>"],"file_name":"MavenProjectImporter.java","formatted_lines":["{"," final List<Module> obsoleteModules = collectObsoleteModules();"," if (obsoleteModules.isEmpty()) return false;",""," setMavenizedModules(obsoleteModules, false);",""," final int[] result = new int[1];"," MavenUtil.invokeAndWait(myProject,"," myModelsProvider.getModalityStateForQuestionDialogs(), new Runnable()"," {"," public void run()"," {"," result[0] = Messages.showYesNoDialog(myProject,"," ProjectBundle.message(\"maven.import.message.delete.obsolete\","," formatModules(obsoleteModules)),"," ProjectBundle.message(\"maven.project.import.title\"),"," Messages.getQuestionIcon());"," }"," });",""," if (result[0] == Messages.NO) return false;",""," for (Module each : obsoleteModules)"," {"," if (!each.isDisposed())"," {"," myModuleModel.disposeModule(each);"," }"," }",""," return true;","}"],"function_name":"deleteObsoleteModules","function_name_tokens":["delete","obsolete","modules"],"id_body_hash":"e2bb6161ebeff816e2a54f842d75b935","id_same_identifier_list":[0,1,2,3,4,5,6,7,7,8,9,9,9,10,11,12,13,14,15,15,16,17,17,18,19,20,21,22,23,24,24,24,25,26,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,43,44,45,45,45,46,47,47,48,49,49,49,50,51,51,51,51,51,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,73,73,73,74,75,75,76,77,77,78,79,80,81,82,83,83,84,85,85,86,87,88,89,89,90,91,92,93,94,95,96,97,98,98,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,126,127,128,129,130,131,132,133,134,134,135,136,137,138,139,139,139,140,141,141,142,143,144,145,146,147,148,149,150,151,152],"option_correct":"deleteObsoleteModules","options":["date","testRemovingObsoleteModule","testUnregisteredApplicationComponentWithRegisterFix","collectObsoleteModules","setModules","assertValidName","deleteObsoleteModules"],"options_nlp":["date","test removing obsolete module","test unregistered application component with register fix","collect obsolete modules","set modules","assert valid name","delete obsolete modules"],"options_random":["date","testUnregisteredApplicationComponentWithRegisterFix","assertValidName"],"options_tfidf":["collectObsoleteModules","setModules","testRemovingObsoleteModule"],"project_name":"intellij-community","source_code_string":"private boolean deleteObsoleteModules() {\n final List<Module> obsoleteModules = collectObsoleteModules();\n if (obsoleteModules.isEmpty()) return false;\n\n setMavenizedModules(obsoleteModules, false);\n\n final int[] result = new int[1];\n MavenUtil.invokeAndWait(myProject, myModelsProvider.getModalityStateForQuestionDialogs(), new Runnable() {\n public void run() {\n result[0] = Messages.showYesNoDialog(myProject,\n ProjectBundle.message(\"maven.import.message.delete.obsolete\", formatModules(obsoleteModules)),\n ProjectBundle.message(\"maven.project.import.title\"),\n Messages.getQuestionIcon());\n }\n });\n\n if (result[0] == Messages.NO) return false;\n\n for (Module each : obsoleteModules) {\n if (!each.isDisposed()) {\n myModuleModel.disposeModule(each);\n }\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":"final","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"list","start_char":10,"line":1},{"index_id":3,"token_group":3,"text":"<","start_char":14,"line":1},{"index_id":4,"token_group":4,"text":"module","start_char":15,"line":1},{"index_id":5,"token_group":5,"text":">","start_char":21,"line":1},{"index_id":6,"token_group":6,"text":"obsolete","start_char":23,"line":1},{"index_id":7,"token_group":7,"text":"Modules","start_char":31,"line":1},{"index_id":8,"token_group":7,"text":"=","start_char":39,"line":1},{"index_id":9,"token_group":8,"text":"collect","start_char":41,"line":1},{"index_id":10,"token_group":9,"text":"Obsolete","start_char":48,"line":1},{"index_id":11,"token_group":9,"text":"Modules","start_char":56,"line":1},{"index_id":12,"token_group":9,"text":"(","start_char":63,"line":1},{"index_id":13,"token_group":10,"text":")","start_char":64,"line":1},{"index_id":14,"token_group":11,"text":";","start_char":65,"line":1},{"index_id":15,"token_group":12,"text":"if","start_char":4,"line":2},{"index_id":16,"token_group":13,"text":"(","start_char":7,"line":2},{"index_id":17,"token_group":14,"text":"obsolete","start_char":8,"line":2},{"index_id":18,"token_group":15,"text":"Modules","start_char":16,"line":2},{"index_id":19,"token_group":15,"text":".","start_char":23,"line":2},{"index_id":20,"token_group":16,"text":"is","start_char":24,"line":2},{"index_id":21,"token_group":17,"text":"Empty","start_char":26,"line":2},{"index_id":22,"token_group":17,"text":"(","start_char":31,"line":2},{"index_id":23,"token_group":18,"text":")","start_char":32,"line":2},{"index_id":24,"token_group":19,"text":")","start_char":33,"line":2},{"index_id":25,"token_group":20,"text":"return","start_char":35,"line":2},{"index_id":26,"token_group":21,"text":"false","start_char":42,"line":2},{"index_id":27,"token_group":22,"text":";","start_char":47,"line":2},{"index_id":28,"token_group":23,"text":"set","start_char":4,"line":4},{"index_id":29,"token_group":24,"text":"Mavenized","start_char":7,"line":4},{"index_id":30,"token_group":24,"text":"Modules","start_char":16,"line":4},{"index_id":31,"token_group":24,"text":"(","start_char":23,"line":4},{"index_id":32,"token_group":25,"text":"obsolete","start_char":24,"line":4},{"index_id":33,"token_group":26,"text":"Modules","start_char":32,"line":4},{"index_id":34,"token_group":26,"text":",","start_char":39,"line":4},{"index_id":35,"token_group":27,"text":"false","start_char":41,"line":4},{"index_id":36,"token_group":28,"text":")","start_char":46,"line":4},{"index_id":37,"token_group":29,"text":";","start_char":47,"line":4},{"index_id":38,"token_group":30,"text":"final","start_char":4,"line":6},{"index_id":39,"token_group":31,"text":"int","start_char":10,"line":6},{"index_id":40,"token_group":32,"text":"[","start_char":13,"line":6},{"index_id":41,"token_group":33,"text":"]","start_char":14,"line":6},{"index_id":42,"token_group":34,"text":"result","start_char":16,"line":6},{"index_id":43,"token_group":35,"text":"=","start_char":23,"line":6},{"index_id":44,"token_group":36,"text":"new","start_char":25,"line":6},{"index_id":45,"token_group":37,"text":"int","start_char":29,"line":6},{"index_id":46,"token_group":38,"text":"[","start_char":32,"line":6},{"index_id":47,"token_group":39,"text":"1","start_char":33,"line":6},{"index_id":48,"token_group":40,"text":"]","start_char":34,"line":6},{"index_id":49,"token_group":41,"text":";","start_char":35,"line":6},{"index_id":50,"token_group":42,"text":"maven","start_char":4,"line":7},{"index_id":51,"token_group":43,"text":"Util","start_char":9,"line":7},{"index_id":52,"token_group":43,"text":".","start_char":13,"line":7},{"index_id":53,"token_group":44,"text":"invoke","start_char":14,"line":7},{"index_id":54,"token_group":45,"text":"And","start_char":20,"line":7},{"index_id":55,"token_group":45,"text":"Wait","start_char":23,"line":7},{"index_id":56,"token_group":45,"text":"(","start_char":27,"line":7},{"index_id":57,"token_group":46,"text":"my","start_char":28,"line":7},{"index_id":58,"token_group":47,"text":"Project","start_char":30,"line":7},{"index_id":59,"token_group":47,"text":",","start_char":37,"line":7},{"index_id":60,"token_group":48,"text":"my","start_char":28,"line":8},{"index_id":61,"token_group":49,"text":"Models","start_char":30,"line":8},{"index_id":62,"token_group":49,"text":"Provider","start_char":36,"line":8},{"index_id":63,"token_group":49,"text":".","start_char":44,"line":8},{"index_id":64,"token_group":50,"text":"get","start_char":45,"line":8},{"index_id":65,"token_group":51,"text":"Modality","start_char":48,"line":8},{"index_id":66,"token_group":51,"text":"State","start_char":56,"line":8},{"index_id":67,"token_group":51,"text":"For","start_char":61,"line":8},{"index_id":68,"token_group":51,"text":"Question","start_char":64,"line":8},{"index_id":69,"token_group":51,"text":"Dialogs","start_char":72,"line":8},{"index_id":70,"token_group":51,"text":"(","start_char":79,"line":8},{"index_id":71,"token_group":52,"text":")","start_char":80,"line":8},{"index_id":72,"token_group":53,"text":",","start_char":81,"line":8},{"index_id":73,"token_group":54,"text":"new","start_char":83,"line":8},{"index_id":74,"token_group":55,"text":"runnable","start_char":87,"line":8},{"index_id":75,"token_group":56,"text":"(","start_char":95,"line":8},{"index_id":76,"token_group":57,"text":")","start_char":96,"line":8},{"index_id":77,"token_group":58,"text":"{","start_char":4,"line":9},{"index_id":78,"token_group":59,"text":"public","start_char":8,"line":10},{"index_id":79,"token_group":60,"text":"void","start_char":15,"line":10},{"index_id":80,"token_group":61,"text":"run","start_char":20,"line":10},{"index_id":81,"token_group":62,"text":"(","start_char":23,"line":10},{"index_id":82,"token_group":63,"text":")","start_char":24,"line":10},{"index_id":83,"token_group":64,"text":"{","start_char":8,"line":11},{"index_id":84,"token_group":65,"text":"result","start_char":12,"line":12},{"index_id":85,"token_group":66,"text":"[","start_char":18,"line":12},{"index_id":86,"token_group":67,"text":"0","start_char":19,"line":12},{"index_id":87,"token_group":68,"text":"]","start_char":20,"line":12},{"index_id":88,"token_group":69,"text":"=","start_char":22,"line":12},{"index_id":89,"token_group":70,"text":"messages","start_char":24,"line":12},{"index_id":90,"token_group":71,"text":".","start_char":32,"line":12},{"index_id":91,"token_group":72,"text":"show","start_char":33,"line":12},{"index_id":92,"token_group":73,"text":"Yes","start_char":37,"line":12},{"index_id":93,"token_group":73,"text":"No","start_char":40,"line":12},{"index_id":94,"token_group":73,"text":"Dialog","start_char":42,"line":12},{"index_id":95,"token_group":73,"text":"(","start_char":48,"line":12},{"index_id":96,"token_group":74,"text":"my","start_char":49,"line":12},{"index_id":97,"token_group":75,"text":"Project","start_char":51,"line":12},{"index_id":98,"token_group":75,"text":",","start_char":58,"line":12},{"index_id":99,"token_group":76,"text":"project","start_char":49,"line":13},{"index_id":100,"token_group":77,"text":"Bundle","start_char":56,"line":13},{"index_id":101,"token_group":77,"text":".","start_char":62,"line":13},{"index_id":102,"token_group":78,"text":"message","start_char":63,"line":13},{"index_id":103,"token_group":79,"text":"(","start_char":70,"line":13},{"index_id":104,"token_group":80,"text":"\"maven.import.message.delete.obsolete\"","start_char":71,"line":13},{"index_id":105,"token_group":81,"text":",","start_char":109,"line":13},{"index_id":106,"token_group":82,"text":"format","start_char":57,"line":14},{"index_id":107,"token_group":83,"text":"Modules","start_char":63,"line":14},{"index_id":108,"token_group":83,"text":"(","start_char":70,"line":14},{"index_id":109,"token_group":84,"text":"obsolete","start_char":71,"line":14},{"index_id":110,"token_group":85,"text":"Modules","start_char":79,"line":14},{"index_id":111,"token_group":85,"text":")","start_char":86,"line":14},{"index_id":112,"token_group":86,"text":")","start_char":87,"line":14},{"index_id":113,"token_group":87,"text":",","start_char":88,"line":14},{"index_id":114,"token_group":88,"text":"project","start_char":49,"line":15},{"index_id":115,"token_group":89,"text":"Bundle","start_char":56,"line":15},{"index_id":116,"token_group":89,"text":".","start_char":62,"line":15},{"index_id":117,"token_group":90,"text":"message","start_char":63,"line":15},{"index_id":118,"token_group":91,"text":"(","start_char":70,"line":15},{"index_id":119,"token_group":92,"text":"\"maven.project.import.title\"","start_char":71,"line":15},{"index_id":120,"token_group":93,"text":")","start_char":99,"line":15},{"index_id":121,"token_group":94,"text":",","start_char":100,"line":15},{"index_id":122,"token_group":95,"text":"messages","start_char":49,"line":16},{"index_id":123,"token_group":96,"text":".","start_char":57,"line":16},{"index_id":124,"token_group":97,"text":"get","start_char":58,"line":16},{"index_id":125,"token_group":98,"text":"Question","start_char":61,"line":16},{"index_id":126,"token_group":98,"text":"Icon","start_char":69,"line":16},{"index_id":127,"token_group":98,"text":"(","start_char":73,"line":16},{"index_id":128,"token_group":99,"text":")","start_char":74,"line":16},{"index_id":129,"token_group":100,"text":")","start_char":75,"line":16},{"index_id":130,"token_group":101,"text":";","start_char":76,"line":16},{"index_id":131,"token_group":102,"text":"}","start_char":8,"line":17},{"index_id":132,"token_group":103,"text":"}","start_char":4,"line":18},{"index_id":133,"token_group":104,"text":")","start_char":5,"line":18},{"index_id":134,"token_group":105,"text":";","start_char":6,"line":18},{"index_id":135,"token_group":106,"text":"if","start_char":4,"line":20},{"index_id":136,"token_group":107,"text":"(","start_char":7,"line":20},{"index_id":137,"token_group":108,"text":"result","start_char":8,"line":20},{"index_id":138,"token_group":109,"text":"[","start_char":14,"line":20},{"index_id":139,"token_group":110,"text":"0","start_char":15,"line":20},{"index_id":140,"token_group":111,"text":"]","start_char":16,"line":20},{"index_id":141,"token_group":112,"text":"==","start_char":18,"line":20},{"index_id":142,"token_group":113,"text":"messages","start_char":21,"line":20},{"index_id":143,"token_group":114,"text":".","start_char":29,"line":20},{"index_id":144,"token_group":115,"text":"no","start_char":30,"line":20},{"index_id":145,"token_group":116,"text":")","start_char":32,"line":20},{"index_id":146,"token_group":117,"text":"return","start_char":34,"line":20},{"index_id":147,"token_group":118,"text":"false","start_char":41,"line":20},{"index_id":148,"token_group":119,"text":";","start_char":46,"line":20},{"index_id":149,"token_group":120,"text":"for","start_char":4,"line":22},{"index_id":150,"token_group":121,"text":"(","start_char":8,"line":22},{"index_id":151,"token_group":122,"text":"module","start_char":9,"line":22},{"index_id":152,"token_group":123,"text":"each","start_char":16,"line":22},{"index_id":153,"token_group":124,"text":":","start_char":21,"line":22},{"index_id":154,"token_group":125,"text":"obsolete","start_char":23,"line":22},{"index_id":155,"token_group":126,"text":"Modules","start_char":31,"line":22},{"index_id":156,"token_group":126,"text":")","start_char":38,"line":22},{"index_id":157,"token_group":127,"text":"{","start_char":4,"line":23},{"index_id":158,"token_group":128,"text":"if","start_char":8,"line":24},{"index_id":159,"token_group":129,"text":"(","start_char":11,"line":24},{"index_id":160,"token_group":130,"text":"!","start_char":12,"line":24},{"index_id":161,"token_group":131,"text":"each","start_char":13,"line":24},{"index_id":162,"token_group":132,"text":".","start_char":17,"line":24},{"index_id":163,"token_group":133,"text":"is","start_char":18,"line":24},{"index_id":164,"token_group":134,"text":"Disposed","start_char":20,"line":24},{"index_id":165,"token_group":134,"text":"(","start_char":28,"line":24},{"index_id":166,"token_group":135,"text":")","start_char":29,"line":24},{"index_id":167,"token_group":136,"text":")","start_char":30,"line":24},{"index_id":168,"token_group":137,"text":"{","start_char":8,"line":25},{"index_id":169,"token_group":138,"text":"my","start_char":12,"line":26},{"index_id":170,"token_group":139,"text":"Module","start_char":14,"line":26},{"index_id":171,"token_group":139,"text":"Model","start_char":20,"line":26},{"index_id":172,"token_group":139,"text":".","start_char":25,"line":26},{"index_id":173,"token_group":140,"text":"dispose","start_char":26,"line":26},{"index_id":174,"token_group":141,"text":"Module","start_char":33,"line":26},{"index_id":175,"token_group":141,"text":"(","start_char":39,"line":26},{"index_id":176,"token_group":142,"text":"each","start_char":40,"line":26},{"index_id":177,"token_group":143,"text":")","start_char":44,"line":26},{"index_id":178,"token_group":144,"text":";","start_char":45,"line":26},{"index_id":179,"token_group":145,"text":"}","start_char":8,"line":27},{"index_id":180,"token_group":146,"text":"}","start_char":4,"line":28},{"index_id":181,"token_group":147,"text":"return","start_char":4,"line":30},{"index_id":182,"token_group":148,"text":"true","start_char":11,"line":30},{"index_id":183,"token_group":149,"text":";","start_char":15,"line":30},{"index_id":184,"token_group":150,"text":"}","start_char":0,"line":31}],"tokens_list":["{","final","list","<","module",">","obsolete","Modules","=","collect","Obsolete","Modules","(",")",";","if","(","obsolete","Modules",".","is","Empty","(",")",")","return","false",";","set","Mavenized","Modules","(","obsolete","Modules",",","false",")",";","final","int","[","]","result","=","new","int","[","1","]",";","maven","Util",".","invoke","And","Wait","(","my","Project",",","my","Models","Provider",".","get","Modality","State","For","Question","Dialogs","(",")",",","new","runnable","(",")","{","public","void","run","(",")","{","result","[","0","]","=","messages",".","show","Yes","No","Dialog","(","my","Project",",","project","Bundle",".","message","(","\"maven.import.message.delete.obsolete\"",",","format","Modules","(","obsolete","Modules",")",")",",","project","Bundle",".","message","(","\"maven.project.import.title\"",")",",","messages",".","get","Question","Icon","(",")",")",";","}","}",")",";","if","(","result","[","0","]","==","messages",".","no",")","return","false",";","for","(","module","each",":","obsolete","Modules",")","{","if","(","!","each",".","is","Disposed","(",")",")","{","my","Module","Model",".","dispose","Module","(","each",")",";","}","}","return","true",";","}"],"uuid":"cde9b217dbf65803bf54504615448718"},{"cap_original_tokens":["<SENTENCE_START>","{","final","<id>","properties","<\/id>","<id>","prope","<\/id>","=","new","<id>","properties","<\/id>","(",")",";","<id>","prope","<\/id>",".","<id>","put","<\/id>","(","<id>","context","<\/id>",".","<id>","initial","Context","Factory","<\/id>",",","\"com.sun.jndi.cosnaming.CNCtxFactory\"",")",";","<id>","prope","<\/id>",".","<id>","put","<\/id>","(","<id>","context","<\/id>",".","<id>","provider","Url","<\/id>",",","\"iiop:\/\/\"","+","<id>","management","Client","<\/id>",".","<id>","get","Mgmt","Address","<\/id>","(",")","+","\":3528\"",")",";","final","<id>","initial","Context","<\/id>","<id>","context","<\/id>","=","new","<id>","initial","Context","<\/id>","(","<id>","prope","<\/id>",")",";","final","<id>","object","<\/id>","<id>","iiop","Obj","<\/id>","=","<id>","context","<\/id>",".","<id>","lookup","<\/id>","(","\"IIOPNamingBean\"",")",";","final","<id>","iiop","Naming","Home","<\/id>","<id>","object","<\/id>","=","(","<id>","iiop","Naming","Home","<\/id>",")","<id>","portable","Remote","Object","<\/id>",".","<id>","narrow","<\/id>","(","<id>","iiop","Obj","<\/id>",",","<id>","iiop","Naming","Home","<\/id>",".","class",")",";","final","<id>","iiop","Remote","<\/id>","<id>","result","<\/id>","=","<id>","object","<\/id>",".","<id>","create","<\/id>","(",")",";","<id>","assert","<\/id>",".","<id>","assert","Equals","<\/id>","(","\"hello\"",",","<id>","result","<\/id>",".","<id>","hello","<\/id>","(",")",")",";","}","<SENTENCE_END\/>"],"file_name":"IIOPNamingTestCase.java","formatted_lines":["{"," final Properties prope = new Properties();"," prope.put(Context.INITIAL_CONTEXT_FACTORY, \"com.sun.jndi.cosnaming.CNCtxFactory\");"," prope.put(Context.PROVIDER_URL, \"iiop:\/\/\" + managementClient.getMgmtAddress() + \":3528\");"," final InitialContext context = new InitialContext(prope);"," final Object iiopObj = context.lookup(\"IIOPNamingBean\");"," final IIOPNamingHome object = (IIOPNamingHome) PortableRemoteObject.narrow(iiopObj, IIOPNamingHome.class);"," final IIOPRemote result = object.create();"," Assert.assertEquals(\"hello\", result.hello());","}"],"function_name":"testIIOPNamingIIOPInvocation","function_name_tokens":["test","iiop","naming","iiop","invocation"],"id_body_hash":"23282027581d7daf6883facde382c5cc","id_same_identifier_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,17,17,18,19,20,21,22,23,24,25,26,27,28,28,29,30,31,32,32,33,34,34,34,35,36,37,38,39,40,41,42,42,43,44,45,46,46,47,48,49,50,51,52,53,53,54,55,56,57,58,59,60,61,62,63,63,63,64,65,66,67,67,67,68,69,69,69,70,71,72,73,73,74,75,75,75,76,77,78,79,80,81,81,82,83,84,85,86,87,88,89,90,91,92,92,93,94,95,96,97,98,99,100,101,102,103,104],"option_correct":"testIIOPNamingIIOPInvocation","options":["getComponentAddress","testStatefulIIOPNamingIIOPInvocation","isValid","testIIOPNamingInvocation","testStatefulIIOPNamingInvocation","getNumExceptions","testIIOPNamingIIOPInvocation"],"options_nlp":["get component address","test stateful iiop naming iiop invocation","is valid","test iiop naming invocation","test stateful iiop naming invocation","get num exceptions","test iiop naming iiop invocation"],"options_random":["getComponentAddress","getNumExceptions","isValid"],"options_tfidf":["testIIOPNamingInvocation","testStatefulIIOPNamingInvocation","testStatefulIIOPNamingIIOPInvocation"],"project_name":"wildfly","source_code_string":"@Test\n @Ignore(\"Cosnaming does not support iiop:\/\/ in OpenJDK\")\n public void testIIOPNamingIIOPInvocation() throws NamingException, RemoteException {\n final Properties prope = new Properties();\n prope.put(Context.INITIAL_CONTEXT_FACTORY, \"com.sun.jndi.cosnaming.CNCtxFactory\");\n prope.put(Context.PROVIDER_URL, \"iiop:\/\/\" + managementClient.getMgmtAddress() +\":3528\");\n final InitialContext context = new InitialContext(prope);\n final Object iiopObj = context.lookup(\"IIOPNamingBean\");\n final IIOPNamingHome object = (IIOPNamingHome) PortableRemoteObject.narrow(iiopObj, IIOPNamingHome.class);\n final IIOPRemote result = object.create();\n Assert.assertEquals(\"hello\", result.hello());\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"final","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"properties","start_char":10,"line":1},{"index_id":3,"token_group":3,"text":"prope","start_char":21,"line":1},{"index_id":4,"token_group":4,"text":"=","start_char":27,"line":1},{"index_id":5,"token_group":5,"text":"new","start_char":29,"line":1},{"index_id":6,"token_group":6,"text":"properties","start_char":33,"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":";","start_char":45,"line":1},{"index_id":10,"token_group":10,"text":"prope","start_char":4,"line":2},{"index_id":11,"token_group":11,"text":".","start_char":9,"line":2},{"index_id":12,"token_group":12,"text":"put","start_char":10,"line":2},{"index_id":13,"token_group":13,"text":"(","start_char":13,"line":2},{"index_id":14,"token_group":14,"text":"context","start_char":14,"line":2},{"index_id":15,"token_group":15,"text":".","start_char":21,"line":2},{"index_id":16,"token_group":16,"text":"initial","start_char":22,"line":2},{"index_id":17,"token_group":17,"text":"Context","start_char":30,"line":2},{"index_id":18,"token_group":17,"text":"Factory","start_char":38,"line":2},{"index_id":19,"token_group":17,"text":",","start_char":45,"line":2},{"index_id":20,"token_group":18,"text":"\"com.sun.jndi.cosnaming.CNCtxFactory\"","start_char":47,"line":2},{"index_id":21,"token_group":19,"text":")","start_char":84,"line":2},{"index_id":22,"token_group":20,"text":";","start_char":85,"line":2},{"index_id":23,"token_group":21,"text":"prope","start_char":4,"line":3},{"index_id":24,"token_group":22,"text":".","start_char":9,"line":3},{"index_id":25,"token_group":23,"text":"put","start_char":10,"line":3},{"index_id":26,"token_group":24,"text":"(","start_char":13,"line":3},{"index_id":27,"token_group":25,"text":"context","start_char":14,"line":3},{"index_id":28,"token_group":26,"text":".","start_char":21,"line":3},{"index_id":29,"token_group":27,"text":"provider","start_char":22,"line":3},{"index_id":30,"token_group":28,"text":"Url","start_char":31,"line":3},{"index_id":31,"token_group":28,"text":",","start_char":34,"line":3},{"index_id":32,"token_group":29,"text":"\"iiop:\/\/\"","start_char":36,"line":3},{"index_id":33,"token_group":30,"text":"+","start_char":46,"line":3},{"index_id":34,"token_group":31,"text":"management","start_char":48,"line":3},{"index_id":35,"token_group":32,"text":"Client","start_char":58,"line":3},{"index_id":36,"token_group":32,"text":".","start_char":64,"line":3},{"index_id":37,"token_group":33,"text":"get","start_char":65,"line":3},{"index_id":38,"token_group":34,"text":"Mgmt","start_char":68,"line":3},{"index_id":39,"token_group":34,"text":"Address","start_char":72,"line":3},{"index_id":40,"token_group":34,"text":"(","start_char":79,"line":3},{"index_id":41,"token_group":35,"text":")","start_char":80,"line":3},{"index_id":42,"token_group":36,"text":"+","start_char":82,"line":3},{"index_id":43,"token_group":37,"text":"\":3528\"","start_char":84,"line":3},{"index_id":44,"token_group":38,"text":")","start_char":91,"line":3},{"index_id":45,"token_group":39,"text":";","start_char":92,"line":3},{"index_id":46,"token_group":40,"text":"final","start_char":4,"line":4},{"index_id":47,"token_group":41,"text":"initial","start_char":10,"line":4},{"index_id":48,"token_group":42,"text":"Context","start_char":17,"line":4},{"index_id":49,"token_group":42,"text":"context","start_char":25,"line":4},{"index_id":50,"token_group":43,"text":"=","start_char":33,"line":4},{"index_id":51,"token_group":44,"text":"new","start_char":35,"line":4},{"index_id":52,"token_group":45,"text":"initial","start_char":39,"line":4},{"index_id":53,"token_group":46,"text":"Context","start_char":46,"line":4},{"index_id":54,"token_group":46,"text":"(","start_char":53,"line":4},{"index_id":55,"token_group":47,"text":"prope","start_char":54,"line":4},{"index_id":56,"token_group":48,"text":")","start_char":59,"line":4},{"index_id":57,"token_group":49,"text":";","start_char":60,"line":4},{"index_id":58,"token_group":50,"text":"final","start_char":4,"line":5},{"index_id":59,"token_group":51,"text":"object","start_char":10,"line":5},{"index_id":60,"token_group":52,"text":"iiop","start_char":17,"line":5},{"index_id":61,"token_group":53,"text":"Obj","start_char":21,"line":5},{"index_id":62,"token_group":53,"text":"=","start_char":25,"line":5},{"index_id":63,"token_group":54,"text":"context","start_char":27,"line":5},{"index_id":64,"token_group":55,"text":".","start_char":34,"line":5},{"index_id":65,"token_group":56,"text":"lookup","start_char":35,"line":5},{"index_id":66,"token_group":57,"text":"(","start_char":41,"line":5},{"index_id":67,"token_group":58,"text":"\"IIOPNamingBean\"","start_char":42,"line":5},{"index_id":68,"token_group":59,"text":")","start_char":58,"line":5},{"index_id":69,"token_group":60,"text":";","start_char":59,"line":5},{"index_id":70,"token_group":61,"text":"final","start_char":4,"line":6},{"index_id":71,"token_group":62,"text":"iiop","start_char":10,"line":6},{"index_id":72,"token_group":63,"text":"Naming","start_char":14,"line":6},{"index_id":73,"token_group":63,"text":"Home","start_char":20,"line":6},{"index_id":74,"token_group":63,"text":"object","start_char":25,"line":6},{"index_id":75,"token_group":64,"text":"=","start_char":32,"line":6},{"index_id":76,"token_group":65,"text":"(","start_char":34,"line":6},{"index_id":77,"token_group":66,"text":"iiop","start_char":35,"line":6},{"index_id":78,"token_group":67,"text":"Naming","start_char":39,"line":6},{"index_id":79,"token_group":67,"text":"Home","start_char":45,"line":6},{"index_id":80,"token_group":67,"text":")","start_char":49,"line":6},{"index_id":81,"token_group":68,"text":"portable","start_char":51,"line":6},{"index_id":82,"token_group":69,"text":"Remote","start_char":59,"line":6},{"index_id":83,"token_group":69,"text":"Object","start_char":65,"line":6},{"index_id":84,"token_group":69,"text":".","start_char":71,"line":6},{"index_id":85,"token_group":70,"text":"narrow","start_char":72,"line":6},{"index_id":86,"token_group":71,"text":"(","start_char":78,"line":6},{"index_id":87,"token_group":72,"text":"iiop","start_char":79,"line":6},{"index_id":88,"token_group":73,"text":"Obj","start_char":83,"line":6},{"index_id":89,"token_group":73,"text":",","start_char":86,"line":6},{"index_id":90,"token_group":74,"text":"iiop","start_char":88,"line":6},{"index_id":91,"token_group":75,"text":"Naming","start_char":92,"line":6},{"index_id":92,"token_group":75,"text":"Home","start_char":98,"line":6},{"index_id":93,"token_group":75,"text":".","start_char":102,"line":6},{"index_id":94,"token_group":76,"text":"class","start_char":103,"line":6},{"index_id":95,"token_group":77,"text":")","start_char":108,"line":6},{"index_id":96,"token_group":78,"text":";","start_char":109,"line":6},{"index_id":97,"token_group":79,"text":"final","start_char":4,"line":7},{"index_id":98,"token_group":80,"text":"iiop","start_char":10,"line":7},{"index_id":99,"token_group":81,"text":"Remote","start_char":14,"line":7},{"index_id":100,"token_group":81,"text":"result","start_char":21,"line":7},{"index_id":101,"token_group":82,"text":"=","start_char":28,"line":7},{"index_id":102,"token_group":83,"text":"object","start_char":30,"line":7},{"index_id":103,"token_group":84,"text":".","start_char":36,"line":7},{"index_id":104,"token_group":85,"text":"create","start_char":37,"line":7},{"index_id":105,"token_group":86,"text":"(","start_char":43,"line":7},{"index_id":106,"token_group":87,"text":")","start_char":44,"line":7},{"index_id":107,"token_group":88,"text":";","start_char":45,"line":7},{"index_id":108,"token_group":89,"text":"assert","start_char":4,"line":8},{"index_id":109,"token_group":90,"text":".","start_char":10,"line":8},{"index_id":110,"token_group":91,"text":"assert","start_char":11,"line":8},{"index_id":111,"token_group":92,"text":"Equals","start_char":17,"line":8},{"index_id":112,"token_group":92,"text":"(","start_char":23,"line":8},{"index_id":113,"token_group":93,"text":"\"hello\"","start_char":24,"line":8},{"index_id":114,"token_group":94,"text":",","start_char":31,"line":8},{"index_id":115,"token_group":95,"text":"result","start_char":33,"line":8},{"index_id":116,"token_group":96,"text":".","start_char":39,"line":8},{"index_id":117,"token_group":97,"text":"hello","start_char":40,"line":8},{"index_id":118,"token_group":98,"text":"(","start_char":45,"line":8},{"index_id":119,"token_group":99,"text":")","start_char":46,"line":8},{"index_id":120,"token_group":100,"text":")","start_char":47,"line":8},{"index_id":121,"token_group":101,"text":";","start_char":48,"line":8},{"index_id":122,"token_group":102,"text":"}","start_char":0,"line":9}],"tokens_list":["{","final","properties","prope","=","new","properties","(",")",";","prope",".","put","(","context",".","initial","Context","Factory",",","\"com.sun.jndi.cosnaming.CNCtxFactory\"",")",";","prope",".","put","(","context",".","provider","Url",",","\"iiop:\/\/\"","+","management","Client",".","get","Mgmt","Address","(",")","+","\":3528\"",")",";","final","initial","Context","context","=","new","initial","Context","(","prope",")",";","final","object","iiop","Obj","=","context",".","lookup","(","\"IIOPNamingBean\"",")",";","final","iiop","Naming","Home","object","=","(","iiop","Naming","Home",")","portable","Remote","Object",".","narrow","(","iiop","Obj",",","iiop","Naming","Home",".","class",")",";","final","iiop","Remote","result","=","object",".","create","(",")",";","assert",".","assert","Equals","(","\"hello\"",",","result",".","hello","(",")",")",";","}"],"uuid":"d2ac7157695ce68a5da8eb9b8b5ab9cc"},{"cap_original_tokens":["<SENTENCE_START>","{","return","<id>","get","Decoded","<\/id>","(",")",";","}","<SENTENCE_END\/>"],"file_name":"ExternalResourceName.java","formatted_lines":["{"," return getDecoded();","}"],"function_name":"getDisplayName","function_name_tokens":["get","display","name"],"id_body_hash":"7270f3f1bfba0c3df005c2be0ea9043d","id_same_identifier_list":[0,1,2,3,3,4,5,6,7,8],"option_correct":"getDisplayName","options":["getAntPropertyName","communicationsStarted","getDisplayName","reformatDisplayName","supportsTaskDisplayName","visitGeneratedClosure","getProgressDisplayName"],"options_nlp":["get ant property name","communications started","get display name","reformat display name","supports task display name","visit generated closure","get progress display name"],"options_random":["getAntPropertyName","visitGeneratedClosure","communicationsStarted"],"options_tfidf":["getProgressDisplayName","reformatDisplayName","supportsTaskDisplayName"],"project_name":"gradle","source_code_string":"public String getDisplayName() {\n return getDecoded();\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":"get","start_char":11,"line":1},{"index_id":3,"token_group":3,"text":"Decoded","start_char":14,"line":1},{"index_id":4,"token_group":3,"text":"(","start_char":21,"line":1},{"index_id":5,"token_group":4,"text":")","start_char":22,"line":1},{"index_id":6,"token_group":5,"text":";","start_char":23,"line":1},{"index_id":7,"token_group":6,"text":"}","start_char":0,"line":2}],"tokens_list":["{","return","get","Decoded","(",")",";","}"],"uuid":"7a6e18ac5aedd433c878fcf625a95e1b"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","routing","Table","Generator","<\/id>","<id>","routing","Table","Generator","<\/id>","=","new","<id>","routing","Table","Generator","<\/id>","(",")",";","<id>","index","Meta","Data","<\/id>","<id>","index","Meta","Data","<\/id>","=","<id>","index","Meta","Data","<\/id>",".","<id>","builder","<\/id>","(","\"test\"",")",".","<id>","settings","<\/id>","(","<id>","settings","<\/id>","(","<id>","version","<\/id>",".","<id>","current","<\/id>",")",")",".","<id>","number","Of","Shards","<\/id>","(","2",")",".","<id>","number","Of","Replicas","<\/id>","(","2",")",".","<id>","build","<\/id>","(",")",";","<id>","routing","Table","Generator","<\/id>",".","<id>","shard","Counter","<\/id>","<id>","counter","<\/id>","=","new","<id>","routing","Table","Generator","<\/id>",".","<id>","shard","Counter","<\/id>","(",")",";","<id>","index","Routing","Table","<\/id>","<id>","index","Routing","Table","<\/id>","=","<id>","routing","Table","Generator","<\/id>",".","<id>","gen","Index","Routing","Table","<\/id>","(","<id>","index","Meta","Data","<\/id>",",","<id>","counter","<\/id>",")",";","<id>","index","Meta","Data","<\/id>","=","<id>","index","Meta","Data","<\/id>",".","<id>","builder","<\/id>","(","\"test\"",")",".","<id>","settings","<\/id>","(","<id>","settings","<\/id>","(","<id>","version","<\/id>",".","<id>","current","<\/id>",")",")",".","<id>","number","Of","Shards","<\/id>","(","2",")",".","<id>","number","Of","Replicas","<\/id>","(","3",")",".","<id>","build","<\/id>","(",")",";","<id>","cluster","Index","Health","<\/id>","<id>","index","Health","<\/id>","=","new","<id>","cluster","Index","Health","<\/id>","(","<id>","index","Meta","Data","<\/id>",",","<id>","index","Routing","Table","<\/id>",")",";","<id>","assert","That","<\/id>","(","<id>","index","Health","<\/id>",".","<id>","get","Validation","Failures","<\/id>","(",")",",","<id>","matchers","<\/id>",".","<id>","has","Size","<\/id>","(","2",")",")",";","<id>","routing","Table","<\/id>",".","<id>","builder","<\/id>","<id>","routing","Table","<\/id>","=","<id>","routing","Table","<\/id>",".","<id>","builder","<\/id>","(",")",";","<id>","meta","Data","<\/id>",".","<id>","builder","<\/id>","<id>","meta","Data","<\/id>","=","<id>","meta","Data","<\/id>",".","<id>","builder","<\/id>","(",")",";","<id>","meta","Data","<\/id>",".","<id>","put","<\/id>","(","<id>","index","Meta","Data","<\/id>",",","true",")",";","<id>","routing","Table","<\/id>",".","<id>","add","<\/id>","(","<id>","index","Routing","Table","<\/id>",")",";","<id>","cluster","State","<\/id>","<id>","cluster","State","<\/id>","=","<id>","cluster","State","<\/id>",".","<id>","builder","<\/id>","(","<id>","cluster","Name","<\/id>",".","<id>","default","<\/id>",")",".","<id>","meta","Data","<\/id>","(","<id>","meta","Data","<\/id>",")",".","<id>","routing","Table","<\/id>","(","<id>","routing","Table","<\/id>",".","<id>","build","<\/id>","(",")",")",".","<id>","build","<\/id>","(",")",";","<id>","string","<\/id>","[","]","<id>","concrete","Indices","<\/id>","=","<id>","index","Name","Expression","Resolver","<\/id>",".","<id>","concrete","Indices","<\/id>","(","<id>","cluster","State","<\/id>",",","<id>","indices","Options","<\/id>",".","<id>","strict","Expand","<\/id>","(",")",",","(","<id>","string","<\/id>","[","]",")","null",")",";","<id>","cluster","State","Health","<\/id>","<id>","cluster","State","Health","<\/id>","=","new","<id>","cluster","State","Health","<\/id>","(","<id>","cluster","State","<\/id>",",","<id>","concrete","Indices","<\/id>",")",";","<id>","cluster","State","Health","<\/id>","=","<id>","maybe","Serialize","<\/id>","(","<id>","cluster","State","Health","<\/id>",")",";","<id>","assert","That","<\/id>","(","<id>","cluster","State","Health","<\/id>",".","<id>","get","Validation","Failures","<\/id>","(",")",",","<id>","matchers","<\/id>",".","<id>","has","Size","<\/id>","(","0",")",")",";","}","<SENTENCE_END\/>"],"file_name":"ClusterStateHealthTests.java","formatted_lines":["{"," RoutingTableGenerator routingTableGenerator = new RoutingTableGenerator();"," IndexMetaData indexMetaData = IndexMetaData"," .builder(\"test\")"," .settings(settings(Version.CURRENT))"," .numberOfShards(2)"," .numberOfReplicas(2)"," .build();"," RoutingTableGenerator.ShardCounter counter = new RoutingTableGenerator.ShardCounter();"," IndexRoutingTable indexRoutingTable = routingTableGenerator.genIndexRoutingTable(indexMetaData, counter);"," indexMetaData = IndexMetaData.builder(\"test\").settings(settings(Version.CURRENT)).numberOfShards(2).numberOfReplicas(3).build();",""," ClusterIndexHealth indexHealth = new ClusterIndexHealth(indexMetaData, indexRoutingTable);"," assertThat(indexHealth.getValidationFailures(), Matchers.hasSize(2));",""," RoutingTable.Builder routingTable = RoutingTable.builder();"," MetaData.Builder metaData = MetaData.builder();"," metaData.put(indexMetaData, true);"," routingTable.add(indexRoutingTable);"," ClusterState clusterState = ClusterState.builder(ClusterName.DEFAULT).metaData(metaData).routingTable(routingTable.build()).build();"," String[] concreteIndices = indexNameExpressionResolver.concreteIndices(clusterState, IndicesOptions.strictExpand(), (String[]) null);"," ClusterStateHealth clusterStateHealth = new ClusterStateHealth(clusterState, concreteIndices);"," clusterStateHealth = maybeSerialize(clusterStateHealth);",""," assertThat(clusterStateHealth.getValidationFailures(), Matchers.hasSize(0));","}"],"function_name":"testValidations","function_name_tokens":["test","validations"],"id_body_hash":"f4705c1545d533ebe113b625217e9c01","id_same_identifier_list":[0,1,2,2,2,3,3,3,4,5,6,6,6,7,8,9,10,10,10,11,11,11,12,13,13,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,30,30,31,32,33,34,35,35,35,36,37,38,39,40,41,42,43,44,44,44,45,46,46,47,48,49,50,50,50,51,52,52,53,54,55,56,56,56,57,57,57,58,59,59,59,60,61,61,61,61,62,63,63,63,64,65,66,67,68,68,68,69,70,70,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,87,87,88,89,90,91,92,92,92,93,94,95,96,97,98,99,100,101,101,101,102,102,103,104,105,105,105,106,107,107,107,108,109,109,109,110,111,112,112,113,114,114,115,116,116,116,117,118,119,120,121,122,122,123,124,125,126,127,128,128,129,130,131,131,132,133,133,134,135,136,137,138,139,139,140,141,142,142,143,144,144,145,146,147,148,149,150,150,151,152,153,154,154,154,155,156,157,158,159,159,160,161,162,163,163,163,164,165,166,166,167,167,168,169,169,170,171,172,173,173,174,175,176,177,178,178,179,180,180,181,182,183,183,184,185,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,199,200,201,201,201,201,202,203,203,204,205,205,206,207,207,208,209,209,210,211,212,213,214,215,216,217,218,219,220,221,221,221,222,222,222,223,224,225,225,225,226,227,227,228,229,229,230,231,232,232,232,233,234,234,235,236,236,236,237,238,239,239,240,241,241,241,242,243,243,243,244,245,246,247,248,249,249,250,251,252,253,254,255,256],"option_correct":"testValidations","options":["testValidations","post2Dot0IndexSettings","prepareSettings","testProcessedStateCleansStatesFromOtherMasters","test","testGet","testDeleteIndexWarmerTest"],"options_nlp":["test validations","post 2 dot 0 index settings","prepare settings","test processed state cleans states from other masters","test","test get","test delete index warmer test"],"options_random":["testProcessedStateCleansStatesFromOtherMasters","post2Dot0IndexSettings","prepareSettings"],"options_tfidf":["test","testGet","testDeleteIndexWarmerTest"],"project_name":"elasticsearch","source_code_string":"public void testValidations() throws IOException {\n RoutingTableGenerator routingTableGenerator = new RoutingTableGenerator();\n IndexMetaData indexMetaData = IndexMetaData\n .builder(\"test\")\n .settings(settings(Version.CURRENT))\n .numberOfShards(2)\n .numberOfReplicas(2)\n .build();\n RoutingTableGenerator.ShardCounter counter = new RoutingTableGenerator.ShardCounter();\n IndexRoutingTable indexRoutingTable = routingTableGenerator.genIndexRoutingTable(indexMetaData, counter);\n indexMetaData = IndexMetaData.builder(\"test\").settings(settings(Version.CURRENT)).numberOfShards(2).numberOfReplicas(3).build();\n\n ClusterIndexHealth indexHealth = new ClusterIndexHealth(indexMetaData, indexRoutingTable);\n assertThat(indexHealth.getValidationFailures(), Matchers.hasSize(2));\n\n RoutingTable.Builder routingTable = RoutingTable.builder();\n MetaData.Builder metaData = MetaData.builder();\n metaData.put(indexMetaData, true);\n routingTable.add(indexRoutingTable);\n ClusterState clusterState = ClusterState.builder(ClusterName.DEFAULT).metaData(metaData).routingTable(routingTable.build()).build();\n String[] concreteIndices = indexNameExpressionResolver.concreteIndices(clusterState, IndicesOptions.strictExpand(), (String[]) null);\n ClusterStateHealth clusterStateHealth = new ClusterStateHealth(clusterState, concreteIndices);\n clusterStateHealth = maybeSerialize(clusterStateHealth);\n \n assertThat(clusterStateHealth.getValidationFailures(), Matchers.hasSize(0));\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"routing","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"Table","start_char":11,"line":1},{"index_id":3,"token_group":2,"text":"Generator","start_char":16,"line":1},{"index_id":4,"token_group":2,"text":"routing","start_char":26,"line":1},{"index_id":5,"token_group":3,"text":"Table","start_char":33,"line":1},{"index_id":6,"token_group":3,"text":"Generator","start_char":38,"line":1},{"index_id":7,"token_group":3,"text":"=","start_char":48,"line":1},{"index_id":8,"token_group":4,"text":"new","start_char":50,"line":1},{"index_id":9,"token_group":5,"text":"routing","start_char":54,"line":1},{"index_id":10,"token_group":6,"text":"Table","start_char":61,"line":1},{"index_id":11,"token_group":6,"text":"Generator","start_char":66,"line":1},{"index_id":12,"token_group":6,"text":"(","start_char":75,"line":1},{"index_id":13,"token_group":7,"text":")","start_char":76,"line":1},{"index_id":14,"token_group":8,"text":";","start_char":77,"line":1},{"index_id":15,"token_group":9,"text":"index","start_char":4,"line":2},{"index_id":16,"token_group":10,"text":"Meta","start_char":9,"line":2},{"index_id":17,"token_group":10,"text":"Data","start_char":13,"line":2},{"index_id":18,"token_group":10,"text":"index","start_char":18,"line":2},{"index_id":19,"token_group":11,"text":"Meta","start_char":23,"line":2},{"index_id":20,"token_group":11,"text":"Data","start_char":27,"line":2},{"index_id":21,"token_group":11,"text":"=","start_char":32,"line":2},{"index_id":22,"token_group":12,"text":"index","start_char":34,"line":2},{"index_id":23,"token_group":13,"text":"Meta","start_char":39,"line":2},{"index_id":24,"token_group":13,"text":"Data","start_char":43,"line":2},{"index_id":25,"token_group":13,"text":".","start_char":4,"line":3},{"index_id":26,"token_group":14,"text":"builder","start_char":5,"line":3},{"index_id":27,"token_group":15,"text":"(","start_char":12,"line":3},{"index_id":28,"token_group":16,"text":"\"test\"","start_char":13,"line":3},{"index_id":29,"token_group":17,"text":")","start_char":19,"line":3},{"index_id":30,"token_group":18,"text":".","start_char":4,"line":4},{"index_id":31,"token_group":19,"text":"settings","start_char":5,"line":4},{"index_id":32,"token_group":20,"text":"(","start_char":13,"line":4},{"index_id":33,"token_group":21,"text":"settings","start_char":14,"line":4},{"index_id":34,"token_group":22,"text":"(","start_char":22,"line":4},{"index_id":35,"token_group":23,"text":"version","start_char":23,"line":4},{"index_id":36,"token_group":24,"text":".","start_char":30,"line":4},{"index_id":37,"token_group":25,"text":"current","start_char":31,"line":4},{"index_id":38,"token_group":26,"text":")","start_char":38,"line":4},{"index_id":39,"token_group":27,"text":")","start_char":39,"line":4},{"index_id":40,"token_group":28,"text":".","start_char":4,"line":5},{"index_id":41,"token_group":29,"text":"number","start_char":5,"line":5},{"index_id":42,"token_group":30,"text":"Of","start_char":11,"line":5},{"index_id":43,"token_group":30,"text":"Shards","start_char":13,"line":5},{"index_id":44,"token_group":30,"text":"(","start_char":19,"line":5},{"index_id":45,"token_group":31,"text":"2","start_char":20,"line":5},{"index_id":46,"token_group":32,"text":")","start_char":21,"line":5},{"index_id":47,"token_group":33,"text":".","start_char":4,"line":6},{"index_id":48,"token_group":34,"text":"number","start_char":5,"line":6},{"index_id":49,"token_group":35,"text":"Of","start_char":11,"line":6},{"index_id":50,"token_group":35,"text":"Replicas","start_char":13,"line":6},{"index_id":51,"token_group":35,"text":"(","start_char":21,"line":6},{"index_id":52,"token_group":36,"text":"2","start_char":22,"line":6},{"index_id":53,"token_group":37,"text":")","start_char":23,"line":6},{"index_id":54,"token_group":38,"text":".","start_char":4,"line":7},{"index_id":55,"token_group":39,"text":"build","start_char":5,"line":7},{"index_id":56,"token_group":40,"text":"(","start_char":10,"line":7},{"index_id":57,"token_group":41,"text":")","start_char":11,"line":7},{"index_id":58,"token_group":42,"text":";","start_char":12,"line":7},{"index_id":59,"token_group":43,"text":"routing","start_char":4,"line":8},{"index_id":60,"token_group":44,"text":"Table","start_char":11,"line":8},{"index_id":61,"token_group":44,"text":"Generator","start_char":16,"line":8},{"index_id":62,"token_group":44,"text":".","start_char":25,"line":8},{"index_id":63,"token_group":45,"text":"shard","start_char":26,"line":8},{"index_id":64,"token_group":46,"text":"Counter","start_char":31,"line":8},{"index_id":65,"token_group":46,"text":"counter","start_char":39,"line":8},{"index_id":66,"token_group":47,"text":"=","start_char":47,"line":8},{"index_id":67,"token_group":48,"text":"new","start_char":49,"line":8},{"index_id":68,"token_group":49,"text":"routing","start_char":53,"line":8},{"index_id":69,"token_group":50,"text":"Table","start_char":60,"line":8},{"index_id":70,"token_group":50,"text":"Generator","start_char":65,"line":8},{"index_id":71,"token_group":50,"text":".","start_char":74,"line":8},{"index_id":72,"token_group":51,"text":"shard","start_char":75,"line":8},{"index_id":73,"token_group":52,"text":"Counter","start_char":80,"line":8},{"index_id":74,"token_group":52,"text":"(","start_char":87,"line":8},{"index_id":75,"token_group":53,"text":")","start_char":88,"line":8},{"index_id":76,"token_group":54,"text":";","start_char":89,"line":8},{"index_id":77,"token_group":55,"text":"index","start_char":4,"line":9},{"index_id":78,"token_group":56,"text":"Routing","start_char":9,"line":9},{"index_id":79,"token_group":56,"text":"Table","start_char":16,"line":9},{"index_id":80,"token_group":56,"text":"index","start_char":22,"line":9},{"index_id":81,"token_group":57,"text":"Routing","start_char":27,"line":9},{"index_id":82,"token_group":57,"text":"Table","start_char":34,"line":9},{"index_id":83,"token_group":57,"text":"=","start_char":40,"line":9},{"index_id":84,"token_group":58,"text":"routing","start_char":42,"line":9},{"index_id":85,"token_group":59,"text":"Table","start_char":49,"line":9},{"index_id":86,"token_group":59,"text":"Generator","start_char":54,"line":9},{"index_id":87,"token_group":59,"text":".","start_char":63,"line":9},{"index_id":88,"token_group":60,"text":"gen","start_char":64,"line":9},{"index_id":89,"token_group":61,"text":"Index","start_char":67,"line":9},{"index_id":90,"token_group":61,"text":"Routing","start_char":72,"line":9},{"index_id":91,"token_group":61,"text":"Table","start_char":79,"line":9},{"index_id":92,"token_group":61,"text":"(","start_char":84,"line":9},{"index_id":93,"token_group":62,"text":"index","start_char":85,"line":9},{"index_id":94,"token_group":63,"text":"Meta","start_char":90,"line":9},{"index_id":95,"token_group":63,"text":"Data","start_char":94,"line":9},{"index_id":96,"token_group":63,"text":",","start_char":98,"line":9},{"index_id":97,"token_group":64,"text":"counter","start_char":100,"line":9},{"index_id":98,"token_group":65,"text":")","start_char":107,"line":9},{"index_id":99,"token_group":66,"text":";","start_char":108,"line":9},{"index_id":100,"token_group":67,"text":"index","start_char":4,"line":10},{"index_id":101,"token_group":68,"text":"Meta","start_char":9,"line":10},{"index_id":102,"token_group":68,"text":"Data","start_char":13,"line":10},{"index_id":103,"token_group":68,"text":"=","start_char":18,"line":10},{"index_id":104,"token_group":69,"text":"index","start_char":20,"line":10},{"index_id":105,"token_group":70,"text":"Meta","start_char":25,"line":10},{"index_id":106,"token_group":70,"text":"Data","start_char":29,"line":10},{"index_id":107,"token_group":70,"text":".","start_char":33,"line":10},{"index_id":108,"token_group":71,"text":"builder","start_char":34,"line":10},{"index_id":109,"token_group":72,"text":"(","start_char":41,"line":10},{"index_id":110,"token_group":73,"text":"\"test\"","start_char":42,"line":10},{"index_id":111,"token_group":74,"text":")","start_char":48,"line":10},{"index_id":112,"token_group":75,"text":".","start_char":49,"line":10},{"index_id":113,"token_group":76,"text":"settings","start_char":50,"line":10},{"index_id":114,"token_group":77,"text":"(","start_char":58,"line":10},{"index_id":115,"token_group":78,"text":"settings","start_char":59,"line":10},{"index_id":116,"token_group":79,"text":"(","start_char":67,"line":10},{"index_id":117,"token_group":80,"text":"version","start_char":68,"line":10},{"index_id":118,"token_group":81,"text":".","start_char":75,"line":10},{"index_id":119,"token_group":82,"text":"current","start_char":76,"line":10},{"index_id":120,"token_group":83,"text":")","start_char":83,"line":10},{"index_id":121,"token_group":84,"text":")","start_char":84,"line":10},{"index_id":122,"token_group":85,"text":".","start_char":85,"line":10},{"index_id":123,"token_group":86,"text":"number","start_char":86,"line":10},{"index_id":124,"token_group":87,"text":"Of","start_char":92,"line":10},{"index_id":125,"token_group":87,"text":"Shards","start_char":94,"line":10},{"index_id":126,"token_group":87,"text":"(","start_char":100,"line":10},{"index_id":127,"token_group":88,"text":"2","start_char":101,"line":10},{"index_id":128,"token_group":89,"text":")","start_char":102,"line":10},{"index_id":129,"token_group":90,"text":".","start_char":103,"line":10},{"index_id":130,"token_group":91,"text":"number","start_char":104,"line":10},{"index_id":131,"token_group":92,"text":"Of","start_char":110,"line":10},{"index_id":132,"token_group":92,"text":"Replicas","start_char":112,"line":10},{"index_id":133,"token_group":92,"text":"(","start_char":120,"line":10},{"index_id":134,"token_group":93,"text":"3","start_char":121,"line":10},{"index_id":135,"token_group":94,"text":")","start_char":122,"line":10},{"index_id":136,"token_group":95,"text":".","start_char":123,"line":10},{"index_id":137,"token_group":96,"text":"build","start_char":124,"line":10},{"index_id":138,"token_group":97,"text":"(","start_char":129,"line":10},{"index_id":139,"token_group":98,"text":")","start_char":130,"line":10},{"index_id":140,"token_group":99,"text":";","start_char":131,"line":10},{"index_id":141,"token_group":100,"text":"cluster","start_char":4,"line":12},{"index_id":142,"token_group":101,"text":"Index","start_char":11,"line":12},{"index_id":143,"token_group":101,"text":"Health","start_char":16,"line":12},{"index_id":144,"token_group":101,"text":"index","start_char":23,"line":12},{"index_id":145,"token_group":102,"text":"Health","start_char":28,"line":12},{"index_id":146,"token_group":102,"text":"=","start_char":35,"line":12},{"index_id":147,"token_group":103,"text":"new","start_char":37,"line":12},{"index_id":148,"token_group":104,"text":"cluster","start_char":41,"line":12},{"index_id":149,"token_group":105,"text":"Index","start_char":48,"line":12},{"index_id":150,"token_group":105,"text":"Health","start_char":53,"line":12},{"index_id":151,"token_group":105,"text":"(","start_char":59,"line":12},{"index_id":152,"token_group":106,"text":"index","start_char":60,"line":12},{"index_id":153,"token_group":107,"text":"Meta","start_char":65,"line":12},{"index_id":154,"token_group":107,"text":"Data","start_char":69,"line":12},{"index_id":155,"token_group":107,"text":",","start_char":73,"line":12},{"index_id":156,"token_group":108,"text":"index","start_char":75,"line":12},{"index_id":157,"token_group":109,"text":"Routing","start_char":80,"line":12},{"index_id":158,"token_group":109,"text":"Table","start_char":87,"line":12},{"index_id":159,"token_group":109,"text":")","start_char":92,"line":12},{"index_id":160,"token_group":110,"text":";","start_char":93,"line":12},{"index_id":161,"token_group":111,"text":"assert","start_char":4,"line":13},{"index_id":162,"token_group":112,"text":"That","start_char":10,"line":13},{"index_id":163,"token_group":112,"text":"(","start_char":14,"line":13},{"index_id":164,"token_group":113,"text":"index","start_char":15,"line":13},{"index_id":165,"token_group":114,"text":"Health","start_char":20,"line":13},{"index_id":166,"token_group":114,"text":".","start_char":26,"line":13},{"index_id":167,"token_group":115,"text":"get","start_char":27,"line":13},{"index_id":168,"token_group":116,"text":"Validation","start_char":30,"line":13},{"index_id":169,"token_group":116,"text":"Failures","start_char":40,"line":13},{"index_id":170,"token_group":116,"text":"(","start_char":48,"line":13},{"index_id":171,"token_group":117,"text":")","start_char":49,"line":13},{"index_id":172,"token_group":118,"text":",","start_char":50,"line":13},{"index_id":173,"token_group":119,"text":"matchers","start_char":52,"line":13},{"index_id":174,"token_group":120,"text":".","start_char":60,"line":13},{"index_id":175,"token_group":121,"text":"has","start_char":61,"line":13},{"index_id":176,"token_group":122,"text":"Size","start_char":64,"line":13},{"index_id":177,"token_group":122,"text":"(","start_char":68,"line":13},{"index_id":178,"token_group":123,"text":"2","start_char":69,"line":13},{"index_id":179,"token_group":124,"text":")","start_char":70,"line":13},{"index_id":180,"token_group":125,"text":")","start_char":71,"line":13},{"index_id":181,"token_group":126,"text":";","start_char":72,"line":13},{"index_id":182,"token_group":127,"text":"routing","start_char":4,"line":15},{"index_id":183,"token_group":128,"text":"Table","start_char":11,"line":15},{"index_id":184,"token_group":128,"text":".","start_char":16,"line":15},{"index_id":185,"token_group":129,"text":"builder","start_char":17,"line":15},{"index_id":186,"token_group":130,"text":"routing","start_char":25,"line":15},{"index_id":187,"token_group":131,"text":"Table","start_char":32,"line":15},{"index_id":188,"token_group":131,"text":"=","start_char":38,"line":15},{"index_id":189,"token_group":132,"text":"routing","start_char":40,"line":15},{"index_id":190,"token_group":133,"text":"Table","start_char":47,"line":15},{"index_id":191,"token_group":133,"text":".","start_char":52,"line":15},{"index_id":192,"token_group":134,"text":"builder","start_char":53,"line":15},{"index_id":193,"token_group":135,"text":"(","start_char":60,"line":15},{"index_id":194,"token_group":136,"text":")","start_char":61,"line":15},{"index_id":195,"token_group":137,"text":";","start_char":62,"line":15},{"index_id":196,"token_group":138,"text":"meta","start_char":4,"line":16},{"index_id":197,"token_group":139,"text":"Data","start_char":8,"line":16},{"index_id":198,"token_group":139,"text":".","start_char":12,"line":16},{"index_id":199,"token_group":140,"text":"builder","start_char":13,"line":16},{"index_id":200,"token_group":141,"text":"meta","start_char":21,"line":16},{"index_id":201,"token_group":142,"text":"Data","start_char":25,"line":16},{"index_id":202,"token_group":142,"text":"=","start_char":30,"line":16},{"index_id":203,"token_group":143,"text":"meta","start_char":32,"line":16},{"index_id":204,"token_group":144,"text":"Data","start_char":36,"line":16},{"index_id":205,"token_group":144,"text":".","start_char":40,"line":16},{"index_id":206,"token_group":145,"text":"builder","start_char":41,"line":16},{"index_id":207,"token_group":146,"text":"(","start_char":48,"line":16},{"index_id":208,"token_group":147,"text":")","start_char":49,"line":16},{"index_id":209,"token_group":148,"text":";","start_char":50,"line":16},{"index_id":210,"token_group":149,"text":"meta","start_char":4,"line":17},{"index_id":211,"token_group":150,"text":"Data","start_char":8,"line":17},{"index_id":212,"token_group":150,"text":".","start_char":12,"line":17},{"index_id":213,"token_group":151,"text":"put","start_char":13,"line":17},{"index_id":214,"token_group":152,"text":"(","start_char":16,"line":17},{"index_id":215,"token_group":153,"text":"index","start_char":17,"line":17},{"index_id":216,"token_group":154,"text":"Meta","start_char":22,"line":17},{"index_id":217,"token_group":154,"text":"Data","start_char":26,"line":17},{"index_id":218,"token_group":154,"text":",","start_char":30,"line":17},{"index_id":219,"token_group":155,"text":"true","start_char":32,"line":17},{"index_id":220,"token_group":156,"text":")","start_char":36,"line":17},{"index_id":221,"token_group":157,"text":";","start_char":37,"line":17},{"index_id":222,"token_group":158,"text":"routing","start_char":4,"line":18},{"index_id":223,"token_group":159,"text":"Table","start_char":11,"line":18},{"index_id":224,"token_group":159,"text":".","start_char":16,"line":18},{"index_id":225,"token_group":160,"text":"add","start_char":17,"line":18},{"index_id":226,"token_group":161,"text":"(","start_char":20,"line":18},{"index_id":227,"token_group":162,"text":"index","start_char":21,"line":18},{"index_id":228,"token_group":163,"text":"Routing","start_char":26,"line":18},{"index_id":229,"token_group":163,"text":"Table","start_char":33,"line":18},{"index_id":230,"token_group":163,"text":")","start_char":38,"line":18},{"index_id":231,"token_group":164,"text":";","start_char":39,"line":18},{"index_id":232,"token_group":165,"text":"cluster","start_char":4,"line":19},{"index_id":233,"token_group":166,"text":"State","start_char":11,"line":19},{"index_id":234,"token_group":166,"text":"cluster","start_char":17,"line":19},{"index_id":235,"token_group":167,"text":"State","start_char":24,"line":19},{"index_id":236,"token_group":167,"text":"=","start_char":30,"line":19},{"index_id":237,"token_group":168,"text":"cluster","start_char":32,"line":19},{"index_id":238,"token_group":169,"text":"State","start_char":39,"line":19},{"index_id":239,"token_group":169,"text":".","start_char":44,"line":19},{"index_id":240,"token_group":170,"text":"builder","start_char":45,"line":19},{"index_id":241,"token_group":171,"text":"(","start_char":52,"line":19},{"index_id":242,"token_group":172,"text":"cluster","start_char":53,"line":19},{"index_id":243,"token_group":173,"text":"Name","start_char":60,"line":19},{"index_id":244,"token_group":173,"text":".","start_char":64,"line":19},{"index_id":245,"token_group":174,"text":"default","start_char":65,"line":19},{"index_id":246,"token_group":175,"text":")","start_char":72,"line":19},{"index_id":247,"token_group":176,"text":".","start_char":73,"line":19},{"index_id":248,"token_group":177,"text":"meta","start_char":74,"line":19},{"index_id":249,"token_group":178,"text":"Data","start_char":78,"line":19},{"index_id":250,"token_group":178,"text":"(","start_char":82,"line":19},{"index_id":251,"token_group":179,"text":"meta","start_char":83,"line":19},{"index_id":252,"token_group":180,"text":"Data","start_char":87,"line":19},{"index_id":253,"token_group":180,"text":")","start_char":91,"line":19},{"index_id":254,"token_group":181,"text":".","start_char":92,"line":19},{"index_id":255,"token_group":182,"text":"routing","start_char":93,"line":19},{"index_id":256,"token_group":183,"text":"Table","start_char":100,"line":19},{"index_id":257,"token_group":183,"text":"(","start_char":105,"line":19},{"index_id":258,"token_group":184,"text":"routing","start_char":106,"line":19},{"index_id":259,"token_group":185,"text":"Table","start_char":113,"line":19},{"index_id":260,"token_group":185,"text":".","start_char":118,"line":19},{"index_id":261,"token_group":186,"text":"build","start_char":119,"line":19},{"index_id":262,"token_group":187,"text":"(","start_char":124,"line":19},{"index_id":263,"token_group":188,"text":")","start_char":125,"line":19},{"index_id":264,"token_group":189,"text":")","start_char":126,"line":19},{"index_id":265,"token_group":190,"text":".","start_char":127,"line":19},{"index_id":266,"token_group":191,"text":"build","start_char":128,"line":19},{"index_id":267,"token_group":192,"text":"(","start_char":133,"line":19},{"index_id":268,"token_group":193,"text":")","start_char":134,"line":19},{"index_id":269,"token_group":194,"text":";","start_char":135,"line":19},{"index_id":270,"token_group":195,"text":"string","start_char":4,"line":20},{"index_id":271,"token_group":196,"text":"[","start_char":10,"line":20},{"index_id":272,"token_group":197,"text":"]","start_char":11,"line":20},{"index_id":273,"token_group":198,"text":"concrete","start_char":13,"line":20},{"index_id":274,"token_group":199,"text":"Indices","start_char":21,"line":20},{"index_id":275,"token_group":199,"text":"=","start_char":29,"line":20},{"index_id":276,"token_group":200,"text":"index","start_char":31,"line":20},{"index_id":277,"token_group":201,"text":"Name","start_char":36,"line":20},{"index_id":278,"token_group":201,"text":"Expression","start_char":40,"line":20},{"index_id":279,"token_group":201,"text":"Resolver","start_char":50,"line":20},{"index_id":280,"token_group":201,"text":".","start_char":58,"line":20},{"index_id":281,"token_group":202,"text":"concrete","start_char":59,"line":20},{"index_id":282,"token_group":203,"text":"Indices","start_char":67,"line":20},{"index_id":283,"token_group":203,"text":"(","start_char":74,"line":20},{"index_id":284,"token_group":204,"text":"cluster","start_char":75,"line":20},{"index_id":285,"token_group":205,"text":"State","start_char":82,"line":20},{"index_id":286,"token_group":205,"text":",","start_char":87,"line":20},{"index_id":287,"token_group":206,"text":"indices","start_char":89,"line":20},{"index_id":288,"token_group":207,"text":"Options","start_char":96,"line":20},{"index_id":289,"token_group":207,"text":".","start_char":103,"line":20},{"index_id":290,"token_group":208,"text":"strict","start_char":104,"line":20},{"index_id":291,"token_group":209,"text":"Expand","start_char":110,"line":20},{"index_id":292,"token_group":209,"text":"(","start_char":116,"line":20},{"index_id":293,"token_group":210,"text":")","start_char":117,"line":20},{"index_id":294,"token_group":211,"text":",","start_char":118,"line":20},{"index_id":295,"token_group":212,"text":"(","start_char":120,"line":20},{"index_id":296,"token_group":213,"text":"string","start_char":121,"line":20},{"index_id":297,"token_group":214,"text":"[","start_char":127,"line":20},{"index_id":298,"token_group":215,"text":"]","start_char":128,"line":20},{"index_id":299,"token_group":216,"text":")","start_char":129,"line":20},{"index_id":300,"token_group":217,"text":"null","start_char":131,"line":20},{"index_id":301,"token_group":218,"text":")","start_char":135,"line":20},{"index_id":302,"token_group":219,"text":";","start_char":136,"line":20},{"index_id":303,"token_group":220,"text":"cluster","start_char":4,"line":21},{"index_id":304,"token_group":221,"text":"State","start_char":11,"line":21},{"index_id":305,"token_group":221,"text":"Health","start_char":16,"line":21},{"index_id":306,"token_group":221,"text":"cluster","start_char":23,"line":21},{"index_id":307,"token_group":222,"text":"State","start_char":30,"line":21},{"index_id":308,"token_group":222,"text":"Health","start_char":35,"line":21},{"index_id":309,"token_group":222,"text":"=","start_char":42,"line":21},{"index_id":310,"token_group":223,"text":"new","start_char":44,"line":21},{"index_id":311,"token_group":224,"text":"cluster","start_char":48,"line":21},{"index_id":312,"token_group":225,"text":"State","start_char":55,"line":21},{"index_id":313,"token_group":225,"text":"Health","start_char":60,"line":21},{"index_id":314,"token_group":225,"text":"(","start_char":66,"line":21},{"index_id":315,"token_group":226,"text":"cluster","start_char":67,"line":21},{"index_id":316,"token_group":227,"text":"State","start_char":74,"line":21},{"index_id":317,"token_group":227,"text":",","start_char":79,"line":21},{"index_id":318,"token_group":228,"text":"concrete","start_char":81,"line":21},{"index_id":319,"token_group":229,"text":"Indices","start_char":89,"line":21},{"index_id":320,"token_group":229,"text":")","start_char":96,"line":21},{"index_id":321,"token_group":230,"text":";","start_char":97,"line":21},{"index_id":322,"token_group":231,"text":"cluster","start_char":4,"line":22},{"index_id":323,"token_group":232,"text":"State","start_char":11,"line":22},{"index_id":324,"token_group":232,"text":"Health","start_char":16,"line":22},{"index_id":325,"token_group":232,"text":"=","start_char":23,"line":22},{"index_id":326,"token_group":233,"text":"maybe","start_char":25,"line":22},{"index_id":327,"token_group":234,"text":"Serialize","start_char":30,"line":22},{"index_id":328,"token_group":234,"text":"(","start_char":39,"line":22},{"index_id":329,"token_group":235,"text":"cluster","start_char":40,"line":22},{"index_id":330,"token_group":236,"text":"State","start_char":47,"line":22},{"index_id":331,"token_group":236,"text":"Health","start_char":52,"line":22},{"index_id":332,"token_group":236,"text":")","start_char":58,"line":22},{"index_id":333,"token_group":237,"text":";","start_char":59,"line":22},{"index_id":334,"token_group":238,"text":"assert","start_char":4,"line":24},{"index_id":335,"token_group":239,"text":"That","start_char":10,"line":24},{"index_id":336,"token_group":239,"text":"(","start_char":14,"line":24},{"index_id":337,"token_group":240,"text":"cluster","start_char":15,"line":24},{"index_id":338,"token_group":241,"text":"State","start_char":22,"line":24},{"index_id":339,"token_group":241,"text":"Health","start_char":27,"line":24},{"index_id":340,"token_group":241,"text":".","start_char":33,"line":24},{"index_id":341,"token_group":242,"text":"get","start_char":34,"line":24},{"index_id":342,"token_group":243,"text":"Validation","start_char":37,"line":24},{"index_id":343,"token_group":243,"text":"Failures","start_char":47,"line":24},{"index_id":344,"token_group":243,"text":"(","start_char":55,"line":24},{"index_id":345,"token_group":244,"text":")","start_char":56,"line":24},{"index_id":346,"token_group":245,"text":",","start_char":57,"line":24},{"index_id":347,"token_group":246,"text":"matchers","start_char":59,"line":24},{"index_id":348,"token_group":247,"text":".","start_char":67,"line":24},{"index_id":349,"token_group":248,"text":"has","start_char":68,"line":24},{"index_id":350,"token_group":249,"text":"Size","start_char":71,"line":24},{"index_id":351,"token_group":249,"text":"(","start_char":75,"line":24},{"index_id":352,"token_group":250,"text":"0","start_char":76,"line":24},{"index_id":353,"token_group":251,"text":")","start_char":77,"line":24},{"index_id":354,"token_group":252,"text":")","start_char":78,"line":24},{"index_id":355,"token_group":253,"text":";","start_char":79,"line":24},{"index_id":356,"token_group":254,"text":"}","start_char":0,"line":25}],"tokens_list":["{","routing","Table","Generator","routing","Table","Generator","=","new","routing","Table","Generator","(",")",";","index","Meta","Data","index","Meta","Data","=","index","Meta","Data",".","builder","(","\"test\"",")",".","settings","(","settings","(","version",".","current",")",")",".","number","Of","Shards","(","2",")",".","number","Of","Replicas","(","2",")",".","build","(",")",";","routing","Table","Generator",".","shard","Counter","counter","=","new","routing","Table","Generator",".","shard","Counter","(",")",";","index","Routing","Table","index","Routing","Table","=","routing","Table","Generator",".","gen","Index","Routing","Table","(","index","Meta","Data",",","counter",")",";","index","Meta","Data","=","index","Meta","Data",".","builder","(","\"test\"",")",".","settings","(","settings","(","version",".","current",")",")",".","number","Of","Shards","(","2",")",".","number","Of","Replicas","(","3",")",".","build","(",")",";","cluster","Index","Health","index","Health","=","new","cluster","Index","Health","(","index","Meta","Data",",","index","Routing","Table",")",";","assert","That","(","index","Health",".","get","Validation","Failures","(",")",",","matchers",".","has","Size","(","2",")",")",";","routing","Table",".","builder","routing","Table","=","routing","Table",".","builder","(",")",";","meta","Data",".","builder","meta","Data","=","meta","Data",".","builder","(",")",";","meta","Data",".","put","(","index","Meta","Data",",","true",")",";","routing","Table",".","add","(","index","Routing","Table",")",";","cluster","State","cluster","State","=","cluster","State",".","builder","(","cluster","Name",".","default",")",".","meta","Data","(","meta","Data",")",".","routing","Table","(","routing","Table",".","build","(",")",")",".","build","(",")",";","string","[","]","concrete","Indices","=","index","Name","Expression","Resolver",".","concrete","Indices","(","cluster","State",",","indices","Options",".","strict","Expand","(",")",",","(","string","[","]",")","null",")",";","cluster","State","Health","cluster","State","Health","=","new","cluster","State","Health","(","cluster","State",",","concrete","Indices",")",";","cluster","State","Health","=","maybe","Serialize","(","cluster","State","Health",")",";","assert","That","(","cluster","State","Health",".","get","Validation","Failures","(",")",",","matchers",".","has","Size","(","0",")",")",";","}"],"uuid":"d05f385e816b988bb356d152e3256cc4"}]