-
Notifications
You must be signed in to change notification settings - Fork 1
/
experiment_0000070.json
1 lines (1 loc) · 258 KB
/
experiment_0000070.json
1
[{"cap_original_tokens":["<SENTENCE_START>","{","return","(","<id>","clazz","<\/id>","!=","null","&&","(","<id>","dynamic","M","Bean","<\/id>",".","class",".","<id>","is","Assignable","From","<\/id>","(","<id>","clazz","<\/id>",")","||","(","<id>","get","M","Bean","Interface","<\/id>","(","<id>","clazz","<\/id>",")","!=","null","||","<id>","get","Mx","Bean","Interface","<\/id>","(","<id>","clazz","<\/id>",")","!=","null",")",")",")",";","}","<SENTENCE_END\/>"],"file_name":"JmxUtils.java","formatted_lines":["{"," return (clazz != null &&"," (DynamicMBean.class.isAssignableFrom(clazz) ||"," (getMBeanInterface(clazz) != null || getMXBeanInterface(clazz) != null)));","}"],"function_name":"isMBean","function_name_tokens":["is","m","bean"],"id_body_hash":"eba4ccc7406f11a4b35621f36e05a169","id_same_identifier_list":[0,1,2,3,4,5,6,7,8,9,9,9,10,11,12,13,13,13,14,15,16,17,18,19,19,19,19,20,21,22,23,24,25,26,26,26,26,27,28,29,30,31,32,33,34,35,36,37],"option_correct":"isMBean","options":["removeConnectionSpecFromCurrentThread","isMBean","getDateTimeContext","setComparator","is","testIsMBean","testIsMBeanWithDynamicMBean"],"options_nlp":["remove connection spec from current thread","is m bean","get date time context","set comparator","is","test is m bean","test is m bean with dynamic m bean"],"options_random":["removeConnectionSpecFromCurrentThread","setComparator","getDateTimeContext"],"options_tfidf":["is","testIsMBean","testIsMBeanWithDynamicMBean"],"project_name":"spring-framework","source_code_string":"public static boolean isMBean(Class<?> clazz) {\n\t\treturn (clazz != null &&\n\t\t\t\t(DynamicMBean.class.isAssignableFrom(clazz) ||\n\t\t\t\t\t\t(getMBeanInterface(clazz) != null || getMXBeanInterface(clazz) != null)));\n\t}","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"return","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"(","start_char":11,"line":1},{"index_id":3,"token_group":3,"text":"clazz","start_char":12,"line":1},{"index_id":4,"token_group":4,"text":"!=","start_char":18,"line":1},{"index_id":5,"token_group":5,"text":"null","start_char":21,"line":1},{"index_id":6,"token_group":6,"text":"&&","start_char":26,"line":1},{"index_id":7,"token_group":7,"text":"(","start_char":12,"line":2},{"index_id":8,"token_group":8,"text":"dynamic","start_char":13,"line":2},{"index_id":9,"token_group":9,"text":"M","start_char":20,"line":2},{"index_id":10,"token_group":9,"text":"Bean","start_char":21,"line":2},{"index_id":11,"token_group":9,"text":".","start_char":25,"line":2},{"index_id":12,"token_group":10,"text":"class","start_char":26,"line":2},{"index_id":13,"token_group":11,"text":".","start_char":31,"line":2},{"index_id":14,"token_group":12,"text":"is","start_char":32,"line":2},{"index_id":15,"token_group":13,"text":"Assignable","start_char":34,"line":2},{"index_id":16,"token_group":13,"text":"From","start_char":44,"line":2},{"index_id":17,"token_group":13,"text":"(","start_char":48,"line":2},{"index_id":18,"token_group":14,"text":"clazz","start_char":49,"line":2},{"index_id":19,"token_group":15,"text":")","start_char":54,"line":2},{"index_id":20,"token_group":16,"text":"||","start_char":56,"line":2},{"index_id":21,"token_group":17,"text":"(","start_char":13,"line":3},{"index_id":22,"token_group":18,"text":"get","start_char":14,"line":3},{"index_id":23,"token_group":19,"text":"M","start_char":17,"line":3},{"index_id":24,"token_group":19,"text":"Bean","start_char":18,"line":3},{"index_id":25,"token_group":19,"text":"Interface","start_char":22,"line":3},{"index_id":26,"token_group":19,"text":"(","start_char":31,"line":3},{"index_id":27,"token_group":20,"text":"clazz","start_char":32,"line":3},{"index_id":28,"token_group":21,"text":")","start_char":37,"line":3},{"index_id":29,"token_group":22,"text":"!=","start_char":39,"line":3},{"index_id":30,"token_group":23,"text":"null","start_char":42,"line":3},{"index_id":31,"token_group":24,"text":"||","start_char":47,"line":3},{"index_id":32,"token_group":25,"text":"get","start_char":50,"line":3},{"index_id":33,"token_group":26,"text":"Mx","start_char":53,"line":3},{"index_id":34,"token_group":26,"text":"Bean","start_char":55,"line":3},{"index_id":35,"token_group":26,"text":"Interface","start_char":59,"line":3},{"index_id":36,"token_group":26,"text":"(","start_char":68,"line":3},{"index_id":37,"token_group":27,"text":"clazz","start_char":69,"line":3},{"index_id":38,"token_group":28,"text":")","start_char":74,"line":3},{"index_id":39,"token_group":29,"text":"!=","start_char":76,"line":3},{"index_id":40,"token_group":30,"text":"null","start_char":79,"line":3},{"index_id":41,"token_group":31,"text":")","start_char":83,"line":3},{"index_id":42,"token_group":32,"text":")","start_char":84,"line":3},{"index_id":43,"token_group":33,"text":")","start_char":85,"line":3},{"index_id":44,"token_group":34,"text":";","start_char":86,"line":3},{"index_id":45,"token_group":35,"text":"}","start_char":0,"line":4}],"tokens_list":["{","return","(","clazz","!=","null","&&","(","dynamic","M","Bean",".","class",".","is","Assignable","From","(","clazz",")","||","(","get","M","Bean","Interface","(","clazz",")","!=","null","||","get","Mx","Bean","Interface","(","clazz",")","!=","null",")",")",")",";","}"],"uuid":"7272fadcc66313b630819de42663adfe"},{"cap_original_tokens":["<SENTENCE_START>","{","final","<id>","commit","Info","<\/id>","<id>","info","<\/id>","=","<id>","my","Infos","<\/id>",".","<id>","get","Or","Null","<\/id>","(","<id>","line","Number","<\/id>",")",";","if","(","<id>","info","<\/id>","==","null",")","return","\"\"",";","<id>","svn","File","Revision","<\/id>","<id>","revision","<\/id>","=","<id>","my","Revision","Map","<\/id>",".","<id>","get","<\/id>","(","<id>","info","<\/id>",".","<id>","get","Revision","<\/id>","(",")",")",";","if","(","<id>","revision","<\/id>","!=","null",")","{","<id>","string","<\/id>","<id>","prefix","<\/id>","=","<id>","my","Infos","<\/id>",".","<id>","get","Annotation","Source","<\/id>","(","<id>","line","Number","<\/id>",")",".","<id>","show","Merged","<\/id>","(",")","?","\"Merge source revision\"",":","\"Revision\"",";","return","<id>","prefix","<\/id>","+","\" \"","+","<id>","info","<\/id>",".","<id>","get","Revision","<\/id>","(",")","+","\": \"","+","<id>","revision","<\/id>",".","<id>","get","Commit","Message","<\/id>","(",")",";","}","return","\"\"",";","}","<SENTENCE_END\/>"],"file_name":"BaseSvnFileAnnotation.java","formatted_lines":["{"," final CommitInfo info = myInfos.getOrNull(lineNumber);"," if (info == null) return \"\";",""," SvnFileRevision revision = myRevisionMap.get(info.getRevision());"," if (revision != null)"," {"," String prefix = myInfos.getAnnotationSource(lineNumber).showMerged() ?"," \"Merge source revision\" : \"Revision\";",""," return prefix + \" \" + info.getRevision() + \": \" + revision.getCommitMessage();"," }"," return \"\";","}"],"function_name":"getToolTip","function_name_tokens":["get","tool","tip"],"id_body_hash":"d3d426e5e2234daecb339c257e037d02","id_same_identifier_list":[0,1,2,3,3,4,5,6,6,7,8,8,8,9,10,10,11,12,13,14,15,16,17,18,19,20,21,22,22,22,23,24,25,25,25,26,27,28,29,30,31,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,46,47,48,48,48,49,50,50,51,52,53,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,68,69,70,71,72,73,74,75,76,76,76,77,78,79,80,81,82,83,84,85],"option_correct":"getToolTip","options":["getToolTip","storeOriginalFontDefaults","getToolWindow","testDeleteSubstRoots","getToolPath","getAllResources","getToolWrapper"],"options_nlp":["get tool tip","store original font defaults","get tool window","test delete subst roots","get tool path","get all resources","get tool wrapper"],"options_random":["getAllResources","storeOriginalFontDefaults","testDeleteSubstRoots"],"options_tfidf":["getToolPath","getToolWindow","getToolWrapper"],"project_name":"intellij-community","source_code_string":"public String getToolTip(final int lineNumber) {\n final CommitInfo info = myInfos.getOrNull(lineNumber);\n if (info == null) return \"\";\n\n SvnFileRevision revision = myRevisionMap.get(info.getRevision());\n if (revision != null) {\n String prefix = myInfos.getAnnotationSource(lineNumber).showMerged() ? \"Merge source revision\" : \"Revision\";\n\n return prefix + \" \" + info.getRevision() + \": \" + revision.getCommitMessage();\n }\n return \"\";\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":"commit","start_char":10,"line":1},{"index_id":3,"token_group":3,"text":"Info","start_char":16,"line":1},{"index_id":4,"token_group":3,"text":"info","start_char":21,"line":1},{"index_id":5,"token_group":4,"text":"=","start_char":26,"line":1},{"index_id":6,"token_group":5,"text":"my","start_char":28,"line":1},{"index_id":7,"token_group":6,"text":"Infos","start_char":30,"line":1},{"index_id":8,"token_group":6,"text":".","start_char":35,"line":1},{"index_id":9,"token_group":7,"text":"get","start_char":36,"line":1},{"index_id":10,"token_group":8,"text":"Or","start_char":39,"line":1},{"index_id":11,"token_group":8,"text":"Null","start_char":41,"line":1},{"index_id":12,"token_group":8,"text":"(","start_char":45,"line":1},{"index_id":13,"token_group":9,"text":"line","start_char":46,"line":1},{"index_id":14,"token_group":10,"text":"Number","start_char":50,"line":1},{"index_id":15,"token_group":10,"text":")","start_char":56,"line":1},{"index_id":16,"token_group":11,"text":";","start_char":57,"line":1},{"index_id":17,"token_group":12,"text":"if","start_char":4,"line":2},{"index_id":18,"token_group":13,"text":"(","start_char":7,"line":2},{"index_id":19,"token_group":14,"text":"info","start_char":8,"line":2},{"index_id":20,"token_group":15,"text":"==","start_char":13,"line":2},{"index_id":21,"token_group":16,"text":"null","start_char":16,"line":2},{"index_id":22,"token_group":17,"text":")","start_char":20,"line":2},{"index_id":23,"token_group":18,"text":"return","start_char":22,"line":2},{"index_id":24,"token_group":19,"text":"\"\"","start_char":29,"line":2},{"index_id":25,"token_group":20,"text":";","start_char":31,"line":2},{"index_id":26,"token_group":21,"text":"svn","start_char":4,"line":4},{"index_id":27,"token_group":22,"text":"File","start_char":7,"line":4},{"index_id":28,"token_group":22,"text":"Revision","start_char":11,"line":4},{"index_id":29,"token_group":22,"text":"revision","start_char":20,"line":4},{"index_id":30,"token_group":23,"text":"=","start_char":29,"line":4},{"index_id":31,"token_group":24,"text":"my","start_char":31,"line":4},{"index_id":32,"token_group":25,"text":"Revision","start_char":33,"line":4},{"index_id":33,"token_group":25,"text":"Map","start_char":41,"line":4},{"index_id":34,"token_group":25,"text":".","start_char":44,"line":4},{"index_id":35,"token_group":26,"text":"get","start_char":45,"line":4},{"index_id":36,"token_group":27,"text":"(","start_char":48,"line":4},{"index_id":37,"token_group":28,"text":"info","start_char":49,"line":4},{"index_id":38,"token_group":29,"text":".","start_char":53,"line":4},{"index_id":39,"token_group":30,"text":"get","start_char":54,"line":4},{"index_id":40,"token_group":31,"text":"Revision","start_char":57,"line":4},{"index_id":41,"token_group":31,"text":"(","start_char":65,"line":4},{"index_id":42,"token_group":32,"text":")","start_char":66,"line":4},{"index_id":43,"token_group":33,"text":")","start_char":67,"line":4},{"index_id":44,"token_group":34,"text":";","start_char":68,"line":4},{"index_id":45,"token_group":35,"text":"if","start_char":4,"line":5},{"index_id":46,"token_group":36,"text":"(","start_char":7,"line":5},{"index_id":47,"token_group":37,"text":"revision","start_char":8,"line":5},{"index_id":48,"token_group":38,"text":"!=","start_char":17,"line":5},{"index_id":49,"token_group":39,"text":"null","start_char":20,"line":5},{"index_id":50,"token_group":40,"text":")","start_char":24,"line":5},{"index_id":51,"token_group":41,"text":"{","start_char":4,"line":6},{"index_id":52,"token_group":42,"text":"string","start_char":8,"line":7},{"index_id":53,"token_group":43,"text":"prefix","start_char":15,"line":7},{"index_id":54,"token_group":44,"text":"=","start_char":22,"line":7},{"index_id":55,"token_group":45,"text":"my","start_char":24,"line":7},{"index_id":56,"token_group":46,"text":"Infos","start_char":26,"line":7},{"index_id":57,"token_group":46,"text":".","start_char":31,"line":7},{"index_id":58,"token_group":47,"text":"get","start_char":32,"line":7},{"index_id":59,"token_group":48,"text":"Annotation","start_char":35,"line":7},{"index_id":60,"token_group":48,"text":"Source","start_char":45,"line":7},{"index_id":61,"token_group":48,"text":"(","start_char":51,"line":7},{"index_id":62,"token_group":49,"text":"line","start_char":52,"line":7},{"index_id":63,"token_group":50,"text":"Number","start_char":56,"line":7},{"index_id":64,"token_group":50,"text":")","start_char":62,"line":7},{"index_id":65,"token_group":51,"text":".","start_char":63,"line":7},{"index_id":66,"token_group":52,"text":"show","start_char":64,"line":7},{"index_id":67,"token_group":53,"text":"Merged","start_char":68,"line":7},{"index_id":68,"token_group":53,"text":"(","start_char":74,"line":7},{"index_id":69,"token_group":54,"text":")","start_char":75,"line":7},{"index_id":70,"token_group":55,"text":"?","start_char":77,"line":7},{"index_id":71,"token_group":56,"text":"\"Merge source revision\"","start_char":24,"line":8},{"index_id":72,"token_group":57,"text":":","start_char":48,"line":8},{"index_id":73,"token_group":58,"text":"\"Revision\"","start_char":50,"line":8},{"index_id":74,"token_group":59,"text":";","start_char":60,"line":8},{"index_id":75,"token_group":60,"text":"return","start_char":8,"line":10},{"index_id":76,"token_group":61,"text":"prefix","start_char":15,"line":10},{"index_id":77,"token_group":62,"text":"+","start_char":22,"line":10},{"index_id":78,"token_group":63,"text":"\" \"","start_char":24,"line":10},{"index_id":79,"token_group":64,"text":"+","start_char":28,"line":10},{"index_id":80,"token_group":65,"text":"info","start_char":30,"line":10},{"index_id":81,"token_group":66,"text":".","start_char":34,"line":10},{"index_id":82,"token_group":67,"text":"get","start_char":35,"line":10},{"index_id":83,"token_group":68,"text":"Revision","start_char":38,"line":10},{"index_id":84,"token_group":68,"text":"(","start_char":46,"line":10},{"index_id":85,"token_group":69,"text":")","start_char":47,"line":10},{"index_id":86,"token_group":70,"text":"+","start_char":49,"line":10},{"index_id":87,"token_group":71,"text":"\": \"","start_char":51,"line":10},{"index_id":88,"token_group":72,"text":"+","start_char":56,"line":10},{"index_id":89,"token_group":73,"text":"revision","start_char":58,"line":10},{"index_id":90,"token_group":74,"text":".","start_char":66,"line":10},{"index_id":91,"token_group":75,"text":"get","start_char":67,"line":10},{"index_id":92,"token_group":76,"text":"Commit","start_char":70,"line":10},{"index_id":93,"token_group":76,"text":"Message","start_char":76,"line":10},{"index_id":94,"token_group":76,"text":"(","start_char":83,"line":10},{"index_id":95,"token_group":77,"text":")","start_char":84,"line":10},{"index_id":96,"token_group":78,"text":";","start_char":85,"line":10},{"index_id":97,"token_group":79,"text":"}","start_char":4,"line":11},{"index_id":98,"token_group":80,"text":"return","start_char":4,"line":12},{"index_id":99,"token_group":81,"text":"\"\"","start_char":11,"line":12},{"index_id":100,"token_group":82,"text":";","start_char":13,"line":12},{"index_id":101,"token_group":83,"text":"}","start_char":0,"line":13}],"tokens_list":["{","final","commit","Info","info","=","my","Infos",".","get","Or","Null","(","line","Number",")",";","if","(","info","==","null",")","return","\"\"",";","svn","File","Revision","revision","=","my","Revision","Map",".","get","(","info",".","get","Revision","(",")",")",";","if","(","revision","!=","null",")","{","string","prefix","=","my","Infos",".","get","Annotation","Source","(","line","Number",")",".","show","Merged","(",")","?","\"Merge source revision\"",":","\"Revision\"",";","return","prefix","+","\" \"","+","info",".","get","Revision","(",")","+","\": \"","+","revision",".","get","Commit","Message","(",")",";","}","return","\"\"",";","}"],"uuid":"ae64f8a4339ef9836312c138de3b01c4"},{"cap_original_tokens":["<SENTENCE_START>","{","long","<id>","nanos","Since","<\/id>","=","(","(","<id>","when","<\/id>","-","<id>","start","Epoch","<\/id>",")","*","10000",")","+","<id>","nanos","<\/id>",";","return","<id>","create","Time","<\/id>","(","<id>","nanos","Since","<\/id>",")",";","}","<SENTENCE_END\/>"],"file_name":"UUIDGen.java","formatted_lines":["{"," long nanosSince = ((when - START_EPOCH) * 10000) + nanos;"," return createTime(nanosSince);","}"],"function_name":"createTimeUnsafe","function_name_tokens":["create","time","unsafe"],"id_body_hash":"acfa999d0d8c0493ee4afe341330658b","id_same_identifier_list":[0,1,2,3,3,4,5,6,7,8,9,9,10,11,12,13,14,15,16,17,18,18,19,20,20,21,22,23,24],"option_correct":"createTimeUnsafe","options":["addRangeToNeighbors","getMinimumToken","createTimeUnsafe","stopUnsafe","createTime","createTimeSafe","unsetEnd_token"],"options_nlp":["add range to neighbors","get minimum token","create time unsafe","stop unsafe","create time","create time safe","unset end token"],"options_random":["addRangeToNeighbors","unsetEnd_token","getMinimumToken"],"options_tfidf":["createTime","stopUnsafe","createTimeSafe"],"project_name":"cassandra","source_code_string":"private long createTimeUnsafe(long when, int nanos)\n {\n long nanosSince = ((when - START_EPOCH) * 10000) + nanos;\n return createTime(nanosSince);\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"long","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"nanos","start_char":9,"line":1},{"index_id":3,"token_group":3,"text":"Since","start_char":14,"line":1},{"index_id":4,"token_group":3,"text":"=","start_char":20,"line":1},{"index_id":5,"token_group":4,"text":"(","start_char":22,"line":1},{"index_id":6,"token_group":5,"text":"(","start_char":23,"line":1},{"index_id":7,"token_group":6,"text":"when","start_char":24,"line":1},{"index_id":8,"token_group":7,"text":"-","start_char":29,"line":1},{"index_id":9,"token_group":8,"text":"start","start_char":31,"line":1},{"index_id":10,"token_group":9,"text":"Epoch","start_char":37,"line":1},{"index_id":11,"token_group":9,"text":")","start_char":42,"line":1},{"index_id":12,"token_group":10,"text":"*","start_char":44,"line":1},{"index_id":13,"token_group":11,"text":"10000","start_char":46,"line":1},{"index_id":14,"token_group":12,"text":")","start_char":51,"line":1},{"index_id":15,"token_group":13,"text":"+","start_char":53,"line":1},{"index_id":16,"token_group":14,"text":"nanos","start_char":55,"line":1},{"index_id":17,"token_group":15,"text":";","start_char":60,"line":1},{"index_id":18,"token_group":16,"text":"return","start_char":4,"line":2},{"index_id":19,"token_group":17,"text":"create","start_char":11,"line":2},{"index_id":20,"token_group":18,"text":"Time","start_char":17,"line":2},{"index_id":21,"token_group":18,"text":"(","start_char":21,"line":2},{"index_id":22,"token_group":19,"text":"nanos","start_char":22,"line":2},{"index_id":23,"token_group":20,"text":"Since","start_char":27,"line":2},{"index_id":24,"token_group":20,"text":")","start_char":32,"line":2},{"index_id":25,"token_group":21,"text":";","start_char":33,"line":2},{"index_id":26,"token_group":22,"text":"}","start_char":0,"line":3}],"tokens_list":["{","long","nanos","Since","=","(","(","when","-","start","Epoch",")","*","10000",")","+","nanos",";","return","create","Time","(","nanos","Since",")",";","}"],"uuid":"6b79400f49ecf2020aad69decb4f850e"},{"cap_original_tokens":["<SENTENCE_START>","{","return","<id>","","Column","Bitmask","<\/id>",";","}","<SENTENCE_END\/>"],"file_name":"KaleoTaskAssignmentInstanceModelImpl.java","formatted_lines":["{"," return _columnBitmask;","}"],"function_name":"getColumnBitmask","function_name_tokens":["get","column","bitmask"],"id_body_hash":"83128eef9a0a668a92eaacb94f098f36","id_same_identifier_list":[0,1,2,3,3,3,4,5,6],"option_correct":"getColumnBitmask","options":["testNonprocessCallablePipingBackProcessCallable","getColumnBitmask","getColumnNames","createSeparatorDDMFormFieldValue","getExpandoColumnPersistence","processColumn","testCountByArticleId"],"options_nlp":["test nonprocess callable piping back process callable","get column bitmask","get column names","create separator ddm form field value","get expando column persistence","process column","test count by article id"],"options_random":["createSeparatorDDMFormFieldValue","testNonprocessCallablePipingBackProcessCallable","testCountByArticleId"],"options_tfidf":["getExpandoColumnPersistence","processColumn","getColumnNames"],"project_name":"liferay-portal","source_code_string":"public long getColumnBitmask() {\n\t\treturn _columnBitmask;\n\t}","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"return","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"","start_char":10,"line":1},{"index_id":3,"token_group":3,"text":"Column","start_char":12,"line":1},{"index_id":4,"token_group":3,"text":"Bitmask","start_char":18,"line":1},{"index_id":5,"token_group":3,"text":";","start_char":25,"line":1},{"index_id":6,"token_group":4,"text":"}","start_char":0,"line":2}],"tokens_list":["{","return","","Column","Bitmask",";","}"],"uuid":"07b1d5085457bc0e8e31bbe0925b11cb"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","document","Builder","Factory","<\/id>","<id>","dbf","<\/id>","=","<id>","document","Builder","Factory","<\/id>",".","<id>","new","Instance","<\/id>","(",")",";","<id>","document","Builder","<\/id>","<id>","db","<\/id>","=","<id>","dbf","<\/id>",".","<id>","new","Document","Builder","<\/id>","(",")",";","<id>","input","Source","<\/id>","<id>","is","<\/id>","=","new","<id>","input","Source","<\/id>","(",")",";","<id>","is","<\/id>",".","<id>","set","Character","Stream","<\/id>","(","new","<id>","string","Reader","<\/id>","(","<id>","xml","<\/id>",")",")",";","<id>","document","<\/id>","<id>","dom","<\/id>","=","<id>","db","<\/id>",".","<id>","parse","<\/id>","(","<id>","is","<\/id>",")",";","<id>","node","List","<\/id>","<id>","nodes","<\/id>","=","<id>","dom","<\/id>",".","<id>","get","Elements","By","Tag","Name","<\/id>","(","\"clusterMetrics\"",")",";","<id>","assert","Equals","<\/id>","(","\"incorrect number of elements\"",",","1",",","<id>","nodes","<\/id>",".","<id>","get","Length","<\/id>","(",")",")",";","for","(","int","<id>","i","<\/id>","=","0",";","<id>","i","<\/id>","<","<id>","nodes","<\/id>",".","<id>","get","Length","<\/id>","(",")",";","<id>","i","<\/id>","++",")","{","<id>","element","<\/id>","<id>","element","<\/id>","=","(","<id>","element","<\/id>",")","<id>","nodes","<\/id>",".","<id>","item","<\/id>","(","<id>","i","<\/id>",")",";","<id>","verify","Cluster","Metrics","<\/id>","(","<id>","web","Services","Test","Utils","<\/id>",".","<id>","get","Xml","Int","<\/id>","(","<id>","element","<\/id>",",","\"appsSubmitted\"",")",",","<id>","web","Services","Test","Utils","<\/id>",".","<id>","get","Xml","Int","<\/id>","(","<id>","element","<\/id>",",","\"appsCompleted\"",")",",","<id>","web","Services","Test","Utils","<\/id>",".","<id>","get","Xml","Int","<\/id>","(","<id>","element","<\/id>",",","\"reservedMB\"",")",",","<id>","web","Services","Test","Utils","<\/id>",".","<id>","get","Xml","Int","<\/id>","(","<id>","element","<\/id>",",","\"availableMB\"",")",",","<id>","web","Services","Test","Utils","<\/id>",".","<id>","get","Xml","Int","<\/id>","(","<id>","element","<\/id>",",","\"allocatedMB\"",")",",","<id>","web","Services","Test","Utils","<\/id>",".","<id>","get","Xml","Int","<\/id>","(","<id>","element","<\/id>",",","\"reservedVirtualCores\"",")",",","<id>","web","Services","Test","Utils","<\/id>",".","<id>","get","Xml","Int","<\/id>","(","<id>","element","<\/id>",",","\"availableVirtualCores\"",")",",","<id>","web","Services","Test","Utils","<\/id>",".","<id>","get","Xml","Int","<\/id>","(","<id>","element","<\/id>",",","\"allocatedVirtualCores\"",")",",","<id>","web","Services","Test","Utils","<\/id>",".","<id>","get","Xml","Int","<\/id>","(","<id>","element","<\/id>",",","\"totalVirtualCores\"",")",",","<id>","web","Services","Test","Utils","<\/id>",".","<id>","get","Xml","Int","<\/id>","(","<id>","element","<\/id>",",","\"containersAllocated\"",")",",","<id>","web","Services","Test","Utils","<\/id>",".","<id>","get","Xml","Int","<\/id>","(","<id>","element","<\/id>",",","\"totalMB\"",")",",","<id>","web","Services","Test","Utils","<\/id>",".","<id>","get","Xml","Int","<\/id>","(","<id>","element","<\/id>",",","\"totalNodes\"",")",",","<id>","web","Services","Test","Utils","<\/id>",".","<id>","get","Xml","Int","<\/id>","(","<id>","element","<\/id>",",","\"lostNodes\"",")",",","<id>","web","Services","Test","Utils","<\/id>",".","<id>","get","Xml","Int","<\/id>","(","<id>","element","<\/id>",",","\"unhealthyNodes\"",")",",","<id>","web","Services","Test","Utils","<\/id>",".","<id>","get","Xml","Int","<\/id>","(","<id>","element","<\/id>",",","\"decommissionedNodes\"",")",",","<id>","web","Services","Test","Utils","<\/id>",".","<id>","get","Xml","Int","<\/id>","(","<id>","element","<\/id>",",","\"rebootedNodes\"",")",",","<id>","web","Services","Test","Utils","<\/id>",".","<id>","get","Xml","Int","<\/id>","(","<id>","element","<\/id>",",","\"activeNodes\"",")",")",";","}","}","<SENTENCE_END\/>"],"file_name":"TestRMWebServices.java","formatted_lines":["{"," DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();"," DocumentBuilder db = dbf.newDocumentBuilder();"," InputSource is = new InputSource();"," is.setCharacterStream(new StringReader(xml));"," Document dom = db.parse(is);"," NodeList nodes = dom.getElementsByTagName(\"clusterMetrics\");"," assertEquals(\"incorrect number of elements\", 1, nodes.getLength());",""," for (int i = 0; i < nodes.getLength(); i++)"," {"," Element element = (Element) nodes.item(i);",""," verifyClusterMetrics("," WebServicesTestUtils.getXmlInt(element, \"appsSubmitted\"),"," WebServicesTestUtils.getXmlInt(element, \"appsCompleted\"),"," WebServicesTestUtils.getXmlInt(element, \"reservedMB\"),"," WebServicesTestUtils.getXmlInt(element, \"availableMB\"),"," WebServicesTestUtils.getXmlInt(element, \"allocatedMB\"),"," WebServicesTestUtils.getXmlInt(element, \"reservedVirtualCores\"),"," WebServicesTestUtils.getXmlInt(element, \"availableVirtualCores\"),"," WebServicesTestUtils.getXmlInt(element, \"allocatedVirtualCores\"),"," WebServicesTestUtils.getXmlInt(element, \"totalVirtualCores\"),"," WebServicesTestUtils.getXmlInt(element, \"containersAllocated\"),"," WebServicesTestUtils.getXmlInt(element, \"totalMB\"),"," WebServicesTestUtils.getXmlInt(element, \"totalNodes\"),"," WebServicesTestUtils.getXmlInt(element, \"lostNodes\"),"," WebServicesTestUtils.getXmlInt(element, \"unhealthyNodes\"),"," WebServicesTestUtils.getXmlInt(element, \"decommissionedNodes\"),"," WebServicesTestUtils.getXmlInt(element, \"rebootedNodes\"),"," WebServicesTestUtils.getXmlInt(element, \"activeNodes\"));"," }","}"],"function_name":"verifyClusterMetricsXML","function_name_tokens":["verify","cluster","metrics","xml"],"id_body_hash":"33436cc5ea0a766ef33bca831f7905d6","id_same_identifier_list":[0,1,2,2,2,3,4,5,5,5,6,7,7,8,9,10,11,11,12,13,14,15,16,16,16,17,18,19,20,20,21,22,23,24,24,25,26,27,28,29,30,30,30,31,32,33,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,49,50,51,52,53,54,54,54,54,54,55,56,57,58,59,59,60,61,62,63,64,65,66,67,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,104,104,105,106,106,106,106,107,108,108,108,109,110,111,112,113,114,115,115,115,115,116,117,117,117,118,119,120,121,122,123,124,124,124,124,125,126,126,126,127,128,129,130,131,132,133,133,133,133,134,135,135,135,136,137,138,139,140,141,142,142,142,142,143,144,144,144,145,146,147,148,149,150,151,151,151,151,152,153,153,153,154,155,156,157,158,159,160,160,160,160,161,162,162,162,163,164,165,166,167,168,169,169,169,169,170,171,171,171,172,173,174,175,176,177,178,178,178,178,179,180,180,180,181,182,183,184,185,186,187,187,187,187,188,189,189,189,190,191,192,193,194,195,196,196,196,196,197,198,198,198,199,200,201,202,203,204,205,205,205,205,206,207,207,207,208,209,210,211,212,213,214,214,214,214,215,216,216,216,217,218,219,220,221,222,223,223,223,223,224,225,225,225,226,227,228,229,230,231,232,232,232,232,233,234,234,234,235,236,237,238,239,240,241,241,241,241,242,243,243,243,244,245,246,247,248,249,250,250,250,250,251,252,252,252,253,254,255,256,257,258,259,260,261,262],"option_correct":"verifyClusterMetricsXML","options":["compareCDFs","verifyClusterMetricsJSON","testStatistics","verifyClusterMetrics","verifyClusterMetricsXML","verifyClusterInfoXML","addResourceRequest"],"options_nlp":["compare cd fs","verify cluster metrics json","test statistics","verify cluster metrics","verify cluster metrics xml","verify cluster info xml","add resource request"],"options_random":["compareCDFs","testStatistics","addResourceRequest"],"options_tfidf":["verifyClusterMetricsJSON","verifyClusterMetrics","verifyClusterInfoXML"],"project_name":"hadoop-common","source_code_string":"public void verifyClusterMetricsXML(String xml) throws JSONException,\n Exception {\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n DocumentBuilder db = dbf.newDocumentBuilder();\n InputSource is = new InputSource();\n is.setCharacterStream(new StringReader(xml));\n Document dom = db.parse(is);\n NodeList nodes = dom.getElementsByTagName(\"clusterMetrics\");\n assertEquals(\"incorrect number of elements\", 1, nodes.getLength());\n\n for (int i = 0; i < nodes.getLength(); i++) {\n Element element = (Element) nodes.item(i);\n\n verifyClusterMetrics(\n WebServicesTestUtils.getXmlInt(element, \"appsSubmitted\"),\n WebServicesTestUtils.getXmlInt(element, \"appsCompleted\"),\n WebServicesTestUtils.getXmlInt(element, \"reservedMB\"),\n WebServicesTestUtils.getXmlInt(element, \"availableMB\"),\n WebServicesTestUtils.getXmlInt(element, \"allocatedMB\"),\n WebServicesTestUtils.getXmlInt(element, \"reservedVirtualCores\"),\n WebServicesTestUtils.getXmlInt(element, \"availableVirtualCores\"),\n WebServicesTestUtils.getXmlInt(element, \"allocatedVirtualCores\"),\n WebServicesTestUtils.getXmlInt(element, \"totalVirtualCores\"),\n WebServicesTestUtils.getXmlInt(element, \"containersAllocated\"),\n WebServicesTestUtils.getXmlInt(element, \"totalMB\"),\n WebServicesTestUtils.getXmlInt(element, \"totalNodes\"),\n WebServicesTestUtils.getXmlInt(element, \"lostNodes\"),\n WebServicesTestUtils.getXmlInt(element, \"unhealthyNodes\"),\n WebServicesTestUtils.getXmlInt(element, \"decommissionedNodes\"),\n WebServicesTestUtils.getXmlInt(element, \"rebootedNodes\"),\n WebServicesTestUtils.getXmlInt(element, \"activeNodes\"));\n }\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"document","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"Builder","start_char":12,"line":1},{"index_id":3,"token_group":2,"text":"Factory","start_char":19,"line":1},{"index_id":4,"token_group":2,"text":"dbf","start_char":27,"line":1},{"index_id":5,"token_group":3,"text":"=","start_char":31,"line":1},{"index_id":6,"token_group":4,"text":"document","start_char":33,"line":1},{"index_id":7,"token_group":5,"text":"Builder","start_char":41,"line":1},{"index_id":8,"token_group":5,"text":"Factory","start_char":48,"line":1},{"index_id":9,"token_group":5,"text":".","start_char":55,"line":1},{"index_id":10,"token_group":6,"text":"new","start_char":56,"line":1},{"index_id":11,"token_group":7,"text":"Instance","start_char":59,"line":1},{"index_id":12,"token_group":7,"text":"(","start_char":67,"line":1},{"index_id":13,"token_group":8,"text":")","start_char":68,"line":1},{"index_id":14,"token_group":9,"text":";","start_char":69,"line":1},{"index_id":15,"token_group":10,"text":"document","start_char":4,"line":2},{"index_id":16,"token_group":11,"text":"Builder","start_char":12,"line":2},{"index_id":17,"token_group":11,"text":"db","start_char":20,"line":2},{"index_id":18,"token_group":12,"text":"=","start_char":23,"line":2},{"index_id":19,"token_group":13,"text":"dbf","start_char":25,"line":2},{"index_id":20,"token_group":14,"text":".","start_char":28,"line":2},{"index_id":21,"token_group":15,"text":"new","start_char":29,"line":2},{"index_id":22,"token_group":16,"text":"Document","start_char":32,"line":2},{"index_id":23,"token_group":16,"text":"Builder","start_char":40,"line":2},{"index_id":24,"token_group":16,"text":"(","start_char":47,"line":2},{"index_id":25,"token_group":17,"text":")","start_char":48,"line":2},{"index_id":26,"token_group":18,"text":";","start_char":49,"line":2},{"index_id":27,"token_group":19,"text":"input","start_char":4,"line":3},{"index_id":28,"token_group":20,"text":"Source","start_char":9,"line":3},{"index_id":29,"token_group":20,"text":"is","start_char":16,"line":3},{"index_id":30,"token_group":21,"text":"=","start_char":19,"line":3},{"index_id":31,"token_group":22,"text":"new","start_char":21,"line":3},{"index_id":32,"token_group":23,"text":"input","start_char":25,"line":3},{"index_id":33,"token_group":24,"text":"Source","start_char":30,"line":3},{"index_id":34,"token_group":24,"text":"(","start_char":36,"line":3},{"index_id":35,"token_group":25,"text":")","start_char":37,"line":3},{"index_id":36,"token_group":26,"text":";","start_char":38,"line":3},{"index_id":37,"token_group":27,"text":"is","start_char":4,"line":4},{"index_id":38,"token_group":28,"text":".","start_char":6,"line":4},{"index_id":39,"token_group":29,"text":"set","start_char":7,"line":4},{"index_id":40,"token_group":30,"text":"Character","start_char":10,"line":4},{"index_id":41,"token_group":30,"text":"Stream","start_char":19,"line":4},{"index_id":42,"token_group":30,"text":"(","start_char":25,"line":4},{"index_id":43,"token_group":31,"text":"new","start_char":26,"line":4},{"index_id":44,"token_group":32,"text":"string","start_char":30,"line":4},{"index_id":45,"token_group":33,"text":"Reader","start_char":36,"line":4},{"index_id":46,"token_group":33,"text":"(","start_char":42,"line":4},{"index_id":47,"token_group":34,"text":"xml","start_char":43,"line":4},{"index_id":48,"token_group":35,"text":")","start_char":46,"line":4},{"index_id":49,"token_group":36,"text":")","start_char":47,"line":4},{"index_id":50,"token_group":37,"text":";","start_char":48,"line":4},{"index_id":51,"token_group":38,"text":"document","start_char":4,"line":5},{"index_id":52,"token_group":39,"text":"dom","start_char":13,"line":5},{"index_id":53,"token_group":40,"text":"=","start_char":17,"line":5},{"index_id":54,"token_group":41,"text":"db","start_char":19,"line":5},{"index_id":55,"token_group":42,"text":".","start_char":21,"line":5},{"index_id":56,"token_group":43,"text":"parse","start_char":22,"line":5},{"index_id":57,"token_group":44,"text":"(","start_char":27,"line":5},{"index_id":58,"token_group":45,"text":"is","start_char":28,"line":5},{"index_id":59,"token_group":46,"text":")","start_char":30,"line":5},{"index_id":60,"token_group":47,"text":";","start_char":31,"line":5},{"index_id":61,"token_group":48,"text":"node","start_char":4,"line":6},{"index_id":62,"token_group":49,"text":"List","start_char":8,"line":6},{"index_id":63,"token_group":49,"text":"nodes","start_char":13,"line":6},{"index_id":64,"token_group":50,"text":"=","start_char":19,"line":6},{"index_id":65,"token_group":51,"text":"dom","start_char":21,"line":6},{"index_id":66,"token_group":52,"text":".","start_char":24,"line":6},{"index_id":67,"token_group":53,"text":"get","start_char":25,"line":6},{"index_id":68,"token_group":54,"text":"Elements","start_char":28,"line":6},{"index_id":69,"token_group":54,"text":"By","start_char":36,"line":6},{"index_id":70,"token_group":54,"text":"Tag","start_char":38,"line":6},{"index_id":71,"token_group":54,"text":"Name","start_char":41,"line":6},{"index_id":72,"token_group":54,"text":"(","start_char":45,"line":6},{"index_id":73,"token_group":55,"text":"\"clusterMetrics\"","start_char":46,"line":6},{"index_id":74,"token_group":56,"text":")","start_char":62,"line":6},{"index_id":75,"token_group":57,"text":";","start_char":63,"line":6},{"index_id":76,"token_group":58,"text":"assert","start_char":4,"line":7},{"index_id":77,"token_group":59,"text":"Equals","start_char":10,"line":7},{"index_id":78,"token_group":59,"text":"(","start_char":16,"line":7},{"index_id":79,"token_group":60,"text":"\"incorrect number of elements\"","start_char":17,"line":7},{"index_id":80,"token_group":61,"text":",","start_char":47,"line":7},{"index_id":81,"token_group":62,"text":"1","start_char":49,"line":7},{"index_id":82,"token_group":63,"text":",","start_char":50,"line":7},{"index_id":83,"token_group":64,"text":"nodes","start_char":52,"line":7},{"index_id":84,"token_group":65,"text":".","start_char":57,"line":7},{"index_id":85,"token_group":66,"text":"get","start_char":58,"line":7},{"index_id":86,"token_group":67,"text":"Length","start_char":61,"line":7},{"index_id":87,"token_group":67,"text":"(","start_char":67,"line":7},{"index_id":88,"token_group":68,"text":")","start_char":68,"line":7},{"index_id":89,"token_group":69,"text":")","start_char":69,"line":7},{"index_id":90,"token_group":70,"text":";","start_char":70,"line":7},{"index_id":91,"token_group":71,"text":"for","start_char":4,"line":9},{"index_id":92,"token_group":72,"text":"(","start_char":8,"line":9},{"index_id":93,"token_group":73,"text":"int","start_char":9,"line":9},{"index_id":94,"token_group":74,"text":"i","start_char":13,"line":9},{"index_id":95,"token_group":75,"text":"=","start_char":15,"line":9},{"index_id":96,"token_group":76,"text":"0","start_char":17,"line":9},{"index_id":97,"token_group":77,"text":";","start_char":18,"line":9},{"index_id":98,"token_group":78,"text":"i","start_char":20,"line":9},{"index_id":99,"token_group":79,"text":"<","start_char":22,"line":9},{"index_id":100,"token_group":80,"text":"nodes","start_char":24,"line":9},{"index_id":101,"token_group":81,"text":".","start_char":29,"line":9},{"index_id":102,"token_group":82,"text":"get","start_char":30,"line":9},{"index_id":103,"token_group":83,"text":"Length","start_char":33,"line":9},{"index_id":104,"token_group":83,"text":"(","start_char":39,"line":9},{"index_id":105,"token_group":84,"text":")","start_char":40,"line":9},{"index_id":106,"token_group":85,"text":";","start_char":41,"line":9},{"index_id":107,"token_group":86,"text":"i","start_char":43,"line":9},{"index_id":108,"token_group":87,"text":"++","start_char":44,"line":9},{"index_id":109,"token_group":88,"text":")","start_char":46,"line":9},{"index_id":110,"token_group":89,"text":"{","start_char":4,"line":10},{"index_id":111,"token_group":90,"text":"element","start_char":8,"line":11},{"index_id":112,"token_group":91,"text":"element","start_char":16,"line":11},{"index_id":113,"token_group":92,"text":"=","start_char":24,"line":11},{"index_id":114,"token_group":93,"text":"(","start_char":26,"line":11},{"index_id":115,"token_group":94,"text":"element","start_char":27,"line":11},{"index_id":116,"token_group":95,"text":")","start_char":34,"line":11},{"index_id":117,"token_group":96,"text":"nodes","start_char":36,"line":11},{"index_id":118,"token_group":97,"text":".","start_char":41,"line":11},{"index_id":119,"token_group":98,"text":"item","start_char":42,"line":11},{"index_id":120,"token_group":99,"text":"(","start_char":46,"line":11},{"index_id":121,"token_group":100,"text":"i","start_char":47,"line":11},{"index_id":122,"token_group":101,"text":")","start_char":48,"line":11},{"index_id":123,"token_group":102,"text":";","start_char":49,"line":11},{"index_id":124,"token_group":103,"text":"verify","start_char":8,"line":13},{"index_id":125,"token_group":104,"text":"Cluster","start_char":14,"line":13},{"index_id":126,"token_group":104,"text":"Metrics","start_char":21,"line":13},{"index_id":127,"token_group":104,"text":"(","start_char":28,"line":13},{"index_id":128,"token_group":105,"text":"web","start_char":12,"line":14},{"index_id":129,"token_group":106,"text":"Services","start_char":15,"line":14},{"index_id":130,"token_group":106,"text":"Test","start_char":23,"line":14},{"index_id":131,"token_group":106,"text":"Utils","start_char":27,"line":14},{"index_id":132,"token_group":106,"text":".","start_char":32,"line":14},{"index_id":133,"token_group":107,"text":"get","start_char":33,"line":14},{"index_id":134,"token_group":108,"text":"Xml","start_char":36,"line":14},{"index_id":135,"token_group":108,"text":"Int","start_char":39,"line":14},{"index_id":136,"token_group":108,"text":"(","start_char":42,"line":14},{"index_id":137,"token_group":109,"text":"element","start_char":43,"line":14},{"index_id":138,"token_group":110,"text":",","start_char":50,"line":14},{"index_id":139,"token_group":111,"text":"\"appsSubmitted\"","start_char":52,"line":14},{"index_id":140,"token_group":112,"text":")","start_char":67,"line":14},{"index_id":141,"token_group":113,"text":",","start_char":68,"line":14},{"index_id":142,"token_group":114,"text":"web","start_char":12,"line":15},{"index_id":143,"token_group":115,"text":"Services","start_char":15,"line":15},{"index_id":144,"token_group":115,"text":"Test","start_char":23,"line":15},{"index_id":145,"token_group":115,"text":"Utils","start_char":27,"line":15},{"index_id":146,"token_group":115,"text":".","start_char":32,"line":15},{"index_id":147,"token_group":116,"text":"get","start_char":33,"line":15},{"index_id":148,"token_group":117,"text":"Xml","start_char":36,"line":15},{"index_id":149,"token_group":117,"text":"Int","start_char":39,"line":15},{"index_id":150,"token_group":117,"text":"(","start_char":42,"line":15},{"index_id":151,"token_group":118,"text":"element","start_char":43,"line":15},{"index_id":152,"token_group":119,"text":",","start_char":50,"line":15},{"index_id":153,"token_group":120,"text":"\"appsCompleted\"","start_char":52,"line":15},{"index_id":154,"token_group":121,"text":")","start_char":67,"line":15},{"index_id":155,"token_group":122,"text":",","start_char":68,"line":15},{"index_id":156,"token_group":123,"text":"web","start_char":12,"line":16},{"index_id":157,"token_group":124,"text":"Services","start_char":15,"line":16},{"index_id":158,"token_group":124,"text":"Test","start_char":23,"line":16},{"index_id":159,"token_group":124,"text":"Utils","start_char":27,"line":16},{"index_id":160,"token_group":124,"text":".","start_char":32,"line":16},{"index_id":161,"token_group":125,"text":"get","start_char":33,"line":16},{"index_id":162,"token_group":126,"text":"Xml","start_char":36,"line":16},{"index_id":163,"token_group":126,"text":"Int","start_char":39,"line":16},{"index_id":164,"token_group":126,"text":"(","start_char":42,"line":16},{"index_id":165,"token_group":127,"text":"element","start_char":43,"line":16},{"index_id":166,"token_group":128,"text":",","start_char":50,"line":16},{"index_id":167,"token_group":129,"text":"\"reservedMB\"","start_char":52,"line":16},{"index_id":168,"token_group":130,"text":")","start_char":64,"line":16},{"index_id":169,"token_group":131,"text":",","start_char":65,"line":16},{"index_id":170,"token_group":132,"text":"web","start_char":12,"line":17},{"index_id":171,"token_group":133,"text":"Services","start_char":15,"line":17},{"index_id":172,"token_group":133,"text":"Test","start_char":23,"line":17},{"index_id":173,"token_group":133,"text":"Utils","start_char":27,"line":17},{"index_id":174,"token_group":133,"text":".","start_char":32,"line":17},{"index_id":175,"token_group":134,"text":"get","start_char":33,"line":17},{"index_id":176,"token_group":135,"text":"Xml","start_char":36,"line":17},{"index_id":177,"token_group":135,"text":"Int","start_char":39,"line":17},{"index_id":178,"token_group":135,"text":"(","start_char":42,"line":17},{"index_id":179,"token_group":136,"text":"element","start_char":43,"line":17},{"index_id":180,"token_group":137,"text":",","start_char":50,"line":17},{"index_id":181,"token_group":138,"text":"\"availableMB\"","start_char":52,"line":17},{"index_id":182,"token_group":139,"text":")","start_char":65,"line":17},{"index_id":183,"token_group":140,"text":",","start_char":66,"line":17},{"index_id":184,"token_group":141,"text":"web","start_char":12,"line":18},{"index_id":185,"token_group":142,"text":"Services","start_char":15,"line":18},{"index_id":186,"token_group":142,"text":"Test","start_char":23,"line":18},{"index_id":187,"token_group":142,"text":"Utils","start_char":27,"line":18},{"index_id":188,"token_group":142,"text":".","start_char":32,"line":18},{"index_id":189,"token_group":143,"text":"get","start_char":33,"line":18},{"index_id":190,"token_group":144,"text":"Xml","start_char":36,"line":18},{"index_id":191,"token_group":144,"text":"Int","start_char":39,"line":18},{"index_id":192,"token_group":144,"text":"(","start_char":42,"line":18},{"index_id":193,"token_group":145,"text":"element","start_char":43,"line":18},{"index_id":194,"token_group":146,"text":",","start_char":50,"line":18},{"index_id":195,"token_group":147,"text":"\"allocatedMB\"","start_char":52,"line":18},{"index_id":196,"token_group":148,"text":")","start_char":65,"line":18},{"index_id":197,"token_group":149,"text":",","start_char":66,"line":18},{"index_id":198,"token_group":150,"text":"web","start_char":12,"line":19},{"index_id":199,"token_group":151,"text":"Services","start_char":15,"line":19},{"index_id":200,"token_group":151,"text":"Test","start_char":23,"line":19},{"index_id":201,"token_group":151,"text":"Utils","start_char":27,"line":19},{"index_id":202,"token_group":151,"text":".","start_char":32,"line":19},{"index_id":203,"token_group":152,"text":"get","start_char":33,"line":19},{"index_id":204,"token_group":153,"text":"Xml","start_char":36,"line":19},{"index_id":205,"token_group":153,"text":"Int","start_char":39,"line":19},{"index_id":206,"token_group":153,"text":"(","start_char":42,"line":19},{"index_id":207,"token_group":154,"text":"element","start_char":43,"line":19},{"index_id":208,"token_group":155,"text":",","start_char":50,"line":19},{"index_id":209,"token_group":156,"text":"\"reservedVirtualCores\"","start_char":52,"line":19},{"index_id":210,"token_group":157,"text":")","start_char":74,"line":19},{"index_id":211,"token_group":158,"text":",","start_char":75,"line":19},{"index_id":212,"token_group":159,"text":"web","start_char":12,"line":20},{"index_id":213,"token_group":160,"text":"Services","start_char":15,"line":20},{"index_id":214,"token_group":160,"text":"Test","start_char":23,"line":20},{"index_id":215,"token_group":160,"text":"Utils","start_char":27,"line":20},{"index_id":216,"token_group":160,"text":".","start_char":32,"line":20},{"index_id":217,"token_group":161,"text":"get","start_char":33,"line":20},{"index_id":218,"token_group":162,"text":"Xml","start_char":36,"line":20},{"index_id":219,"token_group":162,"text":"Int","start_char":39,"line":20},{"index_id":220,"token_group":162,"text":"(","start_char":42,"line":20},{"index_id":221,"token_group":163,"text":"element","start_char":43,"line":20},{"index_id":222,"token_group":164,"text":",","start_char":50,"line":20},{"index_id":223,"token_group":165,"text":"\"availableVirtualCores\"","start_char":52,"line":20},{"index_id":224,"token_group":166,"text":")","start_char":75,"line":20},{"index_id":225,"token_group":167,"text":",","start_char":76,"line":20},{"index_id":226,"token_group":168,"text":"web","start_char":12,"line":21},{"index_id":227,"token_group":169,"text":"Services","start_char":15,"line":21},{"index_id":228,"token_group":169,"text":"Test","start_char":23,"line":21},{"index_id":229,"token_group":169,"text":"Utils","start_char":27,"line":21},{"index_id":230,"token_group":169,"text":".","start_char":32,"line":21},{"index_id":231,"token_group":170,"text":"get","start_char":33,"line":21},{"index_id":232,"token_group":171,"text":"Xml","start_char":36,"line":21},{"index_id":233,"token_group":171,"text":"Int","start_char":39,"line":21},{"index_id":234,"token_group":171,"text":"(","start_char":42,"line":21},{"index_id":235,"token_group":172,"text":"element","start_char":43,"line":21},{"index_id":236,"token_group":173,"text":",","start_char":50,"line":21},{"index_id":237,"token_group":174,"text":"\"allocatedVirtualCores\"","start_char":52,"line":21},{"index_id":238,"token_group":175,"text":")","start_char":75,"line":21},{"index_id":239,"token_group":176,"text":",","start_char":76,"line":21},{"index_id":240,"token_group":177,"text":"web","start_char":12,"line":22},{"index_id":241,"token_group":178,"text":"Services","start_char":15,"line":22},{"index_id":242,"token_group":178,"text":"Test","start_char":23,"line":22},{"index_id":243,"token_group":178,"text":"Utils","start_char":27,"line":22},{"index_id":244,"token_group":178,"text":".","start_char":32,"line":22},{"index_id":245,"token_group":179,"text":"get","start_char":33,"line":22},{"index_id":246,"token_group":180,"text":"Xml","start_char":36,"line":22},{"index_id":247,"token_group":180,"text":"Int","start_char":39,"line":22},{"index_id":248,"token_group":180,"text":"(","start_char":42,"line":22},{"index_id":249,"token_group":181,"text":"element","start_char":43,"line":22},{"index_id":250,"token_group":182,"text":",","start_char":50,"line":22},{"index_id":251,"token_group":183,"text":"\"totalVirtualCores\"","start_char":52,"line":22},{"index_id":252,"token_group":184,"text":")","start_char":71,"line":22},{"index_id":253,"token_group":185,"text":",","start_char":72,"line":22},{"index_id":254,"token_group":186,"text":"web","start_char":12,"line":23},{"index_id":255,"token_group":187,"text":"Services","start_char":15,"line":23},{"index_id":256,"token_group":187,"text":"Test","start_char":23,"line":23},{"index_id":257,"token_group":187,"text":"Utils","start_char":27,"line":23},{"index_id":258,"token_group":187,"text":".","start_char":32,"line":23},{"index_id":259,"token_group":188,"text":"get","start_char":33,"line":23},{"index_id":260,"token_group":189,"text":"Xml","start_char":36,"line":23},{"index_id":261,"token_group":189,"text":"Int","start_char":39,"line":23},{"index_id":262,"token_group":189,"text":"(","start_char":42,"line":23},{"index_id":263,"token_group":190,"text":"element","start_char":43,"line":23},{"index_id":264,"token_group":191,"text":",","start_char":50,"line":23},{"index_id":265,"token_group":192,"text":"\"containersAllocated\"","start_char":52,"line":23},{"index_id":266,"token_group":193,"text":")","start_char":73,"line":23},{"index_id":267,"token_group":194,"text":",","start_char":74,"line":23},{"index_id":268,"token_group":195,"text":"web","start_char":12,"line":24},{"index_id":269,"token_group":196,"text":"Services","start_char":15,"line":24},{"index_id":270,"token_group":196,"text":"Test","start_char":23,"line":24},{"index_id":271,"token_group":196,"text":"Utils","start_char":27,"line":24},{"index_id":272,"token_group":196,"text":".","start_char":32,"line":24},{"index_id":273,"token_group":197,"text":"get","start_char":33,"line":24},{"index_id":274,"token_group":198,"text":"Xml","start_char":36,"line":24},{"index_id":275,"token_group":198,"text":"Int","start_char":39,"line":24},{"index_id":276,"token_group":198,"text":"(","start_char":42,"line":24},{"index_id":277,"token_group":199,"text":"element","start_char":43,"line":24},{"index_id":278,"token_group":200,"text":",","start_char":50,"line":24},{"index_id":279,"token_group":201,"text":"\"totalMB\"","start_char":52,"line":24},{"index_id":280,"token_group":202,"text":")","start_char":61,"line":24},{"index_id":281,"token_group":203,"text":",","start_char":62,"line":24},{"index_id":282,"token_group":204,"text":"web","start_char":12,"line":25},{"index_id":283,"token_group":205,"text":"Services","start_char":15,"line":25},{"index_id":284,"token_group":205,"text":"Test","start_char":23,"line":25},{"index_id":285,"token_group":205,"text":"Utils","start_char":27,"line":25},{"index_id":286,"token_group":205,"text":".","start_char":32,"line":25},{"index_id":287,"token_group":206,"text":"get","start_char":33,"line":25},{"index_id":288,"token_group":207,"text":"Xml","start_char":36,"line":25},{"index_id":289,"token_group":207,"text":"Int","start_char":39,"line":25},{"index_id":290,"token_group":207,"text":"(","start_char":42,"line":25},{"index_id":291,"token_group":208,"text":"element","start_char":43,"line":25},{"index_id":292,"token_group":209,"text":",","start_char":50,"line":25},{"index_id":293,"token_group":210,"text":"\"totalNodes\"","start_char":52,"line":25},{"index_id":294,"token_group":211,"text":")","start_char":64,"line":25},{"index_id":295,"token_group":212,"text":",","start_char":65,"line":25},{"index_id":296,"token_group":213,"text":"web","start_char":12,"line":26},{"index_id":297,"token_group":214,"text":"Services","start_char":15,"line":26},{"index_id":298,"token_group":214,"text":"Test","start_char":23,"line":26},{"index_id":299,"token_group":214,"text":"Utils","start_char":27,"line":26},{"index_id":300,"token_group":214,"text":".","start_char":32,"line":26},{"index_id":301,"token_group":215,"text":"get","start_char":33,"line":26},{"index_id":302,"token_group":216,"text":"Xml","start_char":36,"line":26},{"index_id":303,"token_group":216,"text":"Int","start_char":39,"line":26},{"index_id":304,"token_group":216,"text":"(","start_char":42,"line":26},{"index_id":305,"token_group":217,"text":"element","start_char":43,"line":26},{"index_id":306,"token_group":218,"text":",","start_char":50,"line":26},{"index_id":307,"token_group":219,"text":"\"lostNodes\"","start_char":52,"line":26},{"index_id":308,"token_group":220,"text":")","start_char":63,"line":26},{"index_id":309,"token_group":221,"text":",","start_char":64,"line":26},{"index_id":310,"token_group":222,"text":"web","start_char":12,"line":27},{"index_id":311,"token_group":223,"text":"Services","start_char":15,"line":27},{"index_id":312,"token_group":223,"text":"Test","start_char":23,"line":27},{"index_id":313,"token_group":223,"text":"Utils","start_char":27,"line":27},{"index_id":314,"token_group":223,"text":".","start_char":32,"line":27},{"index_id":315,"token_group":224,"text":"get","start_char":33,"line":27},{"index_id":316,"token_group":225,"text":"Xml","start_char":36,"line":27},{"index_id":317,"token_group":225,"text":"Int","start_char":39,"line":27},{"index_id":318,"token_group":225,"text":"(","start_char":42,"line":27},{"index_id":319,"token_group":226,"text":"element","start_char":43,"line":27},{"index_id":320,"token_group":227,"text":",","start_char":50,"line":27},{"index_id":321,"token_group":228,"text":"\"unhealthyNodes\"","start_char":52,"line":27},{"index_id":322,"token_group":229,"text":")","start_char":68,"line":27},{"index_id":323,"token_group":230,"text":",","start_char":69,"line":27},{"index_id":324,"token_group":231,"text":"web","start_char":12,"line":28},{"index_id":325,"token_group":232,"text":"Services","start_char":15,"line":28},{"index_id":326,"token_group":232,"text":"Test","start_char":23,"line":28},{"index_id":327,"token_group":232,"text":"Utils","start_char":27,"line":28},{"index_id":328,"token_group":232,"text":".","start_char":32,"line":28},{"index_id":329,"token_group":233,"text":"get","start_char":33,"line":28},{"index_id":330,"token_group":234,"text":"Xml","start_char":36,"line":28},{"index_id":331,"token_group":234,"text":"Int","start_char":39,"line":28},{"index_id":332,"token_group":234,"text":"(","start_char":42,"line":28},{"index_id":333,"token_group":235,"text":"element","start_char":43,"line":28},{"index_id":334,"token_group":236,"text":",","start_char":50,"line":28},{"index_id":335,"token_group":237,"text":"\"decommissionedNodes\"","start_char":52,"line":28},{"index_id":336,"token_group":238,"text":")","start_char":73,"line":28},{"index_id":337,"token_group":239,"text":",","start_char":74,"line":28},{"index_id":338,"token_group":240,"text":"web","start_char":12,"line":29},{"index_id":339,"token_group":241,"text":"Services","start_char":15,"line":29},{"index_id":340,"token_group":241,"text":"Test","start_char":23,"line":29},{"index_id":341,"token_group":241,"text":"Utils","start_char":27,"line":29},{"index_id":342,"token_group":241,"text":".","start_char":32,"line":29},{"index_id":343,"token_group":242,"text":"get","start_char":33,"line":29},{"index_id":344,"token_group":243,"text":"Xml","start_char":36,"line":29},{"index_id":345,"token_group":243,"text":"Int","start_char":39,"line":29},{"index_id":346,"token_group":243,"text":"(","start_char":42,"line":29},{"index_id":347,"token_group":244,"text":"element","start_char":43,"line":29},{"index_id":348,"token_group":245,"text":",","start_char":50,"line":29},{"index_id":349,"token_group":246,"text":"\"rebootedNodes\"","start_char":52,"line":29},{"index_id":350,"token_group":247,"text":")","start_char":67,"line":29},{"index_id":351,"token_group":248,"text":",","start_char":68,"line":29},{"index_id":352,"token_group":249,"text":"web","start_char":12,"line":30},{"index_id":353,"token_group":250,"text":"Services","start_char":15,"line":30},{"index_id":354,"token_group":250,"text":"Test","start_char":23,"line":30},{"index_id":355,"token_group":250,"text":"Utils","start_char":27,"line":30},{"index_id":356,"token_group":250,"text":".","start_char":32,"line":30},{"index_id":357,"token_group":251,"text":"get","start_char":33,"line":30},{"index_id":358,"token_group":252,"text":"Xml","start_char":36,"line":30},{"index_id":359,"token_group":252,"text":"Int","start_char":39,"line":30},{"index_id":360,"token_group":252,"text":"(","start_char":42,"line":30},{"index_id":361,"token_group":253,"text":"element","start_char":43,"line":30},{"index_id":362,"token_group":254,"text":",","start_char":50,"line":30},{"index_id":363,"token_group":255,"text":"\"activeNodes\"","start_char":52,"line":30},{"index_id":364,"token_group":256,"text":")","start_char":65,"line":30},{"index_id":365,"token_group":257,"text":")","start_char":66,"line":30},{"index_id":366,"token_group":258,"text":";","start_char":67,"line":30},{"index_id":367,"token_group":259,"text":"}","start_char":4,"line":31},{"index_id":368,"token_group":260,"text":"}","start_char":0,"line":32}],"tokens_list":["{","document","Builder","Factory","dbf","=","document","Builder","Factory",".","new","Instance","(",")",";","document","Builder","db","=","dbf",".","new","Document","Builder","(",")",";","input","Source","is","=","new","input","Source","(",")",";","is",".","set","Character","Stream","(","new","string","Reader","(","xml",")",")",";","document","dom","=","db",".","parse","(","is",")",";","node","List","nodes","=","dom",".","get","Elements","By","Tag","Name","(","\"clusterMetrics\"",")",";","assert","Equals","(","\"incorrect number of elements\"",",","1",",","nodes",".","get","Length","(",")",")",";","for","(","int","i","=","0",";","i","<","nodes",".","get","Length","(",")",";","i","++",")","{","element","element","=","(","element",")","nodes",".","item","(","i",")",";","verify","Cluster","Metrics","(","web","Services","Test","Utils",".","get","Xml","Int","(","element",",","\"appsSubmitted\"",")",",","web","Services","Test","Utils",".","get","Xml","Int","(","element",",","\"appsCompleted\"",")",",","web","Services","Test","Utils",".","get","Xml","Int","(","element",",","\"reservedMB\"",")",",","web","Services","Test","Utils",".","get","Xml","Int","(","element",",","\"availableMB\"",")",",","web","Services","Test","Utils",".","get","Xml","Int","(","element",",","\"allocatedMB\"",")",",","web","Services","Test","Utils",".","get","Xml","Int","(","element",",","\"reservedVirtualCores\"",")",",","web","Services","Test","Utils",".","get","Xml","Int","(","element",",","\"availableVirtualCores\"",")",",","web","Services","Test","Utils",".","get","Xml","Int","(","element",",","\"allocatedVirtualCores\"",")",",","web","Services","Test","Utils",".","get","Xml","Int","(","element",",","\"totalVirtualCores\"",")",",","web","Services","Test","Utils",".","get","Xml","Int","(","element",",","\"containersAllocated\"",")",",","web","Services","Test","Utils",".","get","Xml","Int","(","element",",","\"totalMB\"",")",",","web","Services","Test","Utils",".","get","Xml","Int","(","element",",","\"totalNodes\"",")",",","web","Services","Test","Utils",".","get","Xml","Int","(","element",",","\"lostNodes\"",")",",","web","Services","Test","Utils",".","get","Xml","Int","(","element",",","\"unhealthyNodes\"",")",",","web","Services","Test","Utils",".","get","Xml","Int","(","element",",","\"decommissionedNodes\"",")",",","web","Services","Test","Utils",".","get","Xml","Int","(","element",",","\"rebootedNodes\"",")",",","web","Services","Test","Utils",".","get","Xml","Int","(","element",",","\"activeNodes\"",")",")",";","}","}"],"uuid":"7f2ff3ef5e560eb7083d90e3018a81c6"},{"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","Socialrelation","Where","<\/id>",")",";","<id>","query","<\/id>",".","<id>","append","<\/id>","(","<id>","","Finder","Column","U","1","T","Userid","1","2","<\/id>",")",";","<id>","query","<\/id>",".","<id>","append","<\/id>","(","<id>","","Finder","Column","U","1","T","Type","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>","social","Relation","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>","user","Id","1","<\/id>",")",";","<id>","q","Pos","<\/id>",".","<id>","add","<\/id>","(","<id>","type","<\/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>","social","Relation","<\/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>","social","Relation","<\/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":"SocialRelationPersistenceImpl.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_SOCIALRELATION_WHERE);",""," query.append(_FINDER_COLUMN_U1_T_USERID1_2);",""," query.append(_FINDER_COLUMN_U1_T_TYPE_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(SocialRelationModelImpl.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(userId1);",""," qPos.add(type);",""," if (orderByComparator != null)"," {"," Object[] values = orderByComparator.getOrderByConditionValues(socialRelation);",""," for (Object value : values)"," {"," qPos.add(value);"," }"," }",""," List<SocialRelation> list = q.list();",""," if (list.size() == 2)"," {"," return list.get(1);"," }"," else"," {"," return null;"," }","}"],"function_name":"getByU1_T_PrevAndNext","function_name_tokens":["get","by","u","1","t","prev","and","next"],"id_body_hash":"2747a1b83bcd91ca107936007d02aee6","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,57,57,58,59,60,61,62,63,64,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,400,401,402,403,403,404,405,406,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":"getByU1_T_PrevAndNext","options":["getByU_C_T_S_PrevAndNext","testSix","getByT_P_PrevAndNext","checkValidContainer","getByU1_T_PrevAndNext","stripExtension","getByU_T_PrevAndNext"],"options_nlp":["get by u c t s prev and next","test six","get by t p prev and next","check valid container","get by u 1 t prev and next","strip extension","get by u t prev and next"],"options_random":["testSix","checkValidContainer","stripExtension"],"options_tfidf":["getByT_P_PrevAndNext","getByU_T_PrevAndNext","getByU_C_T_S_PrevAndNext"],"project_name":"liferay-portal","source_code_string":"protected SocialRelation getByU1_T_PrevAndNext(Session session,\n\t\tSocialRelation socialRelation, long userId1, int type,\n\t\tOrderByComparator<SocialRelation> 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_SOCIALRELATION_WHERE);\n\n\t\tquery.append(_FINDER_COLUMN_U1_T_USERID1_2);\n\n\t\tquery.append(_FINDER_COLUMN_U1_T_TYPE_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(SocialRelationModelImpl.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(userId1);\n\n\t\tqPos.add(type);\n\n\t\tif (orderByComparator != null) {\n\t\t\tObject[] values = orderByComparator.getOrderByConditionValues(socialRelation);\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<SocialRelation> 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":"Socialrelation","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":"U","start_char":32,"line":15},{"index_id":74,"token_group":57,"text":"1","start_char":33,"line":15},{"index_id":75,"token_group":57,"text":"T","start_char":35,"line":15},{"index_id":76,"token_group":57,"text":"Userid","start_char":37,"line":15},{"index_id":77,"token_group":57,"text":"1","start_char":43,"line":15},{"index_id":78,"token_group":57,"text":"2","start_char":45,"line":15},{"index_id":79,"token_group":57,"text":")","start_char":46,"line":15},{"index_id":80,"token_group":58,"text":";","start_char":47,"line":15},{"index_id":81,"token_group":59,"text":"query","start_char":4,"line":17},{"index_id":82,"token_group":60,"text":".","start_char":9,"line":17},{"index_id":83,"token_group":61,"text":"append","start_char":10,"line":17},{"index_id":84,"token_group":62,"text":"(","start_char":16,"line":17},{"index_id":85,"token_group":63,"text":"","start_char":17,"line":17},{"index_id":86,"token_group":64,"text":"Finder","start_char":18,"line":17},{"index_id":87,"token_group":64,"text":"Column","start_char":25,"line":17},{"index_id":88,"token_group":64,"text":"U","start_char":32,"line":17},{"index_id":89,"token_group":64,"text":"1","start_char":33,"line":17},{"index_id":90,"token_group":64,"text":"T","start_char":35,"line":17},{"index_id":91,"token_group":64,"text":"Type","start_char":37,"line":17},{"index_id":92,"token_group":64,"text":"2","start_char":42,"line":17},{"index_id":93,"token_group":64,"text":")","start_char":43,"line":17},{"index_id":94,"token_group":65,"text":";","start_char":44,"line":17},{"index_id":95,"token_group":66,"text":"if","start_char":4,"line":19},{"index_id":96,"token_group":67,"text":"(","start_char":7,"line":19},{"index_id":97,"token_group":68,"text":"order","start_char":8,"line":19},{"index_id":98,"token_group":69,"text":"By","start_char":13,"line":19},{"index_id":99,"token_group":69,"text":"Comparator","start_char":15,"line":19},{"index_id":100,"token_group":69,"text":"!=","start_char":26,"line":19},{"index_id":101,"token_group":70,"text":"null","start_char":29,"line":19},{"index_id":102,"token_group":71,"text":")","start_char":33,"line":19},{"index_id":103,"token_group":72,"text":"{","start_char":4,"line":20},{"index_id":104,"token_group":73,"text":"string","start_char":8,"line":21},{"index_id":105,"token_group":74,"text":"[","start_char":14,"line":21},{"index_id":106,"token_group":75,"text":"]","start_char":15,"line":21},{"index_id":107,"token_group":76,"text":"order","start_char":17,"line":21},{"index_id":108,"token_group":77,"text":"By","start_char":22,"line":21},{"index_id":109,"token_group":77,"text":"Condition","start_char":24,"line":21},{"index_id":110,"token_group":77,"text":"Fields","start_char":33,"line":21},{"index_id":111,"token_group":77,"text":"=","start_char":40,"line":21},{"index_id":112,"token_group":78,"text":"order","start_char":42,"line":21},{"index_id":113,"token_group":79,"text":"By","start_char":47,"line":21},{"index_id":114,"token_group":79,"text":"Comparator","start_char":49,"line":21},{"index_id":115,"token_group":79,"text":".","start_char":59,"line":21},{"index_id":116,"token_group":80,"text":"get","start_char":60,"line":21},{"index_id":117,"token_group":81,"text":"Order","start_char":63,"line":21},{"index_id":118,"token_group":81,"text":"By","start_char":68,"line":21},{"index_id":119,"token_group":81,"text":"Condition","start_char":70,"line":21},{"index_id":120,"token_group":81,"text":"Fields","start_char":79,"line":21},{"index_id":121,"token_group":81,"text":"(","start_char":85,"line":21},{"index_id":122,"token_group":82,"text":")","start_char":86,"line":21},{"index_id":123,"token_group":83,"text":";","start_char":87,"line":21},{"index_id":124,"token_group":84,"text":"if","start_char":8,"line":23},{"index_id":125,"token_group":85,"text":"(","start_char":11,"line":23},{"index_id":126,"token_group":86,"text":"order","start_char":12,"line":23},{"index_id":127,"token_group":87,"text":"By","start_char":17,"line":23},{"index_id":128,"token_group":87,"text":"Condition","start_char":19,"line":23},{"index_id":129,"token_group":87,"text":"Fields","start_char":28,"line":23},{"index_id":130,"token_group":87,"text":".","start_char":34,"line":23},{"index_id":131,"token_group":88,"text":"length","start_char":35,"line":23},{"index_id":132,"token_group":89,"text":">","start_char":42,"line":23},{"index_id":133,"token_group":90,"text":"0","start_char":44,"line":23},{"index_id":134,"token_group":91,"text":")","start_char":45,"line":23},{"index_id":135,"token_group":92,"text":"{","start_char":8,"line":24},{"index_id":136,"token_group":93,"text":"query","start_char":12,"line":25},{"index_id":137,"token_group":94,"text":".","start_char":17,"line":25},{"index_id":138,"token_group":95,"text":"append","start_char":18,"line":25},{"index_id":139,"token_group":96,"text":"(","start_char":24,"line":25},{"index_id":140,"token_group":97,"text":"where","start_char":25,"line":25},{"index_id":141,"token_group":98,"text":"And","start_char":31,"line":25},{"index_id":142,"token_group":98,"text":")","start_char":34,"line":25},{"index_id":143,"token_group":99,"text":";","start_char":35,"line":25},{"index_id":144,"token_group":100,"text":"}","start_char":8,"line":26},{"index_id":145,"token_group":101,"text":"for","start_char":8,"line":28},{"index_id":146,"token_group":102,"text":"(","start_char":12,"line":28},{"index_id":147,"token_group":103,"text":"int","start_char":13,"line":28},{"index_id":148,"token_group":104,"text":"i","start_char":17,"line":28},{"index_id":149,"token_group":105,"text":"=","start_char":19,"line":28},{"index_id":150,"token_group":106,"text":"0","start_char":21,"line":28},{"index_id":151,"token_group":107,"text":";","start_char":22,"line":28},{"index_id":152,"token_group":108,"text":"i","start_char":24,"line":28},{"index_id":153,"token_group":109,"text":"<","start_char":26,"line":28},{"index_id":154,"token_group":110,"text":"order","start_char":28,"line":28},{"index_id":155,"token_group":111,"text":"By","start_char":33,"line":28},{"index_id":156,"token_group":111,"text":"Condition","start_char":35,"line":28},{"index_id":157,"token_group":111,"text":"Fields","start_char":44,"line":28},{"index_id":158,"token_group":111,"text":".","start_char":50,"line":28},{"index_id":159,"token_group":112,"text":"length","start_char":51,"line":28},{"index_id":160,"token_group":113,"text":";","start_char":57,"line":28},{"index_id":161,"token_group":114,"text":"i","start_char":59,"line":28},{"index_id":162,"token_group":115,"text":"++","start_char":60,"line":28},{"index_id":163,"token_group":116,"text":")","start_char":62,"line":28},{"index_id":164,"token_group":117,"text":"{","start_char":8,"line":29},{"index_id":165,"token_group":118,"text":"query","start_char":12,"line":30},{"index_id":166,"token_group":119,"text":".","start_char":17,"line":30},{"index_id":167,"token_group":120,"text":"append","start_char":18,"line":30},{"index_id":168,"token_group":121,"text":"(","start_char":24,"line":30},{"index_id":169,"token_group":122,"text":"","start_char":25,"line":30},{"index_id":170,"token_group":123,"text":"Order","start_char":26,"line":30},{"index_id":171,"token_group":123,"text":"By","start_char":32,"line":30},{"index_id":172,"token_group":123,"text":"Entity","start_char":35,"line":30},{"index_id":173,"token_group":123,"text":"Alias","start_char":42,"line":30},{"index_id":174,"token_group":123,"text":")","start_char":47,"line":30},{"index_id":175,"token_group":124,"text":";","start_char":48,"line":30},{"index_id":176,"token_group":125,"text":"query","start_char":12,"line":31},{"index_id":177,"token_group":126,"text":".","start_char":17,"line":31},{"index_id":178,"token_group":127,"text":"append","start_char":18,"line":31},{"index_id":179,"token_group":128,"text":"(","start_char":24,"line":31},{"index_id":180,"token_group":129,"text":"order","start_char":25,"line":31},{"index_id":181,"token_group":130,"text":"By","start_char":30,"line":31},{"index_id":182,"token_group":130,"text":"Condition","start_char":32,"line":31},{"index_id":183,"token_group":130,"text":"Fields","start_char":41,"line":31},{"index_id":184,"token_group":130,"text":"[","start_char":47,"line":31},{"index_id":185,"token_group":131,"text":"i","start_char":48,"line":31},{"index_id":186,"token_group":132,"text":"]","start_char":49,"line":31},{"index_id":187,"token_group":133,"text":")","start_char":50,"line":31},{"index_id":188,"token_group":134,"text":";","start_char":51,"line":31},{"index_id":189,"token_group":135,"text":"if","start_char":12,"line":33},{"index_id":190,"token_group":136,"text":"(","start_char":15,"line":33},{"index_id":191,"token_group":137,"text":"(","start_char":16,"line":33},{"index_id":192,"token_group":138,"text":"i","start_char":17,"line":33},{"index_id":193,"token_group":139,"text":"+","start_char":19,"line":33},{"index_id":194,"token_group":140,"text":"1","start_char":21,"line":33},{"index_id":195,"token_group":141,"text":")","start_char":22,"line":33},{"index_id":196,"token_group":142,"text":"<","start_char":24,"line":33},{"index_id":197,"token_group":143,"text":"order","start_char":26,"line":33},{"index_id":198,"token_group":144,"text":"By","start_char":31,"line":33},{"index_id":199,"token_group":144,"text":"Condition","start_char":33,"line":33},{"index_id":200,"token_group":144,"text":"Fields","start_char":42,"line":33},{"index_id":201,"token_group":144,"text":".","start_char":48,"line":33},{"index_id":202,"token_group":145,"text":"length","start_char":49,"line":33},{"index_id":203,"token_group":146,"text":")","start_char":55,"line":33},{"index_id":204,"token_group":147,"text":"{","start_char":12,"line":34},{"index_id":205,"token_group":148,"text":"if","start_char":16,"line":35},{"index_id":206,"token_group":149,"text":"(","start_char":19,"line":35},{"index_id":207,"token_group":150,"text":"order","start_char":20,"line":35},{"index_id":208,"token_group":151,"text":"By","start_char":25,"line":35},{"index_id":209,"token_group":151,"text":"Comparator","start_char":27,"line":35},{"index_id":210,"token_group":151,"text":".","start_char":37,"line":35},{"index_id":211,"token_group":152,"text":"is","start_char":38,"line":35},{"index_id":212,"token_group":153,"text":"Ascending","start_char":40,"line":35},{"index_id":213,"token_group":153,"text":"(","start_char":49,"line":35},{"index_id":214,"token_group":154,"text":")","start_char":50,"line":35},{"index_id":215,"token_group":155,"text":"^","start_char":52,"line":35},{"index_id":216,"token_group":156,"text":"previous","start_char":54,"line":35},{"index_id":217,"token_group":157,"text":")","start_char":62,"line":35},{"index_id":218,"token_group":158,"text":"{","start_char":16,"line":36},{"index_id":219,"token_group":159,"text":"query","start_char":20,"line":37},{"index_id":220,"token_group":160,"text":".","start_char":25,"line":37},{"index_id":221,"token_group":161,"text":"append","start_char":26,"line":37},{"index_id":222,"token_group":162,"text":"(","start_char":32,"line":37},{"index_id":223,"token_group":163,"text":"where","start_char":33,"line":37},{"index_id":224,"token_group":164,"text":"Greater","start_char":39,"line":37},{"index_id":225,"token_group":164,"text":"Than","start_char":47,"line":37},{"index_id":226,"token_group":164,"text":"Has","start_char":52,"line":37},{"index_id":227,"token_group":164,"text":"Next","start_char":56,"line":37},{"index_id":228,"token_group":164,"text":")","start_char":60,"line":37},{"index_id":229,"token_group":165,"text":";","start_char":61,"line":37},{"index_id":230,"token_group":166,"text":"}","start_char":16,"line":38},{"index_id":231,"token_group":167,"text":"else","start_char":16,"line":39},{"index_id":232,"token_group":168,"text":"{","start_char":16,"line":40},{"index_id":233,"token_group":169,"text":"query","start_char":20,"line":41},{"index_id":234,"token_group":170,"text":".","start_char":25,"line":41},{"index_id":235,"token_group":171,"text":"append","start_char":26,"line":41},{"index_id":236,"token_group":172,"text":"(","start_char":32,"line":41},{"index_id":237,"token_group":173,"text":"where","start_char":33,"line":41},{"index_id":238,"token_group":174,"text":"Lesser","start_char":39,"line":41},{"index_id":239,"token_group":174,"text":"Than","start_char":46,"line":41},{"index_id":240,"token_group":174,"text":"Has","start_char":51,"line":41},{"index_id":241,"token_group":174,"text":"Next","start_char":55,"line":41},{"index_id":242,"token_group":174,"text":")","start_char":59,"line":41},{"index_id":243,"token_group":175,"text":";","start_char":60,"line":41},{"index_id":244,"token_group":176,"text":"}","start_char":16,"line":42},{"index_id":245,"token_group":177,"text":"}","start_char":12,"line":43},{"index_id":246,"token_group":178,"text":"else","start_char":12,"line":44},{"index_id":247,"token_group":179,"text":"{","start_char":12,"line":45},{"index_id":248,"token_group":180,"text":"if","start_char":16,"line":46},{"index_id":249,"token_group":181,"text":"(","start_char":19,"line":46},{"index_id":250,"token_group":182,"text":"order","start_char":20,"line":46},{"index_id":251,"token_group":183,"text":"By","start_char":25,"line":46},{"index_id":252,"token_group":183,"text":"Comparator","start_char":27,"line":46},{"index_id":253,"token_group":183,"text":".","start_char":37,"line":46},{"index_id":254,"token_group":184,"text":"is","start_char":38,"line":46},{"index_id":255,"token_group":185,"text":"Ascending","start_char":40,"line":46},{"index_id":256,"token_group":185,"text":"(","start_char":49,"line":46},{"index_id":257,"token_group":186,"text":")","start_char":50,"line":46},{"index_id":258,"token_group":187,"text":"^","start_char":52,"line":46},{"index_id":259,"token_group":188,"text":"previous","start_char":54,"line":46},{"index_id":260,"token_group":189,"text":")","start_char":62,"line":46},{"index_id":261,"token_group":190,"text":"{","start_char":16,"line":47},{"index_id":262,"token_group":191,"text":"query","start_char":20,"line":48},{"index_id":263,"token_group":192,"text":".","start_char":25,"line":48},{"index_id":264,"token_group":193,"text":"append","start_char":26,"line":48},{"index_id":265,"token_group":194,"text":"(","start_char":32,"line":48},{"index_id":266,"token_group":195,"text":"where","start_char":33,"line":48},{"index_id":267,"token_group":196,"text":"Greater","start_char":39,"line":48},{"index_id":268,"token_group":196,"text":"Than","start_char":47,"line":48},{"index_id":269,"token_group":196,"text":")","start_char":51,"line":48},{"index_id":270,"token_group":197,"text":";","start_char":52,"line":48},{"index_id":271,"token_group":198,"text":"}","start_char":16,"line":49},{"index_id":272,"token_group":199,"text":"else","start_char":16,"line":50},{"index_id":273,"token_group":200,"text":"{","start_char":16,"line":51},{"index_id":274,"token_group":201,"text":"query","start_char":20,"line":52},{"index_id":275,"token_group":202,"text":".","start_char":25,"line":52},{"index_id":276,"token_group":203,"text":"append","start_char":26,"line":52},{"index_id":277,"token_group":204,"text":"(","start_char":32,"line":52},{"index_id":278,"token_group":205,"text":"where","start_char":33,"line":52},{"index_id":279,"token_group":206,"text":"Lesser","start_char":39,"line":52},{"index_id":280,"token_group":206,"text":"Than","start_char":46,"line":52},{"index_id":281,"token_group":206,"text":")","start_char":50,"line":52},{"index_id":282,"token_group":207,"text":";","start_char":51,"line":52},{"index_id":283,"token_group":208,"text":"}","start_char":16,"line":53},{"index_id":284,"token_group":209,"text":"}","start_char":12,"line":54},{"index_id":285,"token_group":210,"text":"}","start_char":8,"line":55},{"index_id":286,"token_group":211,"text":"query","start_char":8,"line":57},{"index_id":287,"token_group":212,"text":".","start_char":13,"line":57},{"index_id":288,"token_group":213,"text":"append","start_char":14,"line":57},{"index_id":289,"token_group":214,"text":"(","start_char":20,"line":57},{"index_id":290,"token_group":215,"text":"order","start_char":21,"line":57},{"index_id":291,"token_group":216,"text":"By","start_char":27,"line":57},{"index_id":292,"token_group":216,"text":"Clause","start_char":30,"line":57},{"index_id":293,"token_group":216,"text":")","start_char":36,"line":57},{"index_id":294,"token_group":217,"text":";","start_char":37,"line":57},{"index_id":295,"token_group":218,"text":"string","start_char":8,"line":59},{"index_id":296,"token_group":219,"text":"[","start_char":14,"line":59},{"index_id":297,"token_group":220,"text":"]","start_char":15,"line":59},{"index_id":298,"token_group":221,"text":"order","start_char":17,"line":59},{"index_id":299,"token_group":222,"text":"By","start_char":22,"line":59},{"index_id":300,"token_group":222,"text":"Fields","start_char":24,"line":59},{"index_id":301,"token_group":222,"text":"=","start_char":31,"line":59},{"index_id":302,"token_group":223,"text":"order","start_char":33,"line":59},{"index_id":303,"token_group":224,"text":"By","start_char":38,"line":59},{"index_id":304,"token_group":224,"text":"Comparator","start_char":40,"line":59},{"index_id":305,"token_group":224,"text":".","start_char":50,"line":59},{"index_id":306,"token_group":225,"text":"get","start_char":51,"line":59},{"index_id":307,"token_group":226,"text":"Order","start_char":54,"line":59},{"index_id":308,"token_group":226,"text":"By","start_char":59,"line":59},{"index_id":309,"token_group":226,"text":"Fields","start_char":61,"line":59},{"index_id":310,"token_group":226,"text":"(","start_char":67,"line":59},{"index_id":311,"token_group":227,"text":")","start_char":68,"line":59},{"index_id":312,"token_group":228,"text":";","start_char":69,"line":59},{"index_id":313,"token_group":229,"text":"for","start_char":8,"line":61},{"index_id":314,"token_group":230,"text":"(","start_char":12,"line":61},{"index_id":315,"token_group":231,"text":"int","start_char":13,"line":61},{"index_id":316,"token_group":232,"text":"i","start_char":17,"line":61},{"index_id":317,"token_group":233,"text":"=","start_char":19,"line":61},{"index_id":318,"token_group":234,"text":"0","start_char":21,"line":61},{"index_id":319,"token_group":235,"text":";","start_char":22,"line":61},{"index_id":320,"token_group":236,"text":"i","start_char":24,"line":61},{"index_id":321,"token_group":237,"text":"<","start_char":26,"line":61},{"index_id":322,"token_group":238,"text":"order","start_char":28,"line":61},{"index_id":323,"token_group":239,"text":"By","start_char":33,"line":61},{"index_id":324,"token_group":239,"text":"Fields","start_char":35,"line":61},{"index_id":325,"token_group":239,"text":".","start_char":41,"line":61},{"index_id":326,"token_group":240,"text":"length","start_char":42,"line":61},{"index_id":327,"token_group":241,"text":";","start_char":48,"line":61},{"index_id":328,"token_group":242,"text":"i","start_char":50,"line":61},{"index_id":329,"token_group":243,"text":"++","start_char":51,"line":61},{"index_id":330,"token_group":244,"text":")","start_char":53,"line":61},{"index_id":331,"token_group":245,"text":"{","start_char":8,"line":62},{"index_id":332,"token_group":246,"text":"query","start_char":12,"line":63},{"index_id":333,"token_group":247,"text":".","start_char":17,"line":63},{"index_id":334,"token_group":248,"text":"append","start_char":18,"line":63},{"index_id":335,"token_group":249,"text":"(","start_char":24,"line":63},{"index_id":336,"token_group":250,"text":"","start_char":25,"line":63},{"index_id":337,"token_group":251,"text":"Order","start_char":26,"line":63},{"index_id":338,"token_group":251,"text":"By","start_char":32,"line":63},{"index_id":339,"token_group":251,"text":"Entity","start_char":35,"line":63},{"index_id":340,"token_group":251,"text":"Alias","start_char":42,"line":63},{"index_id":341,"token_group":251,"text":")","start_char":47,"line":63},{"index_id":342,"token_group":252,"text":";","start_char":48,"line":63},{"index_id":343,"token_group":253,"text":"query","start_char":12,"line":64},{"index_id":344,"token_group":254,"text":".","start_char":17,"line":64},{"index_id":345,"token_group":255,"text":"append","start_char":18,"line":64},{"index_id":346,"token_group":256,"text":"(","start_char":24,"line":64},{"index_id":347,"token_group":257,"text":"order","start_char":25,"line":64},{"index_id":348,"token_group":258,"text":"By","start_char":30,"line":64},{"index_id":349,"token_group":258,"text":"Fields","start_char":32,"line":64},{"index_id":350,"token_group":258,"text":"[","start_char":38,"line":64},{"index_id":351,"token_group":259,"text":"i","start_char":39,"line":64},{"index_id":352,"token_group":260,"text":"]","start_char":40,"line":64},{"index_id":353,"token_group":261,"text":")","start_char":41,"line":64},{"index_id":354,"token_group":262,"text":";","start_char":42,"line":64},{"index_id":355,"token_group":263,"text":"if","start_char":12,"line":66},{"index_id":356,"token_group":264,"text":"(","start_char":15,"line":66},{"index_id":357,"token_group":265,"text":"(","start_char":16,"line":66},{"index_id":358,"token_group":266,"text":"i","start_char":17,"line":66},{"index_id":359,"token_group":267,"text":"+","start_char":19,"line":66},{"index_id":360,"token_group":268,"text":"1","start_char":21,"line":66},{"index_id":361,"token_group":269,"text":")","start_char":22,"line":66},{"index_id":362,"token_group":270,"text":"<","start_char":24,"line":66},{"index_id":363,"token_group":271,"text":"order","start_char":26,"line":66},{"index_id":364,"token_group":272,"text":"By","start_char":31,"line":66},{"index_id":365,"token_group":272,"text":"Fields","start_char":33,"line":66},{"index_id":366,"token_group":272,"text":".","start_char":39,"line":66},{"index_id":367,"token_group":273,"text":"length","start_char":40,"line":66},{"index_id":368,"token_group":274,"text":")","start_char":46,"line":66},{"index_id":369,"token_group":275,"text":"{","start_char":12,"line":67},{"index_id":370,"token_group":276,"text":"if","start_char":16,"line":68},{"index_id":371,"token_group":277,"text":"(","start_char":19,"line":68},{"index_id":372,"token_group":278,"text":"order","start_char":20,"line":68},{"index_id":373,"token_group":279,"text":"By","start_char":25,"line":68},{"index_id":374,"token_group":279,"text":"Comparator","start_char":27,"line":68},{"index_id":375,"token_group":279,"text":".","start_char":37,"line":68},{"index_id":376,"token_group":280,"text":"is","start_char":38,"line":68},{"index_id":377,"token_group":281,"text":"Ascending","start_char":40,"line":68},{"index_id":378,"token_group":281,"text":"(","start_char":49,"line":68},{"index_id":379,"token_group":282,"text":")","start_char":50,"line":68},{"index_id":380,"token_group":283,"text":"^","start_char":52,"line":68},{"index_id":381,"token_group":284,"text":"previous","start_char":54,"line":68},{"index_id":382,"token_group":285,"text":")","start_char":62,"line":68},{"index_id":383,"token_group":286,"text":"{","start_char":16,"line":69},{"index_id":384,"token_group":287,"text":"query","start_char":20,"line":70},{"index_id":385,"token_group":288,"text":".","start_char":25,"line":70},{"index_id":386,"token_group":289,"text":"append","start_char":26,"line":70},{"index_id":387,"token_group":290,"text":"(","start_char":32,"line":70},{"index_id":388,"token_group":291,"text":"order","start_char":33,"line":70},{"index_id":389,"token_group":292,"text":"By","start_char":39,"line":70},{"index_id":390,"token_group":292,"text":"Asc","start_char":42,"line":70},{"index_id":391,"token_group":292,"text":"Has","start_char":46,"line":70},{"index_id":392,"token_group":292,"text":"Next","start_char":50,"line":70},{"index_id":393,"token_group":292,"text":")","start_char":54,"line":70},{"index_id":394,"token_group":293,"text":";","start_char":55,"line":70},{"index_id":395,"token_group":294,"text":"}","start_char":16,"line":71},{"index_id":396,"token_group":295,"text":"else","start_char":16,"line":72},{"index_id":397,"token_group":296,"text":"{","start_char":16,"line":73},{"index_id":398,"token_group":297,"text":"query","start_char":20,"line":74},{"index_id":399,"token_group":298,"text":".","start_char":25,"line":74},{"index_id":400,"token_group":299,"text":"append","start_char":26,"line":74},{"index_id":401,"token_group":300,"text":"(","start_char":32,"line":74},{"index_id":402,"token_group":301,"text":"order","start_char":33,"line":74},{"index_id":403,"token_group":302,"text":"By","start_char":39,"line":74},{"index_id":404,"token_group":302,"text":"Desc","start_char":42,"line":74},{"index_id":405,"token_group":302,"text":"Has","start_char":47,"line":74},{"index_id":406,"token_group":302,"text":"Next","start_char":51,"line":74},{"index_id":407,"token_group":302,"text":")","start_char":55,"line":74},{"index_id":408,"token_group":303,"text":";","start_char":56,"line":74},{"index_id":409,"token_group":304,"text":"}","start_char":16,"line":75},{"index_id":410,"token_group":305,"text":"}","start_char":12,"line":76},{"index_id":411,"token_group":306,"text":"else","start_char":12,"line":77},{"index_id":412,"token_group":307,"text":"{","start_char":12,"line":78},{"index_id":413,"token_group":308,"text":"if","start_char":16,"line":79},{"index_id":414,"token_group":309,"text":"(","start_char":19,"line":79},{"index_id":415,"token_group":310,"text":"order","start_char":20,"line":79},{"index_id":416,"token_group":311,"text":"By","start_char":25,"line":79},{"index_id":417,"token_group":311,"text":"Comparator","start_char":27,"line":79},{"index_id":418,"token_group":311,"text":".","start_char":37,"line":79},{"index_id":419,"token_group":312,"text":"is","start_char":38,"line":79},{"index_id":420,"token_group":313,"text":"Ascending","start_char":40,"line":79},{"index_id":421,"token_group":313,"text":"(","start_char":49,"line":79},{"index_id":422,"token_group":314,"text":")","start_char":50,"line":79},{"index_id":423,"token_group":315,"text":"^","start_char":52,"line":79},{"index_id":424,"token_group":316,"text":"previous","start_char":54,"line":79},{"index_id":425,"token_group":317,"text":")","start_char":62,"line":79},{"index_id":426,"token_group":318,"text":"{","start_char":16,"line":80},{"index_id":427,"token_group":319,"text":"query","start_char":20,"line":81},{"index_id":428,"token_group":320,"text":".","start_char":25,"line":81},{"index_id":429,"token_group":321,"text":"append","start_char":26,"line":81},{"index_id":430,"token_group":322,"text":"(","start_char":32,"line":81},{"index_id":431,"token_group":323,"text":"order","start_char":33,"line":81},{"index_id":432,"token_group":324,"text":"By","start_char":39,"line":81},{"index_id":433,"token_group":324,"text":"Asc","start_char":42,"line":81},{"index_id":434,"token_group":324,"text":")","start_char":45,"line":81},{"index_id":435,"token_group":325,"text":";","start_char":46,"line":81},{"index_id":436,"token_group":326,"text":"}","start_char":16,"line":82},{"index_id":437,"token_group":327,"text":"else","start_char":16,"line":83},{"index_id":438,"token_group":328,"text":"{","start_char":16,"line":84},{"index_id":439,"token_group":329,"text":"query","start_char":20,"line":85},{"index_id":440,"token_group":330,"text":".","start_char":25,"line":85},{"index_id":441,"token_group":331,"text":"append","start_char":26,"line":85},{"index_id":442,"token_group":332,"text":"(","start_char":32,"line":85},{"index_id":443,"token_group":333,"text":"order","start_char":33,"line":85},{"index_id":444,"token_group":334,"text":"By","start_char":39,"line":85},{"index_id":445,"token_group":334,"text":"Desc","start_char":42,"line":85},{"index_id":446,"token_group":334,"text":")","start_char":46,"line":85},{"index_id":447,"token_group":335,"text":";","start_char":47,"line":85},{"index_id":448,"token_group":336,"text":"}","start_char":16,"line":86},{"index_id":449,"token_group":337,"text":"}","start_char":12,"line":87},{"index_id":450,"token_group":338,"text":"}","start_char":8,"line":88},{"index_id":451,"token_group":339,"text":"}","start_char":4,"line":89},{"index_id":452,"token_group":340,"text":"else","start_char":4,"line":90},{"index_id":453,"token_group":341,"text":"{","start_char":4,"line":91},{"index_id":454,"token_group":342,"text":"query","start_char":8,"line":92},{"index_id":455,"token_group":343,"text":".","start_char":13,"line":92},{"index_id":456,"token_group":344,"text":"append","start_char":14,"line":92},{"index_id":457,"token_group":345,"text":"(","start_char":20,"line":92},{"index_id":458,"token_group":346,"text":"social","start_char":21,"line":92},{"index_id":459,"token_group":347,"text":"Relation","start_char":27,"line":92},{"index_id":460,"token_group":347,"text":"Model","start_char":35,"line":92},{"index_id":461,"token_group":347,"text":"Impl","start_char":40,"line":92},{"index_id":462,"token_group":347,"text":".","start_char":44,"line":92},{"index_id":463,"token_group":348,"text":"order","start_char":45,"line":92},{"index_id":464,"token_group":349,"text":"By","start_char":51,"line":92},{"index_id":465,"token_group":349,"text":"Jpql","start_char":54,"line":92},{"index_id":466,"token_group":349,"text":")","start_char":58,"line":92},{"index_id":467,"token_group":350,"text":";","start_char":59,"line":92},{"index_id":468,"token_group":351,"text":"}","start_char":4,"line":93},{"index_id":469,"token_group":352,"text":"string","start_char":4,"line":95},{"index_id":470,"token_group":353,"text":"sql","start_char":11,"line":95},{"index_id":471,"token_group":354,"text":"=","start_char":15,"line":95},{"index_id":472,"token_group":355,"text":"query","start_char":17,"line":95},{"index_id":473,"token_group":356,"text":".","start_char":22,"line":95},{"index_id":474,"token_group":357,"text":"to","start_char":23,"line":95},{"index_id":475,"token_group":358,"text":"String","start_char":25,"line":95},{"index_id":476,"token_group":358,"text":"(","start_char":31,"line":95},{"index_id":477,"token_group":359,"text":")","start_char":32,"line":95},{"index_id":478,"token_group":360,"text":";","start_char":33,"line":95},{"index_id":479,"token_group":361,"text":"query","start_char":4,"line":97},{"index_id":480,"token_group":362,"text":"q","start_char":10,"line":97},{"index_id":481,"token_group":363,"text":"=","start_char":12,"line":97},{"index_id":482,"token_group":364,"text":"session","start_char":14,"line":97},{"index_id":483,"token_group":365,"text":".","start_char":21,"line":97},{"index_id":484,"token_group":366,"text":"create","start_char":22,"line":97},{"index_id":485,"token_group":367,"text":"Query","start_char":28,"line":97},{"index_id":486,"token_group":367,"text":"(","start_char":33,"line":97},{"index_id":487,"token_group":368,"text":"sql","start_char":34,"line":97},{"index_id":488,"token_group":369,"text":")","start_char":37,"line":97},{"index_id":489,"token_group":370,"text":";","start_char":38,"line":97},{"index_id":490,"token_group":371,"text":"q","start_char":4,"line":99},{"index_id":491,"token_group":372,"text":".","start_char":5,"line":99},{"index_id":492,"token_group":373,"text":"set","start_char":6,"line":99},{"index_id":493,"token_group":374,"text":"First","start_char":9,"line":99},{"index_id":494,"token_group":374,"text":"Result","start_char":14,"line":99},{"index_id":495,"token_group":374,"text":"(","start_char":20,"line":99},{"index_id":496,"token_group":375,"text":"0","start_char":21,"line":99},{"index_id":497,"token_group":376,"text":")","start_char":22,"line":99},{"index_id":498,"token_group":377,"text":";","start_char":23,"line":99},{"index_id":499,"token_group":378,"text":"q","start_char":4,"line":100},{"index_id":500,"token_group":379,"text":".","start_char":5,"line":100},{"index_id":501,"token_group":380,"text":"set","start_char":6,"line":100},{"index_id":502,"token_group":381,"text":"Max","start_char":9,"line":100},{"index_id":503,"token_group":381,"text":"Results","start_char":12,"line":100},{"index_id":504,"token_group":381,"text":"(","start_char":19,"line":100},{"index_id":505,"token_group":382,"text":"2","start_char":20,"line":100},{"index_id":506,"token_group":383,"text":")","start_char":21,"line":100},{"index_id":507,"token_group":384,"text":";","start_char":22,"line":100},{"index_id":508,"token_group":385,"text":"query","start_char":4,"line":102},{"index_id":509,"token_group":386,"text":"Pos","start_char":9,"line":102},{"index_id":510,"token_group":386,"text":"q","start_char":13,"line":102},{"index_id":511,"token_group":387,"text":"Pos","start_char":14,"line":102},{"index_id":512,"token_group":387,"text":"=","start_char":18,"line":102},{"index_id":513,"token_group":388,"text":"query","start_char":20,"line":102},{"index_id":514,"token_group":389,"text":"Pos","start_char":25,"line":102},{"index_id":515,"token_group":389,"text":".","start_char":28,"line":102},{"index_id":516,"token_group":390,"text":"get","start_char":29,"line":102},{"index_id":517,"token_group":391,"text":"Instance","start_char":32,"line":102},{"index_id":518,"token_group":391,"text":"(","start_char":40,"line":102},{"index_id":519,"token_group":392,"text":"q","start_char":41,"line":102},{"index_id":520,"token_group":393,"text":")","start_char":42,"line":102},{"index_id":521,"token_group":394,"text":";","start_char":43,"line":102},{"index_id":522,"token_group":395,"text":"q","start_char":4,"line":104},{"index_id":523,"token_group":396,"text":"Pos","start_char":5,"line":104},{"index_id":524,"token_group":396,"text":".","start_char":8,"line":104},{"index_id":525,"token_group":397,"text":"add","start_char":9,"line":104},{"index_id":526,"token_group":398,"text":"(","start_char":12,"line":104},{"index_id":527,"token_group":399,"text":"user","start_char":13,"line":104},{"index_id":528,"token_group":400,"text":"Id","start_char":17,"line":104},{"index_id":529,"token_group":400,"text":"1","start_char":19,"line":104},{"index_id":530,"token_group":400,"text":")","start_char":20,"line":104},{"index_id":531,"token_group":401,"text":";","start_char":21,"line":104},{"index_id":532,"token_group":402,"text":"q","start_char":4,"line":106},{"index_id":533,"token_group":403,"text":"Pos","start_char":5,"line":106},{"index_id":534,"token_group":403,"text":".","start_char":8,"line":106},{"index_id":535,"token_group":404,"text":"add","start_char":9,"line":106},{"index_id":536,"token_group":405,"text":"(","start_char":12,"line":106},{"index_id":537,"token_group":406,"text":"type","start_char":13,"line":106},{"index_id":538,"token_group":407,"text":")","start_char":17,"line":106},{"index_id":539,"token_group":408,"text":";","start_char":18,"line":106},{"index_id":540,"token_group":409,"text":"if","start_char":4,"line":108},{"index_id":541,"token_group":410,"text":"(","start_char":7,"line":108},{"index_id":542,"token_group":411,"text":"order","start_char":8,"line":108},{"index_id":543,"token_group":412,"text":"By","start_char":13,"line":108},{"index_id":544,"token_group":412,"text":"Comparator","start_char":15,"line":108},{"index_id":545,"token_group":412,"text":"!=","start_char":26,"line":108},{"index_id":546,"token_group":413,"text":"null","start_char":29,"line":108},{"index_id":547,"token_group":414,"text":")","start_char":33,"line":108},{"index_id":548,"token_group":415,"text":"{","start_char":4,"line":109},{"index_id":549,"token_group":416,"text":"object","start_char":8,"line":110},{"index_id":550,"token_group":417,"text":"[","start_char":14,"line":110},{"index_id":551,"token_group":418,"text":"]","start_char":15,"line":110},{"index_id":552,"token_group":419,"text":"values","start_char":17,"line":110},{"index_id":553,"token_group":420,"text":"=","start_char":24,"line":110},{"index_id":554,"token_group":421,"text":"order","start_char":26,"line":110},{"index_id":555,"token_group":422,"text":"By","start_char":31,"line":110},{"index_id":556,"token_group":422,"text":"Comparator","start_char":33,"line":110},{"index_id":557,"token_group":422,"text":".","start_char":43,"line":110},{"index_id":558,"token_group":423,"text":"get","start_char":44,"line":110},{"index_id":559,"token_group":424,"text":"Order","start_char":47,"line":110},{"index_id":560,"token_group":424,"text":"By","start_char":52,"line":110},{"index_id":561,"token_group":424,"text":"Condition","start_char":54,"line":110},{"index_id":562,"token_group":424,"text":"Values","start_char":63,"line":110},{"index_id":563,"token_group":424,"text":"(","start_char":69,"line":110},{"index_id":564,"token_group":425,"text":"social","start_char":70,"line":110},{"index_id":565,"token_group":426,"text":"Relation","start_char":76,"line":110},{"index_id":566,"token_group":426,"text":")","start_char":84,"line":110},{"index_id":567,"token_group":427,"text":";","start_char":85,"line":110},{"index_id":568,"token_group":428,"text":"for","start_char":8,"line":112},{"index_id":569,"token_group":429,"text":"(","start_char":12,"line":112},{"index_id":570,"token_group":430,"text":"object","start_char":13,"line":112},{"index_id":571,"token_group":431,"text":"value","start_char":20,"line":112},{"index_id":572,"token_group":432,"text":":","start_char":26,"line":112},{"index_id":573,"token_group":433,"text":"values","start_char":28,"line":112},{"index_id":574,"token_group":434,"text":")","start_char":34,"line":112},{"index_id":575,"token_group":435,"text":"{","start_char":8,"line":113},{"index_id":576,"token_group":436,"text":"q","start_char":12,"line":114},{"index_id":577,"token_group":437,"text":"Pos","start_char":13,"line":114},{"index_id":578,"token_group":437,"text":".","start_char":16,"line":114},{"index_id":579,"token_group":438,"text":"add","start_char":17,"line":114},{"index_id":580,"token_group":439,"text":"(","start_char":20,"line":114},{"index_id":581,"token_group":440,"text":"value","start_char":21,"line":114},{"index_id":582,"token_group":441,"text":")","start_char":26,"line":114},{"index_id":583,"token_group":442,"text":";","start_char":27,"line":114},{"index_id":584,"token_group":443,"text":"}","start_char":8,"line":115},{"index_id":585,"token_group":444,"text":"}","start_char":4,"line":116},{"index_id":586,"token_group":445,"text":"list","start_char":4,"line":118},{"index_id":587,"token_group":446,"text":"<","start_char":8,"line":118},{"index_id":588,"token_group":447,"text":"social","start_char":9,"line":118},{"index_id":589,"token_group":448,"text":"Relation","start_char":15,"line":118},{"index_id":590,"token_group":448,"text":">","start_char":23,"line":118},{"index_id":591,"token_group":449,"text":"list","start_char":25,"line":118},{"index_id":592,"token_group":450,"text":"=","start_char":30,"line":118},{"index_id":593,"token_group":451,"text":"q","start_char":32,"line":118},{"index_id":594,"token_group":452,"text":".","start_char":33,"line":118},{"index_id":595,"token_group":453,"text":"list","start_char":34,"line":118},{"index_id":596,"token_group":454,"text":"(","start_char":38,"line":118},{"index_id":597,"token_group":455,"text":")","start_char":39,"line":118},{"index_id":598,"token_group":456,"text":";","start_char":40,"line":118},{"index_id":599,"token_group":457,"text":"if","start_char":4,"line":120},{"index_id":600,"token_group":458,"text":"(","start_char":7,"line":120},{"index_id":601,"token_group":459,"text":"list","start_char":8,"line":120},{"index_id":602,"token_group":460,"text":".","start_char":12,"line":120},{"index_id":603,"token_group":461,"text":"size","start_char":13,"line":120},{"index_id":604,"token_group":462,"text":"(","start_char":17,"line":120},{"index_id":605,"token_group":463,"text":")","start_char":18,"line":120},{"index_id":606,"token_group":464,"text":"==","start_char":20,"line":120},{"index_id":607,"token_group":465,"text":"2","start_char":23,"line":120},{"index_id":608,"token_group":466,"text":")","start_char":24,"line":120},{"index_id":609,"token_group":467,"text":"{","start_char":4,"line":121},{"index_id":610,"token_group":468,"text":"return","start_char":8,"line":122},{"index_id":611,"token_group":469,"text":"list","start_char":15,"line":122},{"index_id":612,"token_group":470,"text":".","start_char":19,"line":122},{"index_id":613,"token_group":471,"text":"get","start_char":20,"line":122},{"index_id":614,"token_group":472,"text":"(","start_char":23,"line":122},{"index_id":615,"token_group":473,"text":"1","start_char":24,"line":122},{"index_id":616,"token_group":474,"text":")","start_char":25,"line":122},{"index_id":617,"token_group":475,"text":";","start_char":26,"line":122},{"index_id":618,"token_group":476,"text":"}","start_char":4,"line":123},{"index_id":619,"token_group":477,"text":"else","start_char":4,"line":124},{"index_id":620,"token_group":478,"text":"{","start_char":4,"line":125},{"index_id":621,"token_group":479,"text":"return","start_char":8,"line":126},{"index_id":622,"token_group":480,"text":"null","start_char":15,"line":126},{"index_id":623,"token_group":481,"text":";","start_char":19,"line":126},{"index_id":624,"token_group":482,"text":"}","start_char":4,"line":127},{"index_id":625,"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","Socialrelation","Where",")",";","query",".","append","(","","Finder","Column","U","1","T","Userid","1","2",")",";","query",".","append","(","","Finder","Column","U","1","T","Type","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","(","social","Relation","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","(","user","Id","1",")",";","q","Pos",".","add","(","type",")",";","if","(","order","By","Comparator","!=","null",")","{","object","[","]","values","=","order","By","Comparator",".","get","Order","By","Condition","Values","(","social","Relation",")",";","for","(","object","value",":","values",")","{","q","Pos",".","add","(","value",")",";","}","}","list","<","social","Relation",">","list","=","q",".","list","(",")",";","if","(","list",".","size","(",")","==","2",")","{","return","list",".","get","(","1",")",";","}","else","{","return","null",";","}","}"],"uuid":"1cd4dd681707207cc8272026b3fef84e"},{"cap_original_tokens":["<SENTENCE_START>","{","return","new","<id>","extension","File","Filter","<\/id>","(","<id>","settings","Extension","<\/id>",",","\"Setting\"",")",";","}","<SENTENCE_END\/>"],"file_name":"Application.java","formatted_lines":["{"," return new ExtensionFileFilter(SETTINGS_EXTENSION, \"Setting\");","}"],"function_name":"createFileFilter","function_name_tokens":["create","file","filter"],"id_body_hash":"aa251eea98eff89c58cc87898911fdb7","id_same_identifier_list":[0,1,2,3,4,4,4,5,6,6,7,8,9,10,11,12],"option_correct":"createFileFilter","options":["createFilter","configureSpec","createFilterSpec","filter","canRemoveNonExistentObject","createFileFilter","getDebug"],"options_nlp":["create filter","configure spec","create filter spec","filter","can remove non existent object","create file filter","get debug"],"options_random":["canRemoveNonExistentObject","configureSpec","getDebug"],"options_tfidf":["createFilterSpec","createFilter","filter"],"project_name":"gradle","source_code_string":"private ExtensionFileFilter createFileFilter() {\n return new ExtensionFileFilter(SETTINGS_EXTENSION, \"Setting\");\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"return","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"new","start_char":11,"line":1},{"index_id":3,"token_group":3,"text":"extension","start_char":15,"line":1},{"index_id":4,"token_group":4,"text":"File","start_char":24,"line":1},{"index_id":5,"token_group":4,"text":"Filter","start_char":28,"line":1},{"index_id":6,"token_group":4,"text":"(","start_char":34,"line":1},{"index_id":7,"token_group":5,"text":"settings","start_char":35,"line":1},{"index_id":8,"token_group":6,"text":"Extension","start_char":44,"line":1},{"index_id":9,"token_group":6,"text":",","start_char":53,"line":1},{"index_id":10,"token_group":7,"text":"\"Setting\"","start_char":55,"line":1},{"index_id":11,"token_group":8,"text":")","start_char":64,"line":1},{"index_id":12,"token_group":9,"text":";","start_char":65,"line":1},{"index_id":13,"token_group":10,"text":"}","start_char":0,"line":2}],"tokens_list":["{","return","new","extension","File","Filter","(","settings","Extension",",","\"Setting\"",")",";","}"],"uuid":"4dc570b9157e281f1eee6827c807c705"},{"cap_original_tokens":["<SENTENCE_START>","{","return","<id>","file","Chooser","Descriptor","Factory","<\/id>",".","<id>","create","Single","Folder","Descriptor","<\/id>","(",")",";","}","<SENTENCE_END\/>"],"file_name":"GradleUtil.java","formatted_lines":["{"," return FileChooserDescriptorFactory.createSingleFolderDescriptor();","}"],"function_name":"getGradleHomeFileChooserDescriptor","function_name_tokens":["get","gradle","home","file","chooser","descriptor"],"id_body_hash":"d76f38a03f964426a22ffd6a80bcd31c","id_same_identifier_list":[0,1,2,3,3,3,3,4,5,5,5,5,6,7,8,9,10],"option_correct":"getGradleHomeFileChooserDescriptor","options":["getGradleHomeFileChooserDescriptor","getParentTagForNamespace","getGradleHome","testNoWrongSubstitutorFromStats","getGradleProjectFileChooserDescriptor","doGetGradleHome","classNotFound"],"options_nlp":["get gradle home file chooser descriptor","get parent tag for namespace","get gradle home","test no wrong substitutor from stats","get gradle project file chooser descriptor","do get gradle home","class not found"],"options_random":["getParentTagForNamespace","testNoWrongSubstitutorFromStats","classNotFound"],"options_tfidf":["getGradleProjectFileChooserDescriptor","doGetGradleHome","getGradleHome"],"project_name":"intellij-community","source_code_string":"@NotNull\n public static FileChooserDescriptor getGradleHomeFileChooserDescriptor() {\n return FileChooserDescriptorFactory.createSingleFolderDescriptor();\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":"file","start_char":11,"line":1},{"index_id":3,"token_group":3,"text":"Chooser","start_char":15,"line":1},{"index_id":4,"token_group":3,"text":"Descriptor","start_char":22,"line":1},{"index_id":5,"token_group":3,"text":"Factory","start_char":32,"line":1},{"index_id":6,"token_group":3,"text":".","start_char":39,"line":1},{"index_id":7,"token_group":4,"text":"create","start_char":40,"line":1},{"index_id":8,"token_group":5,"text":"Single","start_char":46,"line":1},{"index_id":9,"token_group":5,"text":"Folder","start_char":52,"line":1},{"index_id":10,"token_group":5,"text":"Descriptor","start_char":58,"line":1},{"index_id":11,"token_group":5,"text":"(","start_char":68,"line":1},{"index_id":12,"token_group":6,"text":")","start_char":69,"line":1},{"index_id":13,"token_group":7,"text":";","start_char":70,"line":1},{"index_id":14,"token_group":8,"text":"}","start_char":0,"line":2}],"tokens_list":["{","return","file","Chooser","Descriptor","Factory",".","create","Single","Folder","Descriptor","(",")",";","}"],"uuid":"dcd18e86224eab65c4f2259cffcb074f"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","register","With","Generated","Name","<\/id>","(","<id>","p","1","Bean","Def","<\/id>",",","<id>","bf","<\/id>",")",";","<id>","ppc","<\/id>",".","<id>","set","System","Properties","Mode","<\/id>","(","<id>","property","Placeholder","Configurer","<\/id>",".","<id>","system","Properties","Mode","Override","<\/id>",")",";","<id>","ppc","<\/id>",".","<id>","post","Process","Bean","Factory","<\/id>","(","<id>","bf","<\/id>",")",";","<id>","test","Bean","<\/id>","<id>","bean","<\/id>","=","<id>","bf","<\/id>",".","<id>","get","Bean","<\/id>","(","<id>","test","Bean","<\/id>",".","class",")",";","<id>","assert","That","<\/id>","(","<id>","bean","<\/id>",".","<id>","get","Name","<\/id>","(",")",",","<id>","equal","To","<\/id>","(","<id>","p","1","System","Props","Val","<\/id>",")",")",";","}","<SENTENCE_END\/>"],"file_name":"PropertyPlaceholderConfigurerTests.java","formatted_lines":["{"," registerWithGeneratedName(p1BeanDef, bf);"," ppc.setSystemPropertiesMode("," PropertyPlaceholderConfigurer.SYSTEM_PROPERTIES_MODE_OVERRIDE);"," ppc.postProcessBeanFactory(bf);"," TestBean bean = bf.getBean(TestBean.class);"," assertThat(bean.getName(), equalTo(P1_SYSTEM_PROPS_VAL));","}"],"function_name":"setSystemSystemPropertiesMode_toOverride_andResolveFromSystemProperties","function_name_tokens":["set","system","system","properties","mode","to","override","and","resolve","from","system","properties"],"id_body_hash":"5af45078e6bce876ea1c732d1a1f0877","id_same_identifier_list":[0,1,2,2,2,2,3,4,4,4,4,5,6,7,8,9,10,11,11,11,11,12,13,13,13,14,15,15,15,15,16,17,18,19,20,20,20,20,21,22,23,24,25,25,26,27,28,29,30,30,31,32,32,33,34,35,36,37,37,38,39,40,41,41,42,43,44,45,45,46,47,47,47,47,47,48,49,50,51,52],"option_correct":"setSystemSystemPropertiesMode_toOverride_andResolveFromSystemProperties","options":["setSystemSystemPropertiesMode_toOverride_andResolveFromSystemEnvironment","resolveFromSystemProperties","testInvokesMethodOnEjbInstance","conditionalOnBeanNoMatch","getDescriptor","setSystemSystemPropertiesMode_toOverride_andSetSearchSystemEnvironment_toFalse","setSystemSystemPropertiesMode_toOverride_andResolveFromSystemProperties"],"options_nlp":["set system system properties mode to override and resolve from system environment","resolve from system properties","test invokes method on ejb instance","conditional on bean no match","get descriptor","set system system properties mode to override and set search system environment to false","set system system properties mode to override and resolve from system properties"],"options_random":["testInvokesMethodOnEjbInstance","getDescriptor","conditionalOnBeanNoMatch"],"options_tfidf":["setSystemSystemPropertiesMode_toOverride_andResolveFromSystemEnvironment","setSystemSystemPropertiesMode_toOverride_andSetSearchSystemEnvironment_toFalse","resolveFromSystemProperties"],"project_name":"spring-framework","source_code_string":"@Test\n\tpublic void setSystemSystemPropertiesMode_toOverride_andResolveFromSystemProperties() {\n\t\tregisterWithGeneratedName(p1BeanDef, bf);\n\t\tppc.setSystemPropertiesMode(PropertyPlaceholderConfigurer.SYSTEM_PROPERTIES_MODE_OVERRIDE);\n\t\tppc.postProcessBeanFactory(bf);\n\t\tTestBean bean = bf.getBean(TestBean.class);\n\t\tassertThat(bean.getName(), equalTo(P1_SYSTEM_PROPS_VAL));\n\t}","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"register","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"With","start_char":12,"line":1},{"index_id":3,"token_group":2,"text":"Generated","start_char":16,"line":1},{"index_id":4,"token_group":2,"text":"Name","start_char":25,"line":1},{"index_id":5,"token_group":2,"text":"(","start_char":29,"line":1},{"index_id":6,"token_group":3,"text":"p","start_char":30,"line":1},{"index_id":7,"token_group":4,"text":"1","start_char":31,"line":1},{"index_id":8,"token_group":4,"text":"Bean","start_char":32,"line":1},{"index_id":9,"token_group":4,"text":"Def","start_char":36,"line":1},{"index_id":10,"token_group":4,"text":",","start_char":39,"line":1},{"index_id":11,"token_group":5,"text":"bf","start_char":41,"line":1},{"index_id":12,"token_group":6,"text":")","start_char":43,"line":1},{"index_id":13,"token_group":7,"text":";","start_char":44,"line":1},{"index_id":14,"token_group":8,"text":"ppc","start_char":4,"line":2},{"index_id":15,"token_group":9,"text":".","start_char":7,"line":2},{"index_id":16,"token_group":10,"text":"set","start_char":8,"line":2},{"index_id":17,"token_group":11,"text":"System","start_char":11,"line":2},{"index_id":18,"token_group":11,"text":"Properties","start_char":17,"line":2},{"index_id":19,"token_group":11,"text":"Mode","start_char":27,"line":2},{"index_id":20,"token_group":11,"text":"(","start_char":31,"line":2},{"index_id":21,"token_group":12,"text":"property","start_char":8,"line":3},{"index_id":22,"token_group":13,"text":"Placeholder","start_char":16,"line":3},{"index_id":23,"token_group":13,"text":"Configurer","start_char":27,"line":3},{"index_id":24,"token_group":13,"text":".","start_char":37,"line":3},{"index_id":25,"token_group":14,"text":"system","start_char":38,"line":3},{"index_id":26,"token_group":15,"text":"Properties","start_char":45,"line":3},{"index_id":27,"token_group":15,"text":"Mode","start_char":56,"line":3},{"index_id":28,"token_group":15,"text":"Override","start_char":61,"line":3},{"index_id":29,"token_group":15,"text":")","start_char":69,"line":3},{"index_id":30,"token_group":16,"text":";","start_char":70,"line":3},{"index_id":31,"token_group":17,"text":"ppc","start_char":4,"line":4},{"index_id":32,"token_group":18,"text":".","start_char":7,"line":4},{"index_id":33,"token_group":19,"text":"post","start_char":8,"line":4},{"index_id":34,"token_group":20,"text":"Process","start_char":12,"line":4},{"index_id":35,"token_group":20,"text":"Bean","start_char":19,"line":4},{"index_id":36,"token_group":20,"text":"Factory","start_char":23,"line":4},{"index_id":37,"token_group":20,"text":"(","start_char":30,"line":4},{"index_id":38,"token_group":21,"text":"bf","start_char":31,"line":4},{"index_id":39,"token_group":22,"text":")","start_char":33,"line":4},{"index_id":40,"token_group":23,"text":";","start_char":34,"line":4},{"index_id":41,"token_group":24,"text":"test","start_char":4,"line":5},{"index_id":42,"token_group":25,"text":"Bean","start_char":8,"line":5},{"index_id":43,"token_group":25,"text":"bean","start_char":13,"line":5},{"index_id":44,"token_group":26,"text":"=","start_char":18,"line":5},{"index_id":45,"token_group":27,"text":"bf","start_char":20,"line":5},{"index_id":46,"token_group":28,"text":".","start_char":22,"line":5},{"index_id":47,"token_group":29,"text":"get","start_char":23,"line":5},{"index_id":48,"token_group":30,"text":"Bean","start_char":26,"line":5},{"index_id":49,"token_group":30,"text":"(","start_char":30,"line":5},{"index_id":50,"token_group":31,"text":"test","start_char":31,"line":5},{"index_id":51,"token_group":32,"text":"Bean","start_char":35,"line":5},{"index_id":52,"token_group":32,"text":".","start_char":39,"line":5},{"index_id":53,"token_group":33,"text":"class","start_char":40,"line":5},{"index_id":54,"token_group":34,"text":")","start_char":45,"line":5},{"index_id":55,"token_group":35,"text":";","start_char":46,"line":5},{"index_id":56,"token_group":36,"text":"assert","start_char":4,"line":6},{"index_id":57,"token_group":37,"text":"That","start_char":10,"line":6},{"index_id":58,"token_group":37,"text":"(","start_char":14,"line":6},{"index_id":59,"token_group":38,"text":"bean","start_char":15,"line":6},{"index_id":60,"token_group":39,"text":".","start_char":19,"line":6},{"index_id":61,"token_group":40,"text":"get","start_char":20,"line":6},{"index_id":62,"token_group":41,"text":"Name","start_char":23,"line":6},{"index_id":63,"token_group":41,"text":"(","start_char":27,"line":6},{"index_id":64,"token_group":42,"text":")","start_char":28,"line":6},{"index_id":65,"token_group":43,"text":",","start_char":29,"line":6},{"index_id":66,"token_group":44,"text":"equal","start_char":31,"line":6},{"index_id":67,"token_group":45,"text":"To","start_char":36,"line":6},{"index_id":68,"token_group":45,"text":"(","start_char":38,"line":6},{"index_id":69,"token_group":46,"text":"p","start_char":39,"line":6},{"index_id":70,"token_group":47,"text":"1","start_char":40,"line":6},{"index_id":71,"token_group":47,"text":"System","start_char":42,"line":6},{"index_id":72,"token_group":47,"text":"Props","start_char":49,"line":6},{"index_id":73,"token_group":47,"text":"Val","start_char":55,"line":6},{"index_id":74,"token_group":47,"text":")","start_char":58,"line":6},{"index_id":75,"token_group":48,"text":")","start_char":59,"line":6},{"index_id":76,"token_group":49,"text":";","start_char":60,"line":6},{"index_id":77,"token_group":50,"text":"}","start_char":0,"line":7}],"tokens_list":["{","register","With","Generated","Name","(","p","1","Bean","Def",",","bf",")",";","ppc",".","set","System","Properties","Mode","(","property","Placeholder","Configurer",".","system","Properties","Mode","Override",")",";","ppc",".","post","Process","Bean","Factory","(","bf",")",";","test","Bean","bean","=","bf",".","get","Bean","(","test","Bean",".","class",")",";","assert","That","(","bean",".","get","Name","(",")",",","equal","To","(","p","1","System","Props","Val",")",")",";","}"],"uuid":"11dd30f10f5da2280299e94152e20ea3"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","my","Dispatcher","<\/id>",".","<id>","get","Multicaster","<\/id>","(",")",".","<id>","run","Configuration","Selected","<\/id>","(",")",";","}","<SENTENCE_END\/>"],"file_name":"RunManagerImpl.java","formatted_lines":["{"," myDispatcher.getMulticaster().runConfigurationSelected();","}"],"function_name":"fireRunConfigurationSelected","function_name_tokens":["fire","run","configuration","selected"],"id_body_hash":"bada4e4a0caec37cd793f9055d4419fd","id_same_identifier_list":[0,1,2,2,3,4,4,5,6,7,8,8,8,9,10,11,12,13],"option_correct":"fireRunConfigurationSelected","options":["fireRunConfigurationSelected","testInvalidProfilesXml","valueToPointerValue","fireRunConfigurationChanged","isDeletion","runConfiguration","addRunConfiguration"],"options_nlp":["fire run configuration selected","test invalid profiles xml","value to pointer value","fire run configuration changed","is deletion","run configuration","add run configuration"],"options_random":["testInvalidProfilesXml","valueToPointerValue","isDeletion"],"options_tfidf":["addRunConfiguration","fireRunConfigurationChanged","runConfiguration"],"project_name":"intellij-community","source_code_string":"private void fireRunConfigurationSelected() {\n myDispatcher.getMulticaster().runConfigurationSelected();\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":"Dispatcher","start_char":6,"line":1},{"index_id":3,"token_group":2,"text":".","start_char":16,"line":1},{"index_id":4,"token_group":3,"text":"get","start_char":17,"line":1},{"index_id":5,"token_group":4,"text":"Multicaster","start_char":20,"line":1},{"index_id":6,"token_group":4,"text":"(","start_char":31,"line":1},{"index_id":7,"token_group":5,"text":")","start_char":32,"line":1},{"index_id":8,"token_group":6,"text":".","start_char":33,"line":1},{"index_id":9,"token_group":7,"text":"run","start_char":34,"line":1},{"index_id":10,"token_group":8,"text":"Configuration","start_char":37,"line":1},{"index_id":11,"token_group":8,"text":"Selected","start_char":50,"line":1},{"index_id":12,"token_group":8,"text":"(","start_char":58,"line":1},{"index_id":13,"token_group":9,"text":")","start_char":59,"line":1},{"index_id":14,"token_group":10,"text":";","start_char":60,"line":1},{"index_id":15,"token_group":11,"text":"}","start_char":0,"line":2}],"tokens_list":["{","my","Dispatcher",".","get","Multicaster","(",")",".","run","Configuration","Selected","(",")",";","}"],"uuid":"a9e70ab11965d9cc39bf271f8d41b35e"},{"cap_original_tokens":["<SENTENCE_START>","{","if","(","<id>","color","<\/id>","!=","null",")","{","final","<id>","text","Attributes","<\/id>","<id>","text","Attributes","<\/id>","=","<id>","simple","Text","Attributes","<\/id>",".","<id>","to","Text","Attributes","<\/id>","(",")",";","<id>","text","Attributes","<\/id>",".","<id>","set","Foreground","Color","<\/id>","(","<id>","color","<\/id>",")",";","<id>","simple","Text","Attributes","<\/id>","=","<id>","simple","Text","Attributes","<\/id>",".","<id>","from","Text","Attributes","<\/id>","(","<id>","text","Attributes","<\/id>",")",";","}","return","<id>","simple","Text","Attributes","<\/id>",";","}","<SENTENCE_END\/>"],"file_name":"NodeRenderer.java","formatted_lines":["{"," if (color != null)"," {"," final TextAttributes textAttributes = simpleTextAttributes.toTextAttributes();"," textAttributes.setForegroundColor(color);"," simpleTextAttributes = SimpleTextAttributes.fromTextAttributes(textAttributes);"," }"," return simpleTextAttributes;","}"],"function_name":"addColorToSimpleTextAttributes","function_name_tokens":["add","color","to","simple","text","attributes"],"id_body_hash":"2b9e307607aceaf3a310b3980794b3d4","id_same_identifier_list":[0,1,2,3,4,5,6,7,8,9,10,10,11,11,12,13,13,13,14,15,15,15,16,17,18,19,19,20,21,21,21,22,23,24,25,26,26,26,27,28,28,28,29,30,30,30,31,32,32,33,34,35,36,37,37,37,38,39,40],"option_correct":"addColorToSimpleTextAttributes","options":["addColorToSimpleTextAttributes","toColor","addText","addTextToEditor","updateGridUI","finishDrop","addToUsages"],"options_nlp":["add color to simple text attributes","to color","add text","add text to editor","update grid ui","finish drop","add to usages"],"options_random":["addToUsages","updateGridUI","finishDrop"],"options_tfidf":["addText","addTextToEditor","toColor"],"project_name":"intellij-community","source_code_string":"private static SimpleTextAttributes addColorToSimpleTextAttributes(SimpleTextAttributes simpleTextAttributes, Color color) {\n if (color != null) {\n final TextAttributes textAttributes = simpleTextAttributes.toTextAttributes();\n textAttributes.setForegroundColor(color);\n simpleTextAttributes = SimpleTextAttributes.fromTextAttributes(textAttributes);\n }\n return simpleTextAttributes;\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":"color","start_char":8,"line":1},{"index_id":4,"token_group":4,"text":"!=","start_char":14,"line":1},{"index_id":5,"token_group":5,"text":"null","start_char":17,"line":1},{"index_id":6,"token_group":6,"text":")","start_char":21,"line":1},{"index_id":7,"token_group":7,"text":"{","start_char":4,"line":2},{"index_id":8,"token_group":8,"text":"final","start_char":8,"line":3},{"index_id":9,"token_group":9,"text":"text","start_char":14,"line":3},{"index_id":10,"token_group":10,"text":"Attributes","start_char":18,"line":3},{"index_id":11,"token_group":10,"text":"text","start_char":29,"line":3},{"index_id":12,"token_group":11,"text":"Attributes","start_char":33,"line":3},{"index_id":13,"token_group":11,"text":"=","start_char":44,"line":3},{"index_id":14,"token_group":12,"text":"simple","start_char":46,"line":3},{"index_id":15,"token_group":13,"text":"Text","start_char":52,"line":3},{"index_id":16,"token_group":13,"text":"Attributes","start_char":56,"line":3},{"index_id":17,"token_group":13,"text":".","start_char":66,"line":3},{"index_id":18,"token_group":14,"text":"to","start_char":67,"line":3},{"index_id":19,"token_group":15,"text":"Text","start_char":69,"line":3},{"index_id":20,"token_group":15,"text":"Attributes","start_char":73,"line":3},{"index_id":21,"token_group":15,"text":"(","start_char":83,"line":3},{"index_id":22,"token_group":16,"text":")","start_char":84,"line":3},{"index_id":23,"token_group":17,"text":";","start_char":85,"line":3},{"index_id":24,"token_group":18,"text":"text","start_char":8,"line":4},{"index_id":25,"token_group":19,"text":"Attributes","start_char":12,"line":4},{"index_id":26,"token_group":19,"text":".","start_char":22,"line":4},{"index_id":27,"token_group":20,"text":"set","start_char":23,"line":4},{"index_id":28,"token_group":21,"text":"Foreground","start_char":26,"line":4},{"index_id":29,"token_group":21,"text":"Color","start_char":36,"line":4},{"index_id":30,"token_group":21,"text":"(","start_char":41,"line":4},{"index_id":31,"token_group":22,"text":"color","start_char":42,"line":4},{"index_id":32,"token_group":23,"text":")","start_char":47,"line":4},{"index_id":33,"token_group":24,"text":";","start_char":48,"line":4},{"index_id":34,"token_group":25,"text":"simple","start_char":8,"line":5},{"index_id":35,"token_group":26,"text":"Text","start_char":14,"line":5},{"index_id":36,"token_group":26,"text":"Attributes","start_char":18,"line":5},{"index_id":37,"token_group":26,"text":"=","start_char":29,"line":5},{"index_id":38,"token_group":27,"text":"simple","start_char":31,"line":5},{"index_id":39,"token_group":28,"text":"Text","start_char":37,"line":5},{"index_id":40,"token_group":28,"text":"Attributes","start_char":41,"line":5},{"index_id":41,"token_group":28,"text":".","start_char":51,"line":5},{"index_id":42,"token_group":29,"text":"from","start_char":52,"line":5},{"index_id":43,"token_group":30,"text":"Text","start_char":56,"line":5},{"index_id":44,"token_group":30,"text":"Attributes","start_char":60,"line":5},{"index_id":45,"token_group":30,"text":"(","start_char":70,"line":5},{"index_id":46,"token_group":31,"text":"text","start_char":71,"line":5},{"index_id":47,"token_group":32,"text":"Attributes","start_char":75,"line":5},{"index_id":48,"token_group":32,"text":")","start_char":85,"line":5},{"index_id":49,"token_group":33,"text":";","start_char":86,"line":5},{"index_id":50,"token_group":34,"text":"}","start_char":4,"line":6},{"index_id":51,"token_group":35,"text":"return","start_char":4,"line":7},{"index_id":52,"token_group":36,"text":"simple","start_char":11,"line":7},{"index_id":53,"token_group":37,"text":"Text","start_char":17,"line":7},{"index_id":54,"token_group":37,"text":"Attributes","start_char":21,"line":7},{"index_id":55,"token_group":37,"text":";","start_char":31,"line":7},{"index_id":56,"token_group":38,"text":"}","start_char":0,"line":8}],"tokens_list":["{","if","(","color","!=","null",")","{","final","text","Attributes","text","Attributes","=","simple","Text","Attributes",".","to","Text","Attributes","(",")",";","text","Attributes",".","set","Foreground","Color","(","color",")",";","simple","Text","Attributes","=","simple","Text","Attributes",".","from","Text","Attributes","(","text","Attributes",")",";","}","return","simple","Text","Attributes",";","}"],"uuid":"b7d811aee00edebf281dc0b974c1f6ac"},{"cap_original_tokens":["<SENTENCE_START>","{","if","(","<id>","ui","Util","<\/id>",".","<id>","is","Under","Aqua","Look","And","Feel","<\/id>","(",")",")","{","<id>","ui","Defaults","<\/id>",".","<id>","put","<\/id>","(","\"Separator.background\"",",","<id>","ui","Util","<\/id>",".","<id>","aqua","Separator","Background","Color","<\/id>",")",";","<id>","ui","Defaults","<\/id>",".","<id>","put","<\/id>","(","\"Separator.foreground\"",",","<id>","ui","Util","<\/id>",".","<id>","aqua","Separator","Foreground","Color","<\/id>",")",";","}","}","<SENTENCE_END\/>"],"file_name":"LafManagerImpl.java","formatted_lines":["{"," if (UIUtil.isUnderAquaLookAndFeel())"," {"," uiDefaults.put(\"Separator.background\", UIUtil.AQUA_SEPARATOR_BACKGROUND_COLOR);"," uiDefaults.put(\"Separator.foreground\", UIUtil.AQUA_SEPARATOR_FOREGROUND_COLOR);"," }","}"],"function_name":"fixSeparatorColor","function_name_tokens":["fix","separator","color"],"id_body_hash":"a370800a0b6b21c6ed4e810f028120e0","id_same_identifier_list":[0,1,2,3,4,4,5,6,6,6,6,6,6,7,8,9,10,11,11,12,13,14,15,16,17,17,18,19,19,19,19,20,21,22,22,23,24,25,26,27,28,28,29,30,30,30,30,31,32,33,34,35],"option_correct":"fixSeparatorColor","options":["getColor","fixSeparatorColor","testCollapsingRegionContainingSoftWrap","isNameSuitable","testSuperMethodCallWithErasure","getSelectionColor","calcColor"],"options_nlp":["get color","fix separator color","test collapsing region containing soft wrap","is name suitable","test super method call with erasure","get selection color","calc color"],"options_random":["testCollapsingRegionContainingSoftWrap","isNameSuitable","testSuperMethodCallWithErasure"],"options_tfidf":["getSelectionColor","getColor","calcColor"],"project_name":"intellij-community","source_code_string":"private static void fixSeparatorColor(UIDefaults uiDefaults) {\n if (UIUtil.isUnderAquaLookAndFeel()) {\n uiDefaults.put(\"Separator.background\", UIUtil.AQUA_SEPARATOR_BACKGROUND_COLOR);\n uiDefaults.put(\"Separator.foreground\", UIUtil.AQUA_SEPARATOR_FOREGROUND_COLOR);\n }\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"if","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"(","start_char":7,"line":1},{"index_id":3,"token_group":3,"text":"ui","start_char":8,"line":1},{"index_id":4,"token_group":4,"text":"Util","start_char":10,"line":1},{"index_id":5,"token_group":4,"text":".","start_char":14,"line":1},{"index_id":6,"token_group":5,"text":"is","start_char":15,"line":1},{"index_id":7,"token_group":6,"text":"Under","start_char":17,"line":1},{"index_id":8,"token_group":6,"text":"Aqua","start_char":22,"line":1},{"index_id":9,"token_group":6,"text":"Look","start_char":26,"line":1},{"index_id":10,"token_group":6,"text":"And","start_char":30,"line":1},{"index_id":11,"token_group":6,"text":"Feel","start_char":33,"line":1},{"index_id":12,"token_group":6,"text":"(","start_char":37,"line":1},{"index_id":13,"token_group":7,"text":")","start_char":38,"line":1},{"index_id":14,"token_group":8,"text":")","start_char":39,"line":1},{"index_id":15,"token_group":9,"text":"{","start_char":4,"line":2},{"index_id":16,"token_group":10,"text":"ui","start_char":8,"line":3},{"index_id":17,"token_group":11,"text":"Defaults","start_char":10,"line":3},{"index_id":18,"token_group":11,"text":".","start_char":18,"line":3},{"index_id":19,"token_group":12,"text":"put","start_char":19,"line":3},{"index_id":20,"token_group":13,"text":"(","start_char":22,"line":3},{"index_id":21,"token_group":14,"text":"\"Separator.background\"","start_char":23,"line":3},{"index_id":22,"token_group":15,"text":",","start_char":45,"line":3},{"index_id":23,"token_group":16,"text":"ui","start_char":47,"line":3},{"index_id":24,"token_group":17,"text":"Util","start_char":49,"line":3},{"index_id":25,"token_group":17,"text":".","start_char":53,"line":3},{"index_id":26,"token_group":18,"text":"aqua","start_char":54,"line":3},{"index_id":27,"token_group":19,"text":"Separator","start_char":59,"line":3},{"index_id":28,"token_group":19,"text":"Background","start_char":69,"line":3},{"index_id":29,"token_group":19,"text":"Color","start_char":80,"line":3},{"index_id":30,"token_group":19,"text":")","start_char":85,"line":3},{"index_id":31,"token_group":20,"text":";","start_char":86,"line":3},{"index_id":32,"token_group":21,"text":"ui","start_char":8,"line":4},{"index_id":33,"token_group":22,"text":"Defaults","start_char":10,"line":4},{"index_id":34,"token_group":22,"text":".","start_char":18,"line":4},{"index_id":35,"token_group":23,"text":"put","start_char":19,"line":4},{"index_id":36,"token_group":24,"text":"(","start_char":22,"line":4},{"index_id":37,"token_group":25,"text":"\"Separator.foreground\"","start_char":23,"line":4},{"index_id":38,"token_group":26,"text":",","start_char":45,"line":4},{"index_id":39,"token_group":27,"text":"ui","start_char":47,"line":4},{"index_id":40,"token_group":28,"text":"Util","start_char":49,"line":4},{"index_id":41,"token_group":28,"text":".","start_char":53,"line":4},{"index_id":42,"token_group":29,"text":"aqua","start_char":54,"line":4},{"index_id":43,"token_group":30,"text":"Separator","start_char":59,"line":4},{"index_id":44,"token_group":30,"text":"Foreground","start_char":69,"line":4},{"index_id":45,"token_group":30,"text":"Color","start_char":80,"line":4},{"index_id":46,"token_group":30,"text":")","start_char":85,"line":4},{"index_id":47,"token_group":31,"text":";","start_char":86,"line":4},{"index_id":48,"token_group":32,"text":"}","start_char":4,"line":5},{"index_id":49,"token_group":33,"text":"}","start_char":0,"line":6}],"tokens_list":["{","if","(","ui","Util",".","is","Under","Aqua","Look","And","Feel","(",")",")","{","ui","Defaults",".","put","(","\"Separator.background\"",",","ui","Util",".","aqua","Separator","Background","Color",")",";","ui","Defaults",".","put","(","\"Separator.foreground\"",",","ui","Util",".","aqua","Separator","Foreground","Color",")",";","}","}"],"uuid":"85a71b5116dae4cf41325076a9e17bf4"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","string","<\/id>","<id>","group","Name","<\/id>","=","<id>","get","Scheduler","Group","Name","<\/id>","(","<id>","mailing","List","<\/id>",")",";","<id>","calendar","<\/id>","<id>","start","Date","<\/id>","=","<id>","calendar","Factory","Util","<\/id>",".","<id>","get","Calendar","<\/id>","(",")",";","<id>","trigger","<\/id>","<id>","trigger","<\/id>","=","<id>","trigger","Factory","Util","<\/id>",".","<id>","create","Trigger","<\/id>","(","<id>","group","Name","<\/id>",",","<id>","group","Name","<\/id>",",","<id>","start","Date","<\/id>",".","<id>","get","Time","<\/id>","(",")",",","<id>","mailing","List","<\/id>",".","<id>","get","In","Read","Interval","<\/id>","(",")",",","<id>","time","Unit","<\/id>",".","<id>","minute","<\/id>",")",";","<id>","mailing","List","Request","<\/id>","<id>","mailing","List","Request","<\/id>","=","new","<id>","mailing","List","Request","<\/id>","(",")",";","<id>","mailing","List","Request","<\/id>",".","<id>","set","Company","Id","<\/id>","(","<id>","mailing","List","<\/id>",".","<id>","get","Company","Id","<\/id>","(",")",")",";","<id>","mailing","List","Request","<\/id>",".","<id>","set","User","Id","<\/id>","(","<id>","mailing","List","<\/id>",".","<id>","get","User","Id","<\/id>","(",")",")",";","<id>","mailing","List","Request","<\/id>",".","<id>","set","Group","Id","<\/id>","(","<id>","mailing","List","<\/id>",".","<id>","get","Group","Id","<\/id>","(",")",")",";","<id>","mailing","List","Request","<\/id>",".","<id>","set","Category","Id","<\/id>","(","<id>","mailing","List","<\/id>",".","<id>","get","Category","Id","<\/id>","(",")",")",";","<id>","mailing","List","Request","<\/id>",".","<id>","set","In","Protocol","<\/id>","(","<id>","mailing","List","<\/id>",".","<id>","get","In","Protocol","<\/id>","(",")",")",";","<id>","mailing","List","Request","<\/id>",".","<id>","set","In","Server","Name","<\/id>","(","<id>","mailing","List","<\/id>",".","<id>","get","In","Server","Name","<\/id>","(",")",")",";","<id>","mailing","List","Request","<\/id>",".","<id>","set","In","Server","Port","<\/id>","(","<id>","mailing","List","<\/id>",".","<id>","get","In","Server","Port","<\/id>","(",")",")",";","<id>","mailing","List","Request","<\/id>",".","<id>","set","In","Use","Ssl","<\/id>","(","<id>","mailing","List","<\/id>",".","<id>","get","In","Use","Ssl","<\/id>","(",")",")",";","<id>","mailing","List","Request","<\/id>",".","<id>","set","In","User","Name","<\/id>","(","<id>","mailing","List","<\/id>",".","<id>","get","In","User","Name","<\/id>","(",")",")",";","<id>","mailing","List","Request","<\/id>",".","<id>","set","In","Password","<\/id>","(","<id>","mailing","List","<\/id>",".","<id>","get","In","Password","<\/id>","(",")",")",";","<id>","mailing","List","Request","<\/id>",".","<id>","set","Allow","Anonymous","<\/id>","(","<id>","mailing","List","<\/id>",".","<id>","get","Allow","Anonymous","<\/id>","(",")",")",";","<id>","scheduler","Engine","Helper","Util","<\/id>",".","<id>","schedule","<\/id>","(","<id>","trigger","<\/id>",",","<id>","storage","Type","<\/id>",".","<id>","persisted","<\/id>",",","null",",","<id>","destination","Names","<\/id>",".","<id>","message","Boards","Mailing","List","<\/id>",",","<id>","mailing","List","Request","<\/id>",",","0",")",";","}","<SENTENCE_END\/>"],"file_name":"MBMailingListLocalServiceImpl.java","formatted_lines":["{",""," String groupName = getSchedulerGroupName(mailingList);",""," Calendar startDate = CalendarFactoryUtil.getCalendar();",""," Trigger trigger = TriggerFactoryUtil.createTrigger("," groupName, groupName, startDate.getTime(),"," mailingList.getInReadInterval(), TimeUnit.MINUTE);",""," MailingListRequest mailingListRequest = new MailingListRequest();",""," mailingListRequest.setCompanyId(mailingList.getCompanyId());"," mailingListRequest.setUserId(mailingList.getUserId());"," mailingListRequest.setGroupId(mailingList.getGroupId());"," mailingListRequest.setCategoryId(mailingList.getCategoryId());"," mailingListRequest.setInProtocol(mailingList.getInProtocol());"," mailingListRequest.setInServerName(mailingList.getInServerName());"," mailingListRequest.setInServerPort(mailingList.getInServerPort());"," mailingListRequest.setInUseSSL(mailingList.getInUseSSL());"," mailingListRequest.setInUserName(mailingList.getInUserName());"," mailingListRequest.setInPassword(mailingList.getInPassword());"," mailingListRequest.setAllowAnonymous(mailingList.getAllowAnonymous());",""," SchedulerEngineHelperUtil.schedule("," trigger, StorageType.PERSISTED, null,"," DestinationNames.MESSAGE_BOARDS_MAILING_LIST, mailingListRequest,"," 0);","}"],"function_name":"scheduleMailingList","function_name_tokens":["schedule","mailing","list"],"id_body_hash":"7c829291001ba489f191206ed6f4ab60","id_same_identifier_list":[0,1,2,3,3,4,5,5,5,5,6,7,7,8,9,10,11,11,12,13,13,13,14,15,15,16,17,18,19,20,21,22,22,22,23,24,24,25,26,26,27,28,28,29,30,30,31,32,32,33,34,35,36,36,37,38,38,38,38,39,40,41,42,42,43,44,45,46,47,47,47,48,48,48,49,50,51,51,51,52,53,54,55,55,55,56,57,57,57,58,59,59,60,61,61,61,62,63,64,65,66,66,66,67,68,68,68,69,70,70,71,72,72,72,73,74,75,76,77,77,77,78,79,79,79,80,81,81,82,83,83,83,84,85,86,87,88,88,88,89,90,90,90,91,92,92,93,94,94,94,95,96,97,98,99,99,99,100,101,101,101,102,103,103,104,105,105,105,106,107,108,109,110,110,110,111,112,112,112,112,113,114,114,115,116,116,116,116,117,118,119,120,121,121,121,122,123,123,123,123,124,125,125,126,127,127,127,127,128,129,130,131,132,132,132,133,134,134,134,134,135,136,136,137,138,138,138,138,139,140,141,142,143,143,143,144,145,145,145,145,146,147,147,148,149,149,149,149,150,151,152,153,154,154,154,155,156,156,156,157,158,158,159,160,160,160,161,162,163,164,165,165,165,166,167,167,167,168,169,169,170,171,171,171,172,173,174,175,176,176,176,176,177,178,179,180,181,182,182,183,184,185,186,187,188,188,189,190,190,190,190,191,192,192,192,193,194,195,196,197,198],"option_correct":"scheduleMailingList","options":["testGetContentsVersions","addMailingListSubscriber","testNewJVM2","unscheduleMailingList","isSourceMailingList","setSubtype","scheduleMailingList"],"options_nlp":["test get contents versions","add mailing list subscriber","test new jvm 2","unschedule mailing list","is source mailing list","set subtype","schedule mailing list"],"options_random":["testGetContentsVersions","setSubtype","testNewJVM2"],"options_tfidf":["addMailingListSubscriber","isSourceMailingList","unscheduleMailingList"],"project_name":"liferay-portal","source_code_string":"protected void scheduleMailingList(MBMailingList mailingList)\n\t\tthrows PortalException {\n\n\t\tString groupName = getSchedulerGroupName(mailingList);\n\n\t\tCalendar startDate = CalendarFactoryUtil.getCalendar();\n\n\t\tTrigger trigger = TriggerFactoryUtil.createTrigger(\n\t\t\tgroupName, groupName, startDate.getTime(),\n\t\t\tmailingList.getInReadInterval(), TimeUnit.MINUTE);\n\n\t\tMailingListRequest mailingListRequest = new MailingListRequest();\n\n\t\tmailingListRequest.setCompanyId(mailingList.getCompanyId());\n\t\tmailingListRequest.setUserId(mailingList.getUserId());\n\t\tmailingListRequest.setGroupId(mailingList.getGroupId());\n\t\tmailingListRequest.setCategoryId(mailingList.getCategoryId());\n\t\tmailingListRequest.setInProtocol(mailingList.getInProtocol());\n\t\tmailingListRequest.setInServerName(mailingList.getInServerName());\n\t\tmailingListRequest.setInServerPort(mailingList.getInServerPort());\n\t\tmailingListRequest.setInUseSSL(mailingList.getInUseSSL());\n\t\tmailingListRequest.setInUserName(mailingList.getInUserName());\n\t\tmailingListRequest.setInPassword(mailingList.getInPassword());\n\t\tmailingListRequest.setAllowAnonymous(mailingList.getAllowAnonymous());\n\n\t\tSchedulerEngineHelperUtil.schedule(\n\t\t\ttrigger, StorageType.PERSISTED, null,\n\t\t\tDestinationNames.MESSAGE_BOARDS_MAILING_LIST, mailingListRequest,\n\t\t\t0);\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":2},{"index_id":2,"token_group":2,"text":"group","start_char":11,"line":2},{"index_id":3,"token_group":3,"text":"Name","start_char":16,"line":2},{"index_id":4,"token_group":3,"text":"=","start_char":21,"line":2},{"index_id":5,"token_group":4,"text":"get","start_char":23,"line":2},{"index_id":6,"token_group":5,"text":"Scheduler","start_char":26,"line":2},{"index_id":7,"token_group":5,"text":"Group","start_char":35,"line":2},{"index_id":8,"token_group":5,"text":"Name","start_char":40,"line":2},{"index_id":9,"token_group":5,"text":"(","start_char":44,"line":2},{"index_id":10,"token_group":6,"text":"mailing","start_char":45,"line":2},{"index_id":11,"token_group":7,"text":"List","start_char":52,"line":2},{"index_id":12,"token_group":7,"text":")","start_char":56,"line":2},{"index_id":13,"token_group":8,"text":";","start_char":57,"line":2},{"index_id":14,"token_group":9,"text":"calendar","start_char":4,"line":4},{"index_id":15,"token_group":10,"text":"start","start_char":13,"line":4},{"index_id":16,"token_group":11,"text":"Date","start_char":18,"line":4},{"index_id":17,"token_group":11,"text":"=","start_char":23,"line":4},{"index_id":18,"token_group":12,"text":"calendar","start_char":25,"line":4},{"index_id":19,"token_group":13,"text":"Factory","start_char":33,"line":4},{"index_id":20,"token_group":13,"text":"Util","start_char":40,"line":4},{"index_id":21,"token_group":13,"text":".","start_char":44,"line":4},{"index_id":22,"token_group":14,"text":"get","start_char":45,"line":4},{"index_id":23,"token_group":15,"text":"Calendar","start_char":48,"line":4},{"index_id":24,"token_group":15,"text":"(","start_char":56,"line":4},{"index_id":25,"token_group":16,"text":")","start_char":57,"line":4},{"index_id":26,"token_group":17,"text":";","start_char":58,"line":4},{"index_id":27,"token_group":18,"text":"trigger","start_char":4,"line":6},{"index_id":28,"token_group":19,"text":"trigger","start_char":12,"line":6},{"index_id":29,"token_group":20,"text":"=","start_char":20,"line":6},{"index_id":30,"token_group":21,"text":"trigger","start_char":22,"line":6},{"index_id":31,"token_group":22,"text":"Factory","start_char":29,"line":6},{"index_id":32,"token_group":22,"text":"Util","start_char":36,"line":6},{"index_id":33,"token_group":22,"text":".","start_char":40,"line":6},{"index_id":34,"token_group":23,"text":"create","start_char":41,"line":6},{"index_id":35,"token_group":24,"text":"Trigger","start_char":47,"line":6},{"index_id":36,"token_group":24,"text":"(","start_char":54,"line":6},{"index_id":37,"token_group":25,"text":"group","start_char":8,"line":7},{"index_id":38,"token_group":26,"text":"Name","start_char":13,"line":7},{"index_id":39,"token_group":26,"text":",","start_char":17,"line":7},{"index_id":40,"token_group":27,"text":"group","start_char":19,"line":7},{"index_id":41,"token_group":28,"text":"Name","start_char":24,"line":7},{"index_id":42,"token_group":28,"text":",","start_char":28,"line":7},{"index_id":43,"token_group":29,"text":"start","start_char":30,"line":7},{"index_id":44,"token_group":30,"text":"Date","start_char":35,"line":7},{"index_id":45,"token_group":30,"text":".","start_char":39,"line":7},{"index_id":46,"token_group":31,"text":"get","start_char":40,"line":7},{"index_id":47,"token_group":32,"text":"Time","start_char":43,"line":7},{"index_id":48,"token_group":32,"text":"(","start_char":47,"line":7},{"index_id":49,"token_group":33,"text":")","start_char":48,"line":7},{"index_id":50,"token_group":34,"text":",","start_char":49,"line":7},{"index_id":51,"token_group":35,"text":"mailing","start_char":8,"line":8},{"index_id":52,"token_group":36,"text":"List","start_char":15,"line":8},{"index_id":53,"token_group":36,"text":".","start_char":19,"line":8},{"index_id":54,"token_group":37,"text":"get","start_char":20,"line":8},{"index_id":55,"token_group":38,"text":"In","start_char":23,"line":8},{"index_id":56,"token_group":38,"text":"Read","start_char":25,"line":8},{"index_id":57,"token_group":38,"text":"Interval","start_char":29,"line":8},{"index_id":58,"token_group":38,"text":"(","start_char":37,"line":8},{"index_id":59,"token_group":39,"text":")","start_char":38,"line":8},{"index_id":60,"token_group":40,"text":",","start_char":39,"line":8},{"index_id":61,"token_group":41,"text":"time","start_char":41,"line":8},{"index_id":62,"token_group":42,"text":"Unit","start_char":45,"line":8},{"index_id":63,"token_group":42,"text":".","start_char":49,"line":8},{"index_id":64,"token_group":43,"text":"minute","start_char":50,"line":8},{"index_id":65,"token_group":44,"text":")","start_char":56,"line":8},{"index_id":66,"token_group":45,"text":";","start_char":57,"line":8},{"index_id":67,"token_group":46,"text":"mailing","start_char":4,"line":10},{"index_id":68,"token_group":47,"text":"List","start_char":11,"line":10},{"index_id":69,"token_group":47,"text":"Request","start_char":15,"line":10},{"index_id":70,"token_group":47,"text":"mailing","start_char":23,"line":10},{"index_id":71,"token_group":48,"text":"List","start_char":30,"line":10},{"index_id":72,"token_group":48,"text":"Request","start_char":34,"line":10},{"index_id":73,"token_group":48,"text":"=","start_char":42,"line":10},{"index_id":74,"token_group":49,"text":"new","start_char":44,"line":10},{"index_id":75,"token_group":50,"text":"mailing","start_char":48,"line":10},{"index_id":76,"token_group":51,"text":"List","start_char":55,"line":10},{"index_id":77,"token_group":51,"text":"Request","start_char":59,"line":10},{"index_id":78,"token_group":51,"text":"(","start_char":66,"line":10},{"index_id":79,"token_group":52,"text":")","start_char":67,"line":10},{"index_id":80,"token_group":53,"text":";","start_char":68,"line":10},{"index_id":81,"token_group":54,"text":"mailing","start_char":4,"line":12},{"index_id":82,"token_group":55,"text":"List","start_char":11,"line":12},{"index_id":83,"token_group":55,"text":"Request","start_char":15,"line":12},{"index_id":84,"token_group":55,"text":".","start_char":22,"line":12},{"index_id":85,"token_group":56,"text":"set","start_char":23,"line":12},{"index_id":86,"token_group":57,"text":"Company","start_char":26,"line":12},{"index_id":87,"token_group":57,"text":"Id","start_char":33,"line":12},{"index_id":88,"token_group":57,"text":"(","start_char":35,"line":12},{"index_id":89,"token_group":58,"text":"mailing","start_char":36,"line":12},{"index_id":90,"token_group":59,"text":"List","start_char":43,"line":12},{"index_id":91,"token_group":59,"text":".","start_char":47,"line":12},{"index_id":92,"token_group":60,"text":"get","start_char":48,"line":12},{"index_id":93,"token_group":61,"text":"Company","start_char":51,"line":12},{"index_id":94,"token_group":61,"text":"Id","start_char":58,"line":12},{"index_id":95,"token_group":61,"text":"(","start_char":60,"line":12},{"index_id":96,"token_group":62,"text":")","start_char":61,"line":12},{"index_id":97,"token_group":63,"text":")","start_char":62,"line":12},{"index_id":98,"token_group":64,"text":";","start_char":63,"line":12},{"index_id":99,"token_group":65,"text":"mailing","start_char":4,"line":13},{"index_id":100,"token_group":66,"text":"List","start_char":11,"line":13},{"index_id":101,"token_group":66,"text":"Request","start_char":15,"line":13},{"index_id":102,"token_group":66,"text":".","start_char":22,"line":13},{"index_id":103,"token_group":67,"text":"set","start_char":23,"line":13},{"index_id":104,"token_group":68,"text":"User","start_char":26,"line":13},{"index_id":105,"token_group":68,"text":"Id","start_char":30,"line":13},{"index_id":106,"token_group":68,"text":"(","start_char":32,"line":13},{"index_id":107,"token_group":69,"text":"mailing","start_char":33,"line":13},{"index_id":108,"token_group":70,"text":"List","start_char":40,"line":13},{"index_id":109,"token_group":70,"text":".","start_char":44,"line":13},{"index_id":110,"token_group":71,"text":"get","start_char":45,"line":13},{"index_id":111,"token_group":72,"text":"User","start_char":48,"line":13},{"index_id":112,"token_group":72,"text":"Id","start_char":52,"line":13},{"index_id":113,"token_group":72,"text":"(","start_char":54,"line":13},{"index_id":114,"token_group":73,"text":")","start_char":55,"line":13},{"index_id":115,"token_group":74,"text":")","start_char":56,"line":13},{"index_id":116,"token_group":75,"text":";","start_char":57,"line":13},{"index_id":117,"token_group":76,"text":"mailing","start_char":4,"line":14},{"index_id":118,"token_group":77,"text":"List","start_char":11,"line":14},{"index_id":119,"token_group":77,"text":"Request","start_char":15,"line":14},{"index_id":120,"token_group":77,"text":".","start_char":22,"line":14},{"index_id":121,"token_group":78,"text":"set","start_char":23,"line":14},{"index_id":122,"token_group":79,"text":"Group","start_char":26,"line":14},{"index_id":123,"token_group":79,"text":"Id","start_char":31,"line":14},{"index_id":124,"token_group":79,"text":"(","start_char":33,"line":14},{"index_id":125,"token_group":80,"text":"mailing","start_char":34,"line":14},{"index_id":126,"token_group":81,"text":"List","start_char":41,"line":14},{"index_id":127,"token_group":81,"text":".","start_char":45,"line":14},{"index_id":128,"token_group":82,"text":"get","start_char":46,"line":14},{"index_id":129,"token_group":83,"text":"Group","start_char":49,"line":14},{"index_id":130,"token_group":83,"text":"Id","start_char":54,"line":14},{"index_id":131,"token_group":83,"text":"(","start_char":56,"line":14},{"index_id":132,"token_group":84,"text":")","start_char":57,"line":14},{"index_id":133,"token_group":85,"text":")","start_char":58,"line":14},{"index_id":134,"token_group":86,"text":";","start_char":59,"line":14},{"index_id":135,"token_group":87,"text":"mailing","start_char":4,"line":15},{"index_id":136,"token_group":88,"text":"List","start_char":11,"line":15},{"index_id":137,"token_group":88,"text":"Request","start_char":15,"line":15},{"index_id":138,"token_group":88,"text":".","start_char":22,"line":15},{"index_id":139,"token_group":89,"text":"set","start_char":23,"line":15},{"index_id":140,"token_group":90,"text":"Category","start_char":26,"line":15},{"index_id":141,"token_group":90,"text":"Id","start_char":34,"line":15},{"index_id":142,"token_group":90,"text":"(","start_char":36,"line":15},{"index_id":143,"token_group":91,"text":"mailing","start_char":37,"line":15},{"index_id":144,"token_group":92,"text":"List","start_char":44,"line":15},{"index_id":145,"token_group":92,"text":".","start_char":48,"line":15},{"index_id":146,"token_group":93,"text":"get","start_char":49,"line":15},{"index_id":147,"token_group":94,"text":"Category","start_char":52,"line":15},{"index_id":148,"token_group":94,"text":"Id","start_char":60,"line":15},{"index_id":149,"token_group":94,"text":"(","start_char":62,"line":15},{"index_id":150,"token_group":95,"text":")","start_char":63,"line":15},{"index_id":151,"token_group":96,"text":")","start_char":64,"line":15},{"index_id":152,"token_group":97,"text":";","start_char":65,"line":15},{"index_id":153,"token_group":98,"text":"mailing","start_char":4,"line":16},{"index_id":154,"token_group":99,"text":"List","start_char":11,"line":16},{"index_id":155,"token_group":99,"text":"Request","start_char":15,"line":16},{"index_id":156,"token_group":99,"text":".","start_char":22,"line":16},{"index_id":157,"token_group":100,"text":"set","start_char":23,"line":16},{"index_id":158,"token_group":101,"text":"In","start_char":26,"line":16},{"index_id":159,"token_group":101,"text":"Protocol","start_char":28,"line":16},{"index_id":160,"token_group":101,"text":"(","start_char":36,"line":16},{"index_id":161,"token_group":102,"text":"mailing","start_char":37,"line":16},{"index_id":162,"token_group":103,"text":"List","start_char":44,"line":16},{"index_id":163,"token_group":103,"text":".","start_char":48,"line":16},{"index_id":164,"token_group":104,"text":"get","start_char":49,"line":16},{"index_id":165,"token_group":105,"text":"In","start_char":52,"line":16},{"index_id":166,"token_group":105,"text":"Protocol","start_char":54,"line":16},{"index_id":167,"token_group":105,"text":"(","start_char":62,"line":16},{"index_id":168,"token_group":106,"text":")","start_char":63,"line":16},{"index_id":169,"token_group":107,"text":")","start_char":64,"line":16},{"index_id":170,"token_group":108,"text":";","start_char":65,"line":16},{"index_id":171,"token_group":109,"text":"mailing","start_char":4,"line":17},{"index_id":172,"token_group":110,"text":"List","start_char":11,"line":17},{"index_id":173,"token_group":110,"text":"Request","start_char":15,"line":17},{"index_id":174,"token_group":110,"text":".","start_char":22,"line":17},{"index_id":175,"token_group":111,"text":"set","start_char":23,"line":17},{"index_id":176,"token_group":112,"text":"In","start_char":26,"line":17},{"index_id":177,"token_group":112,"text":"Server","start_char":28,"line":17},{"index_id":178,"token_group":112,"text":"Name","start_char":34,"line":17},{"index_id":179,"token_group":112,"text":"(","start_char":38,"line":17},{"index_id":180,"token_group":113,"text":"mailing","start_char":39,"line":17},{"index_id":181,"token_group":114,"text":"List","start_char":46,"line":17},{"index_id":182,"token_group":114,"text":".","start_char":50,"line":17},{"index_id":183,"token_group":115,"text":"get","start_char":51,"line":17},{"index_id":184,"token_group":116,"text":"In","start_char":54,"line":17},{"index_id":185,"token_group":116,"text":"Server","start_char":56,"line":17},{"index_id":186,"token_group":116,"text":"Name","start_char":62,"line":17},{"index_id":187,"token_group":116,"text":"(","start_char":66,"line":17},{"index_id":188,"token_group":117,"text":")","start_char":67,"line":17},{"index_id":189,"token_group":118,"text":")","start_char":68,"line":17},{"index_id":190,"token_group":119,"text":";","start_char":69,"line":17},{"index_id":191,"token_group":120,"text":"mailing","start_char":4,"line":18},{"index_id":192,"token_group":121,"text":"List","start_char":11,"line":18},{"index_id":193,"token_group":121,"text":"Request","start_char":15,"line":18},{"index_id":194,"token_group":121,"text":".","start_char":22,"line":18},{"index_id":195,"token_group":122,"text":"set","start_char":23,"line":18},{"index_id":196,"token_group":123,"text":"In","start_char":26,"line":18},{"index_id":197,"token_group":123,"text":"Server","start_char":28,"line":18},{"index_id":198,"token_group":123,"text":"Port","start_char":34,"line":18},{"index_id":199,"token_group":123,"text":"(","start_char":38,"line":18},{"index_id":200,"token_group":124,"text":"mailing","start_char":39,"line":18},{"index_id":201,"token_group":125,"text":"List","start_char":46,"line":18},{"index_id":202,"token_group":125,"text":".","start_char":50,"line":18},{"index_id":203,"token_group":126,"text":"get","start_char":51,"line":18},{"index_id":204,"token_group":127,"text":"In","start_char":54,"line":18},{"index_id":205,"token_group":127,"text":"Server","start_char":56,"line":18},{"index_id":206,"token_group":127,"text":"Port","start_char":62,"line":18},{"index_id":207,"token_group":127,"text":"(","start_char":66,"line":18},{"index_id":208,"token_group":128,"text":")","start_char":67,"line":18},{"index_id":209,"token_group":129,"text":")","start_char":68,"line":18},{"index_id":210,"token_group":130,"text":";","start_char":69,"line":18},{"index_id":211,"token_group":131,"text":"mailing","start_char":4,"line":19},{"index_id":212,"token_group":132,"text":"List","start_char":11,"line":19},{"index_id":213,"token_group":132,"text":"Request","start_char":15,"line":19},{"index_id":214,"token_group":132,"text":".","start_char":22,"line":19},{"index_id":215,"token_group":133,"text":"set","start_char":23,"line":19},{"index_id":216,"token_group":134,"text":"In","start_char":26,"line":19},{"index_id":217,"token_group":134,"text":"Use","start_char":28,"line":19},{"index_id":218,"token_group":134,"text":"Ssl","start_char":31,"line":19},{"index_id":219,"token_group":134,"text":"(","start_char":34,"line":19},{"index_id":220,"token_group":135,"text":"mailing","start_char":35,"line":19},{"index_id":221,"token_group":136,"text":"List","start_char":42,"line":19},{"index_id":222,"token_group":136,"text":".","start_char":46,"line":19},{"index_id":223,"token_group":137,"text":"get","start_char":47,"line":19},{"index_id":224,"token_group":138,"text":"In","start_char":50,"line":19},{"index_id":225,"token_group":138,"text":"Use","start_char":52,"line":19},{"index_id":226,"token_group":138,"text":"Ssl","start_char":55,"line":19},{"index_id":227,"token_group":138,"text":"(","start_char":58,"line":19},{"index_id":228,"token_group":139,"text":")","start_char":59,"line":19},{"index_id":229,"token_group":140,"text":")","start_char":60,"line":19},{"index_id":230,"token_group":141,"text":";","start_char":61,"line":19},{"index_id":231,"token_group":142,"text":"mailing","start_char":4,"line":20},{"index_id":232,"token_group":143,"text":"List","start_char":11,"line":20},{"index_id":233,"token_group":143,"text":"Request","start_char":15,"line":20},{"index_id":234,"token_group":143,"text":".","start_char":22,"line":20},{"index_id":235,"token_group":144,"text":"set","start_char":23,"line":20},{"index_id":236,"token_group":145,"text":"In","start_char":26,"line":20},{"index_id":237,"token_group":145,"text":"User","start_char":28,"line":20},{"index_id":238,"token_group":145,"text":"Name","start_char":32,"line":20},{"index_id":239,"token_group":145,"text":"(","start_char":36,"line":20},{"index_id":240,"token_group":146,"text":"mailing","start_char":37,"line":20},{"index_id":241,"token_group":147,"text":"List","start_char":44,"line":20},{"index_id":242,"token_group":147,"text":".","start_char":48,"line":20},{"index_id":243,"token_group":148,"text":"get","start_char":49,"line":20},{"index_id":244,"token_group":149,"text":"In","start_char":52,"line":20},{"index_id":245,"token_group":149,"text":"User","start_char":54,"line":20},{"index_id":246,"token_group":149,"text":"Name","start_char":58,"line":20},{"index_id":247,"token_group":149,"text":"(","start_char":62,"line":20},{"index_id":248,"token_group":150,"text":")","start_char":63,"line":20},{"index_id":249,"token_group":151,"text":")","start_char":64,"line":20},{"index_id":250,"token_group":152,"text":";","start_char":65,"line":20},{"index_id":251,"token_group":153,"text":"mailing","start_char":4,"line":21},{"index_id":252,"token_group":154,"text":"List","start_char":11,"line":21},{"index_id":253,"token_group":154,"text":"Request","start_char":15,"line":21},{"index_id":254,"token_group":154,"text":".","start_char":22,"line":21},{"index_id":255,"token_group":155,"text":"set","start_char":23,"line":21},{"index_id":256,"token_group":156,"text":"In","start_char":26,"line":21},{"index_id":257,"token_group":156,"text":"Password","start_char":28,"line":21},{"index_id":258,"token_group":156,"text":"(","start_char":36,"line":21},{"index_id":259,"token_group":157,"text":"mailing","start_char":37,"line":21},{"index_id":260,"token_group":158,"text":"List","start_char":44,"line":21},{"index_id":261,"token_group":158,"text":".","start_char":48,"line":21},{"index_id":262,"token_group":159,"text":"get","start_char":49,"line":21},{"index_id":263,"token_group":160,"text":"In","start_char":52,"line":21},{"index_id":264,"token_group":160,"text":"Password","start_char":54,"line":21},{"index_id":265,"token_group":160,"text":"(","start_char":62,"line":21},{"index_id":266,"token_group":161,"text":")","start_char":63,"line":21},{"index_id":267,"token_group":162,"text":")","start_char":64,"line":21},{"index_id":268,"token_group":163,"text":";","start_char":65,"line":21},{"index_id":269,"token_group":164,"text":"mailing","start_char":4,"line":22},{"index_id":270,"token_group":165,"text":"List","start_char":11,"line":22},{"index_id":271,"token_group":165,"text":"Request","start_char":15,"line":22},{"index_id":272,"token_group":165,"text":".","start_char":22,"line":22},{"index_id":273,"token_group":166,"text":"set","start_char":23,"line":22},{"index_id":274,"token_group":167,"text":"Allow","start_char":26,"line":22},{"index_id":275,"token_group":167,"text":"Anonymous","start_char":31,"line":22},{"index_id":276,"token_group":167,"text":"(","start_char":40,"line":22},{"index_id":277,"token_group":168,"text":"mailing","start_char":41,"line":22},{"index_id":278,"token_group":169,"text":"List","start_char":48,"line":22},{"index_id":279,"token_group":169,"text":".","start_char":52,"line":22},{"index_id":280,"token_group":170,"text":"get","start_char":53,"line":22},{"index_id":281,"token_group":171,"text":"Allow","start_char":56,"line":22},{"index_id":282,"token_group":171,"text":"Anonymous","start_char":61,"line":22},{"index_id":283,"token_group":171,"text":"(","start_char":70,"line":22},{"index_id":284,"token_group":172,"text":")","start_char":71,"line":22},{"index_id":285,"token_group":173,"text":")","start_char":72,"line":22},{"index_id":286,"token_group":174,"text":";","start_char":73,"line":22},{"index_id":287,"token_group":175,"text":"scheduler","start_char":4,"line":24},{"index_id":288,"token_group":176,"text":"Engine","start_char":13,"line":24},{"index_id":289,"token_group":176,"text":"Helper","start_char":19,"line":24},{"index_id":290,"token_group":176,"text":"Util","start_char":25,"line":24},{"index_id":291,"token_group":176,"text":".","start_char":29,"line":24},{"index_id":292,"token_group":177,"text":"schedule","start_char":30,"line":24},{"index_id":293,"token_group":178,"text":"(","start_char":38,"line":24},{"index_id":294,"token_group":179,"text":"trigger","start_char":8,"line":25},{"index_id":295,"token_group":180,"text":",","start_char":15,"line":25},{"index_id":296,"token_group":181,"text":"storage","start_char":17,"line":25},{"index_id":297,"token_group":182,"text":"Type","start_char":24,"line":25},{"index_id":298,"token_group":182,"text":".","start_char":28,"line":25},{"index_id":299,"token_group":183,"text":"persisted","start_char":29,"line":25},{"index_id":300,"token_group":184,"text":",","start_char":38,"line":25},{"index_id":301,"token_group":185,"text":"null","start_char":40,"line":25},{"index_id":302,"token_group":186,"text":",","start_char":44,"line":25},{"index_id":303,"token_group":187,"text":"destination","start_char":8,"line":26},{"index_id":304,"token_group":188,"text":"Names","start_char":19,"line":26},{"index_id":305,"token_group":188,"text":".","start_char":24,"line":26},{"index_id":306,"token_group":189,"text":"message","start_char":25,"line":26},{"index_id":307,"token_group":190,"text":"Boards","start_char":33,"line":26},{"index_id":308,"token_group":190,"text":"Mailing","start_char":40,"line":26},{"index_id":309,"token_group":190,"text":"List","start_char":48,"line":26},{"index_id":310,"token_group":190,"text":",","start_char":52,"line":26},{"index_id":311,"token_group":191,"text":"mailing","start_char":54,"line":26},{"index_id":312,"token_group":192,"text":"List","start_char":61,"line":26},{"index_id":313,"token_group":192,"text":"Request","start_char":65,"line":26},{"index_id":314,"token_group":192,"text":",","start_char":72,"line":26},{"index_id":315,"token_group":193,"text":"0","start_char":8,"line":27},{"index_id":316,"token_group":194,"text":")","start_char":9,"line":27},{"index_id":317,"token_group":195,"text":";","start_char":10,"line":27},{"index_id":318,"token_group":196,"text":"}","start_char":0,"line":28}],"tokens_list":["{","string","group","Name","=","get","Scheduler","Group","Name","(","mailing","List",")",";","calendar","start","Date","=","calendar","Factory","Util",".","get","Calendar","(",")",";","trigger","trigger","=","trigger","Factory","Util",".","create","Trigger","(","group","Name",",","group","Name",",","start","Date",".","get","Time","(",")",",","mailing","List",".","get","In","Read","Interval","(",")",",","time","Unit",".","minute",")",";","mailing","List","Request","mailing","List","Request","=","new","mailing","List","Request","(",")",";","mailing","List","Request",".","set","Company","Id","(","mailing","List",".","get","Company","Id","(",")",")",";","mailing","List","Request",".","set","User","Id","(","mailing","List",".","get","User","Id","(",")",")",";","mailing","List","Request",".","set","Group","Id","(","mailing","List",".","get","Group","Id","(",")",")",";","mailing","List","Request",".","set","Category","Id","(","mailing","List",".","get","Category","Id","(",")",")",";","mailing","List","Request",".","set","In","Protocol","(","mailing","List",".","get","In","Protocol","(",")",")",";","mailing","List","Request",".","set","In","Server","Name","(","mailing","List",".","get","In","Server","Name","(",")",")",";","mailing","List","Request",".","set","In","Server","Port","(","mailing","List",".","get","In","Server","Port","(",")",")",";","mailing","List","Request",".","set","In","Use","Ssl","(","mailing","List",".","get","In","Use","Ssl","(",")",")",";","mailing","List","Request",".","set","In","User","Name","(","mailing","List",".","get","In","User","Name","(",")",")",";","mailing","List","Request",".","set","In","Password","(","mailing","List",".","get","In","Password","(",")",")",";","mailing","List","Request",".","set","Allow","Anonymous","(","mailing","List",".","get","Allow","Anonymous","(",")",")",";","scheduler","Engine","Helper","Util",".","schedule","(","trigger",",","storage","Type",".","persisted",",","null",",","destination","Names",".","message","Boards","Mailing","List",",","mailing","List","Request",",","0",")",";","}"],"uuid":"1d4ed959924b10edaf92f5b061967862"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","get","Registry","Value","<\/id>","(",")",".","<id>","set","Value","<\/id>","(","false",")",";","}","<SENTENCE_END\/>"],"file_name":"ClassFilesIndexFeature.java","formatted_lines":["{"," getRegistryValue().setValue(false);","}"],"function_name":"disable","function_name_tokens":["disable"],"id_body_hash":"f301473ad4cffc23ce4fb896fad807ca","id_same_identifier_list":[0,1,2,2,2,3,4,5,6,6,7,8,9,10,11,12],"option_correct":"disable","options":["disable","isAnimationEnabled","zzScanError","testPrimitiveComparison","testInference3","disableLink","testDisableInstrumenting"],"options_nlp":["disable","is animation enabled","zz scan error","test primitive comparison","test inference 3","disable link","test disable instrumenting"],"options_random":["testInference3","isAnimationEnabled","testPrimitiveComparison"],"options_tfidf":["disableLink","zzScanError","testDisableInstrumenting"],"project_name":"intellij-community","source_code_string":"public void disable() {\n getRegistryValue().setValue(false);\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"get","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"Registry","start_char":7,"line":1},{"index_id":3,"token_group":2,"text":"Value","start_char":15,"line":1},{"index_id":4,"token_group":2,"text":"(","start_char":20,"line":1},{"index_id":5,"token_group":3,"text":")","start_char":21,"line":1},{"index_id":6,"token_group":4,"text":".","start_char":22,"line":1},{"index_id":7,"token_group":5,"text":"set","start_char":23,"line":1},{"index_id":8,"token_group":6,"text":"Value","start_char":26,"line":1},{"index_id":9,"token_group":6,"text":"(","start_char":31,"line":1},{"index_id":10,"token_group":7,"text":"false","start_char":32,"line":1},{"index_id":11,"token_group":8,"text":")","start_char":37,"line":1},{"index_id":12,"token_group":9,"text":";","start_char":38,"line":1},{"index_id":13,"token_group":10,"text":"}","start_char":0,"line":2}],"tokens_list":["{","get","Registry","Value","(",")",".","set","Value","(","false",")",";","}"],"uuid":"cdc9c1a6e5afe00716cdac8da631c7be"},{"cap_original_tokens":["<SENTENCE_START>","{","if","(","<id>","extra","<\/id>","==","null",")","{","return",";","}","for","(","<id>","map","<\/id>",".","<id>","entry","<\/id>","<","<id>","string","<\/id>",",","?",">","<id>","entry","<\/id>",":","<id>","extra","<\/id>",".","<id>","entry","Set","<\/id>","(",")",")","{","<id>","writer","<\/id>",".","<id>","attribute","<\/id>","(","<id>","entry","<\/id>",".","<id>","get","Key","<\/id>","(",")",",","<id>","entry","<\/id>",".","<id>","get","Value","<\/id>","(",")",".","<id>","to","String","<\/id>","(",")",")",";","}","}","<SENTENCE_END\/>"],"file_name":"IvyXmlModuleDescriptorWriter.java","formatted_lines":["{"," if (extra == null)"," {"," return;"," }"," for (Map.Entry < String, ? > entry : extra.entrySet())"," {"," writer.attribute(entry.getKey(), entry.getValue().toString());"," }","}"],"function_name":"printExtraAttributes","function_name_tokens":["print","extra","attributes"],"id_body_hash":"0b95170820f3662c168c02d403bd7765","id_same_identifier_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,43,44,45,46,47,47,48,49,50,51,52,53,54],"option_correct":"printExtraAttributes","options":["getOutputType","setExported","testSecondSearchBlank","print","printDependency","toAttributes","printExtraAttributes"],"options_nlp":["get output type","set exported","test second search blank","print","print dependency","to attributes","print extra attributes"],"options_random":["getOutputType","setExported","testSecondSearchBlank"],"options_tfidf":["print","toAttributes","printDependency"],"project_name":"gradle","source_code_string":"private static void printExtraAttributes(Map<String, ?> extra, SimpleXmlWriter writer) throws IOException {\n if (extra == null) {\n return;\n }\n for (Map.Entry<String, ?> entry : extra.entrySet()) {\n writer.attribute(entry.getKey(), entry.getValue().toString());\n }\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"if","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"(","start_char":7,"line":1},{"index_id":3,"token_group":3,"text":"extra","start_char":8,"line":1},{"index_id":4,"token_group":4,"text":"==","start_char":14,"line":1},{"index_id":5,"token_group":5,"text":"null","start_char":17,"line":1},{"index_id":6,"token_group":6,"text":")","start_char":21,"line":1},{"index_id":7,"token_group":7,"text":"{","start_char":4,"line":2},{"index_id":8,"token_group":8,"text":"return","start_char":8,"line":3},{"index_id":9,"token_group":9,"text":";","start_char":14,"line":3},{"index_id":10,"token_group":10,"text":"}","start_char":4,"line":4},{"index_id":11,"token_group":11,"text":"for","start_char":4,"line":5},{"index_id":12,"token_group":12,"text":"(","start_char":8,"line":5},{"index_id":13,"token_group":13,"text":"map","start_char":9,"line":5},{"index_id":14,"token_group":14,"text":".","start_char":12,"line":5},{"index_id":15,"token_group":15,"text":"entry","start_char":13,"line":5},{"index_id":16,"token_group":16,"text":"<","start_char":19,"line":5},{"index_id":17,"token_group":17,"text":"string","start_char":21,"line":5},{"index_id":18,"token_group":18,"text":",","start_char":27,"line":5},{"index_id":19,"token_group":19,"text":"?","start_char":29,"line":5},{"index_id":20,"token_group":20,"text":">","start_char":31,"line":5},{"index_id":21,"token_group":21,"text":"entry","start_char":33,"line":5},{"index_id":22,"token_group":22,"text":":","start_char":39,"line":5},{"index_id":23,"token_group":23,"text":"extra","start_char":41,"line":5},{"index_id":24,"token_group":24,"text":".","start_char":46,"line":5},{"index_id":25,"token_group":25,"text":"entry","start_char":47,"line":5},{"index_id":26,"token_group":26,"text":"Set","start_char":52,"line":5},{"index_id":27,"token_group":26,"text":"(","start_char":55,"line":5},{"index_id":28,"token_group":27,"text":")","start_char":56,"line":5},{"index_id":29,"token_group":28,"text":")","start_char":57,"line":5},{"index_id":30,"token_group":29,"text":"{","start_char":4,"line":6},{"index_id":31,"token_group":30,"text":"writer","start_char":8,"line":7},{"index_id":32,"token_group":31,"text":".","start_char":14,"line":7},{"index_id":33,"token_group":32,"text":"attribute","start_char":15,"line":7},{"index_id":34,"token_group":33,"text":"(","start_char":24,"line":7},{"index_id":35,"token_group":34,"text":"entry","start_char":25,"line":7},{"index_id":36,"token_group":35,"text":".","start_char":30,"line":7},{"index_id":37,"token_group":36,"text":"get","start_char":31,"line":7},{"index_id":38,"token_group":37,"text":"Key","start_char":34,"line":7},{"index_id":39,"token_group":37,"text":"(","start_char":37,"line":7},{"index_id":40,"token_group":38,"text":")","start_char":38,"line":7},{"index_id":41,"token_group":39,"text":",","start_char":39,"line":7},{"index_id":42,"token_group":40,"text":"entry","start_char":41,"line":7},{"index_id":43,"token_group":41,"text":".","start_char":46,"line":7},{"index_id":44,"token_group":42,"text":"get","start_char":47,"line":7},{"index_id":45,"token_group":43,"text":"Value","start_char":50,"line":7},{"index_id":46,"token_group":43,"text":"(","start_char":55,"line":7},{"index_id":47,"token_group":44,"text":")","start_char":56,"line":7},{"index_id":48,"token_group":45,"text":".","start_char":57,"line":7},{"index_id":49,"token_group":46,"text":"to","start_char":58,"line":7},{"index_id":50,"token_group":47,"text":"String","start_char":60,"line":7},{"index_id":51,"token_group":47,"text":"(","start_char":66,"line":7},{"index_id":52,"token_group":48,"text":")","start_char":67,"line":7},{"index_id":53,"token_group":49,"text":")","start_char":68,"line":7},{"index_id":54,"token_group":50,"text":";","start_char":69,"line":7},{"index_id":55,"token_group":51,"text":"}","start_char":4,"line":8},{"index_id":56,"token_group":52,"text":"}","start_char":0,"line":9}],"tokens_list":["{","if","(","extra","==","null",")","{","return",";","}","for","(","map",".","entry","<","string",",","?",">","entry",":","extra",".","entry","Set","(",")",")","{","writer",".","attribute","(","entry",".","get","Key","(",")",",","entry",".","get","Value","(",")",".","to","String","(",")",")",";","}","}"],"uuid":"98ee56f22a4678e8f93608acce5660ee"},{"cap_original_tokens":["<SENTENCE_START>","{","this",".","<id>","subscription","Local","Service","<\/id>","=","<id>","subscription","Local","Service","<\/id>",";","}","<SENTENCE_END\/>"],"file_name":"MBThreadLocalServiceBaseImpl.java","formatted_lines":["{"," this.subscriptionLocalService = subscriptionLocalService;","}"],"function_name":"setSubscriptionLocalService","function_name_tokens":["set","subscription","local","service"],"id_body_hash":"0c1132148b45423a76daa25dfdc26ae1","id_same_identifier_list":[0,1,2,3,4,4,4,5,6,6,6,7,8,9],"option_correct":"setSubscriptionLocalService","options":["getSubscriptionLocalService","validateLayout","setSubscriptionLocalService","setLayoutSetLocalService","getJavaFileName","setLayoutLocalService","testCountByLayoutSetBranchId"],"options_nlp":["get subscription local service","validate layout","set subscription local service","set layout set local service","get java file name","set layout local service","test count by layout set branch id"],"options_random":["getJavaFileName","validateLayout","testCountByLayoutSetBranchId"],"options_tfidf":["getSubscriptionLocalService","setLayoutSetLocalService","setLayoutLocalService"],"project_name":"liferay-portal","source_code_string":"public void setSubscriptionLocalService(\n\t\tcom.liferay.portal.service.SubscriptionLocalService subscriptionLocalService) {\n\t\tthis.subscriptionLocalService = subscriptionLocalService;\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":"subscription","start_char":9,"line":1},{"index_id":4,"token_group":4,"text":"Local","start_char":21,"line":1},{"index_id":5,"token_group":4,"text":"Service","start_char":26,"line":1},{"index_id":6,"token_group":4,"text":"=","start_char":34,"line":1},{"index_id":7,"token_group":5,"text":"subscription","start_char":36,"line":1},{"index_id":8,"token_group":6,"text":"Local","start_char":48,"line":1},{"index_id":9,"token_group":6,"text":"Service","start_char":53,"line":1},{"index_id":10,"token_group":6,"text":";","start_char":60,"line":1},{"index_id":11,"token_group":7,"text":"}","start_char":0,"line":2}],"tokens_list":["{","this",".","subscription","Local","Service","=","subscription","Local","Service",";","}"],"uuid":"744853021dbb2ce7f4c187be4497a131"},{"cap_original_tokens":["<SENTENCE_START>","{","if","(","<id>","my","Current","Row","<\/id>","==","null",")","{","<id>","my","Current","Row","<\/id>","=","new","<id>","array","List","<\/id>","<","<id>","diff","Fragment","<\/id>",">","(",")",";","<id>","my","Rows","<\/id>",".","<id>","add","<\/id>","(","<id>","my","Current","Row","<\/id>",")",";","}","}","<SENTENCE_END\/>"],"file_name":"List2D.java","formatted_lines":["{"," if (myCurrentRow == null)"," {"," myCurrentRow = new ArrayList<DiffFragment>();"," myRows.add(myCurrentRow);"," }","}"],"function_name":"ensureRowExists","function_name_tokens":["ensure","row","exists"],"id_body_hash":"7b5c5b8dabf6e48efd94996a6af24ad2","id_same_identifier_list":[0,1,2,3,4,4,4,5,6,7,8,9,9,9,10,11,12,12,13,14,14,15,16,17,18,19,19,20,21,22,23,23,23,24,25,26,27,28],"option_correct":"ensureRowExists","options":["ensureRowExists","exists","markEverythingDirty","isSearchInLocationString","ensureToolWindowExists","ensureNamespaceExists","loadCommittedChanges"],"options_nlp":["ensure row exists","exists","mark everything dirty","is search in location string","ensure tool window exists","ensure namespace exists","load committed changes"],"options_random":["markEverythingDirty","loadCommittedChanges","isSearchInLocationString"],"options_tfidf":["ensureNamespaceExists","ensureToolWindowExists","exists"],"project_name":"intellij-community","source_code_string":"private void ensureRowExists() {\n if (myCurrentRow == null) {\n myCurrentRow = new ArrayList<DiffFragment>();\n myRows.add(myCurrentRow);\n }\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"if","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"(","start_char":7,"line":1},{"index_id":3,"token_group":3,"text":"my","start_char":8,"line":1},{"index_id":4,"token_group":4,"text":"Current","start_char":10,"line":1},{"index_id":5,"token_group":4,"text":"Row","start_char":17,"line":1},{"index_id":6,"token_group":4,"text":"==","start_char":21,"line":1},{"index_id":7,"token_group":5,"text":"null","start_char":24,"line":1},{"index_id":8,"token_group":6,"text":")","start_char":28,"line":1},{"index_id":9,"token_group":7,"text":"{","start_char":4,"line":2},{"index_id":10,"token_group":8,"text":"my","start_char":8,"line":3},{"index_id":11,"token_group":9,"text":"Current","start_char":10,"line":3},{"index_id":12,"token_group":9,"text":"Row","start_char":17,"line":3},{"index_id":13,"token_group":9,"text":"=","start_char":21,"line":3},{"index_id":14,"token_group":10,"text":"new","start_char":23,"line":3},{"index_id":15,"token_group":11,"text":"array","start_char":27,"line":3},{"index_id":16,"token_group":12,"text":"List","start_char":32,"line":3},{"index_id":17,"token_group":12,"text":"<","start_char":36,"line":3},{"index_id":18,"token_group":13,"text":"diff","start_char":37,"line":3},{"index_id":19,"token_group":14,"text":"Fragment","start_char":41,"line":3},{"index_id":20,"token_group":14,"text":">","start_char":49,"line":3},{"index_id":21,"token_group":15,"text":"(","start_char":50,"line":3},{"index_id":22,"token_group":16,"text":")","start_char":51,"line":3},{"index_id":23,"token_group":17,"text":";","start_char":52,"line":3},{"index_id":24,"token_group":18,"text":"my","start_char":8,"line":4},{"index_id":25,"token_group":19,"text":"Rows","start_char":10,"line":4},{"index_id":26,"token_group":19,"text":".","start_char":14,"line":4},{"index_id":27,"token_group":20,"text":"add","start_char":15,"line":4},{"index_id":28,"token_group":21,"text":"(","start_char":18,"line":4},{"index_id":29,"token_group":22,"text":"my","start_char":19,"line":4},{"index_id":30,"token_group":23,"text":"Current","start_char":21,"line":4},{"index_id":31,"token_group":23,"text":"Row","start_char":28,"line":4},{"index_id":32,"token_group":23,"text":")","start_char":31,"line":4},{"index_id":33,"token_group":24,"text":";","start_char":32,"line":4},{"index_id":34,"token_group":25,"text":"}","start_char":4,"line":5},{"index_id":35,"token_group":26,"text":"}","start_char":0,"line":6}],"tokens_list":["{","if","(","my","Current","Row","==","null",")","{","my","Current","Row","=","new","array","List","<","diff","Fragment",">","(",")",";","my","Rows",".","add","(","my","Current","Row",")",";","}","}"],"uuid":"1fe01a8a69668715f95be3a0d68d6396"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","version","<\/id>","<id>","version","<\/id>","=","<id>","version","Utils","<\/id>",".","<id>","random","Version","Between","<\/id>","(","<id>","random","<\/id>","(",")",",","<id>","version","<\/id>",".","<id>","v","2","0","0","<\/id>",",","<id>","version","<\/id>",".","<id>","current","<\/id>",")",";","<id>","settings","<\/id>","<id>","settings","<\/id>","=","<id>","settings","<\/id>",".","<id>","settings","Builder","<\/id>","(",")",".","<id>","put","<\/id>","(","<id>","index","Meta","Data","<\/id>",".","<id>","setting","Version","Created","<\/id>",",","<id>","version","<\/id>",")",".","<id>","build","<\/id>","(",")",";","double","<id>","lat","<\/id>","=","40.720611",";","double","<id>","lon","<\/id>","=","-","73.998776",";","<id>","x","Content","Builder","<\/id>","<id>","mapping","<\/id>","=","<id>","json","X","Content","<\/id>",".","<id>","content","Builder","<\/id>","(",")",".","<id>","start","Object","<\/id>","(",")",".","<id>","start","Object","<\/id>","(","\"location\"",")",".","<id>","start","Object","<\/id>","(","\"properties\"",")",".","<id>","start","Object","<\/id>","(","\"pin\"",")",".","<id>","field","<\/id>","(","\"type\"",",","\"geo_point\"",")",";","if","(","<id>","version","<\/id>",".","<id>","before","<\/id>","(","<id>","version","<\/id>",".","<id>","v","2","2","0","<\/id>",")",")","{","<id>","mapping","<\/id>",".","<id>","field","<\/id>","(","\"lat_lon\"",",","true",")",";","}","<id>","mapping","<\/id>",".","<id>","end","Object","<\/id>","(",")",".","<id>","end","Object","<\/id>","(",")",".","<id>","end","Object","<\/id>","(",")",".","<id>","end","Object","<\/id>","(",")",";","<id>","x","Content","Builder","<\/id>","<id>","source","<\/id>","=","<id>","json","X","Content","<\/id>",".","<id>","content","Builder","<\/id>","(",")",".","<id>","start","Object","<\/id>","(",")",".","<id>","field","<\/id>","(","\"pin\"",",","<id>","geo","Hash","Utils","<\/id>",".","<id>","string","Encode","<\/id>","(","<id>","lon","<\/id>",",","<id>","lat","<\/id>",")",")",".","<id>","end","Object","<\/id>","(",")",";","<id>","assert","Acked","<\/id>","(","<id>","prepare","Create","<\/id>","(","\"locations\"",")",".","<id>","set","Settings","<\/id>","(","<id>","settings","<\/id>",")",".","<id>","add","Mapping","<\/id>","(","\"location\"",",","<id>","mapping","<\/id>",")",")",";","<id>","client","<\/id>","(",")",".","<id>","prepare","Index","<\/id>","(","\"locations\"",",","\"location\"",",","\"1\"",")",".","<id>","set","Create","<\/id>","(","true",")",".","<id>","set","Source","<\/id>","(","<id>","source","<\/id>",")",".","<id>","execute","<\/id>","(",")",".","<id>","action","Get","<\/id>","(",")",";","<id>","refresh","<\/id>","(",")",";","<id>","client","<\/id>","(",")",".","<id>","prepare","Get","<\/id>","(","\"locations\"",",","\"location\"",",","\"1\"",")",".","<id>","execute","<\/id>","(",")",".","<id>","action","Get","<\/id>","(",")",";","<id>","search","Response","<\/id>","<id>","result","<\/id>","=","<id>","client","<\/id>","(",")",".","<id>","prepare","Search","<\/id>","(","\"locations\"",")",".","<id>","set","Query","<\/id>","(","<id>","query","Builders","<\/id>",".","<id>","match","All","Query","<\/id>","(",")",")",".","<id>","set","Post","Filter","<\/id>","(","<id>","query","Builders","<\/id>",".","<id>","geo","Distance","Query","<\/id>","(","\"pin\"",")",".","<id>","geo","Distance","<\/id>","(","<id>","geo","Distance","<\/id>",".","<id>","arc","<\/id>",")",".","<id>","point","<\/id>","(","<id>","lat","<\/id>",",","<id>","lon","<\/id>",")",".","<id>","distance","<\/id>","(","\"1m\"",")",")",".","<id>","execute","<\/id>","(",")",".","<id>","action","Get","<\/id>","(",")",";","<id>","assert","Hit","Count","<\/id>","(","<id>","result","<\/id>",",","1",")",";","}","<SENTENCE_END\/>"],"file_name":"GeoDistanceTests.java","formatted_lines":["{"," Version version = VersionUtils.randomVersionBetween(random(), Version.V_2_0_0, Version.CURRENT);"," Settings settings = Settings.settingsBuilder().put(IndexMetaData.SETTING_VERSION_CREATED, version).build();"," double lat = 40.720611;"," double lon = -73.998776;",""," XContentBuilder mapping = JsonXContent.contentBuilder()"," .startObject()"," .startObject(\"location\")"," .startObject(\"properties\")"," .startObject(\"pin\")"," .field(\"type\", \"geo_point\");"," if (version.before(Version.V_2_2_0))"," {"," mapping.field(\"lat_lon\", true);"," }"," mapping.endObject().endObject().endObject().endObject();",""," XContentBuilder source = JsonXContent.contentBuilder()"," .startObject()"," .field(\"pin\", GeoHashUtils.stringEncode(lon, lat))"," .endObject();",""," assertAcked(prepareCreate(\"locations\").setSettings(settings).addMapping(\"location\", mapping));"," client().prepareIndex(\"locations\", \"location\", \"1\").setCreate(true).setSource(source).execute().actionGet();"," refresh();"," client().prepareGet(\"locations\", \"location\", \"1\").execute().actionGet();",""," SearchResponse result = client().prepareSearch(\"locations\")"," .setQuery(QueryBuilders.matchAllQuery())"," .setPostFilter(QueryBuilders.geoDistanceQuery(\"pin\")"," .geoDistance(GeoDistance.ARC)"," .point(lat, lon)"," .distance(\"1m\"))"," .execute().actionGet();",""," assertHitCount(result, 1);","}"],"function_name":"testGeoDistanceFilter","function_name_tokens":["test","geo","distance","filter"],"id_body_hash":"5c2412b23a91b6fc78eb1e65f9d75b28","id_same_identifier_list":[0,1,2,3,4,5,5,6,7,7,7,8,9,10,11,12,13,14,15,15,15,15,16,17,18,19,20,21,22,23,24,25,26,27,27,28,29,30,31,32,33,33,33,34,35,35,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,55,55,56,57,58,58,58,59,60,60,61,62,63,64,64,65,66,67,68,68,69,70,71,72,73,73,74,75,76,77,78,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,98,98,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,114,115,116,117,118,118,119,120,121,122,122,123,124,125,126,126,127,128,129,130,130,130,131,132,133,133,133,134,135,135,136,137,138,139,139,140,141,142,143,144,145,146,147,147,147,148,149,149,150,151,152,153,154,155,156,157,157,158,159,160,161,161,162,163,163,164,165,166,167,168,168,169,170,171,172,173,173,174,175,176,177,178,179,180,181,182,183,184,185,185,186,187,188,189,190,191,192,193,194,194,195,196,197,198,199,199,200,201,202,203,204,205,206,207,208,208,209,210,211,212,213,214,215,216,217,218,219,220,220,221,222,223,224,225,226,227,228,229,230,231,232,233,233,234,235,236,237,237,238,239,240,241,242,243,244,244,245,246,247,248,249,249,250,251,251,252,253,253,253,254,255,256,257,258,258,258,259,260,260,261,262,262,262,263,264,265,266,267,267,268,269,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,291,292,293,294,295,295,295,296,297,298,299,300,301,302,303],"option_correct":"testGeoDistanceFilter","options":["testFilter","testGeoDistanceFilter","putMapping","testConfigMultipleParametersLangWrongType","testSetValuesBackcompat","testDistanceSortingWithMissingGeoPoint","testInvalidGeoDistance"],"options_nlp":["test filter","test geo distance filter","put mapping","test config multiple parameters lang wrong type","test set values backcompat","test distance sorting with missing geo point","test invalid geo distance"],"options_random":["testSetValuesBackcompat","testConfigMultipleParametersLangWrongType","putMapping"],"options_tfidf":["testDistanceSortingWithMissingGeoPoint","testFilter","testInvalidGeoDistance"],"project_name":"elasticsearch","source_code_string":"public void testGeoDistanceFilter() throws IOException {\n Version version = VersionUtils.randomVersionBetween(random(), Version.V_2_0_0, Version.CURRENT);\n Settings settings = Settings.settingsBuilder().put(IndexMetaData.SETTING_VERSION_CREATED, version).build();\n double lat = 40.720611;\n double lon = -73.998776;\n\n XContentBuilder mapping = JsonXContent.contentBuilder()\n .startObject()\n .startObject(\"location\")\n .startObject(\"properties\")\n .startObject(\"pin\")\n .field(\"type\", \"geo_point\");\n if (version.before(Version.V_2_2_0)) {\n mapping.field(\"lat_lon\", true);\n }\n mapping.endObject().endObject().endObject().endObject();\n\n XContentBuilder source = JsonXContent.contentBuilder()\n .startObject()\n .field(\"pin\", GeoHashUtils.stringEncode(lon, lat))\n .endObject();\n\n assertAcked(prepareCreate(\"locations\").setSettings(settings).addMapping(\"location\", mapping));\n client().prepareIndex(\"locations\", \"location\", \"1\").setCreate(true).setSource(source).execute().actionGet();\n refresh();\n client().prepareGet(\"locations\", \"location\", \"1\").execute().actionGet();\n\n SearchResponse result = client().prepareSearch(\"locations\")\n .setQuery(QueryBuilders.matchAllQuery())\n .setPostFilter(QueryBuilders.geoDistanceQuery(\"pin\")\n .geoDistance(GeoDistance.ARC)\n .point(lat, lon)\n .distance(\"1m\"))\n .execute().actionGet();\n\n assertHitCount(result, 1);\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"version","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"version","start_char":12,"line":1},{"index_id":3,"token_group":3,"text":"=","start_char":20,"line":1},{"index_id":4,"token_group":4,"text":"version","start_char":22,"line":1},{"index_id":5,"token_group":5,"text":"Utils","start_char":29,"line":1},{"index_id":6,"token_group":5,"text":".","start_char":34,"line":1},{"index_id":7,"token_group":6,"text":"random","start_char":35,"line":1},{"index_id":8,"token_group":7,"text":"Version","start_char":41,"line":1},{"index_id":9,"token_group":7,"text":"Between","start_char":48,"line":1},{"index_id":10,"token_group":7,"text":"(","start_char":55,"line":1},{"index_id":11,"token_group":8,"text":"random","start_char":56,"line":1},{"index_id":12,"token_group":9,"text":"(","start_char":62,"line":1},{"index_id":13,"token_group":10,"text":")","start_char":63,"line":1},{"index_id":14,"token_group":11,"text":",","start_char":64,"line":1},{"index_id":15,"token_group":12,"text":"version","start_char":66,"line":1},{"index_id":16,"token_group":13,"text":".","start_char":73,"line":1},{"index_id":17,"token_group":14,"text":"v","start_char":74,"line":1},{"index_id":18,"token_group":15,"text":"2","start_char":76,"line":1},{"index_id":19,"token_group":15,"text":"0","start_char":78,"line":1},{"index_id":20,"token_group":15,"text":"0","start_char":80,"line":1},{"index_id":21,"token_group":15,"text":",","start_char":81,"line":1},{"index_id":22,"token_group":16,"text":"version","start_char":83,"line":1},{"index_id":23,"token_group":17,"text":".","start_char":90,"line":1},{"index_id":24,"token_group":18,"text":"current","start_char":91,"line":1},{"index_id":25,"token_group":19,"text":")","start_char":98,"line":1},{"index_id":26,"token_group":20,"text":";","start_char":99,"line":1},{"index_id":27,"token_group":21,"text":"settings","start_char":4,"line":2},{"index_id":28,"token_group":22,"text":"settings","start_char":13,"line":2},{"index_id":29,"token_group":23,"text":"=","start_char":22,"line":2},{"index_id":30,"token_group":24,"text":"settings","start_char":24,"line":2},{"index_id":31,"token_group":25,"text":".","start_char":32,"line":2},{"index_id":32,"token_group":26,"text":"settings","start_char":33,"line":2},{"index_id":33,"token_group":27,"text":"Builder","start_char":41,"line":2},{"index_id":34,"token_group":27,"text":"(","start_char":48,"line":2},{"index_id":35,"token_group":28,"text":")","start_char":49,"line":2},{"index_id":36,"token_group":29,"text":".","start_char":50,"line":2},{"index_id":37,"token_group":30,"text":"put","start_char":51,"line":2},{"index_id":38,"token_group":31,"text":"(","start_char":54,"line":2},{"index_id":39,"token_group":32,"text":"index","start_char":55,"line":2},{"index_id":40,"token_group":33,"text":"Meta","start_char":60,"line":2},{"index_id":41,"token_group":33,"text":"Data","start_char":64,"line":2},{"index_id":42,"token_group":33,"text":".","start_char":68,"line":2},{"index_id":43,"token_group":34,"text":"setting","start_char":69,"line":2},{"index_id":44,"token_group":35,"text":"Version","start_char":77,"line":2},{"index_id":45,"token_group":35,"text":"Created","start_char":85,"line":2},{"index_id":46,"token_group":35,"text":",","start_char":92,"line":2},{"index_id":47,"token_group":36,"text":"version","start_char":94,"line":2},{"index_id":48,"token_group":37,"text":")","start_char":101,"line":2},{"index_id":49,"token_group":38,"text":".","start_char":102,"line":2},{"index_id":50,"token_group":39,"text":"build","start_char":103,"line":2},{"index_id":51,"token_group":40,"text":"(","start_char":108,"line":2},{"index_id":52,"token_group":41,"text":")","start_char":109,"line":2},{"index_id":53,"token_group":42,"text":";","start_char":110,"line":2},{"index_id":54,"token_group":43,"text":"double","start_char":4,"line":3},{"index_id":55,"token_group":44,"text":"lat","start_char":11,"line":3},{"index_id":56,"token_group":45,"text":"=","start_char":15,"line":3},{"index_id":57,"token_group":46,"text":"40.720611","start_char":17,"line":3},{"index_id":58,"token_group":47,"text":";","start_char":26,"line":3},{"index_id":59,"token_group":48,"text":"double","start_char":4,"line":4},{"index_id":60,"token_group":49,"text":"lon","start_char":11,"line":4},{"index_id":61,"token_group":50,"text":"=","start_char":15,"line":4},{"index_id":62,"token_group":51,"text":"-","start_char":17,"line":4},{"index_id":63,"token_group":52,"text":"73.998776","start_char":18,"line":4},{"index_id":64,"token_group":53,"text":";","start_char":27,"line":4},{"index_id":65,"token_group":54,"text":"x","start_char":4,"line":6},{"index_id":66,"token_group":55,"text":"Content","start_char":5,"line":6},{"index_id":67,"token_group":55,"text":"Builder","start_char":12,"line":6},{"index_id":68,"token_group":55,"text":"mapping","start_char":20,"line":6},{"index_id":69,"token_group":56,"text":"=","start_char":28,"line":6},{"index_id":70,"token_group":57,"text":"json","start_char":30,"line":6},{"index_id":71,"token_group":58,"text":"X","start_char":34,"line":6},{"index_id":72,"token_group":58,"text":"Content","start_char":35,"line":6},{"index_id":73,"token_group":58,"text":".","start_char":42,"line":6},{"index_id":74,"token_group":59,"text":"content","start_char":43,"line":6},{"index_id":75,"token_group":60,"text":"Builder","start_char":50,"line":6},{"index_id":76,"token_group":60,"text":"(","start_char":57,"line":6},{"index_id":77,"token_group":61,"text":")","start_char":58,"line":6},{"index_id":78,"token_group":62,"text":".","start_char":4,"line":7},{"index_id":79,"token_group":63,"text":"start","start_char":5,"line":7},{"index_id":80,"token_group":64,"text":"Object","start_char":10,"line":7},{"index_id":81,"token_group":64,"text":"(","start_char":16,"line":7},{"index_id":82,"token_group":65,"text":")","start_char":17,"line":7},{"index_id":83,"token_group":66,"text":".","start_char":4,"line":8},{"index_id":84,"token_group":67,"text":"start","start_char":5,"line":8},{"index_id":85,"token_group":68,"text":"Object","start_char":10,"line":8},{"index_id":86,"token_group":68,"text":"(","start_char":16,"line":8},{"index_id":87,"token_group":69,"text":"\"location\"","start_char":17,"line":8},{"index_id":88,"token_group":70,"text":")","start_char":27,"line":8},{"index_id":89,"token_group":71,"text":".","start_char":4,"line":9},{"index_id":90,"token_group":72,"text":"start","start_char":5,"line":9},{"index_id":91,"token_group":73,"text":"Object","start_char":10,"line":9},{"index_id":92,"token_group":73,"text":"(","start_char":16,"line":9},{"index_id":93,"token_group":74,"text":"\"properties\"","start_char":17,"line":9},{"index_id":94,"token_group":75,"text":")","start_char":29,"line":9},{"index_id":95,"token_group":76,"text":".","start_char":4,"line":10},{"index_id":96,"token_group":77,"text":"start","start_char":5,"line":10},{"index_id":97,"token_group":78,"text":"Object","start_char":10,"line":10},{"index_id":98,"token_group":78,"text":"(","start_char":16,"line":10},{"index_id":99,"token_group":79,"text":"\"pin\"","start_char":17,"line":10},{"index_id":100,"token_group":80,"text":")","start_char":22,"line":10},{"index_id":101,"token_group":81,"text":".","start_char":4,"line":11},{"index_id":102,"token_group":82,"text":"field","start_char":5,"line":11},{"index_id":103,"token_group":83,"text":"(","start_char":10,"line":11},{"index_id":104,"token_group":84,"text":"\"type\"","start_char":11,"line":11},{"index_id":105,"token_group":85,"text":",","start_char":17,"line":11},{"index_id":106,"token_group":86,"text":"\"geo_point\"","start_char":19,"line":11},{"index_id":107,"token_group":87,"text":")","start_char":30,"line":11},{"index_id":108,"token_group":88,"text":";","start_char":31,"line":11},{"index_id":109,"token_group":89,"text":"if","start_char":4,"line":12},{"index_id":110,"token_group":90,"text":"(","start_char":7,"line":12},{"index_id":111,"token_group":91,"text":"version","start_char":8,"line":12},{"index_id":112,"token_group":92,"text":".","start_char":15,"line":12},{"index_id":113,"token_group":93,"text":"before","start_char":16,"line":12},{"index_id":114,"token_group":94,"text":"(","start_char":22,"line":12},{"index_id":115,"token_group":95,"text":"version","start_char":23,"line":12},{"index_id":116,"token_group":96,"text":".","start_char":30,"line":12},{"index_id":117,"token_group":97,"text":"v","start_char":31,"line":12},{"index_id":118,"token_group":98,"text":"2","start_char":33,"line":12},{"index_id":119,"token_group":98,"text":"2","start_char":35,"line":12},{"index_id":120,"token_group":98,"text":"0","start_char":37,"line":12},{"index_id":121,"token_group":98,"text":")","start_char":38,"line":12},{"index_id":122,"token_group":99,"text":")","start_char":39,"line":12},{"index_id":123,"token_group":100,"text":"{","start_char":4,"line":13},{"index_id":124,"token_group":101,"text":"mapping","start_char":8,"line":14},{"index_id":125,"token_group":102,"text":".","start_char":15,"line":14},{"index_id":126,"token_group":103,"text":"field","start_char":16,"line":14},{"index_id":127,"token_group":104,"text":"(","start_char":21,"line":14},{"index_id":128,"token_group":105,"text":"\"lat_lon\"","start_char":22,"line":14},{"index_id":129,"token_group":106,"text":",","start_char":31,"line":14},{"index_id":130,"token_group":107,"text":"true","start_char":33,"line":14},{"index_id":131,"token_group":108,"text":")","start_char":37,"line":14},{"index_id":132,"token_group":109,"text":";","start_char":38,"line":14},{"index_id":133,"token_group":110,"text":"}","start_char":4,"line":15},{"index_id":134,"token_group":111,"text":"mapping","start_char":4,"line":16},{"index_id":135,"token_group":112,"text":".","start_char":11,"line":16},{"index_id":136,"token_group":113,"text":"end","start_char":12,"line":16},{"index_id":137,"token_group":114,"text":"Object","start_char":15,"line":16},{"index_id":138,"token_group":114,"text":"(","start_char":21,"line":16},{"index_id":139,"token_group":115,"text":")","start_char":22,"line":16},{"index_id":140,"token_group":116,"text":".","start_char":23,"line":16},{"index_id":141,"token_group":117,"text":"end","start_char":24,"line":16},{"index_id":142,"token_group":118,"text":"Object","start_char":27,"line":16},{"index_id":143,"token_group":118,"text":"(","start_char":33,"line":16},{"index_id":144,"token_group":119,"text":")","start_char":34,"line":16},{"index_id":145,"token_group":120,"text":".","start_char":35,"line":16},{"index_id":146,"token_group":121,"text":"end","start_char":36,"line":16},{"index_id":147,"token_group":122,"text":"Object","start_char":39,"line":16},{"index_id":148,"token_group":122,"text":"(","start_char":45,"line":16},{"index_id":149,"token_group":123,"text":")","start_char":46,"line":16},{"index_id":150,"token_group":124,"text":".","start_char":47,"line":16},{"index_id":151,"token_group":125,"text":"end","start_char":48,"line":16},{"index_id":152,"token_group":126,"text":"Object","start_char":51,"line":16},{"index_id":153,"token_group":126,"text":"(","start_char":57,"line":16},{"index_id":154,"token_group":127,"text":")","start_char":58,"line":16},{"index_id":155,"token_group":128,"text":";","start_char":59,"line":16},{"index_id":156,"token_group":129,"text":"x","start_char":4,"line":18},{"index_id":157,"token_group":130,"text":"Content","start_char":5,"line":18},{"index_id":158,"token_group":130,"text":"Builder","start_char":12,"line":18},{"index_id":159,"token_group":130,"text":"source","start_char":20,"line":18},{"index_id":160,"token_group":131,"text":"=","start_char":27,"line":18},{"index_id":161,"token_group":132,"text":"json","start_char":29,"line":18},{"index_id":162,"token_group":133,"text":"X","start_char":33,"line":18},{"index_id":163,"token_group":133,"text":"Content","start_char":34,"line":18},{"index_id":164,"token_group":133,"text":".","start_char":41,"line":18},{"index_id":165,"token_group":134,"text":"content","start_char":42,"line":18},{"index_id":166,"token_group":135,"text":"Builder","start_char":49,"line":18},{"index_id":167,"token_group":135,"text":"(","start_char":56,"line":18},{"index_id":168,"token_group":136,"text":")","start_char":57,"line":18},{"index_id":169,"token_group":137,"text":".","start_char":4,"line":19},{"index_id":170,"token_group":138,"text":"start","start_char":5,"line":19},{"index_id":171,"token_group":139,"text":"Object","start_char":10,"line":19},{"index_id":172,"token_group":139,"text":"(","start_char":16,"line":19},{"index_id":173,"token_group":140,"text":")","start_char":17,"line":19},{"index_id":174,"token_group":141,"text":".","start_char":4,"line":20},{"index_id":175,"token_group":142,"text":"field","start_char":5,"line":20},{"index_id":176,"token_group":143,"text":"(","start_char":10,"line":20},{"index_id":177,"token_group":144,"text":"\"pin\"","start_char":11,"line":20},{"index_id":178,"token_group":145,"text":",","start_char":16,"line":20},{"index_id":179,"token_group":146,"text":"geo","start_char":18,"line":20},{"index_id":180,"token_group":147,"text":"Hash","start_char":21,"line":20},{"index_id":181,"token_group":147,"text":"Utils","start_char":25,"line":20},{"index_id":182,"token_group":147,"text":".","start_char":30,"line":20},{"index_id":183,"token_group":148,"text":"string","start_char":31,"line":20},{"index_id":184,"token_group":149,"text":"Encode","start_char":37,"line":20},{"index_id":185,"token_group":149,"text":"(","start_char":43,"line":20},{"index_id":186,"token_group":150,"text":"lon","start_char":44,"line":20},{"index_id":187,"token_group":151,"text":",","start_char":47,"line":20},{"index_id":188,"token_group":152,"text":"lat","start_char":49,"line":20},{"index_id":189,"token_group":153,"text":")","start_char":52,"line":20},{"index_id":190,"token_group":154,"text":")","start_char":53,"line":20},{"index_id":191,"token_group":155,"text":".","start_char":4,"line":21},{"index_id":192,"token_group":156,"text":"end","start_char":5,"line":21},{"index_id":193,"token_group":157,"text":"Object","start_char":8,"line":21},{"index_id":194,"token_group":157,"text":"(","start_char":14,"line":21},{"index_id":195,"token_group":158,"text":")","start_char":15,"line":21},{"index_id":196,"token_group":159,"text":";","start_char":16,"line":21},{"index_id":197,"token_group":160,"text":"assert","start_char":4,"line":23},{"index_id":198,"token_group":161,"text":"Acked","start_char":10,"line":23},{"index_id":199,"token_group":161,"text":"(","start_char":15,"line":23},{"index_id":200,"token_group":162,"text":"prepare","start_char":16,"line":23},{"index_id":201,"token_group":163,"text":"Create","start_char":23,"line":23},{"index_id":202,"token_group":163,"text":"(","start_char":29,"line":23},{"index_id":203,"token_group":164,"text":"\"locations\"","start_char":30,"line":23},{"index_id":204,"token_group":165,"text":")","start_char":41,"line":23},{"index_id":205,"token_group":166,"text":".","start_char":42,"line":23},{"index_id":206,"token_group":167,"text":"set","start_char":43,"line":23},{"index_id":207,"token_group":168,"text":"Settings","start_char":46,"line":23},{"index_id":208,"token_group":168,"text":"(","start_char":54,"line":23},{"index_id":209,"token_group":169,"text":"settings","start_char":55,"line":23},{"index_id":210,"token_group":170,"text":")","start_char":63,"line":23},{"index_id":211,"token_group":171,"text":".","start_char":64,"line":23},{"index_id":212,"token_group":172,"text":"add","start_char":65,"line":23},{"index_id":213,"token_group":173,"text":"Mapping","start_char":68,"line":23},{"index_id":214,"token_group":173,"text":"(","start_char":75,"line":23},{"index_id":215,"token_group":174,"text":"\"location\"","start_char":76,"line":23},{"index_id":216,"token_group":175,"text":",","start_char":86,"line":23},{"index_id":217,"token_group":176,"text":"mapping","start_char":88,"line":23},{"index_id":218,"token_group":177,"text":")","start_char":95,"line":23},{"index_id":219,"token_group":178,"text":")","start_char":96,"line":23},{"index_id":220,"token_group":179,"text":";","start_char":97,"line":23},{"index_id":221,"token_group":180,"text":"client","start_char":4,"line":24},{"index_id":222,"token_group":181,"text":"(","start_char":10,"line":24},{"index_id":223,"token_group":182,"text":")","start_char":11,"line":24},{"index_id":224,"token_group":183,"text":".","start_char":12,"line":24},{"index_id":225,"token_group":184,"text":"prepare","start_char":13,"line":24},{"index_id":226,"token_group":185,"text":"Index","start_char":20,"line":24},{"index_id":227,"token_group":185,"text":"(","start_char":25,"line":24},{"index_id":228,"token_group":186,"text":"\"locations\"","start_char":26,"line":24},{"index_id":229,"token_group":187,"text":",","start_char":37,"line":24},{"index_id":230,"token_group":188,"text":"\"location\"","start_char":39,"line":24},{"index_id":231,"token_group":189,"text":",","start_char":49,"line":24},{"index_id":232,"token_group":190,"text":"\"1\"","start_char":51,"line":24},{"index_id":233,"token_group":191,"text":")","start_char":54,"line":24},{"index_id":234,"token_group":192,"text":".","start_char":55,"line":24},{"index_id":235,"token_group":193,"text":"set","start_char":56,"line":24},{"index_id":236,"token_group":194,"text":"Create","start_char":59,"line":24},{"index_id":237,"token_group":194,"text":"(","start_char":65,"line":24},{"index_id":238,"token_group":195,"text":"true","start_char":66,"line":24},{"index_id":239,"token_group":196,"text":")","start_char":70,"line":24},{"index_id":240,"token_group":197,"text":".","start_char":71,"line":24},{"index_id":241,"token_group":198,"text":"set","start_char":72,"line":24},{"index_id":242,"token_group":199,"text":"Source","start_char":75,"line":24},{"index_id":243,"token_group":199,"text":"(","start_char":81,"line":24},{"index_id":244,"token_group":200,"text":"source","start_char":82,"line":24},{"index_id":245,"token_group":201,"text":")","start_char":88,"line":24},{"index_id":246,"token_group":202,"text":".","start_char":89,"line":24},{"index_id":247,"token_group":203,"text":"execute","start_char":90,"line":24},{"index_id":248,"token_group":204,"text":"(","start_char":97,"line":24},{"index_id":249,"token_group":205,"text":")","start_char":98,"line":24},{"index_id":250,"token_group":206,"text":".","start_char":99,"line":24},{"index_id":251,"token_group":207,"text":"action","start_char":100,"line":24},{"index_id":252,"token_group":208,"text":"Get","start_char":106,"line":24},{"index_id":253,"token_group":208,"text":"(","start_char":109,"line":24},{"index_id":254,"token_group":209,"text":")","start_char":110,"line":24},{"index_id":255,"token_group":210,"text":";","start_char":111,"line":24},{"index_id":256,"token_group":211,"text":"refresh","start_char":4,"line":25},{"index_id":257,"token_group":212,"text":"(","start_char":11,"line":25},{"index_id":258,"token_group":213,"text":")","start_char":12,"line":25},{"index_id":259,"token_group":214,"text":";","start_char":13,"line":25},{"index_id":260,"token_group":215,"text":"client","start_char":4,"line":26},{"index_id":261,"token_group":216,"text":"(","start_char":10,"line":26},{"index_id":262,"token_group":217,"text":")","start_char":11,"line":26},{"index_id":263,"token_group":218,"text":".","start_char":12,"line":26},{"index_id":264,"token_group":219,"text":"prepare","start_char":13,"line":26},{"index_id":265,"token_group":220,"text":"Get","start_char":20,"line":26},{"index_id":266,"token_group":220,"text":"(","start_char":23,"line":26},{"index_id":267,"token_group":221,"text":"\"locations\"","start_char":24,"line":26},{"index_id":268,"token_group":222,"text":",","start_char":35,"line":26},{"index_id":269,"token_group":223,"text":"\"location\"","start_char":37,"line":26},{"index_id":270,"token_group":224,"text":",","start_char":47,"line":26},{"index_id":271,"token_group":225,"text":"\"1\"","start_char":49,"line":26},{"index_id":272,"token_group":226,"text":")","start_char":52,"line":26},{"index_id":273,"token_group":227,"text":".","start_char":53,"line":26},{"index_id":274,"token_group":228,"text":"execute","start_char":54,"line":26},{"index_id":275,"token_group":229,"text":"(","start_char":61,"line":26},{"index_id":276,"token_group":230,"text":")","start_char":62,"line":26},{"index_id":277,"token_group":231,"text":".","start_char":63,"line":26},{"index_id":278,"token_group":232,"text":"action","start_char":64,"line":26},{"index_id":279,"token_group":233,"text":"Get","start_char":70,"line":26},{"index_id":280,"token_group":233,"text":"(","start_char":73,"line":26},{"index_id":281,"token_group":234,"text":")","start_char":74,"line":26},{"index_id":282,"token_group":235,"text":";","start_char":75,"line":26},{"index_id":283,"token_group":236,"text":"search","start_char":4,"line":28},{"index_id":284,"token_group":237,"text":"Response","start_char":10,"line":28},{"index_id":285,"token_group":237,"text":"result","start_char":19,"line":28},{"index_id":286,"token_group":238,"text":"=","start_char":26,"line":28},{"index_id":287,"token_group":239,"text":"client","start_char":28,"line":28},{"index_id":288,"token_group":240,"text":"(","start_char":34,"line":28},{"index_id":289,"token_group":241,"text":")","start_char":35,"line":28},{"index_id":290,"token_group":242,"text":".","start_char":36,"line":28},{"index_id":291,"token_group":243,"text":"prepare","start_char":37,"line":28},{"index_id":292,"token_group":244,"text":"Search","start_char":44,"line":28},{"index_id":293,"token_group":244,"text":"(","start_char":50,"line":28},{"index_id":294,"token_group":245,"text":"\"locations\"","start_char":51,"line":28},{"index_id":295,"token_group":246,"text":")","start_char":62,"line":28},{"index_id":296,"token_group":247,"text":".","start_char":4,"line":29},{"index_id":297,"token_group":248,"text":"set","start_char":5,"line":29},{"index_id":298,"token_group":249,"text":"Query","start_char":8,"line":29},{"index_id":299,"token_group":249,"text":"(","start_char":13,"line":29},{"index_id":300,"token_group":250,"text":"query","start_char":14,"line":29},{"index_id":301,"token_group":251,"text":"Builders","start_char":19,"line":29},{"index_id":302,"token_group":251,"text":".","start_char":27,"line":29},{"index_id":303,"token_group":252,"text":"match","start_char":28,"line":29},{"index_id":304,"token_group":253,"text":"All","start_char":33,"line":29},{"index_id":305,"token_group":253,"text":"Query","start_char":36,"line":29},{"index_id":306,"token_group":253,"text":"(","start_char":41,"line":29},{"index_id":307,"token_group":254,"text":")","start_char":42,"line":29},{"index_id":308,"token_group":255,"text":")","start_char":43,"line":29},{"index_id":309,"token_group":256,"text":".","start_char":4,"line":30},{"index_id":310,"token_group":257,"text":"set","start_char":5,"line":30},{"index_id":311,"token_group":258,"text":"Post","start_char":8,"line":30},{"index_id":312,"token_group":258,"text":"Filter","start_char":12,"line":30},{"index_id":313,"token_group":258,"text":"(","start_char":18,"line":30},{"index_id":314,"token_group":259,"text":"query","start_char":19,"line":30},{"index_id":315,"token_group":260,"text":"Builders","start_char":24,"line":30},{"index_id":316,"token_group":260,"text":".","start_char":32,"line":30},{"index_id":317,"token_group":261,"text":"geo","start_char":33,"line":30},{"index_id":318,"token_group":262,"text":"Distance","start_char":36,"line":30},{"index_id":319,"token_group":262,"text":"Query","start_char":44,"line":30},{"index_id":320,"token_group":262,"text":"(","start_char":49,"line":30},{"index_id":321,"token_group":263,"text":"\"pin\"","start_char":50,"line":30},{"index_id":322,"token_group":264,"text":")","start_char":55,"line":30},{"index_id":323,"token_group":265,"text":".","start_char":19,"line":31},{"index_id":324,"token_group":266,"text":"geo","start_char":20,"line":31},{"index_id":325,"token_group":267,"text":"Distance","start_char":23,"line":31},{"index_id":326,"token_group":267,"text":"(","start_char":31,"line":31},{"index_id":327,"token_group":268,"text":"geo","start_char":32,"line":31},{"index_id":328,"token_group":269,"text":"Distance","start_char":35,"line":31},{"index_id":329,"token_group":269,"text":".","start_char":43,"line":31},{"index_id":330,"token_group":270,"text":"arc","start_char":44,"line":31},{"index_id":331,"token_group":271,"text":")","start_char":47,"line":31},{"index_id":332,"token_group":272,"text":".","start_char":19,"line":32},{"index_id":333,"token_group":273,"text":"point","start_char":20,"line":32},{"index_id":334,"token_group":274,"text":"(","start_char":25,"line":32},{"index_id":335,"token_group":275,"text":"lat","start_char":26,"line":32},{"index_id":336,"token_group":276,"text":",","start_char":29,"line":32},{"index_id":337,"token_group":277,"text":"lon","start_char":31,"line":32},{"index_id":338,"token_group":278,"text":")","start_char":34,"line":32},{"index_id":339,"token_group":279,"text":".","start_char":19,"line":33},{"index_id":340,"token_group":280,"text":"distance","start_char":20,"line":33},{"index_id":341,"token_group":281,"text":"(","start_char":28,"line":33},{"index_id":342,"token_group":282,"text":"\"1m\"","start_char":29,"line":33},{"index_id":343,"token_group":283,"text":")","start_char":33,"line":33},{"index_id":344,"token_group":284,"text":")","start_char":34,"line":33},{"index_id":345,"token_group":285,"text":".","start_char":4,"line":34},{"index_id":346,"token_group":286,"text":"execute","start_char":5,"line":34},{"index_id":347,"token_group":287,"text":"(","start_char":12,"line":34},{"index_id":348,"token_group":288,"text":")","start_char":13,"line":34},{"index_id":349,"token_group":289,"text":".","start_char":14,"line":34},{"index_id":350,"token_group":290,"text":"action","start_char":15,"line":34},{"index_id":351,"token_group":291,"text":"Get","start_char":21,"line":34},{"index_id":352,"token_group":291,"text":"(","start_char":24,"line":34},{"index_id":353,"token_group":292,"text":")","start_char":25,"line":34},{"index_id":354,"token_group":293,"text":";","start_char":26,"line":34},{"index_id":355,"token_group":294,"text":"assert","start_char":4,"line":36},{"index_id":356,"token_group":295,"text":"Hit","start_char":10,"line":36},{"index_id":357,"token_group":295,"text":"Count","start_char":13,"line":36},{"index_id":358,"token_group":295,"text":"(","start_char":18,"line":36},{"index_id":359,"token_group":296,"text":"result","start_char":19,"line":36},{"index_id":360,"token_group":297,"text":",","start_char":25,"line":36},{"index_id":361,"token_group":298,"text":"1","start_char":27,"line":36},{"index_id":362,"token_group":299,"text":")","start_char":28,"line":36},{"index_id":363,"token_group":300,"text":";","start_char":29,"line":36},{"index_id":364,"token_group":301,"text":"}","start_char":0,"line":37}],"tokens_list":["{","version","version","=","version","Utils",".","random","Version","Between","(","random","(",")",",","version",".","v","2","0","0",",","version",".","current",")",";","settings","settings","=","settings",".","settings","Builder","(",")",".","put","(","index","Meta","Data",".","setting","Version","Created",",","version",")",".","build","(",")",";","double","lat","=","40.720611",";","double","lon","=","-","73.998776",";","x","Content","Builder","mapping","=","json","X","Content",".","content","Builder","(",")",".","start","Object","(",")",".","start","Object","(","\"location\"",")",".","start","Object","(","\"properties\"",")",".","start","Object","(","\"pin\"",")",".","field","(","\"type\"",",","\"geo_point\"",")",";","if","(","version",".","before","(","version",".","v","2","2","0",")",")","{","mapping",".","field","(","\"lat_lon\"",",","true",")",";","}","mapping",".","end","Object","(",")",".","end","Object","(",")",".","end","Object","(",")",".","end","Object","(",")",";","x","Content","Builder","source","=","json","X","Content",".","content","Builder","(",")",".","start","Object","(",")",".","field","(","\"pin\"",",","geo","Hash","Utils",".","string","Encode","(","lon",",","lat",")",")",".","end","Object","(",")",";","assert","Acked","(","prepare","Create","(","\"locations\"",")",".","set","Settings","(","settings",")",".","add","Mapping","(","\"location\"",",","mapping",")",")",";","client","(",")",".","prepare","Index","(","\"locations\"",",","\"location\"",",","\"1\"",")",".","set","Create","(","true",")",".","set","Source","(","source",")",".","execute","(",")",".","action","Get","(",")",";","refresh","(",")",";","client","(",")",".","prepare","Get","(","\"locations\"",",","\"location\"",",","\"1\"",")",".","execute","(",")",".","action","Get","(",")",";","search","Response","result","=","client","(",")",".","prepare","Search","(","\"locations\"",")",".","set","Query","(","query","Builders",".","match","All","Query","(",")",")",".","set","Post","Filter","(","query","Builders",".","geo","Distance","Query","(","\"pin\"",")",".","geo","Distance","(","geo","Distance",".","arc",")",".","point","(","lat",",","lon",")",".","distance","(","\"1m\"",")",")",".","execute","(",")",".","action","Get","(",")",";","assert","Hit","Count","(","result",",","1",")",";","}"],"uuid":"199e3513a0982f456873a97b957c62fb"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","do","Rename","Conflict","Test","<\/id>","(","\"Foo\"",",","\"A class named 'Foo' is already defined in classNameConflict.py\"",")",";","}","<SENTENCE_END\/>"],"file_name":"PyRenameTest.java","formatted_lines":["{"," doRenameConflictTest(\"Foo\","," \"A class named 'Foo' is already defined in classNameConflict.py\");","}"],"function_name":"testClassNameConflict","function_name_tokens":["test","class","name","conflict"],"id_body_hash":"f9e21b2afddd01cfd83d0113275c3d49","id_same_identifier_list":[0,1,2,2,2,2,3,4,5,6,7,8,9,10],"option_correct":"testClassNameConflict","options":["withTypeText","testValueNameConflict","testGetClassConflict","testClassNameConflict","testNestedClassNameConflict","isHovered","isFieldInitialized"],"options_nlp":["with type text","test value name conflict","test get class conflict","test class name conflict","test nested class name conflict","is hovered","is field initialized"],"options_random":["isHovered","isFieldInitialized","withTypeText"],"options_tfidf":["testNestedClassNameConflict","testGetClassConflict","testValueNameConflict"],"project_name":"intellij-community","source_code_string":"public void testClassNameConflict() { \n doRenameConflictTest(\"Foo\", \"A class named 'Foo' is already defined in classNameConflict.py\");\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"do","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"Rename","start_char":6,"line":1},{"index_id":3,"token_group":2,"text":"Conflict","start_char":12,"line":1},{"index_id":4,"token_group":2,"text":"Test","start_char":20,"line":1},{"index_id":5,"token_group":2,"text":"(","start_char":24,"line":1},{"index_id":6,"token_group":3,"text":"\"Foo\"","start_char":25,"line":1},{"index_id":7,"token_group":4,"text":",","start_char":30,"line":1},{"index_id":8,"token_group":5,"text":"\"A class named 'Foo' is already defined in classNameConflict.py\"","start_char":25,"line":2},{"index_id":9,"token_group":6,"text":")","start_char":89,"line":2},{"index_id":10,"token_group":7,"text":";","start_char":90,"line":2},{"index_id":11,"token_group":8,"text":"}","start_char":0,"line":3}],"tokens_list":["{","do","Rename","Conflict","Test","(","\"Foo\"",",","\"A class named 'Foo' is already defined in classNameConflict.py\"",")",";","}"],"uuid":"e05f9cc97eb1fb574c30dfcc5d5af6da"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","log","<\/id>",".","<id>","debug","<\/id>","(","\"Requesting new token\"",")",";","int","<id>","status","<\/id>","=","<id>","get","Http","Client","<\/id>","(",")",".","<id>","execute","Method","<\/id>","(","<id>","method","<\/id>",")",";","if","(","<id>","status","<\/id>","!=","200",")","{","throw","new","<id>","exception","<\/id>","(","\"Error logging in: \"","+","<id>","method","<\/id>",".","<id>","get","Status","Line","<\/id>","(",")",")",";","}","<id>","document","<\/id>","<id>","document","<\/id>","=","new","<id>","sax","Builder","<\/id>","(","false",")",".","<id>","build","<\/id>","(","<id>","method","<\/id>",".","<id>","get","Response","Body","As","Stream","<\/id>","(",")",")",".","<id>","get","Document","<\/id>","(",")",";","<id>","x","Path","<\/id>","<id>","path","<\/id>","=","<id>","x","Path","<\/id>",".","<id>","new","Instance","<\/id>","(","\"\/response\/token\"",")",";","<id>","element","<\/id>","<id>","result","<\/id>","=","(","<id>","element","<\/id>",")","<id>","path","<\/id>",".","<id>","select","Single","Node","<\/id>","(","<id>","document","<\/id>",")",";","if","(","<id>","result","<\/id>","==","null",")","{","<id>","element","<\/id>","<id>","error","<\/id>","=","(","<id>","element","<\/id>",")","<id>","x","Path","<\/id>",".","<id>","new","Instance","<\/id>","(","\"\/response\/error\"",")",".","<id>","select","Single","Node","<\/id>","(","<id>","document","<\/id>",")",";","throw","new","<id>","exception","<\/id>","(","<id>","error","<\/id>","==","null","?","\"Error logging in\"",":","<id>","error","<\/id>",".","<id>","get","Text","<\/id>","(",")",")",";","}","<id>","my","Token","<\/id>","=","<id>","result","<\/id>",".","<id>","get","Text","Trim","<\/id>","(",")",";","}","<SENTENCE_END\/>"],"file_name":"FogBugzRepository.java","formatted_lines":["private void login(@NotNull PostMethod method) throws Exception {"," LOG.debug(\"Requesting new token\");"," int status = getHttpClient().executeMethod(method);"," if (status != 200)"," {"," throw new Exception(\"Error logging in: \" + method.getStatusLine());"," }"," Document document = new SAXBuilder(false).build(method.getResponseBodyAsStream()).getDocument();"," XPath path = XPath.newInstance(\"\/response\/token\");"," Element result = (Element)path.selectSingleNode(document);"," if (result == null)"," {"," Element error = (Element)XPath.newInstance(\"\/response\/error\").selectSingleNode("," document);"," throw new Exception(error == null ? \"Error logging in\" : error.getText());"," }"," myToken = result.getTextTrim();","}"],"function_name":"login","function_name_tokens":["login"],"id_body_hash":"3e879c9885c800e5f80657af89244b94","id_same_identifier_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,12,12,13,14,15,16,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,36,36,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,55,55,55,55,56,57,58,59,60,60,61,62,63,64,64,65,66,67,67,68,69,69,70,71,72,73,74,75,76,77,78,79,80,81,82,82,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,100,101,102,102,103,104,105,106,107,107,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,124,125,126,127,128,129,130,130,131,132,133,134,134,134,135,136,137,138,139],"option_correct":"login","options":["filesUpdateFinished","zzScanError","getVShift","login","pomFileExists","testComponentAbstractImplementation","testLoginForm"],"options_nlp":["files update finished","zz scan error","get v shift","login","pom file exists","test component abstract implementation","test login form"],"options_random":["filesUpdateFinished","pomFileExists","getVShift"],"options_tfidf":["testComponentAbstractImplementation","testLoginForm","zzScanError"],"project_name":"intellij-community","source_code_string":"private void login(@NotNull PostMethod method) throws Exception {\n LOG.debug(\"Requesting new token\");\n int status = getHttpClient().executeMethod(method);\n if (status != 200) {\n throw new Exception(\"Error logging in: \" + method.getStatusLine());\n }\n Document document = new SAXBuilder(false).build(method.getResponseBodyAsStream()).getDocument();\n XPath path = XPath.newInstance(\"\/response\/token\");\n Element result = (Element)path.selectSingleNode(document);\n if (result == null) {\n Element error = (Element)XPath.newInstance(\"\/response\/error\").selectSingleNode(document);\n throw new Exception(error == null ? \"Error logging in\" : error.getText());\n }\n myToken = result.getTextTrim();\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":65,"line":0},{"index_id":1,"token_group":1,"text":"log","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":".","start_char":7,"line":1},{"index_id":3,"token_group":3,"text":"debug","start_char":8,"line":1},{"index_id":4,"token_group":4,"text":"(","start_char":13,"line":1},{"index_id":5,"token_group":5,"text":"\"Requesting new token\"","start_char":14,"line":1},{"index_id":6,"token_group":6,"text":")","start_char":36,"line":1},{"index_id":7,"token_group":7,"text":";","start_char":37,"line":1},{"index_id":8,"token_group":8,"text":"int","start_char":4,"line":2},{"index_id":9,"token_group":9,"text":"status","start_char":8,"line":2},{"index_id":10,"token_group":10,"text":"=","start_char":15,"line":2},{"index_id":11,"token_group":11,"text":"get","start_char":17,"line":2},{"index_id":12,"token_group":12,"text":"Http","start_char":20,"line":2},{"index_id":13,"token_group":12,"text":"Client","start_char":24,"line":2},{"index_id":14,"token_group":12,"text":"(","start_char":30,"line":2},{"index_id":15,"token_group":13,"text":")","start_char":31,"line":2},{"index_id":16,"token_group":14,"text":".","start_char":32,"line":2},{"index_id":17,"token_group":15,"text":"execute","start_char":33,"line":2},{"index_id":18,"token_group":16,"text":"Method","start_char":40,"line":2},{"index_id":19,"token_group":16,"text":"(","start_char":46,"line":2},{"index_id":20,"token_group":17,"text":"method","start_char":47,"line":2},{"index_id":21,"token_group":18,"text":")","start_char":53,"line":2},{"index_id":22,"token_group":19,"text":";","start_char":54,"line":2},{"index_id":23,"token_group":20,"text":"if","start_char":4,"line":3},{"index_id":24,"token_group":21,"text":"(","start_char":7,"line":3},{"index_id":25,"token_group":22,"text":"status","start_char":8,"line":3},{"index_id":26,"token_group":23,"text":"!=","start_char":15,"line":3},{"index_id":27,"token_group":24,"text":"200","start_char":18,"line":3},{"index_id":28,"token_group":25,"text":")","start_char":21,"line":3},{"index_id":29,"token_group":26,"text":"{","start_char":4,"line":4},{"index_id":30,"token_group":27,"text":"throw","start_char":8,"line":5},{"index_id":31,"token_group":28,"text":"new","start_char":14,"line":5},{"index_id":32,"token_group":29,"text":"exception","start_char":18,"line":5},{"index_id":33,"token_group":30,"text":"(","start_char":27,"line":5},{"index_id":34,"token_group":31,"text":"\"Error logging in: \"","start_char":28,"line":5},{"index_id":35,"token_group":32,"text":"+","start_char":49,"line":5},{"index_id":36,"token_group":33,"text":"method","start_char":51,"line":5},{"index_id":37,"token_group":34,"text":".","start_char":57,"line":5},{"index_id":38,"token_group":35,"text":"get","start_char":58,"line":5},{"index_id":39,"token_group":36,"text":"Status","start_char":61,"line":5},{"index_id":40,"token_group":36,"text":"Line","start_char":67,"line":5},{"index_id":41,"token_group":36,"text":"(","start_char":71,"line":5},{"index_id":42,"token_group":37,"text":")","start_char":72,"line":5},{"index_id":43,"token_group":38,"text":")","start_char":73,"line":5},{"index_id":44,"token_group":39,"text":";","start_char":74,"line":5},{"index_id":45,"token_group":40,"text":"}","start_char":4,"line":6},{"index_id":46,"token_group":41,"text":"document","start_char":4,"line":7},{"index_id":47,"token_group":42,"text":"document","start_char":13,"line":7},{"index_id":48,"token_group":43,"text":"=","start_char":22,"line":7},{"index_id":49,"token_group":44,"text":"new","start_char":24,"line":7},{"index_id":50,"token_group":45,"text":"sax","start_char":28,"line":7},{"index_id":51,"token_group":46,"text":"Builder","start_char":31,"line":7},{"index_id":52,"token_group":46,"text":"(","start_char":38,"line":7},{"index_id":53,"token_group":47,"text":"false","start_char":39,"line":7},{"index_id":54,"token_group":48,"text":")","start_char":44,"line":7},{"index_id":55,"token_group":49,"text":".","start_char":45,"line":7},{"index_id":56,"token_group":50,"text":"build","start_char":46,"line":7},{"index_id":57,"token_group":51,"text":"(","start_char":51,"line":7},{"index_id":58,"token_group":52,"text":"method","start_char":52,"line":7},{"index_id":59,"token_group":53,"text":".","start_char":58,"line":7},{"index_id":60,"token_group":54,"text":"get","start_char":59,"line":7},{"index_id":61,"token_group":55,"text":"Response","start_char":62,"line":7},{"index_id":62,"token_group":55,"text":"Body","start_char":70,"line":7},{"index_id":63,"token_group":55,"text":"As","start_char":74,"line":7},{"index_id":64,"token_group":55,"text":"Stream","start_char":76,"line":7},{"index_id":65,"token_group":55,"text":"(","start_char":82,"line":7},{"index_id":66,"token_group":56,"text":")","start_char":83,"line":7},{"index_id":67,"token_group":57,"text":")","start_char":84,"line":7},{"index_id":68,"token_group":58,"text":".","start_char":85,"line":7},{"index_id":69,"token_group":59,"text":"get","start_char":86,"line":7},{"index_id":70,"token_group":60,"text":"Document","start_char":89,"line":7},{"index_id":71,"token_group":60,"text":"(","start_char":97,"line":7},{"index_id":72,"token_group":61,"text":")","start_char":98,"line":7},{"index_id":73,"token_group":62,"text":";","start_char":99,"line":7},{"index_id":74,"token_group":63,"text":"x","start_char":4,"line":8},{"index_id":75,"token_group":64,"text":"Path","start_char":5,"line":8},{"index_id":76,"token_group":64,"text":"path","start_char":10,"line":8},{"index_id":77,"token_group":65,"text":"=","start_char":15,"line":8},{"index_id":78,"token_group":66,"text":"x","start_char":17,"line":8},{"index_id":79,"token_group":67,"text":"Path","start_char":18,"line":8},{"index_id":80,"token_group":67,"text":".","start_char":22,"line":8},{"index_id":81,"token_group":68,"text":"new","start_char":23,"line":8},{"index_id":82,"token_group":69,"text":"Instance","start_char":26,"line":8},{"index_id":83,"token_group":69,"text":"(","start_char":34,"line":8},{"index_id":84,"token_group":70,"text":"\"\/response\/token\"","start_char":35,"line":8},{"index_id":85,"token_group":71,"text":")","start_char":52,"line":8},{"index_id":86,"token_group":72,"text":";","start_char":53,"line":8},{"index_id":87,"token_group":73,"text":"element","start_char":4,"line":9},{"index_id":88,"token_group":74,"text":"result","start_char":12,"line":9},{"index_id":89,"token_group":75,"text":"=","start_char":19,"line":9},{"index_id":90,"token_group":76,"text":"(","start_char":21,"line":9},{"index_id":91,"token_group":77,"text":"element","start_char":22,"line":9},{"index_id":92,"token_group":78,"text":")","start_char":29,"line":9},{"index_id":93,"token_group":79,"text":"path","start_char":30,"line":9},{"index_id":94,"token_group":80,"text":".","start_char":34,"line":9},{"index_id":95,"token_group":81,"text":"select","start_char":35,"line":9},{"index_id":96,"token_group":82,"text":"Single","start_char":41,"line":9},{"index_id":97,"token_group":82,"text":"Node","start_char":47,"line":9},{"index_id":98,"token_group":82,"text":"(","start_char":51,"line":9},{"index_id":99,"token_group":83,"text":"document","start_char":52,"line":9},{"index_id":100,"token_group":84,"text":")","start_char":60,"line":9},{"index_id":101,"token_group":85,"text":";","start_char":61,"line":9},{"index_id":102,"token_group":86,"text":"if","start_char":4,"line":10},{"index_id":103,"token_group":87,"text":"(","start_char":7,"line":10},{"index_id":104,"token_group":88,"text":"result","start_char":8,"line":10},{"index_id":105,"token_group":89,"text":"==","start_char":15,"line":10},{"index_id":106,"token_group":90,"text":"null","start_char":18,"line":10},{"index_id":107,"token_group":91,"text":")","start_char":22,"line":10},{"index_id":108,"token_group":92,"text":"{","start_char":4,"line":11},{"index_id":109,"token_group":93,"text":"element","start_char":8,"line":12},{"index_id":110,"token_group":94,"text":"error","start_char":16,"line":12},{"index_id":111,"token_group":95,"text":"=","start_char":22,"line":12},{"index_id":112,"token_group":96,"text":"(","start_char":24,"line":12},{"index_id":113,"token_group":97,"text":"element","start_char":25,"line":12},{"index_id":114,"token_group":98,"text":")","start_char":32,"line":12},{"index_id":115,"token_group":99,"text":"x","start_char":33,"line":12},{"index_id":116,"token_group":100,"text":"Path","start_char":34,"line":12},{"index_id":117,"token_group":100,"text":".","start_char":38,"line":12},{"index_id":118,"token_group":101,"text":"new","start_char":39,"line":12},{"index_id":119,"token_group":102,"text":"Instance","start_char":42,"line":12},{"index_id":120,"token_group":102,"text":"(","start_char":50,"line":12},{"index_id":121,"token_group":103,"text":"\"\/response\/error\"","start_char":51,"line":12},{"index_id":122,"token_group":104,"text":")","start_char":68,"line":12},{"index_id":123,"token_group":105,"text":".","start_char":69,"line":12},{"index_id":124,"token_group":106,"text":"select","start_char":70,"line":12},{"index_id":125,"token_group":107,"text":"Single","start_char":76,"line":12},{"index_id":126,"token_group":107,"text":"Node","start_char":82,"line":12},{"index_id":127,"token_group":107,"text":"(","start_char":86,"line":12},{"index_id":128,"token_group":108,"text":"document","start_char":12,"line":13},{"index_id":129,"token_group":109,"text":")","start_char":20,"line":13},{"index_id":130,"token_group":110,"text":";","start_char":21,"line":13},{"index_id":131,"token_group":111,"text":"throw","start_char":8,"line":14},{"index_id":132,"token_group":112,"text":"new","start_char":14,"line":14},{"index_id":133,"token_group":113,"text":"exception","start_char":18,"line":14},{"index_id":134,"token_group":114,"text":"(","start_char":27,"line":14},{"index_id":135,"token_group":115,"text":"error","start_char":28,"line":14},{"index_id":136,"token_group":116,"text":"==","start_char":34,"line":14},{"index_id":137,"token_group":117,"text":"null","start_char":37,"line":14},{"index_id":138,"token_group":118,"text":"?","start_char":42,"line":14},{"index_id":139,"token_group":119,"text":"\"Error logging in\"","start_char":44,"line":14},{"index_id":140,"token_group":120,"text":":","start_char":63,"line":14},{"index_id":141,"token_group":121,"text":"error","start_char":65,"line":14},{"index_id":142,"token_group":122,"text":".","start_char":70,"line":14},{"index_id":143,"token_group":123,"text":"get","start_char":71,"line":14},{"index_id":144,"token_group":124,"text":"Text","start_char":74,"line":14},{"index_id":145,"token_group":124,"text":"(","start_char":78,"line":14},{"index_id":146,"token_group":125,"text":")","start_char":79,"line":14},{"index_id":147,"token_group":126,"text":")","start_char":80,"line":14},{"index_id":148,"token_group":127,"text":";","start_char":81,"line":14},{"index_id":149,"token_group":128,"text":"}","start_char":4,"line":15},{"index_id":150,"token_group":129,"text":"my","start_char":4,"line":16},{"index_id":151,"token_group":130,"text":"Token","start_char":6,"line":16},{"index_id":152,"token_group":130,"text":"=","start_char":12,"line":16},{"index_id":153,"token_group":131,"text":"result","start_char":14,"line":16},{"index_id":154,"token_group":132,"text":".","start_char":20,"line":16},{"index_id":155,"token_group":133,"text":"get","start_char":21,"line":16},{"index_id":156,"token_group":134,"text":"Text","start_char":24,"line":16},{"index_id":157,"token_group":134,"text":"Trim","start_char":28,"line":16},{"index_id":158,"token_group":134,"text":"(","start_char":32,"line":16},{"index_id":159,"token_group":135,"text":")","start_char":33,"line":16},{"index_id":160,"token_group":136,"text":";","start_char":34,"line":16},{"index_id":161,"token_group":137,"text":"}","start_char":0,"line":17}],"tokens_list":["{","log",".","debug","(","\"Requesting new token\"",")",";","int","status","=","get","Http","Client","(",")",".","execute","Method","(","method",")",";","if","(","status","!=","200",")","{","throw","new","exception","(","\"Error logging in: \"","+","method",".","get","Status","Line","(",")",")",";","}","document","document","=","new","sax","Builder","(","false",")",".","build","(","method",".","get","Response","Body","As","Stream","(",")",")",".","get","Document","(",")",";","x","Path","path","=","x","Path",".","new","Instance","(","\"\/response\/token\"",")",";","element","result","=","(","element",")","path",".","select","Single","Node","(","document",")",";","if","(","result","==","null",")","{","element","error","=","(","element",")","x","Path",".","new","Instance","(","\"\/response\/error\"",")",".","select","Single","Node","(","document",")",";","throw","new","exception","(","error","==","null","?","\"Error logging in\"",":","error",".","get","Text","(",")",")",";","}","my","Token","=","result",".","get","Text","Trim","(",")",";","}"],"uuid":"b1ae610637f94ff954c0335f102fc1c3"}]