-
Notifications
You must be signed in to change notification settings - Fork 1
/
experiment_0000012.json
1 lines (1 loc) · 184 KB
/
experiment_0000012.json
1
[{"cap_original_tokens":["<SENTENCE_START>","{","final","<id>","builder","Message","<\/id>",".","<id>","build","Event","<\/id>",".","<id>","builder","<\/id>","<id>","builder","<\/id>","=","<id>","builder","Message","<\/id>",".","<id>","build","Event","<\/id>",".","<id>","new","Builder","<\/id>","(",")",".","<id>","set","Event","Type","<\/id>","(","<id>","type","<\/id>",")",";","if","(","<id>","description","<\/id>","!=","null",")","{","<id>","builder","<\/id>",".","<id>","set","Description","<\/id>","(","<id>","description","<\/id>",")",";","}","if","(","<id>","status","<\/id>","!=","null",")","{","<id>","builder","<\/id>",".","<id>","set","Completion","Status","<\/id>","(","<id>","status","<\/id>",")",";","}","if","(","<id>","generated","Paths","<\/id>","!=","null",")","{","for","(","<id>","pair","<\/id>","<","<id>","string","<\/id>",",","<id>","string","<\/id>",">","<id>","pair","<\/id>",":","<id>","generated","Paths","<\/id>",")","{","final","<id>","builder","Message","<\/id>",".","<id>","build","Event","<\/id>",".","<id>","generated","File","<\/id>",".","<id>","builder","<\/id>","<id>","file","Builder","<\/id>","=","<id>","builder","Message","<\/id>",".","<id>","build","Event","<\/id>",".","<id>","generated","File","<\/id>",".","<id>","new","Builder","<\/id>","(",")",";","final","<id>","builder","Message","<\/id>",".","<id>","build","Event","<\/id>",".","<id>","generated","File","<\/id>","<id>","generated","File","<\/id>","=","<id>","file","Builder","<\/id>",".","<id>","set","Output","Root","<\/id>","(","<id>","pair","<\/id>",".","<id>","first","<\/id>",")",".","<id>","set","Relative","Path","<\/id>","(","<id>","pair","<\/id>",".","<id>","second","<\/id>",")",".","<id>","build","<\/id>","(",")",";","<id>","builder","<\/id>",".","<id>","add","Generated","Files","<\/id>","(","<id>","generated","File","<\/id>",")",";","}","}","if","(","<id>","builder","Message","<\/id>","!=","null",")","{","<id>","builder","<\/id>",".","<id>","set","Custom","Builder","Message","<\/id>","(","<id>","builder","Message","<\/id>",")",";","}","return","<id>","builder","Message","<\/id>",".","<id>","new","Builder","<\/id>","(",")",".","<id>","set","Type","<\/id>","(","<id>","builder","Message","<\/id>",".","<id>","type","<\/id>",".","<id>","build","Event","<\/id>",")",".","<id>","set","Build","Event","<\/id>","(","<id>","builder","<\/id>",".","<id>","build","<\/id>","(",")",")",".","<id>","build","<\/id>","(",")",";","}","<SENTENCE_END\/>"],"file_name":"CmdlineProtoUtil.java","formatted_lines":["{"," final BuilderMessage.BuildEvent.Builder builder ="," BuilderMessage.BuildEvent.newBuilder().setEventType(type);"," if (description != null)"," {"," builder.setDescription(description);"," }"," if (status != null)"," {"," builder.setCompletionStatus(status);"," }"," if (generatedPaths != null)"," {"," for (Pair<String, String> pair : generatedPaths)"," {"," final BuilderMessage.BuildEvent.GeneratedFile.Builder fileBuilder ="," BuilderMessage.BuildEvent.GeneratedFile.newBuilder();"," final BuilderMessage.BuildEvent.GeneratedFile generatedFile ="," fileBuilder.setOutputRoot(pair.first).setRelativePath(pair.second).build();"," builder.addGeneratedFiles(generatedFile);"," }"," }"," if (builderMessage != null)"," {"," builder.setCustomBuilderMessage(builderMessage);"," }"," return BuilderMessage.newBuilder().setType("," BuilderMessage.Type.BUILD_EVENT).setBuildEvent(builder.build()).build();","}"],"function_name":"createBuildEvent","function_name_tokens":["create","build","event"],"id_body_hash":"707e2f334ee68debca65993c9b1d1591","id_same_identifier_list":[0,1,2,3,3,4,5,5,6,7,8,9,10,10,11,12,12,13,14,14,15,16,17,18,18,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,47,47,48,49,50,51,52,53,54,55,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,70,71,72,73,74,74,75,76,76,77,78,78,79,80,81,81,82,83,83,84,85,85,86,87,87,88,89,89,90,91,92,93,94,94,95,96,96,97,98,98,99,99,100,101,101,102,103,103,103,104,105,106,107,108,109,110,110,110,111,112,113,114,115,116,117,118,119,120,121,122,123,123,123,124,125,125,126,127,128,129,130,131,132,132,133,134,135,136,137,138,139,139,139,139,140,141,141,142,143,144,145,146,146,147,148,148,149,150,151,152,152,153,154,154,155,156,157,158,158,159,160,161,161,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175],"option_correct":"createBuildEvent","options":["getParentKind","createEvent","testParamTypeReplacement","createBasicAuth","createBuildCompletedEvent","createBuildEvent","createEventHandler"],"options_nlp":["get parent kind","create event","test param type replacement","create basic auth","create build completed event","create build event","create event handler"],"options_random":["getParentKind","testParamTypeReplacement","createBasicAuth"],"options_tfidf":["createEventHandler","createEvent","createBuildCompletedEvent"],"project_name":"intellij-community","source_code_string":"private static BuilderMessage createBuildEvent(final BuilderMessage.BuildEvent.Type type,\n @Nullable String description,\n @Nullable final BuilderMessage.BuildEvent.Status status,\n @Nullable Collection<Pair<String, String>> generatedPaths,\n @Nullable final BuilderMessage.BuildEvent.CustomBuilderMessage builderMessage) {\n final BuilderMessage.BuildEvent.Builder builder = BuilderMessage.BuildEvent.newBuilder().setEventType(type);\n if (description != null) {\n builder.setDescription(description);\n }\n if (status != null) {\n builder.setCompletionStatus(status);\n }\n if (generatedPaths != null) {\n for (Pair<String, String> pair : generatedPaths) {\n final BuilderMessage.BuildEvent.GeneratedFile.Builder fileBuilder = BuilderMessage.BuildEvent.GeneratedFile.newBuilder();\n final BuilderMessage.BuildEvent.GeneratedFile generatedFile = fileBuilder.setOutputRoot(pair.first).setRelativePath(pair.second).build();\n builder.addGeneratedFiles(generatedFile);\n }\n }\n if (builderMessage != null) {\n builder.setCustomBuilderMessage(builderMessage);\n }\n return BuilderMessage.newBuilder().setType(BuilderMessage.Type.BUILD_EVENT).setBuildEvent(builder.build()).build();\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"final","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"builder","start_char":10,"line":1},{"index_id":3,"token_group":3,"text":"Message","start_char":17,"line":1},{"index_id":4,"token_group":3,"text":".","start_char":24,"line":1},{"index_id":5,"token_group":4,"text":"build","start_char":25,"line":1},{"index_id":6,"token_group":5,"text":"Event","start_char":30,"line":1},{"index_id":7,"token_group":5,"text":".","start_char":35,"line":1},{"index_id":8,"token_group":6,"text":"builder","start_char":36,"line":1},{"index_id":9,"token_group":7,"text":"builder","start_char":44,"line":1},{"index_id":10,"token_group":8,"text":"=","start_char":52,"line":1},{"index_id":11,"token_group":9,"text":"builder","start_char":8,"line":2},{"index_id":12,"token_group":10,"text":"Message","start_char":15,"line":2},{"index_id":13,"token_group":10,"text":".","start_char":22,"line":2},{"index_id":14,"token_group":11,"text":"build","start_char":23,"line":2},{"index_id":15,"token_group":12,"text":"Event","start_char":28,"line":2},{"index_id":16,"token_group":12,"text":".","start_char":33,"line":2},{"index_id":17,"token_group":13,"text":"new","start_char":34,"line":2},{"index_id":18,"token_group":14,"text":"Builder","start_char":37,"line":2},{"index_id":19,"token_group":14,"text":"(","start_char":44,"line":2},{"index_id":20,"token_group":15,"text":")","start_char":45,"line":2},{"index_id":21,"token_group":16,"text":".","start_char":46,"line":2},{"index_id":22,"token_group":17,"text":"set","start_char":47,"line":2},{"index_id":23,"token_group":18,"text":"Event","start_char":50,"line":2},{"index_id":24,"token_group":18,"text":"Type","start_char":55,"line":2},{"index_id":25,"token_group":18,"text":"(","start_char":59,"line":2},{"index_id":26,"token_group":19,"text":"type","start_char":60,"line":2},{"index_id":27,"token_group":20,"text":")","start_char":64,"line":2},{"index_id":28,"token_group":21,"text":";","start_char":65,"line":2},{"index_id":29,"token_group":22,"text":"if","start_char":4,"line":3},{"index_id":30,"token_group":23,"text":"(","start_char":7,"line":3},{"index_id":31,"token_group":24,"text":"description","start_char":8,"line":3},{"index_id":32,"token_group":25,"text":"!=","start_char":20,"line":3},{"index_id":33,"token_group":26,"text":"null","start_char":23,"line":3},{"index_id":34,"token_group":27,"text":")","start_char":27,"line":3},{"index_id":35,"token_group":28,"text":"{","start_char":4,"line":4},{"index_id":36,"token_group":29,"text":"builder","start_char":8,"line":5},{"index_id":37,"token_group":30,"text":".","start_char":15,"line":5},{"index_id":38,"token_group":31,"text":"set","start_char":16,"line":5},{"index_id":39,"token_group":32,"text":"Description","start_char":19,"line":5},{"index_id":40,"token_group":32,"text":"(","start_char":30,"line":5},{"index_id":41,"token_group":33,"text":"description","start_char":31,"line":5},{"index_id":42,"token_group":34,"text":")","start_char":42,"line":5},{"index_id":43,"token_group":35,"text":";","start_char":43,"line":5},{"index_id":44,"token_group":36,"text":"}","start_char":4,"line":6},{"index_id":45,"token_group":37,"text":"if","start_char":4,"line":7},{"index_id":46,"token_group":38,"text":"(","start_char":7,"line":7},{"index_id":47,"token_group":39,"text":"status","start_char":8,"line":7},{"index_id":48,"token_group":40,"text":"!=","start_char":15,"line":7},{"index_id":49,"token_group":41,"text":"null","start_char":18,"line":7},{"index_id":50,"token_group":42,"text":")","start_char":22,"line":7},{"index_id":51,"token_group":43,"text":"{","start_char":4,"line":8},{"index_id":52,"token_group":44,"text":"builder","start_char":8,"line":9},{"index_id":53,"token_group":45,"text":".","start_char":15,"line":9},{"index_id":54,"token_group":46,"text":"set","start_char":16,"line":9},{"index_id":55,"token_group":47,"text":"Completion","start_char":19,"line":9},{"index_id":56,"token_group":47,"text":"Status","start_char":29,"line":9},{"index_id":57,"token_group":47,"text":"(","start_char":35,"line":9},{"index_id":58,"token_group":48,"text":"status","start_char":36,"line":9},{"index_id":59,"token_group":49,"text":")","start_char":42,"line":9},{"index_id":60,"token_group":50,"text":";","start_char":43,"line":9},{"index_id":61,"token_group":51,"text":"}","start_char":4,"line":10},{"index_id":62,"token_group":52,"text":"if","start_char":4,"line":11},{"index_id":63,"token_group":53,"text":"(","start_char":7,"line":11},{"index_id":64,"token_group":54,"text":"generated","start_char":8,"line":11},{"index_id":65,"token_group":55,"text":"Paths","start_char":17,"line":11},{"index_id":66,"token_group":55,"text":"!=","start_char":23,"line":11},{"index_id":67,"token_group":56,"text":"null","start_char":26,"line":11},{"index_id":68,"token_group":57,"text":")","start_char":30,"line":11},{"index_id":69,"token_group":58,"text":"{","start_char":4,"line":12},{"index_id":70,"token_group":59,"text":"for","start_char":8,"line":13},{"index_id":71,"token_group":60,"text":"(","start_char":12,"line":13},{"index_id":72,"token_group":61,"text":"pair","start_char":13,"line":13},{"index_id":73,"token_group":62,"text":"<","start_char":17,"line":13},{"index_id":74,"token_group":63,"text":"string","start_char":18,"line":13},{"index_id":75,"token_group":64,"text":",","start_char":24,"line":13},{"index_id":76,"token_group":65,"text":"string","start_char":26,"line":13},{"index_id":77,"token_group":66,"text":">","start_char":32,"line":13},{"index_id":78,"token_group":67,"text":"pair","start_char":34,"line":13},{"index_id":79,"token_group":68,"text":":","start_char":39,"line":13},{"index_id":80,"token_group":69,"text":"generated","start_char":41,"line":13},{"index_id":81,"token_group":70,"text":"Paths","start_char":50,"line":13},{"index_id":82,"token_group":70,"text":")","start_char":55,"line":13},{"index_id":83,"token_group":71,"text":"{","start_char":8,"line":14},{"index_id":84,"token_group":72,"text":"final","start_char":12,"line":15},{"index_id":85,"token_group":73,"text":"builder","start_char":18,"line":15},{"index_id":86,"token_group":74,"text":"Message","start_char":25,"line":15},{"index_id":87,"token_group":74,"text":".","start_char":32,"line":15},{"index_id":88,"token_group":75,"text":"build","start_char":33,"line":15},{"index_id":89,"token_group":76,"text":"Event","start_char":38,"line":15},{"index_id":90,"token_group":76,"text":".","start_char":43,"line":15},{"index_id":91,"token_group":77,"text":"generated","start_char":44,"line":15},{"index_id":92,"token_group":78,"text":"File","start_char":53,"line":15},{"index_id":93,"token_group":78,"text":".","start_char":57,"line":15},{"index_id":94,"token_group":79,"text":"builder","start_char":58,"line":15},{"index_id":95,"token_group":80,"text":"file","start_char":66,"line":15},{"index_id":96,"token_group":81,"text":"Builder","start_char":70,"line":15},{"index_id":97,"token_group":81,"text":"=","start_char":78,"line":15},{"index_id":98,"token_group":82,"text":"builder","start_char":16,"line":16},{"index_id":99,"token_group":83,"text":"Message","start_char":23,"line":16},{"index_id":100,"token_group":83,"text":".","start_char":30,"line":16},{"index_id":101,"token_group":84,"text":"build","start_char":31,"line":16},{"index_id":102,"token_group":85,"text":"Event","start_char":36,"line":16},{"index_id":103,"token_group":85,"text":".","start_char":41,"line":16},{"index_id":104,"token_group":86,"text":"generated","start_char":42,"line":16},{"index_id":105,"token_group":87,"text":"File","start_char":51,"line":16},{"index_id":106,"token_group":87,"text":".","start_char":55,"line":16},{"index_id":107,"token_group":88,"text":"new","start_char":56,"line":16},{"index_id":108,"token_group":89,"text":"Builder","start_char":59,"line":16},{"index_id":109,"token_group":89,"text":"(","start_char":66,"line":16},{"index_id":110,"token_group":90,"text":")","start_char":67,"line":16},{"index_id":111,"token_group":91,"text":";","start_char":68,"line":16},{"index_id":112,"token_group":92,"text":"final","start_char":12,"line":17},{"index_id":113,"token_group":93,"text":"builder","start_char":18,"line":17},{"index_id":114,"token_group":94,"text":"Message","start_char":25,"line":17},{"index_id":115,"token_group":94,"text":".","start_char":32,"line":17},{"index_id":116,"token_group":95,"text":"build","start_char":33,"line":17},{"index_id":117,"token_group":96,"text":"Event","start_char":38,"line":17},{"index_id":118,"token_group":96,"text":".","start_char":43,"line":17},{"index_id":119,"token_group":97,"text":"generated","start_char":44,"line":17},{"index_id":120,"token_group":98,"text":"File","start_char":53,"line":17},{"index_id":121,"token_group":98,"text":"generated","start_char":58,"line":17},{"index_id":122,"token_group":99,"text":"File","start_char":67,"line":17},{"index_id":123,"token_group":99,"text":"=","start_char":72,"line":17},{"index_id":124,"token_group":100,"text":"file","start_char":16,"line":18},{"index_id":125,"token_group":101,"text":"Builder","start_char":20,"line":18},{"index_id":126,"token_group":101,"text":".","start_char":27,"line":18},{"index_id":127,"token_group":102,"text":"set","start_char":28,"line":18},{"index_id":128,"token_group":103,"text":"Output","start_char":31,"line":18},{"index_id":129,"token_group":103,"text":"Root","start_char":37,"line":18},{"index_id":130,"token_group":103,"text":"(","start_char":41,"line":18},{"index_id":131,"token_group":104,"text":"pair","start_char":42,"line":18},{"index_id":132,"token_group":105,"text":".","start_char":46,"line":18},{"index_id":133,"token_group":106,"text":"first","start_char":47,"line":18},{"index_id":134,"token_group":107,"text":")","start_char":52,"line":18},{"index_id":135,"token_group":108,"text":".","start_char":53,"line":18},{"index_id":136,"token_group":109,"text":"set","start_char":54,"line":18},{"index_id":137,"token_group":110,"text":"Relative","start_char":57,"line":18},{"index_id":138,"token_group":110,"text":"Path","start_char":65,"line":18},{"index_id":139,"token_group":110,"text":"(","start_char":69,"line":18},{"index_id":140,"token_group":111,"text":"pair","start_char":70,"line":18},{"index_id":141,"token_group":112,"text":".","start_char":74,"line":18},{"index_id":142,"token_group":113,"text":"second","start_char":75,"line":18},{"index_id":143,"token_group":114,"text":")","start_char":81,"line":18},{"index_id":144,"token_group":115,"text":".","start_char":82,"line":18},{"index_id":145,"token_group":116,"text":"build","start_char":83,"line":18},{"index_id":146,"token_group":117,"text":"(","start_char":88,"line":18},{"index_id":147,"token_group":118,"text":")","start_char":89,"line":18},{"index_id":148,"token_group":119,"text":";","start_char":90,"line":18},{"index_id":149,"token_group":120,"text":"builder","start_char":12,"line":19},{"index_id":150,"token_group":121,"text":".","start_char":19,"line":19},{"index_id":151,"token_group":122,"text":"add","start_char":20,"line":19},{"index_id":152,"token_group":123,"text":"Generated","start_char":23,"line":19},{"index_id":153,"token_group":123,"text":"Files","start_char":32,"line":19},{"index_id":154,"token_group":123,"text":"(","start_char":37,"line":19},{"index_id":155,"token_group":124,"text":"generated","start_char":38,"line":19},{"index_id":156,"token_group":125,"text":"File","start_char":47,"line":19},{"index_id":157,"token_group":125,"text":")","start_char":51,"line":19},{"index_id":158,"token_group":126,"text":";","start_char":52,"line":19},{"index_id":159,"token_group":127,"text":"}","start_char":8,"line":20},{"index_id":160,"token_group":128,"text":"}","start_char":4,"line":21},{"index_id":161,"token_group":129,"text":"if","start_char":4,"line":22},{"index_id":162,"token_group":130,"text":"(","start_char":7,"line":22},{"index_id":163,"token_group":131,"text":"builder","start_char":8,"line":22},{"index_id":164,"token_group":132,"text":"Message","start_char":15,"line":22},{"index_id":165,"token_group":132,"text":"!=","start_char":23,"line":22},{"index_id":166,"token_group":133,"text":"null","start_char":26,"line":22},{"index_id":167,"token_group":134,"text":")","start_char":30,"line":22},{"index_id":168,"token_group":135,"text":"{","start_char":4,"line":23},{"index_id":169,"token_group":136,"text":"builder","start_char":8,"line":24},{"index_id":170,"token_group":137,"text":".","start_char":15,"line":24},{"index_id":171,"token_group":138,"text":"set","start_char":16,"line":24},{"index_id":172,"token_group":139,"text":"Custom","start_char":19,"line":24},{"index_id":173,"token_group":139,"text":"Builder","start_char":25,"line":24},{"index_id":174,"token_group":139,"text":"Message","start_char":32,"line":24},{"index_id":175,"token_group":139,"text":"(","start_char":39,"line":24},{"index_id":176,"token_group":140,"text":"builder","start_char":40,"line":24},{"index_id":177,"token_group":141,"text":"Message","start_char":47,"line":24},{"index_id":178,"token_group":141,"text":")","start_char":54,"line":24},{"index_id":179,"token_group":142,"text":";","start_char":55,"line":24},{"index_id":180,"token_group":143,"text":"}","start_char":4,"line":25},{"index_id":181,"token_group":144,"text":"return","start_char":4,"line":26},{"index_id":182,"token_group":145,"text":"builder","start_char":11,"line":26},{"index_id":183,"token_group":146,"text":"Message","start_char":18,"line":26},{"index_id":184,"token_group":146,"text":".","start_char":25,"line":26},{"index_id":185,"token_group":147,"text":"new","start_char":26,"line":26},{"index_id":186,"token_group":148,"text":"Builder","start_char":29,"line":26},{"index_id":187,"token_group":148,"text":"(","start_char":36,"line":26},{"index_id":188,"token_group":149,"text":")","start_char":37,"line":26},{"index_id":189,"token_group":150,"text":".","start_char":38,"line":26},{"index_id":190,"token_group":151,"text":"set","start_char":39,"line":26},{"index_id":191,"token_group":152,"text":"Type","start_char":42,"line":26},{"index_id":192,"token_group":152,"text":"(","start_char":46,"line":26},{"index_id":193,"token_group":153,"text":"builder","start_char":15,"line":27},{"index_id":194,"token_group":154,"text":"Message","start_char":22,"line":27},{"index_id":195,"token_group":154,"text":".","start_char":29,"line":27},{"index_id":196,"token_group":155,"text":"type","start_char":30,"line":27},{"index_id":197,"token_group":156,"text":".","start_char":34,"line":27},{"index_id":198,"token_group":157,"text":"build","start_char":35,"line":27},{"index_id":199,"token_group":158,"text":"Event","start_char":41,"line":27},{"index_id":200,"token_group":158,"text":")","start_char":46,"line":27},{"index_id":201,"token_group":159,"text":".","start_char":47,"line":27},{"index_id":202,"token_group":160,"text":"set","start_char":48,"line":27},{"index_id":203,"token_group":161,"text":"Build","start_char":51,"line":27},{"index_id":204,"token_group":161,"text":"Event","start_char":56,"line":27},{"index_id":205,"token_group":161,"text":"(","start_char":61,"line":27},{"index_id":206,"token_group":162,"text":"builder","start_char":62,"line":27},{"index_id":207,"token_group":163,"text":".","start_char":69,"line":27},{"index_id":208,"token_group":164,"text":"build","start_char":70,"line":27},{"index_id":209,"token_group":165,"text":"(","start_char":75,"line":27},{"index_id":210,"token_group":166,"text":")","start_char":76,"line":27},{"index_id":211,"token_group":167,"text":")","start_char":77,"line":27},{"index_id":212,"token_group":168,"text":".","start_char":78,"line":27},{"index_id":213,"token_group":169,"text":"build","start_char":79,"line":27},{"index_id":214,"token_group":170,"text":"(","start_char":84,"line":27},{"index_id":215,"token_group":171,"text":")","start_char":85,"line":27},{"index_id":216,"token_group":172,"text":";","start_char":86,"line":27},{"index_id":217,"token_group":173,"text":"}","start_char":0,"line":28}],"tokens_list":["{","final","builder","Message",".","build","Event",".","builder","builder","=","builder","Message",".","build","Event",".","new","Builder","(",")",".","set","Event","Type","(","type",")",";","if","(","description","!=","null",")","{","builder",".","set","Description","(","description",")",";","}","if","(","status","!=","null",")","{","builder",".","set","Completion","Status","(","status",")",";","}","if","(","generated","Paths","!=","null",")","{","for","(","pair","<","string",",","string",">","pair",":","generated","Paths",")","{","final","builder","Message",".","build","Event",".","generated","File",".","builder","file","Builder","=","builder","Message",".","build","Event",".","generated","File",".","new","Builder","(",")",";","final","builder","Message",".","build","Event",".","generated","File","generated","File","=","file","Builder",".","set","Output","Root","(","pair",".","first",")",".","set","Relative","Path","(","pair",".","second",")",".","build","(",")",";","builder",".","add","Generated","Files","(","generated","File",")",";","}","}","if","(","builder","Message","!=","null",")","{","builder",".","set","Custom","Builder","Message","(","builder","Message",")",";","}","return","builder","Message",".","new","Builder","(",")",".","set","Type","(","builder","Message",".","type",".","build","Event",")",".","set","Build","Event","(","builder",".","build","(",")",")",".","build","(",")",";","}"],"uuid":"4a5bece51b1c33e71b93b105df849424"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","get","Attribute","Process","Callable","<\/id>","<id>","get","Attribute","Process","Callable","<\/id>","=","new","<id>","get","Attribute","Process","Callable","<\/id>","(","<id>","","Unknow","Object","Name","<\/id>",",","\"Name\"",",","true",")",";","try","{","<id>","get","Attribute","Process","Callable","<\/id>",".","<id>","call","<\/id>","(",")",";","<id>","assert","<\/id>",".","<id>","fail","<\/id>","(",")",";","}","catch","(","<id>","process","Exception","<\/id>","<id>","pe","<\/id>",")","{","<id>","throwable","<\/id>","<id>","throwable","<\/id>","=","<id>","pe","<\/id>",".","<id>","get","Cause","<\/id>","(",")",";","<id>","assert","<\/id>",".","<id>","assert","Same","<\/id>","(","<id>","instance","Not","Found","Exception","<\/id>",".","class",",","<id>","throwable","<\/id>",".","<id>","get","Class","<\/id>","(",")",")",";","}","}","<SENTENCE_END\/>"],"file_name":"JMXProxyUtilTest.java","formatted_lines":["{"," GetAttributeProcessCallable getAttributeProcessCallable ="," new GetAttributeProcessCallable(_unknowObjectName, \"Name\", true);",""," try"," {"," getAttributeProcessCallable.call();",""," Assert.fail();"," }"," catch (ProcessException pe)"," {"," Throwable throwable = pe.getCause();",""," Assert.assertSame("," InstanceNotFoundException.class, throwable.getClass());"," }","}"],"function_name":"testGetAttributeProcessCallableFailureInstanceNotFound","function_name_tokens":["test","get","attribute","process","callable","failure","instance","not","found"],"id_body_hash":"ea467335ca3d933f8b15cfbb5d3440bb","id_same_identifier_list":[0,1,2,2,2,2,3,3,3,3,4,5,6,6,6,6,7,8,8,8,8,9,10,11,12,13,14,15,16,17,17,17,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,32,33,34,35,36,37,38,39,40,41,41,42,43,44,45,46,47,47,48,49,49,49,49,50,51,52,53,54,55,55,56,57,58,59,60,61,62],"option_correct":"testGetAttributeProcessCallableFailureInstanceNotFound","options":["testGetAttributeProcessCallableFailureInstanceRequired","testGetAttributeProcessCallableFailureInstanceOptional","testGetAttributeProcessCallableFailureInstanceNotFound","testUpdateContent","migrateImageFiles","checkPrimitives","testSetAttributeProcessCallableFailureOptional"],"options_nlp":["test get attribute process callable failure instance required","test get attribute process callable failure instance optional","test get attribute process callable failure instance not found","test update content","migrate image files","check primitives","test set attribute process callable failure optional"],"options_random":["migrateImageFiles","checkPrimitives","testUpdateContent"],"options_tfidf":["testSetAttributeProcessCallableFailureOptional","testGetAttributeProcessCallableFailureInstanceRequired","testGetAttributeProcessCallableFailureInstanceOptional"],"project_name":"liferay-portal","source_code_string":"@Test\n\tpublic void testGetAttributeProcessCallableFailureInstanceNotFound() {\n\t\tGetAttributeProcessCallable getAttributeProcessCallable =\n\t\t\tnew GetAttributeProcessCallable(_unknowObjectName, \"Name\", true);\n\n\t\ttry {\n\t\t\tgetAttributeProcessCallable.call();\n\n\t\t\tAssert.fail();\n\t\t}\n\t\tcatch (ProcessException pe) {\n\t\t\tThrowable throwable = pe.getCause();\n\n\t\t\tAssert.assertSame(\n\t\t\t\tInstanceNotFoundException.class, throwable.getClass());\n\t\t}\n\t}","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"get","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"Attribute","start_char":7,"line":1},{"index_id":3,"token_group":2,"text":"Process","start_char":16,"line":1},{"index_id":4,"token_group":2,"text":"Callable","start_char":23,"line":1},{"index_id":5,"token_group":2,"text":"get","start_char":32,"line":1},{"index_id":6,"token_group":3,"text":"Attribute","start_char":35,"line":1},{"index_id":7,"token_group":3,"text":"Process","start_char":44,"line":1},{"index_id":8,"token_group":3,"text":"Callable","start_char":51,"line":1},{"index_id":9,"token_group":3,"text":"=","start_char":60,"line":1},{"index_id":10,"token_group":4,"text":"new","start_char":8,"line":2},{"index_id":11,"token_group":5,"text":"get","start_char":12,"line":2},{"index_id":12,"token_group":6,"text":"Attribute","start_char":15,"line":2},{"index_id":13,"token_group":6,"text":"Process","start_char":24,"line":2},{"index_id":14,"token_group":6,"text":"Callable","start_char":31,"line":2},{"index_id":15,"token_group":6,"text":"(","start_char":39,"line":2},{"index_id":16,"token_group":7,"text":"","start_char":40,"line":2},{"index_id":17,"token_group":8,"text":"Unknow","start_char":41,"line":2},{"index_id":18,"token_group":8,"text":"Object","start_char":47,"line":2},{"index_id":19,"token_group":8,"text":"Name","start_char":53,"line":2},{"index_id":20,"token_group":8,"text":",","start_char":57,"line":2},{"index_id":21,"token_group":9,"text":"\"Name\"","start_char":59,"line":2},{"index_id":22,"token_group":10,"text":",","start_char":65,"line":2},{"index_id":23,"token_group":11,"text":"true","start_char":67,"line":2},{"index_id":24,"token_group":12,"text":")","start_char":71,"line":2},{"index_id":25,"token_group":13,"text":";","start_char":72,"line":2},{"index_id":26,"token_group":14,"text":"try","start_char":4,"line":4},{"index_id":27,"token_group":15,"text":"{","start_char":4,"line":5},{"index_id":28,"token_group":16,"text":"get","start_char":8,"line":6},{"index_id":29,"token_group":17,"text":"Attribute","start_char":11,"line":6},{"index_id":30,"token_group":17,"text":"Process","start_char":20,"line":6},{"index_id":31,"token_group":17,"text":"Callable","start_char":27,"line":6},{"index_id":32,"token_group":17,"text":".","start_char":35,"line":6},{"index_id":33,"token_group":18,"text":"call","start_char":36,"line":6},{"index_id":34,"token_group":19,"text":"(","start_char":40,"line":6},{"index_id":35,"token_group":20,"text":")","start_char":41,"line":6},{"index_id":36,"token_group":21,"text":";","start_char":42,"line":6},{"index_id":37,"token_group":22,"text":"assert","start_char":8,"line":8},{"index_id":38,"token_group":23,"text":".","start_char":14,"line":8},{"index_id":39,"token_group":24,"text":"fail","start_char":15,"line":8},{"index_id":40,"token_group":25,"text":"(","start_char":19,"line":8},{"index_id":41,"token_group":26,"text":")","start_char":20,"line":8},{"index_id":42,"token_group":27,"text":";","start_char":21,"line":8},{"index_id":43,"token_group":28,"text":"}","start_char":4,"line":9},{"index_id":44,"token_group":29,"text":"catch","start_char":4,"line":10},{"index_id":45,"token_group":30,"text":"(","start_char":10,"line":10},{"index_id":46,"token_group":31,"text":"process","start_char":11,"line":10},{"index_id":47,"token_group":32,"text":"Exception","start_char":18,"line":10},{"index_id":48,"token_group":32,"text":"pe","start_char":28,"line":10},{"index_id":49,"token_group":33,"text":")","start_char":30,"line":10},{"index_id":50,"token_group":34,"text":"{","start_char":4,"line":11},{"index_id":51,"token_group":35,"text":"throwable","start_char":8,"line":12},{"index_id":52,"token_group":36,"text":"throwable","start_char":18,"line":12},{"index_id":53,"token_group":37,"text":"=","start_char":28,"line":12},{"index_id":54,"token_group":38,"text":"pe","start_char":30,"line":12},{"index_id":55,"token_group":39,"text":".","start_char":32,"line":12},{"index_id":56,"token_group":40,"text":"get","start_char":33,"line":12},{"index_id":57,"token_group":41,"text":"Cause","start_char":36,"line":12},{"index_id":58,"token_group":41,"text":"(","start_char":41,"line":12},{"index_id":59,"token_group":42,"text":")","start_char":42,"line":12},{"index_id":60,"token_group":43,"text":";","start_char":43,"line":12},{"index_id":61,"token_group":44,"text":"assert","start_char":8,"line":14},{"index_id":62,"token_group":45,"text":".","start_char":14,"line":14},{"index_id":63,"token_group":46,"text":"assert","start_char":15,"line":14},{"index_id":64,"token_group":47,"text":"Same","start_char":21,"line":14},{"index_id":65,"token_group":47,"text":"(","start_char":25,"line":14},{"index_id":66,"token_group":48,"text":"instance","start_char":12,"line":15},{"index_id":67,"token_group":49,"text":"Not","start_char":20,"line":15},{"index_id":68,"token_group":49,"text":"Found","start_char":23,"line":15},{"index_id":69,"token_group":49,"text":"Exception","start_char":28,"line":15},{"index_id":70,"token_group":49,"text":".","start_char":37,"line":15},{"index_id":71,"token_group":50,"text":"class","start_char":38,"line":15},{"index_id":72,"token_group":51,"text":",","start_char":43,"line":15},{"index_id":73,"token_group":52,"text":"throwable","start_char":45,"line":15},{"index_id":74,"token_group":53,"text":".","start_char":54,"line":15},{"index_id":75,"token_group":54,"text":"get","start_char":55,"line":15},{"index_id":76,"token_group":55,"text":"Class","start_char":58,"line":15},{"index_id":77,"token_group":55,"text":"(","start_char":63,"line":15},{"index_id":78,"token_group":56,"text":")","start_char":64,"line":15},{"index_id":79,"token_group":57,"text":")","start_char":65,"line":15},{"index_id":80,"token_group":58,"text":";","start_char":66,"line":15},{"index_id":81,"token_group":59,"text":"}","start_char":4,"line":16},{"index_id":82,"token_group":60,"text":"}","start_char":0,"line":17}],"tokens_list":["{","get","Attribute","Process","Callable","get","Attribute","Process","Callable","=","new","get","Attribute","Process","Callable","(","","Unknow","Object","Name",",","\"Name\"",",","true",")",";","try","{","get","Attribute","Process","Callable",".","call","(",")",";","assert",".","fail","(",")",";","}","catch","(","process","Exception","pe",")","{","throwable","throwable","=","pe",".","get","Cause","(",")",";","assert",".","assert","Same","(","instance","Not","Found","Exception",".","class",",","throwable",".","get","Class","(",")",")",";","}","}"],"uuid":"0f98e693eac061e1d7ccea5da912afb1"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","uri","<\/id>","<id>","uri","1","<\/id>","=","<id>","stateful","Servlet","<\/id>",".","<id>","create","Uri","<\/id>","(","<id>","base","Url","1","<\/id>",",","<id>","module","Name","<\/id>",",","<id>","passivation","Incapable","Incrementor","Bean","<\/id>",".","class",".","<id>","get","Simple","Name","<\/id>","(",")",")",";","<id>","uri","<\/id>","<id>","uri","2","<\/id>","=","<id>","stateful","Servlet","<\/id>",".","<id>","create","Uri","<\/id>","(","<id>","base","Url","2","<\/id>",",","<id>","module","Name","<\/id>",",","<id>","passivation","Incapable","Incrementor","Bean","<\/id>",".","class",".","<id>","get","Simple","Name","<\/id>","(",")",")",";","try","(","<id>","closeable","Http","Client","<\/id>","<id>","client","<\/id>","=","<id>","test","Http","Client","Utils","<\/id>",".","<id>","promiscuous","Cookie","Http","Client","<\/id>","(",")",")","{","<id>","assert","Equals","<\/id>","(","1",",","<id>","query","Count","<\/id>","(","<id>","client","<\/id>",",","<id>","uri","1","<\/id>",")",")",";","<id>","assert","Equals","<\/id>","(","2",",","<id>","query","Count","<\/id>","(","<id>","client","<\/id>",",","<id>","uri","1","<\/id>",")",")",";","<id>","assert","Equals","<\/id>","(","0",",","<id>","query","Count","<\/id>","(","<id>","client","<\/id>",",","<id>","uri","2","<\/id>",")",")",";","<id>","undeploy","<\/id>","(","<id>","deployment","2","<\/id>",")",";","<id>","assert","Equals","<\/id>","(","1",",","<id>","query","Count","<\/id>","(","<id>","client","<\/id>",",","<id>","uri","1","<\/id>",")",")",";","<id>","assert","Equals","<\/id>","(","2",",","<id>","query","Count","<\/id>","(","<id>","client","<\/id>",",","<id>","uri","1","<\/id>",")",")",";","<id>","deploy","<\/id>","(","<id>","deployment","2","<\/id>",")",";","<id>","assert","Equals","<\/id>","(","3",",","<id>","query","Count","<\/id>","(","<id>","client","<\/id>",",","<id>","uri","1","<\/id>",")",")",";","<id>","assert","Equals","<\/id>","(","4",",","<id>","query","Count","<\/id>","(","<id>","client","<\/id>",",","<id>","uri","1","<\/id>",")",")",";","<id>","assert","Equals","<\/id>","(","0",",","<id>","query","Count","<\/id>","(","<id>","client","<\/id>",",","<id>","uri","2","<\/id>",")",")",";","<id>","undeploy","<\/id>","(","<id>","deployment","1","<\/id>",")",";","<id>","assert","Equals","<\/id>","(","1",",","<id>","query","Count","<\/id>","(","<id>","client","<\/id>",",","<id>","uri","2","<\/id>",")",")",";","<id>","assert","Equals","<\/id>","(","2",",","<id>","query","Count","<\/id>","(","<id>","client","<\/id>",",","<id>","uri","2","<\/id>",")",")",";","<id>","deploy","<\/id>","(","<id>","deployment","1","<\/id>",")",";","<id>","assert","Equals","<\/id>","(","0",",","<id>","query","Count","<\/id>","(","<id>","client","<\/id>",",","<id>","uri","1","<\/id>",")",")",";","}","}","<SENTENCE_END\/>"],"file_name":"StatefulFailoverTestCase.java","formatted_lines":["{",""," URI uri1 = StatefulServlet.createURI(baseURL1, MODULE_NAME, PassivationIncapableIncrementorBean.class.getSimpleName());"," URI uri2 = StatefulServlet.createURI(baseURL2, MODULE_NAME, PassivationIncapableIncrementorBean.class.getSimpleName());",""," try (CloseableHttpClient client = TestHttpClientUtils.promiscuousCookieHttpClient())"," {"," assertEquals(1, queryCount(client, uri1));"," assertEquals(2, queryCount(client, uri1));",""," assertEquals(0, queryCount(client, uri2));",""," undeploy(DEPLOYMENT_2);",""," assertEquals(1, queryCount(client, uri1));"," assertEquals(2, queryCount(client, uri1));",""," deploy(DEPLOYMENT_2);",""," assertEquals(3, queryCount(client, uri1));"," assertEquals(4, queryCount(client, uri1));",""," assertEquals(0, queryCount(client, uri2));",""," undeploy(DEPLOYMENT_1);",""," assertEquals(1, queryCount(client, uri2));"," assertEquals(2, queryCount(client, uri2));",""," deploy(DEPLOYMENT_1);",""," assertEquals(0, queryCount(client, uri1));"," }","}"],"function_name":"noFailover","function_name_tokens":["no","failover"],"id_body_hash":"0ed857ac48acdbce8d840cbca1059a7b","id_same_identifier_list":[0,1,2,3,3,4,5,5,6,7,7,8,9,9,9,10,11,11,12,13,13,13,13,14,15,16,17,17,17,18,19,20,21,22,23,23,24,25,25,26,27,27,28,29,29,29,30,31,31,32,33,33,33,33,34,35,36,37,37,37,38,39,40,41,42,43,44,44,44,45,46,47,47,47,47,48,49,49,49,49,50,51,52,53,54,54,55,56,57,58,58,59,60,61,62,62,63,64,65,66,66,67,68,69,70,70,71,72,73,74,74,75,76,77,78,78,79,80,81,82,82,83,84,85,86,86,87,88,89,90,91,92,92,93,94,95,95,96,97,98,99,99,100,101,102,103,103,104,105,106,107,107,108,109,110,111,111,112,113,114,115,115,116,117,118,119,120,121,121,122,123,124,124,125,126,127,128,128,129,130,131,132,132,133,134,135,136,136,137,138,139,140,140,141,142,143,144,144,145,146,147,148,148,149,150,151,152,152,153,154,155,156,156,157,158,159,160,161,162,162,163,164,165,165,166,167,168,169,169,170,171,172,173,173,174,175,176,177,177,178,179,180,181,181,182,183,184,185,185,186,187,188,189,190,191,191,192,193,194,194,195,196,197,198,198,199,200,201,202,202,203,204,205,206,207,208],"option_correct":"noFailover","options":["testHashUserPasswordFalse","getCurrent","testStatefulFailover","getLocalClass","noFailover","failover","simpleFailover"],"options_nlp":["test hash user password false","get current","test stateful failover","get local class","no failover","failover","simple failover"],"options_random":["testHashUserPasswordFalse","getCurrent","getLocalClass"],"options_tfidf":["failover","testStatefulFailover","simpleFailover"],"project_name":"wildfly","source_code_string":"@Test\n public void noFailover(\n @ArquillianResource() @OperateOnDeployment(DEPLOYMENT_1) URL baseURL1,\n @ArquillianResource() @OperateOnDeployment(DEPLOYMENT_2) URL baseURL2) throws Exception {\n\n URI uri1 = StatefulServlet.createURI(baseURL1, MODULE_NAME, PassivationIncapableIncrementorBean.class.getSimpleName());\n URI uri2 = StatefulServlet.createURI(baseURL2, MODULE_NAME, PassivationIncapableIncrementorBean.class.getSimpleName());\n\n try (CloseableHttpClient client = TestHttpClientUtils.promiscuousCookieHttpClient()) {\n assertEquals(1, queryCount(client, uri1));\n assertEquals(2, queryCount(client, uri1));\n\n assertEquals(0, queryCount(client, uri2));\n\n undeploy(DEPLOYMENT_2);\n\n assertEquals(1, queryCount(client, uri1));\n assertEquals(2, queryCount(client, uri1));\n\n deploy(DEPLOYMENT_2);\n\n assertEquals(3, queryCount(client, uri1));\n assertEquals(4, queryCount(client, uri1));\n\n assertEquals(0, queryCount(client, uri2));\n\n undeploy(DEPLOYMENT_1);\n\n assertEquals(1, queryCount(client, uri2));\n assertEquals(2, queryCount(client, uri2));\n\n deploy(DEPLOYMENT_1);\n\n assertEquals(0, queryCount(client, uri1));\n }\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"uri","start_char":4,"line":2},{"index_id":2,"token_group":2,"text":"uri","start_char":8,"line":2},{"index_id":3,"token_group":3,"text":"1","start_char":11,"line":2},{"index_id":4,"token_group":3,"text":"=","start_char":13,"line":2},{"index_id":5,"token_group":4,"text":"stateful","start_char":15,"line":2},{"index_id":6,"token_group":5,"text":"Servlet","start_char":23,"line":2},{"index_id":7,"token_group":5,"text":".","start_char":30,"line":2},{"index_id":8,"token_group":6,"text":"create","start_char":31,"line":2},{"index_id":9,"token_group":7,"text":"Uri","start_char":37,"line":2},{"index_id":10,"token_group":7,"text":"(","start_char":40,"line":2},{"index_id":11,"token_group":8,"text":"base","start_char":41,"line":2},{"index_id":12,"token_group":9,"text":"Url","start_char":45,"line":2},{"index_id":13,"token_group":9,"text":"1","start_char":48,"line":2},{"index_id":14,"token_group":9,"text":",","start_char":49,"line":2},{"index_id":15,"token_group":10,"text":"module","start_char":51,"line":2},{"index_id":16,"token_group":11,"text":"Name","start_char":58,"line":2},{"index_id":17,"token_group":11,"text":",","start_char":62,"line":2},{"index_id":18,"token_group":12,"text":"passivation","start_char":64,"line":2},{"index_id":19,"token_group":13,"text":"Incapable","start_char":75,"line":2},{"index_id":20,"token_group":13,"text":"Incrementor","start_char":84,"line":2},{"index_id":21,"token_group":13,"text":"Bean","start_char":95,"line":2},{"index_id":22,"token_group":13,"text":".","start_char":99,"line":2},{"index_id":23,"token_group":14,"text":"class","start_char":100,"line":2},{"index_id":24,"token_group":15,"text":".","start_char":105,"line":2},{"index_id":25,"token_group":16,"text":"get","start_char":106,"line":2},{"index_id":26,"token_group":17,"text":"Simple","start_char":109,"line":2},{"index_id":27,"token_group":17,"text":"Name","start_char":115,"line":2},{"index_id":28,"token_group":17,"text":"(","start_char":119,"line":2},{"index_id":29,"token_group":18,"text":")","start_char":120,"line":2},{"index_id":30,"token_group":19,"text":")","start_char":121,"line":2},{"index_id":31,"token_group":20,"text":";","start_char":122,"line":2},{"index_id":32,"token_group":21,"text":"uri","start_char":4,"line":3},{"index_id":33,"token_group":22,"text":"uri","start_char":8,"line":3},{"index_id":34,"token_group":23,"text":"2","start_char":11,"line":3},{"index_id":35,"token_group":23,"text":"=","start_char":13,"line":3},{"index_id":36,"token_group":24,"text":"stateful","start_char":15,"line":3},{"index_id":37,"token_group":25,"text":"Servlet","start_char":23,"line":3},{"index_id":38,"token_group":25,"text":".","start_char":30,"line":3},{"index_id":39,"token_group":26,"text":"create","start_char":31,"line":3},{"index_id":40,"token_group":27,"text":"Uri","start_char":37,"line":3},{"index_id":41,"token_group":27,"text":"(","start_char":40,"line":3},{"index_id":42,"token_group":28,"text":"base","start_char":41,"line":3},{"index_id":43,"token_group":29,"text":"Url","start_char":45,"line":3},{"index_id":44,"token_group":29,"text":"2","start_char":48,"line":3},{"index_id":45,"token_group":29,"text":",","start_char":49,"line":3},{"index_id":46,"token_group":30,"text":"module","start_char":51,"line":3},{"index_id":47,"token_group":31,"text":"Name","start_char":58,"line":3},{"index_id":48,"token_group":31,"text":",","start_char":62,"line":3},{"index_id":49,"token_group":32,"text":"passivation","start_char":64,"line":3},{"index_id":50,"token_group":33,"text":"Incapable","start_char":75,"line":3},{"index_id":51,"token_group":33,"text":"Incrementor","start_char":84,"line":3},{"index_id":52,"token_group":33,"text":"Bean","start_char":95,"line":3},{"index_id":53,"token_group":33,"text":".","start_char":99,"line":3},{"index_id":54,"token_group":34,"text":"class","start_char":100,"line":3},{"index_id":55,"token_group":35,"text":".","start_char":105,"line":3},{"index_id":56,"token_group":36,"text":"get","start_char":106,"line":3},{"index_id":57,"token_group":37,"text":"Simple","start_char":109,"line":3},{"index_id":58,"token_group":37,"text":"Name","start_char":115,"line":3},{"index_id":59,"token_group":37,"text":"(","start_char":119,"line":3},{"index_id":60,"token_group":38,"text":")","start_char":120,"line":3},{"index_id":61,"token_group":39,"text":")","start_char":121,"line":3},{"index_id":62,"token_group":40,"text":";","start_char":122,"line":3},{"index_id":63,"token_group":41,"text":"try","start_char":4,"line":5},{"index_id":64,"token_group":42,"text":"(","start_char":8,"line":5},{"index_id":65,"token_group":43,"text":"closeable","start_char":9,"line":5},{"index_id":66,"token_group":44,"text":"Http","start_char":18,"line":5},{"index_id":67,"token_group":44,"text":"Client","start_char":22,"line":5},{"index_id":68,"token_group":44,"text":"client","start_char":29,"line":5},{"index_id":69,"token_group":45,"text":"=","start_char":36,"line":5},{"index_id":70,"token_group":46,"text":"test","start_char":38,"line":5},{"index_id":71,"token_group":47,"text":"Http","start_char":42,"line":5},{"index_id":72,"token_group":47,"text":"Client","start_char":46,"line":5},{"index_id":73,"token_group":47,"text":"Utils","start_char":52,"line":5},{"index_id":74,"token_group":47,"text":".","start_char":57,"line":5},{"index_id":75,"token_group":48,"text":"promiscuous","start_char":58,"line":5},{"index_id":76,"token_group":49,"text":"Cookie","start_char":69,"line":5},{"index_id":77,"token_group":49,"text":"Http","start_char":75,"line":5},{"index_id":78,"token_group":49,"text":"Client","start_char":79,"line":5},{"index_id":79,"token_group":49,"text":"(","start_char":85,"line":5},{"index_id":80,"token_group":50,"text":")","start_char":86,"line":5},{"index_id":81,"token_group":51,"text":")","start_char":87,"line":5},{"index_id":82,"token_group":52,"text":"{","start_char":4,"line":6},{"index_id":83,"token_group":53,"text":"assert","start_char":8,"line":7},{"index_id":84,"token_group":54,"text":"Equals","start_char":14,"line":7},{"index_id":85,"token_group":54,"text":"(","start_char":20,"line":7},{"index_id":86,"token_group":55,"text":"1","start_char":21,"line":7},{"index_id":87,"token_group":56,"text":",","start_char":22,"line":7},{"index_id":88,"token_group":57,"text":"query","start_char":24,"line":7},{"index_id":89,"token_group":58,"text":"Count","start_char":29,"line":7},{"index_id":90,"token_group":58,"text":"(","start_char":34,"line":7},{"index_id":91,"token_group":59,"text":"client","start_char":35,"line":7},{"index_id":92,"token_group":60,"text":",","start_char":41,"line":7},{"index_id":93,"token_group":61,"text":"uri","start_char":43,"line":7},{"index_id":94,"token_group":62,"text":"1","start_char":46,"line":7},{"index_id":95,"token_group":62,"text":")","start_char":47,"line":7},{"index_id":96,"token_group":63,"text":")","start_char":48,"line":7},{"index_id":97,"token_group":64,"text":";","start_char":49,"line":7},{"index_id":98,"token_group":65,"text":"assert","start_char":8,"line":8},{"index_id":99,"token_group":66,"text":"Equals","start_char":14,"line":8},{"index_id":100,"token_group":66,"text":"(","start_char":20,"line":8},{"index_id":101,"token_group":67,"text":"2","start_char":21,"line":8},{"index_id":102,"token_group":68,"text":",","start_char":22,"line":8},{"index_id":103,"token_group":69,"text":"query","start_char":24,"line":8},{"index_id":104,"token_group":70,"text":"Count","start_char":29,"line":8},{"index_id":105,"token_group":70,"text":"(","start_char":34,"line":8},{"index_id":106,"token_group":71,"text":"client","start_char":35,"line":8},{"index_id":107,"token_group":72,"text":",","start_char":41,"line":8},{"index_id":108,"token_group":73,"text":"uri","start_char":43,"line":8},{"index_id":109,"token_group":74,"text":"1","start_char":46,"line":8},{"index_id":110,"token_group":74,"text":")","start_char":47,"line":8},{"index_id":111,"token_group":75,"text":")","start_char":48,"line":8},{"index_id":112,"token_group":76,"text":";","start_char":49,"line":8},{"index_id":113,"token_group":77,"text":"assert","start_char":8,"line":10},{"index_id":114,"token_group":78,"text":"Equals","start_char":14,"line":10},{"index_id":115,"token_group":78,"text":"(","start_char":20,"line":10},{"index_id":116,"token_group":79,"text":"0","start_char":21,"line":10},{"index_id":117,"token_group":80,"text":",","start_char":22,"line":10},{"index_id":118,"token_group":81,"text":"query","start_char":24,"line":10},{"index_id":119,"token_group":82,"text":"Count","start_char":29,"line":10},{"index_id":120,"token_group":82,"text":"(","start_char":34,"line":10},{"index_id":121,"token_group":83,"text":"client","start_char":35,"line":10},{"index_id":122,"token_group":84,"text":",","start_char":41,"line":10},{"index_id":123,"token_group":85,"text":"uri","start_char":43,"line":10},{"index_id":124,"token_group":86,"text":"2","start_char":46,"line":10},{"index_id":125,"token_group":86,"text":")","start_char":47,"line":10},{"index_id":126,"token_group":87,"text":")","start_char":48,"line":10},{"index_id":127,"token_group":88,"text":";","start_char":49,"line":10},{"index_id":128,"token_group":89,"text":"undeploy","start_char":8,"line":12},{"index_id":129,"token_group":90,"text":"(","start_char":16,"line":12},{"index_id":130,"token_group":91,"text":"deployment","start_char":17,"line":12},{"index_id":131,"token_group":92,"text":"2","start_char":28,"line":12},{"index_id":132,"token_group":92,"text":")","start_char":29,"line":12},{"index_id":133,"token_group":93,"text":";","start_char":30,"line":12},{"index_id":134,"token_group":94,"text":"assert","start_char":8,"line":14},{"index_id":135,"token_group":95,"text":"Equals","start_char":14,"line":14},{"index_id":136,"token_group":95,"text":"(","start_char":20,"line":14},{"index_id":137,"token_group":96,"text":"1","start_char":21,"line":14},{"index_id":138,"token_group":97,"text":",","start_char":22,"line":14},{"index_id":139,"token_group":98,"text":"query","start_char":24,"line":14},{"index_id":140,"token_group":99,"text":"Count","start_char":29,"line":14},{"index_id":141,"token_group":99,"text":"(","start_char":34,"line":14},{"index_id":142,"token_group":100,"text":"client","start_char":35,"line":14},{"index_id":143,"token_group":101,"text":",","start_char":41,"line":14},{"index_id":144,"token_group":102,"text":"uri","start_char":43,"line":14},{"index_id":145,"token_group":103,"text":"1","start_char":46,"line":14},{"index_id":146,"token_group":103,"text":")","start_char":47,"line":14},{"index_id":147,"token_group":104,"text":")","start_char":48,"line":14},{"index_id":148,"token_group":105,"text":";","start_char":49,"line":14},{"index_id":149,"token_group":106,"text":"assert","start_char":8,"line":15},{"index_id":150,"token_group":107,"text":"Equals","start_char":14,"line":15},{"index_id":151,"token_group":107,"text":"(","start_char":20,"line":15},{"index_id":152,"token_group":108,"text":"2","start_char":21,"line":15},{"index_id":153,"token_group":109,"text":",","start_char":22,"line":15},{"index_id":154,"token_group":110,"text":"query","start_char":24,"line":15},{"index_id":155,"token_group":111,"text":"Count","start_char":29,"line":15},{"index_id":156,"token_group":111,"text":"(","start_char":34,"line":15},{"index_id":157,"token_group":112,"text":"client","start_char":35,"line":15},{"index_id":158,"token_group":113,"text":",","start_char":41,"line":15},{"index_id":159,"token_group":114,"text":"uri","start_char":43,"line":15},{"index_id":160,"token_group":115,"text":"1","start_char":46,"line":15},{"index_id":161,"token_group":115,"text":")","start_char":47,"line":15},{"index_id":162,"token_group":116,"text":")","start_char":48,"line":15},{"index_id":163,"token_group":117,"text":";","start_char":49,"line":15},{"index_id":164,"token_group":118,"text":"deploy","start_char":8,"line":17},{"index_id":165,"token_group":119,"text":"(","start_char":14,"line":17},{"index_id":166,"token_group":120,"text":"deployment","start_char":15,"line":17},{"index_id":167,"token_group":121,"text":"2","start_char":26,"line":17},{"index_id":168,"token_group":121,"text":")","start_char":27,"line":17},{"index_id":169,"token_group":122,"text":";","start_char":28,"line":17},{"index_id":170,"token_group":123,"text":"assert","start_char":8,"line":19},{"index_id":171,"token_group":124,"text":"Equals","start_char":14,"line":19},{"index_id":172,"token_group":124,"text":"(","start_char":20,"line":19},{"index_id":173,"token_group":125,"text":"3","start_char":21,"line":19},{"index_id":174,"token_group":126,"text":",","start_char":22,"line":19},{"index_id":175,"token_group":127,"text":"query","start_char":24,"line":19},{"index_id":176,"token_group":128,"text":"Count","start_char":29,"line":19},{"index_id":177,"token_group":128,"text":"(","start_char":34,"line":19},{"index_id":178,"token_group":129,"text":"client","start_char":35,"line":19},{"index_id":179,"token_group":130,"text":",","start_char":41,"line":19},{"index_id":180,"token_group":131,"text":"uri","start_char":43,"line":19},{"index_id":181,"token_group":132,"text":"1","start_char":46,"line":19},{"index_id":182,"token_group":132,"text":")","start_char":47,"line":19},{"index_id":183,"token_group":133,"text":")","start_char":48,"line":19},{"index_id":184,"token_group":134,"text":";","start_char":49,"line":19},{"index_id":185,"token_group":135,"text":"assert","start_char":8,"line":20},{"index_id":186,"token_group":136,"text":"Equals","start_char":14,"line":20},{"index_id":187,"token_group":136,"text":"(","start_char":20,"line":20},{"index_id":188,"token_group":137,"text":"4","start_char":21,"line":20},{"index_id":189,"token_group":138,"text":",","start_char":22,"line":20},{"index_id":190,"token_group":139,"text":"query","start_char":24,"line":20},{"index_id":191,"token_group":140,"text":"Count","start_char":29,"line":20},{"index_id":192,"token_group":140,"text":"(","start_char":34,"line":20},{"index_id":193,"token_group":141,"text":"client","start_char":35,"line":20},{"index_id":194,"token_group":142,"text":",","start_char":41,"line":20},{"index_id":195,"token_group":143,"text":"uri","start_char":43,"line":20},{"index_id":196,"token_group":144,"text":"1","start_char":46,"line":20},{"index_id":197,"token_group":144,"text":")","start_char":47,"line":20},{"index_id":198,"token_group":145,"text":")","start_char":48,"line":20},{"index_id":199,"token_group":146,"text":";","start_char":49,"line":20},{"index_id":200,"token_group":147,"text":"assert","start_char":8,"line":22},{"index_id":201,"token_group":148,"text":"Equals","start_char":14,"line":22},{"index_id":202,"token_group":148,"text":"(","start_char":20,"line":22},{"index_id":203,"token_group":149,"text":"0","start_char":21,"line":22},{"index_id":204,"token_group":150,"text":",","start_char":22,"line":22},{"index_id":205,"token_group":151,"text":"query","start_char":24,"line":22},{"index_id":206,"token_group":152,"text":"Count","start_char":29,"line":22},{"index_id":207,"token_group":152,"text":"(","start_char":34,"line":22},{"index_id":208,"token_group":153,"text":"client","start_char":35,"line":22},{"index_id":209,"token_group":154,"text":",","start_char":41,"line":22},{"index_id":210,"token_group":155,"text":"uri","start_char":43,"line":22},{"index_id":211,"token_group":156,"text":"2","start_char":46,"line":22},{"index_id":212,"token_group":156,"text":")","start_char":47,"line":22},{"index_id":213,"token_group":157,"text":")","start_char":48,"line":22},{"index_id":214,"token_group":158,"text":";","start_char":49,"line":22},{"index_id":215,"token_group":159,"text":"undeploy","start_char":8,"line":24},{"index_id":216,"token_group":160,"text":"(","start_char":16,"line":24},{"index_id":217,"token_group":161,"text":"deployment","start_char":17,"line":24},{"index_id":218,"token_group":162,"text":"1","start_char":28,"line":24},{"index_id":219,"token_group":162,"text":")","start_char":29,"line":24},{"index_id":220,"token_group":163,"text":";","start_char":30,"line":24},{"index_id":221,"token_group":164,"text":"assert","start_char":8,"line":26},{"index_id":222,"token_group":165,"text":"Equals","start_char":14,"line":26},{"index_id":223,"token_group":165,"text":"(","start_char":20,"line":26},{"index_id":224,"token_group":166,"text":"1","start_char":21,"line":26},{"index_id":225,"token_group":167,"text":",","start_char":22,"line":26},{"index_id":226,"token_group":168,"text":"query","start_char":24,"line":26},{"index_id":227,"token_group":169,"text":"Count","start_char":29,"line":26},{"index_id":228,"token_group":169,"text":"(","start_char":34,"line":26},{"index_id":229,"token_group":170,"text":"client","start_char":35,"line":26},{"index_id":230,"token_group":171,"text":",","start_char":41,"line":26},{"index_id":231,"token_group":172,"text":"uri","start_char":43,"line":26},{"index_id":232,"token_group":173,"text":"2","start_char":46,"line":26},{"index_id":233,"token_group":173,"text":")","start_char":47,"line":26},{"index_id":234,"token_group":174,"text":")","start_char":48,"line":26},{"index_id":235,"token_group":175,"text":";","start_char":49,"line":26},{"index_id":236,"token_group":176,"text":"assert","start_char":8,"line":27},{"index_id":237,"token_group":177,"text":"Equals","start_char":14,"line":27},{"index_id":238,"token_group":177,"text":"(","start_char":20,"line":27},{"index_id":239,"token_group":178,"text":"2","start_char":21,"line":27},{"index_id":240,"token_group":179,"text":",","start_char":22,"line":27},{"index_id":241,"token_group":180,"text":"query","start_char":24,"line":27},{"index_id":242,"token_group":181,"text":"Count","start_char":29,"line":27},{"index_id":243,"token_group":181,"text":"(","start_char":34,"line":27},{"index_id":244,"token_group":182,"text":"client","start_char":35,"line":27},{"index_id":245,"token_group":183,"text":",","start_char":41,"line":27},{"index_id":246,"token_group":184,"text":"uri","start_char":43,"line":27},{"index_id":247,"token_group":185,"text":"2","start_char":46,"line":27},{"index_id":248,"token_group":185,"text":")","start_char":47,"line":27},{"index_id":249,"token_group":186,"text":")","start_char":48,"line":27},{"index_id":250,"token_group":187,"text":";","start_char":49,"line":27},{"index_id":251,"token_group":188,"text":"deploy","start_char":8,"line":29},{"index_id":252,"token_group":189,"text":"(","start_char":14,"line":29},{"index_id":253,"token_group":190,"text":"deployment","start_char":15,"line":29},{"index_id":254,"token_group":191,"text":"1","start_char":26,"line":29},{"index_id":255,"token_group":191,"text":")","start_char":27,"line":29},{"index_id":256,"token_group":192,"text":";","start_char":28,"line":29},{"index_id":257,"token_group":193,"text":"assert","start_char":8,"line":31},{"index_id":258,"token_group":194,"text":"Equals","start_char":14,"line":31},{"index_id":259,"token_group":194,"text":"(","start_char":20,"line":31},{"index_id":260,"token_group":195,"text":"0","start_char":21,"line":31},{"index_id":261,"token_group":196,"text":",","start_char":22,"line":31},{"index_id":262,"token_group":197,"text":"query","start_char":24,"line":31},{"index_id":263,"token_group":198,"text":"Count","start_char":29,"line":31},{"index_id":264,"token_group":198,"text":"(","start_char":34,"line":31},{"index_id":265,"token_group":199,"text":"client","start_char":35,"line":31},{"index_id":266,"token_group":200,"text":",","start_char":41,"line":31},{"index_id":267,"token_group":201,"text":"uri","start_char":43,"line":31},{"index_id":268,"token_group":202,"text":"1","start_char":46,"line":31},{"index_id":269,"token_group":202,"text":")","start_char":47,"line":31},{"index_id":270,"token_group":203,"text":")","start_char":48,"line":31},{"index_id":271,"token_group":204,"text":";","start_char":49,"line":31},{"index_id":272,"token_group":205,"text":"}","start_char":4,"line":32},{"index_id":273,"token_group":206,"text":"}","start_char":0,"line":33}],"tokens_list":["{","uri","uri","1","=","stateful","Servlet",".","create","Uri","(","base","Url","1",",","module","Name",",","passivation","Incapable","Incrementor","Bean",".","class",".","get","Simple","Name","(",")",")",";","uri","uri","2","=","stateful","Servlet",".","create","Uri","(","base","Url","2",",","module","Name",",","passivation","Incapable","Incrementor","Bean",".","class",".","get","Simple","Name","(",")",")",";","try","(","closeable","Http","Client","client","=","test","Http","Client","Utils",".","promiscuous","Cookie","Http","Client","(",")",")","{","assert","Equals","(","1",",","query","Count","(","client",",","uri","1",")",")",";","assert","Equals","(","2",",","query","Count","(","client",",","uri","1",")",")",";","assert","Equals","(","0",",","query","Count","(","client",",","uri","2",")",")",";","undeploy","(","deployment","2",")",";","assert","Equals","(","1",",","query","Count","(","client",",","uri","1",")",")",";","assert","Equals","(","2",",","query","Count","(","client",",","uri","1",")",")",";","deploy","(","deployment","2",")",";","assert","Equals","(","3",",","query","Count","(","client",",","uri","1",")",")",";","assert","Equals","(","4",",","query","Count","(","client",",","uri","1",")",")",";","assert","Equals","(","0",",","query","Count","(","client",",","uri","2",")",")",";","undeploy","(","deployment","1",")",";","assert","Equals","(","1",",","query","Count","(","client",",","uri","2",")",")",";","assert","Equals","(","2",",","query","Count","(","client",",","uri","2",")",")",";","deploy","(","deployment","1",")",";","assert","Equals","(","0",",","query","Count","(","client",",","uri","1",")",")",";","}","}"],"uuid":"eb812fada89423d71332de420f5bc9d7"},{"cap_original_tokens":["<SENTENCE_START>","{","this",".","<id>","plans","<\/id>","=","<id>","plans","<\/id>",";","}","<SENTENCE_END\/>"],"file_name":"Contract.java","formatted_lines":["{"," this.plans = plans;","}"],"function_name":"setPlans","function_name_tokens":["set","plans"],"id_body_hash":"e6563cc6b5e79ba806535cd53d5456d2","id_same_identifier_list":[0,1,2,3,4,5,6,7,8,9],"option_correct":"setPlans","options":["getInList","set","setVersion2SqlFlag","setA","setC","setPlans","getCustomSQLUpdateCheckStyle"],"options_nlp":["get in list","set","set version 2 sql flag","set a","set c","set plans","get custom sql update check style"],"options_random":["getInList","getCustomSQLUpdateCheckStyle","setVersion2SqlFlag"],"options_tfidf":["setA","set","setC"],"project_name":"hibernate-orm","source_code_string":"public void setPlans(Set plans) {\n\t\tthis.plans = plans;\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":"plans","start_char":9,"line":1},{"index_id":4,"token_group":4,"text":"=","start_char":15,"line":1},{"index_id":5,"token_group":5,"text":"plans","start_char":17,"line":1},{"index_id":6,"token_group":6,"text":";","start_char":22,"line":1},{"index_id":7,"token_group":7,"text":"}","start_char":0,"line":2}],"tokens_list":["{","this",".","plans","=","plans",";","}"],"uuid":"18bf22cf4b95c6dadaad35a8a6a6743d"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","","Priority","<\/id>","=","<id>","priority","<\/id>",";","}","<SENTENCE_END\/>"],"file_name":"MDRRuleGroupInstanceSoap.java","formatted_lines":["{"," _priority = priority;","}"],"function_name":"setPriority","function_name_tokens":["set","priority"],"id_body_hash":"ea43d3704ce8c5426419694462a94ab1","id_same_identifier_list":[0,1,2,2,3,4,5,6,7],"option_correct":"setPriority","options":["setA2","set","setWikiPageResourceLocalService","setPriority","_set","setShoppingItemFieldLocalService","setCounterFinder"],"options_nlp":["set a 2","set","set wiki page resource local service","set priority"," set","set shopping item field local service","set counter finder"],"options_random":["setCounterFinder","setWikiPageResourceLocalService","setShoppingItemFieldLocalService"],"options_tfidf":["_set","setA2","set"],"project_name":"liferay-portal","source_code_string":"public void setPriority(int priority) {\n\t\t_priority = priority;\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":"Priority","start_char":5,"line":1},{"index_id":3,"token_group":2,"text":"=","start_char":14,"line":1},{"index_id":4,"token_group":3,"text":"priority","start_char":16,"line":1},{"index_id":5,"token_group":4,"text":";","start_char":24,"line":1},{"index_id":6,"token_group":5,"text":"}","start_char":0,"line":2}],"tokens_list":["{","","Priority","=","priority",";","}"],"uuid":"79c8e366dca40fda0254ba9c4a6cc7bd"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","user","Id","Mapper","<\/id>","<id>","new","User","Id","Mapper","<\/id>","=","<id>","add","User","Id","Mapper","<\/id>","(",")",";","<id>","dynamic","Query","<\/id>","<id>","dynamic","Query","<\/id>","=","<id>","dynamic","Query","Factory","Util","<\/id>",".","<id>","for","Class","<\/id>","(","<id>","user","Id","Mapper","<\/id>",".","class",",","<id>","","Dynamic","Query","Class","Loader","<\/id>",")",";","<id>","dynamic","Query","<\/id>",".","<id>","set","Projection","<\/id>","(","<id>","projection","Factory","Util","<\/id>",".","<id>","property","<\/id>","(","\"userIdMapperId\"",")",")",";","<id>","object","<\/id>","<id>","new","User","Id","Mapper","Id","<\/id>","=","<id>","new","User","Id","Mapper","<\/id>",".","<id>","get","User","Id","Mapper","Id","<\/id>","(",")",";","<id>","dynamic","Query","<\/id>",".","<id>","add","<\/id>","(","<id>","restrictions","Factory","Util","<\/id>",".","<id>","in","<\/id>","(","\"userIdMapperId\"",",","new","<id>","object","<\/id>","[","]","{","<id>","new","User","Id","Mapper","Id","<\/id>","}",")",")",";","<id>","list","<\/id>","<","<id>","object","<\/id>",">","<id>","result","<\/id>","=","<id>","","Persistence","<\/id>",".","<id>","find","With","Dynamic","Query","<\/id>","(","<id>","dynamic","Query","<\/id>",")",";","<id>","assert","<\/id>",".","<id>","assert","Equals","<\/id>","(","1",",","<id>","result","<\/id>",".","<id>","size","<\/id>","(",")",")",";","<id>","object","<\/id>","<id>","existing","User","Id","Mapper","Id","<\/id>","=","<id>","result","<\/id>",".","<id>","get","<\/id>","(","0",")",";","<id>","assert","<\/id>",".","<id>","assert","Equals","<\/id>","(","<id>","existing","User","Id","Mapper","Id","<\/id>",",","<id>","new","User","Id","Mapper","Id","<\/id>",")",";","}","<SENTENCE_END\/>"],"file_name":"UserIdMapperPersistenceTest.java","formatted_lines":["{"," UserIdMapper newUserIdMapper = addUserIdMapper();",""," DynamicQuery dynamicQuery = DynamicQueryFactoryUtil.forClass(UserIdMapper.class,"," _dynamicQueryClassLoader);",""," dynamicQuery.setProjection(ProjectionFactoryUtil.property("," \"userIdMapperId\"));",""," Object newUserIdMapperId = newUserIdMapper.getUserIdMapperId();",""," dynamicQuery.add(RestrictionsFactoryUtil.in(\"userIdMapperId\","," new Object[] { newUserIdMapperId }));",""," List<Object> result = _persistence.findWithDynamicQuery(dynamicQuery);",""," Assert.assertEquals(1, result.size());",""," Object existingUserIdMapperId = result.get(0);",""," Assert.assertEquals(existingUserIdMapperId, newUserIdMapperId);","}"],"function_name":"testDynamicQueryByProjectionExisting","function_name_tokens":["test","dynamic","query","by","projection","existing"],"id_body_hash":"475d98de76d208d84d20a2c5a405f67e","id_same_identifier_list":[0,1,2,2,2,3,3,3,3,4,5,5,5,5,6,7,8,9,9,10,10,11,12,12,12,12,13,14,14,15,16,16,16,17,18,19,20,20,20,20,20,21,22,23,23,24,25,25,26,27,27,27,28,29,30,31,32,33,34,35,36,36,36,36,36,37,38,38,38,38,39,40,40,40,40,40,41,42,43,44,44,45,46,47,48,48,48,49,50,51,52,53,54,55,56,57,58,59,59,59,59,59,60,61,62,63,64,65,66,67,68,69,70,70,71,72,72,72,72,73,74,74,75,76,77,78,79,79,80,81,82,83,84,85,86,87,88,89,90,91,91,91,91,91,92,93,94,95,96,97,98,99,100,101,102,102,103,104,104,104,104,104,105,106,106,106,106,106,107,108,109,110],"option_correct":"testDynamicQueryByProjectionExisting","options":["testDynamicQueryByProjectionExisting","_toJCalendar","getDirectRequestDispatcherFactory","testQueryByG_F_C","configureTasksFormatTLD","testDynamicQueryByProjectionMissing","testDynamicQueryByPrimaryKeyExisting"],"options_nlp":["test dynamic query by projection existing"," to j calendar","get direct request dispatcher factory","test query by g f c","configure tasks format tld","test dynamic query by projection missing","test dynamic query by primary key existing"],"options_random":["getDirectRequestDispatcherFactory","_toJCalendar","configureTasksFormatTLD"],"options_tfidf":["testQueryByG_F_C","testDynamicQueryByPrimaryKeyExisting","testDynamicQueryByProjectionMissing"],"project_name":"liferay-portal","source_code_string":"@Test\n\tpublic void testDynamicQueryByProjectionExisting()\n\t\tthrows Exception {\n\t\tUserIdMapper newUserIdMapper = addUserIdMapper();\n\n\t\tDynamicQuery dynamicQuery = DynamicQueryFactoryUtil.forClass(UserIdMapper.class,\n\t\t\t\t_dynamicQueryClassLoader);\n\n\t\tdynamicQuery.setProjection(ProjectionFactoryUtil.property(\n\t\t\t\t\"userIdMapperId\"));\n\n\t\tObject newUserIdMapperId = newUserIdMapper.getUserIdMapperId();\n\n\t\tdynamicQuery.add(RestrictionsFactoryUtil.in(\"userIdMapperId\",\n\t\t\t\tnew Object[] { newUserIdMapperId }));\n\n\t\tList<Object> result = _persistence.findWithDynamicQuery(dynamicQuery);\n\n\t\tAssert.assertEquals(1, result.size());\n\n\t\tObject existingUserIdMapperId = result.get(0);\n\n\t\tAssert.assertEquals(existingUserIdMapperId, newUserIdMapperId);\n\t}","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"user","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"Id","start_char":8,"line":1},{"index_id":3,"token_group":2,"text":"Mapper","start_char":10,"line":1},{"index_id":4,"token_group":2,"text":"new","start_char":17,"line":1},{"index_id":5,"token_group":3,"text":"User","start_char":20,"line":1},{"index_id":6,"token_group":3,"text":"Id","start_char":24,"line":1},{"index_id":7,"token_group":3,"text":"Mapper","start_char":26,"line":1},{"index_id":8,"token_group":3,"text":"=","start_char":33,"line":1},{"index_id":9,"token_group":4,"text":"add","start_char":35,"line":1},{"index_id":10,"token_group":5,"text":"User","start_char":38,"line":1},{"index_id":11,"token_group":5,"text":"Id","start_char":42,"line":1},{"index_id":12,"token_group":5,"text":"Mapper","start_char":44,"line":1},{"index_id":13,"token_group":5,"text":"(","start_char":50,"line":1},{"index_id":14,"token_group":6,"text":")","start_char":51,"line":1},{"index_id":15,"token_group":7,"text":";","start_char":52,"line":1},{"index_id":16,"token_group":8,"text":"dynamic","start_char":4,"line":3},{"index_id":17,"token_group":9,"text":"Query","start_char":11,"line":3},{"index_id":18,"token_group":9,"text":"dynamic","start_char":17,"line":3},{"index_id":19,"token_group":10,"text":"Query","start_char":24,"line":3},{"index_id":20,"token_group":10,"text":"=","start_char":30,"line":3},{"index_id":21,"token_group":11,"text":"dynamic","start_char":32,"line":3},{"index_id":22,"token_group":12,"text":"Query","start_char":39,"line":3},{"index_id":23,"token_group":12,"text":"Factory","start_char":44,"line":3},{"index_id":24,"token_group":12,"text":"Util","start_char":51,"line":3},{"index_id":25,"token_group":12,"text":".","start_char":55,"line":3},{"index_id":26,"token_group":13,"text":"for","start_char":56,"line":3},{"index_id":27,"token_group":14,"text":"Class","start_char":59,"line":3},{"index_id":28,"token_group":14,"text":"(","start_char":64,"line":3},{"index_id":29,"token_group":15,"text":"user","start_char":65,"line":3},{"index_id":30,"token_group":16,"text":"Id","start_char":69,"line":3},{"index_id":31,"token_group":16,"text":"Mapper","start_char":71,"line":3},{"index_id":32,"token_group":16,"text":".","start_char":77,"line":3},{"index_id":33,"token_group":17,"text":"class","start_char":78,"line":3},{"index_id":34,"token_group":18,"text":",","start_char":83,"line":3},{"index_id":35,"token_group":19,"text":"","start_char":84,"line":3},{"index_id":36,"token_group":20,"text":"Dynamic","start_char":13,"line":4},{"index_id":37,"token_group":20,"text":"Query","start_char":20,"line":4},{"index_id":38,"token_group":20,"text":"Class","start_char":25,"line":4},{"index_id":39,"token_group":20,"text":"Loader","start_char":30,"line":4},{"index_id":40,"token_group":20,"text":")","start_char":36,"line":4},{"index_id":41,"token_group":21,"text":";","start_char":37,"line":4},{"index_id":42,"token_group":22,"text":"dynamic","start_char":4,"line":6},{"index_id":43,"token_group":23,"text":"Query","start_char":11,"line":6},{"index_id":44,"token_group":23,"text":".","start_char":16,"line":6},{"index_id":45,"token_group":24,"text":"set","start_char":17,"line":6},{"index_id":46,"token_group":25,"text":"Projection","start_char":20,"line":6},{"index_id":47,"token_group":25,"text":"(","start_char":30,"line":6},{"index_id":48,"token_group":26,"text":"projection","start_char":31,"line":6},{"index_id":49,"token_group":27,"text":"Factory","start_char":41,"line":6},{"index_id":50,"token_group":27,"text":"Util","start_char":48,"line":6},{"index_id":51,"token_group":27,"text":".","start_char":52,"line":6},{"index_id":52,"token_group":28,"text":"property","start_char":53,"line":6},{"index_id":53,"token_group":29,"text":"(","start_char":61,"line":6},{"index_id":54,"token_group":30,"text":"\"userIdMapperId\"","start_char":35,"line":7},{"index_id":55,"token_group":31,"text":")","start_char":51,"line":7},{"index_id":56,"token_group":32,"text":")","start_char":52,"line":7},{"index_id":57,"token_group":33,"text":";","start_char":53,"line":7},{"index_id":58,"token_group":34,"text":"object","start_char":4,"line":9},{"index_id":59,"token_group":35,"text":"new","start_char":11,"line":9},{"index_id":60,"token_group":36,"text":"User","start_char":14,"line":9},{"index_id":61,"token_group":36,"text":"Id","start_char":18,"line":9},{"index_id":62,"token_group":36,"text":"Mapper","start_char":20,"line":9},{"index_id":63,"token_group":36,"text":"Id","start_char":26,"line":9},{"index_id":64,"token_group":36,"text":"=","start_char":29,"line":9},{"index_id":65,"token_group":37,"text":"new","start_char":31,"line":9},{"index_id":66,"token_group":38,"text":"User","start_char":34,"line":9},{"index_id":67,"token_group":38,"text":"Id","start_char":38,"line":9},{"index_id":68,"token_group":38,"text":"Mapper","start_char":40,"line":9},{"index_id":69,"token_group":38,"text":".","start_char":46,"line":9},{"index_id":70,"token_group":39,"text":"get","start_char":47,"line":9},{"index_id":71,"token_group":40,"text":"User","start_char":50,"line":9},{"index_id":72,"token_group":40,"text":"Id","start_char":54,"line":9},{"index_id":73,"token_group":40,"text":"Mapper","start_char":56,"line":9},{"index_id":74,"token_group":40,"text":"Id","start_char":62,"line":9},{"index_id":75,"token_group":40,"text":"(","start_char":64,"line":9},{"index_id":76,"token_group":41,"text":")","start_char":65,"line":9},{"index_id":77,"token_group":42,"text":";","start_char":66,"line":9},{"index_id":78,"token_group":43,"text":"dynamic","start_char":4,"line":11},{"index_id":79,"token_group":44,"text":"Query","start_char":11,"line":11},{"index_id":80,"token_group":44,"text":".","start_char":16,"line":11},{"index_id":81,"token_group":45,"text":"add","start_char":17,"line":11},{"index_id":82,"token_group":46,"text":"(","start_char":20,"line":11},{"index_id":83,"token_group":47,"text":"restrictions","start_char":21,"line":11},{"index_id":84,"token_group":48,"text":"Factory","start_char":33,"line":11},{"index_id":85,"token_group":48,"text":"Util","start_char":40,"line":11},{"index_id":86,"token_group":48,"text":".","start_char":44,"line":11},{"index_id":87,"token_group":49,"text":"in","start_char":45,"line":11},{"index_id":88,"token_group":50,"text":"(","start_char":47,"line":11},{"index_id":89,"token_group":51,"text":"\"userIdMapperId\"","start_char":48,"line":11},{"index_id":90,"token_group":52,"text":",","start_char":64,"line":11},{"index_id":91,"token_group":53,"text":"new","start_char":4,"line":12},{"index_id":92,"token_group":54,"text":"object","start_char":8,"line":12},{"index_id":93,"token_group":55,"text":"[","start_char":14,"line":12},{"index_id":94,"token_group":56,"text":"]","start_char":15,"line":12},{"index_id":95,"token_group":57,"text":"{","start_char":17,"line":12},{"index_id":96,"token_group":58,"text":"new","start_char":19,"line":12},{"index_id":97,"token_group":59,"text":"User","start_char":22,"line":12},{"index_id":98,"token_group":59,"text":"Id","start_char":26,"line":12},{"index_id":99,"token_group":59,"text":"Mapper","start_char":28,"line":12},{"index_id":100,"token_group":59,"text":"Id","start_char":34,"line":12},{"index_id":101,"token_group":59,"text":"}","start_char":37,"line":12},{"index_id":102,"token_group":60,"text":")","start_char":38,"line":12},{"index_id":103,"token_group":61,"text":")","start_char":39,"line":12},{"index_id":104,"token_group":62,"text":";","start_char":40,"line":12},{"index_id":105,"token_group":63,"text":"list","start_char":4,"line":14},{"index_id":106,"token_group":64,"text":"<","start_char":8,"line":14},{"index_id":107,"token_group":65,"text":"object","start_char":9,"line":14},{"index_id":108,"token_group":66,"text":">","start_char":15,"line":14},{"index_id":109,"token_group":67,"text":"result","start_char":17,"line":14},{"index_id":110,"token_group":68,"text":"=","start_char":24,"line":14},{"index_id":111,"token_group":69,"text":"","start_char":25,"line":14},{"index_id":112,"token_group":70,"text":"Persistence","start_char":27,"line":14},{"index_id":113,"token_group":70,"text":".","start_char":38,"line":14},{"index_id":114,"token_group":71,"text":"find","start_char":39,"line":14},{"index_id":115,"token_group":72,"text":"With","start_char":43,"line":14},{"index_id":116,"token_group":72,"text":"Dynamic","start_char":47,"line":14},{"index_id":117,"token_group":72,"text":"Query","start_char":54,"line":14},{"index_id":118,"token_group":72,"text":"(","start_char":59,"line":14},{"index_id":119,"token_group":73,"text":"dynamic","start_char":60,"line":14},{"index_id":120,"token_group":74,"text":"Query","start_char":67,"line":14},{"index_id":121,"token_group":74,"text":")","start_char":72,"line":14},{"index_id":122,"token_group":75,"text":";","start_char":73,"line":14},{"index_id":123,"token_group":76,"text":"assert","start_char":4,"line":16},{"index_id":124,"token_group":77,"text":".","start_char":10,"line":16},{"index_id":125,"token_group":78,"text":"assert","start_char":11,"line":16},{"index_id":126,"token_group":79,"text":"Equals","start_char":17,"line":16},{"index_id":127,"token_group":79,"text":"(","start_char":23,"line":16},{"index_id":128,"token_group":80,"text":"1","start_char":24,"line":16},{"index_id":129,"token_group":81,"text":",","start_char":25,"line":16},{"index_id":130,"token_group":82,"text":"result","start_char":27,"line":16},{"index_id":131,"token_group":83,"text":".","start_char":33,"line":16},{"index_id":132,"token_group":84,"text":"size","start_char":34,"line":16},{"index_id":133,"token_group":85,"text":"(","start_char":38,"line":16},{"index_id":134,"token_group":86,"text":")","start_char":39,"line":16},{"index_id":135,"token_group":87,"text":")","start_char":40,"line":16},{"index_id":136,"token_group":88,"text":";","start_char":41,"line":16},{"index_id":137,"token_group":89,"text":"object","start_char":4,"line":18},{"index_id":138,"token_group":90,"text":"existing","start_char":11,"line":18},{"index_id":139,"token_group":91,"text":"User","start_char":19,"line":18},{"index_id":140,"token_group":91,"text":"Id","start_char":23,"line":18},{"index_id":141,"token_group":91,"text":"Mapper","start_char":25,"line":18},{"index_id":142,"token_group":91,"text":"Id","start_char":31,"line":18},{"index_id":143,"token_group":91,"text":"=","start_char":34,"line":18},{"index_id":144,"token_group":92,"text":"result","start_char":36,"line":18},{"index_id":145,"token_group":93,"text":".","start_char":42,"line":18},{"index_id":146,"token_group":94,"text":"get","start_char":43,"line":18},{"index_id":147,"token_group":95,"text":"(","start_char":46,"line":18},{"index_id":148,"token_group":96,"text":"0","start_char":47,"line":18},{"index_id":149,"token_group":97,"text":")","start_char":48,"line":18},{"index_id":150,"token_group":98,"text":";","start_char":49,"line":18},{"index_id":151,"token_group":99,"text":"assert","start_char":4,"line":20},{"index_id":152,"token_group":100,"text":".","start_char":10,"line":20},{"index_id":153,"token_group":101,"text":"assert","start_char":11,"line":20},{"index_id":154,"token_group":102,"text":"Equals","start_char":17,"line":20},{"index_id":155,"token_group":102,"text":"(","start_char":23,"line":20},{"index_id":156,"token_group":103,"text":"existing","start_char":24,"line":20},{"index_id":157,"token_group":104,"text":"User","start_char":32,"line":20},{"index_id":158,"token_group":104,"text":"Id","start_char":36,"line":20},{"index_id":159,"token_group":104,"text":"Mapper","start_char":38,"line":20},{"index_id":160,"token_group":104,"text":"Id","start_char":44,"line":20},{"index_id":161,"token_group":104,"text":",","start_char":46,"line":20},{"index_id":162,"token_group":105,"text":"new","start_char":48,"line":20},{"index_id":163,"token_group":106,"text":"User","start_char":51,"line":20},{"index_id":164,"token_group":106,"text":"Id","start_char":55,"line":20},{"index_id":165,"token_group":106,"text":"Mapper","start_char":57,"line":20},{"index_id":166,"token_group":106,"text":"Id","start_char":63,"line":20},{"index_id":167,"token_group":106,"text":")","start_char":65,"line":20},{"index_id":168,"token_group":107,"text":";","start_char":66,"line":20},{"index_id":169,"token_group":108,"text":"}","start_char":0,"line":21}],"tokens_list":["{","user","Id","Mapper","new","User","Id","Mapper","=","add","User","Id","Mapper","(",")",";","dynamic","Query","dynamic","Query","=","dynamic","Query","Factory","Util",".","for","Class","(","user","Id","Mapper",".","class",",","","Dynamic","Query","Class","Loader",")",";","dynamic","Query",".","set","Projection","(","projection","Factory","Util",".","property","(","\"userIdMapperId\"",")",")",";","object","new","User","Id","Mapper","Id","=","new","User","Id","Mapper",".","get","User","Id","Mapper","Id","(",")",";","dynamic","Query",".","add","(","restrictions","Factory","Util",".","in","(","\"userIdMapperId\"",",","new","object","[","]","{","new","User","Id","Mapper","Id","}",")",")",";","list","<","object",">","result","=","","Persistence",".","find","With","Dynamic","Query","(","dynamic","Query",")",";","assert",".","assert","Equals","(","1",",","result",".","size","(",")",")",";","object","existing","User","Id","Mapper","Id","=","result",".","get","(","0",")",";","assert",".","assert","Equals","(","existing","User","Id","Mapper","Id",",","new","User","Id","Mapper","Id",")",";","}"],"uuid":"207341ae07bf148b42957c00513d2566"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","search","Context","<\/id>","<id>","search","Context","<\/id>","=","<id>","get","Search","Context","<\/id>","(",")",";","<id>","search","Context","<\/id>",".","<id>","set","Keywords","<\/id>","(","\"+title:test*.jpg +userName:bar*\"",")",";","<id>","boolean","Query","<\/id>","<id>","search","Query","<\/id>","=","<id>","repository","Search","Query","Builder","Util","<\/id>",".","<id>","get","Full","Query","<\/id>","(","<id>","search","Context","<\/id>",")",";","<id>","string","<\/id>","<id>","cmis","Query","<\/id>","=","<id>","","Cmis","Search","Query","Builder","<\/id>",".","<id>","build","Query","<\/id>","(","<id>","search","Context","<\/id>",",","<id>","search","Query","<\/id>",")",";","<id>","assert","Query","Equals","<\/id>","(","\"(cmis:name LIKE 'test%.jpg' AND cmis:createdBy LIKE 'bar%')\"",",","<id>","cmis","Query","<\/id>",")",";","}","<SENTENCE_END\/>"],"file_name":"CMISQueryBuilderTest.java","formatted_lines":["{"," SearchContext searchContext = getSearchContext();",""," searchContext.setKeywords(\"+title:test*.jpg +userName:bar*\");",""," BooleanQuery searchQuery ="," RepositorySearchQueryBuilderUtil.getFullQuery(searchContext);",""," String cmisQuery = _cmisSearchQueryBuilder.buildQuery("," searchContext, searchQuery);",""," assertQueryEquals("," \"(cmis:name LIKE 'test%.jpg' AND cmis:createdBy LIKE 'bar%')\","," cmisQuery);","}"],"function_name":"testWildcardFieldQuery","function_name_tokens":["test","wildcard","field","query"],"id_body_hash":"b411df9ca68f7e406584bbe3b0c5a417","id_same_identifier_list":[0,1,2,2,3,3,4,5,5,5,6,7,8,9,9,10,11,11,12,13,14,15,16,16,17,17,18,19,19,19,19,19,20,21,21,21,22,23,23,24,25,26,27,27,28,29,29,29,29,29,30,31,31,32,33,33,34,35,35,36,37,38,38,38,39,40,41,42,42,43,44,45,46],"option_correct":"testWildcardFieldQuery","options":["testContainsCombinedSupportedWildcardQuery","testWildcardFieldQuery","exportExpandoTables","addKaleoNode","testQueryByG_F_C","testWildcardQuery","getColumnPos"],"options_nlp":["test contains combined supported wildcard query","test wildcard field query","export expando tables","add kaleo node","test query by g f c","test wildcard query","get column pos"],"options_random":["exportExpandoTables","addKaleoNode","getColumnPos"],"options_tfidf":["testContainsCombinedSupportedWildcardQuery","testQueryByG_F_C","testWildcardQuery"],"project_name":"liferay-portal","source_code_string":"@Test\n\tpublic void testWildcardFieldQuery() throws Exception {\n\t\tSearchContext searchContext = getSearchContext();\n\n\t\tsearchContext.setKeywords(\"+title:test*.jpg +userName:bar*\");\n\n\t\tBooleanQuery searchQuery =\n\t\t\tRepositorySearchQueryBuilderUtil.getFullQuery(searchContext);\n\n\t\tString cmisQuery = _cmisSearchQueryBuilder.buildQuery(\n\t\t\tsearchContext, searchQuery);\n\n\t\tassertQueryEquals(\n\t\t\t\"(cmis:name LIKE 'test%.jpg' AND cmis:createdBy LIKE 'bar%')\",\n\t\t\tcmisQuery);\n\t}","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"search","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"Context","start_char":10,"line":1},{"index_id":3,"token_group":2,"text":"search","start_char":18,"line":1},{"index_id":4,"token_group":3,"text":"Context","start_char":24,"line":1},{"index_id":5,"token_group":3,"text":"=","start_char":32,"line":1},{"index_id":6,"token_group":4,"text":"get","start_char":34,"line":1},{"index_id":7,"token_group":5,"text":"Search","start_char":37,"line":1},{"index_id":8,"token_group":5,"text":"Context","start_char":43,"line":1},{"index_id":9,"token_group":5,"text":"(","start_char":50,"line":1},{"index_id":10,"token_group":6,"text":")","start_char":51,"line":1},{"index_id":11,"token_group":7,"text":";","start_char":52,"line":1},{"index_id":12,"token_group":8,"text":"search","start_char":4,"line":3},{"index_id":13,"token_group":9,"text":"Context","start_char":10,"line":3},{"index_id":14,"token_group":9,"text":".","start_char":17,"line":3},{"index_id":15,"token_group":10,"text":"set","start_char":18,"line":3},{"index_id":16,"token_group":11,"text":"Keywords","start_char":21,"line":3},{"index_id":17,"token_group":11,"text":"(","start_char":29,"line":3},{"index_id":18,"token_group":12,"text":"\"+title:test*.jpg +userName:bar*\"","start_char":30,"line":3},{"index_id":19,"token_group":13,"text":")","start_char":63,"line":3},{"index_id":20,"token_group":14,"text":";","start_char":64,"line":3},{"index_id":21,"token_group":15,"text":"boolean","start_char":4,"line":5},{"index_id":22,"token_group":16,"text":"Query","start_char":11,"line":5},{"index_id":23,"token_group":16,"text":"search","start_char":17,"line":5},{"index_id":24,"token_group":17,"text":"Query","start_char":23,"line":5},{"index_id":25,"token_group":17,"text":"=","start_char":29,"line":5},{"index_id":26,"token_group":18,"text":"repository","start_char":4,"line":6},{"index_id":27,"token_group":19,"text":"Search","start_char":14,"line":6},{"index_id":28,"token_group":19,"text":"Query","start_char":20,"line":6},{"index_id":29,"token_group":19,"text":"Builder","start_char":25,"line":6},{"index_id":30,"token_group":19,"text":"Util","start_char":32,"line":6},{"index_id":31,"token_group":19,"text":".","start_char":36,"line":6},{"index_id":32,"token_group":20,"text":"get","start_char":37,"line":6},{"index_id":33,"token_group":21,"text":"Full","start_char":40,"line":6},{"index_id":34,"token_group":21,"text":"Query","start_char":44,"line":6},{"index_id":35,"token_group":21,"text":"(","start_char":49,"line":6},{"index_id":36,"token_group":22,"text":"search","start_char":50,"line":6},{"index_id":37,"token_group":23,"text":"Context","start_char":56,"line":6},{"index_id":38,"token_group":23,"text":")","start_char":63,"line":6},{"index_id":39,"token_group":24,"text":";","start_char":64,"line":6},{"index_id":40,"token_group":25,"text":"string","start_char":4,"line":8},{"index_id":41,"token_group":26,"text":"cmis","start_char":11,"line":8},{"index_id":42,"token_group":27,"text":"Query","start_char":15,"line":8},{"index_id":43,"token_group":27,"text":"=","start_char":21,"line":8},{"index_id":44,"token_group":28,"text":"","start_char":22,"line":8},{"index_id":45,"token_group":29,"text":"Cmis","start_char":24,"line":8},{"index_id":46,"token_group":29,"text":"Search","start_char":28,"line":8},{"index_id":47,"token_group":29,"text":"Query","start_char":34,"line":8},{"index_id":48,"token_group":29,"text":"Builder","start_char":39,"line":8},{"index_id":49,"token_group":29,"text":".","start_char":46,"line":8},{"index_id":50,"token_group":30,"text":"build","start_char":47,"line":8},{"index_id":51,"token_group":31,"text":"Query","start_char":52,"line":8},{"index_id":52,"token_group":31,"text":"(","start_char":57,"line":8},{"index_id":53,"token_group":32,"text":"search","start_char":8,"line":9},{"index_id":54,"token_group":33,"text":"Context","start_char":14,"line":9},{"index_id":55,"token_group":33,"text":",","start_char":21,"line":9},{"index_id":56,"token_group":34,"text":"search","start_char":23,"line":9},{"index_id":57,"token_group":35,"text":"Query","start_char":29,"line":9},{"index_id":58,"token_group":35,"text":")","start_char":34,"line":9},{"index_id":59,"token_group":36,"text":";","start_char":35,"line":9},{"index_id":60,"token_group":37,"text":"assert","start_char":4,"line":11},{"index_id":61,"token_group":38,"text":"Query","start_char":10,"line":11},{"index_id":62,"token_group":38,"text":"Equals","start_char":15,"line":11},{"index_id":63,"token_group":38,"text":"(","start_char":21,"line":11},{"index_id":64,"token_group":39,"text":"\"(cmis:name LIKE 'test%.jpg' AND cmis:createdBy LIKE 'bar%')\"","start_char":8,"line":12},{"index_id":65,"token_group":40,"text":",","start_char":69,"line":12},{"index_id":66,"token_group":41,"text":"cmis","start_char":8,"line":13},{"index_id":67,"token_group":42,"text":"Query","start_char":12,"line":13},{"index_id":68,"token_group":42,"text":")","start_char":17,"line":13},{"index_id":69,"token_group":43,"text":";","start_char":18,"line":13},{"index_id":70,"token_group":44,"text":"}","start_char":0,"line":14}],"tokens_list":["{","search","Context","search","Context","=","get","Search","Context","(",")",";","search","Context",".","set","Keywords","(","\"+title:test*.jpg +userName:bar*\"",")",";","boolean","Query","search","Query","=","repository","Search","Query","Builder","Util",".","get","Full","Query","(","search","Context",")",";","string","cmis","Query","=","","Cmis","Search","Query","Builder",".","build","Query","(","search","Context",",","search","Query",")",";","assert","Query","Equals","(","\"(cmis:name LIKE 'test%.jpg' AND cmis:createdBy LIKE 'bar%')\"",",","cmis","Query",")",";","}"],"uuid":"b1110fde8c9993bac871ad5439f5680f"},{"cap_original_tokens":["<SENTENCE_START>","{","return","<id>","mapped","By","Property","<\/id>",";","}","<SENTENCE_END\/>"],"file_name":"Collection.java","formatted_lines":["{"," return mappedByProperty;","}"],"function_name":"getMappedByProperty","function_name_tokens":["get","mapped","by","property"],"id_body_hash":"4877a2970b99720be3c1011dad1549d4","id_same_identifier_list":[0,1,2,3,3,3,4,5,6],"option_correct":"getMappedByProperty","options":["indexOf","getXmlMappedType","testOgcStrictMockFinder","getProperty","getMappedByProperty","findPropertyByName","getKey"],"options_nlp":["index of","get xml mapped type","test ogc strict mock finder","get property","get mapped by property","find property by name","get key"],"options_random":["indexOf","testOgcStrictMockFinder","getKey"],"options_tfidf":["findPropertyByName","getProperty","getXmlMappedType"],"project_name":"hibernate-orm","source_code_string":"public String getMappedByProperty() {\n\t\treturn mappedByProperty;\n\t}","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"return","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"mapped","start_char":11,"line":1},{"index_id":3,"token_group":3,"text":"By","start_char":17,"line":1},{"index_id":4,"token_group":3,"text":"Property","start_char":19,"line":1},{"index_id":5,"token_group":3,"text":";","start_char":27,"line":1},{"index_id":6,"token_group":4,"text":"}","start_char":0,"line":2}],"tokens_list":["{","return","mapped","By","Property",";","}"],"uuid":"4b85854ad2cb14aa2d469f3d5c4338c3"},{"cap_original_tokens":["<SENTENCE_START>","{","return","this",".","<id>","attempt","<\/id>",";","}","<SENTENCE_END\/>"],"file_name":"AMAttemptsInfo.java","formatted_lines":["{"," return this.attempt;","}"],"function_name":"getAttempts","function_name_tokens":["get","attempts"],"id_body_hash":"382829948a8b213ba245fd892364312b","id_same_identifier_list":[0,1,2,3,4,5,6,7,8],"option_correct":"getAttempts","options":["getMaxAppAttempts","testDecommissionWithExcludeHosts","getTaskAttempts","testValidateEmptyEditLog","testValueIteratorWithCompression","getAttempts","testGetApplicationAttempts"],"options_nlp":["get max app attempts","test decommission with exclude hosts","get task attempts","test validate empty edit log","test value iterator with compression","get attempts","test get application attempts"],"options_random":["testDecommissionWithExcludeHosts","testValidateEmptyEditLog","testValueIteratorWithCompression"],"options_tfidf":["testGetApplicationAttempts","getTaskAttempts","getMaxAppAttempts"],"project_name":"hadoop-common","source_code_string":"public ArrayList<AMAttemptInfo> getAttempts() {\n return this.attempt;\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"return","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"this","start_char":11,"line":1},{"index_id":3,"token_group":3,"text":".","start_char":15,"line":1},{"index_id":4,"token_group":4,"text":"attempt","start_char":16,"line":1},{"index_id":5,"token_group":5,"text":";","start_char":23,"line":1},{"index_id":6,"token_group":6,"text":"}","start_char":0,"line":2}],"tokens_list":["{","return","this",".","attempt",";","}"],"uuid":"3bbb9aa6208eebadf32e7da5a4085faa"},{"cap_original_tokens":["<SENTENCE_START>","{","return","<id>","","Last","Modified","Time","<\/id>",";","}","<SENTENCE_END\/>"],"file_name":"FileRequest.java","formatted_lines":["{"," return _lastModifiedTime;","}"],"function_name":"getLastModifiedTime","function_name_tokens":["get","last","modified","time"],"id_body_hash":"82fafa1d24dc7f25e94984f5fadd4989","id_same_identifier_list":[0,1,2,3,3,3,3,4,5,6],"option_correct":"getLastModifiedTime","options":["getLastModifiedTime","_filterAssetTagNamesAssetEntries","getContentAndLastModifiedTime","_getLastModified","getImportedLayoutPrototype","exportFolderDDMStructures","getLastTime"],"options_nlp":["get last modified time"," filter asset tag names asset entries","get content and last modified time"," get last modified","get imported layout prototype","export folder ddm structures","get last time"],"options_random":["_filterAssetTagNamesAssetEntries","exportFolderDDMStructures","getImportedLayoutPrototype"],"options_tfidf":["getLastTime","_getLastModified","getContentAndLastModifiedTime"],"project_name":"liferay-portal","source_code_string":"public long getLastModifiedTime() {\n\t\treturn _lastModifiedTime;\n\t}","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"return","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"","start_char":10,"line":1},{"index_id":3,"token_group":3,"text":"Last","start_char":12,"line":1},{"index_id":4,"token_group":3,"text":"Modified","start_char":16,"line":1},{"index_id":5,"token_group":3,"text":"Time","start_char":24,"line":1},{"index_id":6,"token_group":3,"text":";","start_char":28,"line":1},{"index_id":7,"token_group":4,"text":"}","start_char":0,"line":2}],"tokens_list":["{","return","","Last","Modified","Time",";","}"],"uuid":"b5b77d40207a658f5b1f9ee17fa4487f"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","assert","<\/id>","<id>","file","<\/id>",".","<id>","get","Parent","File","<\/id>","(",")","!=","null",";","<id>","my","File","To","Entry","Map","<\/id>",".","<id>","put","<\/id>","(","<id>","file","<\/id>",",","<id>","entry","<\/id>",".","<id>","create","Entry","For","Line","<\/id>","(","\"\/\"","+","<id>","file","<\/id>",".","<id>","get","Name","<\/id>","(",")","+","\"\/\"","+","<id>","my","Revision","<\/id>","+","\"\/\"","+","<id>","entry","<\/id>",".","<id>","get","Last","Modified","Date","Formatter","<\/id>","(",")",".","<id>","format","<\/id>","(","new","<id>","date","<\/id>","(",")",")","+","\"\/\/\"",")",")",";","}","<SENTENCE_END\/>"],"file_name":"LocalPathIndifferentOperationHelper.java","formatted_lines":["{"," assert file.getParentFile() != null;"," myFileToEntryMap.put(file,"," Entry.createEntryForLine(\"\/\" + file.getName() + \"\/\" + myRevision + \"\/\""," + Entry.getLastModifiedDateFormatter().format(new Date()) + \"\/\/\"));","}"],"function_name":"addFile","function_name_tokens":["add","file"],"id_body_hash":"78361bb714262c94611ac349f925f90f","id_same_identifier_list":[0,1,2,3,4,5,5,5,6,7,8,9,10,11,11,11,11,11,12,13,14,15,16,17,18,19,19,19,19,20,21,22,23,24,25,25,26,27,28,29,30,31,31,32,33,34,35,36,37,37,37,37,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54],"option_correct":"addFile","options":["addFileMessage","addFile","isDumbMode","addFileNode","getTableEditor","isInputMethodEnabled","addFileFilter"],"options_nlp":["add file message","add file","is dumb mode","add file node","get table editor","is input method enabled","add file filter"],"options_random":["isDumbMode","isInputMethodEnabled","getTableEditor"],"options_tfidf":["addFileMessage","addFileNode","addFileFilter"],"project_name":"intellij-community","source_code_string":"public void addFile(File file) {\n assert file.getParentFile() != null;\n myFileToEntryMap.put(file, Entry.createEntryForLine(\"\/\" + file.getName() + \"\/\" + myRevision + \"\/\"\n + Entry.getLastModifiedDateFormatter().format(new Date()) + \"\/\/\"));\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"assert","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"file","start_char":11,"line":1},{"index_id":3,"token_group":3,"text":".","start_char":15,"line":1},{"index_id":4,"token_group":4,"text":"get","start_char":16,"line":1},{"index_id":5,"token_group":5,"text":"Parent","start_char":19,"line":1},{"index_id":6,"token_group":5,"text":"File","start_char":25,"line":1},{"index_id":7,"token_group":5,"text":"(","start_char":29,"line":1},{"index_id":8,"token_group":6,"text":")","start_char":30,"line":1},{"index_id":9,"token_group":7,"text":"!=","start_char":32,"line":1},{"index_id":10,"token_group":8,"text":"null","start_char":35,"line":1},{"index_id":11,"token_group":9,"text":";","start_char":39,"line":1},{"index_id":12,"token_group":10,"text":"my","start_char":4,"line":2},{"index_id":13,"token_group":11,"text":"File","start_char":6,"line":2},{"index_id":14,"token_group":11,"text":"To","start_char":10,"line":2},{"index_id":15,"token_group":11,"text":"Entry","start_char":12,"line":2},{"index_id":16,"token_group":11,"text":"Map","start_char":17,"line":2},{"index_id":17,"token_group":11,"text":".","start_char":20,"line":2},{"index_id":18,"token_group":12,"text":"put","start_char":21,"line":2},{"index_id":19,"token_group":13,"text":"(","start_char":24,"line":2},{"index_id":20,"token_group":14,"text":"file","start_char":25,"line":2},{"index_id":21,"token_group":15,"text":",","start_char":29,"line":2},{"index_id":22,"token_group":16,"text":"entry","start_char":25,"line":3},{"index_id":23,"token_group":17,"text":".","start_char":30,"line":3},{"index_id":24,"token_group":18,"text":"create","start_char":31,"line":3},{"index_id":25,"token_group":19,"text":"Entry","start_char":37,"line":3},{"index_id":26,"token_group":19,"text":"For","start_char":42,"line":3},{"index_id":27,"token_group":19,"text":"Line","start_char":45,"line":3},{"index_id":28,"token_group":19,"text":"(","start_char":49,"line":3},{"index_id":29,"token_group":20,"text":"\"\/\"","start_char":50,"line":3},{"index_id":30,"token_group":21,"text":"+","start_char":54,"line":3},{"index_id":31,"token_group":22,"text":"file","start_char":56,"line":3},{"index_id":32,"token_group":23,"text":".","start_char":60,"line":3},{"index_id":33,"token_group":24,"text":"get","start_char":61,"line":3},{"index_id":34,"token_group":25,"text":"Name","start_char":64,"line":3},{"index_id":35,"token_group":25,"text":"(","start_char":68,"line":3},{"index_id":36,"token_group":26,"text":")","start_char":69,"line":3},{"index_id":37,"token_group":27,"text":"+","start_char":71,"line":3},{"index_id":38,"token_group":28,"text":"\"\/\"","start_char":73,"line":3},{"index_id":39,"token_group":29,"text":"+","start_char":77,"line":3},{"index_id":40,"token_group":30,"text":"my","start_char":79,"line":3},{"index_id":41,"token_group":31,"text":"Revision","start_char":81,"line":3},{"index_id":42,"token_group":31,"text":"+","start_char":90,"line":3},{"index_id":43,"token_group":32,"text":"\"\/\"","start_char":92,"line":3},{"index_id":44,"token_group":33,"text":"+","start_char":33,"line":4},{"index_id":45,"token_group":34,"text":"entry","start_char":35,"line":4},{"index_id":46,"token_group":35,"text":".","start_char":40,"line":4},{"index_id":47,"token_group":36,"text":"get","start_char":41,"line":4},{"index_id":48,"token_group":37,"text":"Last","start_char":44,"line":4},{"index_id":49,"token_group":37,"text":"Modified","start_char":48,"line":4},{"index_id":50,"token_group":37,"text":"Date","start_char":56,"line":4},{"index_id":51,"token_group":37,"text":"Formatter","start_char":60,"line":4},{"index_id":52,"token_group":37,"text":"(","start_char":69,"line":4},{"index_id":53,"token_group":38,"text":")","start_char":70,"line":4},{"index_id":54,"token_group":39,"text":".","start_char":71,"line":4},{"index_id":55,"token_group":40,"text":"format","start_char":72,"line":4},{"index_id":56,"token_group":41,"text":"(","start_char":78,"line":4},{"index_id":57,"token_group":42,"text":"new","start_char":79,"line":4},{"index_id":58,"token_group":43,"text":"date","start_char":83,"line":4},{"index_id":59,"token_group":44,"text":"(","start_char":87,"line":4},{"index_id":60,"token_group":45,"text":")","start_char":88,"line":4},{"index_id":61,"token_group":46,"text":")","start_char":89,"line":4},{"index_id":62,"token_group":47,"text":"+","start_char":91,"line":4},{"index_id":63,"token_group":48,"text":"\"\/\/\"","start_char":93,"line":4},{"index_id":64,"token_group":49,"text":")","start_char":97,"line":4},{"index_id":65,"token_group":50,"text":")","start_char":98,"line":4},{"index_id":66,"token_group":51,"text":";","start_char":99,"line":4},{"index_id":67,"token_group":52,"text":"}","start_char":0,"line":5}],"tokens_list":["{","assert","file",".","get","Parent","File","(",")","!=","null",";","my","File","To","Entry","Map",".","put","(","file",",","entry",".","create","Entry","For","Line","(","\"\/\"","+","file",".","get","Name","(",")","+","\"\/\"","+","my","Revision","+","\"\/\"","+","entry",".","get","Last","Modified","Date","Formatter","(",")",".","format","(","new","date","(",")",")","+","\"\/\/\"",")",")",";","}"],"uuid":"a88da0d4c3b381377892df27b3c42a2b"},{"cap_original_tokens":["<SENTENCE_START>","{","return","<id>","","Start","Time","<\/id>",";","}","<SENTENCE_END\/>"],"file_name":"BaseStatistics.java","formatted_lines":["{"," return _startTime;","}"],"function_name":"getStartTime","function_name_tokens":["get","start","time"],"id_body_hash":"3dbce1cf9e996d1a95cb697c12cbcb06","id_same_identifier_list":[0,1,2,3,3,3,4,5,6],"option_correct":"getStartTime","options":["getAllAssetTagNames","getCandidateStartTime","getStartTime","getTime","destroyServlets","isDisplayOpenSearchResults","getStart"],"options_nlp":["get all asset tag names","get candidate start time","get start time","get time","destroy servlets","is display open search results","get start"],"options_random":["destroyServlets","getAllAssetTagNames","isDisplayOpenSearchResults"],"options_tfidf":["getTime","getStart","getCandidateStartTime"],"project_name":"liferay-portal","source_code_string":"public long getStartTime() {\n\t\treturn _startTime;\n\t}","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"return","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"","start_char":10,"line":1},{"index_id":3,"token_group":3,"text":"Start","start_char":12,"line":1},{"index_id":4,"token_group":3,"text":"Time","start_char":17,"line":1},{"index_id":5,"token_group":3,"text":";","start_char":21,"line":1},{"index_id":6,"token_group":4,"text":"}","start_char":0,"line":2}],"tokens_list":["{","return","","Start","Time",";","}"],"uuid":"0c03de17b3e6bee85fcbe0e510108498"},{"cap_original_tokens":["<SENTENCE_START>","{","if","(","<id>","get","Next","Event","<\/id>","(","false",")","!=","null",")","{","<id>","swing","Utilities","<\/id>",".","<id>","invoke","Later","<\/id>","(","<id>","our","Flush","Queue","Runnable","<\/id>",")",";","return","true",";","}","return","false",";","}","<SENTENCE_END\/>"],"file_name":"LaterInvocator.java","formatted_lines":["{"," if (getNextEvent(false) != null)"," {"," SwingUtilities.invokeLater(ourFlushQueueRunnable);"," return true;"," }"," return false;","}"],"function_name":"ensureFlushRequested","function_name_tokens":["ensure","flush","requested"],"id_body_hash":"df137cd9b801a745e44e163c85062f86","id_same_identifier_list":[0,1,2,3,4,4,4,5,6,7,8,9,10,11,12,12,13,14,14,15,16,16,16,16,17,18,19,20,21,22,23,24,25,26,27],"option_correct":"ensureFlushRequested","options":["flushImpl","requestFlush","installCutCopyPasteShortcuts","getAllStrategies","ensureFlushRequested","flushRequest","newRow"],"options_nlp":["flush impl","request flush","install cut copy paste shortcuts","get all strategies","ensure flush requested","flush request","new row"],"options_random":["getAllStrategies","installCutCopyPasteShortcuts","newRow"],"options_tfidf":["flushRequest","requestFlush","flushImpl"],"project_name":"intellij-community","source_code_string":"public static boolean ensureFlushRequested() {\n if (getNextEvent(false) != null) {\n SwingUtilities.invokeLater(ourFlushQueueRunnable);\n return true;\n }\n return false;\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"if","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"(","start_char":7,"line":1},{"index_id":3,"token_group":3,"text":"get","start_char":8,"line":1},{"index_id":4,"token_group":4,"text":"Next","start_char":11,"line":1},{"index_id":5,"token_group":4,"text":"Event","start_char":15,"line":1},{"index_id":6,"token_group":4,"text":"(","start_char":20,"line":1},{"index_id":7,"token_group":5,"text":"false","start_char":21,"line":1},{"index_id":8,"token_group":6,"text":")","start_char":26,"line":1},{"index_id":9,"token_group":7,"text":"!=","start_char":28,"line":1},{"index_id":10,"token_group":8,"text":"null","start_char":31,"line":1},{"index_id":11,"token_group":9,"text":")","start_char":35,"line":1},{"index_id":12,"token_group":10,"text":"{","start_char":4,"line":2},{"index_id":13,"token_group":11,"text":"swing","start_char":8,"line":3},{"index_id":14,"token_group":12,"text":"Utilities","start_char":13,"line":3},{"index_id":15,"token_group":12,"text":".","start_char":22,"line":3},{"index_id":16,"token_group":13,"text":"invoke","start_char":23,"line":3},{"index_id":17,"token_group":14,"text":"Later","start_char":29,"line":3},{"index_id":18,"token_group":14,"text":"(","start_char":34,"line":3},{"index_id":19,"token_group":15,"text":"our","start_char":35,"line":3},{"index_id":20,"token_group":16,"text":"Flush","start_char":38,"line":3},{"index_id":21,"token_group":16,"text":"Queue","start_char":43,"line":3},{"index_id":22,"token_group":16,"text":"Runnable","start_char":48,"line":3},{"index_id":23,"token_group":16,"text":")","start_char":56,"line":3},{"index_id":24,"token_group":17,"text":";","start_char":57,"line":3},{"index_id":25,"token_group":18,"text":"return","start_char":8,"line":4},{"index_id":26,"token_group":19,"text":"true","start_char":15,"line":4},{"index_id":27,"token_group":20,"text":";","start_char":19,"line":4},{"index_id":28,"token_group":21,"text":"}","start_char":4,"line":5},{"index_id":29,"token_group":22,"text":"return","start_char":4,"line":6},{"index_id":30,"token_group":23,"text":"false","start_char":11,"line":6},{"index_id":31,"token_group":24,"text":";","start_char":16,"line":6},{"index_id":32,"token_group":25,"text":"}","start_char":0,"line":7}],"tokens_list":["{","if","(","get","Next","Event","(","false",")","!=","null",")","{","swing","Utilities",".","invoke","Later","(","our","Flush","Queue","Runnable",")",";","return","true",";","}","return","false",";","}"],"uuid":"430f6176b18a94dfb6dac434b4161dd5"},{"cap_original_tokens":["<SENTENCE_START>","{","return","<id>","my","Panel","<\/id>",";","}","<SENTENCE_END\/>"],"file_name":"Cvs2SettingsEditPanel.java","formatted_lines":["{"," return myPanel;","}"],"function_name":"getPanel","function_name_tokens":["get","panel"],"id_body_hash":"e015aa2253a1c934332ea35ef25fb88a","id_same_identifier_list":[0,1,2,3,3,4,5,6],"option_correct":"getPanel","options":["schedulePluginsResolve","getPanel","getModulePanel","getUpdateException","debug_shift","getContentPanel","getFilePanel"],"options_nlp":["schedule plugins resolve","get panel","get module panel","get update exception","debug shift","get content panel","get file panel"],"options_random":["schedulePluginsResolve","getUpdateException","debug_shift"],"options_tfidf":["getFilePanel","getModulePanel","getContentPanel"],"project_name":"intellij-community","source_code_string":"public JComponent getPanel() {\n return myPanel;\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":"my","start_char":11,"line":1},{"index_id":3,"token_group":3,"text":"Panel","start_char":13,"line":1},{"index_id":4,"token_group":3,"text":";","start_char":18,"line":1},{"index_id":5,"token_group":4,"text":"}","start_char":0,"line":2}],"tokens_list":["{","return","my","Panel",";","}"],"uuid":"d2b9ba5c775b7f80346af7bafbf24701"},{"cap_original_tokens":["<SENTENCE_START>","{","if","(","<id>","wild","Fly","Security","Manager","<\/id>",".","<id>","is","Checking","<\/id>","(",")",")","{","<id>","system","<\/id>",".","<id>","get","Security","Manager","<\/id>","(",")",".","<id>","check","Permission","<\/id>","(","<id>","set","Active","Naming","Store","<\/id>",")",";","}","<id>","active","Naming","Store","<\/id>","=","<id>","naming","Store","<\/id>",";","}","<SENTENCE_END\/>"],"file_name":"NamingContext.java","formatted_lines":["{"," if(WildFlySecurityManager.isChecking())"," {"," System.getSecurityManager().checkPermission(SET_ACTIVE_NAMING_STORE);"," }"," ACTIVE_NAMING_STORE = namingStore;","}"],"function_name":"setActiveNamingStore","function_name_tokens":["set","active","naming","store"],"id_body_hash":"eca87c7e0edf847d9d2b9a8ae736ba76","id_same_identifier_list":[0,1,2,3,4,4,4,4,5,6,6,7,8,9,10,11,12,13,13,13,14,15,16,17,17,18,19,19,19,19,20,21,22,23,23,23,24,25,25,26,27,28],"option_correct":"setActiveNamingStore","options":["testDeployFalse","isActiveMQServerActive","testAS7","child","setActiveNamingStore","setDefaultObjectStore","setDeliveryActive"],"options_nlp":["test deploy false","is active mq server active","test as 7","child","set active naming store","set default object store","set delivery active"],"options_random":["testDeployFalse","child","testAS7"],"options_tfidf":["isActiveMQServerActive","setDefaultObjectStore","setDeliveryActive"],"project_name":"wildfly","source_code_string":"public static void setActiveNamingStore(final NamingStore namingStore) {\n if(WildFlySecurityManager.isChecking()) {\n System.getSecurityManager().checkPermission(SET_ACTIVE_NAMING_STORE);\n }\n ACTIVE_NAMING_STORE = namingStore;\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"if","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"(","start_char":6,"line":1},{"index_id":3,"token_group":3,"text":"wild","start_char":7,"line":1},{"index_id":4,"token_group":4,"text":"Fly","start_char":11,"line":1},{"index_id":5,"token_group":4,"text":"Security","start_char":14,"line":1},{"index_id":6,"token_group":4,"text":"Manager","start_char":22,"line":1},{"index_id":7,"token_group":4,"text":".","start_char":29,"line":1},{"index_id":8,"token_group":5,"text":"is","start_char":30,"line":1},{"index_id":9,"token_group":6,"text":"Checking","start_char":32,"line":1},{"index_id":10,"token_group":6,"text":"(","start_char":40,"line":1},{"index_id":11,"token_group":7,"text":")","start_char":41,"line":1},{"index_id":12,"token_group":8,"text":")","start_char":42,"line":1},{"index_id":13,"token_group":9,"text":"{","start_char":4,"line":2},{"index_id":14,"token_group":10,"text":"system","start_char":8,"line":3},{"index_id":15,"token_group":11,"text":".","start_char":14,"line":3},{"index_id":16,"token_group":12,"text":"get","start_char":15,"line":3},{"index_id":17,"token_group":13,"text":"Security","start_char":18,"line":3},{"index_id":18,"token_group":13,"text":"Manager","start_char":26,"line":3},{"index_id":19,"token_group":13,"text":"(","start_char":33,"line":3},{"index_id":20,"token_group":14,"text":")","start_char":34,"line":3},{"index_id":21,"token_group":15,"text":".","start_char":35,"line":3},{"index_id":22,"token_group":16,"text":"check","start_char":36,"line":3},{"index_id":23,"token_group":17,"text":"Permission","start_char":41,"line":3},{"index_id":24,"token_group":17,"text":"(","start_char":51,"line":3},{"index_id":25,"token_group":18,"text":"set","start_char":52,"line":3},{"index_id":26,"token_group":19,"text":"Active","start_char":56,"line":3},{"index_id":27,"token_group":19,"text":"Naming","start_char":63,"line":3},{"index_id":28,"token_group":19,"text":"Store","start_char":70,"line":3},{"index_id":29,"token_group":19,"text":")","start_char":75,"line":3},{"index_id":30,"token_group":20,"text":";","start_char":76,"line":3},{"index_id":31,"token_group":21,"text":"}","start_char":4,"line":4},{"index_id":32,"token_group":22,"text":"active","start_char":4,"line":5},{"index_id":33,"token_group":23,"text":"Naming","start_char":11,"line":5},{"index_id":34,"token_group":23,"text":"Store","start_char":18,"line":5},{"index_id":35,"token_group":23,"text":"=","start_char":24,"line":5},{"index_id":36,"token_group":24,"text":"naming","start_char":26,"line":5},{"index_id":37,"token_group":25,"text":"Store","start_char":32,"line":5},{"index_id":38,"token_group":25,"text":";","start_char":37,"line":5},{"index_id":39,"token_group":26,"text":"}","start_char":0,"line":6}],"tokens_list":["{","if","(","wild","Fly","Security","Manager",".","is","Checking","(",")",")","{","system",".","get","Security","Manager","(",")",".","check","Permission","(","set","Active","Naming","Store",")",";","}","active","Naming","Store","=","naming","Store",";","}"],"uuid":"835e1aeb6ab96b84a7562f1785a42b25"},{"cap_original_tokens":["<SENTENCE_START>","{","synchronized","(","<id>","dom","Element","Annotations","Manager","Impl","<\/id>",".","<id>","lock","<\/id>",")","{","return","<id>","my","Passed","Inspections","<\/id>",".","<id>","contains","<\/id>","(","<id>","inspection","Class","<\/id>",")",";","}","}","<SENTENCE_END\/>"],"file_name":"DomElementsProblemsHolderImpl.java","formatted_lines":["{"," synchronized (DomElementAnnotationsManagerImpl.LOCK)"," {"," return myPassedInspections.contains(inspectionClass);"," }","}"],"function_name":"isInspectionCompleted","function_name_tokens":["is","inspection","completed"],"id_body_hash":"4134c3383bb44371533aebd87ba35787","id_same_identifier_list":[0,1,2,3,4,4,4,4,4,5,6,7,8,9,10,10,10,11,12,13,14,14,15,16,17,18,19],"option_correct":"isInspectionCompleted","options":["isUnusedInspectionRequired","updateVarStateOnComparison","isInspectionEnabled","testFoDatatype","afterFileOpen","isInspectionCompleted","isGlobalInspectionRunCustomly"],"options_nlp":["is unused inspection required","update var state on comparison","is inspection enabled","test fo datatype","after file open","is inspection completed","is global inspection run customly"],"options_random":["testFoDatatype","afterFileOpen","updateVarStateOnComparison"],"options_tfidf":["isUnusedInspectionRequired","isGlobalInspectionRunCustomly","isInspectionEnabled"],"project_name":"intellij-community","source_code_string":"public final boolean isInspectionCompleted(final Class<? extends DomElementsInspection> inspectionClass) {\n synchronized (DomElementAnnotationsManagerImpl.LOCK) {\n return myPassedInspections.contains(inspectionClass);\n }\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"synchronized","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"(","start_char":17,"line":1},{"index_id":3,"token_group":3,"text":"dom","start_char":18,"line":1},{"index_id":4,"token_group":4,"text":"Element","start_char":21,"line":1},{"index_id":5,"token_group":4,"text":"Annotations","start_char":28,"line":1},{"index_id":6,"token_group":4,"text":"Manager","start_char":39,"line":1},{"index_id":7,"token_group":4,"text":"Impl","start_char":46,"line":1},{"index_id":8,"token_group":4,"text":".","start_char":50,"line":1},{"index_id":9,"token_group":5,"text":"lock","start_char":51,"line":1},{"index_id":10,"token_group":6,"text":")","start_char":55,"line":1},{"index_id":11,"token_group":7,"text":"{","start_char":4,"line":2},{"index_id":12,"token_group":8,"text":"return","start_char":8,"line":3},{"index_id":13,"token_group":9,"text":"my","start_char":15,"line":3},{"index_id":14,"token_group":10,"text":"Passed","start_char":17,"line":3},{"index_id":15,"token_group":10,"text":"Inspections","start_char":23,"line":3},{"index_id":16,"token_group":10,"text":".","start_char":34,"line":3},{"index_id":17,"token_group":11,"text":"contains","start_char":35,"line":3},{"index_id":18,"token_group":12,"text":"(","start_char":43,"line":3},{"index_id":19,"token_group":13,"text":"inspection","start_char":44,"line":3},{"index_id":20,"token_group":14,"text":"Class","start_char":54,"line":3},{"index_id":21,"token_group":14,"text":")","start_char":59,"line":3},{"index_id":22,"token_group":15,"text":";","start_char":60,"line":3},{"index_id":23,"token_group":16,"text":"}","start_char":4,"line":4},{"index_id":24,"token_group":17,"text":"}","start_char":0,"line":5}],"tokens_list":["{","synchronized","(","dom","Element","Annotations","Manager","Impl",".","lock",")","{","return","my","Passed","Inspections",".","contains","(","inspection","Class",")",";","}","}"],"uuid":"5041a7db931b4fa60dafeb255b922bfa"},{"cap_original_tokens":["<SENTENCE_START>","{","final","<id>","default","Noticeable","Future","<\/id>","<","<id>","map","<\/id>","<","<id>","path","<\/id>",",","<id>","path","<\/id>",">>","<id>","default","Noticeable","Future","<\/id>","=","new","<id>","default","Noticeable","Future","<\/id>","<",">","(",")",";","<id>","netty","Fabric","Worker","Stub","<\/id>","<","<id>","string","<\/id>",">","<id>","netty","Fabric","Worker","Stub","<\/id>","=","new","<id>","netty","Fabric","Worker","Stub","<\/id>","<","<id>","string","<\/id>",">","(","0",",","<id>","netty","Test","Util","<\/id>",".","<id>","create","Empty","Embedded","Channel","<\/id>","(",")",",","new","<id>","mock","Repository","<\/id>","<","<id>","channel","<\/id>",">","(",")","{","@","<id>","override","<\/id>","Public","<id>","noticeable","Future","<\/id>","<","<id>","map","<\/id>","<","<id>","path","<\/id>",",","<id>","path","<\/id>",">>","<id>","get","Files","<\/id>","(","<id>","channel","<\/id>","<id>","channel","<\/id>",",","<id>","map","<\/id>","<","<id>","path","<\/id>",",","<id>","path","<\/id>",">","<id>","path","Map","<\/id>",",","boolean","<id>","delete","After","Fetch","<\/id>",")","{","return","<id>","default","Noticeable","Future","<\/id>",";","}","}",",","<id>","collections","<\/id>",".","<","<id>","path","<\/id>",",","<id>","path","<\/id>",">","<id>","empty","Map","<\/id>","(",")",",","0",")",";","<id>","netty","Fabric","Worker","Stub","<\/id>",".","<id>","set","Result","<\/id>","(","\"Test result\"",")",";","<id>","noticeable","Future","<\/id>","<","<id>","string","<\/id>",">","<id>","noticeable","Future","<\/id>","=","<id>","netty","Fabric","Worker","Stub","<\/id>",".","<id>","get","Process","Noticeable","Future","<\/id>","(",")",";","<id>","assert","<\/id>",".","<id>","assert","False","<\/id>","(","<id>","noticeable","Future","<\/id>",".","<id>","is","Done","<\/id>","(",")",")",";","<id>","throwable","<\/id>","<id>","throwable","<\/id>","=","new","<id>","throwable","<\/id>","(",")",";","<id>","default","Noticeable","Future","<\/id>",".","<id>","set","Exception","<\/id>","(","<id>","throwable","<\/id>",")",";","try","{","<id>","default","Noticeable","Future","<\/id>",".","<id>","get","<\/id>","(",")",";","<id>","assert","<\/id>",".","<id>","fail","<\/id>","(",")",";","}","catch","(","<id>","execution","Exception","<\/id>","<id>","ee","<\/id>",")","{","<id>","assert","<\/id>",".","<id>","assert","Same","<\/id>","(","<id>","throwable","<\/id>",",","<id>","ee","<\/id>",".","<id>","get","Cause","<\/id>","(",")",")",";","}","}","<SENTENCE_END\/>"],"file_name":"NettyFabricWorkerStubTest.java","formatted_lines":["{"," final DefaultNoticeableFuture<Map<Path, Path>> defaultNoticeableFuture ="," new DefaultNoticeableFuture<>();",""," NettyFabricWorkerStub<String> nettyFabricWorkerStub ="," new NettyFabricWorkerStub<String>("," 0, NettyTestUtil.createEmptyEmbeddedChannel(),"," new MockRepository<Channel>()"," {",""," @Override"," public NoticeableFuture<Map<Path, Path>> getFiles("," Channel channel, Map<Path, Path> pathMap,"," boolean deleteAfterFetch)"," {",""," return defaultNoticeableFuture;"," }",""," },"," Collections.<Path, Path>emptyMap(), 0);",""," nettyFabricWorkerStub.setResult(\"Test result\");",""," NoticeableFuture<String> noticeableFuture ="," nettyFabricWorkerStub.getProcessNoticeableFuture();",""," Assert.assertFalse(noticeableFuture.isDone());",""," Throwable throwable = new Throwable();",""," defaultNoticeableFuture.setException(throwable);",""," try"," {"," defaultNoticeableFuture.get();",""," Assert.fail();"," }"," catch (ExecutionException ee)"," {"," Assert.assertSame(throwable, ee.getCause());"," }","}"],"function_name":"testSetResultWithException","function_name_tokens":["test","set","result","with","exception"],"id_body_hash":"197e6656a4b7cecfd5251a719ed87ec2","id_same_identifier_list":[0,1,2,3,3,3,4,5,6,7,8,9,10,11,11,11,12,13,14,14,14,15,16,17,18,19,20,20,20,20,21,22,23,24,24,24,24,25,26,27,27,27,27,28,29,30,31,32,33,34,34,34,35,36,36,36,36,37,38,39,40,41,41,42,43,44,45,46,47,48,49,50,51,51,52,53,54,55,56,57,58,59,59,60,61,62,63,64,65,66,67,68,69,70,70,71,72,73,73,73,74,75,76,77,77,77,78,79,80,81,82,83,84,85,86,87,88,89,89,90,91,92,93,94,95,96,96,96,96,97,98,98,99,100,101,102,103,103,104,105,106,107,107,108,109,109,109,109,110,111,111,111,111,112,113,114,115,116,117,117,118,119,119,120,121,121,122,123,124,125,126,127,128,129,130,131,132,133,134,134,134,135,136,136,137,138,139,140,141,142,143,143,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,158,159,160,161,162,163,164,164,165,166,167,168,169,170,170,171,172,173,174,175,176,177],"option_correct":"testSetResultWithException","options":["testGetDDMFormFieldsJSONArray","deleteLayout","createEntryLink","testSetResult","setException","testSetResultWithException","testSetException"],"options_nlp":["test get ddm form fields json array","delete layout","create entry link","test set result","set exception","test set result with exception","test set exception"],"options_random":["testGetDDMFormFieldsJSONArray","deleteLayout","createEntryLink"],"options_tfidf":["testSetException","testSetResult","setException"],"project_name":"liferay-portal","source_code_string":"@Test\n\tpublic void testSetResultWithException() throws InterruptedException {\n\t\tfinal DefaultNoticeableFuture<Map<Path, Path>> defaultNoticeableFuture =\n\t\t\tnew DefaultNoticeableFuture<>();\n\n\t\tNettyFabricWorkerStub<String> nettyFabricWorkerStub =\n\t\t\tnew NettyFabricWorkerStub<String>(\n\t\t\t\t0, NettyTestUtil.createEmptyEmbeddedChannel(),\n\t\t\t\tnew MockRepository<Channel>() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic NoticeableFuture<Map<Path, Path>> getFiles(\n\t\t\t\t\t\tChannel channel, Map<Path, Path> pathMap,\n\t\t\t\t\t\tboolean deleteAfterFetch) {\n\n\t\t\t\t\t\treturn defaultNoticeableFuture;\n\t\t\t\t\t}\n\n\t\t\t\t},\n\t\t\t\tCollections.<Path, Path>emptyMap(), 0);\n\n\t\tnettyFabricWorkerStub.setResult(\"Test result\");\n\n\t\tNoticeableFuture<String> noticeableFuture =\n\t\t\tnettyFabricWorkerStub.getProcessNoticeableFuture();\n\n\t\tAssert.assertFalse(noticeableFuture.isDone());\n\n\t\tThrowable throwable = new Throwable();\n\n\t\tdefaultNoticeableFuture.setException(throwable);\n\n\t\ttry {\n\t\t\tdefaultNoticeableFuture.get();\n\n\t\t\tAssert.fail();\n\t\t}\n\t\tcatch (ExecutionException ee) {\n\t\t\tAssert.assertSame(throwable, ee.getCause());\n\t\t}\n\t}","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"final","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"default","start_char":10,"line":1},{"index_id":3,"token_group":3,"text":"Noticeable","start_char":17,"line":1},{"index_id":4,"token_group":3,"text":"Future","start_char":27,"line":1},{"index_id":5,"token_group":3,"text":"<","start_char":33,"line":1},{"index_id":6,"token_group":4,"text":"map","start_char":34,"line":1},{"index_id":7,"token_group":5,"text":"<","start_char":37,"line":1},{"index_id":8,"token_group":6,"text":"path","start_char":38,"line":1},{"index_id":9,"token_group":7,"text":",","start_char":42,"line":1},{"index_id":10,"token_group":8,"text":"path","start_char":44,"line":1},{"index_id":11,"token_group":9,"text":">>","start_char":48,"line":1},{"index_id":12,"token_group":10,"text":"default","start_char":51,"line":1},{"index_id":13,"token_group":11,"text":"Noticeable","start_char":58,"line":1},{"index_id":14,"token_group":11,"text":"Future","start_char":68,"line":1},{"index_id":15,"token_group":11,"text":"=","start_char":75,"line":1},{"index_id":16,"token_group":12,"text":"new","start_char":12,"line":2},{"index_id":17,"token_group":13,"text":"default","start_char":16,"line":2},{"index_id":18,"token_group":14,"text":"Noticeable","start_char":23,"line":2},{"index_id":19,"token_group":14,"text":"Future","start_char":33,"line":2},{"index_id":20,"token_group":14,"text":"<","start_char":39,"line":2},{"index_id":21,"token_group":15,"text":">","start_char":40,"line":2},{"index_id":22,"token_group":16,"text":"(","start_char":41,"line":2},{"index_id":23,"token_group":17,"text":")","start_char":42,"line":2},{"index_id":24,"token_group":18,"text":";","start_char":43,"line":2},{"index_id":25,"token_group":19,"text":"netty","start_char":4,"line":4},{"index_id":26,"token_group":20,"text":"Fabric","start_char":9,"line":4},{"index_id":27,"token_group":20,"text":"Worker","start_char":15,"line":4},{"index_id":28,"token_group":20,"text":"Stub","start_char":21,"line":4},{"index_id":29,"token_group":20,"text":"<","start_char":25,"line":4},{"index_id":30,"token_group":21,"text":"string","start_char":26,"line":4},{"index_id":31,"token_group":22,"text":">","start_char":32,"line":4},{"index_id":32,"token_group":23,"text":"netty","start_char":34,"line":4},{"index_id":33,"token_group":24,"text":"Fabric","start_char":39,"line":4},{"index_id":34,"token_group":24,"text":"Worker","start_char":45,"line":4},{"index_id":35,"token_group":24,"text":"Stub","start_char":51,"line":4},{"index_id":36,"token_group":24,"text":"=","start_char":56,"line":4},{"index_id":37,"token_group":25,"text":"new","start_char":4,"line":5},{"index_id":38,"token_group":26,"text":"netty","start_char":8,"line":5},{"index_id":39,"token_group":27,"text":"Fabric","start_char":13,"line":5},{"index_id":40,"token_group":27,"text":"Worker","start_char":19,"line":5},{"index_id":41,"token_group":27,"text":"Stub","start_char":25,"line":5},{"index_id":42,"token_group":27,"text":"<","start_char":29,"line":5},{"index_id":43,"token_group":28,"text":"string","start_char":30,"line":5},{"index_id":44,"token_group":29,"text":">","start_char":36,"line":5},{"index_id":45,"token_group":30,"text":"(","start_char":37,"line":5},{"index_id":46,"token_group":31,"text":"0","start_char":8,"line":6},{"index_id":47,"token_group":32,"text":",","start_char":9,"line":6},{"index_id":48,"token_group":33,"text":"netty","start_char":11,"line":6},{"index_id":49,"token_group":34,"text":"Test","start_char":16,"line":6},{"index_id":50,"token_group":34,"text":"Util","start_char":20,"line":6},{"index_id":51,"token_group":34,"text":".","start_char":24,"line":6},{"index_id":52,"token_group":35,"text":"create","start_char":25,"line":6},{"index_id":53,"token_group":36,"text":"Empty","start_char":31,"line":6},{"index_id":54,"token_group":36,"text":"Embedded","start_char":36,"line":6},{"index_id":55,"token_group":36,"text":"Channel","start_char":44,"line":6},{"index_id":56,"token_group":36,"text":"(","start_char":51,"line":6},{"index_id":57,"token_group":37,"text":")","start_char":52,"line":6},{"index_id":58,"token_group":38,"text":",","start_char":53,"line":6},{"index_id":59,"token_group":39,"text":"new","start_char":8,"line":7},{"index_id":60,"token_group":40,"text":"mock","start_char":12,"line":7},{"index_id":61,"token_group":41,"text":"Repository","start_char":16,"line":7},{"index_id":62,"token_group":41,"text":"<","start_char":26,"line":7},{"index_id":63,"token_group":42,"text":"channel","start_char":27,"line":7},{"index_id":64,"token_group":43,"text":">","start_char":34,"line":7},{"index_id":65,"token_group":44,"text":"(","start_char":35,"line":7},{"index_id":66,"token_group":45,"text":")","start_char":36,"line":7},{"index_id":67,"token_group":46,"text":"{","start_char":4,"line":8},{"index_id":68,"token_group":47,"text":"@","start_char":8,"line":10},{"index_id":69,"token_group":48,"text":"override","start_char":9,"line":10},{"index_id":70,"token_group":49,"text":"Public","start_char":8,"line":11},{"index_id":71,"token_group":50,"text":"noticeable","start_char":15,"line":11},{"index_id":72,"token_group":51,"text":"Future","start_char":25,"line":11},{"index_id":73,"token_group":51,"text":"<","start_char":31,"line":11},{"index_id":74,"token_group":52,"text":"map","start_char":32,"line":11},{"index_id":75,"token_group":53,"text":"<","start_char":35,"line":11},{"index_id":76,"token_group":54,"text":"path","start_char":36,"line":11},{"index_id":77,"token_group":55,"text":",","start_char":40,"line":11},{"index_id":78,"token_group":56,"text":"path","start_char":42,"line":11},{"index_id":79,"token_group":57,"text":">>","start_char":46,"line":11},{"index_id":80,"token_group":58,"text":"get","start_char":49,"line":11},{"index_id":81,"token_group":59,"text":"Files","start_char":52,"line":11},{"index_id":82,"token_group":59,"text":"(","start_char":57,"line":11},{"index_id":83,"token_group":60,"text":"channel","start_char":16,"line":12},{"index_id":84,"token_group":61,"text":"channel","start_char":24,"line":12},{"index_id":85,"token_group":62,"text":",","start_char":31,"line":12},{"index_id":86,"token_group":63,"text":"map","start_char":33,"line":12},{"index_id":87,"token_group":64,"text":"<","start_char":36,"line":12},{"index_id":88,"token_group":65,"text":"path","start_char":37,"line":12},{"index_id":89,"token_group":66,"text":",","start_char":41,"line":12},{"index_id":90,"token_group":67,"text":"path","start_char":43,"line":12},{"index_id":91,"token_group":68,"text":">","start_char":47,"line":12},{"index_id":92,"token_group":69,"text":"path","start_char":49,"line":12},{"index_id":93,"token_group":70,"text":"Map","start_char":53,"line":12},{"index_id":94,"token_group":70,"text":",","start_char":56,"line":12},{"index_id":95,"token_group":71,"text":"boolean","start_char":16,"line":13},{"index_id":96,"token_group":72,"text":"delete","start_char":24,"line":13},{"index_id":97,"token_group":73,"text":"After","start_char":30,"line":13},{"index_id":98,"token_group":73,"text":"Fetch","start_char":35,"line":13},{"index_id":99,"token_group":73,"text":")","start_char":40,"line":13},{"index_id":100,"token_group":74,"text":"{","start_char":8,"line":14},{"index_id":101,"token_group":75,"text":"return","start_char":12,"line":16},{"index_id":102,"token_group":76,"text":"default","start_char":19,"line":16},{"index_id":103,"token_group":77,"text":"Noticeable","start_char":26,"line":16},{"index_id":104,"token_group":77,"text":"Future","start_char":36,"line":16},{"index_id":105,"token_group":77,"text":";","start_char":42,"line":16},{"index_id":106,"token_group":78,"text":"}","start_char":8,"line":17},{"index_id":107,"token_group":79,"text":"}","start_char":4,"line":19},{"index_id":108,"token_group":80,"text":",","start_char":5,"line":19},{"index_id":109,"token_group":81,"text":"collections","start_char":4,"line":20},{"index_id":110,"token_group":82,"text":".","start_char":15,"line":20},{"index_id":111,"token_group":83,"text":"<","start_char":16,"line":20},{"index_id":112,"token_group":84,"text":"path","start_char":17,"line":20},{"index_id":113,"token_group":85,"text":",","start_char":21,"line":20},{"index_id":114,"token_group":86,"text":"path","start_char":23,"line":20},{"index_id":115,"token_group":87,"text":">","start_char":27,"line":20},{"index_id":116,"token_group":88,"text":"empty","start_char":28,"line":20},{"index_id":117,"token_group":89,"text":"Map","start_char":33,"line":20},{"index_id":118,"token_group":89,"text":"(","start_char":36,"line":20},{"index_id":119,"token_group":90,"text":")","start_char":37,"line":20},{"index_id":120,"token_group":91,"text":",","start_char":38,"line":20},{"index_id":121,"token_group":92,"text":"0","start_char":40,"line":20},{"index_id":122,"token_group":93,"text":")","start_char":41,"line":20},{"index_id":123,"token_group":94,"text":";","start_char":42,"line":20},{"index_id":124,"token_group":95,"text":"netty","start_char":4,"line":22},{"index_id":125,"token_group":96,"text":"Fabric","start_char":9,"line":22},{"index_id":126,"token_group":96,"text":"Worker","start_char":15,"line":22},{"index_id":127,"token_group":96,"text":"Stub","start_char":21,"line":22},{"index_id":128,"token_group":96,"text":".","start_char":25,"line":22},{"index_id":129,"token_group":97,"text":"set","start_char":26,"line":22},{"index_id":130,"token_group":98,"text":"Result","start_char":29,"line":22},{"index_id":131,"token_group":98,"text":"(","start_char":35,"line":22},{"index_id":132,"token_group":99,"text":"\"Test result\"","start_char":36,"line":22},{"index_id":133,"token_group":100,"text":")","start_char":49,"line":22},{"index_id":134,"token_group":101,"text":";","start_char":50,"line":22},{"index_id":135,"token_group":102,"text":"noticeable","start_char":4,"line":24},{"index_id":136,"token_group":103,"text":"Future","start_char":14,"line":24},{"index_id":137,"token_group":103,"text":"<","start_char":20,"line":24},{"index_id":138,"token_group":104,"text":"string","start_char":21,"line":24},{"index_id":139,"token_group":105,"text":">","start_char":27,"line":24},{"index_id":140,"token_group":106,"text":"noticeable","start_char":29,"line":24},{"index_id":141,"token_group":107,"text":"Future","start_char":39,"line":24},{"index_id":142,"token_group":107,"text":"=","start_char":46,"line":24},{"index_id":143,"token_group":108,"text":"netty","start_char":8,"line":25},{"index_id":144,"token_group":109,"text":"Fabric","start_char":13,"line":25},{"index_id":145,"token_group":109,"text":"Worker","start_char":19,"line":25},{"index_id":146,"token_group":109,"text":"Stub","start_char":25,"line":25},{"index_id":147,"token_group":109,"text":".","start_char":29,"line":25},{"index_id":148,"token_group":110,"text":"get","start_char":30,"line":25},{"index_id":149,"token_group":111,"text":"Process","start_char":33,"line":25},{"index_id":150,"token_group":111,"text":"Noticeable","start_char":40,"line":25},{"index_id":151,"token_group":111,"text":"Future","start_char":50,"line":25},{"index_id":152,"token_group":111,"text":"(","start_char":56,"line":25},{"index_id":153,"token_group":112,"text":")","start_char":57,"line":25},{"index_id":154,"token_group":113,"text":";","start_char":58,"line":25},{"index_id":155,"token_group":114,"text":"assert","start_char":4,"line":27},{"index_id":156,"token_group":115,"text":".","start_char":10,"line":27},{"index_id":157,"token_group":116,"text":"assert","start_char":11,"line":27},{"index_id":158,"token_group":117,"text":"False","start_char":17,"line":27},{"index_id":159,"token_group":117,"text":"(","start_char":22,"line":27},{"index_id":160,"token_group":118,"text":"noticeable","start_char":23,"line":27},{"index_id":161,"token_group":119,"text":"Future","start_char":33,"line":27},{"index_id":162,"token_group":119,"text":".","start_char":39,"line":27},{"index_id":163,"token_group":120,"text":"is","start_char":40,"line":27},{"index_id":164,"token_group":121,"text":"Done","start_char":42,"line":27},{"index_id":165,"token_group":121,"text":"(","start_char":46,"line":27},{"index_id":166,"token_group":122,"text":")","start_char":47,"line":27},{"index_id":167,"token_group":123,"text":")","start_char":48,"line":27},{"index_id":168,"token_group":124,"text":";","start_char":49,"line":27},{"index_id":169,"token_group":125,"text":"throwable","start_char":4,"line":29},{"index_id":170,"token_group":126,"text":"throwable","start_char":14,"line":29},{"index_id":171,"token_group":127,"text":"=","start_char":24,"line":29},{"index_id":172,"token_group":128,"text":"new","start_char":26,"line":29},{"index_id":173,"token_group":129,"text":"throwable","start_char":30,"line":29},{"index_id":174,"token_group":130,"text":"(","start_char":39,"line":29},{"index_id":175,"token_group":131,"text":")","start_char":40,"line":29},{"index_id":176,"token_group":132,"text":";","start_char":41,"line":29},{"index_id":177,"token_group":133,"text":"default","start_char":4,"line":31},{"index_id":178,"token_group":134,"text":"Noticeable","start_char":11,"line":31},{"index_id":179,"token_group":134,"text":"Future","start_char":21,"line":31},{"index_id":180,"token_group":134,"text":".","start_char":27,"line":31},{"index_id":181,"token_group":135,"text":"set","start_char":28,"line":31},{"index_id":182,"token_group":136,"text":"Exception","start_char":31,"line":31},{"index_id":183,"token_group":136,"text":"(","start_char":40,"line":31},{"index_id":184,"token_group":137,"text":"throwable","start_char":41,"line":31},{"index_id":185,"token_group":138,"text":")","start_char":50,"line":31},{"index_id":186,"token_group":139,"text":";","start_char":51,"line":31},{"index_id":187,"token_group":140,"text":"try","start_char":4,"line":33},{"index_id":188,"token_group":141,"text":"{","start_char":4,"line":34},{"index_id":189,"token_group":142,"text":"default","start_char":8,"line":35},{"index_id":190,"token_group":143,"text":"Noticeable","start_char":15,"line":35},{"index_id":191,"token_group":143,"text":"Future","start_char":25,"line":35},{"index_id":192,"token_group":143,"text":".","start_char":31,"line":35},{"index_id":193,"token_group":144,"text":"get","start_char":32,"line":35},{"index_id":194,"token_group":145,"text":"(","start_char":35,"line":35},{"index_id":195,"token_group":146,"text":")","start_char":36,"line":35},{"index_id":196,"token_group":147,"text":";","start_char":37,"line":35},{"index_id":197,"token_group":148,"text":"assert","start_char":8,"line":37},{"index_id":198,"token_group":149,"text":".","start_char":14,"line":37},{"index_id":199,"token_group":150,"text":"fail","start_char":15,"line":37},{"index_id":200,"token_group":151,"text":"(","start_char":19,"line":37},{"index_id":201,"token_group":152,"text":")","start_char":20,"line":37},{"index_id":202,"token_group":153,"text":";","start_char":21,"line":37},{"index_id":203,"token_group":154,"text":"}","start_char":4,"line":38},{"index_id":204,"token_group":155,"text":"catch","start_char":4,"line":39},{"index_id":205,"token_group":156,"text":"(","start_char":10,"line":39},{"index_id":206,"token_group":157,"text":"execution","start_char":11,"line":39},{"index_id":207,"token_group":158,"text":"Exception","start_char":20,"line":39},{"index_id":208,"token_group":158,"text":"ee","start_char":30,"line":39},{"index_id":209,"token_group":159,"text":")","start_char":32,"line":39},{"index_id":210,"token_group":160,"text":"{","start_char":4,"line":40},{"index_id":211,"token_group":161,"text":"assert","start_char":8,"line":41},{"index_id":212,"token_group":162,"text":".","start_char":14,"line":41},{"index_id":213,"token_group":163,"text":"assert","start_char":15,"line":41},{"index_id":214,"token_group":164,"text":"Same","start_char":21,"line":41},{"index_id":215,"token_group":164,"text":"(","start_char":25,"line":41},{"index_id":216,"token_group":165,"text":"throwable","start_char":26,"line":41},{"index_id":217,"token_group":166,"text":",","start_char":35,"line":41},{"index_id":218,"token_group":167,"text":"ee","start_char":37,"line":41},{"index_id":219,"token_group":168,"text":".","start_char":39,"line":41},{"index_id":220,"token_group":169,"text":"get","start_char":40,"line":41},{"index_id":221,"token_group":170,"text":"Cause","start_char":43,"line":41},{"index_id":222,"token_group":170,"text":"(","start_char":48,"line":41},{"index_id":223,"token_group":171,"text":")","start_char":49,"line":41},{"index_id":224,"token_group":172,"text":")","start_char":50,"line":41},{"index_id":225,"token_group":173,"text":";","start_char":51,"line":41},{"index_id":226,"token_group":174,"text":"}","start_char":4,"line":42},{"index_id":227,"token_group":175,"text":"}","start_char":0,"line":43}],"tokens_list":["{","final","default","Noticeable","Future","<","map","<","path",",","path",">>","default","Noticeable","Future","=","new","default","Noticeable","Future","<",">","(",")",";","netty","Fabric","Worker","Stub","<","string",">","netty","Fabric","Worker","Stub","=","new","netty","Fabric","Worker","Stub","<","string",">","(","0",",","netty","Test","Util",".","create","Empty","Embedded","Channel","(",")",",","new","mock","Repository","<","channel",">","(",")","{","@","override","Public","noticeable","Future","<","map","<","path",",","path",">>","get","Files","(","channel","channel",",","map","<","path",",","path",">","path","Map",",","boolean","delete","After","Fetch",")","{","return","default","Noticeable","Future",";","}","}",",","collections",".","<","path",",","path",">","empty","Map","(",")",",","0",")",";","netty","Fabric","Worker","Stub",".","set","Result","(","\"Test result\"",")",";","noticeable","Future","<","string",">","noticeable","Future","=","netty","Fabric","Worker","Stub",".","get","Process","Noticeable","Future","(",")",";","assert",".","assert","False","(","noticeable","Future",".","is","Done","(",")",")",";","throwable","throwable","=","new","throwable","(",")",";","default","Noticeable","Future",".","set","Exception","(","throwable",")",";","try","{","default","Noticeable","Future",".","get","(",")",";","assert",".","fail","(",")",";","}","catch","(","execution","Exception","ee",")","{","assert",".","assert","Same","(","throwable",",","ee",".","get","Cause","(",")",")",";","}","}"],"uuid":"15354cef6aa0eeee839e8651c56054d0"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","maven","Home","Component","<\/id>",".","<id>","get","Component","<\/id>","(",")",".","<id>","add","Browse","Folder","Listener","<\/id>","(","<id>","project","Bundle","<\/id>",".","<id>","message","<\/id>","(","\"maven.select.maven.home.directory\"",")",",","\"\"",",","null",",","<id>","browse","Files","Listener","<\/id>",".","<id>","single","Directory","Descriptor","<\/id>",",","<id>","text","Component","Accessor","<\/id>",".","<id>","text","Field","With","History","Whole","Text","<\/id>",")",";","<id>","maven","Home","Field","<\/id>",".","<id>","add","Document","Listener","<\/id>","(","new","<id>","document","Adapter","<\/id>","(",")","{","protected","void","<id>","text","Changed","<\/id>","(","<id>","document","Event","<\/id>","<id>","e","<\/id>",")","{","<id>","update","Maven","Version","Label","<\/id>","(",")",";","}","}",")",";","<id>","settings","File","Component","<\/id>",".","<id>","get","Component","<\/id>","(",")",".","<id>","add","Browse","Folder","Listener","<\/id>","(","<id>","project","Bundle","<\/id>",".","<id>","message","<\/id>","(","\"maven.select.maven.settings.file\"",")",",","\"\"",",","null",",","<id>","file","Chooser","Descriptor","Factory","<\/id>",".","<id>","create","Single","File","No","Jars","Descriptor","<\/id>","(",")",")",";","<id>","local","Repository","Component","<\/id>",".","<id>","get","Component","<\/id>","(",")",".","<id>","add","Browse","Folder","Listener","<\/id>","(","<id>","project","Bundle","<\/id>",".","<id>","message","<\/id>","(","\"maven.select.local.repository\"",")",",","\"\"",",","null",",","<id>","file","Chooser","Descriptor","Factory","<\/id>",".","<id>","create","Single","Folder","Descriptor","<\/id>","(",")",")",";","return","<id>","panel","<\/id>",";","}","<SENTENCE_END\/>"],"file_name":"MavenEnvironmentForm.java","formatted_lines":["{",""," mavenHomeComponent.getComponent().addBrowseFolderListener("," ProjectBundle.message(\"maven.select.maven.home.directory\"),"," \"\","," null, BrowseFilesListener.SINGLE_DIRECTORY_DESCRIPTOR,"," TextComponentAccessor.TEXT_FIELD_WITH_HISTORY_WHOLE_TEXT);"," mavenHomeField.addDocumentListener(new DocumentAdapter()"," {"," protected void textChanged(DocumentEvent e)"," {"," updateMavenVersionLabel();"," }"," });",""," settingsFileComponent.getComponent().addBrowseFolderListener("," ProjectBundle.message(\"maven.select.maven.settings.file\"), \"\", null,"," FileChooserDescriptorFactory.createSingleFileNoJarsDescriptor());"," localRepositoryComponent.getComponent().addBrowseFolderListener("," ProjectBundle.message(\"maven.select.local.repository\"), \"\", null,"," FileChooserDescriptorFactory.createSingleFolderDescriptor());"," return panel;","}"],"function_name":"createComponent","function_name_tokens":["create","component"],"id_body_hash":"980243ffca268ed32a425532509234b1","id_same_identifier_list":[0,1,2,2,2,3,4,4,5,6,7,8,8,8,8,9,10,10,11,12,13,14,15,16,17,18,19,20,21,21,21,22,23,23,23,24,25,25,25,26,27,27,27,27,27,27,28,29,30,30,30,31,32,32,32,33,34,35,35,36,37,38,39,40,41,41,42,43,43,44,45,46,47,47,47,47,48,49,50,51,52,53,54,55,55,55,56,57,57,58,59,60,61,61,61,61,62,63,63,64,65,66,67,68,69,70,71,72,73,74,74,74,74,75,76,76,76,76,76,76,77,78,79,80,81,81,81,82,83,83,84,85,86,87,87,87,87,88,89,89,90,91,92,93,94,95,96,97,98,99,100,100,100,100,101,102,102,102,102,103,104,105,106,107,108,109,110,111],"option_correct":"createComponent","options":["createCustomComponent","createEditorComponent","setStuff","createComponent","checkTypeParametersList","getMac","createActionComponent"],"options_nlp":["create custom component","create editor component","set stuff","create component","check type parameters list","get mac","create action component"],"options_random":["setStuff","getMac","checkTypeParametersList"],"options_tfidf":["createActionComponent","createCustomComponent","createEditorComponent"],"project_name":"intellij-community","source_code_string":"public JComponent createComponent() {\n \n mavenHomeComponent.getComponent().addBrowseFolderListener(ProjectBundle.message(\"maven.select.maven.home.directory\"),\n \"\",\n null, BrowseFilesListener.SINGLE_DIRECTORY_DESCRIPTOR,\n TextComponentAccessor.TEXT_FIELD_WITH_HISTORY_WHOLE_TEXT);\n mavenHomeField.addDocumentListener(new DocumentAdapter() {\n protected void textChanged(DocumentEvent e) {\n updateMavenVersionLabel();\n }\n });\n\n settingsFileComponent.getComponent().addBrowseFolderListener(ProjectBundle.message(\"maven.select.maven.settings.file\"), \"\", null,\n FileChooserDescriptorFactory.createSingleFileNoJarsDescriptor());\n localRepositoryComponent.getComponent().addBrowseFolderListener(ProjectBundle.message(\"maven.select.local.repository\"), \"\", null,\n FileChooserDescriptorFactory.createSingleFolderDescriptor());\n return panel;\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"maven","start_char":4,"line":2},{"index_id":2,"token_group":2,"text":"Home","start_char":9,"line":2},{"index_id":3,"token_group":2,"text":"Component","start_char":13,"line":2},{"index_id":4,"token_group":2,"text":".","start_char":22,"line":2},{"index_id":5,"token_group":3,"text":"get","start_char":23,"line":2},{"index_id":6,"token_group":4,"text":"Component","start_char":26,"line":2},{"index_id":7,"token_group":4,"text":"(","start_char":35,"line":2},{"index_id":8,"token_group":5,"text":")","start_char":36,"line":2},{"index_id":9,"token_group":6,"text":".","start_char":37,"line":2},{"index_id":10,"token_group":7,"text":"add","start_char":38,"line":2},{"index_id":11,"token_group":8,"text":"Browse","start_char":41,"line":2},{"index_id":12,"token_group":8,"text":"Folder","start_char":47,"line":2},{"index_id":13,"token_group":8,"text":"Listener","start_char":53,"line":2},{"index_id":14,"token_group":8,"text":"(","start_char":61,"line":2},{"index_id":15,"token_group":9,"text":"project","start_char":8,"line":3},{"index_id":16,"token_group":10,"text":"Bundle","start_char":15,"line":3},{"index_id":17,"token_group":10,"text":".","start_char":21,"line":3},{"index_id":18,"token_group":11,"text":"message","start_char":22,"line":3},{"index_id":19,"token_group":12,"text":"(","start_char":29,"line":3},{"index_id":20,"token_group":13,"text":"\"maven.select.maven.home.directory\"","start_char":30,"line":3},{"index_id":21,"token_group":14,"text":")","start_char":65,"line":3},{"index_id":22,"token_group":15,"text":",","start_char":66,"line":3},{"index_id":23,"token_group":16,"text":"\"\"","start_char":8,"line":4},{"index_id":24,"token_group":17,"text":",","start_char":10,"line":4},{"index_id":25,"token_group":18,"text":"null","start_char":8,"line":5},{"index_id":26,"token_group":19,"text":",","start_char":12,"line":5},{"index_id":27,"token_group":20,"text":"browse","start_char":14,"line":5},{"index_id":28,"token_group":21,"text":"Files","start_char":20,"line":5},{"index_id":29,"token_group":21,"text":"Listener","start_char":25,"line":5},{"index_id":30,"token_group":21,"text":".","start_char":33,"line":5},{"index_id":31,"token_group":22,"text":"single","start_char":34,"line":5},{"index_id":32,"token_group":23,"text":"Directory","start_char":41,"line":5},{"index_id":33,"token_group":23,"text":"Descriptor","start_char":51,"line":5},{"index_id":34,"token_group":23,"text":",","start_char":61,"line":5},{"index_id":35,"token_group":24,"text":"text","start_char":8,"line":6},{"index_id":36,"token_group":25,"text":"Component","start_char":12,"line":6},{"index_id":37,"token_group":25,"text":"Accessor","start_char":21,"line":6},{"index_id":38,"token_group":25,"text":".","start_char":29,"line":6},{"index_id":39,"token_group":26,"text":"text","start_char":30,"line":6},{"index_id":40,"token_group":27,"text":"Field","start_char":35,"line":6},{"index_id":41,"token_group":27,"text":"With","start_char":41,"line":6},{"index_id":42,"token_group":27,"text":"History","start_char":46,"line":6},{"index_id":43,"token_group":27,"text":"Whole","start_char":54,"line":6},{"index_id":44,"token_group":27,"text":"Text","start_char":60,"line":6},{"index_id":45,"token_group":27,"text":")","start_char":64,"line":6},{"index_id":46,"token_group":28,"text":";","start_char":65,"line":6},{"index_id":47,"token_group":29,"text":"maven","start_char":4,"line":7},{"index_id":48,"token_group":30,"text":"Home","start_char":9,"line":7},{"index_id":49,"token_group":30,"text":"Field","start_char":13,"line":7},{"index_id":50,"token_group":30,"text":".","start_char":18,"line":7},{"index_id":51,"token_group":31,"text":"add","start_char":19,"line":7},{"index_id":52,"token_group":32,"text":"Document","start_char":22,"line":7},{"index_id":53,"token_group":32,"text":"Listener","start_char":30,"line":7},{"index_id":54,"token_group":32,"text":"(","start_char":38,"line":7},{"index_id":55,"token_group":33,"text":"new","start_char":39,"line":7},{"index_id":56,"token_group":34,"text":"document","start_char":43,"line":7},{"index_id":57,"token_group":35,"text":"Adapter","start_char":51,"line":7},{"index_id":58,"token_group":35,"text":"(","start_char":58,"line":7},{"index_id":59,"token_group":36,"text":")","start_char":59,"line":7},{"index_id":60,"token_group":37,"text":"{","start_char":4,"line":8},{"index_id":61,"token_group":38,"text":"protected","start_char":8,"line":9},{"index_id":62,"token_group":39,"text":"void","start_char":18,"line":9},{"index_id":63,"token_group":40,"text":"text","start_char":23,"line":9},{"index_id":64,"token_group":41,"text":"Changed","start_char":27,"line":9},{"index_id":65,"token_group":41,"text":"(","start_char":34,"line":9},{"index_id":66,"token_group":42,"text":"document","start_char":35,"line":9},{"index_id":67,"token_group":43,"text":"Event","start_char":43,"line":9},{"index_id":68,"token_group":43,"text":"e","start_char":49,"line":9},{"index_id":69,"token_group":44,"text":")","start_char":50,"line":9},{"index_id":70,"token_group":45,"text":"{","start_char":8,"line":10},{"index_id":71,"token_group":46,"text":"update","start_char":12,"line":11},{"index_id":72,"token_group":47,"text":"Maven","start_char":18,"line":11},{"index_id":73,"token_group":47,"text":"Version","start_char":23,"line":11},{"index_id":74,"token_group":47,"text":"Label","start_char":30,"line":11},{"index_id":75,"token_group":47,"text":"(","start_char":35,"line":11},{"index_id":76,"token_group":48,"text":")","start_char":36,"line":11},{"index_id":77,"token_group":49,"text":";","start_char":37,"line":11},{"index_id":78,"token_group":50,"text":"}","start_char":8,"line":12},{"index_id":79,"token_group":51,"text":"}","start_char":4,"line":13},{"index_id":80,"token_group":52,"text":")","start_char":5,"line":13},{"index_id":81,"token_group":53,"text":";","start_char":6,"line":13},{"index_id":82,"token_group":54,"text":"settings","start_char":4,"line":15},{"index_id":83,"token_group":55,"text":"File","start_char":12,"line":15},{"index_id":84,"token_group":55,"text":"Component","start_char":16,"line":15},{"index_id":85,"token_group":55,"text":".","start_char":25,"line":15},{"index_id":86,"token_group":56,"text":"get","start_char":26,"line":15},{"index_id":87,"token_group":57,"text":"Component","start_char":29,"line":15},{"index_id":88,"token_group":57,"text":"(","start_char":38,"line":15},{"index_id":89,"token_group":58,"text":")","start_char":39,"line":15},{"index_id":90,"token_group":59,"text":".","start_char":40,"line":15},{"index_id":91,"token_group":60,"text":"add","start_char":41,"line":15},{"index_id":92,"token_group":61,"text":"Browse","start_char":44,"line":15},{"index_id":93,"token_group":61,"text":"Folder","start_char":50,"line":15},{"index_id":94,"token_group":61,"text":"Listener","start_char":56,"line":15},{"index_id":95,"token_group":61,"text":"(","start_char":64,"line":15},{"index_id":96,"token_group":62,"text":"project","start_char":8,"line":16},{"index_id":97,"token_group":63,"text":"Bundle","start_char":15,"line":16},{"index_id":98,"token_group":63,"text":".","start_char":21,"line":16},{"index_id":99,"token_group":64,"text":"message","start_char":22,"line":16},{"index_id":100,"token_group":65,"text":"(","start_char":29,"line":16},{"index_id":101,"token_group":66,"text":"\"maven.select.maven.settings.file\"","start_char":30,"line":16},{"index_id":102,"token_group":67,"text":")","start_char":64,"line":16},{"index_id":103,"token_group":68,"text":",","start_char":65,"line":16},{"index_id":104,"token_group":69,"text":"\"\"","start_char":67,"line":16},{"index_id":105,"token_group":70,"text":",","start_char":69,"line":16},{"index_id":106,"token_group":71,"text":"null","start_char":71,"line":16},{"index_id":107,"token_group":72,"text":",","start_char":75,"line":16},{"index_id":108,"token_group":73,"text":"file","start_char":8,"line":17},{"index_id":109,"token_group":74,"text":"Chooser","start_char":12,"line":17},{"index_id":110,"token_group":74,"text":"Descriptor","start_char":19,"line":17},{"index_id":111,"token_group":74,"text":"Factory","start_char":29,"line":17},{"index_id":112,"token_group":74,"text":".","start_char":36,"line":17},{"index_id":113,"token_group":75,"text":"create","start_char":37,"line":17},{"index_id":114,"token_group":76,"text":"Single","start_char":43,"line":17},{"index_id":115,"token_group":76,"text":"File","start_char":49,"line":17},{"index_id":116,"token_group":76,"text":"No","start_char":53,"line":17},{"index_id":117,"token_group":76,"text":"Jars","start_char":55,"line":17},{"index_id":118,"token_group":76,"text":"Descriptor","start_char":59,"line":17},{"index_id":119,"token_group":76,"text":"(","start_char":69,"line":17},{"index_id":120,"token_group":77,"text":")","start_char":70,"line":17},{"index_id":121,"token_group":78,"text":")","start_char":71,"line":17},{"index_id":122,"token_group":79,"text":";","start_char":72,"line":17},{"index_id":123,"token_group":80,"text":"local","start_char":4,"line":18},{"index_id":124,"token_group":81,"text":"Repository","start_char":9,"line":18},{"index_id":125,"token_group":81,"text":"Component","start_char":19,"line":18},{"index_id":126,"token_group":81,"text":".","start_char":28,"line":18},{"index_id":127,"token_group":82,"text":"get","start_char":29,"line":18},{"index_id":128,"token_group":83,"text":"Component","start_char":32,"line":18},{"index_id":129,"token_group":83,"text":"(","start_char":41,"line":18},{"index_id":130,"token_group":84,"text":")","start_char":42,"line":18},{"index_id":131,"token_group":85,"text":".","start_char":43,"line":18},{"index_id":132,"token_group":86,"text":"add","start_char":44,"line":18},{"index_id":133,"token_group":87,"text":"Browse","start_char":47,"line":18},{"index_id":134,"token_group":87,"text":"Folder","start_char":53,"line":18},{"index_id":135,"token_group":87,"text":"Listener","start_char":59,"line":18},{"index_id":136,"token_group":87,"text":"(","start_char":67,"line":18},{"index_id":137,"token_group":88,"text":"project","start_char":8,"line":19},{"index_id":138,"token_group":89,"text":"Bundle","start_char":15,"line":19},{"index_id":139,"token_group":89,"text":".","start_char":21,"line":19},{"index_id":140,"token_group":90,"text":"message","start_char":22,"line":19},{"index_id":141,"token_group":91,"text":"(","start_char":29,"line":19},{"index_id":142,"token_group":92,"text":"\"maven.select.local.repository\"","start_char":30,"line":19},{"index_id":143,"token_group":93,"text":")","start_char":61,"line":19},{"index_id":144,"token_group":94,"text":",","start_char":62,"line":19},{"index_id":145,"token_group":95,"text":"\"\"","start_char":64,"line":19},{"index_id":146,"token_group":96,"text":",","start_char":66,"line":19},{"index_id":147,"token_group":97,"text":"null","start_char":68,"line":19},{"index_id":148,"token_group":98,"text":",","start_char":72,"line":19},{"index_id":149,"token_group":99,"text":"file","start_char":8,"line":20},{"index_id":150,"token_group":100,"text":"Chooser","start_char":12,"line":20},{"index_id":151,"token_group":100,"text":"Descriptor","start_char":19,"line":20},{"index_id":152,"token_group":100,"text":"Factory","start_char":29,"line":20},{"index_id":153,"token_group":100,"text":".","start_char":36,"line":20},{"index_id":154,"token_group":101,"text":"create","start_char":37,"line":20},{"index_id":155,"token_group":102,"text":"Single","start_char":43,"line":20},{"index_id":156,"token_group":102,"text":"Folder","start_char":49,"line":20},{"index_id":157,"token_group":102,"text":"Descriptor","start_char":55,"line":20},{"index_id":158,"token_group":102,"text":"(","start_char":65,"line":20},{"index_id":159,"token_group":103,"text":")","start_char":66,"line":20},{"index_id":160,"token_group":104,"text":")","start_char":67,"line":20},{"index_id":161,"token_group":105,"text":";","start_char":68,"line":20},{"index_id":162,"token_group":106,"text":"return","start_char":4,"line":21},{"index_id":163,"token_group":107,"text":"panel","start_char":11,"line":21},{"index_id":164,"token_group":108,"text":";","start_char":16,"line":21},{"index_id":165,"token_group":109,"text":"}","start_char":0,"line":22}],"tokens_list":["{","maven","Home","Component",".","get","Component","(",")",".","add","Browse","Folder","Listener","(","project","Bundle",".","message","(","\"maven.select.maven.home.directory\"",")",",","\"\"",",","null",",","browse","Files","Listener",".","single","Directory","Descriptor",",","text","Component","Accessor",".","text","Field","With","History","Whole","Text",")",";","maven","Home","Field",".","add","Document","Listener","(","new","document","Adapter","(",")","{","protected","void","text","Changed","(","document","Event","e",")","{","update","Maven","Version","Label","(",")",";","}","}",")",";","settings","File","Component",".","get","Component","(",")",".","add","Browse","Folder","Listener","(","project","Bundle",".","message","(","\"maven.select.maven.settings.file\"",")",",","\"\"",",","null",",","file","Chooser","Descriptor","Factory",".","create","Single","File","No","Jars","Descriptor","(",")",")",";","local","Repository","Component",".","get","Component","(",")",".","add","Browse","Folder","Listener","(","project","Bundle",".","message","(","\"maven.select.local.repository\"",")",",","\"\"",",","null",",","file","Chooser","Descriptor","Factory",".","create","Single","Folder","Descriptor","(",")",")",";","return","panel",";","}"],"uuid":"a2614a46ae1d7725639236e6546fa822"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","query","Definition","<\/id>","<","<id>","blogs","Entry","<\/id>",">","<id>","query","Definition","<\/id>","=","<id>","","Status","In","Trash","Query","Definition","<\/id>",";","if","(","!","<id>","status","In","Trash","<\/id>",")","{","<id>","query","Definition","<\/id>","=","<id>","","Status","Any","Query","Definition","<\/id>",";","}","int","<id>","initial","Count","<\/id>","=","<id>","blogs","Entry","Local","Service","Util","<\/id>",".","<id>","get","Group","User","Entries","Count","<\/id>","(","<id>","","Group","<\/id>",".","<id>","get","Group","Id","<\/id>","(",")",",","<id>","","User","<\/id>",".","<id>","get","User","Id","<\/id>","(",")",",","new","<id>","date","<\/id>","(",")",",","<id>","query","Definition","<\/id>",")",";","<id>","add","Entry","<\/id>","(","false",")",";","<id>","add","Entry","<\/id>","(","true",")",";","int","<id>","actual","Count","<\/id>","=","<id>","blogs","Entry","Local","Service","Util","<\/id>",".","<id>","get","Group","User","Entries","Count","<\/id>","(","<id>","","Group","<\/id>",".","<id>","get","Group","Id","<\/id>","(",")",",","<id>","","User","<\/id>",".","<id>","get","User","Id","<\/id>","(",")",",","new","<id>","date","<\/id>","(",")",",","<id>","query","Definition","<\/id>",")",";","<id>","assert","<\/id>",".","<id>","assert","Equals","<\/id>","(","<id>","initial","Count","<\/id>","+","1",",","<id>","actual","Count","<\/id>",")",";","}","<SENTENCE_END\/>"],"file_name":"BlogsEntryLocalServiceTest.java","formatted_lines":["{",""," QueryDefinition<BlogsEntry> queryDefinition ="," _statusInTrashQueryDefinition;",""," if (!statusInTrash)"," {"," queryDefinition = _statusAnyQueryDefinition;"," }",""," int initialCount = BlogsEntryLocalServiceUtil.getGroupUserEntriesCount("," _group.getGroupId(), _user.getUserId(), new Date(),"," queryDefinition);",""," addEntry(false);"," addEntry(true);",""," int actualCount = BlogsEntryLocalServiceUtil.getGroupUserEntriesCount("," _group.getGroupId(), _user.getUserId(), new Date(),"," queryDefinition);",""," Assert.assertEquals(initialCount + 1, actualCount);","}"],"function_name":"testGetGroupUserEntriesCount","function_name_tokens":["test","get","group","user","entries","count"],"id_body_hash":"17ecb7be1168f16944f38baa425d2c47","id_same_identifier_list":[0,1,2,2,3,4,4,5,6,6,7,8,8,8,8,8,8,9,10,11,12,13,13,13,14,15,16,16,17,18,18,18,18,18,19,20,21,22,22,23,24,24,24,24,24,25,26,26,26,26,26,27,28,28,29,30,30,30,31,32,33,34,34,35,36,36,36,37,38,39,40,41,42,43,44,45,45,46,47,48,48,49,50,51,52,53,53,54,55,56,57,58,59,59,60,61,61,61,61,61,62,63,63,63,63,63,64,65,65,66,67,67,67,68,69,70,71,71,72,73,73,73,74,75,76,77,78,79,80,81,82,82,83,84,85,86,87,87,88,89,89,90,91,92,93,93,94,95,96,97],"option_correct":"testGetGroupUserEntriesCount","options":["testGetGroupUserEntries","testGetGroupEntriesCount","getGroupEntriesCount","setAssetLinkLocalService","replaceJoinAndWhere","testGetGroupUserEntriesCount","testGetGroupPortletPreferencesCountByOwnerAndPlidAndPortletExcludeDefault"],"options_nlp":["test get group user entries","test get group entries count","get group entries count","set asset link local service","replace join and where","test get group user entries count","test get group portlet preferences count by owner and plid and portlet exclude default"],"options_random":["setAssetLinkLocalService","replaceJoinAndWhere","testGetGroupPortletPreferencesCountByOwnerAndPlidAndPortletExcludeDefault"],"options_tfidf":["getGroupEntriesCount","testGetGroupEntriesCount","testGetGroupUserEntries"],"project_name":"liferay-portal","source_code_string":"protected void testGetGroupUserEntriesCount(boolean statusInTrash)\n\t\tthrows Exception {\n\n\t\tQueryDefinition<BlogsEntry> queryDefinition =\n\t\t\t_statusInTrashQueryDefinition;\n\n\t\tif (!statusInTrash) {\n\t\t\tqueryDefinition = _statusAnyQueryDefinition;\n\t\t}\n\n\t\tint initialCount = BlogsEntryLocalServiceUtil.getGroupUserEntriesCount(\n\t\t\t_group.getGroupId(), _user.getUserId(), new Date(),\n\t\t\tqueryDefinition);\n\n\t\taddEntry(false);\n\t\taddEntry(true);\n\n\t\tint actualCount = BlogsEntryLocalServiceUtil.getGroupUserEntriesCount(\n\t\t\t_group.getGroupId(), _user.getUserId(), new Date(),\n\t\t\tqueryDefinition);\n\n\t\tAssert.assertEquals(initialCount + 1, actualCount);\n\t}","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"query","start_char":4,"line":2},{"index_id":2,"token_group":2,"text":"Definition","start_char":9,"line":2},{"index_id":3,"token_group":2,"text":"<","start_char":19,"line":2},{"index_id":4,"token_group":3,"text":"blogs","start_char":20,"line":2},{"index_id":5,"token_group":4,"text":"Entry","start_char":25,"line":2},{"index_id":6,"token_group":4,"text":">","start_char":30,"line":2},{"index_id":7,"token_group":5,"text":"query","start_char":32,"line":2},{"index_id":8,"token_group":6,"text":"Definition","start_char":37,"line":2},{"index_id":9,"token_group":6,"text":"=","start_char":48,"line":2},{"index_id":10,"token_group":7,"text":"","start_char":49,"line":2},{"index_id":11,"token_group":8,"text":"Status","start_char":5,"line":3},{"index_id":12,"token_group":8,"text":"In","start_char":11,"line":3},{"index_id":13,"token_group":8,"text":"Trash","start_char":13,"line":3},{"index_id":14,"token_group":8,"text":"Query","start_char":18,"line":3},{"index_id":15,"token_group":8,"text":"Definition","start_char":23,"line":3},{"index_id":16,"token_group":8,"text":";","start_char":33,"line":3},{"index_id":17,"token_group":9,"text":"if","start_char":4,"line":5},{"index_id":18,"token_group":10,"text":"(","start_char":7,"line":5},{"index_id":19,"token_group":11,"text":"!","start_char":8,"line":5},{"index_id":20,"token_group":12,"text":"status","start_char":9,"line":5},{"index_id":21,"token_group":13,"text":"In","start_char":15,"line":5},{"index_id":22,"token_group":13,"text":"Trash","start_char":17,"line":5},{"index_id":23,"token_group":13,"text":")","start_char":22,"line":5},{"index_id":24,"token_group":14,"text":"{","start_char":4,"line":6},{"index_id":25,"token_group":15,"text":"query","start_char":8,"line":7},{"index_id":26,"token_group":16,"text":"Definition","start_char":13,"line":7},{"index_id":27,"token_group":16,"text":"=","start_char":24,"line":7},{"index_id":28,"token_group":17,"text":"","start_char":25,"line":7},{"index_id":29,"token_group":18,"text":"Status","start_char":27,"line":7},{"index_id":30,"token_group":18,"text":"Any","start_char":33,"line":7},{"index_id":31,"token_group":18,"text":"Query","start_char":36,"line":7},{"index_id":32,"token_group":18,"text":"Definition","start_char":41,"line":7},{"index_id":33,"token_group":18,"text":";","start_char":51,"line":7},{"index_id":34,"token_group":19,"text":"}","start_char":4,"line":8},{"index_id":35,"token_group":20,"text":"int","start_char":4,"line":10},{"index_id":36,"token_group":21,"text":"initial","start_char":8,"line":10},{"index_id":37,"token_group":22,"text":"Count","start_char":15,"line":10},{"index_id":38,"token_group":22,"text":"=","start_char":21,"line":10},{"index_id":39,"token_group":23,"text":"blogs","start_char":23,"line":10},{"index_id":40,"token_group":24,"text":"Entry","start_char":28,"line":10},{"index_id":41,"token_group":24,"text":"Local","start_char":33,"line":10},{"index_id":42,"token_group":24,"text":"Service","start_char":38,"line":10},{"index_id":43,"token_group":24,"text":"Util","start_char":45,"line":10},{"index_id":44,"token_group":24,"text":".","start_char":49,"line":10},{"index_id":45,"token_group":25,"text":"get","start_char":50,"line":10},{"index_id":46,"token_group":26,"text":"Group","start_char":53,"line":10},{"index_id":47,"token_group":26,"text":"User","start_char":58,"line":10},{"index_id":48,"token_group":26,"text":"Entries","start_char":62,"line":10},{"index_id":49,"token_group":26,"text":"Count","start_char":69,"line":10},{"index_id":50,"token_group":26,"text":"(","start_char":74,"line":10},{"index_id":51,"token_group":27,"text":"","start_char":75,"line":10},{"index_id":52,"token_group":28,"text":"Group","start_char":9,"line":11},{"index_id":53,"token_group":28,"text":".","start_char":14,"line":11},{"index_id":54,"token_group":29,"text":"get","start_char":15,"line":11},{"index_id":55,"token_group":30,"text":"Group","start_char":18,"line":11},{"index_id":56,"token_group":30,"text":"Id","start_char":23,"line":11},{"index_id":57,"token_group":30,"text":"(","start_char":25,"line":11},{"index_id":58,"token_group":31,"text":")","start_char":26,"line":11},{"index_id":59,"token_group":32,"text":",","start_char":27,"line":11},{"index_id":60,"token_group":33,"text":"","start_char":28,"line":11},{"index_id":61,"token_group":34,"text":"User","start_char":30,"line":11},{"index_id":62,"token_group":34,"text":".","start_char":34,"line":11},{"index_id":63,"token_group":35,"text":"get","start_char":35,"line":11},{"index_id":64,"token_group":36,"text":"User","start_char":38,"line":11},{"index_id":65,"token_group":36,"text":"Id","start_char":42,"line":11},{"index_id":66,"token_group":36,"text":"(","start_char":44,"line":11},{"index_id":67,"token_group":37,"text":")","start_char":45,"line":11},{"index_id":68,"token_group":38,"text":",","start_char":46,"line":11},{"index_id":69,"token_group":39,"text":"new","start_char":48,"line":11},{"index_id":70,"token_group":40,"text":"date","start_char":52,"line":11},{"index_id":71,"token_group":41,"text":"(","start_char":56,"line":11},{"index_id":72,"token_group":42,"text":")","start_char":57,"line":11},{"index_id":73,"token_group":43,"text":",","start_char":58,"line":11},{"index_id":74,"token_group":44,"text":"query","start_char":8,"line":12},{"index_id":75,"token_group":45,"text":"Definition","start_char":13,"line":12},{"index_id":76,"token_group":45,"text":")","start_char":23,"line":12},{"index_id":77,"token_group":46,"text":";","start_char":24,"line":12},{"index_id":78,"token_group":47,"text":"add","start_char":4,"line":14},{"index_id":79,"token_group":48,"text":"Entry","start_char":7,"line":14},{"index_id":80,"token_group":48,"text":"(","start_char":12,"line":14},{"index_id":81,"token_group":49,"text":"false","start_char":13,"line":14},{"index_id":82,"token_group":50,"text":")","start_char":18,"line":14},{"index_id":83,"token_group":51,"text":";","start_char":19,"line":14},{"index_id":84,"token_group":52,"text":"add","start_char":4,"line":15},{"index_id":85,"token_group":53,"text":"Entry","start_char":7,"line":15},{"index_id":86,"token_group":53,"text":"(","start_char":12,"line":15},{"index_id":87,"token_group":54,"text":"true","start_char":13,"line":15},{"index_id":88,"token_group":55,"text":")","start_char":17,"line":15},{"index_id":89,"token_group":56,"text":";","start_char":18,"line":15},{"index_id":90,"token_group":57,"text":"int","start_char":4,"line":17},{"index_id":91,"token_group":58,"text":"actual","start_char":8,"line":17},{"index_id":92,"token_group":59,"text":"Count","start_char":14,"line":17},{"index_id":93,"token_group":59,"text":"=","start_char":20,"line":17},{"index_id":94,"token_group":60,"text":"blogs","start_char":22,"line":17},{"index_id":95,"token_group":61,"text":"Entry","start_char":27,"line":17},{"index_id":96,"token_group":61,"text":"Local","start_char":32,"line":17},{"index_id":97,"token_group":61,"text":"Service","start_char":37,"line":17},{"index_id":98,"token_group":61,"text":"Util","start_char":44,"line":17},{"index_id":99,"token_group":61,"text":".","start_char":48,"line":17},{"index_id":100,"token_group":62,"text":"get","start_char":49,"line":17},{"index_id":101,"token_group":63,"text":"Group","start_char":52,"line":17},{"index_id":102,"token_group":63,"text":"User","start_char":57,"line":17},{"index_id":103,"token_group":63,"text":"Entries","start_char":61,"line":17},{"index_id":104,"token_group":63,"text":"Count","start_char":68,"line":17},{"index_id":105,"token_group":63,"text":"(","start_char":73,"line":17},{"index_id":106,"token_group":64,"text":"","start_char":74,"line":17},{"index_id":107,"token_group":65,"text":"Group","start_char":9,"line":18},{"index_id":108,"token_group":65,"text":".","start_char":14,"line":18},{"index_id":109,"token_group":66,"text":"get","start_char":15,"line":18},{"index_id":110,"token_group":67,"text":"Group","start_char":18,"line":18},{"index_id":111,"token_group":67,"text":"Id","start_char":23,"line":18},{"index_id":112,"token_group":67,"text":"(","start_char":25,"line":18},{"index_id":113,"token_group":68,"text":")","start_char":26,"line":18},{"index_id":114,"token_group":69,"text":",","start_char":27,"line":18},{"index_id":115,"token_group":70,"text":"","start_char":28,"line":18},{"index_id":116,"token_group":71,"text":"User","start_char":30,"line":18},{"index_id":117,"token_group":71,"text":".","start_char":34,"line":18},{"index_id":118,"token_group":72,"text":"get","start_char":35,"line":18},{"index_id":119,"token_group":73,"text":"User","start_char":38,"line":18},{"index_id":120,"token_group":73,"text":"Id","start_char":42,"line":18},{"index_id":121,"token_group":73,"text":"(","start_char":44,"line":18},{"index_id":122,"token_group":74,"text":")","start_char":45,"line":18},{"index_id":123,"token_group":75,"text":",","start_char":46,"line":18},{"index_id":124,"token_group":76,"text":"new","start_char":48,"line":18},{"index_id":125,"token_group":77,"text":"date","start_char":52,"line":18},{"index_id":126,"token_group":78,"text":"(","start_char":56,"line":18},{"index_id":127,"token_group":79,"text":")","start_char":57,"line":18},{"index_id":128,"token_group":80,"text":",","start_char":58,"line":18},{"index_id":129,"token_group":81,"text":"query","start_char":8,"line":19},{"index_id":130,"token_group":82,"text":"Definition","start_char":13,"line":19},{"index_id":131,"token_group":82,"text":")","start_char":23,"line":19},{"index_id":132,"token_group":83,"text":";","start_char":24,"line":19},{"index_id":133,"token_group":84,"text":"assert","start_char":4,"line":21},{"index_id":134,"token_group":85,"text":".","start_char":10,"line":21},{"index_id":135,"token_group":86,"text":"assert","start_char":11,"line":21},{"index_id":136,"token_group":87,"text":"Equals","start_char":17,"line":21},{"index_id":137,"token_group":87,"text":"(","start_char":23,"line":21},{"index_id":138,"token_group":88,"text":"initial","start_char":24,"line":21},{"index_id":139,"token_group":89,"text":"Count","start_char":31,"line":21},{"index_id":140,"token_group":89,"text":"+","start_char":37,"line":21},{"index_id":141,"token_group":90,"text":"1","start_char":39,"line":21},{"index_id":142,"token_group":91,"text":",","start_char":40,"line":21},{"index_id":143,"token_group":92,"text":"actual","start_char":42,"line":21},{"index_id":144,"token_group":93,"text":"Count","start_char":48,"line":21},{"index_id":145,"token_group":93,"text":")","start_char":53,"line":21},{"index_id":146,"token_group":94,"text":";","start_char":54,"line":21},{"index_id":147,"token_group":95,"text":"}","start_char":0,"line":22}],"tokens_list":["{","query","Definition","<","blogs","Entry",">","query","Definition","=","","Status","In","Trash","Query","Definition",";","if","(","!","status","In","Trash",")","{","query","Definition","=","","Status","Any","Query","Definition",";","}","int","initial","Count","=","blogs","Entry","Local","Service","Util",".","get","Group","User","Entries","Count","(","","Group",".","get","Group","Id","(",")",",","","User",".","get","User","Id","(",")",",","new","date","(",")",",","query","Definition",")",";","add","Entry","(","false",")",";","add","Entry","(","true",")",";","int","actual","Count","=","blogs","Entry","Local","Service","Util",".","get","Group","User","Entries","Count","(","","Group",".","get","Group","Id","(",")",",","","User",".","get","User","Id","(",")",",","new","date","(",")",",","query","Definition",")",";","assert",".","assert","Equals","(","initial","Count","+","1",",","actual","Count",")",";","}"],"uuid":"2fad111299e16965a7ec4ce39423e079"},{"cap_original_tokens":["<SENTENCE_START>","{","try","{","this",".","<id>","root","<\/id>","=","<id>","load","Resource","<\/id>","(","<id>","xml","Input","<\/id>",")",";","}","catch","(","<id>","parser","Configuration","Exception","<\/id>","<id>","e","<\/id>",")","{","throw","new","<id>","runtime","Exception","<\/id>","(","<id>","e","<\/id>",")",";","}","catch","(","<id>","sax","Exception","<\/id>","<id>","e","<\/id>",")","{","throw","new","<id>","runtime","Exception","<\/id>","(","<id>","e","<\/id>",")",";","}","catch","(","<id>","io","Exception","<\/id>","<id>","e","<\/id>",")","{","throw","new","<id>","runtime","Exception","<\/id>","(","<id>","e","<\/id>",")",";","}","}","<SENTENCE_END\/>"],"file_name":"QueueConfigurationParser.java","formatted_lines":["{"," try"," {"," this.root = loadResource(xmlInput);"," }"," catch (ParserConfigurationException e)"," {"," throw new RuntimeException(e);"," }"," catch (SAXException e)"," {"," throw new RuntimeException(e);"," }"," catch (IOException e)"," {"," throw new RuntimeException(e);"," }","}"],"function_name":"loadFrom","function_name_tokens":["load","from"],"id_body_hash":"500e916bf113a29d0f59b591b9db2e38","id_same_identifier_list":[0,1,2,3,4,5,6,7,8,8,9,10,10,11,12,13,14,15,16,16,16,17,18,19,20,21,22,22,23,24,25,26,27,28,29,30,30,31,32,33,34,35,36,36,37,38,39,40,41,42,43,44,44,45,46,47,48,49,50,50,51,52,53,54,55,56,57],"option_correct":"loadFrom","options":["loadFrom","setForce","loadTokensFromBucket","checkExpected","loadTokenFromBucket","getFilesCached","load"],"options_nlp":["load from","set force","load tokens from bucket","check expected","load token from bucket","get files cached","load"],"options_random":["setForce","checkExpected","getFilesCached"],"options_tfidf":["load","loadTokensFromBucket","loadTokenFromBucket"],"project_name":"hadoop-common","source_code_string":"private void loadFrom(InputStream xmlInput) {\n try {\n this.root = loadResource(xmlInput);\n } catch (ParserConfigurationException e) {\n throw new RuntimeException(e);\n } catch (SAXException e) {\n throw new RuntimeException(e);\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"try","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"{","start_char":4,"line":2},{"index_id":3,"token_group":3,"text":"this","start_char":8,"line":3},{"index_id":4,"token_group":4,"text":".","start_char":12,"line":3},{"index_id":5,"token_group":5,"text":"root","start_char":13,"line":3},{"index_id":6,"token_group":6,"text":"=","start_char":18,"line":3},{"index_id":7,"token_group":7,"text":"load","start_char":20,"line":3},{"index_id":8,"token_group":8,"text":"Resource","start_char":24,"line":3},{"index_id":9,"token_group":8,"text":"(","start_char":32,"line":3},{"index_id":10,"token_group":9,"text":"xml","start_char":33,"line":3},{"index_id":11,"token_group":10,"text":"Input","start_char":36,"line":3},{"index_id":12,"token_group":10,"text":")","start_char":41,"line":3},{"index_id":13,"token_group":11,"text":";","start_char":42,"line":3},{"index_id":14,"token_group":12,"text":"}","start_char":4,"line":4},{"index_id":15,"token_group":13,"text":"catch","start_char":4,"line":5},{"index_id":16,"token_group":14,"text":"(","start_char":10,"line":5},{"index_id":17,"token_group":15,"text":"parser","start_char":11,"line":5},{"index_id":18,"token_group":16,"text":"Configuration","start_char":17,"line":5},{"index_id":19,"token_group":16,"text":"Exception","start_char":30,"line":5},{"index_id":20,"token_group":16,"text":"e","start_char":40,"line":5},{"index_id":21,"token_group":17,"text":")","start_char":41,"line":5},{"index_id":22,"token_group":18,"text":"{","start_char":4,"line":6},{"index_id":23,"token_group":19,"text":"throw","start_char":8,"line":7},{"index_id":24,"token_group":20,"text":"new","start_char":14,"line":7},{"index_id":25,"token_group":21,"text":"runtime","start_char":18,"line":7},{"index_id":26,"token_group":22,"text":"Exception","start_char":25,"line":7},{"index_id":27,"token_group":22,"text":"(","start_char":34,"line":7},{"index_id":28,"token_group":23,"text":"e","start_char":35,"line":7},{"index_id":29,"token_group":24,"text":")","start_char":36,"line":7},{"index_id":30,"token_group":25,"text":";","start_char":37,"line":7},{"index_id":31,"token_group":26,"text":"}","start_char":4,"line":8},{"index_id":32,"token_group":27,"text":"catch","start_char":4,"line":9},{"index_id":33,"token_group":28,"text":"(","start_char":10,"line":9},{"index_id":34,"token_group":29,"text":"sax","start_char":11,"line":9},{"index_id":35,"token_group":30,"text":"Exception","start_char":14,"line":9},{"index_id":36,"token_group":30,"text":"e","start_char":24,"line":9},{"index_id":37,"token_group":31,"text":")","start_char":25,"line":9},{"index_id":38,"token_group":32,"text":"{","start_char":4,"line":10},{"index_id":39,"token_group":33,"text":"throw","start_char":8,"line":11},{"index_id":40,"token_group":34,"text":"new","start_char":14,"line":11},{"index_id":41,"token_group":35,"text":"runtime","start_char":18,"line":11},{"index_id":42,"token_group":36,"text":"Exception","start_char":25,"line":11},{"index_id":43,"token_group":36,"text":"(","start_char":34,"line":11},{"index_id":44,"token_group":37,"text":"e","start_char":35,"line":11},{"index_id":45,"token_group":38,"text":")","start_char":36,"line":11},{"index_id":46,"token_group":39,"text":";","start_char":37,"line":11},{"index_id":47,"token_group":40,"text":"}","start_char":4,"line":12},{"index_id":48,"token_group":41,"text":"catch","start_char":4,"line":13},{"index_id":49,"token_group":42,"text":"(","start_char":10,"line":13},{"index_id":50,"token_group":43,"text":"io","start_char":11,"line":13},{"index_id":51,"token_group":44,"text":"Exception","start_char":13,"line":13},{"index_id":52,"token_group":44,"text":"e","start_char":23,"line":13},{"index_id":53,"token_group":45,"text":")","start_char":24,"line":13},{"index_id":54,"token_group":46,"text":"{","start_char":4,"line":14},{"index_id":55,"token_group":47,"text":"throw","start_char":8,"line":15},{"index_id":56,"token_group":48,"text":"new","start_char":14,"line":15},{"index_id":57,"token_group":49,"text":"runtime","start_char":18,"line":15},{"index_id":58,"token_group":50,"text":"Exception","start_char":25,"line":15},{"index_id":59,"token_group":50,"text":"(","start_char":34,"line":15},{"index_id":60,"token_group":51,"text":"e","start_char":35,"line":15},{"index_id":61,"token_group":52,"text":")","start_char":36,"line":15},{"index_id":62,"token_group":53,"text":";","start_char":37,"line":15},{"index_id":63,"token_group":54,"text":"}","start_char":4,"line":16},{"index_id":64,"token_group":55,"text":"}","start_char":0,"line":17}],"tokens_list":["{","try","{","this",".","root","=","load","Resource","(","xml","Input",")",";","}","catch","(","parser","Configuration","Exception","e",")","{","throw","new","runtime","Exception","(","e",")",";","}","catch","(","sax","Exception","e",")","{","throw","new","runtime","Exception","(","e",")",";","}","catch","(","io","Exception","e",")","{","throw","new","runtime","Exception","(","e",")",";","}","}"],"uuid":"5f6a96e532dc4ae9c34e3ba6ae8e283d"}]