-
Notifications
You must be signed in to change notification settings - Fork 1
/
experiment_0000007.json
1 lines (1 loc) · 199 KB
/
experiment_0000007.json
1
[{"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>","collection","<\/id>","<","<id>","string","<\/id>",">","<id>","activated","Profiles","<\/id>","=","<id>","my","Mark","State","Descriptor","<\/id>",".","<id>","get","Activated","Profiles","<\/id>","(",")",";","<id>","maven","Explicit","Profiles","<\/id>","<id>","new","Selected","Profiles","<\/id>","=","<id>","maven","Explicit","Profiles","<\/id>",".","<id>","none","<\/id>",".","<id>","clone","<\/id>","(",")",";","for","(","<id>","map","<\/id>",".","<id>","entry","<\/id>","<","<id>","string","<\/id>",",","<id>","maven","Profile","Kind","<\/id>",">","<id>","entry","<\/id>",":","<id>","profile","Chooser","<\/id>",".","<id>","get","Element","Mark","States","<\/id>","(",")",".","<id>","entry","Set","<\/id>","(",")",")","{","<id>","string","<\/id>","<id>","profile","<\/id>","=","<id>","entry","<\/id>",".","<id>","get","Key","<\/id>","(",")",";","<id>","maven","Profile","Kind","<\/id>","<id>","profile","Kind","<\/id>","=","<id>","entry","<\/id>",".","<id>","get","Value","<\/id>","(",")",";","switch","(","<id>","profile","Kind","<\/id>",")","{","case","<id>","none","<\/id>",":","if","(","<id>","activated","Profiles","<\/id>",".","<id>","contains","<\/id>","(","<id>","profile","<\/id>",")",")","{","<id>","new","Selected","Profiles","<\/id>",".","<id>","get","Disabled","Profiles","<\/id>","(",")",".","<id>","add","<\/id>","(","<id>","profile","<\/id>",")",";","}","break",";","case","<id>","explicit","<\/id>",":","<id>","new","Selected","Profiles","<\/id>",".","<id>","get","Enabled","Profiles","<\/id>","(",")",".","<id>","add","<\/id>","(","<id>","profile","<\/id>",")",";","break",";","case","<id>","implicit","<\/id>",":","break",";","}","}","return","<id>","get","Builder","<\/id>","(",")",".","<id>","set","Selected","Profiles","<\/id>","(","<id>","new","Selected","Profiles","<\/id>",")",";","}","<SENTENCE_END\/>"],"file_name":"SelectProfilesStep.java","formatted_lines":["{"," Collection<String> activatedProfiles = myMarkStateDescriptor.getActivatedProfiles();"," MavenExplicitProfiles newSelectedProfiles = MavenExplicitProfiles.NONE.clone();"," for (Map.Entry<String, MavenProfileKind> entry : profileChooser.getElementMarkStates().entrySet())"," {"," String profile = entry.getKey();"," MavenProfileKind profileKind = entry.getValue();"," switch (profileKind)"," {"," case NONE:"," if (activatedProfiles.contains(profile))"," {"," newSelectedProfiles.getDisabledProfiles().add(profile);"," }"," break;"," case EXPLICIT:"," newSelectedProfiles.getEnabledProfiles().add(profile);"," break;"," case IMPLICIT:"," break;"," }"," }"," return getBuilder().setSelectedProfiles(newSelectedProfiles);","}"],"function_name":"validate","function_name_tokens":["validate"],"id_body_hash":"f4bb67195ca208972cea2c9ebb9dd204","id_same_identifier_list":[0,1,2,3,4,5,6,6,7,8,8,8,8,9,10,10,10,11,12,13,14,14,14,15,15,15,16,17,17,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,33,33,34,35,36,37,37,38,39,39,39,39,40,41,42,43,43,44,45,46,47,48,49,50,51,52,53,53,54,55,56,57,57,57,58,58,59,60,61,62,62,63,64,65,66,67,68,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,84,84,85,86,86,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,101,101,102,103,103,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,122,123,124,125,126,126,126,127,128,128,128,129,130,131,132],"option_correct":"validate","options":["assertSubBars","validateNode","parseWithoutBuildingTree","validateData","testCollectionsEmptySetInMethodCall","validate","doValidate"],"options_nlp":["assert sub bars","validate node","parse without building tree","validate data","test collections empty set in method call","validate","do validate"],"options_random":["assertSubBars","testCollectionsEmptySetInMethodCall","parseWithoutBuildingTree"],"options_tfidf":["validateData","validateNode","doValidate"],"project_name":"intellij-community","source_code_string":"public boolean validate() throws ConfigurationException {\n Collection<String> activatedProfiles = myMarkStateDescriptor.getActivatedProfiles();\n MavenExplicitProfiles newSelectedProfiles = MavenExplicitProfiles.NONE.clone();\n for (Map.Entry<String, MavenProfileKind> entry : profileChooser.getElementMarkStates().entrySet()) {\n String profile = entry.getKey();\n MavenProfileKind profileKind = entry.getValue();\n switch (profileKind) {\n case NONE:\n if (activatedProfiles.contains(profile)) {\n newSelectedProfiles.getDisabledProfiles().add(profile);\n }\n break;\n case EXPLICIT:\n newSelectedProfiles.getEnabledProfiles().add(profile);\n break;\n case IMPLICIT:\n break;\n }\n }\n return getBuilder().setSelectedProfiles(newSelectedProfiles);\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"collection","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"<","start_char":14,"line":1},{"index_id":3,"token_group":3,"text":"string","start_char":15,"line":1},{"index_id":4,"token_group":4,"text":">","start_char":21,"line":1},{"index_id":5,"token_group":5,"text":"activated","start_char":23,"line":1},{"index_id":6,"token_group":6,"text":"Profiles","start_char":32,"line":1},{"index_id":7,"token_group":6,"text":"=","start_char":41,"line":1},{"index_id":8,"token_group":7,"text":"my","start_char":43,"line":1},{"index_id":9,"token_group":8,"text":"Mark","start_char":45,"line":1},{"index_id":10,"token_group":8,"text":"State","start_char":49,"line":1},{"index_id":11,"token_group":8,"text":"Descriptor","start_char":54,"line":1},{"index_id":12,"token_group":8,"text":".","start_char":64,"line":1},{"index_id":13,"token_group":9,"text":"get","start_char":65,"line":1},{"index_id":14,"token_group":10,"text":"Activated","start_char":68,"line":1},{"index_id":15,"token_group":10,"text":"Profiles","start_char":77,"line":1},{"index_id":16,"token_group":10,"text":"(","start_char":85,"line":1},{"index_id":17,"token_group":11,"text":")","start_char":86,"line":1},{"index_id":18,"token_group":12,"text":";","start_char":87,"line":1},{"index_id":19,"token_group":13,"text":"maven","start_char":4,"line":2},{"index_id":20,"token_group":14,"text":"Explicit","start_char":9,"line":2},{"index_id":21,"token_group":14,"text":"Profiles","start_char":17,"line":2},{"index_id":22,"token_group":14,"text":"new","start_char":26,"line":2},{"index_id":23,"token_group":15,"text":"Selected","start_char":29,"line":2},{"index_id":24,"token_group":15,"text":"Profiles","start_char":37,"line":2},{"index_id":25,"token_group":15,"text":"=","start_char":46,"line":2},{"index_id":26,"token_group":16,"text":"maven","start_char":48,"line":2},{"index_id":27,"token_group":17,"text":"Explicit","start_char":53,"line":2},{"index_id":28,"token_group":17,"text":"Profiles","start_char":61,"line":2},{"index_id":29,"token_group":17,"text":".","start_char":69,"line":2},{"index_id":30,"token_group":18,"text":"none","start_char":70,"line":2},{"index_id":31,"token_group":19,"text":".","start_char":74,"line":2},{"index_id":32,"token_group":20,"text":"clone","start_char":75,"line":2},{"index_id":33,"token_group":21,"text":"(","start_char":80,"line":2},{"index_id":34,"token_group":22,"text":")","start_char":81,"line":2},{"index_id":35,"token_group":23,"text":";","start_char":82,"line":2},{"index_id":36,"token_group":24,"text":"for","start_char":4,"line":3},{"index_id":37,"token_group":25,"text":"(","start_char":8,"line":3},{"index_id":38,"token_group":26,"text":"map","start_char":9,"line":3},{"index_id":39,"token_group":27,"text":".","start_char":12,"line":3},{"index_id":40,"token_group":28,"text":"entry","start_char":13,"line":3},{"index_id":41,"token_group":29,"text":"<","start_char":18,"line":3},{"index_id":42,"token_group":30,"text":"string","start_char":19,"line":3},{"index_id":43,"token_group":31,"text":",","start_char":25,"line":3},{"index_id":44,"token_group":32,"text":"maven","start_char":27,"line":3},{"index_id":45,"token_group":33,"text":"Profile","start_char":32,"line":3},{"index_id":46,"token_group":33,"text":"Kind","start_char":39,"line":3},{"index_id":47,"token_group":33,"text":">","start_char":43,"line":3},{"index_id":48,"token_group":34,"text":"entry","start_char":45,"line":3},{"index_id":49,"token_group":35,"text":":","start_char":51,"line":3},{"index_id":50,"token_group":36,"text":"profile","start_char":53,"line":3},{"index_id":51,"token_group":37,"text":"Chooser","start_char":60,"line":3},{"index_id":52,"token_group":37,"text":".","start_char":67,"line":3},{"index_id":53,"token_group":38,"text":"get","start_char":68,"line":3},{"index_id":54,"token_group":39,"text":"Element","start_char":71,"line":3},{"index_id":55,"token_group":39,"text":"Mark","start_char":78,"line":3},{"index_id":56,"token_group":39,"text":"States","start_char":82,"line":3},{"index_id":57,"token_group":39,"text":"(","start_char":88,"line":3},{"index_id":58,"token_group":40,"text":")","start_char":89,"line":3},{"index_id":59,"token_group":41,"text":".","start_char":90,"line":3},{"index_id":60,"token_group":42,"text":"entry","start_char":91,"line":3},{"index_id":61,"token_group":43,"text":"Set","start_char":96,"line":3},{"index_id":62,"token_group":43,"text":"(","start_char":99,"line":3},{"index_id":63,"token_group":44,"text":")","start_char":100,"line":3},{"index_id":64,"token_group":45,"text":")","start_char":101,"line":3},{"index_id":65,"token_group":46,"text":"{","start_char":4,"line":4},{"index_id":66,"token_group":47,"text":"string","start_char":8,"line":5},{"index_id":67,"token_group":48,"text":"profile","start_char":15,"line":5},{"index_id":68,"token_group":49,"text":"=","start_char":23,"line":5},{"index_id":69,"token_group":50,"text":"entry","start_char":25,"line":5},{"index_id":70,"token_group":51,"text":".","start_char":30,"line":5},{"index_id":71,"token_group":52,"text":"get","start_char":31,"line":5},{"index_id":72,"token_group":53,"text":"Key","start_char":34,"line":5},{"index_id":73,"token_group":53,"text":"(","start_char":37,"line":5},{"index_id":74,"token_group":54,"text":")","start_char":38,"line":5},{"index_id":75,"token_group":55,"text":";","start_char":39,"line":5},{"index_id":76,"token_group":56,"text":"maven","start_char":8,"line":6},{"index_id":77,"token_group":57,"text":"Profile","start_char":13,"line":6},{"index_id":78,"token_group":57,"text":"Kind","start_char":20,"line":6},{"index_id":79,"token_group":57,"text":"profile","start_char":25,"line":6},{"index_id":80,"token_group":58,"text":"Kind","start_char":32,"line":6},{"index_id":81,"token_group":58,"text":"=","start_char":37,"line":6},{"index_id":82,"token_group":59,"text":"entry","start_char":39,"line":6},{"index_id":83,"token_group":60,"text":".","start_char":44,"line":6},{"index_id":84,"token_group":61,"text":"get","start_char":45,"line":6},{"index_id":85,"token_group":62,"text":"Value","start_char":48,"line":6},{"index_id":86,"token_group":62,"text":"(","start_char":53,"line":6},{"index_id":87,"token_group":63,"text":")","start_char":54,"line":6},{"index_id":88,"token_group":64,"text":";","start_char":55,"line":6},{"index_id":89,"token_group":65,"text":"switch","start_char":8,"line":7},{"index_id":90,"token_group":66,"text":"(","start_char":15,"line":7},{"index_id":91,"token_group":67,"text":"profile","start_char":16,"line":7},{"index_id":92,"token_group":68,"text":"Kind","start_char":23,"line":7},{"index_id":93,"token_group":68,"text":")","start_char":27,"line":7},{"index_id":94,"token_group":69,"text":"{","start_char":8,"line":8},{"index_id":95,"token_group":70,"text":"case","start_char":8,"line":9},{"index_id":96,"token_group":71,"text":"none","start_char":13,"line":9},{"index_id":97,"token_group":72,"text":":","start_char":17,"line":9},{"index_id":98,"token_group":73,"text":"if","start_char":12,"line":10},{"index_id":99,"token_group":74,"text":"(","start_char":15,"line":10},{"index_id":100,"token_group":75,"text":"activated","start_char":16,"line":10},{"index_id":101,"token_group":76,"text":"Profiles","start_char":25,"line":10},{"index_id":102,"token_group":76,"text":".","start_char":33,"line":10},{"index_id":103,"token_group":77,"text":"contains","start_char":34,"line":10},{"index_id":104,"token_group":78,"text":"(","start_char":42,"line":10},{"index_id":105,"token_group":79,"text":"profile","start_char":43,"line":10},{"index_id":106,"token_group":80,"text":")","start_char":50,"line":10},{"index_id":107,"token_group":81,"text":")","start_char":51,"line":10},{"index_id":108,"token_group":82,"text":"{","start_char":12,"line":11},{"index_id":109,"token_group":83,"text":"new","start_char":16,"line":12},{"index_id":110,"token_group":84,"text":"Selected","start_char":19,"line":12},{"index_id":111,"token_group":84,"text":"Profiles","start_char":27,"line":12},{"index_id":112,"token_group":84,"text":".","start_char":35,"line":12},{"index_id":113,"token_group":85,"text":"get","start_char":36,"line":12},{"index_id":114,"token_group":86,"text":"Disabled","start_char":39,"line":12},{"index_id":115,"token_group":86,"text":"Profiles","start_char":47,"line":12},{"index_id":116,"token_group":86,"text":"(","start_char":55,"line":12},{"index_id":117,"token_group":87,"text":")","start_char":56,"line":12},{"index_id":118,"token_group":88,"text":".","start_char":57,"line":12},{"index_id":119,"token_group":89,"text":"add","start_char":58,"line":12},{"index_id":120,"token_group":90,"text":"(","start_char":61,"line":12},{"index_id":121,"token_group":91,"text":"profile","start_char":62,"line":12},{"index_id":122,"token_group":92,"text":")","start_char":69,"line":12},{"index_id":123,"token_group":93,"text":";","start_char":70,"line":12},{"index_id":124,"token_group":94,"text":"}","start_char":12,"line":13},{"index_id":125,"token_group":95,"text":"break","start_char":12,"line":14},{"index_id":126,"token_group":96,"text":";","start_char":17,"line":14},{"index_id":127,"token_group":97,"text":"case","start_char":8,"line":15},{"index_id":128,"token_group":98,"text":"explicit","start_char":13,"line":15},{"index_id":129,"token_group":99,"text":":","start_char":21,"line":15},{"index_id":130,"token_group":100,"text":"new","start_char":12,"line":16},{"index_id":131,"token_group":101,"text":"Selected","start_char":15,"line":16},{"index_id":132,"token_group":101,"text":"Profiles","start_char":23,"line":16},{"index_id":133,"token_group":101,"text":".","start_char":31,"line":16},{"index_id":134,"token_group":102,"text":"get","start_char":32,"line":16},{"index_id":135,"token_group":103,"text":"Enabled","start_char":35,"line":16},{"index_id":136,"token_group":103,"text":"Profiles","start_char":42,"line":16},{"index_id":137,"token_group":103,"text":"(","start_char":50,"line":16},{"index_id":138,"token_group":104,"text":")","start_char":51,"line":16},{"index_id":139,"token_group":105,"text":".","start_char":52,"line":16},{"index_id":140,"token_group":106,"text":"add","start_char":53,"line":16},{"index_id":141,"token_group":107,"text":"(","start_char":56,"line":16},{"index_id":142,"token_group":108,"text":"profile","start_char":57,"line":16},{"index_id":143,"token_group":109,"text":")","start_char":64,"line":16},{"index_id":144,"token_group":110,"text":";","start_char":65,"line":16},{"index_id":145,"token_group":111,"text":"break","start_char":12,"line":17},{"index_id":146,"token_group":112,"text":";","start_char":17,"line":17},{"index_id":147,"token_group":113,"text":"case","start_char":8,"line":18},{"index_id":148,"token_group":114,"text":"implicit","start_char":13,"line":18},{"index_id":149,"token_group":115,"text":":","start_char":21,"line":18},{"index_id":150,"token_group":116,"text":"break","start_char":12,"line":19},{"index_id":151,"token_group":117,"text":";","start_char":17,"line":19},{"index_id":152,"token_group":118,"text":"}","start_char":8,"line":20},{"index_id":153,"token_group":119,"text":"}","start_char":4,"line":21},{"index_id":154,"token_group":120,"text":"return","start_char":4,"line":22},{"index_id":155,"token_group":121,"text":"get","start_char":11,"line":22},{"index_id":156,"token_group":122,"text":"Builder","start_char":14,"line":22},{"index_id":157,"token_group":122,"text":"(","start_char":21,"line":22},{"index_id":158,"token_group":123,"text":")","start_char":22,"line":22},{"index_id":159,"token_group":124,"text":".","start_char":23,"line":22},{"index_id":160,"token_group":125,"text":"set","start_char":24,"line":22},{"index_id":161,"token_group":126,"text":"Selected","start_char":27,"line":22},{"index_id":162,"token_group":126,"text":"Profiles","start_char":35,"line":22},{"index_id":163,"token_group":126,"text":"(","start_char":43,"line":22},{"index_id":164,"token_group":127,"text":"new","start_char":44,"line":22},{"index_id":165,"token_group":128,"text":"Selected","start_char":47,"line":22},{"index_id":166,"token_group":128,"text":"Profiles","start_char":55,"line":22},{"index_id":167,"token_group":128,"text":")","start_char":63,"line":22},{"index_id":168,"token_group":129,"text":";","start_char":64,"line":22},{"index_id":169,"token_group":130,"text":"}","start_char":0,"line":23}],"tokens_list":["{","collection","<","string",">","activated","Profiles","=","my","Mark","State","Descriptor",".","get","Activated","Profiles","(",")",";","maven","Explicit","Profiles","new","Selected","Profiles","=","maven","Explicit","Profiles",".","none",".","clone","(",")",";","for","(","map",".","entry","<","string",",","maven","Profile","Kind",">","entry",":","profile","Chooser",".","get","Element","Mark","States","(",")",".","entry","Set","(",")",")","{","string","profile","=","entry",".","get","Key","(",")",";","maven","Profile","Kind","profile","Kind","=","entry",".","get","Value","(",")",";","switch","(","profile","Kind",")","{","case","none",":","if","(","activated","Profiles",".","contains","(","profile",")",")","{","new","Selected","Profiles",".","get","Disabled","Profiles","(",")",".","add","(","profile",")",";","}","break",";","case","explicit",":","new","Selected","Profiles",".","get","Enabled","Profiles","(",")",".","add","(","profile",")",";","break",";","case","implicit",":","break",";","}","}","return","get","Builder","(",")",".","set","Selected","Profiles","(","new","Selected","Profiles",")",";","}"],"uuid":"233f2946f23f0020681f237064ecd689"},{"cap_original_tokens":["<SENTENCE_START>","{","return","<id>","total","Splits","<\/id>",";","}","<SENTENCE_END\/>"],"file_name":"QueryStats.java","formatted_lines":["{"," return totalSplits;","}"],"function_name":"getTotalSplits","function_name_tokens":["get","total","splits"],"id_body_hash":"2e3b44c8cee95071bd99638844cbcc87","id_same_identifier_list":[0,1,2,3,3,4,5,6],"option_correct":"getTotalSplits","options":["getTotalSplits","getSplits","getPartitionSplits","getColumnTypes","getAllSplits","copyTable","testApproximateQueryCountCustkey"],"options_nlp":["get total splits","get splits","get partition splits","get column types","get all splits","copy table","test approximate query count custkey"],"options_random":["getColumnTypes","copyTable","testApproximateQueryCountCustkey"],"options_tfidf":["getPartitionSplits","getSplits","getAllSplits"],"project_name":"presto","source_code_string":"public int getTotalSplits()\n {\n return totalSplits;\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":"total","start_char":11,"line":1},{"index_id":3,"token_group":3,"text":"Splits","start_char":16,"line":1},{"index_id":4,"token_group":3,"text":";","start_char":22,"line":1},{"index_id":5,"token_group":4,"text":"}","start_char":0,"line":2}],"tokens_list":["{","return","total","Splits",";","}"],"uuid":"471f2eab813434908acd9d9c24988976"},{"cap_original_tokens":["<SENTENCE_START>","{","final","<id>","ee","Resource","Reference","Processor","Registry","<\/id>","<id>","registry","<\/id>","=","<id>","phase","Context","<\/id>",".","<id>","get","Deployment","Unit","<\/id>","(",")",".","<id>","get","Attachment","<\/id>","(","<id>","attachments","<\/id>",".","<id>","resource","Reference","Processor","Registry","<\/id>",")",";","final","<id>","annotation","Value","<\/id>","<id>","lookup","Annotation","<\/id>","=","<id>","annotation","<\/id>",".","<id>","value","<\/id>","(","\"lookup\"",")",";","<id>","string","<\/id>","<id>","lookup","<\/id>","=","(","<id>","lookup","Annotation","<\/id>","==","null",")","?","null",":","<id>","replacer","<\/id>",".","<id>","replace","Properties","<\/id>","(","<id>","lookup","Annotation","<\/id>",".","<id>","as","String","<\/id>","(",")",")",";","if","(","<id>","is","Empty","<\/id>","(","<id>","lookup","<\/id>",")",")","{","final","<id>","annotation","Value","<\/id>","<id>","mapped","Name","Annotation","Value","<\/id>","=","<id>","annotation","<\/id>",".","<id>","value","<\/id>","(","\"mappedName\"",")",";","<id>","lookup","<\/id>","=","(","<id>","mapped","Name","Annotation","Value","<\/id>","==","null",")","?","null",":","<id>","replacer","<\/id>",".","<id>","replace","Properties","<\/id>","(","<id>","mapped","Name","Annotation","Value","<\/id>",".","<id>","as","String","<\/id>","(",")",")",";","}","if","(","<id>","is","Empty","<\/id>","(","<id>","lookup","<\/id>",")","&&","<id>","fixed","Locations","<\/id>",".","<id>","contains","Key","<\/id>","(","<id>","injection","Type","<\/id>",")",")","{","<id>","lookup","<\/id>","=","<id>","fixed","Locations","<\/id>",".","<id>","get","<\/id>","(","<id>","injection","Type","<\/id>",")",";","}","<id>","injection","Source","<\/id>","<id>","value","Source","<\/id>","=","null",";","final","boolean","<id>","is","Env","Entry","Type","<\/id>","=","this",".","<id>","is","Env","Entry","Type","<\/id>","(","<id>","injection","Type","<\/id>",",","<id>","module","<\/id>",")",";","if","(","!","<id>","is","Empty","<\/id>","(","<id>","lookup","<\/id>",")",")","{","<id>","value","Source","<\/id>","=","new","<id>","lookup","Injection","Source","<\/id>","(","<id>","lookup","<\/id>",",","<id>","javax","Naming","Context","<\/id>",".","<id>","equals","<\/id>","(","<id>","injection","Type","<\/id>",")",")",";","}","else","if","(","<id>","is","Env","Entry","Type","<\/id>",")","{","}","else","{","final","<id>","ee","Resource","Reference","Processor","<\/id>","<id>","resource","Reference","Processor","<\/id>","=","<id>","registry","<\/id>",".","<id>","get","Resource","Reference","Processor","<\/id>","(","<id>","injection","Type","<\/id>",")",";","if","(","<id>","resource","Reference","Processor","<\/id>","!=","null",")","{","<id>","value","Source","<\/id>","=","<id>","resource","Reference","Processor","<\/id>",".","<id>","get","Resource","Reference","Binding","Source","<\/id>","(",")",";","}","}","if","(","<id>","value","Source","<\/id>","==","null",")","{","if","(","<id>","target","Description","<\/id>","!=","null",")","{","final","<id>","lookup","Injection","Source","<\/id>","<id>","optional","Injection","<\/id>","=","new","<id>","lookup","Injection","Source","<\/id>","(","<id>","local","Context","Name","<\/id>",",","true",")",";","final","<id>","resource","Injection","Configuration","<\/id>","<id>","injection","Configuration","<\/id>","=","new","<id>","resource","Injection","Configuration","<\/id>","(","<id>","target","Description","<\/id>",",","<id>","optional","Injection","<\/id>",",","true",")",";","<id>","class","Description","<\/id>",".","<id>","add","Resource","Injection","<\/id>","(","<id>","injection","Configuration","<\/id>",")",";","}","}","else","{","final","<id>","injection","Source","<\/id>","<id>","injection","Source","<\/id>","=","new","<id>","lookup","Injection","Source","<\/id>","(","<id>","local","Context","Name","<\/id>",")",";","final","<id>","resource","Injection","Configuration","<\/id>","<id>","injection","Configuration","<\/id>","=","<id>","target","Description","<\/id>","!=","null","?","new","<id>","resource","Injection","Configuration","<\/id>","(","<id>","target","Description","<\/id>",",","<id>","injection","Source","<\/id>",")",":","null",";","final","<id>","binding","Configuration","<\/id>","<id>","binding","Configuration","<\/id>","=","new","<id>","binding","Configuration","<\/id>","(","<id>","local","Context","Name","<\/id>",",","<id>","value","Source","<\/id>",")",";","<id>","class","Description","<\/id>",".","<id>","get","Binding","Configurations","<\/id>","(",")",".","<id>","add","<\/id>","(","<id>","binding","Configuration","<\/id>",")",";","if","(","<id>","injection","Configuration","<\/id>","!=","null",")","{","<id>","class","Description","<\/id>",".","<id>","add","Resource","Injection","<\/id>","(","<id>","injection","Configuration","<\/id>",")",";","}","}","}","<SENTENCE_END\/>"],"file_name":"ResourceInjectionAnnotationParsingProcessor.java","formatted_lines":["{"," final EEResourceReferenceProcessorRegistry registry = phaseContext.getDeploymentUnit().getAttachment(Attachments.RESOURCE_REFERENCE_PROCESSOR_REGISTRY);"," final AnnotationValue lookupAnnotation = annotation.value(\"lookup\");"," String lookup = (lookupAnnotation == null) ? null : replacer.replaceProperties(lookupAnnotation.asString());",""," if (isEmpty(lookup))"," {"," final AnnotationValue mappedNameAnnotationValue ="," annotation.value(\"mappedName\");"," lookup = (mappedNameAnnotationValue == null) ? null :"," replacer.replaceProperties(mappedNameAnnotationValue.asString());"," }",""," if (isEmpty(lookup) && FIXED_LOCATIONS.containsKey(injectionType))"," {"," lookup = FIXED_LOCATIONS.get(injectionType);"," }"," InjectionSource valueSource = null;"," final boolean isEnvEntryType = this.isEnvEntryType(injectionType, module);"," if (!isEmpty(lookup))"," {"," valueSource = new LookupInjectionSource(lookup,"," JAVAX_NAMING_CONTEXT.equals(injectionType));"," }"," else if (isEnvEntryType)"," {","","","","","","",""," }"," else"," {","","",""," final EEResourceReferenceProcessor resourceReferenceProcessor ="," registry.getResourceReferenceProcessor(injectionType);"," if (resourceReferenceProcessor != null)"," {"," valueSource = resourceReferenceProcessor.getResourceReferenceBindingSource();"," }"," }","","","","","","","",""," if (valueSource == null)"," {",""," if (targetDescription != null)"," {"," final LookupInjectionSource optionalInjection = new LookupInjectionSource("," localContextName, true);"," final ResourceInjectionConfiguration injectionConfiguration = new"," ResourceInjectionConfiguration(targetDescription, optionalInjection, true);"," classDescription.addResourceInjection(injectionConfiguration);"," }"," }"," else"," {",""," final InjectionSource injectionSource = new LookupInjectionSource("," localContextName);"," final ResourceInjectionConfiguration injectionConfiguration = targetDescription"," != null ?"," new ResourceInjectionConfiguration(targetDescription, injectionSource) : null;",""," final BindingConfiguration bindingConfiguration = new BindingConfiguration("," localContextName, valueSource);"," classDescription.getBindingConfigurations().add(bindingConfiguration);",""," if (injectionConfiguration != null)"," {"," classDescription.addResourceInjection(injectionConfiguration);"," }"," }","}"],"function_name":"process","function_name_tokens":["process"],"id_body_hash":"339b66c1b540dcb2063f6de35e0af838","id_same_identifier_list":[0,1,2,3,3,3,3,3,4,5,6,6,7,8,8,8,9,10,11,12,12,13,14,15,16,16,16,16,17,18,19,20,20,21,21,22,23,24,25,26,27,28,29,30,31,32,33,34,34,35,36,37,38,39,40,41,42,43,43,44,45,45,46,47,47,48,49,50,51,52,53,54,54,55,56,57,58,59,60,61,61,62,62,62,62,63,64,65,66,67,68,69,70,71,72,73,74,74,74,74,75,76,77,78,79,80,81,82,83,83,84,85,85,85,85,86,87,87,88,89,90,91,92,93,94,95,95,96,97,98,99,100,100,101,102,102,103,104,104,105,106,107,108,109,110,110,111,112,113,114,114,115,116,117,118,118,119,119,120,121,122,123,124,125,125,125,125,126,127,128,129,129,129,129,130,131,131,132,133,134,135,136,137,138,139,139,140,141,142,143,144,145,145,146,147,148,148,148,149,150,151,152,152,152,153,154,155,156,156,157,158,159,160,161,162,163,164,164,164,164,165,166,167,168,169,170,171,171,171,171,172,172,172,173,174,175,176,176,176,176,177,178,178,179,180,181,182,183,183,183,184,185,186,187,188,188,189,190,190,190,191,192,192,192,192,192,193,194,195,196,197,198,199,200,200,201,202,203,204,205,206,207,207,208,209,210,211,212,213,213,213,214,214,215,216,217,217,217,218,219,219,219,220,221,222,223,224,225,225,225,226,226,227,228,229,229,229,230,231,231,232,233,233,234,235,236,237,238,238,239,240,240,240,241,242,242,243,244,245,246,247,248,249,250,250,251,251,252,253,254,254,254,255,256,256,256,257,258,259,260,260,260,261,261,262,263,263,264,265,266,267,268,268,268,269,270,270,271,272,272,273,274,275,276,277,278,278,279,279,280,281,282,282,283,284,284,284,285,286,286,287,288,289,289,290,291,291,291,292,293,294,295,296,297,297,298,299,300,301,302,302,303,304,305,306,307,307,308,309,309,309,310,311,311,312,313,314,315,316,317],"option_correct":"process","options":["processBean","getConfigurationInjector","getPersistenceUnitURL","processInvocation","process","getTimeoutMethod","processContext"],"options_nlp":["process bean","get configuration injector","get persistence unit url","process invocation","process","get timeout method","process context"],"options_random":["getConfigurationInjector","getTimeoutMethod","getPersistenceUnitURL"],"options_tfidf":["processContext","processBean","processInvocation"],"project_name":"wildfly","source_code_string":"protected void process(final DeploymentPhaseContext phaseContext, final EEModuleClassDescription classDescription, final AnnotationInstance annotation, final String injectionType, final String localContextName, final InjectionTarget targetDescription, final EEModuleDescription eeModuleDescription, final Module module, final EEApplicationClasses applicationClasses, final PropertyReplacer replacer) throws DeploymentUnitProcessingException {\n final EEResourceReferenceProcessorRegistry registry = phaseContext.getDeploymentUnit().getAttachment(Attachments.RESOURCE_REFERENCE_PROCESSOR_REGISTRY);\n final AnnotationValue lookupAnnotation = annotation.value(\"lookup\");\n String lookup = (lookupAnnotation == null) ? null : replacer.replaceProperties(lookupAnnotation.asString());\n \n if (isEmpty(lookup)) {\n final AnnotationValue mappedNameAnnotationValue = annotation.value(\"mappedName\");\n lookup = (mappedNameAnnotationValue == null) ? null : replacer.replaceProperties(mappedNameAnnotationValue.asString());\n }\n\n if (isEmpty(lookup) && FIXED_LOCATIONS.containsKey(injectionType)) {\n lookup = FIXED_LOCATIONS.get(injectionType);\n }\n InjectionSource valueSource = null;\n final boolean isEnvEntryType = this.isEnvEntryType(injectionType, module);\n if (!isEmpty(lookup)) {\n valueSource = new LookupInjectionSource(lookup, JAVAX_NAMING_CONTEXT.equals(injectionType));\n } else if (isEnvEntryType) {\n \n \n \n \n \n \n \n } else {\n \n \n \n final EEResourceReferenceProcessor resourceReferenceProcessor = registry.getResourceReferenceProcessor(injectionType);\n if (resourceReferenceProcessor != null) {\n valueSource = resourceReferenceProcessor.getResourceReferenceBindingSource();\n }\n }\n\n \n \n \n \n\n \n\n if (valueSource == null) {\n \n if (targetDescription != null) {\n final LookupInjectionSource optionalInjection = new LookupInjectionSource(localContextName, true);\n final ResourceInjectionConfiguration injectionConfiguration = new ResourceInjectionConfiguration(targetDescription, optionalInjection, true);\n classDescription.addResourceInjection(injectionConfiguration);\n }\n } else {\n \n final InjectionSource injectionSource = new LookupInjectionSource(localContextName);\n final ResourceInjectionConfiguration injectionConfiguration = targetDescription != null ?\n new ResourceInjectionConfiguration(targetDescription, injectionSource) : null;\n\n final BindingConfiguration bindingConfiguration = new BindingConfiguration(localContextName, valueSource);\n classDescription.getBindingConfigurations().add(bindingConfiguration);\n\n if (injectionConfiguration != null) {\n classDescription.addResourceInjection(injectionConfiguration);\n }\n }\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"final","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"ee","start_char":10,"line":1},{"index_id":3,"token_group":3,"text":"Resource","start_char":12,"line":1},{"index_id":4,"token_group":3,"text":"Reference","start_char":20,"line":1},{"index_id":5,"token_group":3,"text":"Processor","start_char":29,"line":1},{"index_id":6,"token_group":3,"text":"Registry","start_char":38,"line":1},{"index_id":7,"token_group":3,"text":"registry","start_char":47,"line":1},{"index_id":8,"token_group":4,"text":"=","start_char":56,"line":1},{"index_id":9,"token_group":5,"text":"phase","start_char":58,"line":1},{"index_id":10,"token_group":6,"text":"Context","start_char":63,"line":1},{"index_id":11,"token_group":6,"text":".","start_char":70,"line":1},{"index_id":12,"token_group":7,"text":"get","start_char":71,"line":1},{"index_id":13,"token_group":8,"text":"Deployment","start_char":74,"line":1},{"index_id":14,"token_group":8,"text":"Unit","start_char":84,"line":1},{"index_id":15,"token_group":8,"text":"(","start_char":88,"line":1},{"index_id":16,"token_group":9,"text":")","start_char":89,"line":1},{"index_id":17,"token_group":10,"text":".","start_char":90,"line":1},{"index_id":18,"token_group":11,"text":"get","start_char":91,"line":1},{"index_id":19,"token_group":12,"text":"Attachment","start_char":94,"line":1},{"index_id":20,"token_group":12,"text":"(","start_char":104,"line":1},{"index_id":21,"token_group":13,"text":"attachments","start_char":105,"line":1},{"index_id":22,"token_group":14,"text":".","start_char":116,"line":1},{"index_id":23,"token_group":15,"text":"resource","start_char":117,"line":1},{"index_id":24,"token_group":16,"text":"Reference","start_char":126,"line":1},{"index_id":25,"token_group":16,"text":"Processor","start_char":136,"line":1},{"index_id":26,"token_group":16,"text":"Registry","start_char":146,"line":1},{"index_id":27,"token_group":16,"text":")","start_char":154,"line":1},{"index_id":28,"token_group":17,"text":";","start_char":155,"line":1},{"index_id":29,"token_group":18,"text":"final","start_char":4,"line":2},{"index_id":30,"token_group":19,"text":"annotation","start_char":10,"line":2},{"index_id":31,"token_group":20,"text":"Value","start_char":20,"line":2},{"index_id":32,"token_group":20,"text":"lookup","start_char":26,"line":2},{"index_id":33,"token_group":21,"text":"Annotation","start_char":32,"line":2},{"index_id":34,"token_group":21,"text":"=","start_char":43,"line":2},{"index_id":35,"token_group":22,"text":"annotation","start_char":45,"line":2},{"index_id":36,"token_group":23,"text":".","start_char":55,"line":2},{"index_id":37,"token_group":24,"text":"value","start_char":56,"line":2},{"index_id":38,"token_group":25,"text":"(","start_char":61,"line":2},{"index_id":39,"token_group":26,"text":"\"lookup\"","start_char":62,"line":2},{"index_id":40,"token_group":27,"text":")","start_char":70,"line":2},{"index_id":41,"token_group":28,"text":";","start_char":71,"line":2},{"index_id":42,"token_group":29,"text":"string","start_char":4,"line":3},{"index_id":43,"token_group":30,"text":"lookup","start_char":11,"line":3},{"index_id":44,"token_group":31,"text":"=","start_char":18,"line":3},{"index_id":45,"token_group":32,"text":"(","start_char":20,"line":3},{"index_id":46,"token_group":33,"text":"lookup","start_char":21,"line":3},{"index_id":47,"token_group":34,"text":"Annotation","start_char":27,"line":3},{"index_id":48,"token_group":34,"text":"==","start_char":38,"line":3},{"index_id":49,"token_group":35,"text":"null","start_char":41,"line":3},{"index_id":50,"token_group":36,"text":")","start_char":45,"line":3},{"index_id":51,"token_group":37,"text":"?","start_char":47,"line":3},{"index_id":52,"token_group":38,"text":"null","start_char":49,"line":3},{"index_id":53,"token_group":39,"text":":","start_char":54,"line":3},{"index_id":54,"token_group":40,"text":"replacer","start_char":56,"line":3},{"index_id":55,"token_group":41,"text":".","start_char":64,"line":3},{"index_id":56,"token_group":42,"text":"replace","start_char":65,"line":3},{"index_id":57,"token_group":43,"text":"Properties","start_char":72,"line":3},{"index_id":58,"token_group":43,"text":"(","start_char":82,"line":3},{"index_id":59,"token_group":44,"text":"lookup","start_char":83,"line":3},{"index_id":60,"token_group":45,"text":"Annotation","start_char":89,"line":3},{"index_id":61,"token_group":45,"text":".","start_char":99,"line":3},{"index_id":62,"token_group":46,"text":"as","start_char":100,"line":3},{"index_id":63,"token_group":47,"text":"String","start_char":102,"line":3},{"index_id":64,"token_group":47,"text":"(","start_char":108,"line":3},{"index_id":65,"token_group":48,"text":")","start_char":109,"line":3},{"index_id":66,"token_group":49,"text":")","start_char":110,"line":3},{"index_id":67,"token_group":50,"text":";","start_char":111,"line":3},{"index_id":68,"token_group":51,"text":"if","start_char":4,"line":5},{"index_id":69,"token_group":52,"text":"(","start_char":7,"line":5},{"index_id":70,"token_group":53,"text":"is","start_char":8,"line":5},{"index_id":71,"token_group":54,"text":"Empty","start_char":10,"line":5},{"index_id":72,"token_group":54,"text":"(","start_char":15,"line":5},{"index_id":73,"token_group":55,"text":"lookup","start_char":16,"line":5},{"index_id":74,"token_group":56,"text":")","start_char":22,"line":5},{"index_id":75,"token_group":57,"text":")","start_char":23,"line":5},{"index_id":76,"token_group":58,"text":"{","start_char":4,"line":6},{"index_id":77,"token_group":59,"text":"final","start_char":8,"line":7},{"index_id":78,"token_group":60,"text":"annotation","start_char":14,"line":7},{"index_id":79,"token_group":61,"text":"Value","start_char":24,"line":7},{"index_id":80,"token_group":61,"text":"mapped","start_char":30,"line":7},{"index_id":81,"token_group":62,"text":"Name","start_char":36,"line":7},{"index_id":82,"token_group":62,"text":"Annotation","start_char":40,"line":7},{"index_id":83,"token_group":62,"text":"Value","start_char":50,"line":7},{"index_id":84,"token_group":62,"text":"=","start_char":56,"line":7},{"index_id":85,"token_group":63,"text":"annotation","start_char":8,"line":8},{"index_id":86,"token_group":64,"text":".","start_char":18,"line":8},{"index_id":87,"token_group":65,"text":"value","start_char":19,"line":8},{"index_id":88,"token_group":66,"text":"(","start_char":24,"line":8},{"index_id":89,"token_group":67,"text":"\"mappedName\"","start_char":25,"line":8},{"index_id":90,"token_group":68,"text":")","start_char":37,"line":8},{"index_id":91,"token_group":69,"text":";","start_char":38,"line":8},{"index_id":92,"token_group":70,"text":"lookup","start_char":8,"line":9},{"index_id":93,"token_group":71,"text":"=","start_char":15,"line":9},{"index_id":94,"token_group":72,"text":"(","start_char":17,"line":9},{"index_id":95,"token_group":73,"text":"mapped","start_char":18,"line":9},{"index_id":96,"token_group":74,"text":"Name","start_char":24,"line":9},{"index_id":97,"token_group":74,"text":"Annotation","start_char":28,"line":9},{"index_id":98,"token_group":74,"text":"Value","start_char":38,"line":9},{"index_id":99,"token_group":74,"text":"==","start_char":44,"line":9},{"index_id":100,"token_group":75,"text":"null","start_char":47,"line":9},{"index_id":101,"token_group":76,"text":")","start_char":51,"line":9},{"index_id":102,"token_group":77,"text":"?","start_char":53,"line":9},{"index_id":103,"token_group":78,"text":"null","start_char":55,"line":9},{"index_id":104,"token_group":79,"text":":","start_char":60,"line":9},{"index_id":105,"token_group":80,"text":"replacer","start_char":8,"line":10},{"index_id":106,"token_group":81,"text":".","start_char":16,"line":10},{"index_id":107,"token_group":82,"text":"replace","start_char":17,"line":10},{"index_id":108,"token_group":83,"text":"Properties","start_char":24,"line":10},{"index_id":109,"token_group":83,"text":"(","start_char":34,"line":10},{"index_id":110,"token_group":84,"text":"mapped","start_char":35,"line":10},{"index_id":111,"token_group":85,"text":"Name","start_char":41,"line":10},{"index_id":112,"token_group":85,"text":"Annotation","start_char":45,"line":10},{"index_id":113,"token_group":85,"text":"Value","start_char":55,"line":10},{"index_id":114,"token_group":85,"text":".","start_char":60,"line":10},{"index_id":115,"token_group":86,"text":"as","start_char":61,"line":10},{"index_id":116,"token_group":87,"text":"String","start_char":63,"line":10},{"index_id":117,"token_group":87,"text":"(","start_char":69,"line":10},{"index_id":118,"token_group":88,"text":")","start_char":70,"line":10},{"index_id":119,"token_group":89,"text":")","start_char":71,"line":10},{"index_id":120,"token_group":90,"text":";","start_char":72,"line":10},{"index_id":121,"token_group":91,"text":"}","start_char":4,"line":11},{"index_id":122,"token_group":92,"text":"if","start_char":4,"line":13},{"index_id":123,"token_group":93,"text":"(","start_char":7,"line":13},{"index_id":124,"token_group":94,"text":"is","start_char":8,"line":13},{"index_id":125,"token_group":95,"text":"Empty","start_char":10,"line":13},{"index_id":126,"token_group":95,"text":"(","start_char":15,"line":13},{"index_id":127,"token_group":96,"text":"lookup","start_char":16,"line":13},{"index_id":128,"token_group":97,"text":")","start_char":22,"line":13},{"index_id":129,"token_group":98,"text":"&&","start_char":24,"line":13},{"index_id":130,"token_group":99,"text":"fixed","start_char":27,"line":13},{"index_id":131,"token_group":100,"text":"Locations","start_char":33,"line":13},{"index_id":132,"token_group":100,"text":".","start_char":42,"line":13},{"index_id":133,"token_group":101,"text":"contains","start_char":43,"line":13},{"index_id":134,"token_group":102,"text":"Key","start_char":51,"line":13},{"index_id":135,"token_group":102,"text":"(","start_char":54,"line":13},{"index_id":136,"token_group":103,"text":"injection","start_char":55,"line":13},{"index_id":137,"token_group":104,"text":"Type","start_char":64,"line":13},{"index_id":138,"token_group":104,"text":")","start_char":68,"line":13},{"index_id":139,"token_group":105,"text":")","start_char":69,"line":13},{"index_id":140,"token_group":106,"text":"{","start_char":4,"line":14},{"index_id":141,"token_group":107,"text":"lookup","start_char":8,"line":15},{"index_id":142,"token_group":108,"text":"=","start_char":15,"line":15},{"index_id":143,"token_group":109,"text":"fixed","start_char":17,"line":15},{"index_id":144,"token_group":110,"text":"Locations","start_char":23,"line":15},{"index_id":145,"token_group":110,"text":".","start_char":32,"line":15},{"index_id":146,"token_group":111,"text":"get","start_char":33,"line":15},{"index_id":147,"token_group":112,"text":"(","start_char":36,"line":15},{"index_id":148,"token_group":113,"text":"injection","start_char":37,"line":15},{"index_id":149,"token_group":114,"text":"Type","start_char":46,"line":15},{"index_id":150,"token_group":114,"text":")","start_char":50,"line":15},{"index_id":151,"token_group":115,"text":";","start_char":51,"line":15},{"index_id":152,"token_group":116,"text":"}","start_char":4,"line":16},{"index_id":153,"token_group":117,"text":"injection","start_char":4,"line":17},{"index_id":154,"token_group":118,"text":"Source","start_char":13,"line":17},{"index_id":155,"token_group":118,"text":"value","start_char":20,"line":17},{"index_id":156,"token_group":119,"text":"Source","start_char":25,"line":17},{"index_id":157,"token_group":119,"text":"=","start_char":32,"line":17},{"index_id":158,"token_group":120,"text":"null","start_char":34,"line":17},{"index_id":159,"token_group":121,"text":";","start_char":38,"line":17},{"index_id":160,"token_group":122,"text":"final","start_char":4,"line":18},{"index_id":161,"token_group":123,"text":"boolean","start_char":10,"line":18},{"index_id":162,"token_group":124,"text":"is","start_char":18,"line":18},{"index_id":163,"token_group":125,"text":"Env","start_char":20,"line":18},{"index_id":164,"token_group":125,"text":"Entry","start_char":23,"line":18},{"index_id":165,"token_group":125,"text":"Type","start_char":28,"line":18},{"index_id":166,"token_group":125,"text":"=","start_char":33,"line":18},{"index_id":167,"token_group":126,"text":"this","start_char":35,"line":18},{"index_id":168,"token_group":127,"text":".","start_char":39,"line":18},{"index_id":169,"token_group":128,"text":"is","start_char":40,"line":18},{"index_id":170,"token_group":129,"text":"Env","start_char":42,"line":18},{"index_id":171,"token_group":129,"text":"Entry","start_char":45,"line":18},{"index_id":172,"token_group":129,"text":"Type","start_char":50,"line":18},{"index_id":173,"token_group":129,"text":"(","start_char":54,"line":18},{"index_id":174,"token_group":130,"text":"injection","start_char":55,"line":18},{"index_id":175,"token_group":131,"text":"Type","start_char":64,"line":18},{"index_id":176,"token_group":131,"text":",","start_char":68,"line":18},{"index_id":177,"token_group":132,"text":"module","start_char":70,"line":18},{"index_id":178,"token_group":133,"text":")","start_char":76,"line":18},{"index_id":179,"token_group":134,"text":";","start_char":77,"line":18},{"index_id":180,"token_group":135,"text":"if","start_char":4,"line":19},{"index_id":181,"token_group":136,"text":"(","start_char":7,"line":19},{"index_id":182,"token_group":137,"text":"!","start_char":8,"line":19},{"index_id":183,"token_group":138,"text":"is","start_char":9,"line":19},{"index_id":184,"token_group":139,"text":"Empty","start_char":11,"line":19},{"index_id":185,"token_group":139,"text":"(","start_char":16,"line":19},{"index_id":186,"token_group":140,"text":"lookup","start_char":17,"line":19},{"index_id":187,"token_group":141,"text":")","start_char":23,"line":19},{"index_id":188,"token_group":142,"text":")","start_char":24,"line":19},{"index_id":189,"token_group":143,"text":"{","start_char":4,"line":20},{"index_id":190,"token_group":144,"text":"value","start_char":8,"line":21},{"index_id":191,"token_group":145,"text":"Source","start_char":13,"line":21},{"index_id":192,"token_group":145,"text":"=","start_char":20,"line":21},{"index_id":193,"token_group":146,"text":"new","start_char":22,"line":21},{"index_id":194,"token_group":147,"text":"lookup","start_char":26,"line":21},{"index_id":195,"token_group":148,"text":"Injection","start_char":32,"line":21},{"index_id":196,"token_group":148,"text":"Source","start_char":41,"line":21},{"index_id":197,"token_group":148,"text":"(","start_char":47,"line":21},{"index_id":198,"token_group":149,"text":"lookup","start_char":48,"line":21},{"index_id":199,"token_group":150,"text":",","start_char":54,"line":21},{"index_id":200,"token_group":151,"text":"javax","start_char":48,"line":22},{"index_id":201,"token_group":152,"text":"Naming","start_char":54,"line":22},{"index_id":202,"token_group":152,"text":"Context","start_char":61,"line":22},{"index_id":203,"token_group":152,"text":".","start_char":68,"line":22},{"index_id":204,"token_group":153,"text":"equals","start_char":69,"line":22},{"index_id":205,"token_group":154,"text":"(","start_char":75,"line":22},{"index_id":206,"token_group":155,"text":"injection","start_char":76,"line":22},{"index_id":207,"token_group":156,"text":"Type","start_char":85,"line":22},{"index_id":208,"token_group":156,"text":")","start_char":89,"line":22},{"index_id":209,"token_group":157,"text":")","start_char":90,"line":22},{"index_id":210,"token_group":158,"text":";","start_char":91,"line":22},{"index_id":211,"token_group":159,"text":"}","start_char":4,"line":23},{"index_id":212,"token_group":160,"text":"else","start_char":4,"line":24},{"index_id":213,"token_group":161,"text":"if","start_char":9,"line":24},{"index_id":214,"token_group":162,"text":"(","start_char":12,"line":24},{"index_id":215,"token_group":163,"text":"is","start_char":13,"line":24},{"index_id":216,"token_group":164,"text":"Env","start_char":15,"line":24},{"index_id":217,"token_group":164,"text":"Entry","start_char":18,"line":24},{"index_id":218,"token_group":164,"text":"Type","start_char":23,"line":24},{"index_id":219,"token_group":164,"text":")","start_char":27,"line":24},{"index_id":220,"token_group":165,"text":"{","start_char":4,"line":25},{"index_id":221,"token_group":166,"text":"}","start_char":4,"line":33},{"index_id":222,"token_group":167,"text":"else","start_char":4,"line":34},{"index_id":223,"token_group":168,"text":"{","start_char":4,"line":35},{"index_id":224,"token_group":169,"text":"final","start_char":8,"line":39},{"index_id":225,"token_group":170,"text":"ee","start_char":14,"line":39},{"index_id":226,"token_group":171,"text":"Resource","start_char":16,"line":39},{"index_id":227,"token_group":171,"text":"Reference","start_char":24,"line":39},{"index_id":228,"token_group":171,"text":"Processor","start_char":33,"line":39},{"index_id":229,"token_group":171,"text":"resource","start_char":43,"line":39},{"index_id":230,"token_group":172,"text":"Reference","start_char":51,"line":39},{"index_id":231,"token_group":172,"text":"Processor","start_char":60,"line":39},{"index_id":232,"token_group":172,"text":"=","start_char":70,"line":39},{"index_id":233,"token_group":173,"text":"registry","start_char":8,"line":40},{"index_id":234,"token_group":174,"text":".","start_char":16,"line":40},{"index_id":235,"token_group":175,"text":"get","start_char":17,"line":40},{"index_id":236,"token_group":176,"text":"Resource","start_char":20,"line":40},{"index_id":237,"token_group":176,"text":"Reference","start_char":28,"line":40},{"index_id":238,"token_group":176,"text":"Processor","start_char":37,"line":40},{"index_id":239,"token_group":176,"text":"(","start_char":46,"line":40},{"index_id":240,"token_group":177,"text":"injection","start_char":47,"line":40},{"index_id":241,"token_group":178,"text":"Type","start_char":56,"line":40},{"index_id":242,"token_group":178,"text":")","start_char":60,"line":40},{"index_id":243,"token_group":179,"text":";","start_char":61,"line":40},{"index_id":244,"token_group":180,"text":"if","start_char":8,"line":41},{"index_id":245,"token_group":181,"text":"(","start_char":11,"line":41},{"index_id":246,"token_group":182,"text":"resource","start_char":12,"line":41},{"index_id":247,"token_group":183,"text":"Reference","start_char":20,"line":41},{"index_id":248,"token_group":183,"text":"Processor","start_char":29,"line":41},{"index_id":249,"token_group":183,"text":"!=","start_char":39,"line":41},{"index_id":250,"token_group":184,"text":"null","start_char":42,"line":41},{"index_id":251,"token_group":185,"text":")","start_char":46,"line":41},{"index_id":252,"token_group":186,"text":"{","start_char":8,"line":42},{"index_id":253,"token_group":187,"text":"value","start_char":12,"line":43},{"index_id":254,"token_group":188,"text":"Source","start_char":17,"line":43},{"index_id":255,"token_group":188,"text":"=","start_char":24,"line":43},{"index_id":256,"token_group":189,"text":"resource","start_char":26,"line":43},{"index_id":257,"token_group":190,"text":"Reference","start_char":34,"line":43},{"index_id":258,"token_group":190,"text":"Processor","start_char":43,"line":43},{"index_id":259,"token_group":190,"text":".","start_char":52,"line":43},{"index_id":260,"token_group":191,"text":"get","start_char":53,"line":43},{"index_id":261,"token_group":192,"text":"Resource","start_char":56,"line":43},{"index_id":262,"token_group":192,"text":"Reference","start_char":64,"line":43},{"index_id":263,"token_group":192,"text":"Binding","start_char":73,"line":43},{"index_id":264,"token_group":192,"text":"Source","start_char":80,"line":43},{"index_id":265,"token_group":192,"text":"(","start_char":86,"line":43},{"index_id":266,"token_group":193,"text":")","start_char":87,"line":43},{"index_id":267,"token_group":194,"text":";","start_char":88,"line":43},{"index_id":268,"token_group":195,"text":"}","start_char":8,"line":44},{"index_id":269,"token_group":196,"text":"}","start_char":4,"line":45},{"index_id":270,"token_group":197,"text":"if","start_char":4,"line":54},{"index_id":271,"token_group":198,"text":"(","start_char":7,"line":54},{"index_id":272,"token_group":199,"text":"value","start_char":8,"line":54},{"index_id":273,"token_group":200,"text":"Source","start_char":13,"line":54},{"index_id":274,"token_group":200,"text":"==","start_char":20,"line":54},{"index_id":275,"token_group":201,"text":"null","start_char":23,"line":54},{"index_id":276,"token_group":202,"text":")","start_char":27,"line":54},{"index_id":277,"token_group":203,"text":"{","start_char":4,"line":55},{"index_id":278,"token_group":204,"text":"if","start_char":8,"line":57},{"index_id":279,"token_group":205,"text":"(","start_char":11,"line":57},{"index_id":280,"token_group":206,"text":"target","start_char":12,"line":57},{"index_id":281,"token_group":207,"text":"Description","start_char":18,"line":57},{"index_id":282,"token_group":207,"text":"!=","start_char":30,"line":57},{"index_id":283,"token_group":208,"text":"null","start_char":33,"line":57},{"index_id":284,"token_group":209,"text":")","start_char":37,"line":57},{"index_id":285,"token_group":210,"text":"{","start_char":8,"line":58},{"index_id":286,"token_group":211,"text":"final","start_char":12,"line":59},{"index_id":287,"token_group":212,"text":"lookup","start_char":18,"line":59},{"index_id":288,"token_group":213,"text":"Injection","start_char":24,"line":59},{"index_id":289,"token_group":213,"text":"Source","start_char":33,"line":59},{"index_id":290,"token_group":213,"text":"optional","start_char":40,"line":59},{"index_id":291,"token_group":214,"text":"Injection","start_char":48,"line":59},{"index_id":292,"token_group":214,"text":"=","start_char":58,"line":59},{"index_id":293,"token_group":215,"text":"new","start_char":60,"line":59},{"index_id":294,"token_group":216,"text":"lookup","start_char":64,"line":59},{"index_id":295,"token_group":217,"text":"Injection","start_char":70,"line":59},{"index_id":296,"token_group":217,"text":"Source","start_char":79,"line":59},{"index_id":297,"token_group":217,"text":"(","start_char":85,"line":59},{"index_id":298,"token_group":218,"text":"local","start_char":16,"line":60},{"index_id":299,"token_group":219,"text":"Context","start_char":21,"line":60},{"index_id":300,"token_group":219,"text":"Name","start_char":28,"line":60},{"index_id":301,"token_group":219,"text":",","start_char":32,"line":60},{"index_id":302,"token_group":220,"text":"true","start_char":34,"line":60},{"index_id":303,"token_group":221,"text":")","start_char":38,"line":60},{"index_id":304,"token_group":222,"text":";","start_char":39,"line":60},{"index_id":305,"token_group":223,"text":"final","start_char":12,"line":61},{"index_id":306,"token_group":224,"text":"resource","start_char":18,"line":61},{"index_id":307,"token_group":225,"text":"Injection","start_char":26,"line":61},{"index_id":308,"token_group":225,"text":"Configuration","start_char":35,"line":61},{"index_id":309,"token_group":225,"text":"injection","start_char":49,"line":61},{"index_id":310,"token_group":226,"text":"Configuration","start_char":58,"line":61},{"index_id":311,"token_group":226,"text":"=","start_char":72,"line":61},{"index_id":312,"token_group":227,"text":"new","start_char":74,"line":61},{"index_id":313,"token_group":228,"text":"resource","start_char":12,"line":62},{"index_id":314,"token_group":229,"text":"Injection","start_char":20,"line":62},{"index_id":315,"token_group":229,"text":"Configuration","start_char":29,"line":62},{"index_id":316,"token_group":229,"text":"(","start_char":42,"line":62},{"index_id":317,"token_group":230,"text":"target","start_char":43,"line":62},{"index_id":318,"token_group":231,"text":"Description","start_char":49,"line":62},{"index_id":319,"token_group":231,"text":",","start_char":60,"line":62},{"index_id":320,"token_group":232,"text":"optional","start_char":62,"line":62},{"index_id":321,"token_group":233,"text":"Injection","start_char":70,"line":62},{"index_id":322,"token_group":233,"text":",","start_char":79,"line":62},{"index_id":323,"token_group":234,"text":"true","start_char":81,"line":62},{"index_id":324,"token_group":235,"text":")","start_char":85,"line":62},{"index_id":325,"token_group":236,"text":";","start_char":86,"line":62},{"index_id":326,"token_group":237,"text":"class","start_char":12,"line":63},{"index_id":327,"token_group":238,"text":"Description","start_char":17,"line":63},{"index_id":328,"token_group":238,"text":".","start_char":28,"line":63},{"index_id":329,"token_group":239,"text":"add","start_char":29,"line":63},{"index_id":330,"token_group":240,"text":"Resource","start_char":32,"line":63},{"index_id":331,"token_group":240,"text":"Injection","start_char":40,"line":63},{"index_id":332,"token_group":240,"text":"(","start_char":49,"line":63},{"index_id":333,"token_group":241,"text":"injection","start_char":50,"line":63},{"index_id":334,"token_group":242,"text":"Configuration","start_char":59,"line":63},{"index_id":335,"token_group":242,"text":")","start_char":72,"line":63},{"index_id":336,"token_group":243,"text":";","start_char":73,"line":63},{"index_id":337,"token_group":244,"text":"}","start_char":8,"line":64},{"index_id":338,"token_group":245,"text":"}","start_char":4,"line":65},{"index_id":339,"token_group":246,"text":"else","start_char":4,"line":66},{"index_id":340,"token_group":247,"text":"{","start_char":4,"line":67},{"index_id":341,"token_group":248,"text":"final","start_char":8,"line":69},{"index_id":342,"token_group":249,"text":"injection","start_char":14,"line":69},{"index_id":343,"token_group":250,"text":"Source","start_char":23,"line":69},{"index_id":344,"token_group":250,"text":"injection","start_char":30,"line":69},{"index_id":345,"token_group":251,"text":"Source","start_char":39,"line":69},{"index_id":346,"token_group":251,"text":"=","start_char":46,"line":69},{"index_id":347,"token_group":252,"text":"new","start_char":48,"line":69},{"index_id":348,"token_group":253,"text":"lookup","start_char":52,"line":69},{"index_id":349,"token_group":254,"text":"Injection","start_char":58,"line":69},{"index_id":350,"token_group":254,"text":"Source","start_char":67,"line":69},{"index_id":351,"token_group":254,"text":"(","start_char":73,"line":69},{"index_id":352,"token_group":255,"text":"local","start_char":12,"line":70},{"index_id":353,"token_group":256,"text":"Context","start_char":17,"line":70},{"index_id":354,"token_group":256,"text":"Name","start_char":24,"line":70},{"index_id":355,"token_group":256,"text":")","start_char":28,"line":70},{"index_id":356,"token_group":257,"text":";","start_char":29,"line":70},{"index_id":357,"token_group":258,"text":"final","start_char":8,"line":71},{"index_id":358,"token_group":259,"text":"resource","start_char":14,"line":71},{"index_id":359,"token_group":260,"text":"Injection","start_char":22,"line":71},{"index_id":360,"token_group":260,"text":"Configuration","start_char":31,"line":71},{"index_id":361,"token_group":260,"text":"injection","start_char":45,"line":71},{"index_id":362,"token_group":261,"text":"Configuration","start_char":54,"line":71},{"index_id":363,"token_group":261,"text":"=","start_char":68,"line":71},{"index_id":364,"token_group":262,"text":"target","start_char":70,"line":71},{"index_id":365,"token_group":263,"text":"Description","start_char":76,"line":71},{"index_id":366,"token_group":263,"text":"!=","start_char":16,"line":72},{"index_id":367,"token_group":264,"text":"null","start_char":19,"line":72},{"index_id":368,"token_group":265,"text":"?","start_char":24,"line":72},{"index_id":369,"token_group":266,"text":"new","start_char":16,"line":73},{"index_id":370,"token_group":267,"text":"resource","start_char":20,"line":73},{"index_id":371,"token_group":268,"text":"Injection","start_char":28,"line":73},{"index_id":372,"token_group":268,"text":"Configuration","start_char":37,"line":73},{"index_id":373,"token_group":268,"text":"(","start_char":50,"line":73},{"index_id":374,"token_group":269,"text":"target","start_char":51,"line":73},{"index_id":375,"token_group":270,"text":"Description","start_char":57,"line":73},{"index_id":376,"token_group":270,"text":",","start_char":68,"line":73},{"index_id":377,"token_group":271,"text":"injection","start_char":70,"line":73},{"index_id":378,"token_group":272,"text":"Source","start_char":79,"line":73},{"index_id":379,"token_group":272,"text":")","start_char":85,"line":73},{"index_id":380,"token_group":273,"text":":","start_char":87,"line":73},{"index_id":381,"token_group":274,"text":"null","start_char":89,"line":73},{"index_id":382,"token_group":275,"text":";","start_char":93,"line":73},{"index_id":383,"token_group":276,"text":"final","start_char":8,"line":75},{"index_id":384,"token_group":277,"text":"binding","start_char":14,"line":75},{"index_id":385,"token_group":278,"text":"Configuration","start_char":21,"line":75},{"index_id":386,"token_group":278,"text":"binding","start_char":35,"line":75},{"index_id":387,"token_group":279,"text":"Configuration","start_char":42,"line":75},{"index_id":388,"token_group":279,"text":"=","start_char":56,"line":75},{"index_id":389,"token_group":280,"text":"new","start_char":58,"line":75},{"index_id":390,"token_group":281,"text":"binding","start_char":62,"line":75},{"index_id":391,"token_group":282,"text":"Configuration","start_char":69,"line":75},{"index_id":392,"token_group":282,"text":"(","start_char":82,"line":75},{"index_id":393,"token_group":283,"text":"local","start_char":12,"line":76},{"index_id":394,"token_group":284,"text":"Context","start_char":17,"line":76},{"index_id":395,"token_group":284,"text":"Name","start_char":24,"line":76},{"index_id":396,"token_group":284,"text":",","start_char":28,"line":76},{"index_id":397,"token_group":285,"text":"value","start_char":30,"line":76},{"index_id":398,"token_group":286,"text":"Source","start_char":35,"line":76},{"index_id":399,"token_group":286,"text":")","start_char":41,"line":76},{"index_id":400,"token_group":287,"text":";","start_char":42,"line":76},{"index_id":401,"token_group":288,"text":"class","start_char":8,"line":77},{"index_id":402,"token_group":289,"text":"Description","start_char":13,"line":77},{"index_id":403,"token_group":289,"text":".","start_char":24,"line":77},{"index_id":404,"token_group":290,"text":"get","start_char":25,"line":77},{"index_id":405,"token_group":291,"text":"Binding","start_char":28,"line":77},{"index_id":406,"token_group":291,"text":"Configurations","start_char":35,"line":77},{"index_id":407,"token_group":291,"text":"(","start_char":49,"line":77},{"index_id":408,"token_group":292,"text":")","start_char":50,"line":77},{"index_id":409,"token_group":293,"text":".","start_char":51,"line":77},{"index_id":410,"token_group":294,"text":"add","start_char":52,"line":77},{"index_id":411,"token_group":295,"text":"(","start_char":55,"line":77},{"index_id":412,"token_group":296,"text":"binding","start_char":56,"line":77},{"index_id":413,"token_group":297,"text":"Configuration","start_char":63,"line":77},{"index_id":414,"token_group":297,"text":")","start_char":76,"line":77},{"index_id":415,"token_group":298,"text":";","start_char":77,"line":77},{"index_id":416,"token_group":299,"text":"if","start_char":8,"line":79},{"index_id":417,"token_group":300,"text":"(","start_char":11,"line":79},{"index_id":418,"token_group":301,"text":"injection","start_char":12,"line":79},{"index_id":419,"token_group":302,"text":"Configuration","start_char":21,"line":79},{"index_id":420,"token_group":302,"text":"!=","start_char":35,"line":79},{"index_id":421,"token_group":303,"text":"null","start_char":38,"line":79},{"index_id":422,"token_group":304,"text":")","start_char":42,"line":79},{"index_id":423,"token_group":305,"text":"{","start_char":8,"line":80},{"index_id":424,"token_group":306,"text":"class","start_char":12,"line":81},{"index_id":425,"token_group":307,"text":"Description","start_char":17,"line":81},{"index_id":426,"token_group":307,"text":".","start_char":28,"line":81},{"index_id":427,"token_group":308,"text":"add","start_char":29,"line":81},{"index_id":428,"token_group":309,"text":"Resource","start_char":32,"line":81},{"index_id":429,"token_group":309,"text":"Injection","start_char":40,"line":81},{"index_id":430,"token_group":309,"text":"(","start_char":49,"line":81},{"index_id":431,"token_group":310,"text":"injection","start_char":50,"line":81},{"index_id":432,"token_group":311,"text":"Configuration","start_char":59,"line":81},{"index_id":433,"token_group":311,"text":")","start_char":72,"line":81},{"index_id":434,"token_group":312,"text":";","start_char":73,"line":81},{"index_id":435,"token_group":313,"text":"}","start_char":8,"line":82},{"index_id":436,"token_group":314,"text":"}","start_char":4,"line":83},{"index_id":437,"token_group":315,"text":"}","start_char":0,"line":84}],"tokens_list":["{","final","ee","Resource","Reference","Processor","Registry","registry","=","phase","Context",".","get","Deployment","Unit","(",")",".","get","Attachment","(","attachments",".","resource","Reference","Processor","Registry",")",";","final","annotation","Value","lookup","Annotation","=","annotation",".","value","(","\"lookup\"",")",";","string","lookup","=","(","lookup","Annotation","==","null",")","?","null",":","replacer",".","replace","Properties","(","lookup","Annotation",".","as","String","(",")",")",";","if","(","is","Empty","(","lookup",")",")","{","final","annotation","Value","mapped","Name","Annotation","Value","=","annotation",".","value","(","\"mappedName\"",")",";","lookup","=","(","mapped","Name","Annotation","Value","==","null",")","?","null",":","replacer",".","replace","Properties","(","mapped","Name","Annotation","Value",".","as","String","(",")",")",";","}","if","(","is","Empty","(","lookup",")","&&","fixed","Locations",".","contains","Key","(","injection","Type",")",")","{","lookup","=","fixed","Locations",".","get","(","injection","Type",")",";","}","injection","Source","value","Source","=","null",";","final","boolean","is","Env","Entry","Type","=","this",".","is","Env","Entry","Type","(","injection","Type",",","module",")",";","if","(","!","is","Empty","(","lookup",")",")","{","value","Source","=","new","lookup","Injection","Source","(","lookup",",","javax","Naming","Context",".","equals","(","injection","Type",")",")",";","}","else","if","(","is","Env","Entry","Type",")","{","}","else","{","final","ee","Resource","Reference","Processor","resource","Reference","Processor","=","registry",".","get","Resource","Reference","Processor","(","injection","Type",")",";","if","(","resource","Reference","Processor","!=","null",")","{","value","Source","=","resource","Reference","Processor",".","get","Resource","Reference","Binding","Source","(",")",";","}","}","if","(","value","Source","==","null",")","{","if","(","target","Description","!=","null",")","{","final","lookup","Injection","Source","optional","Injection","=","new","lookup","Injection","Source","(","local","Context","Name",",","true",")",";","final","resource","Injection","Configuration","injection","Configuration","=","new","resource","Injection","Configuration","(","target","Description",",","optional","Injection",",","true",")",";","class","Description",".","add","Resource","Injection","(","injection","Configuration",")",";","}","}","else","{","final","injection","Source","injection","Source","=","new","lookup","Injection","Source","(","local","Context","Name",")",";","final","resource","Injection","Configuration","injection","Configuration","=","target","Description","!=","null","?","new","resource","Injection","Configuration","(","target","Description",",","injection","Source",")",":","null",";","final","binding","Configuration","binding","Configuration","=","new","binding","Configuration","(","local","Context","Name",",","value","Source",")",";","class","Description",".","get","Binding","Configurations","(",")",".","add","(","binding","Configuration",")",";","if","(","injection","Configuration","!=","null",")","{","class","Description",".","add","Resource","Injection","(","injection","Configuration",")",";","}","}","}"],"uuid":"c19979b41b1c8a3e2b3c9a47b6b384f8"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","my","Default","Description","Url","<\/id>","=","<id>","default","Description","<\/id>",";","<id>","my","Template","<\/id>","=","<id>","template","<\/id>",";","if","(","<id>","my","Main","Panel","<\/id>","!=","null",")","{","<id>","reset","<\/id>","(",")",";","<id>","my","Name","Field","<\/id>",".","<id>","select","All","<\/id>","(",")",";","<id>","my","Extension","Field","<\/id>",".","<id>","select","All","<\/id>","(",")",";","}","}","<SENTENCE_END\/>"],"file_name":"FileTemplateConfigurable.java","formatted_lines":["{"," myDefaultDescriptionUrl = defaultDescription;"," myTemplate = template;"," if (myMainPanel != null)"," {"," reset();"," myNameField.selectAll();"," myExtensionField.selectAll();"," }","}"],"function_name":"setTemplate","function_name_tokens":["set","template"],"id_body_hash":"f3e306a7553c2913d1680adc47150e48","id_same_identifier_list":[0,1,2,2,2,2,3,4,4,5,6,6,7,8,9,10,11,12,12,12,13,14,15,16,17,18,19,20,21,21,21,22,23,23,24,25,26,27,27,27,28,29,29,30,31,32,33,34,35],"option_correct":"setTemplate","options":["setTemplateOptions","enterUpdate","setSelectedTemplate","setTemplate","processChange","setTemplateLanguage","isSpringLoadedGeneratedClass"],"options_nlp":["set template options","enter update","set selected template","set template","process change","set template language","is spring loaded generated class"],"options_random":["isSpringLoadedGeneratedClass","enterUpdate","processChange"],"options_tfidf":["setTemplateLanguage","setTemplateOptions","setSelectedTemplate"],"project_name":"intellij-community","source_code_string":"public void setTemplate(FileTemplate template, URL defaultDescription) {\n myDefaultDescriptionUrl = defaultDescription;\n myTemplate = template;\n if (myMainPanel != null) {\n reset();\n myNameField.selectAll();\n myExtensionField.selectAll();\n }\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"my","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"Default","start_char":6,"line":1},{"index_id":3,"token_group":2,"text":"Description","start_char":13,"line":1},{"index_id":4,"token_group":2,"text":"Url","start_char":24,"line":1},{"index_id":5,"token_group":2,"text":"=","start_char":28,"line":1},{"index_id":6,"token_group":3,"text":"default","start_char":30,"line":1},{"index_id":7,"token_group":4,"text":"Description","start_char":37,"line":1},{"index_id":8,"token_group":4,"text":";","start_char":48,"line":1},{"index_id":9,"token_group":5,"text":"my","start_char":4,"line":2},{"index_id":10,"token_group":6,"text":"Template","start_char":6,"line":2},{"index_id":11,"token_group":6,"text":"=","start_char":15,"line":2},{"index_id":12,"token_group":7,"text":"template","start_char":17,"line":2},{"index_id":13,"token_group":8,"text":";","start_char":25,"line":2},{"index_id":14,"token_group":9,"text":"if","start_char":4,"line":3},{"index_id":15,"token_group":10,"text":"(","start_char":7,"line":3},{"index_id":16,"token_group":11,"text":"my","start_char":8,"line":3},{"index_id":17,"token_group":12,"text":"Main","start_char":10,"line":3},{"index_id":18,"token_group":12,"text":"Panel","start_char":14,"line":3},{"index_id":19,"token_group":12,"text":"!=","start_char":20,"line":3},{"index_id":20,"token_group":13,"text":"null","start_char":23,"line":3},{"index_id":21,"token_group":14,"text":")","start_char":27,"line":3},{"index_id":22,"token_group":15,"text":"{","start_char":4,"line":4},{"index_id":23,"token_group":16,"text":"reset","start_char":8,"line":5},{"index_id":24,"token_group":17,"text":"(","start_char":13,"line":5},{"index_id":25,"token_group":18,"text":")","start_char":14,"line":5},{"index_id":26,"token_group":19,"text":";","start_char":15,"line":5},{"index_id":27,"token_group":20,"text":"my","start_char":8,"line":6},{"index_id":28,"token_group":21,"text":"Name","start_char":10,"line":6},{"index_id":29,"token_group":21,"text":"Field","start_char":14,"line":6},{"index_id":30,"token_group":21,"text":".","start_char":19,"line":6},{"index_id":31,"token_group":22,"text":"select","start_char":20,"line":6},{"index_id":32,"token_group":23,"text":"All","start_char":26,"line":6},{"index_id":33,"token_group":23,"text":"(","start_char":29,"line":6},{"index_id":34,"token_group":24,"text":")","start_char":30,"line":6},{"index_id":35,"token_group":25,"text":";","start_char":31,"line":6},{"index_id":36,"token_group":26,"text":"my","start_char":8,"line":7},{"index_id":37,"token_group":27,"text":"Extension","start_char":10,"line":7},{"index_id":38,"token_group":27,"text":"Field","start_char":19,"line":7},{"index_id":39,"token_group":27,"text":".","start_char":24,"line":7},{"index_id":40,"token_group":28,"text":"select","start_char":25,"line":7},{"index_id":41,"token_group":29,"text":"All","start_char":31,"line":7},{"index_id":42,"token_group":29,"text":"(","start_char":34,"line":7},{"index_id":43,"token_group":30,"text":")","start_char":35,"line":7},{"index_id":44,"token_group":31,"text":";","start_char":36,"line":7},{"index_id":45,"token_group":32,"text":"}","start_char":4,"line":8},{"index_id":46,"token_group":33,"text":"}","start_char":0,"line":9}],"tokens_list":["{","my","Default","Description","Url","=","default","Description",";","my","Template","=","template",";","if","(","my","Main","Panel","!=","null",")","{","reset","(",")",";","my","Name","Field",".","select","All","(",")",";","my","Extension","Field",".","select","All","(",")",";","}","}"],"uuid":"f27b8abf77800001b0758d584071576e"},{"cap_original_tokens":["<SENTENCE_START>","{","return","(","<id>","my","Style","<\/id>","&","<id>","style","Opaque","<\/id>",")","!=","0",";","}","<SENTENCE_END\/>"],"file_name":"SimpleTextAttributes.java","formatted_lines":["{"," return (myStyle & STYLE_OPAQUE) != 0;","}"],"function_name":"isOpaque","function_name_tokens":["is","opaque"],"id_body_hash":"9dd067c35ba02ebeeb9734cc75f6ed97","id_same_identifier_list":[0,1,2,3,4,4,5,6,6,7,8,9,10,11,12],"option_correct":"isOpaque","options":["registerKeyboardAction","readXmx","isIconOpaque","isBorderOpaque","isOpaque","getNumberOfPushedCommits","is"],"options_nlp":["register keyboard action","read xmx","is icon opaque","is border opaque","is opaque","get number of pushed commits","is"],"options_random":["getNumberOfPushedCommits","readXmx","registerKeyboardAction"],"options_tfidf":["isBorderOpaque","isIconOpaque","is"],"project_name":"intellij-community","source_code_string":"public boolean isOpaque() {\n return (myStyle & STYLE_OPAQUE) != 0;\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":"(","start_char":11,"line":1},{"index_id":3,"token_group":3,"text":"my","start_char":12,"line":1},{"index_id":4,"token_group":4,"text":"Style","start_char":14,"line":1},{"index_id":5,"token_group":4,"text":"&","start_char":20,"line":1},{"index_id":6,"token_group":5,"text":"style","start_char":22,"line":1},{"index_id":7,"token_group":6,"text":"Opaque","start_char":28,"line":1},{"index_id":8,"token_group":6,"text":")","start_char":34,"line":1},{"index_id":9,"token_group":7,"text":"!=","start_char":36,"line":1},{"index_id":10,"token_group":8,"text":"0","start_char":39,"line":1},{"index_id":11,"token_group":9,"text":";","start_char":40,"line":1},{"index_id":12,"token_group":10,"text":"}","start_char":0,"line":2}],"tokens_list":["{","return","(","my","Style","&","style","Opaque",")","!=","0",";","}"],"uuid":"b842694a5cbd632ac6033471c91f7d4e"},{"cap_original_tokens":["<SENTENCE_START>","{","this",".","<id>","servlet","Context","<\/id>","=","<id>","servlet","Context","<\/id>",";","}","<SENTENCE_END\/>"],"file_name":"ExportImportConfigurationTrashHandler.java","formatted_lines":["{"," this.servletContext = servletContext;","}"],"function_name":"setServletContext","function_name_tokens":["set","servlet","context"],"id_body_hash":"70896be5fb7f9d871cab4980dd6ec5f8","id_same_identifier_list":[0,1,2,3,4,4,5,6,6,7,8,9],"option_correct":"setServletContext","options":["setActionJspServletContext","testTrashVersionParentBaseModelAndRestore","setServletContext","setTransactionExecutor","setServletContextName","_setServletMapping","doAddCriteria"],"options_nlp":["set action jsp servlet context","test trash version parent base model and restore","set servlet context","set transaction executor","set servlet context name"," set servlet mapping","do add criteria"],"options_random":["setTransactionExecutor","testTrashVersionParentBaseModelAndRestore","doAddCriteria"],"options_tfidf":["setServletContextName","setActionJspServletContext","_setServletMapping"],"project_name":"liferay-portal","source_code_string":"@Reference(\n\t\ttarget = \"(osgi.web.symbolicname=com.liferay.exportimport.web)\",\n\t\tunbind = \"-\"\n\t)\n\tpublic void setServletContext(ServletContext servletContext) {\n\t\tthis.servletContext = servletContext;\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":"servlet","start_char":9,"line":1},{"index_id":4,"token_group":4,"text":"Context","start_char":16,"line":1},{"index_id":5,"token_group":4,"text":"=","start_char":24,"line":1},{"index_id":6,"token_group":5,"text":"servlet","start_char":26,"line":1},{"index_id":7,"token_group":6,"text":"Context","start_char":33,"line":1},{"index_id":8,"token_group":6,"text":";","start_char":40,"line":1},{"index_id":9,"token_group":7,"text":"}","start_char":0,"line":2}],"tokens_list":["{","this",".","servlet","Context","=","servlet","Context",";","}"],"uuid":"c60025e8a47a9da6763e03c7f2dbbb76"},{"cap_original_tokens":["<SENTENCE_START>","{","return","<id>","fields","<\/id>",";","}","<SENTENCE_END\/>"],"file_name":"Card.java","formatted_lines":["{"," return fields;","}"],"function_name":"getFields","function_name_tokens":["get","fields"],"id_body_hash":"b7c00b0be868e429b45ad495bb0f2d42","id_same_identifier_list":[0,1,2,3,4,5,6],"option_correct":"getFields","options":["collectPersistentFields","getQualifiedName","addSubclassJoins","getA","getFields","getCustomFields","testUpdate"],"options_nlp":["collect persistent fields","get qualified name","add subclass joins","get a","get fields","get custom fields","test update"],"options_random":["getQualifiedName","testUpdate","addSubclassJoins"],"options_tfidf":["getCustomFields","collectPersistentFields","getA"],"project_name":"hibernate-orm","source_code_string":"public Set<CardField> getFields() {\n\t\treturn fields;\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":"fields","start_char":11,"line":1},{"index_id":3,"token_group":3,"text":";","start_char":17,"line":1},{"index_id":4,"token_group":4,"text":"}","start_char":0,"line":2}],"tokens_list":["{","return","fields",";","}"],"uuid":"cfdb40465c7e1765f145d9f093079bb9"},{"cap_original_tokens":["<SENTENCE_START>","{","return","<id>","collection","Suffix","Seed","<\/id>","++","+","\"__\"",";","}","<SENTENCE_END\/>"],"file_name":"SQLQueryReturnProcessor.java","formatted_lines":["{"," return collectionSuffixSeed++ + \"__\";","}"],"function_name":"generateCollectionSuffix","function_name_tokens":["generate","collection","suffix"],"id_body_hash":"36c56968da105fdcf43278501eb3cd40","id_same_identifier_list":[0,1,2,3,3,3,4,5,6,7,8,9],"option_correct":"generateCollectionSuffix","options":["getCollectionSuffix","getInverseChildren","generateCollectionSuffix","generateSuffix","isBasicCollection","encloseWithOuterQuery","generateEntitySuffix"],"options_nlp":["get collection suffix","get inverse children","generate collection suffix","generate suffix","is basic collection","enclose with outer query","generate entity suffix"],"options_random":["isBasicCollection","getInverseChildren","encloseWithOuterQuery"],"options_tfidf":["generateEntitySuffix","generateSuffix","getCollectionSuffix"],"project_name":"hibernate-orm","source_code_string":"private String generateCollectionSuffix() {\n\t\treturn collectionSuffixSeed++ + \"__\";\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":"collection","start_char":11,"line":1},{"index_id":3,"token_group":3,"text":"Suffix","start_char":21,"line":1},{"index_id":4,"token_group":3,"text":"Seed","start_char":27,"line":1},{"index_id":5,"token_group":3,"text":"++","start_char":31,"line":1},{"index_id":6,"token_group":4,"text":"+","start_char":34,"line":1},{"index_id":7,"token_group":5,"text":"\"__\"","start_char":36,"line":1},{"index_id":8,"token_group":6,"text":";","start_char":40,"line":1},{"index_id":9,"token_group":7,"text":"}","start_char":0,"line":2}],"tokens_list":["{","return","collection","Suffix","Seed","++","+","\"__\"",";","}"],"uuid":"84064e526c839955de6b8e2016b5dedc"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","do","Highlighting","Test","<\/id>","(","\"unused-define.rnc\"",")",";","}","<SENTENCE_END\/>"],"file_name":"RncIndexHighlightingTest.java","formatted_lines":["public void testInspectionUnusedDefine() throws Throwable {"," doHighlightingTest(\"unused-define.rnc\");","}"],"function_name":"testInspectionUnusedDefine","function_name_tokens":["test","inspection","unused","define"],"id_body_hash":"65ee81aa98d58522737a36298ef694c9","id_same_identifier_list":[0,1,2,2,2,3,4,5,6,7,8],"option_correct":"testInspectionUnusedDefine","options":["testUnused","testInspectionUsedDefine","testInspectionUnusedDefine","testInspectionSuppressedUnusedDefine","testByteNumber","testIfInsideArgumentList","setLabelExpression"],"options_nlp":["test unused","test inspection used define","test inspection unused define","test inspection suppressed unused define","test byte number","test if inside argument list","set label expression"],"options_random":["setLabelExpression","testByteNumber","testIfInsideArgumentList"],"options_tfidf":["testUnused","testInspectionUsedDefine","testInspectionSuppressedUnusedDefine"],"project_name":"intellij-community","source_code_string":"public void testInspectionUnusedDefine() throws Throwable {\n doHighlightingTest(\"unused-define.rnc\");\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":38,"line":0},{"index_id":1,"token_group":1,"text":"do","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"Highlighting","start_char":6,"line":1},{"index_id":3,"token_group":2,"text":"Test","start_char":18,"line":1},{"index_id":4,"token_group":2,"text":"(","start_char":22,"line":1},{"index_id":5,"token_group":3,"text":"\"unused-define.rnc\"","start_char":23,"line":1},{"index_id":6,"token_group":4,"text":")","start_char":42,"line":1},{"index_id":7,"token_group":5,"text":";","start_char":43,"line":1},{"index_id":8,"token_group":6,"text":"}","start_char":0,"line":2}],"tokens_list":["{","do","Highlighting","Test","(","\"unused-define.rnc\"",")",";","}"],"uuid":"499d59563b91d6d1e557f256879ef397"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","string","Bundler","<\/id>","<id>","query","<\/id>","=","null",";","if","(","<id>","order","By","Comparator","<\/id>","!=","null",")","{","<id>","query","<\/id>","=","new","<id>","string","Bundler","<\/id>","(","6","+","(","<id>","order","By","Comparator","<\/id>",".","<id>","get","Order","By","Fields","<\/id>","(",")",".","<id>","length","<\/id>","*","6",")",")",";","}","else","{","<id>","query","<\/id>","=","new","<id>","string","Bundler","<\/id>","(","3",")",";","}","<id>","query","<\/id>",".","<id>","append","<\/id>","(","<id>","","Sql","Select","Journalarticle","Where","<\/id>",")",";","<id>","query","<\/id>",".","<id>","append","<\/id>","(","<id>","","Finder","Column","G","F","Groupid","2","<\/id>",")",";","<id>","query","<\/id>",".","<id>","append","<\/id>","(","<id>","","Finder","Column","G","F","Folderid","2","<\/id>",")",";","if","(","<id>","order","By","Comparator","<\/id>","!=","null",")","{","<id>","string","<\/id>","[","]","<id>","order","By","Condition","Fields","<\/id>","=","<id>","order","By","Comparator","<\/id>",".","<id>","get","Order","By","Condition","Fields","<\/id>","(",")",";","if","(","<id>","order","By","Condition","Fields","<\/id>",".","<id>","length","<\/id>",">","0",")","{","<id>","query","<\/id>",".","<id>","append","<\/id>","(","<id>","where","And","<\/id>",")",";","}","for","(","int","<id>","i","<\/id>","=","0",";","<id>","i","<\/id>","<","<id>","order","By","Condition","Fields","<\/id>",".","<id>","length","<\/id>",";","<id>","i","<\/id>","++",")","{","<id>","query","<\/id>",".","<id>","append","<\/id>","(","<id>","","Order","By","Entity","Alias","<\/id>",")",";","<id>","query","<\/id>",".","<id>","append","<\/id>","(","<id>","order","By","Condition","Fields","<\/id>","[","<id>","i","<\/id>","]",")",";","if","(","(","<id>","i","<\/id>","+","1",")","<","<id>","order","By","Condition","Fields","<\/id>",".","<id>","length","<\/id>",")","{","if","(","<id>","order","By","Comparator","<\/id>",".","<id>","is","Ascending","<\/id>","(",")","^","<id>","previous","<\/id>",")","{","<id>","query","<\/id>",".","<id>","append","<\/id>","(","<id>","where","Greater","Than","Has","Next","<\/id>",")",";","}","else","{","<id>","query","<\/id>",".","<id>","append","<\/id>","(","<id>","where","Lesser","Than","Has","Next","<\/id>",")",";","}","}","else","{","if","(","<id>","order","By","Comparator","<\/id>",".","<id>","is","Ascending","<\/id>","(",")","^","<id>","previous","<\/id>",")","{","<id>","query","<\/id>",".","<id>","append","<\/id>","(","<id>","where","Greater","Than","<\/id>",")",";","}","else","{","<id>","query","<\/id>",".","<id>","append","<\/id>","(","<id>","where","Lesser","Than","<\/id>",")",";","}","}","}","<id>","query","<\/id>",".","<id>","append","<\/id>","(","<id>","order","By","Clause","<\/id>",")",";","<id>","string","<\/id>","[","]","<id>","order","By","Fields","<\/id>","=","<id>","order","By","Comparator","<\/id>",".","<id>","get","Order","By","Fields","<\/id>","(",")",";","for","(","int","<id>","i","<\/id>","=","0",";","<id>","i","<\/id>","<","<id>","order","By","Fields","<\/id>",".","<id>","length","<\/id>",";","<id>","i","<\/id>","++",")","{","<id>","query","<\/id>",".","<id>","append","<\/id>","(","<id>","","Order","By","Entity","Alias","<\/id>",")",";","<id>","query","<\/id>",".","<id>","append","<\/id>","(","<id>","order","By","Fields","<\/id>","[","<id>","i","<\/id>","]",")",";","if","(","(","<id>","i","<\/id>","+","1",")","<","<id>","order","By","Fields","<\/id>",".","<id>","length","<\/id>",")","{","if","(","<id>","order","By","Comparator","<\/id>",".","<id>","is","Ascending","<\/id>","(",")","^","<id>","previous","<\/id>",")","{","<id>","query","<\/id>",".","<id>","append","<\/id>","(","<id>","order","By","Asc","Has","Next","<\/id>",")",";","}","else","{","<id>","query","<\/id>",".","<id>","append","<\/id>","(","<id>","order","By","Desc","Has","Next","<\/id>",")",";","}","}","else","{","if","(","<id>","order","By","Comparator","<\/id>",".","<id>","is","Ascending","<\/id>","(",")","^","<id>","previous","<\/id>",")","{","<id>","query","<\/id>",".","<id>","append","<\/id>","(","<id>","order","By","Asc","<\/id>",")",";","}","else","{","<id>","query","<\/id>",".","<id>","append","<\/id>","(","<id>","order","By","Desc","<\/id>",")",";","}","}","}","}","else","{","<id>","query","<\/id>",".","<id>","append","<\/id>","(","<id>","journal","Article","Model","Impl","<\/id>",".","<id>","order","By","Jpql","<\/id>",")",";","}","<id>","string","<\/id>","<id>","sql","<\/id>","=","<id>","query","<\/id>",".","<id>","to","String","<\/id>","(",")",";","<id>","query","<\/id>","<id>","q","<\/id>","=","<id>","session","<\/id>",".","<id>","create","Query","<\/id>","(","<id>","sql","<\/id>",")",";","<id>","q","<\/id>",".","<id>","set","First","Result","<\/id>","(","0",")",";","<id>","q","<\/id>",".","<id>","set","Max","Results","<\/id>","(","2",")",";","<id>","query","Pos","<\/id>","<id>","q","Pos","<\/id>","=","<id>","query","Pos","<\/id>",".","<id>","get","Instance","<\/id>","(","<id>","q","<\/id>",")",";","<id>","q","Pos","<\/id>",".","<id>","add","<\/id>","(","<id>","group","Id","<\/id>",")",";","<id>","q","Pos","<\/id>",".","<id>","add","<\/id>","(","<id>","folder","Id","<\/id>",")",";","if","(","<id>","order","By","Comparator","<\/id>","!=","null",")","{","<id>","object","<\/id>","[","]","<id>","values","<\/id>","=","<id>","order","By","Comparator","<\/id>",".","<id>","get","Order","By","Condition","Values","<\/id>","(","<id>","journal","Article","<\/id>",")",";","for","(","<id>","object","<\/id>","<id>","value","<\/id>",":","<id>","values","<\/id>",")","{","<id>","q","Pos","<\/id>",".","<id>","add","<\/id>","(","<id>","value","<\/id>",")",";","}","}","<id>","list","<\/id>","<","<id>","journal","Article","<\/id>",">","<id>","list","<\/id>","=","<id>","q","<\/id>",".","<id>","list","<\/id>","(",")",";","if","(","<id>","list","<\/id>",".","<id>","size","<\/id>","(",")","==","2",")","{","return","<id>","list","<\/id>",".","<id>","get","<\/id>","(","1",")",";","}","else","{","return","null",";","}","}","<SENTENCE_END\/>"],"file_name":"JournalArticlePersistenceImpl.java","formatted_lines":["{"," StringBundler query = null;",""," if (orderByComparator != null)"," {"," query = new StringBundler(6 +"," (orderByComparator.getOrderByFields().length * 6));"," }"," else"," {"," query = new StringBundler(3);"," }",""," query.append(_SQL_SELECT_JOURNALARTICLE_WHERE);",""," query.append(_FINDER_COLUMN_G_F_GROUPID_2);",""," query.append(_FINDER_COLUMN_G_F_FOLDERID_2);",""," if (orderByComparator != null)"," {"," String[] orderByConditionFields = orderByComparator.getOrderByConditionFields();",""," if (orderByConditionFields.length > 0)"," {"," query.append(WHERE_AND);"," }",""," for (int i = 0; i < orderByConditionFields.length; i++)"," {"," query.append(_ORDER_BY_ENTITY_ALIAS);"," query.append(orderByConditionFields[i]);",""," if ((i + 1) < orderByConditionFields.length)"," {"," if (orderByComparator.isAscending() ^ previous)"," {"," query.append(WHERE_GREATER_THAN_HAS_NEXT);"," }"," else"," {"," query.append(WHERE_LESSER_THAN_HAS_NEXT);"," }"," }"," else"," {"," if (orderByComparator.isAscending() ^ previous)"," {"," query.append(WHERE_GREATER_THAN);"," }"," else"," {"," query.append(WHERE_LESSER_THAN);"," }"," }"," }",""," query.append(ORDER_BY_CLAUSE);",""," String[] orderByFields = orderByComparator.getOrderByFields();",""," for (int i = 0; i < orderByFields.length; i++)"," {"," query.append(_ORDER_BY_ENTITY_ALIAS);"," query.append(orderByFields[i]);",""," if ((i + 1) < orderByFields.length)"," {"," if (orderByComparator.isAscending() ^ previous)"," {"," query.append(ORDER_BY_ASC_HAS_NEXT);"," }"," else"," {"," query.append(ORDER_BY_DESC_HAS_NEXT);"," }"," }"," else"," {"," if (orderByComparator.isAscending() ^ previous)"," {"," query.append(ORDER_BY_ASC);"," }"," else"," {"," query.append(ORDER_BY_DESC);"," }"," }"," }"," }"," else"," {"," query.append(JournalArticleModelImpl.ORDER_BY_JPQL);"," }",""," String sql = query.toString();",""," Query q = session.createQuery(sql);",""," q.setFirstResult(0);"," q.setMaxResults(2);",""," QueryPos qPos = QueryPos.getInstance(q);",""," qPos.add(groupId);",""," qPos.add(folderId);",""," if (orderByComparator != null)"," {"," Object[] values = orderByComparator.getOrderByConditionValues(journalArticle);",""," for (Object value : values)"," {"," qPos.add(value);"," }"," }",""," List<JournalArticle> list = q.list();",""," if (list.size() == 2)"," {"," return list.get(1);"," }"," else"," {"," return null;"," }","}"],"function_name":"getByG_F_PrevAndNext","function_name_tokens":["get","by","g","f","prev","and","next"],"id_body_hash":"661da32f82b77a60679ae90e7d72d6ea","id_same_identifier_list":[0,1,2,2,3,4,5,6,7,8,9,9,9,10,11,12,13,14,15,16,17,17,18,19,20,21,22,22,22,23,24,24,24,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,40,41,42,43,44,45,46,47,48,49,50,50,50,50,50,51,52,53,54,55,56,57,57,57,57,57,57,57,58,59,60,61,62,63,64,64,64,64,64,64,64,65,66,67,68,69,69,69,70,71,72,73,74,75,76,77,77,77,77,78,79,79,79,80,81,81,81,81,81,82,83,84,85,86,87,87,87,87,88,89,90,91,92,93,94,95,96,97,98,98,99,100,101,102,103,104,105,106,107,108,109,110,111,111,111,111,112,113,114,115,116,117,118,119,120,121,122,123,123,123,123,123,124,125,126,127,128,129,130,130,130,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,144,144,144,145,146,147,148,149,150,151,151,151,152,153,153,154,155,156,157,158,159,160,161,162,163,164,164,164,164,164,165,166,167,168,169,170,171,172,173,174,174,174,174,174,175,176,177,178,179,180,181,182,183,183,183,184,185,185,186,187,188,189,190,191,192,193,194,195,196,196,196,197,198,199,200,201,202,203,204,205,206,206,206,207,208,209,210,211,212,213,214,215,216,216,216,217,218,219,220,221,222,222,222,223,224,224,224,225,226,226,226,226,227,228,229,230,231,232,233,234,235,236,237,238,239,239,239,240,241,242,243,244,245,246,247,248,249,250,251,251,251,251,251,252,253,254,255,256,257,258,258,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,272,272,273,274,275,276,277,278,279,279,279,280,281,281,282,283,284,285,286,287,288,289,290,291,292,292,292,292,292,293,294,295,296,297,298,299,300,301,302,302,302,302,302,303,304,305,306,307,308,309,310,311,311,311,312,313,313,314,315,316,317,318,319,320,321,322,323,324,324,324,325,326,327,328,329,330,331,332,333,334,334,334,335,336,337,338,339,340,341,342,343,344,345,346,347,347,347,347,348,349,349,349,350,351,352,353,354,355,356,357,358,358,359,360,361,362,363,364,365,366,367,367,368,369,370,371,372,373,374,374,374,375,376,377,378,379,380,381,381,381,382,383,384,385,386,386,387,387,388,389,389,390,391,391,392,393,394,395,396,396,397,398,399,400,400,401,402,403,403,404,405,406,407,407,408,409,410,411,412,412,412,413,414,415,416,417,418,419,420,421,422,422,422,423,424,424,424,424,424,425,426,426,427,428,429,430,431,432,433,434,435,436,437,437,438,439,440,441,442,443,444,445,446,447,448,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,473,474,475,476,477,478,479,480,481,482,483,484,485],"option_correct":"getByG_F_PrevAndNext","options":["getByU_C_T_S_PrevAndNext","getByG_F_PrevAndNext","getByG_C_C_C_PrevAndNext","getIconPath","testSetResultWithCancellation","getDiscount","getByU_T_PrevAndNext"],"options_nlp":["get by u c t s prev and next","get by g f prev and next","get by g c c c prev and next","get icon path","test set result with cancellation","get discount","get by u t prev and next"],"options_random":["getIconPath","testSetResultWithCancellation","getDiscount"],"options_tfidf":["getByU_T_PrevAndNext","getByU_C_T_S_PrevAndNext","getByG_C_C_C_PrevAndNext"],"project_name":"liferay-portal","source_code_string":"protected JournalArticle getByG_F_PrevAndNext(Session session,\n\t\tJournalArticle journalArticle, long groupId, long folderId,\n\t\tOrderByComparator<JournalArticle> orderByComparator, boolean previous) {\n\t\tStringBundler query = null;\n\n\t\tif (orderByComparator != null) {\n\t\t\tquery = new StringBundler(6 +\n\t\t\t\t\t(orderByComparator.getOrderByFields().length * 6));\n\t\t}\n\t\telse {\n\t\t\tquery = new StringBundler(3);\n\t\t}\n\n\t\tquery.append(_SQL_SELECT_JOURNALARTICLE_WHERE);\n\n\t\tquery.append(_FINDER_COLUMN_G_F_GROUPID_2);\n\n\t\tquery.append(_FINDER_COLUMN_G_F_FOLDERID_2);\n\n\t\tif (orderByComparator != null) {\n\t\t\tString[] orderByConditionFields = orderByComparator.getOrderByConditionFields();\n\n\t\t\tif (orderByConditionFields.length > 0) {\n\t\t\t\tquery.append(WHERE_AND);\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < orderByConditionFields.length; i++) {\n\t\t\t\tquery.append(_ORDER_BY_ENTITY_ALIAS);\n\t\t\t\tquery.append(orderByConditionFields[i]);\n\n\t\t\t\tif ((i + 1) < orderByConditionFields.length) {\n\t\t\t\t\tif (orderByComparator.isAscending() ^ previous) {\n\t\t\t\t\t\tquery.append(WHERE_GREATER_THAN_HAS_NEXT);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tquery.append(WHERE_LESSER_THAN_HAS_NEXT);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif (orderByComparator.isAscending() ^ previous) {\n\t\t\t\t\t\tquery.append(WHERE_GREATER_THAN);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tquery.append(WHERE_LESSER_THAN);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tquery.append(ORDER_BY_CLAUSE);\n\n\t\t\tString[] orderByFields = orderByComparator.getOrderByFields();\n\n\t\t\tfor (int i = 0; i < orderByFields.length; i++) {\n\t\t\t\tquery.append(_ORDER_BY_ENTITY_ALIAS);\n\t\t\t\tquery.append(orderByFields[i]);\n\n\t\t\t\tif ((i + 1) < orderByFields.length) {\n\t\t\t\t\tif (orderByComparator.isAscending() ^ previous) {\n\t\t\t\t\t\tquery.append(ORDER_BY_ASC_HAS_NEXT);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tquery.append(ORDER_BY_DESC_HAS_NEXT);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif (orderByComparator.isAscending() ^ previous) {\n\t\t\t\t\t\tquery.append(ORDER_BY_ASC);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tquery.append(ORDER_BY_DESC);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tquery.append(JournalArticleModelImpl.ORDER_BY_JPQL);\n\t\t}\n\n\t\tString sql = query.toString();\n\n\t\tQuery q = session.createQuery(sql);\n\n\t\tq.setFirstResult(0);\n\t\tq.setMaxResults(2);\n\n\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\tqPos.add(groupId);\n\n\t\tqPos.add(folderId);\n\n\t\tif (orderByComparator != null) {\n\t\t\tObject[] values = orderByComparator.getOrderByConditionValues(journalArticle);\n\n\t\t\tfor (Object value : values) {\n\t\t\t\tqPos.add(value);\n\t\t\t}\n\t\t}\n\n\t\tList<JournalArticle> list = q.list();\n\n\t\tif (list.size() == 2) {\n\t\t\treturn list.get(1);\n\t\t}\n\t\telse {\n\t\t\treturn null;\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":"string","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"Bundler","start_char":10,"line":1},{"index_id":3,"token_group":2,"text":"query","start_char":18,"line":1},{"index_id":4,"token_group":3,"text":"=","start_char":24,"line":1},{"index_id":5,"token_group":4,"text":"null","start_char":26,"line":1},{"index_id":6,"token_group":5,"text":";","start_char":30,"line":1},{"index_id":7,"token_group":6,"text":"if","start_char":4,"line":3},{"index_id":8,"token_group":7,"text":"(","start_char":7,"line":3},{"index_id":9,"token_group":8,"text":"order","start_char":8,"line":3},{"index_id":10,"token_group":9,"text":"By","start_char":13,"line":3},{"index_id":11,"token_group":9,"text":"Comparator","start_char":15,"line":3},{"index_id":12,"token_group":9,"text":"!=","start_char":26,"line":3},{"index_id":13,"token_group":10,"text":"null","start_char":29,"line":3},{"index_id":14,"token_group":11,"text":")","start_char":33,"line":3},{"index_id":15,"token_group":12,"text":"{","start_char":4,"line":4},{"index_id":16,"token_group":13,"text":"query","start_char":8,"line":5},{"index_id":17,"token_group":14,"text":"=","start_char":14,"line":5},{"index_id":18,"token_group":15,"text":"new","start_char":16,"line":5},{"index_id":19,"token_group":16,"text":"string","start_char":20,"line":5},{"index_id":20,"token_group":17,"text":"Bundler","start_char":26,"line":5},{"index_id":21,"token_group":17,"text":"(","start_char":33,"line":5},{"index_id":22,"token_group":18,"text":"6","start_char":34,"line":5},{"index_id":23,"token_group":19,"text":"+","start_char":36,"line":5},{"index_id":24,"token_group":20,"text":"(","start_char":34,"line":6},{"index_id":25,"token_group":21,"text":"order","start_char":35,"line":6},{"index_id":26,"token_group":22,"text":"By","start_char":40,"line":6},{"index_id":27,"token_group":22,"text":"Comparator","start_char":42,"line":6},{"index_id":28,"token_group":22,"text":".","start_char":52,"line":6},{"index_id":29,"token_group":23,"text":"get","start_char":53,"line":6},{"index_id":30,"token_group":24,"text":"Order","start_char":56,"line":6},{"index_id":31,"token_group":24,"text":"By","start_char":61,"line":6},{"index_id":32,"token_group":24,"text":"Fields","start_char":63,"line":6},{"index_id":33,"token_group":24,"text":"(","start_char":69,"line":6},{"index_id":34,"token_group":25,"text":")","start_char":70,"line":6},{"index_id":35,"token_group":26,"text":".","start_char":71,"line":6},{"index_id":36,"token_group":27,"text":"length","start_char":72,"line":6},{"index_id":37,"token_group":28,"text":"*","start_char":79,"line":6},{"index_id":38,"token_group":29,"text":"6","start_char":81,"line":6},{"index_id":39,"token_group":30,"text":")","start_char":82,"line":6},{"index_id":40,"token_group":31,"text":")","start_char":83,"line":6},{"index_id":41,"token_group":32,"text":";","start_char":84,"line":6},{"index_id":42,"token_group":33,"text":"}","start_char":4,"line":7},{"index_id":43,"token_group":34,"text":"else","start_char":4,"line":8},{"index_id":44,"token_group":35,"text":"{","start_char":4,"line":9},{"index_id":45,"token_group":36,"text":"query","start_char":8,"line":10},{"index_id":46,"token_group":37,"text":"=","start_char":14,"line":10},{"index_id":47,"token_group":38,"text":"new","start_char":16,"line":10},{"index_id":48,"token_group":39,"text":"string","start_char":20,"line":10},{"index_id":49,"token_group":40,"text":"Bundler","start_char":26,"line":10},{"index_id":50,"token_group":40,"text":"(","start_char":33,"line":10},{"index_id":51,"token_group":41,"text":"3","start_char":34,"line":10},{"index_id":52,"token_group":42,"text":")","start_char":35,"line":10},{"index_id":53,"token_group":43,"text":";","start_char":36,"line":10},{"index_id":54,"token_group":44,"text":"}","start_char":4,"line":11},{"index_id":55,"token_group":45,"text":"query","start_char":4,"line":13},{"index_id":56,"token_group":46,"text":".","start_char":9,"line":13},{"index_id":57,"token_group":47,"text":"append","start_char":10,"line":13},{"index_id":58,"token_group":48,"text":"(","start_char":16,"line":13},{"index_id":59,"token_group":49,"text":"","start_char":17,"line":13},{"index_id":60,"token_group":50,"text":"Sql","start_char":18,"line":13},{"index_id":61,"token_group":50,"text":"Select","start_char":22,"line":13},{"index_id":62,"token_group":50,"text":"Journalarticle","start_char":29,"line":13},{"index_id":63,"token_group":50,"text":"Where","start_char":44,"line":13},{"index_id":64,"token_group":50,"text":")","start_char":49,"line":13},{"index_id":65,"token_group":51,"text":";","start_char":50,"line":13},{"index_id":66,"token_group":52,"text":"query","start_char":4,"line":15},{"index_id":67,"token_group":53,"text":".","start_char":9,"line":15},{"index_id":68,"token_group":54,"text":"append","start_char":10,"line":15},{"index_id":69,"token_group":55,"text":"(","start_char":16,"line":15},{"index_id":70,"token_group":56,"text":"","start_char":17,"line":15},{"index_id":71,"token_group":57,"text":"Finder","start_char":18,"line":15},{"index_id":72,"token_group":57,"text":"Column","start_char":25,"line":15},{"index_id":73,"token_group":57,"text":"G","start_char":32,"line":15},{"index_id":74,"token_group":57,"text":"F","start_char":34,"line":15},{"index_id":75,"token_group":57,"text":"Groupid","start_char":36,"line":15},{"index_id":76,"token_group":57,"text":"2","start_char":44,"line":15},{"index_id":77,"token_group":57,"text":")","start_char":45,"line":15},{"index_id":78,"token_group":58,"text":";","start_char":46,"line":15},{"index_id":79,"token_group":59,"text":"query","start_char":4,"line":17},{"index_id":80,"token_group":60,"text":".","start_char":9,"line":17},{"index_id":81,"token_group":61,"text":"append","start_char":10,"line":17},{"index_id":82,"token_group":62,"text":"(","start_char":16,"line":17},{"index_id":83,"token_group":63,"text":"","start_char":17,"line":17},{"index_id":84,"token_group":64,"text":"Finder","start_char":18,"line":17},{"index_id":85,"token_group":64,"text":"Column","start_char":25,"line":17},{"index_id":86,"token_group":64,"text":"G","start_char":32,"line":17},{"index_id":87,"token_group":64,"text":"F","start_char":34,"line":17},{"index_id":88,"token_group":64,"text":"Folderid","start_char":36,"line":17},{"index_id":89,"token_group":64,"text":"2","start_char":45,"line":17},{"index_id":90,"token_group":64,"text":")","start_char":46,"line":17},{"index_id":91,"token_group":65,"text":";","start_char":47,"line":17},{"index_id":92,"token_group":66,"text":"if","start_char":4,"line":19},{"index_id":93,"token_group":67,"text":"(","start_char":7,"line":19},{"index_id":94,"token_group":68,"text":"order","start_char":8,"line":19},{"index_id":95,"token_group":69,"text":"By","start_char":13,"line":19},{"index_id":96,"token_group":69,"text":"Comparator","start_char":15,"line":19},{"index_id":97,"token_group":69,"text":"!=","start_char":26,"line":19},{"index_id":98,"token_group":70,"text":"null","start_char":29,"line":19},{"index_id":99,"token_group":71,"text":")","start_char":33,"line":19},{"index_id":100,"token_group":72,"text":"{","start_char":4,"line":20},{"index_id":101,"token_group":73,"text":"string","start_char":8,"line":21},{"index_id":102,"token_group":74,"text":"[","start_char":14,"line":21},{"index_id":103,"token_group":75,"text":"]","start_char":15,"line":21},{"index_id":104,"token_group":76,"text":"order","start_char":17,"line":21},{"index_id":105,"token_group":77,"text":"By","start_char":22,"line":21},{"index_id":106,"token_group":77,"text":"Condition","start_char":24,"line":21},{"index_id":107,"token_group":77,"text":"Fields","start_char":33,"line":21},{"index_id":108,"token_group":77,"text":"=","start_char":40,"line":21},{"index_id":109,"token_group":78,"text":"order","start_char":42,"line":21},{"index_id":110,"token_group":79,"text":"By","start_char":47,"line":21},{"index_id":111,"token_group":79,"text":"Comparator","start_char":49,"line":21},{"index_id":112,"token_group":79,"text":".","start_char":59,"line":21},{"index_id":113,"token_group":80,"text":"get","start_char":60,"line":21},{"index_id":114,"token_group":81,"text":"Order","start_char":63,"line":21},{"index_id":115,"token_group":81,"text":"By","start_char":68,"line":21},{"index_id":116,"token_group":81,"text":"Condition","start_char":70,"line":21},{"index_id":117,"token_group":81,"text":"Fields","start_char":79,"line":21},{"index_id":118,"token_group":81,"text":"(","start_char":85,"line":21},{"index_id":119,"token_group":82,"text":")","start_char":86,"line":21},{"index_id":120,"token_group":83,"text":";","start_char":87,"line":21},{"index_id":121,"token_group":84,"text":"if","start_char":8,"line":23},{"index_id":122,"token_group":85,"text":"(","start_char":11,"line":23},{"index_id":123,"token_group":86,"text":"order","start_char":12,"line":23},{"index_id":124,"token_group":87,"text":"By","start_char":17,"line":23},{"index_id":125,"token_group":87,"text":"Condition","start_char":19,"line":23},{"index_id":126,"token_group":87,"text":"Fields","start_char":28,"line":23},{"index_id":127,"token_group":87,"text":".","start_char":34,"line":23},{"index_id":128,"token_group":88,"text":"length","start_char":35,"line":23},{"index_id":129,"token_group":89,"text":">","start_char":42,"line":23},{"index_id":130,"token_group":90,"text":"0","start_char":44,"line":23},{"index_id":131,"token_group":91,"text":")","start_char":45,"line":23},{"index_id":132,"token_group":92,"text":"{","start_char":8,"line":24},{"index_id":133,"token_group":93,"text":"query","start_char":12,"line":25},{"index_id":134,"token_group":94,"text":".","start_char":17,"line":25},{"index_id":135,"token_group":95,"text":"append","start_char":18,"line":25},{"index_id":136,"token_group":96,"text":"(","start_char":24,"line":25},{"index_id":137,"token_group":97,"text":"where","start_char":25,"line":25},{"index_id":138,"token_group":98,"text":"And","start_char":31,"line":25},{"index_id":139,"token_group":98,"text":")","start_char":34,"line":25},{"index_id":140,"token_group":99,"text":";","start_char":35,"line":25},{"index_id":141,"token_group":100,"text":"}","start_char":8,"line":26},{"index_id":142,"token_group":101,"text":"for","start_char":8,"line":28},{"index_id":143,"token_group":102,"text":"(","start_char":12,"line":28},{"index_id":144,"token_group":103,"text":"int","start_char":13,"line":28},{"index_id":145,"token_group":104,"text":"i","start_char":17,"line":28},{"index_id":146,"token_group":105,"text":"=","start_char":19,"line":28},{"index_id":147,"token_group":106,"text":"0","start_char":21,"line":28},{"index_id":148,"token_group":107,"text":";","start_char":22,"line":28},{"index_id":149,"token_group":108,"text":"i","start_char":24,"line":28},{"index_id":150,"token_group":109,"text":"<","start_char":26,"line":28},{"index_id":151,"token_group":110,"text":"order","start_char":28,"line":28},{"index_id":152,"token_group":111,"text":"By","start_char":33,"line":28},{"index_id":153,"token_group":111,"text":"Condition","start_char":35,"line":28},{"index_id":154,"token_group":111,"text":"Fields","start_char":44,"line":28},{"index_id":155,"token_group":111,"text":".","start_char":50,"line":28},{"index_id":156,"token_group":112,"text":"length","start_char":51,"line":28},{"index_id":157,"token_group":113,"text":";","start_char":57,"line":28},{"index_id":158,"token_group":114,"text":"i","start_char":59,"line":28},{"index_id":159,"token_group":115,"text":"++","start_char":60,"line":28},{"index_id":160,"token_group":116,"text":")","start_char":62,"line":28},{"index_id":161,"token_group":117,"text":"{","start_char":8,"line":29},{"index_id":162,"token_group":118,"text":"query","start_char":12,"line":30},{"index_id":163,"token_group":119,"text":".","start_char":17,"line":30},{"index_id":164,"token_group":120,"text":"append","start_char":18,"line":30},{"index_id":165,"token_group":121,"text":"(","start_char":24,"line":30},{"index_id":166,"token_group":122,"text":"","start_char":25,"line":30},{"index_id":167,"token_group":123,"text":"Order","start_char":26,"line":30},{"index_id":168,"token_group":123,"text":"By","start_char":32,"line":30},{"index_id":169,"token_group":123,"text":"Entity","start_char":35,"line":30},{"index_id":170,"token_group":123,"text":"Alias","start_char":42,"line":30},{"index_id":171,"token_group":123,"text":")","start_char":47,"line":30},{"index_id":172,"token_group":124,"text":";","start_char":48,"line":30},{"index_id":173,"token_group":125,"text":"query","start_char":12,"line":31},{"index_id":174,"token_group":126,"text":".","start_char":17,"line":31},{"index_id":175,"token_group":127,"text":"append","start_char":18,"line":31},{"index_id":176,"token_group":128,"text":"(","start_char":24,"line":31},{"index_id":177,"token_group":129,"text":"order","start_char":25,"line":31},{"index_id":178,"token_group":130,"text":"By","start_char":30,"line":31},{"index_id":179,"token_group":130,"text":"Condition","start_char":32,"line":31},{"index_id":180,"token_group":130,"text":"Fields","start_char":41,"line":31},{"index_id":181,"token_group":130,"text":"[","start_char":47,"line":31},{"index_id":182,"token_group":131,"text":"i","start_char":48,"line":31},{"index_id":183,"token_group":132,"text":"]","start_char":49,"line":31},{"index_id":184,"token_group":133,"text":")","start_char":50,"line":31},{"index_id":185,"token_group":134,"text":";","start_char":51,"line":31},{"index_id":186,"token_group":135,"text":"if","start_char":12,"line":33},{"index_id":187,"token_group":136,"text":"(","start_char":15,"line":33},{"index_id":188,"token_group":137,"text":"(","start_char":16,"line":33},{"index_id":189,"token_group":138,"text":"i","start_char":17,"line":33},{"index_id":190,"token_group":139,"text":"+","start_char":19,"line":33},{"index_id":191,"token_group":140,"text":"1","start_char":21,"line":33},{"index_id":192,"token_group":141,"text":")","start_char":22,"line":33},{"index_id":193,"token_group":142,"text":"<","start_char":24,"line":33},{"index_id":194,"token_group":143,"text":"order","start_char":26,"line":33},{"index_id":195,"token_group":144,"text":"By","start_char":31,"line":33},{"index_id":196,"token_group":144,"text":"Condition","start_char":33,"line":33},{"index_id":197,"token_group":144,"text":"Fields","start_char":42,"line":33},{"index_id":198,"token_group":144,"text":".","start_char":48,"line":33},{"index_id":199,"token_group":145,"text":"length","start_char":49,"line":33},{"index_id":200,"token_group":146,"text":")","start_char":55,"line":33},{"index_id":201,"token_group":147,"text":"{","start_char":12,"line":34},{"index_id":202,"token_group":148,"text":"if","start_char":16,"line":35},{"index_id":203,"token_group":149,"text":"(","start_char":19,"line":35},{"index_id":204,"token_group":150,"text":"order","start_char":20,"line":35},{"index_id":205,"token_group":151,"text":"By","start_char":25,"line":35},{"index_id":206,"token_group":151,"text":"Comparator","start_char":27,"line":35},{"index_id":207,"token_group":151,"text":".","start_char":37,"line":35},{"index_id":208,"token_group":152,"text":"is","start_char":38,"line":35},{"index_id":209,"token_group":153,"text":"Ascending","start_char":40,"line":35},{"index_id":210,"token_group":153,"text":"(","start_char":49,"line":35},{"index_id":211,"token_group":154,"text":")","start_char":50,"line":35},{"index_id":212,"token_group":155,"text":"^","start_char":52,"line":35},{"index_id":213,"token_group":156,"text":"previous","start_char":54,"line":35},{"index_id":214,"token_group":157,"text":")","start_char":62,"line":35},{"index_id":215,"token_group":158,"text":"{","start_char":16,"line":36},{"index_id":216,"token_group":159,"text":"query","start_char":20,"line":37},{"index_id":217,"token_group":160,"text":".","start_char":25,"line":37},{"index_id":218,"token_group":161,"text":"append","start_char":26,"line":37},{"index_id":219,"token_group":162,"text":"(","start_char":32,"line":37},{"index_id":220,"token_group":163,"text":"where","start_char":33,"line":37},{"index_id":221,"token_group":164,"text":"Greater","start_char":39,"line":37},{"index_id":222,"token_group":164,"text":"Than","start_char":47,"line":37},{"index_id":223,"token_group":164,"text":"Has","start_char":52,"line":37},{"index_id":224,"token_group":164,"text":"Next","start_char":56,"line":37},{"index_id":225,"token_group":164,"text":")","start_char":60,"line":37},{"index_id":226,"token_group":165,"text":";","start_char":61,"line":37},{"index_id":227,"token_group":166,"text":"}","start_char":16,"line":38},{"index_id":228,"token_group":167,"text":"else","start_char":16,"line":39},{"index_id":229,"token_group":168,"text":"{","start_char":16,"line":40},{"index_id":230,"token_group":169,"text":"query","start_char":20,"line":41},{"index_id":231,"token_group":170,"text":".","start_char":25,"line":41},{"index_id":232,"token_group":171,"text":"append","start_char":26,"line":41},{"index_id":233,"token_group":172,"text":"(","start_char":32,"line":41},{"index_id":234,"token_group":173,"text":"where","start_char":33,"line":41},{"index_id":235,"token_group":174,"text":"Lesser","start_char":39,"line":41},{"index_id":236,"token_group":174,"text":"Than","start_char":46,"line":41},{"index_id":237,"token_group":174,"text":"Has","start_char":51,"line":41},{"index_id":238,"token_group":174,"text":"Next","start_char":55,"line":41},{"index_id":239,"token_group":174,"text":")","start_char":59,"line":41},{"index_id":240,"token_group":175,"text":";","start_char":60,"line":41},{"index_id":241,"token_group":176,"text":"}","start_char":16,"line":42},{"index_id":242,"token_group":177,"text":"}","start_char":12,"line":43},{"index_id":243,"token_group":178,"text":"else","start_char":12,"line":44},{"index_id":244,"token_group":179,"text":"{","start_char":12,"line":45},{"index_id":245,"token_group":180,"text":"if","start_char":16,"line":46},{"index_id":246,"token_group":181,"text":"(","start_char":19,"line":46},{"index_id":247,"token_group":182,"text":"order","start_char":20,"line":46},{"index_id":248,"token_group":183,"text":"By","start_char":25,"line":46},{"index_id":249,"token_group":183,"text":"Comparator","start_char":27,"line":46},{"index_id":250,"token_group":183,"text":".","start_char":37,"line":46},{"index_id":251,"token_group":184,"text":"is","start_char":38,"line":46},{"index_id":252,"token_group":185,"text":"Ascending","start_char":40,"line":46},{"index_id":253,"token_group":185,"text":"(","start_char":49,"line":46},{"index_id":254,"token_group":186,"text":")","start_char":50,"line":46},{"index_id":255,"token_group":187,"text":"^","start_char":52,"line":46},{"index_id":256,"token_group":188,"text":"previous","start_char":54,"line":46},{"index_id":257,"token_group":189,"text":")","start_char":62,"line":46},{"index_id":258,"token_group":190,"text":"{","start_char":16,"line":47},{"index_id":259,"token_group":191,"text":"query","start_char":20,"line":48},{"index_id":260,"token_group":192,"text":".","start_char":25,"line":48},{"index_id":261,"token_group":193,"text":"append","start_char":26,"line":48},{"index_id":262,"token_group":194,"text":"(","start_char":32,"line":48},{"index_id":263,"token_group":195,"text":"where","start_char":33,"line":48},{"index_id":264,"token_group":196,"text":"Greater","start_char":39,"line":48},{"index_id":265,"token_group":196,"text":"Than","start_char":47,"line":48},{"index_id":266,"token_group":196,"text":")","start_char":51,"line":48},{"index_id":267,"token_group":197,"text":";","start_char":52,"line":48},{"index_id":268,"token_group":198,"text":"}","start_char":16,"line":49},{"index_id":269,"token_group":199,"text":"else","start_char":16,"line":50},{"index_id":270,"token_group":200,"text":"{","start_char":16,"line":51},{"index_id":271,"token_group":201,"text":"query","start_char":20,"line":52},{"index_id":272,"token_group":202,"text":".","start_char":25,"line":52},{"index_id":273,"token_group":203,"text":"append","start_char":26,"line":52},{"index_id":274,"token_group":204,"text":"(","start_char":32,"line":52},{"index_id":275,"token_group":205,"text":"where","start_char":33,"line":52},{"index_id":276,"token_group":206,"text":"Lesser","start_char":39,"line":52},{"index_id":277,"token_group":206,"text":"Than","start_char":46,"line":52},{"index_id":278,"token_group":206,"text":")","start_char":50,"line":52},{"index_id":279,"token_group":207,"text":";","start_char":51,"line":52},{"index_id":280,"token_group":208,"text":"}","start_char":16,"line":53},{"index_id":281,"token_group":209,"text":"}","start_char":12,"line":54},{"index_id":282,"token_group":210,"text":"}","start_char":8,"line":55},{"index_id":283,"token_group":211,"text":"query","start_char":8,"line":57},{"index_id":284,"token_group":212,"text":".","start_char":13,"line":57},{"index_id":285,"token_group":213,"text":"append","start_char":14,"line":57},{"index_id":286,"token_group":214,"text":"(","start_char":20,"line":57},{"index_id":287,"token_group":215,"text":"order","start_char":21,"line":57},{"index_id":288,"token_group":216,"text":"By","start_char":27,"line":57},{"index_id":289,"token_group":216,"text":"Clause","start_char":30,"line":57},{"index_id":290,"token_group":216,"text":")","start_char":36,"line":57},{"index_id":291,"token_group":217,"text":";","start_char":37,"line":57},{"index_id":292,"token_group":218,"text":"string","start_char":8,"line":59},{"index_id":293,"token_group":219,"text":"[","start_char":14,"line":59},{"index_id":294,"token_group":220,"text":"]","start_char":15,"line":59},{"index_id":295,"token_group":221,"text":"order","start_char":17,"line":59},{"index_id":296,"token_group":222,"text":"By","start_char":22,"line":59},{"index_id":297,"token_group":222,"text":"Fields","start_char":24,"line":59},{"index_id":298,"token_group":222,"text":"=","start_char":31,"line":59},{"index_id":299,"token_group":223,"text":"order","start_char":33,"line":59},{"index_id":300,"token_group":224,"text":"By","start_char":38,"line":59},{"index_id":301,"token_group":224,"text":"Comparator","start_char":40,"line":59},{"index_id":302,"token_group":224,"text":".","start_char":50,"line":59},{"index_id":303,"token_group":225,"text":"get","start_char":51,"line":59},{"index_id":304,"token_group":226,"text":"Order","start_char":54,"line":59},{"index_id":305,"token_group":226,"text":"By","start_char":59,"line":59},{"index_id":306,"token_group":226,"text":"Fields","start_char":61,"line":59},{"index_id":307,"token_group":226,"text":"(","start_char":67,"line":59},{"index_id":308,"token_group":227,"text":")","start_char":68,"line":59},{"index_id":309,"token_group":228,"text":";","start_char":69,"line":59},{"index_id":310,"token_group":229,"text":"for","start_char":8,"line":61},{"index_id":311,"token_group":230,"text":"(","start_char":12,"line":61},{"index_id":312,"token_group":231,"text":"int","start_char":13,"line":61},{"index_id":313,"token_group":232,"text":"i","start_char":17,"line":61},{"index_id":314,"token_group":233,"text":"=","start_char":19,"line":61},{"index_id":315,"token_group":234,"text":"0","start_char":21,"line":61},{"index_id":316,"token_group":235,"text":";","start_char":22,"line":61},{"index_id":317,"token_group":236,"text":"i","start_char":24,"line":61},{"index_id":318,"token_group":237,"text":"<","start_char":26,"line":61},{"index_id":319,"token_group":238,"text":"order","start_char":28,"line":61},{"index_id":320,"token_group":239,"text":"By","start_char":33,"line":61},{"index_id":321,"token_group":239,"text":"Fields","start_char":35,"line":61},{"index_id":322,"token_group":239,"text":".","start_char":41,"line":61},{"index_id":323,"token_group":240,"text":"length","start_char":42,"line":61},{"index_id":324,"token_group":241,"text":";","start_char":48,"line":61},{"index_id":325,"token_group":242,"text":"i","start_char":50,"line":61},{"index_id":326,"token_group":243,"text":"++","start_char":51,"line":61},{"index_id":327,"token_group":244,"text":")","start_char":53,"line":61},{"index_id":328,"token_group":245,"text":"{","start_char":8,"line":62},{"index_id":329,"token_group":246,"text":"query","start_char":12,"line":63},{"index_id":330,"token_group":247,"text":".","start_char":17,"line":63},{"index_id":331,"token_group":248,"text":"append","start_char":18,"line":63},{"index_id":332,"token_group":249,"text":"(","start_char":24,"line":63},{"index_id":333,"token_group":250,"text":"","start_char":25,"line":63},{"index_id":334,"token_group":251,"text":"Order","start_char":26,"line":63},{"index_id":335,"token_group":251,"text":"By","start_char":32,"line":63},{"index_id":336,"token_group":251,"text":"Entity","start_char":35,"line":63},{"index_id":337,"token_group":251,"text":"Alias","start_char":42,"line":63},{"index_id":338,"token_group":251,"text":")","start_char":47,"line":63},{"index_id":339,"token_group":252,"text":";","start_char":48,"line":63},{"index_id":340,"token_group":253,"text":"query","start_char":12,"line":64},{"index_id":341,"token_group":254,"text":".","start_char":17,"line":64},{"index_id":342,"token_group":255,"text":"append","start_char":18,"line":64},{"index_id":343,"token_group":256,"text":"(","start_char":24,"line":64},{"index_id":344,"token_group":257,"text":"order","start_char":25,"line":64},{"index_id":345,"token_group":258,"text":"By","start_char":30,"line":64},{"index_id":346,"token_group":258,"text":"Fields","start_char":32,"line":64},{"index_id":347,"token_group":258,"text":"[","start_char":38,"line":64},{"index_id":348,"token_group":259,"text":"i","start_char":39,"line":64},{"index_id":349,"token_group":260,"text":"]","start_char":40,"line":64},{"index_id":350,"token_group":261,"text":")","start_char":41,"line":64},{"index_id":351,"token_group":262,"text":";","start_char":42,"line":64},{"index_id":352,"token_group":263,"text":"if","start_char":12,"line":66},{"index_id":353,"token_group":264,"text":"(","start_char":15,"line":66},{"index_id":354,"token_group":265,"text":"(","start_char":16,"line":66},{"index_id":355,"token_group":266,"text":"i","start_char":17,"line":66},{"index_id":356,"token_group":267,"text":"+","start_char":19,"line":66},{"index_id":357,"token_group":268,"text":"1","start_char":21,"line":66},{"index_id":358,"token_group":269,"text":")","start_char":22,"line":66},{"index_id":359,"token_group":270,"text":"<","start_char":24,"line":66},{"index_id":360,"token_group":271,"text":"order","start_char":26,"line":66},{"index_id":361,"token_group":272,"text":"By","start_char":31,"line":66},{"index_id":362,"token_group":272,"text":"Fields","start_char":33,"line":66},{"index_id":363,"token_group":272,"text":".","start_char":39,"line":66},{"index_id":364,"token_group":273,"text":"length","start_char":40,"line":66},{"index_id":365,"token_group":274,"text":")","start_char":46,"line":66},{"index_id":366,"token_group":275,"text":"{","start_char":12,"line":67},{"index_id":367,"token_group":276,"text":"if","start_char":16,"line":68},{"index_id":368,"token_group":277,"text":"(","start_char":19,"line":68},{"index_id":369,"token_group":278,"text":"order","start_char":20,"line":68},{"index_id":370,"token_group":279,"text":"By","start_char":25,"line":68},{"index_id":371,"token_group":279,"text":"Comparator","start_char":27,"line":68},{"index_id":372,"token_group":279,"text":".","start_char":37,"line":68},{"index_id":373,"token_group":280,"text":"is","start_char":38,"line":68},{"index_id":374,"token_group":281,"text":"Ascending","start_char":40,"line":68},{"index_id":375,"token_group":281,"text":"(","start_char":49,"line":68},{"index_id":376,"token_group":282,"text":")","start_char":50,"line":68},{"index_id":377,"token_group":283,"text":"^","start_char":52,"line":68},{"index_id":378,"token_group":284,"text":"previous","start_char":54,"line":68},{"index_id":379,"token_group":285,"text":")","start_char":62,"line":68},{"index_id":380,"token_group":286,"text":"{","start_char":16,"line":69},{"index_id":381,"token_group":287,"text":"query","start_char":20,"line":70},{"index_id":382,"token_group":288,"text":".","start_char":25,"line":70},{"index_id":383,"token_group":289,"text":"append","start_char":26,"line":70},{"index_id":384,"token_group":290,"text":"(","start_char":32,"line":70},{"index_id":385,"token_group":291,"text":"order","start_char":33,"line":70},{"index_id":386,"token_group":292,"text":"By","start_char":39,"line":70},{"index_id":387,"token_group":292,"text":"Asc","start_char":42,"line":70},{"index_id":388,"token_group":292,"text":"Has","start_char":46,"line":70},{"index_id":389,"token_group":292,"text":"Next","start_char":50,"line":70},{"index_id":390,"token_group":292,"text":")","start_char":54,"line":70},{"index_id":391,"token_group":293,"text":";","start_char":55,"line":70},{"index_id":392,"token_group":294,"text":"}","start_char":16,"line":71},{"index_id":393,"token_group":295,"text":"else","start_char":16,"line":72},{"index_id":394,"token_group":296,"text":"{","start_char":16,"line":73},{"index_id":395,"token_group":297,"text":"query","start_char":20,"line":74},{"index_id":396,"token_group":298,"text":".","start_char":25,"line":74},{"index_id":397,"token_group":299,"text":"append","start_char":26,"line":74},{"index_id":398,"token_group":300,"text":"(","start_char":32,"line":74},{"index_id":399,"token_group":301,"text":"order","start_char":33,"line":74},{"index_id":400,"token_group":302,"text":"By","start_char":39,"line":74},{"index_id":401,"token_group":302,"text":"Desc","start_char":42,"line":74},{"index_id":402,"token_group":302,"text":"Has","start_char":47,"line":74},{"index_id":403,"token_group":302,"text":"Next","start_char":51,"line":74},{"index_id":404,"token_group":302,"text":")","start_char":55,"line":74},{"index_id":405,"token_group":303,"text":";","start_char":56,"line":74},{"index_id":406,"token_group":304,"text":"}","start_char":16,"line":75},{"index_id":407,"token_group":305,"text":"}","start_char":12,"line":76},{"index_id":408,"token_group":306,"text":"else","start_char":12,"line":77},{"index_id":409,"token_group":307,"text":"{","start_char":12,"line":78},{"index_id":410,"token_group":308,"text":"if","start_char":16,"line":79},{"index_id":411,"token_group":309,"text":"(","start_char":19,"line":79},{"index_id":412,"token_group":310,"text":"order","start_char":20,"line":79},{"index_id":413,"token_group":311,"text":"By","start_char":25,"line":79},{"index_id":414,"token_group":311,"text":"Comparator","start_char":27,"line":79},{"index_id":415,"token_group":311,"text":".","start_char":37,"line":79},{"index_id":416,"token_group":312,"text":"is","start_char":38,"line":79},{"index_id":417,"token_group":313,"text":"Ascending","start_char":40,"line":79},{"index_id":418,"token_group":313,"text":"(","start_char":49,"line":79},{"index_id":419,"token_group":314,"text":")","start_char":50,"line":79},{"index_id":420,"token_group":315,"text":"^","start_char":52,"line":79},{"index_id":421,"token_group":316,"text":"previous","start_char":54,"line":79},{"index_id":422,"token_group":317,"text":")","start_char":62,"line":79},{"index_id":423,"token_group":318,"text":"{","start_char":16,"line":80},{"index_id":424,"token_group":319,"text":"query","start_char":20,"line":81},{"index_id":425,"token_group":320,"text":".","start_char":25,"line":81},{"index_id":426,"token_group":321,"text":"append","start_char":26,"line":81},{"index_id":427,"token_group":322,"text":"(","start_char":32,"line":81},{"index_id":428,"token_group":323,"text":"order","start_char":33,"line":81},{"index_id":429,"token_group":324,"text":"By","start_char":39,"line":81},{"index_id":430,"token_group":324,"text":"Asc","start_char":42,"line":81},{"index_id":431,"token_group":324,"text":")","start_char":45,"line":81},{"index_id":432,"token_group":325,"text":";","start_char":46,"line":81},{"index_id":433,"token_group":326,"text":"}","start_char":16,"line":82},{"index_id":434,"token_group":327,"text":"else","start_char":16,"line":83},{"index_id":435,"token_group":328,"text":"{","start_char":16,"line":84},{"index_id":436,"token_group":329,"text":"query","start_char":20,"line":85},{"index_id":437,"token_group":330,"text":".","start_char":25,"line":85},{"index_id":438,"token_group":331,"text":"append","start_char":26,"line":85},{"index_id":439,"token_group":332,"text":"(","start_char":32,"line":85},{"index_id":440,"token_group":333,"text":"order","start_char":33,"line":85},{"index_id":441,"token_group":334,"text":"By","start_char":39,"line":85},{"index_id":442,"token_group":334,"text":"Desc","start_char":42,"line":85},{"index_id":443,"token_group":334,"text":")","start_char":46,"line":85},{"index_id":444,"token_group":335,"text":";","start_char":47,"line":85},{"index_id":445,"token_group":336,"text":"}","start_char":16,"line":86},{"index_id":446,"token_group":337,"text":"}","start_char":12,"line":87},{"index_id":447,"token_group":338,"text":"}","start_char":8,"line":88},{"index_id":448,"token_group":339,"text":"}","start_char":4,"line":89},{"index_id":449,"token_group":340,"text":"else","start_char":4,"line":90},{"index_id":450,"token_group":341,"text":"{","start_char":4,"line":91},{"index_id":451,"token_group":342,"text":"query","start_char":8,"line":92},{"index_id":452,"token_group":343,"text":".","start_char":13,"line":92},{"index_id":453,"token_group":344,"text":"append","start_char":14,"line":92},{"index_id":454,"token_group":345,"text":"(","start_char":20,"line":92},{"index_id":455,"token_group":346,"text":"journal","start_char":21,"line":92},{"index_id":456,"token_group":347,"text":"Article","start_char":28,"line":92},{"index_id":457,"token_group":347,"text":"Model","start_char":35,"line":92},{"index_id":458,"token_group":347,"text":"Impl","start_char":40,"line":92},{"index_id":459,"token_group":347,"text":".","start_char":44,"line":92},{"index_id":460,"token_group":348,"text":"order","start_char":45,"line":92},{"index_id":461,"token_group":349,"text":"By","start_char":51,"line":92},{"index_id":462,"token_group":349,"text":"Jpql","start_char":54,"line":92},{"index_id":463,"token_group":349,"text":")","start_char":58,"line":92},{"index_id":464,"token_group":350,"text":";","start_char":59,"line":92},{"index_id":465,"token_group":351,"text":"}","start_char":4,"line":93},{"index_id":466,"token_group":352,"text":"string","start_char":4,"line":95},{"index_id":467,"token_group":353,"text":"sql","start_char":11,"line":95},{"index_id":468,"token_group":354,"text":"=","start_char":15,"line":95},{"index_id":469,"token_group":355,"text":"query","start_char":17,"line":95},{"index_id":470,"token_group":356,"text":".","start_char":22,"line":95},{"index_id":471,"token_group":357,"text":"to","start_char":23,"line":95},{"index_id":472,"token_group":358,"text":"String","start_char":25,"line":95},{"index_id":473,"token_group":358,"text":"(","start_char":31,"line":95},{"index_id":474,"token_group":359,"text":")","start_char":32,"line":95},{"index_id":475,"token_group":360,"text":";","start_char":33,"line":95},{"index_id":476,"token_group":361,"text":"query","start_char":4,"line":97},{"index_id":477,"token_group":362,"text":"q","start_char":10,"line":97},{"index_id":478,"token_group":363,"text":"=","start_char":12,"line":97},{"index_id":479,"token_group":364,"text":"session","start_char":14,"line":97},{"index_id":480,"token_group":365,"text":".","start_char":21,"line":97},{"index_id":481,"token_group":366,"text":"create","start_char":22,"line":97},{"index_id":482,"token_group":367,"text":"Query","start_char":28,"line":97},{"index_id":483,"token_group":367,"text":"(","start_char":33,"line":97},{"index_id":484,"token_group":368,"text":"sql","start_char":34,"line":97},{"index_id":485,"token_group":369,"text":")","start_char":37,"line":97},{"index_id":486,"token_group":370,"text":";","start_char":38,"line":97},{"index_id":487,"token_group":371,"text":"q","start_char":4,"line":99},{"index_id":488,"token_group":372,"text":".","start_char":5,"line":99},{"index_id":489,"token_group":373,"text":"set","start_char":6,"line":99},{"index_id":490,"token_group":374,"text":"First","start_char":9,"line":99},{"index_id":491,"token_group":374,"text":"Result","start_char":14,"line":99},{"index_id":492,"token_group":374,"text":"(","start_char":20,"line":99},{"index_id":493,"token_group":375,"text":"0","start_char":21,"line":99},{"index_id":494,"token_group":376,"text":")","start_char":22,"line":99},{"index_id":495,"token_group":377,"text":";","start_char":23,"line":99},{"index_id":496,"token_group":378,"text":"q","start_char":4,"line":100},{"index_id":497,"token_group":379,"text":".","start_char":5,"line":100},{"index_id":498,"token_group":380,"text":"set","start_char":6,"line":100},{"index_id":499,"token_group":381,"text":"Max","start_char":9,"line":100},{"index_id":500,"token_group":381,"text":"Results","start_char":12,"line":100},{"index_id":501,"token_group":381,"text":"(","start_char":19,"line":100},{"index_id":502,"token_group":382,"text":"2","start_char":20,"line":100},{"index_id":503,"token_group":383,"text":")","start_char":21,"line":100},{"index_id":504,"token_group":384,"text":";","start_char":22,"line":100},{"index_id":505,"token_group":385,"text":"query","start_char":4,"line":102},{"index_id":506,"token_group":386,"text":"Pos","start_char":9,"line":102},{"index_id":507,"token_group":386,"text":"q","start_char":13,"line":102},{"index_id":508,"token_group":387,"text":"Pos","start_char":14,"line":102},{"index_id":509,"token_group":387,"text":"=","start_char":18,"line":102},{"index_id":510,"token_group":388,"text":"query","start_char":20,"line":102},{"index_id":511,"token_group":389,"text":"Pos","start_char":25,"line":102},{"index_id":512,"token_group":389,"text":".","start_char":28,"line":102},{"index_id":513,"token_group":390,"text":"get","start_char":29,"line":102},{"index_id":514,"token_group":391,"text":"Instance","start_char":32,"line":102},{"index_id":515,"token_group":391,"text":"(","start_char":40,"line":102},{"index_id":516,"token_group":392,"text":"q","start_char":41,"line":102},{"index_id":517,"token_group":393,"text":")","start_char":42,"line":102},{"index_id":518,"token_group":394,"text":";","start_char":43,"line":102},{"index_id":519,"token_group":395,"text":"q","start_char":4,"line":104},{"index_id":520,"token_group":396,"text":"Pos","start_char":5,"line":104},{"index_id":521,"token_group":396,"text":".","start_char":8,"line":104},{"index_id":522,"token_group":397,"text":"add","start_char":9,"line":104},{"index_id":523,"token_group":398,"text":"(","start_char":12,"line":104},{"index_id":524,"token_group":399,"text":"group","start_char":13,"line":104},{"index_id":525,"token_group":400,"text":"Id","start_char":18,"line":104},{"index_id":526,"token_group":400,"text":")","start_char":20,"line":104},{"index_id":527,"token_group":401,"text":";","start_char":21,"line":104},{"index_id":528,"token_group":402,"text":"q","start_char":4,"line":106},{"index_id":529,"token_group":403,"text":"Pos","start_char":5,"line":106},{"index_id":530,"token_group":403,"text":".","start_char":8,"line":106},{"index_id":531,"token_group":404,"text":"add","start_char":9,"line":106},{"index_id":532,"token_group":405,"text":"(","start_char":12,"line":106},{"index_id":533,"token_group":406,"text":"folder","start_char":13,"line":106},{"index_id":534,"token_group":407,"text":"Id","start_char":19,"line":106},{"index_id":535,"token_group":407,"text":")","start_char":21,"line":106},{"index_id":536,"token_group":408,"text":";","start_char":22,"line":106},{"index_id":537,"token_group":409,"text":"if","start_char":4,"line":108},{"index_id":538,"token_group":410,"text":"(","start_char":7,"line":108},{"index_id":539,"token_group":411,"text":"order","start_char":8,"line":108},{"index_id":540,"token_group":412,"text":"By","start_char":13,"line":108},{"index_id":541,"token_group":412,"text":"Comparator","start_char":15,"line":108},{"index_id":542,"token_group":412,"text":"!=","start_char":26,"line":108},{"index_id":543,"token_group":413,"text":"null","start_char":29,"line":108},{"index_id":544,"token_group":414,"text":")","start_char":33,"line":108},{"index_id":545,"token_group":415,"text":"{","start_char":4,"line":109},{"index_id":546,"token_group":416,"text":"object","start_char":8,"line":110},{"index_id":547,"token_group":417,"text":"[","start_char":14,"line":110},{"index_id":548,"token_group":418,"text":"]","start_char":15,"line":110},{"index_id":549,"token_group":419,"text":"values","start_char":17,"line":110},{"index_id":550,"token_group":420,"text":"=","start_char":24,"line":110},{"index_id":551,"token_group":421,"text":"order","start_char":26,"line":110},{"index_id":552,"token_group":422,"text":"By","start_char":31,"line":110},{"index_id":553,"token_group":422,"text":"Comparator","start_char":33,"line":110},{"index_id":554,"token_group":422,"text":".","start_char":43,"line":110},{"index_id":555,"token_group":423,"text":"get","start_char":44,"line":110},{"index_id":556,"token_group":424,"text":"Order","start_char":47,"line":110},{"index_id":557,"token_group":424,"text":"By","start_char":52,"line":110},{"index_id":558,"token_group":424,"text":"Condition","start_char":54,"line":110},{"index_id":559,"token_group":424,"text":"Values","start_char":63,"line":110},{"index_id":560,"token_group":424,"text":"(","start_char":69,"line":110},{"index_id":561,"token_group":425,"text":"journal","start_char":70,"line":110},{"index_id":562,"token_group":426,"text":"Article","start_char":77,"line":110},{"index_id":563,"token_group":426,"text":")","start_char":84,"line":110},{"index_id":564,"token_group":427,"text":";","start_char":85,"line":110},{"index_id":565,"token_group":428,"text":"for","start_char":8,"line":112},{"index_id":566,"token_group":429,"text":"(","start_char":12,"line":112},{"index_id":567,"token_group":430,"text":"object","start_char":13,"line":112},{"index_id":568,"token_group":431,"text":"value","start_char":20,"line":112},{"index_id":569,"token_group":432,"text":":","start_char":26,"line":112},{"index_id":570,"token_group":433,"text":"values","start_char":28,"line":112},{"index_id":571,"token_group":434,"text":")","start_char":34,"line":112},{"index_id":572,"token_group":435,"text":"{","start_char":8,"line":113},{"index_id":573,"token_group":436,"text":"q","start_char":12,"line":114},{"index_id":574,"token_group":437,"text":"Pos","start_char":13,"line":114},{"index_id":575,"token_group":437,"text":".","start_char":16,"line":114},{"index_id":576,"token_group":438,"text":"add","start_char":17,"line":114},{"index_id":577,"token_group":439,"text":"(","start_char":20,"line":114},{"index_id":578,"token_group":440,"text":"value","start_char":21,"line":114},{"index_id":579,"token_group":441,"text":")","start_char":26,"line":114},{"index_id":580,"token_group":442,"text":";","start_char":27,"line":114},{"index_id":581,"token_group":443,"text":"}","start_char":8,"line":115},{"index_id":582,"token_group":444,"text":"}","start_char":4,"line":116},{"index_id":583,"token_group":445,"text":"list","start_char":4,"line":118},{"index_id":584,"token_group":446,"text":"<","start_char":8,"line":118},{"index_id":585,"token_group":447,"text":"journal","start_char":9,"line":118},{"index_id":586,"token_group":448,"text":"Article","start_char":16,"line":118},{"index_id":587,"token_group":448,"text":">","start_char":23,"line":118},{"index_id":588,"token_group":449,"text":"list","start_char":25,"line":118},{"index_id":589,"token_group":450,"text":"=","start_char":30,"line":118},{"index_id":590,"token_group":451,"text":"q","start_char":32,"line":118},{"index_id":591,"token_group":452,"text":".","start_char":33,"line":118},{"index_id":592,"token_group":453,"text":"list","start_char":34,"line":118},{"index_id":593,"token_group":454,"text":"(","start_char":38,"line":118},{"index_id":594,"token_group":455,"text":")","start_char":39,"line":118},{"index_id":595,"token_group":456,"text":";","start_char":40,"line":118},{"index_id":596,"token_group":457,"text":"if","start_char":4,"line":120},{"index_id":597,"token_group":458,"text":"(","start_char":7,"line":120},{"index_id":598,"token_group":459,"text":"list","start_char":8,"line":120},{"index_id":599,"token_group":460,"text":".","start_char":12,"line":120},{"index_id":600,"token_group":461,"text":"size","start_char":13,"line":120},{"index_id":601,"token_group":462,"text":"(","start_char":17,"line":120},{"index_id":602,"token_group":463,"text":")","start_char":18,"line":120},{"index_id":603,"token_group":464,"text":"==","start_char":20,"line":120},{"index_id":604,"token_group":465,"text":"2","start_char":23,"line":120},{"index_id":605,"token_group":466,"text":")","start_char":24,"line":120},{"index_id":606,"token_group":467,"text":"{","start_char":4,"line":121},{"index_id":607,"token_group":468,"text":"return","start_char":8,"line":122},{"index_id":608,"token_group":469,"text":"list","start_char":15,"line":122},{"index_id":609,"token_group":470,"text":".","start_char":19,"line":122},{"index_id":610,"token_group":471,"text":"get","start_char":20,"line":122},{"index_id":611,"token_group":472,"text":"(","start_char":23,"line":122},{"index_id":612,"token_group":473,"text":"1","start_char":24,"line":122},{"index_id":613,"token_group":474,"text":")","start_char":25,"line":122},{"index_id":614,"token_group":475,"text":";","start_char":26,"line":122},{"index_id":615,"token_group":476,"text":"}","start_char":4,"line":123},{"index_id":616,"token_group":477,"text":"else","start_char":4,"line":124},{"index_id":617,"token_group":478,"text":"{","start_char":4,"line":125},{"index_id":618,"token_group":479,"text":"return","start_char":8,"line":126},{"index_id":619,"token_group":480,"text":"null","start_char":15,"line":126},{"index_id":620,"token_group":481,"text":";","start_char":19,"line":126},{"index_id":621,"token_group":482,"text":"}","start_char":4,"line":127},{"index_id":622,"token_group":483,"text":"}","start_char":0,"line":128}],"tokens_list":["{","string","Bundler","query","=","null",";","if","(","order","By","Comparator","!=","null",")","{","query","=","new","string","Bundler","(","6","+","(","order","By","Comparator",".","get","Order","By","Fields","(",")",".","length","*","6",")",")",";","}","else","{","query","=","new","string","Bundler","(","3",")",";","}","query",".","append","(","","Sql","Select","Journalarticle","Where",")",";","query",".","append","(","","Finder","Column","G","F","Groupid","2",")",";","query",".","append","(","","Finder","Column","G","F","Folderid","2",")",";","if","(","order","By","Comparator","!=","null",")","{","string","[","]","order","By","Condition","Fields","=","order","By","Comparator",".","get","Order","By","Condition","Fields","(",")",";","if","(","order","By","Condition","Fields",".","length",">","0",")","{","query",".","append","(","where","And",")",";","}","for","(","int","i","=","0",";","i","<","order","By","Condition","Fields",".","length",";","i","++",")","{","query",".","append","(","","Order","By","Entity","Alias",")",";","query",".","append","(","order","By","Condition","Fields","[","i","]",")",";","if","(","(","i","+","1",")","<","order","By","Condition","Fields",".","length",")","{","if","(","order","By","Comparator",".","is","Ascending","(",")","^","previous",")","{","query",".","append","(","where","Greater","Than","Has","Next",")",";","}","else","{","query",".","append","(","where","Lesser","Than","Has","Next",")",";","}","}","else","{","if","(","order","By","Comparator",".","is","Ascending","(",")","^","previous",")","{","query",".","append","(","where","Greater","Than",")",";","}","else","{","query",".","append","(","where","Lesser","Than",")",";","}","}","}","query",".","append","(","order","By","Clause",")",";","string","[","]","order","By","Fields","=","order","By","Comparator",".","get","Order","By","Fields","(",")",";","for","(","int","i","=","0",";","i","<","order","By","Fields",".","length",";","i","++",")","{","query",".","append","(","","Order","By","Entity","Alias",")",";","query",".","append","(","order","By","Fields","[","i","]",")",";","if","(","(","i","+","1",")","<","order","By","Fields",".","length",")","{","if","(","order","By","Comparator",".","is","Ascending","(",")","^","previous",")","{","query",".","append","(","order","By","Asc","Has","Next",")",";","}","else","{","query",".","append","(","order","By","Desc","Has","Next",")",";","}","}","else","{","if","(","order","By","Comparator",".","is","Ascending","(",")","^","previous",")","{","query",".","append","(","order","By","Asc",")",";","}","else","{","query",".","append","(","order","By","Desc",")",";","}","}","}","}","else","{","query",".","append","(","journal","Article","Model","Impl",".","order","By","Jpql",")",";","}","string","sql","=","query",".","to","String","(",")",";","query","q","=","session",".","create","Query","(","sql",")",";","q",".","set","First","Result","(","0",")",";","q",".","set","Max","Results","(","2",")",";","query","Pos","q","Pos","=","query","Pos",".","get","Instance","(","q",")",";","q","Pos",".","add","(","group","Id",")",";","q","Pos",".","add","(","folder","Id",")",";","if","(","order","By","Comparator","!=","null",")","{","object","[","]","values","=","order","By","Comparator",".","get","Order","By","Condition","Values","(","journal","Article",")",";","for","(","object","value",":","values",")","{","q","Pos",".","add","(","value",")",";","}","}","list","<","journal","Article",">","list","=","q",".","list","(",")",";","if","(","list",".","size","(",")","==","2",")","{","return","list",".","get","(","1",")",";","}","else","{","return","null",";","}","}"],"uuid":"6ba682d45fa49c125ae00eace1c4188b"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","changes","View","Refresher","<\/id>","[","]","<id>","extensions","<\/id>","=","<id>","changes","View","Refresher","<\/id>",".","<id>","ep","Name","<\/id>",".","<id>","get","Extensions","<\/id>","(",")",";","for","(","<id>","changes","View","Refresher","<\/id>","<id>","refresher","<\/id>",":","<id>","extensions","<\/id>",")","{","<id>","refresher","<\/id>",".","<id>","refresh","<\/id>","(","<id>","project","<\/id>",")",";","}","}","<SENTENCE_END\/>"],"file_name":"RefreshAction.java","formatted_lines":["{"," ChangesViewRefresher[] extensions ="," ChangesViewRefresher.EP_NAME.getExtensions();"," for (ChangesViewRefresher refresher : extensions)"," {"," refresher.refresh(project);"," }","}"],"function_name":"invokeCustomRefreshes","function_name_tokens":["invoke","custom","refreshes"],"id_body_hash":"c66d484c5b6d27db878df62c06fe1533","id_same_identifier_list":[0,1,2,2,2,3,4,5,6,7,7,7,8,9,9,10,11,11,12,13,14,15,16,17,17,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32],"option_correct":"invokeCustomRefreshes","options":["updateCache","invokeCustomRefreshes","runPostStartupActivitiesFromExtensions","invokeDialog","invokeImpl","swallow","invokeFix"],"options_nlp":["update cache","invoke custom refreshes","run post startup activities from extensions","invoke dialog","invoke impl","swallow","invoke fix"],"options_random":["swallow","updateCache","runPostStartupActivitiesFromExtensions"],"options_tfidf":["invokeFix","invokeDialog","invokeImpl"],"project_name":"intellij-community","source_code_string":"private static void invokeCustomRefreshes(@NotNull Project project) {\n ChangesViewRefresher[] extensions = ChangesViewRefresher.EP_NAME.getExtensions();\n for (ChangesViewRefresher refresher : extensions) {\n refresher.refresh(project);\n }\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"changes","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"View","start_char":11,"line":1},{"index_id":3,"token_group":2,"text":"Refresher","start_char":15,"line":1},{"index_id":4,"token_group":2,"text":"[","start_char":24,"line":1},{"index_id":5,"token_group":3,"text":"]","start_char":25,"line":1},{"index_id":6,"token_group":4,"text":"extensions","start_char":27,"line":1},{"index_id":7,"token_group":5,"text":"=","start_char":38,"line":1},{"index_id":8,"token_group":6,"text":"changes","start_char":8,"line":2},{"index_id":9,"token_group":7,"text":"View","start_char":15,"line":2},{"index_id":10,"token_group":7,"text":"Refresher","start_char":19,"line":2},{"index_id":11,"token_group":7,"text":".","start_char":28,"line":2},{"index_id":12,"token_group":8,"text":"ep","start_char":29,"line":2},{"index_id":13,"token_group":9,"text":"Name","start_char":32,"line":2},{"index_id":14,"token_group":9,"text":".","start_char":36,"line":2},{"index_id":15,"token_group":10,"text":"get","start_char":37,"line":2},{"index_id":16,"token_group":11,"text":"Extensions","start_char":40,"line":2},{"index_id":17,"token_group":11,"text":"(","start_char":50,"line":2},{"index_id":18,"token_group":12,"text":")","start_char":51,"line":2},{"index_id":19,"token_group":13,"text":";","start_char":52,"line":2},{"index_id":20,"token_group":14,"text":"for","start_char":4,"line":3},{"index_id":21,"token_group":15,"text":"(","start_char":8,"line":3},{"index_id":22,"token_group":16,"text":"changes","start_char":9,"line":3},{"index_id":23,"token_group":17,"text":"View","start_char":16,"line":3},{"index_id":24,"token_group":17,"text":"Refresher","start_char":20,"line":3},{"index_id":25,"token_group":17,"text":"refresher","start_char":30,"line":3},{"index_id":26,"token_group":18,"text":":","start_char":40,"line":3},{"index_id":27,"token_group":19,"text":"extensions","start_char":42,"line":3},{"index_id":28,"token_group":20,"text":")","start_char":52,"line":3},{"index_id":29,"token_group":21,"text":"{","start_char":4,"line":4},{"index_id":30,"token_group":22,"text":"refresher","start_char":8,"line":5},{"index_id":31,"token_group":23,"text":".","start_char":17,"line":5},{"index_id":32,"token_group":24,"text":"refresh","start_char":18,"line":5},{"index_id":33,"token_group":25,"text":"(","start_char":25,"line":5},{"index_id":34,"token_group":26,"text":"project","start_char":26,"line":5},{"index_id":35,"token_group":27,"text":")","start_char":33,"line":5},{"index_id":36,"token_group":28,"text":";","start_char":34,"line":5},{"index_id":37,"token_group":29,"text":"}","start_char":4,"line":6},{"index_id":38,"token_group":30,"text":"}","start_char":0,"line":7}],"tokens_list":["{","changes","View","Refresher","[","]","extensions","=","changes","View","Refresher",".","ep","Name",".","get","Extensions","(",")",";","for","(","changes","View","Refresher","refresher",":","extensions",")","{","refresher",".","refresh","(","project",")",";","}","}"],"uuid":"2522172368813c7ca8acd885c0f6a2f9"},{"cap_original_tokens":["<SENTENCE_START>","{","if","(","<id>","token","1","<\/id>","==","<id>","token","2","<\/id>",")","return","false",";","if","(","<id>","token","1","<\/id>","==","null","||","<id>","token","2","<\/id>","==","null",")","return","true",";","if","(","!","<id>","token","1","<\/id>",".","<id>","get","Language","<\/id>","(",")",".","<id>","is","<\/id>","(","<id>","token","2","<\/id>",".","<id>","get","Language","<\/id>","(",")",")",")","return","true",";","<id>","bidi","Regions","Separator","<\/id>","<id>","separator","<\/id>","=","<id>","language","Bidi","Regions","Separator","<\/id>",".","<id>","instance","<\/id>",".","<id>","for","Language","<\/id>","(","<id>","token","1","<\/id>",".","<id>","get","Language","<\/id>","(",")",")",";","return","<id>","separator","<\/id>",".","<id>","create","Border","Between","Tokens","<\/id>","(","<id>","token","1","<\/id>",",","<id>","token","2","<\/id>",")",";","}","<SENTENCE_END\/>"],"file_name":"LineLayout.java","formatted_lines":["{"," if (token1 == token2) return false;"," if (token1 == null || token2 == null) return true;"," if (!token1.getLanguage().is(token2.getLanguage())) return true;"," BidiRegionsSeparator separator ="," LanguageBidiRegionsSeparator.INSTANCE.forLanguage(token1.getLanguage());"," return separator.createBorderBetweenTokens(token1, token2);","}"],"function_name":"distinctTokens","function_name_tokens":["distinct","tokens"],"id_body_hash":"a25b762aafc6be2b38d285904087408e","id_same_identifier_list":[0,1,2,3,4,4,5,6,6,7,8,9,10,11,12,13,13,14,15,16,17,17,18,19,20,21,22,23,24,25,26,27,27,28,29,29,30,31,32,33,34,35,35,36,37,37,38,39,40,41,42,43,44,45,45,45,46,47,48,48,48,48,49,50,51,52,52,53,54,54,55,56,56,57,58,59,60,61,62,63,64,64,64,64,65,66,66,67,68,68,69,70,71,72],"option_correct":"distinctTokens","options":["doNotPreferWrapOnComma","zzScanError","distinctTokens","testComponentAbstractImplementation","unregisterExtension","putChar","testComponentMultipleWithSameInterface"],"options_nlp":["do not prefer wrap on comma","zz scan error","distinct tokens","test component abstract implementation","unregister extension","put char","test component multiple with same interface"],"options_random":["doNotPreferWrapOnComma","unregisterExtension","putChar"],"options_tfidf":["zzScanError","testComponentAbstractImplementation","testComponentMultipleWithSameInterface"],"project_name":"intellij-community","source_code_string":"private static boolean distinctTokens(@Nullable IElementType token1, @Nullable IElementType token2) {\n if (token1 == token2) return false;\n if (token1 == null || token2 == null) return true;\n if (!token1.getLanguage().is(token2.getLanguage())) return true;\n BidiRegionsSeparator separator = LanguageBidiRegionsSeparator.INSTANCE.forLanguage(token1.getLanguage());\n return separator.createBorderBetweenTokens(token1, token2);\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"if","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"(","start_char":7,"line":1},{"index_id":3,"token_group":3,"text":"token","start_char":8,"line":1},{"index_id":4,"token_group":4,"text":"1","start_char":13,"line":1},{"index_id":5,"token_group":4,"text":"==","start_char":15,"line":1},{"index_id":6,"token_group":5,"text":"token","start_char":18,"line":1},{"index_id":7,"token_group":6,"text":"2","start_char":23,"line":1},{"index_id":8,"token_group":6,"text":")","start_char":24,"line":1},{"index_id":9,"token_group":7,"text":"return","start_char":26,"line":1},{"index_id":10,"token_group":8,"text":"false","start_char":33,"line":1},{"index_id":11,"token_group":9,"text":";","start_char":38,"line":1},{"index_id":12,"token_group":10,"text":"if","start_char":4,"line":2},{"index_id":13,"token_group":11,"text":"(","start_char":7,"line":2},{"index_id":14,"token_group":12,"text":"token","start_char":8,"line":2},{"index_id":15,"token_group":13,"text":"1","start_char":13,"line":2},{"index_id":16,"token_group":13,"text":"==","start_char":15,"line":2},{"index_id":17,"token_group":14,"text":"null","start_char":18,"line":2},{"index_id":18,"token_group":15,"text":"||","start_char":23,"line":2},{"index_id":19,"token_group":16,"text":"token","start_char":26,"line":2},{"index_id":20,"token_group":17,"text":"2","start_char":31,"line":2},{"index_id":21,"token_group":17,"text":"==","start_char":33,"line":2},{"index_id":22,"token_group":18,"text":"null","start_char":36,"line":2},{"index_id":23,"token_group":19,"text":")","start_char":40,"line":2},{"index_id":24,"token_group":20,"text":"return","start_char":42,"line":2},{"index_id":25,"token_group":21,"text":"true","start_char":49,"line":2},{"index_id":26,"token_group":22,"text":";","start_char":53,"line":2},{"index_id":27,"token_group":23,"text":"if","start_char":4,"line":3},{"index_id":28,"token_group":24,"text":"(","start_char":7,"line":3},{"index_id":29,"token_group":25,"text":"!","start_char":8,"line":3},{"index_id":30,"token_group":26,"text":"token","start_char":9,"line":3},{"index_id":31,"token_group":27,"text":"1","start_char":14,"line":3},{"index_id":32,"token_group":27,"text":".","start_char":15,"line":3},{"index_id":33,"token_group":28,"text":"get","start_char":16,"line":3},{"index_id":34,"token_group":29,"text":"Language","start_char":19,"line":3},{"index_id":35,"token_group":29,"text":"(","start_char":27,"line":3},{"index_id":36,"token_group":30,"text":")","start_char":28,"line":3},{"index_id":37,"token_group":31,"text":".","start_char":29,"line":3},{"index_id":38,"token_group":32,"text":"is","start_char":30,"line":3},{"index_id":39,"token_group":33,"text":"(","start_char":32,"line":3},{"index_id":40,"token_group":34,"text":"token","start_char":33,"line":3},{"index_id":41,"token_group":35,"text":"2","start_char":38,"line":3},{"index_id":42,"token_group":35,"text":".","start_char":39,"line":3},{"index_id":43,"token_group":36,"text":"get","start_char":40,"line":3},{"index_id":44,"token_group":37,"text":"Language","start_char":43,"line":3},{"index_id":45,"token_group":37,"text":"(","start_char":51,"line":3},{"index_id":46,"token_group":38,"text":")","start_char":52,"line":3},{"index_id":47,"token_group":39,"text":")","start_char":53,"line":3},{"index_id":48,"token_group":40,"text":")","start_char":54,"line":3},{"index_id":49,"token_group":41,"text":"return","start_char":56,"line":3},{"index_id":50,"token_group":42,"text":"true","start_char":63,"line":3},{"index_id":51,"token_group":43,"text":";","start_char":67,"line":3},{"index_id":52,"token_group":44,"text":"bidi","start_char":4,"line":4},{"index_id":53,"token_group":45,"text":"Regions","start_char":8,"line":4},{"index_id":54,"token_group":45,"text":"Separator","start_char":15,"line":4},{"index_id":55,"token_group":45,"text":"separator","start_char":25,"line":4},{"index_id":56,"token_group":46,"text":"=","start_char":35,"line":4},{"index_id":57,"token_group":47,"text":"language","start_char":8,"line":5},{"index_id":58,"token_group":48,"text":"Bidi","start_char":16,"line":5},{"index_id":59,"token_group":48,"text":"Regions","start_char":20,"line":5},{"index_id":60,"token_group":48,"text":"Separator","start_char":27,"line":5},{"index_id":61,"token_group":48,"text":".","start_char":36,"line":5},{"index_id":62,"token_group":49,"text":"instance","start_char":37,"line":5},{"index_id":63,"token_group":50,"text":".","start_char":45,"line":5},{"index_id":64,"token_group":51,"text":"for","start_char":46,"line":5},{"index_id":65,"token_group":52,"text":"Language","start_char":49,"line":5},{"index_id":66,"token_group":52,"text":"(","start_char":57,"line":5},{"index_id":67,"token_group":53,"text":"token","start_char":58,"line":5},{"index_id":68,"token_group":54,"text":"1","start_char":63,"line":5},{"index_id":69,"token_group":54,"text":".","start_char":64,"line":5},{"index_id":70,"token_group":55,"text":"get","start_char":65,"line":5},{"index_id":71,"token_group":56,"text":"Language","start_char":68,"line":5},{"index_id":72,"token_group":56,"text":"(","start_char":76,"line":5},{"index_id":73,"token_group":57,"text":")","start_char":77,"line":5},{"index_id":74,"token_group":58,"text":")","start_char":78,"line":5},{"index_id":75,"token_group":59,"text":";","start_char":79,"line":5},{"index_id":76,"token_group":60,"text":"return","start_char":4,"line":6},{"index_id":77,"token_group":61,"text":"separator","start_char":11,"line":6},{"index_id":78,"token_group":62,"text":".","start_char":20,"line":6},{"index_id":79,"token_group":63,"text":"create","start_char":21,"line":6},{"index_id":80,"token_group":64,"text":"Border","start_char":27,"line":6},{"index_id":81,"token_group":64,"text":"Between","start_char":33,"line":6},{"index_id":82,"token_group":64,"text":"Tokens","start_char":40,"line":6},{"index_id":83,"token_group":64,"text":"(","start_char":46,"line":6},{"index_id":84,"token_group":65,"text":"token","start_char":47,"line":6},{"index_id":85,"token_group":66,"text":"1","start_char":52,"line":6},{"index_id":86,"token_group":66,"text":",","start_char":53,"line":6},{"index_id":87,"token_group":67,"text":"token","start_char":55,"line":6},{"index_id":88,"token_group":68,"text":"2","start_char":60,"line":6},{"index_id":89,"token_group":68,"text":")","start_char":61,"line":6},{"index_id":90,"token_group":69,"text":";","start_char":62,"line":6},{"index_id":91,"token_group":70,"text":"}","start_char":0,"line":7}],"tokens_list":["{","if","(","token","1","==","token","2",")","return","false",";","if","(","token","1","==","null","||","token","2","==","null",")","return","true",";","if","(","!","token","1",".","get","Language","(",")",".","is","(","token","2",".","get","Language","(",")",")",")","return","true",";","bidi","Regions","Separator","separator","=","language","Bidi","Regions","Separator",".","instance",".","for","Language","(","token","1",".","get","Language","(",")",")",";","return","separator",".","create","Border","Between","Tokens","(","token","1",",","token","2",")",";","}"],"uuid":"952a7f6da6485f3950fd8426916984c4"},{"cap_original_tokens":["<SENTENCE_START>","{","return","<id>","my","Holder","<\/id>",";","}","<SENTENCE_END\/>"],"file_name":"PyInspectionVisitor.java","formatted_lines":["{"," return myHolder;","}"],"function_name":"getHolder","function_name_tokens":["get","holder"],"id_body_hash":"6c84882885dce2fc7556fe80ed03b396","id_same_identifier_list":[0,1,2,3,3,4,5,6],"option_correct":"getHolder","options":["getL","get","refToString","ipythonInPrompt","getHolder","adjustColor","getR"],"options_nlp":["get l","get","ref to string","ipython in prompt","get holder","adjust color","get r"],"options_random":["ipythonInPrompt","adjustColor","refToString"],"options_tfidf":["getR","getL","get"],"project_name":"intellij-community","source_code_string":"@Nullable\n protected ProblemsHolder getHolder() {\n return myHolder;\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":"Holder","start_char":13,"line":1},{"index_id":4,"token_group":3,"text":";","start_char":19,"line":1},{"index_id":5,"token_group":4,"text":"}","start_char":0,"line":2}],"tokens_list":["{","return","my","Holder",";","}"],"uuid":"5ef1c9d72417485a43a891e17dc7f523"},{"cap_original_tokens":["<SENTENCE_START>","{","return","<id>","user","Local","Service","<\/id>",";","}","<SENTENCE_END\/>"],"file_name":"SocialActivityCounterLocalServiceBaseImpl.java","formatted_lines":["{"," return userLocalService;","}"],"function_name":"getUserLocalService","function_name_tokens":["get","user","local","service"],"id_body_hash":"dffb33a5c0ed2d4707763bf7322b623b","id_same_identifier_list":[0,1,2,3,3,3,4,5,6],"option_correct":"getUserLocalService","options":["makeVisible","testUpdateExisting","getUserLocalService","getUserService","getWrappedUserLocalService","testServicesAnnotatedButExtends","getUserGroupLocalService"],"options_nlp":["make visible","test update existing","get user local service","get user service","get wrapped user local service","test services annotated but extends","get user group local service"],"options_random":["testServicesAnnotatedButExtends","testUpdateExisting","makeVisible"],"options_tfidf":["getUserService","getWrappedUserLocalService","getUserGroupLocalService"],"project_name":"liferay-portal","source_code_string":"public com.liferay.portal.service.UserLocalService getUserLocalService() {\n\t\treturn userLocalService;\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":"user","start_char":11,"line":1},{"index_id":3,"token_group":3,"text":"Local","start_char":15,"line":1},{"index_id":4,"token_group":3,"text":"Service","start_char":20,"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","user","Local","Service",";","}"],"uuid":"860b77e0e0699dad01f331424f1c4700"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","model","Test","Controller","Version","<\/id>","<id>","version","<\/id>","=","<id>","model","Test","Controller","Version","<\/id>",".","<id>","eap","6","4","0","<\/id>",";","this",".","<id>","test","Rejections","<\/id>","(","<id>","mod","Cluster","Model","<\/id>",".","<id>","version","1","5","0","<\/id>",",","<id>","version","<\/id>",",","<id>","format","Legacy","Subsystem","Artifact","<\/id>","(","<id>","version","<\/id>",")",",","\"org.jboss.mod_cluster:mod_cluster-core:1.2.11.Final-redhat-1\"",")",";","}","<SENTENCE_END\/>"],"file_name":"ModClusterTransformersTestCase.java","formatted_lines":["{"," ModelTestControllerVersion version = ModelTestControllerVersion.EAP_6_4_0;"," this.testRejections(ModClusterModel.VERSION_1_5_0, version,"," formatLegacySubsystemArtifact(version),"," \"org.jboss.mod_cluster:mod_cluster-core:1.2.11.Final-redhat-1\""," );","}"],"function_name":"testRejectionsEAP_6_4_0","function_name_tokens":["test","rejections","eap","6","4","0"],"id_body_hash":"48926e79413a4b8423daf515b6bd230f","id_same_identifier_list":[0,1,2,2,2,2,3,4,5,5,5,5,6,7,7,7,7,8,9,10,11,11,12,13,13,13,14,15,15,15,15,16,17,18,19,19,19,19,20,21,22,23,24,25,26,27,28],"option_correct":"testRejectionsEAP_6_4_0","options":["testRejectionsEAP_6_3_0","buildDefaultPar","getPersistenceUnitsInApplication","testRejectionsEAP_6_2_0","testRejectionsEAP_6_4_0","testRejectionsEAP620","testSuccessfulInvocation"],"options_nlp":["test rejections eap 6 3 0","build default par","get persistence units in application","test rejections eap 6 2 0","test rejections eap 6 4 0","test rejections eap 620","test successful invocation"],"options_random":["buildDefaultPar","getPersistenceUnitsInApplication","testSuccessfulInvocation"],"options_tfidf":["testRejectionsEAP_6_2_0","testRejectionsEAP_6_3_0","testRejectionsEAP620"],"project_name":"wildfly","source_code_string":"@Test\n public void testRejectionsEAP_6_4_0() throws Exception {\n ModelTestControllerVersion version = ModelTestControllerVersion.EAP_6_4_0;\n this.testRejections(ModClusterModel.VERSION_1_5_0, version,\n formatLegacySubsystemArtifact(version),\n \"org.jboss.mod_cluster:mod_cluster-core:1.2.11.Final-redhat-1\"\n );\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"model","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"Test","start_char":9,"line":1},{"index_id":3,"token_group":2,"text":"Controller","start_char":13,"line":1},{"index_id":4,"token_group":2,"text":"Version","start_char":23,"line":1},{"index_id":5,"token_group":2,"text":"version","start_char":31,"line":1},{"index_id":6,"token_group":3,"text":"=","start_char":39,"line":1},{"index_id":7,"token_group":4,"text":"model","start_char":41,"line":1},{"index_id":8,"token_group":5,"text":"Test","start_char":46,"line":1},{"index_id":9,"token_group":5,"text":"Controller","start_char":50,"line":1},{"index_id":10,"token_group":5,"text":"Version","start_char":60,"line":1},{"index_id":11,"token_group":5,"text":".","start_char":67,"line":1},{"index_id":12,"token_group":6,"text":"eap","start_char":68,"line":1},{"index_id":13,"token_group":7,"text":"6","start_char":72,"line":1},{"index_id":14,"token_group":7,"text":"4","start_char":74,"line":1},{"index_id":15,"token_group":7,"text":"0","start_char":76,"line":1},{"index_id":16,"token_group":7,"text":";","start_char":77,"line":1},{"index_id":17,"token_group":8,"text":"this","start_char":4,"line":2},{"index_id":18,"token_group":9,"text":".","start_char":8,"line":2},{"index_id":19,"token_group":10,"text":"test","start_char":9,"line":2},{"index_id":20,"token_group":11,"text":"Rejections","start_char":13,"line":2},{"index_id":21,"token_group":11,"text":"(","start_char":23,"line":2},{"index_id":22,"token_group":12,"text":"mod","start_char":24,"line":2},{"index_id":23,"token_group":13,"text":"Cluster","start_char":27,"line":2},{"index_id":24,"token_group":13,"text":"Model","start_char":34,"line":2},{"index_id":25,"token_group":13,"text":".","start_char":39,"line":2},{"index_id":26,"token_group":14,"text":"version","start_char":40,"line":2},{"index_id":27,"token_group":15,"text":"1","start_char":48,"line":2},{"index_id":28,"token_group":15,"text":"5","start_char":50,"line":2},{"index_id":29,"token_group":15,"text":"0","start_char":52,"line":2},{"index_id":30,"token_group":15,"text":",","start_char":53,"line":2},{"index_id":31,"token_group":16,"text":"version","start_char":55,"line":2},{"index_id":32,"token_group":17,"text":",","start_char":62,"line":2},{"index_id":33,"token_group":18,"text":"format","start_char":24,"line":3},{"index_id":34,"token_group":19,"text":"Legacy","start_char":30,"line":3},{"index_id":35,"token_group":19,"text":"Subsystem","start_char":36,"line":3},{"index_id":36,"token_group":19,"text":"Artifact","start_char":45,"line":3},{"index_id":37,"token_group":19,"text":"(","start_char":53,"line":3},{"index_id":38,"token_group":20,"text":"version","start_char":54,"line":3},{"index_id":39,"token_group":21,"text":")","start_char":61,"line":3},{"index_id":40,"token_group":22,"text":",","start_char":62,"line":3},{"index_id":41,"token_group":23,"text":"\"org.jboss.mod_cluster:mod_cluster-core:1.2.11.Final-redhat-1\"","start_char":24,"line":4},{"index_id":42,"token_group":24,"text":")","start_char":23,"line":5},{"index_id":43,"token_group":25,"text":";","start_char":24,"line":5},{"index_id":44,"token_group":26,"text":"}","start_char":0,"line":6}],"tokens_list":["{","model","Test","Controller","Version","version","=","model","Test","Controller","Version",".","eap","6","4","0",";","this",".","test","Rejections","(","mod","Cluster","Model",".","version","1","5","0",",","version",",","format","Legacy","Subsystem","Artifact","(","version",")",",","\"org.jboss.mod_cluster:mod_cluster-core:1.2.11.Final-redhat-1\"",")",";","}"],"uuid":"4266bf03f880080d0dbfb3328c87af49"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","array","List","<\/id>","<","<id>","content","<\/id>",">","<id>","result","<\/id>","=","new","<id>","array","List","<\/id>","<","<id>","content","<\/id>",">","(",")",";","for","(","<id>","content","<\/id>","<id>","each","<\/id>",":","<id>","get","Contents","<\/id>","(",")",")","{","<id>","result","<\/id>",".","<id>","add","<\/id>","(","<id>","each","<\/id>",")",";","}","return","<id>","result","<\/id>",";","}","<SENTENCE_END\/>"],"file_name":"GridImpl.java","formatted_lines":["{"," ArrayList<Content> result = new ArrayList<Content>();",""," for (Content each : getContents())"," {"," result.add(each);"," }",""," return result;","}"],"function_name":"getAttachedContents","function_name_tokens":["get","attached","contents"],"id_body_hash":"9ef7582d1746479b681a5bb5d72847da","id_same_identifier_list":[0,1,2,2,3,4,5,6,7,8,9,9,10,11,12,13,14,15,16,17,18,19,20,21,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"option_correct":"getAttachedContents","options":["getContents","getAttachedContents","getFileContents","with","_startLoading","getAttachedContent","setDisabledDictionariesPaths"],"options_nlp":["get contents","get attached contents","get file contents","with"," start loading","get attached content","set disabled dictionaries paths"],"options_random":["with","setDisabledDictionariesPaths","_startLoading"],"options_tfidf":["getFileContents","getContents","getAttachedContent"],"project_name":"intellij-community","source_code_string":"public List<Content> getAttachedContents() {\n ArrayList<Content> result = new ArrayList<Content>();\n\n for (Content each : getContents()) {\n result.add(each);\n }\n\n return result;\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"array","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"List","start_char":9,"line":1},{"index_id":3,"token_group":2,"text":"<","start_char":13,"line":1},{"index_id":4,"token_group":3,"text":"content","start_char":14,"line":1},{"index_id":5,"token_group":4,"text":">","start_char":21,"line":1},{"index_id":6,"token_group":5,"text":"result","start_char":23,"line":1},{"index_id":7,"token_group":6,"text":"=","start_char":30,"line":1},{"index_id":8,"token_group":7,"text":"new","start_char":32,"line":1},{"index_id":9,"token_group":8,"text":"array","start_char":36,"line":1},{"index_id":10,"token_group":9,"text":"List","start_char":41,"line":1},{"index_id":11,"token_group":9,"text":"<","start_char":45,"line":1},{"index_id":12,"token_group":10,"text":"content","start_char":46,"line":1},{"index_id":13,"token_group":11,"text":">","start_char":53,"line":1},{"index_id":14,"token_group":12,"text":"(","start_char":54,"line":1},{"index_id":15,"token_group":13,"text":")","start_char":55,"line":1},{"index_id":16,"token_group":14,"text":";","start_char":56,"line":1},{"index_id":17,"token_group":15,"text":"for","start_char":4,"line":3},{"index_id":18,"token_group":16,"text":"(","start_char":8,"line":3},{"index_id":19,"token_group":17,"text":"content","start_char":9,"line":3},{"index_id":20,"token_group":18,"text":"each","start_char":17,"line":3},{"index_id":21,"token_group":19,"text":":","start_char":22,"line":3},{"index_id":22,"token_group":20,"text":"get","start_char":24,"line":3},{"index_id":23,"token_group":21,"text":"Contents","start_char":27,"line":3},{"index_id":24,"token_group":21,"text":"(","start_char":35,"line":3},{"index_id":25,"token_group":22,"text":")","start_char":36,"line":3},{"index_id":26,"token_group":23,"text":")","start_char":37,"line":3},{"index_id":27,"token_group":24,"text":"{","start_char":4,"line":4},{"index_id":28,"token_group":25,"text":"result","start_char":8,"line":5},{"index_id":29,"token_group":26,"text":".","start_char":14,"line":5},{"index_id":30,"token_group":27,"text":"add","start_char":15,"line":5},{"index_id":31,"token_group":28,"text":"(","start_char":18,"line":5},{"index_id":32,"token_group":29,"text":"each","start_char":19,"line":5},{"index_id":33,"token_group":30,"text":")","start_char":23,"line":5},{"index_id":34,"token_group":31,"text":";","start_char":24,"line":5},{"index_id":35,"token_group":32,"text":"}","start_char":4,"line":6},{"index_id":36,"token_group":33,"text":"return","start_char":4,"line":8},{"index_id":37,"token_group":34,"text":"result","start_char":11,"line":8},{"index_id":38,"token_group":35,"text":";","start_char":17,"line":8},{"index_id":39,"token_group":36,"text":"}","start_char":0,"line":9}],"tokens_list":["{","array","List","<","content",">","result","=","new","array","List","<","content",">","(",")",";","for","(","content","each",":","get","Contents","(",")",")","{","result",".","add","(","each",")",";","}","return","result",";","}"],"uuid":"f7a9534842705b47d891bdb34e511174"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","my","Error","Message","<\/id>",".","<id>","set","<\/id>","(","<id>","error","Message","<\/id>",")",";","<id>","log","<\/id>",".","<id>","info","<\/id>","(","<id>","error","Message","<\/id>",")",";","}","<SENTENCE_END\/>"],"file_name":"CloudRuntimeTask.java","formatted_lines":["{"," myErrorMessage.set(errorMessage);"," LOG.info(errorMessage);","}"],"function_name":"runtimeErrorOccurred","function_name_tokens":["runtime","error","occurred"],"id_body_hash":"7eca07b7ecdae2ec2d9512e6bb165188","id_same_identifier_list":[0,1,2,2,2,3,4,5,6,6,7,8,9,10,11,12,13,13,14,15,16,17],"option_correct":"runtimeErrorOccurred","options":["onError","error","runtimeErrorOccurred","getStructureFilter","createLazy","hasRuntimeAnnotations","closeProcess"],"options_nlp":["on error","error","runtime error occurred","get structure filter","create lazy","has runtime annotations","close process"],"options_random":["getStructureFilter","createLazy","closeProcess"],"options_tfidf":["onError","error","hasRuntimeAnnotations"],"project_name":"intellij-community","source_code_string":"protected void runtimeErrorOccurred(@NotNull String errorMessage) {\n myErrorMessage.set(errorMessage);\n LOG.info(errorMessage);\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"my","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"Error","start_char":6,"line":1},{"index_id":3,"token_group":2,"text":"Message","start_char":11,"line":1},{"index_id":4,"token_group":2,"text":".","start_char":18,"line":1},{"index_id":5,"token_group":3,"text":"set","start_char":19,"line":1},{"index_id":6,"token_group":4,"text":"(","start_char":22,"line":1},{"index_id":7,"token_group":5,"text":"error","start_char":23,"line":1},{"index_id":8,"token_group":6,"text":"Message","start_char":28,"line":1},{"index_id":9,"token_group":6,"text":")","start_char":35,"line":1},{"index_id":10,"token_group":7,"text":";","start_char":36,"line":1},{"index_id":11,"token_group":8,"text":"log","start_char":4,"line":2},{"index_id":12,"token_group":9,"text":".","start_char":7,"line":2},{"index_id":13,"token_group":10,"text":"info","start_char":8,"line":2},{"index_id":14,"token_group":11,"text":"(","start_char":12,"line":2},{"index_id":15,"token_group":12,"text":"error","start_char":13,"line":2},{"index_id":16,"token_group":13,"text":"Message","start_char":18,"line":2},{"index_id":17,"token_group":13,"text":")","start_char":25,"line":2},{"index_id":18,"token_group":14,"text":";","start_char":26,"line":2},{"index_id":19,"token_group":15,"text":"}","start_char":0,"line":3}],"tokens_list":["{","my","Error","Message",".","set","(","error","Message",")",";","log",".","info","(","error","Message",")",";","}"],"uuid":"d799df7eda4a05ded225f90c2684abe5"}]