-
Notifications
You must be signed in to change notification settings - Fork 1
/
experiment_0000064.json
1 lines (1 loc) · 231 KB
/
experiment_0000064.json
1
[{"cap_original_tokens":["<SENTENCE_START>","{","<id>","create","Http","Fs","Server","<\/id>","(","false",")",";","<id>","string","<\/id>","<id>","user","<\/id>","=","<id>","hadoop","Users","Conf","Test","Helper","<\/id>",".","<id>","get","Hadoop","Users","<\/id>","(",")","[","0","]",";","<id>","url","<\/id>","<id>","url","<\/id>","=","new","<id>","url","<\/id>","(","<id>","test","Jetty","Helper","<\/id>",".","<id>","get","Jetty","Url","<\/id>","(",")",",","<id>","message","Format","<\/id>",".","<id>","format","<\/id>","(","\"\/webhdfs\/v1\/foo?user.name={0}\"",",","<id>","user","<\/id>",")",")",";","<id>","http","Url","Connection","<\/id>","<id>","conn","<\/id>","=","(","<id>","http","Url","Connection","<\/id>",")","<id>","url","<\/id>",".","<id>","open","Connection","<\/id>","(",")",";","<id>","conn","<\/id>",".","<id>","set","Do","Input","<\/id>","(","true",")",";","<id>","conn","<\/id>",".","<id>","set","Do","Output","<\/id>","(","true",")",";","<id>","conn","<\/id>",".","<id>","set","Request","Method","<\/id>","(","\"PUT\"",")",";","<id>","assert","<\/id>",".","<id>","assert","Equals","<\/id>","(","<id>","conn","<\/id>",".","<id>","get","Response","Code","<\/id>","(",")",",","<id>","http","Url","Connection","<\/id>",".","<id>","http","Bad","Request","<\/id>",")",";","}","<SENTENCE_END\/>"],"file_name":"TestHttpFSServer.java","formatted_lines":["{"," createHttpFSServer(false);",""," String user = HadoopUsersConfTestHelper.getHadoopUsers()[0];"," URL url = new URL(TestJettyHelper.getJettyURL(),"," MessageFormat.format(\"\/webhdfs\/v1\/foo?user.name={0}\", user));"," HttpURLConnection conn = (HttpURLConnection) url.openConnection();"," conn.setDoInput(true);"," conn.setDoOutput(true);"," conn.setRequestMethod(\"PUT\");"," Assert.assertEquals(conn.getResponseCode(), HttpURLConnection.HTTP_BAD_REQUEST);","}"],"function_name":"testPutNoOperation","function_name_tokens":["test","put","no","operation"],"id_body_hash":"147e418745db0df5363ad6fba32721b5","id_same_identifier_list":[0,1,2,2,2,2,3,4,5,6,7,8,9,10,10,10,10,10,11,12,12,12,13,14,15,16,17,18,19,20,21,22,23,24,25,25,25,26,27,27,27,28,29,30,31,31,32,33,34,35,36,37,38,39,40,41,41,41,42,43,44,45,45,45,46,47,48,49,49,50,51,52,53,54,55,55,55,56,57,58,59,60,61,62,62,62,63,64,65,66,67,68,69,69,69,70,71,72,73,74,75,76,76,77,78,79,80,80,80,81,82,83,84,84,84,85,86,86,86,87,88,89,90],"option_correct":"testPutNoOperation","options":["testPutAndDelete","testStartStopHttpKerberos","getTimelineStore","putRoot","testPutFile","getReporter","testPutNoOperation"],"options_nlp":["test put and delete","test start stop http kerberos","get timeline store","put root","test put file","get reporter","test put no operation"],"options_random":["testStartStopHttpKerberos","getTimelineStore","getReporter"],"options_tfidf":["testPutAndDelete","putRoot","testPutFile"],"project_name":"hadoop-common","source_code_string":"@Test\n @TestDir\n @TestJetty\n @TestHdfs\n public void testPutNoOperation() throws Exception {\n createHttpFSServer(false);\n\n String user = HadoopUsersConfTestHelper.getHadoopUsers()[0];\n URL url = new URL(TestJettyHelper.getJettyURL(),\n MessageFormat.format(\"\/webhdfs\/v1\/foo?user.name={0}\", user));\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n conn.setDoInput(true);\n conn.setDoOutput(true);\n conn.setRequestMethod(\"PUT\");\n Assert.assertEquals(conn.getResponseCode(), HttpURLConnection.HTTP_BAD_REQUEST);\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"create","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"Http","start_char":10,"line":1},{"index_id":3,"token_group":2,"text":"Fs","start_char":14,"line":1},{"index_id":4,"token_group":2,"text":"Server","start_char":16,"line":1},{"index_id":5,"token_group":2,"text":"(","start_char":22,"line":1},{"index_id":6,"token_group":3,"text":"false","start_char":23,"line":1},{"index_id":7,"token_group":4,"text":")","start_char":28,"line":1},{"index_id":8,"token_group":5,"text":";","start_char":29,"line":1},{"index_id":9,"token_group":6,"text":"string","start_char":4,"line":3},{"index_id":10,"token_group":7,"text":"user","start_char":11,"line":3},{"index_id":11,"token_group":8,"text":"=","start_char":16,"line":3},{"index_id":12,"token_group":9,"text":"hadoop","start_char":18,"line":3},{"index_id":13,"token_group":10,"text":"Users","start_char":24,"line":3},{"index_id":14,"token_group":10,"text":"Conf","start_char":29,"line":3},{"index_id":15,"token_group":10,"text":"Test","start_char":33,"line":3},{"index_id":16,"token_group":10,"text":"Helper","start_char":37,"line":3},{"index_id":17,"token_group":10,"text":".","start_char":43,"line":3},{"index_id":18,"token_group":11,"text":"get","start_char":44,"line":3},{"index_id":19,"token_group":12,"text":"Hadoop","start_char":47,"line":3},{"index_id":20,"token_group":12,"text":"Users","start_char":53,"line":3},{"index_id":21,"token_group":12,"text":"(","start_char":58,"line":3},{"index_id":22,"token_group":13,"text":")","start_char":59,"line":3},{"index_id":23,"token_group":14,"text":"[","start_char":60,"line":3},{"index_id":24,"token_group":15,"text":"0","start_char":61,"line":3},{"index_id":25,"token_group":16,"text":"]","start_char":62,"line":3},{"index_id":26,"token_group":17,"text":";","start_char":63,"line":3},{"index_id":27,"token_group":18,"text":"url","start_char":4,"line":4},{"index_id":28,"token_group":19,"text":"url","start_char":8,"line":4},{"index_id":29,"token_group":20,"text":"=","start_char":12,"line":4},{"index_id":30,"token_group":21,"text":"new","start_char":14,"line":4},{"index_id":31,"token_group":22,"text":"url","start_char":18,"line":4},{"index_id":32,"token_group":23,"text":"(","start_char":21,"line":4},{"index_id":33,"token_group":24,"text":"test","start_char":22,"line":4},{"index_id":34,"token_group":25,"text":"Jetty","start_char":26,"line":4},{"index_id":35,"token_group":25,"text":"Helper","start_char":31,"line":4},{"index_id":36,"token_group":25,"text":".","start_char":37,"line":4},{"index_id":37,"token_group":26,"text":"get","start_char":38,"line":4},{"index_id":38,"token_group":27,"text":"Jetty","start_char":41,"line":4},{"index_id":39,"token_group":27,"text":"Url","start_char":46,"line":4},{"index_id":40,"token_group":27,"text":"(","start_char":49,"line":4},{"index_id":41,"token_group":28,"text":")","start_char":50,"line":4},{"index_id":42,"token_group":29,"text":",","start_char":51,"line":4},{"index_id":43,"token_group":30,"text":"message","start_char":22,"line":5},{"index_id":44,"token_group":31,"text":"Format","start_char":29,"line":5},{"index_id":45,"token_group":31,"text":".","start_char":35,"line":5},{"index_id":46,"token_group":32,"text":"format","start_char":36,"line":5},{"index_id":47,"token_group":33,"text":"(","start_char":42,"line":5},{"index_id":48,"token_group":34,"text":"\"\/webhdfs\/v1\/foo?user.name={0}\"","start_char":43,"line":5},{"index_id":49,"token_group":35,"text":",","start_char":74,"line":5},{"index_id":50,"token_group":36,"text":"user","start_char":76,"line":5},{"index_id":51,"token_group":37,"text":")","start_char":80,"line":5},{"index_id":52,"token_group":38,"text":")","start_char":81,"line":5},{"index_id":53,"token_group":39,"text":";","start_char":82,"line":5},{"index_id":54,"token_group":40,"text":"http","start_char":4,"line":6},{"index_id":55,"token_group":41,"text":"Url","start_char":8,"line":6},{"index_id":56,"token_group":41,"text":"Connection","start_char":11,"line":6},{"index_id":57,"token_group":41,"text":"conn","start_char":22,"line":6},{"index_id":58,"token_group":42,"text":"=","start_char":27,"line":6},{"index_id":59,"token_group":43,"text":"(","start_char":29,"line":6},{"index_id":60,"token_group":44,"text":"http","start_char":30,"line":6},{"index_id":61,"token_group":45,"text":"Url","start_char":34,"line":6},{"index_id":62,"token_group":45,"text":"Connection","start_char":37,"line":6},{"index_id":63,"token_group":45,"text":")","start_char":47,"line":6},{"index_id":64,"token_group":46,"text":"url","start_char":49,"line":6},{"index_id":65,"token_group":47,"text":".","start_char":52,"line":6},{"index_id":66,"token_group":48,"text":"open","start_char":53,"line":6},{"index_id":67,"token_group":49,"text":"Connection","start_char":57,"line":6},{"index_id":68,"token_group":49,"text":"(","start_char":67,"line":6},{"index_id":69,"token_group":50,"text":")","start_char":68,"line":6},{"index_id":70,"token_group":51,"text":";","start_char":69,"line":6},{"index_id":71,"token_group":52,"text":"conn","start_char":4,"line":7},{"index_id":72,"token_group":53,"text":".","start_char":8,"line":7},{"index_id":73,"token_group":54,"text":"set","start_char":9,"line":7},{"index_id":74,"token_group":55,"text":"Do","start_char":12,"line":7},{"index_id":75,"token_group":55,"text":"Input","start_char":14,"line":7},{"index_id":76,"token_group":55,"text":"(","start_char":19,"line":7},{"index_id":77,"token_group":56,"text":"true","start_char":20,"line":7},{"index_id":78,"token_group":57,"text":")","start_char":24,"line":7},{"index_id":79,"token_group":58,"text":";","start_char":25,"line":7},{"index_id":80,"token_group":59,"text":"conn","start_char":4,"line":8},{"index_id":81,"token_group":60,"text":".","start_char":8,"line":8},{"index_id":82,"token_group":61,"text":"set","start_char":9,"line":8},{"index_id":83,"token_group":62,"text":"Do","start_char":12,"line":8},{"index_id":84,"token_group":62,"text":"Output","start_char":14,"line":8},{"index_id":85,"token_group":62,"text":"(","start_char":20,"line":8},{"index_id":86,"token_group":63,"text":"true","start_char":21,"line":8},{"index_id":87,"token_group":64,"text":")","start_char":25,"line":8},{"index_id":88,"token_group":65,"text":";","start_char":26,"line":8},{"index_id":89,"token_group":66,"text":"conn","start_char":4,"line":9},{"index_id":90,"token_group":67,"text":".","start_char":8,"line":9},{"index_id":91,"token_group":68,"text":"set","start_char":9,"line":9},{"index_id":92,"token_group":69,"text":"Request","start_char":12,"line":9},{"index_id":93,"token_group":69,"text":"Method","start_char":19,"line":9},{"index_id":94,"token_group":69,"text":"(","start_char":25,"line":9},{"index_id":95,"token_group":70,"text":"\"PUT\"","start_char":26,"line":9},{"index_id":96,"token_group":71,"text":")","start_char":31,"line":9},{"index_id":97,"token_group":72,"text":";","start_char":32,"line":9},{"index_id":98,"token_group":73,"text":"assert","start_char":4,"line":10},{"index_id":99,"token_group":74,"text":".","start_char":10,"line":10},{"index_id":100,"token_group":75,"text":"assert","start_char":11,"line":10},{"index_id":101,"token_group":76,"text":"Equals","start_char":17,"line":10},{"index_id":102,"token_group":76,"text":"(","start_char":23,"line":10},{"index_id":103,"token_group":77,"text":"conn","start_char":24,"line":10},{"index_id":104,"token_group":78,"text":".","start_char":28,"line":10},{"index_id":105,"token_group":79,"text":"get","start_char":29,"line":10},{"index_id":106,"token_group":80,"text":"Response","start_char":32,"line":10},{"index_id":107,"token_group":80,"text":"Code","start_char":40,"line":10},{"index_id":108,"token_group":80,"text":"(","start_char":44,"line":10},{"index_id":109,"token_group":81,"text":")","start_char":45,"line":10},{"index_id":110,"token_group":82,"text":",","start_char":46,"line":10},{"index_id":111,"token_group":83,"text":"http","start_char":48,"line":10},{"index_id":112,"token_group":84,"text":"Url","start_char":52,"line":10},{"index_id":113,"token_group":84,"text":"Connection","start_char":55,"line":10},{"index_id":114,"token_group":84,"text":".","start_char":65,"line":10},{"index_id":115,"token_group":85,"text":"http","start_char":66,"line":10},{"index_id":116,"token_group":86,"text":"Bad","start_char":71,"line":10},{"index_id":117,"token_group":86,"text":"Request","start_char":75,"line":10},{"index_id":118,"token_group":86,"text":")","start_char":82,"line":10},{"index_id":119,"token_group":87,"text":";","start_char":83,"line":10},{"index_id":120,"token_group":88,"text":"}","start_char":0,"line":11}],"tokens_list":["{","create","Http","Fs","Server","(","false",")",";","string","user","=","hadoop","Users","Conf","Test","Helper",".","get","Hadoop","Users","(",")","[","0","]",";","url","url","=","new","url","(","test","Jetty","Helper",".","get","Jetty","Url","(",")",",","message","Format",".","format","(","\"\/webhdfs\/v1\/foo?user.name={0}\"",",","user",")",")",";","http","Url","Connection","conn","=","(","http","Url","Connection",")","url",".","open","Connection","(",")",";","conn",".","set","Do","Input","(","true",")",";","conn",".","set","Do","Output","(","true",")",";","conn",".","set","Request","Method","(","\"PUT\"",")",";","assert",".","assert","Equals","(","conn",".","get","Response","Code","(",")",",","http","Url","Connection",".","http","Bad","Request",")",";","}"],"uuid":"6a3911b18b120a120b0ac6f24c4cd599"},{"cap_original_tokens":["<SENTENCE_START>","{","try","{","return","<id>","type","Converter","<\/id>",".","<id>","from","Yarn","Queue","Info","<\/id>","(","<id>","client","<\/id>",".","<id>","get","All","Queues","<\/id>","(",")",",","this",".","<id>","conf","<\/id>",")",";","}","catch","(","<id>","yarn","Exception","<\/id>","<id>","e","<\/id>",")","{","throw","new","<id>","io","Exception","<\/id>","(","<id>","e","<\/id>",")",";","}","}","<SENTENCE_END\/>"],"file_name":"ResourceMgrDelegate.java","formatted_lines":["public QueueInfo[] getQueues() throws IOException, InterruptedException {"," try"," {"," return TypeConverter.fromYarnQueueInfo(client.getAllQueues(), this.conf);"," }"," catch (YarnException e)"," {"," throw new IOException(e);"," }","}"],"function_name":"getQueues","function_name_tokens":["get","queues"],"id_body_hash":"59bdd655271f9c54472c7b53c81266b6","id_same_identifier_list":[0,1,2,3,4,5,5,6,7,7,7,7,8,9,10,11,11,11,12,13,14,15,16,17,18,19,20,21,22,23,23,24,25,26,27,28,29,29,30,31,32,33,34,35,36],"option_correct":"getQueues","options":["getQueues","getRootQueues","testGetRootQueues","testReplaceAclEntriesDefaultMaskPreserved","getNotReadyReason","extractPassword","getChildQueues"],"options_nlp":["get queues","get root queues","test get root queues","test replace acl entries default mask preserved","get not ready reason","extract password","get child queues"],"options_random":["testReplaceAclEntriesDefaultMaskPreserved","getNotReadyReason","extractPassword"],"options_tfidf":["getChildQueues","testGetRootQueues","getRootQueues"],"project_name":"hadoop-common","source_code_string":"public QueueInfo[] getQueues() throws IOException, InterruptedException {\n try {\n return TypeConverter.fromYarnQueueInfo(client.getAllQueues(), this.conf);\n } catch (YarnException e) {\n throw new IOException(e);\n }\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":69,"line":0},{"index_id":1,"token_group":1,"text":"try","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"{","start_char":4,"line":2},{"index_id":3,"token_group":3,"text":"return","start_char":8,"line":3},{"index_id":4,"token_group":4,"text":"type","start_char":15,"line":3},{"index_id":5,"token_group":5,"text":"Converter","start_char":19,"line":3},{"index_id":6,"token_group":5,"text":".","start_char":28,"line":3},{"index_id":7,"token_group":6,"text":"from","start_char":29,"line":3},{"index_id":8,"token_group":7,"text":"Yarn","start_char":33,"line":3},{"index_id":9,"token_group":7,"text":"Queue","start_char":37,"line":3},{"index_id":10,"token_group":7,"text":"Info","start_char":42,"line":3},{"index_id":11,"token_group":7,"text":"(","start_char":46,"line":3},{"index_id":12,"token_group":8,"text":"client","start_char":47,"line":3},{"index_id":13,"token_group":9,"text":".","start_char":53,"line":3},{"index_id":14,"token_group":10,"text":"get","start_char":54,"line":3},{"index_id":15,"token_group":11,"text":"All","start_char":57,"line":3},{"index_id":16,"token_group":11,"text":"Queues","start_char":60,"line":3},{"index_id":17,"token_group":11,"text":"(","start_char":66,"line":3},{"index_id":18,"token_group":12,"text":")","start_char":67,"line":3},{"index_id":19,"token_group":13,"text":",","start_char":68,"line":3},{"index_id":20,"token_group":14,"text":"this","start_char":70,"line":3},{"index_id":21,"token_group":15,"text":".","start_char":74,"line":3},{"index_id":22,"token_group":16,"text":"conf","start_char":75,"line":3},{"index_id":23,"token_group":17,"text":")","start_char":79,"line":3},{"index_id":24,"token_group":18,"text":";","start_char":80,"line":3},{"index_id":25,"token_group":19,"text":"}","start_char":4,"line":4},{"index_id":26,"token_group":20,"text":"catch","start_char":4,"line":5},{"index_id":27,"token_group":21,"text":"(","start_char":10,"line":5},{"index_id":28,"token_group":22,"text":"yarn","start_char":11,"line":5},{"index_id":29,"token_group":23,"text":"Exception","start_char":15,"line":5},{"index_id":30,"token_group":23,"text":"e","start_char":25,"line":5},{"index_id":31,"token_group":24,"text":")","start_char":26,"line":5},{"index_id":32,"token_group":25,"text":"{","start_char":4,"line":6},{"index_id":33,"token_group":26,"text":"throw","start_char":8,"line":7},{"index_id":34,"token_group":27,"text":"new","start_char":14,"line":7},{"index_id":35,"token_group":28,"text":"io","start_char":18,"line":7},{"index_id":36,"token_group":29,"text":"Exception","start_char":20,"line":7},{"index_id":37,"token_group":29,"text":"(","start_char":29,"line":7},{"index_id":38,"token_group":30,"text":"e","start_char":30,"line":7},{"index_id":39,"token_group":31,"text":")","start_char":31,"line":7},{"index_id":40,"token_group":32,"text":";","start_char":32,"line":7},{"index_id":41,"token_group":33,"text":"}","start_char":4,"line":8},{"index_id":42,"token_group":34,"text":"}","start_char":0,"line":9}],"tokens_list":["{","try","{","return","type","Converter",".","from","Yarn","Queue","Info","(","client",".","get","All","Queues","(",")",",","this",".","conf",")",";","}","catch","(","yarn","Exception","e",")","{","throw","new","io","Exception","(","e",")",";","}","}"],"uuid":"c24692180477eac904cbb0850bb6d7f5"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","portlet","Preferences","Impl","<\/id>","<id>","portlet","Preferences","Impl","<\/id>","=","(","<id>","portlet","Preferences","Impl","<\/id>",")","<id>","jx","Portlet","Preferences","<\/id>",";","<id>","map","<\/id>","<","<id>","string","<\/id>",",","<id>","string","<\/id>","[","]",">","<id>","portlet","Preferences","Map","<\/id>","=","<id>","portlet","Preferences","Impl","<\/id>",".","<id>","get","Map","<\/id>","(",")",";","<id>","assert","<\/id>",".","<id>","assert","True","<\/id>","(","<id>","portlet","Preferences","Map","<\/id>",".","<id>","is","Empty","<\/id>","(",")",")",";","}","<SENTENCE_END\/>"],"file_name":"PortletPreferencesLocalServiceTest.java","formatted_lines":["{",""," PortletPreferencesImpl portletPreferencesImpl ="," (PortletPreferencesImpl)jxPortletPreferences;",""," Map<String, String[]> portletPreferencesMap ="," portletPreferencesImpl.getMap();",""," Assert.assertTrue(portletPreferencesMap.isEmpty());","}"],"function_name":"assertEmptyPortletPreferencesMap","function_name_tokens":["assert","empty","portlet","preferences","map"],"id_body_hash":"224b4be35547b4fccda979f564e99f12","id_same_identifier_list":[0,1,2,2,2,3,3,3,4,5,6,6,6,7,8,8,8,9,10,11,12,13,14,15,16,17,18,18,18,19,20,20,20,21,22,22,23,24,25,26,27,28,28,29,30,30,30,31,32,32,33,34,35,36,37,38],"option_correct":"assertEmptyPortletPreferencesMap","options":["mT60","assertStrictPortletPreferences","getPortletPreferencesService","setShowConfigurationIcon","getBackToNodeURL","assertEmptyPortletPreferencesMap","testDeletePortletPreferencesByPortletPreferencesId"],"options_nlp":["m t 60","assert strict portlet preferences","get portlet preferences service","set show configuration icon","get back to node url","assert empty portlet preferences map","test delete portlet preferences by portlet preferences id"],"options_random":["getBackToNodeURL","mT60","setShowConfigurationIcon"],"options_tfidf":["getPortletPreferencesService","assertStrictPortletPreferences","testDeletePortletPreferencesByPortletPreferencesId"],"project_name":"liferay-portal","source_code_string":"protected void assertEmptyPortletPreferencesMap(\n\t\t\tjavax.portlet.PortletPreferences jxPortletPreferences)\n\t\tthrows Exception {\n\n\t\tPortletPreferencesImpl portletPreferencesImpl =\n\t\t\t(PortletPreferencesImpl)jxPortletPreferences;\n\n\t\tMap<String, String[]> portletPreferencesMap =\n\t\t\tportletPreferencesImpl.getMap();\n\n\t\tAssert.assertTrue(portletPreferencesMap.isEmpty());\n\t}","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"portlet","start_char":4,"line":2},{"index_id":2,"token_group":2,"text":"Preferences","start_char":11,"line":2},{"index_id":3,"token_group":2,"text":"Impl","start_char":22,"line":2},{"index_id":4,"token_group":2,"text":"portlet","start_char":27,"line":2},{"index_id":5,"token_group":3,"text":"Preferences","start_char":34,"line":2},{"index_id":6,"token_group":3,"text":"Impl","start_char":45,"line":2},{"index_id":7,"token_group":3,"text":"=","start_char":50,"line":2},{"index_id":8,"token_group":4,"text":"(","start_char":4,"line":3},{"index_id":9,"token_group":5,"text":"portlet","start_char":5,"line":3},{"index_id":10,"token_group":6,"text":"Preferences","start_char":12,"line":3},{"index_id":11,"token_group":6,"text":"Impl","start_char":23,"line":3},{"index_id":12,"token_group":6,"text":")","start_char":27,"line":3},{"index_id":13,"token_group":7,"text":"jx","start_char":28,"line":3},{"index_id":14,"token_group":8,"text":"Portlet","start_char":30,"line":3},{"index_id":15,"token_group":8,"text":"Preferences","start_char":37,"line":3},{"index_id":16,"token_group":8,"text":";","start_char":48,"line":3},{"index_id":17,"token_group":9,"text":"map","start_char":4,"line":5},{"index_id":18,"token_group":10,"text":"<","start_char":7,"line":5},{"index_id":19,"token_group":11,"text":"string","start_char":8,"line":5},{"index_id":20,"token_group":12,"text":",","start_char":14,"line":5},{"index_id":21,"token_group":13,"text":"string","start_char":16,"line":5},{"index_id":22,"token_group":14,"text":"[","start_char":22,"line":5},{"index_id":23,"token_group":15,"text":"]","start_char":23,"line":5},{"index_id":24,"token_group":16,"text":">","start_char":24,"line":5},{"index_id":25,"token_group":17,"text":"portlet","start_char":26,"line":5},{"index_id":26,"token_group":18,"text":"Preferences","start_char":33,"line":5},{"index_id":27,"token_group":18,"text":"Map","start_char":44,"line":5},{"index_id":28,"token_group":18,"text":"=","start_char":48,"line":5},{"index_id":29,"token_group":19,"text":"portlet","start_char":4,"line":6},{"index_id":30,"token_group":20,"text":"Preferences","start_char":11,"line":6},{"index_id":31,"token_group":20,"text":"Impl","start_char":22,"line":6},{"index_id":32,"token_group":20,"text":".","start_char":26,"line":6},{"index_id":33,"token_group":21,"text":"get","start_char":27,"line":6},{"index_id":34,"token_group":22,"text":"Map","start_char":30,"line":6},{"index_id":35,"token_group":22,"text":"(","start_char":33,"line":6},{"index_id":36,"token_group":23,"text":")","start_char":34,"line":6},{"index_id":37,"token_group":24,"text":";","start_char":35,"line":6},{"index_id":38,"token_group":25,"text":"assert","start_char":4,"line":8},{"index_id":39,"token_group":26,"text":".","start_char":10,"line":8},{"index_id":40,"token_group":27,"text":"assert","start_char":11,"line":8},{"index_id":41,"token_group":28,"text":"True","start_char":17,"line":8},{"index_id":42,"token_group":28,"text":"(","start_char":21,"line":8},{"index_id":43,"token_group":29,"text":"portlet","start_char":22,"line":8},{"index_id":44,"token_group":30,"text":"Preferences","start_char":29,"line":8},{"index_id":45,"token_group":30,"text":"Map","start_char":40,"line":8},{"index_id":46,"token_group":30,"text":".","start_char":43,"line":8},{"index_id":47,"token_group":31,"text":"is","start_char":44,"line":8},{"index_id":48,"token_group":32,"text":"Empty","start_char":46,"line":8},{"index_id":49,"token_group":32,"text":"(","start_char":51,"line":8},{"index_id":50,"token_group":33,"text":")","start_char":52,"line":8},{"index_id":51,"token_group":34,"text":")","start_char":53,"line":8},{"index_id":52,"token_group":35,"text":";","start_char":54,"line":8},{"index_id":53,"token_group":36,"text":"}","start_char":0,"line":9}],"tokens_list":["{","portlet","Preferences","Impl","portlet","Preferences","Impl","=","(","portlet","Preferences","Impl",")","jx","Portlet","Preferences",";","map","<","string",",","string","[","]",">","portlet","Preferences","Map","=","portlet","Preferences","Impl",".","get","Map","(",")",";","assert",".","assert","True","(","portlet","Preferences","Map",".","is","Empty","(",")",")",";","}"],"uuid":"be6ca16a8176c8cea981067d8757833f"},{"cap_original_tokens":["<SENTENCE_START>","{","return","<id>","","Get","Logger","Element","From","Element","<\/id>","(","<id>","element","<\/id>",")",";","}","<SENTENCE_END\/>"],"file_name":"XMLLoggerHandler.java","formatted_lines":["{",""," return _getLoggerElementFromElement(element);","}"],"function_name":"_getForLoggerElement","function_name_tokens":["","get","for","logger","element"],"id_body_hash":"d6c5bb979d96bc30181e4ad09fee8386","id_same_identifier_list":[0,1,2,3,3,3,3,3,3,4,5,6,7,8,9],"option_correct":"_getForLoggerElement","options":["testAssetCategoryNotAnyAndAny","_getForLoggerElement","_getLoggerElementFromElement","_getVarLoggerElement","getXMLLoggerElement","createBooleanValue","testIsFieldRepeatable"],"options_nlp":["test asset category not any and any"," get for logger element"," get logger element from element"," get var logger element","get xml logger element","create boolean value","test is field repeatable"],"options_random":["testAssetCategoryNotAnyAndAny","createBooleanValue","testIsFieldRepeatable"],"options_tfidf":["_getVarLoggerElement","_getLoggerElementFromElement","getXMLLoggerElement"],"project_name":"liferay-portal","source_code_string":"private static LoggerElement _getForLoggerElement(Element element)\n\t\tthrows Exception {\n\n\t\treturn _getLoggerElementFromElement(element);\n\t}","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"return","start_char":4,"line":2},{"index_id":2,"token_group":2,"text":"","start_char":10,"line":2},{"index_id":3,"token_group":3,"text":"Get","start_char":12,"line":2},{"index_id":4,"token_group":3,"text":"Logger","start_char":15,"line":2},{"index_id":5,"token_group":3,"text":"Element","start_char":21,"line":2},{"index_id":6,"token_group":3,"text":"From","start_char":28,"line":2},{"index_id":7,"token_group":3,"text":"Element","start_char":32,"line":2},{"index_id":8,"token_group":3,"text":"(","start_char":39,"line":2},{"index_id":9,"token_group":4,"text":"element","start_char":40,"line":2},{"index_id":10,"token_group":5,"text":")","start_char":47,"line":2},{"index_id":11,"token_group":6,"text":";","start_char":48,"line":2},{"index_id":12,"token_group":7,"text":"}","start_char":0,"line":3}],"tokens_list":["{","return","","Get","Logger","Element","From","Element","(","element",")",";","}"],"uuid":"13405760562823ea69c931d569bdb226"},{"cap_original_tokens":["<SENTENCE_START>","{","return","new","<id>","rectangle","<\/id>","(","<id>","get","Content","<\/id>","(",")",".","<id>","get","Location","On","Screen","<\/id>","(",")",",","<id>","get","Content","<\/id>","(",")",".","<id>","get","Size","<\/id>","(",")",")",";","}","<SENTENCE_END\/>"],"file_name":"WizardPopup.java","formatted_lines":["{"," return new Rectangle(getContent().getLocationOnScreen(),"," getContent().getSize());","}"],"function_name":"getBounds","function_name_tokens":["get","bounds"],"id_body_hash":"951bb195c9feb01a6e18fa5e9e3d20fb","id_same_identifier_list":[0,1,2,3,4,5,6,6,7,8,9,10,10,10,10,11,12,13,14,14,15,16,17,18,18,19,20,21,22,23,24],"option_correct":"getBounds","options":["getBounds","getSelectionBounds","clearVisitedHistory","migrateJdkAnnotationsToCommunityForDevIdea","getTextBounds","getCellBounds","treeifyBin"],"options_nlp":["get bounds","get selection bounds","clear visited history","migrate jdk annotations to community for dev idea","get text bounds","get cell bounds","treeify bin"],"options_random":["migrateJdkAnnotationsToCommunityForDevIdea","clearVisitedHistory","treeifyBin"],"options_tfidf":["getCellBounds","getSelectionBounds","getTextBounds"],"project_name":"intellij-community","source_code_string":"public Rectangle getBounds() {\n return new Rectangle(getContent().getLocationOnScreen(), getContent().getSize());\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":"rectangle","start_char":15,"line":1},{"index_id":4,"token_group":4,"text":"(","start_char":24,"line":1},{"index_id":5,"token_group":5,"text":"get","start_char":25,"line":1},{"index_id":6,"token_group":6,"text":"Content","start_char":28,"line":1},{"index_id":7,"token_group":6,"text":"(","start_char":35,"line":1},{"index_id":8,"token_group":7,"text":")","start_char":36,"line":1},{"index_id":9,"token_group":8,"text":".","start_char":37,"line":1},{"index_id":10,"token_group":9,"text":"get","start_char":38,"line":1},{"index_id":11,"token_group":10,"text":"Location","start_char":41,"line":1},{"index_id":12,"token_group":10,"text":"On","start_char":49,"line":1},{"index_id":13,"token_group":10,"text":"Screen","start_char":51,"line":1},{"index_id":14,"token_group":10,"text":"(","start_char":57,"line":1},{"index_id":15,"token_group":11,"text":")","start_char":58,"line":1},{"index_id":16,"token_group":12,"text":",","start_char":59,"line":1},{"index_id":17,"token_group":13,"text":"get","start_char":25,"line":2},{"index_id":18,"token_group":14,"text":"Content","start_char":28,"line":2},{"index_id":19,"token_group":14,"text":"(","start_char":35,"line":2},{"index_id":20,"token_group":15,"text":")","start_char":36,"line":2},{"index_id":21,"token_group":16,"text":".","start_char":37,"line":2},{"index_id":22,"token_group":17,"text":"get","start_char":38,"line":2},{"index_id":23,"token_group":18,"text":"Size","start_char":41,"line":2},{"index_id":24,"token_group":18,"text":"(","start_char":45,"line":2},{"index_id":25,"token_group":19,"text":")","start_char":46,"line":2},{"index_id":26,"token_group":20,"text":")","start_char":47,"line":2},{"index_id":27,"token_group":21,"text":";","start_char":48,"line":2},{"index_id":28,"token_group":22,"text":"}","start_char":0,"line":3}],"tokens_list":["{","return","new","rectangle","(","get","Content","(",")",".","get","Location","On","Screen","(",")",",","get","Content","(",")",".","get","Size","(",")",")",";","}"],"uuid":"d285efc26b7d52b0b8470c8b09f594ad"},{"cap_original_tokens":["<SENTENCE_START>","{","return","\"Multiplicative expression\"",";","}","<SENTENCE_END\/>"],"file_name":"GrMultiplicativeExpressionImpl.java","formatted_lines":["{"," return \"Multiplicative expression\";","}"],"function_name":"toString","function_name_tokens":["to","string"],"id_body_hash":"8221d4ff5f00f560ed221fc3decb1f15","id_same_identifier_list":[0,1,2,3,4,5,6],"option_correct":"toString","options":["toString","valueToString","stringToValue","testConstructorArgumentInExpression","initPlatformPrefix","toString1","testSuggestNamesNotInScope"],"options_nlp":["to string","value to string","string to value","test constructor argument in expression","init platform prefix","to string 1","test suggest names not in scope"],"options_random":["initPlatformPrefix","testConstructorArgumentInExpression","testSuggestNamesNotInScope"],"options_tfidf":["valueToString","stringToValue","toString1"],"project_name":"intellij-community","source_code_string":"public String toString() {\n return \"Multiplicative expression\";\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":"\"Multiplicative expression\"","start_char":11,"line":1},{"index_id":3,"token_group":3,"text":";","start_char":38,"line":1},{"index_id":4,"token_group":4,"text":"}","start_char":0,"line":2}],"tokens_list":["{","return","\"Multiplicative expression\"",";","}"],"uuid":"276dfa79d9fb4e6d514ebbd7db22a09c"},{"cap_original_tokens":["<SENTENCE_START>","{","return","<id>","boolean","<\/id>",".","<id>","true","<\/id>",".","<id>","equals","<\/id>","(","<id>","c","<\/id>",".","<id>","get","Client","Property","<\/id>","(","<id>","list","Util","<\/id>",".","<id>","selected","By","Mouse","Event","<\/id>",")",")",";","}","<SENTENCE_END\/>"],"file_name":"HintUpdateSupply.java","formatted_lines":["{"," return Boolean.TRUE.equals(c.getClientProperty("," ListUtil.SELECTED_BY_MOUSE_EVENT));","}"],"function_name":"isSelectedByMouse","function_name_tokens":["is","selected","by","mouse"],"id_body_hash":"89a3f0cf1b4c3f28ea2b0caf814381e0","id_same_identifier_list":[0,1,2,3,4,5,6,7,8,9,10,11,11,11,12,13,13,14,15,15,15,15,16,17,18,19,20],"option_correct":"isSelectedByMouse","options":["findNext","addCellToPanel","isSelected","isSelectedByDefault","isInstanceAttributeStub","isPressedByMouse","isSelectedByMouse"],"options_nlp":["find next","add cell to panel","is selected","is selected by default","is instance attribute stub","is pressed by mouse","is selected by mouse"],"options_random":["findNext","addCellToPanel","isInstanceAttributeStub"],"options_tfidf":["isSelected","isSelectedByDefault","isPressedByMouse"],"project_name":"intellij-community","source_code_string":"private static boolean isSelectedByMouse(@NotNull JComponent c) {\n return Boolean.TRUE.equals(c.getClientProperty(ListUtil.SELECTED_BY_MOUSE_EVENT));\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"return","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"boolean","start_char":11,"line":1},{"index_id":3,"token_group":3,"text":".","start_char":18,"line":1},{"index_id":4,"token_group":4,"text":"true","start_char":19,"line":1},{"index_id":5,"token_group":5,"text":".","start_char":23,"line":1},{"index_id":6,"token_group":6,"text":"equals","start_char":24,"line":1},{"index_id":7,"token_group":7,"text":"(","start_char":30,"line":1},{"index_id":8,"token_group":8,"text":"c","start_char":31,"line":1},{"index_id":9,"token_group":9,"text":".","start_char":32,"line":1},{"index_id":10,"token_group":10,"text":"get","start_char":33,"line":1},{"index_id":11,"token_group":11,"text":"Client","start_char":36,"line":1},{"index_id":12,"token_group":11,"text":"Property","start_char":42,"line":1},{"index_id":13,"token_group":11,"text":"(","start_char":50,"line":1},{"index_id":14,"token_group":12,"text":"list","start_char":35,"line":2},{"index_id":15,"token_group":13,"text":"Util","start_char":39,"line":2},{"index_id":16,"token_group":13,"text":".","start_char":43,"line":2},{"index_id":17,"token_group":14,"text":"selected","start_char":44,"line":2},{"index_id":18,"token_group":15,"text":"By","start_char":53,"line":2},{"index_id":19,"token_group":15,"text":"Mouse","start_char":56,"line":2},{"index_id":20,"token_group":15,"text":"Event","start_char":62,"line":2},{"index_id":21,"token_group":15,"text":")","start_char":67,"line":2},{"index_id":22,"token_group":16,"text":")","start_char":68,"line":2},{"index_id":23,"token_group":17,"text":";","start_char":69,"line":2},{"index_id":24,"token_group":18,"text":"}","start_char":0,"line":3}],"tokens_list":["{","return","boolean",".","true",".","equals","(","c",".","get","Client","Property","(","list","Util",".","selected","By","Mouse","Event",")",")",";","}"],"uuid":"558512a504ac585bc99de2d220143bfc"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","spel","Expression","Parser","<\/id>","<id>","parser","<\/id>","=","new","<id>","spel","Expression","Parser","<\/id>","(",")",";","<id>","spel","Expression","<\/id>","<id>","expr","<\/id>","=","<id>","parser","<\/id>",".","<id>","parse","Raw","<\/id>","(","\"2*3\"",")",";","<id>","assert","Not","Null","<\/id>","(","<id>","expr","<\/id>",")",";","<id>","assert","Not","Null","<\/id>","(","<id>","expr","<\/id>",".","<id>","get","Ast","<\/id>","(",")",")",";","<id>","assert","Equals","<\/id>","(","6",",","<id>","expr","<\/id>",".","<id>","get","Value","<\/id>","(",")",")",";","}","<SENTENCE_END\/>"],"file_name":"SpelParserTests.java","formatted_lines":["{"," SpelExpressionParser parser = new SpelExpressionParser();"," SpelExpression expr = parser.parseRaw(\"2*3\");"," assertNotNull(expr);"," assertNotNull(expr.getAST());",""," assertEquals(6, expr.getValue());","}"],"function_name":"arithmeticMultiply1","function_name_tokens":["arithmetic","multiply","1"],"id_body_hash":"47aa0397d6433d96da930b1e758b9bf0","id_same_identifier_list":[0,1,2,2,2,3,4,5,6,6,6,7,8,9,10,10,11,12,13,14,15,15,16,17,18,19,20,20,20,21,22,23,24,25,25,25,26,27,28,29,29,30,31,32,33,34,34,35,36,37,38,39,40,40,41,42,43,44,45,46],"option_correct":"arithmeticMultiply1","options":["getThemeSource","arithmeticMultiply1","getExceptionName","getTypeDescriptors","arithmeticPrecedence2","arithmeticPlus1","opMultiply"],"options_nlp":["get theme source","arithmetic multiply 1","get exception name","get type descriptors","arithmetic precedence 2","arithmetic plus 1","op multiply"],"options_random":["getTypeDescriptors","getThemeSource","getExceptionName"],"options_tfidf":["arithmeticPlus1","arithmeticPrecedence2","opMultiply"],"project_name":"spring-framework","source_code_string":"@Test\n\tpublic void arithmeticMultiply1() throws EvaluationException, ParseException {\n\t\tSpelExpressionParser parser = new SpelExpressionParser();\n\t\tSpelExpression expr = parser.parseRaw(\"2*3\");\n\t\tassertNotNull(expr);\n\t\tassertNotNull(expr.getAST());\n\t\t\n\t\tassertEquals(6, expr.getValue());\n\t}","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"spel","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"Expression","start_char":8,"line":1},{"index_id":3,"token_group":2,"text":"Parser","start_char":18,"line":1},{"index_id":4,"token_group":2,"text":"parser","start_char":25,"line":1},{"index_id":5,"token_group":3,"text":"=","start_char":32,"line":1},{"index_id":6,"token_group":4,"text":"new","start_char":34,"line":1},{"index_id":7,"token_group":5,"text":"spel","start_char":38,"line":1},{"index_id":8,"token_group":6,"text":"Expression","start_char":42,"line":1},{"index_id":9,"token_group":6,"text":"Parser","start_char":52,"line":1},{"index_id":10,"token_group":6,"text":"(","start_char":58,"line":1},{"index_id":11,"token_group":7,"text":")","start_char":59,"line":1},{"index_id":12,"token_group":8,"text":";","start_char":60,"line":1},{"index_id":13,"token_group":9,"text":"spel","start_char":4,"line":2},{"index_id":14,"token_group":10,"text":"Expression","start_char":8,"line":2},{"index_id":15,"token_group":10,"text":"expr","start_char":19,"line":2},{"index_id":16,"token_group":11,"text":"=","start_char":24,"line":2},{"index_id":17,"token_group":12,"text":"parser","start_char":26,"line":2},{"index_id":18,"token_group":13,"text":".","start_char":32,"line":2},{"index_id":19,"token_group":14,"text":"parse","start_char":33,"line":2},{"index_id":20,"token_group":15,"text":"Raw","start_char":38,"line":2},{"index_id":21,"token_group":15,"text":"(","start_char":41,"line":2},{"index_id":22,"token_group":16,"text":"\"2*3\"","start_char":42,"line":2},{"index_id":23,"token_group":17,"text":")","start_char":47,"line":2},{"index_id":24,"token_group":18,"text":";","start_char":48,"line":2},{"index_id":25,"token_group":19,"text":"assert","start_char":4,"line":3},{"index_id":26,"token_group":20,"text":"Not","start_char":10,"line":3},{"index_id":27,"token_group":20,"text":"Null","start_char":13,"line":3},{"index_id":28,"token_group":20,"text":"(","start_char":17,"line":3},{"index_id":29,"token_group":21,"text":"expr","start_char":18,"line":3},{"index_id":30,"token_group":22,"text":")","start_char":22,"line":3},{"index_id":31,"token_group":23,"text":";","start_char":23,"line":3},{"index_id":32,"token_group":24,"text":"assert","start_char":4,"line":4},{"index_id":33,"token_group":25,"text":"Not","start_char":10,"line":4},{"index_id":34,"token_group":25,"text":"Null","start_char":13,"line":4},{"index_id":35,"token_group":25,"text":"(","start_char":17,"line":4},{"index_id":36,"token_group":26,"text":"expr","start_char":18,"line":4},{"index_id":37,"token_group":27,"text":".","start_char":22,"line":4},{"index_id":38,"token_group":28,"text":"get","start_char":23,"line":4},{"index_id":39,"token_group":29,"text":"Ast","start_char":26,"line":4},{"index_id":40,"token_group":29,"text":"(","start_char":29,"line":4},{"index_id":41,"token_group":30,"text":")","start_char":30,"line":4},{"index_id":42,"token_group":31,"text":")","start_char":31,"line":4},{"index_id":43,"token_group":32,"text":";","start_char":32,"line":4},{"index_id":44,"token_group":33,"text":"assert","start_char":4,"line":6},{"index_id":45,"token_group":34,"text":"Equals","start_char":10,"line":6},{"index_id":46,"token_group":34,"text":"(","start_char":16,"line":6},{"index_id":47,"token_group":35,"text":"6","start_char":17,"line":6},{"index_id":48,"token_group":36,"text":",","start_char":18,"line":6},{"index_id":49,"token_group":37,"text":"expr","start_char":20,"line":6},{"index_id":50,"token_group":38,"text":".","start_char":24,"line":6},{"index_id":51,"token_group":39,"text":"get","start_char":25,"line":6},{"index_id":52,"token_group":40,"text":"Value","start_char":28,"line":6},{"index_id":53,"token_group":40,"text":"(","start_char":33,"line":6},{"index_id":54,"token_group":41,"text":")","start_char":34,"line":6},{"index_id":55,"token_group":42,"text":")","start_char":35,"line":6},{"index_id":56,"token_group":43,"text":";","start_char":36,"line":6},{"index_id":57,"token_group":44,"text":"}","start_char":0,"line":7}],"tokens_list":["{","spel","Expression","Parser","parser","=","new","spel","Expression","Parser","(",")",";","spel","Expression","expr","=","parser",".","parse","Raw","(","\"2*3\"",")",";","assert","Not","Null","(","expr",")",";","assert","Not","Null","(","expr",".","get","Ast","(",")",")",";","assert","Equals","(","6",",","expr",".","get","Value","(",")",")",";","}"],"uuid":"a03049e7fe2753a8373ac45870702b3b"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","list","<\/id>","<","<id>","application","Report","<\/id>",">","<id>","reports","<\/id>","=","<id>","client","<\/id>",".","<id>","get","Applications","<\/id>","(",")",";","<id>","assert","<\/id>",".","<id>","assert","True","<\/id>","(","<id>","reports","<\/id>","!=","null","&&","!","<id>","reports","<\/id>",".","<id>","is","Empty","<\/id>","(",")",")",";","<id>","assert","<\/id>",".","<id>","assert","Equals","<\/id>","(","<id>","cluster","<\/id>",".","<id>","create","Fake","App","Reports","<\/id>","(",")",",","<id>","reports","<\/id>",")",";","}","<SENTENCE_END\/>"],"file_name":"TestApplicationClientProtocolOnHA.java","formatted_lines":["{"," List<ApplicationReport> reports ="," client.getApplications();"," Assert.assertTrue(reports != null && !reports.isEmpty());"," Assert.assertEquals(cluster.createFakeAppReports(),"," reports);","}"],"function_name":"testGetApplicationsOnHA","function_name_tokens":["test","get","applications","on","ha"],"id_body_hash":"9e78ef26194a901b6a328ef2b5b71de9","id_same_identifier_list":[0,1,2,3,4,4,5,6,7,8,9,10,10,11,12,13,14,15,16,16,17,18,19,20,21,22,23,24,25,25,26,27,28,29,30,31,32,32,33,34,35,36,36,36,36,37,38,39,40,41,42,43,44],"option_correct":"testGetApplicationsOnHA","options":["createCopyJob","testTimedOutTask","testGetContainersOnHA","getApplications","testGetApplicationsOnHA","testGetApplications","getReplicaInfo"],"options_nlp":["create copy job","test timed out task","test get containers on ha","get applications","test get applications on ha","test get applications","get replica info"],"options_random":["createCopyJob","testTimedOutTask","getReplicaInfo"],"options_tfidf":["testGetContainersOnHA","testGetApplications","getApplications"],"project_name":"hadoop-common","source_code_string":"@Test(timeout = 15000)\n public void testGetApplicationsOnHA() throws Exception {\n List<ApplicationReport> reports =\n client.getApplications();\n Assert.assertTrue(reports != null && !reports.isEmpty());\n Assert.assertEquals(cluster.createFakeAppReports(),\n reports);\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"list","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"<","start_char":8,"line":1},{"index_id":3,"token_group":3,"text":"application","start_char":9,"line":1},{"index_id":4,"token_group":4,"text":"Report","start_char":20,"line":1},{"index_id":5,"token_group":4,"text":">","start_char":26,"line":1},{"index_id":6,"token_group":5,"text":"reports","start_char":28,"line":1},{"index_id":7,"token_group":6,"text":"=","start_char":36,"line":1},{"index_id":8,"token_group":7,"text":"client","start_char":4,"line":2},{"index_id":9,"token_group":8,"text":".","start_char":10,"line":2},{"index_id":10,"token_group":9,"text":"get","start_char":11,"line":2},{"index_id":11,"token_group":10,"text":"Applications","start_char":14,"line":2},{"index_id":12,"token_group":10,"text":"(","start_char":26,"line":2},{"index_id":13,"token_group":11,"text":")","start_char":27,"line":2},{"index_id":14,"token_group":12,"text":";","start_char":28,"line":2},{"index_id":15,"token_group":13,"text":"assert","start_char":4,"line":3},{"index_id":16,"token_group":14,"text":".","start_char":10,"line":3},{"index_id":17,"token_group":15,"text":"assert","start_char":11,"line":3},{"index_id":18,"token_group":16,"text":"True","start_char":17,"line":3},{"index_id":19,"token_group":16,"text":"(","start_char":21,"line":3},{"index_id":20,"token_group":17,"text":"reports","start_char":22,"line":3},{"index_id":21,"token_group":18,"text":"!=","start_char":30,"line":3},{"index_id":22,"token_group":19,"text":"null","start_char":33,"line":3},{"index_id":23,"token_group":20,"text":"&&","start_char":38,"line":3},{"index_id":24,"token_group":21,"text":"!","start_char":41,"line":3},{"index_id":25,"token_group":22,"text":"reports","start_char":42,"line":3},{"index_id":26,"token_group":23,"text":".","start_char":49,"line":3},{"index_id":27,"token_group":24,"text":"is","start_char":50,"line":3},{"index_id":28,"token_group":25,"text":"Empty","start_char":52,"line":3},{"index_id":29,"token_group":25,"text":"(","start_char":57,"line":3},{"index_id":30,"token_group":26,"text":")","start_char":58,"line":3},{"index_id":31,"token_group":27,"text":")","start_char":59,"line":3},{"index_id":32,"token_group":28,"text":";","start_char":60,"line":3},{"index_id":33,"token_group":29,"text":"assert","start_char":4,"line":4},{"index_id":34,"token_group":30,"text":".","start_char":10,"line":4},{"index_id":35,"token_group":31,"text":"assert","start_char":11,"line":4},{"index_id":36,"token_group":32,"text":"Equals","start_char":17,"line":4},{"index_id":37,"token_group":32,"text":"(","start_char":23,"line":4},{"index_id":38,"token_group":33,"text":"cluster","start_char":24,"line":4},{"index_id":39,"token_group":34,"text":".","start_char":31,"line":4},{"index_id":40,"token_group":35,"text":"create","start_char":32,"line":4},{"index_id":41,"token_group":36,"text":"Fake","start_char":38,"line":4},{"index_id":42,"token_group":36,"text":"App","start_char":42,"line":4},{"index_id":43,"token_group":36,"text":"Reports","start_char":45,"line":4},{"index_id":44,"token_group":36,"text":"(","start_char":52,"line":4},{"index_id":45,"token_group":37,"text":")","start_char":53,"line":4},{"index_id":46,"token_group":38,"text":",","start_char":54,"line":4},{"index_id":47,"token_group":39,"text":"reports","start_char":24,"line":5},{"index_id":48,"token_group":40,"text":")","start_char":31,"line":5},{"index_id":49,"token_group":41,"text":";","start_char":32,"line":5},{"index_id":50,"token_group":42,"text":"}","start_char":0,"line":6}],"tokens_list":["{","list","<","application","Report",">","reports","=","client",".","get","Applications","(",")",";","assert",".","assert","True","(","reports","!=","null","&&","!","reports",".","is","Empty","(",")",")",";","assert",".","assert","Equals","(","cluster",".","create","Fake","App","Reports","(",")",",","reports",")",";","}"],"uuid":"6e0d18605a1ad7a15472c1a99e5af85c"},{"cap_original_tokens":["<SENTENCE_START>","{","if","(","<id>","file","<\/id>","Instanceof","<id>","psi","Compiled","Element","<\/id>",")","return","null",";","<id>","application","Manager","<\/id>",".","<id>","get","Application","<\/id>","(",")",".","<id>","assert","Read","Access","Allowed","<\/id>","(",")",";","final","<id>","project","<\/id>","<id>","project","<\/id>","=","<id>","file","<\/id>",".","<id>","get","Project","<\/id>","(",")",";","<id>","document","<\/id>","<id>","document","<\/id>","=","<id>","editor","<\/id>",".","<id>","get","Document","<\/id>","(",")",";","<id>","log","<\/id>",".","<id>","assert","True","<\/id>","(","!","<id>","psi","Document","Manager","<\/id>",".","<id>","get","Instance","<\/id>","(","<id>","project","<\/id>",")",".","<id>","is","Uncommited","<\/id>","(","<id>","document","<\/id>",")",")",";","final","<id>","folding","Model","<\/id>","<id>","folding","Model","<\/id>","=","<id>","editor","<\/id>",".","<id>","get","Folding","Model","<\/id>","(",")",";","final","long","<id>","time","Stamp","<\/id>","=","<id>","document","<\/id>",".","<id>","get","Modification","Stamp","<\/id>","(",")",";","<id>","object","<\/id>","<id>","last","Time","Stamp","<\/id>","=","<id>","editor","<\/id>",".","<id>","get","User","Data","<\/id>","(","<id>","last","Update","Injected","Stamp","Key","<\/id>",")",";","if","(","<id>","last","Time","Stamp","<\/id>","Instanceof","<id>","long","<\/id>","&&","(","(","<id>","long","<\/id>",")","<id>","last","Time","Stamp","<\/id>",")",".","<id>","long","Value","<\/id>","(",")","==","<id>","time","Stamp","<\/id>",")","return","null",";","<id>","list","<\/id>","<","<id>","document","Window","<\/id>",">","<id>","injected","Documents","<\/id>","=","<id>","injected","Language","Util","<\/id>",".","<id>","get","Cached","Injected","Documents","<\/id>","(","<id>","file","<\/id>",")",";","if","(","<id>","injected","Documents","<\/id>",".","<id>","is","Empty","<\/id>","(",")",")","return","null",";","final","<id>","list","<\/id>","<","<id>","editor","Window","<\/id>",">","<id>","injected","Editors","<\/id>","=","new","<id>","array","List","<\/id>","<","<id>","editor","Window","<\/id>",">","(",")",";","final","<id>","list","<\/id>","<","<id>","psi","File","<\/id>",">","<id>","injected","Files","<\/id>","=","new","<id>","array","List","<\/id>","<","<id>","psi","File","<\/id>",">","(",")",";","final","<id>","list","<\/id>","<","<id>","folding","Map","<\/id>",">","<id>","maps","<\/id>","=","new","<id>","array","List","<\/id>","<","<id>","folding","Map","<\/id>",">","(",")",";","for","(","final","<id>","document","Window","<\/id>","<id>","injected","Document","<\/id>",":","<id>","injected","Documents","<\/id>",")","{","if","(","!","<id>","injected","Document","<\/id>",".","<id>","is","Valid","<\/id>","(",")",")","{","continue",";","}","<id>","injected","Language","Util","<\/id>",".","<id>","enumerate","<\/id>","(","<id>","injected","Document","<\/id>",",","<id>","file","<\/id>",",","new","<id>","psi","Language","Injection","Host","<\/id>",".","<id>","injected","Psi","Visitor","<\/id>","(",")","{","@","<id>","override","<\/id>","Public","void","<id>","visit","<\/id>","(","@","<id>","not","Null","<\/id>","<id>","psi","File","<\/id>","<id>","injected","File","<\/id>",",","@","<id>","not","Null","<\/id>","<id>","list","<\/id>","<","<id>","psi","Language","Injection","Host","<\/id>",".","<id>","shred","<\/id>",">","<id>","places","<\/id>",")","{","if","(","!","<id>","injected","File","<\/id>",".","<id>","is","Valid","<\/id>","(",")",")","return",";","<id>","editor","<\/id>","<id>","injected","Editor","<\/id>","=","<id>","injected","Language","Util","<\/id>",".","<id>","get","Injected","Editor","For","Injected","File","<\/id>","(","<id>","editor","<\/id>",",","<id>","injected","File","<\/id>",")",";","if","(","!","(","<id>","injected","Editor","<\/id>","Instanceof","<id>","editor","Window","<\/id>",")",")","return",";","<id>","injected","Editors","<\/id>",".","<id>","add","<\/id>","(","(","<id>","editor","Window","<\/id>",")","<id>","injected","Editor","<\/id>",")",";","<id>","injected","Files","<\/id>",".","<id>","add","<\/id>","(","<id>","injected","File","<\/id>",")",";","final","<id>","folding","Map","<\/id>","<id>","map","<\/id>","=","new","<id>","folding","Map","<\/id>","(",")",";","<id>","maps","<\/id>",".","<id>","add","<\/id>","(","<id>","map","<\/id>",")",";","<id>","get","Foldings","For","<\/id>","(","<id>","injected","File","<\/id>",",","<id>","injected","Editor","<\/id>",".","<id>","get","Document","<\/id>","(",")",",","<id>","map","<\/id>",",","false",")",";","}","}",")",";","}","return","new","<id>","runnable","<\/id>","(",")","{","@","<id>","override","<\/id>","Public","void","<id>","run","<\/id>","(",")","{","final","<id>","array","List","<\/id>","<","<id>","runnable","<\/id>",">","<id>","update","Operations","<\/id>","=","new","<id>","array","List","<\/id>","<","<id>","runnable","<\/id>",">","(","<id>","injected","Editors","<\/id>",".","<id>","size","<\/id>","(",")",")",";","for","(","int","<id>","i","<\/id>","=","0",";","<id>","i","<\/id>","<","<id>","injected","Editors","<\/id>",".","<id>","size","<\/id>","(",")",";","<id>","i","<\/id>","++",")","{","<id>","editor","Window","<\/id>","<id>","injected","Editor","<\/id>","=","<id>","injected","Editors","<\/id>",".","<id>","get","<\/id>","(","<id>","i","<\/id>",")",";","<id>","psi","File","<\/id>","<id>","injected","File","<\/id>","=","<id>","injected","Files","<\/id>",".","<id>","get","<\/id>","(","<id>","i","<\/id>",")",";","if","(","!","<id>","injected","Editor","<\/id>",".","<id>","get","Document","<\/id>","(",")",".","<id>","is","Valid","<\/id>","(",")",")","continue",";","<id>","folding","Map","<\/id>","<id>","map","<\/id>","=","<id>","maps","<\/id>",".","<id>","get","<\/id>","(","<id>","i","<\/id>",")",";","<id>","update","Operations","<\/id>",".","<id>","add","<\/id>","(","new","<id>","update","Fold","Regions","Operation","<\/id>","(","<id>","project","<\/id>",",","<id>","injected","Editor","<\/id>",",","<id>","injected","File","<\/id>",",","<id>","map","<\/id>",",","<id>","apply","Default","State","<\/id>","?","<id>","except","Caret","Region","<\/id>",":","<id>","no","<\/id>",",","!","<id>","apply","Default","State","<\/id>",",","true",")",")",";","}","<id>","folding","Model","<\/id>",".","<id>","run","Batch","Folding","Operation","<\/id>","(","new","<id>","runnable","<\/id>","(",")","{","@","<id>","override","<\/id>","Public","void","<id>","run","<\/id>","(",")","{","for","(","<id>","runnable","<\/id>","<id>","operation","<\/id>",":","<id>","update","Operations","<\/id>",")","{","<id>","operation","<\/id>",".","<id>","run","<\/id>","(",")",";","}","}","}",")",";","<id>","editor","<\/id>",".","<id>","put","User","Data","<\/id>","(","<id>","last","Update","Injected","Stamp","Key","<\/id>",",","<id>","time","Stamp","<\/id>",")",";","}","}",";","}","<SENTENCE_END\/>"],"file_name":"FoldingUpdate.java","formatted_lines":["{"," if (file instanceof PsiCompiledElement) return null;"," ApplicationManager.getApplication().assertReadAccessAllowed();",""," final Project project = file.getProject();"," Document document = editor.getDocument();"," LOG.assertTrue(!PsiDocumentManager.getInstance(project).isUncommited(document));"," final FoldingModel foldingModel = editor.getFoldingModel();",""," final long timeStamp = document.getModificationStamp();"," Object lastTimeStamp = editor.getUserData(LAST_UPDATE_INJECTED_STAMP_KEY);"," if (lastTimeStamp instanceof Long &&"," ((Long)lastTimeStamp).longValue() == timeStamp) return null;",""," List<DocumentWindow> injectedDocuments ="," InjectedLanguageUtil.getCachedInjectedDocuments(file);"," if (injectedDocuments.isEmpty()) return null;"," final List<EditorWindow> injectedEditors = new ArrayList<EditorWindow>();"," final List<PsiFile> injectedFiles = new ArrayList<PsiFile>();"," final List<FoldingMap> maps = new ArrayList<FoldingMap>();"," for (final DocumentWindow injectedDocument : injectedDocuments)"," {"," if (!injectedDocument.isValid())"," {"," continue;"," }"," InjectedLanguageUtil.enumerate(injectedDocument, file,"," new PsiLanguageInjectionHost.InjectedPsiVisitor()"," {"," @Override"," public void visit(@NotNull PsiFile injectedFile,"," @NotNull List<PsiLanguageInjectionHost.Shred> places)"," {"," if (!injectedFile.isValid()) return;"," Editor injectedEditor = InjectedLanguageUtil.getInjectedEditorForInjectedFile("," editor, injectedFile);"," if (!(injectedEditor instanceof EditorWindow)) return;",""," injectedEditors.add((EditorWindow)injectedEditor);"," injectedFiles.add(injectedFile);"," final FoldingMap map = new FoldingMap();"," maps.add(map);"," getFoldingsFor(injectedFile, injectedEditor.getDocument(), map, false);"," }"," });"," }",""," return new Runnable()"," {"," @Override"," public void run()"," {"," final ArrayList<Runnable> updateOperations = new ArrayList<Runnable>"," (injectedEditors.size());"," for (int i = 0; i < injectedEditors.size(); i++)"," {"," EditorWindow injectedEditor = injectedEditors.get(i);"," PsiFile injectedFile = injectedFiles.get(i);"," if (!injectedEditor.getDocument().isValid()) continue;"," FoldingMap map = maps.get(i);"," updateOperations.add(new UpdateFoldRegionsOperation(project, injectedEditor,"," injectedFile, map,"," applyDefaultState ? EXCEPT_CARET_REGION : NO, !applyDefaultState, true));"," }"," foldingModel.runBatchFoldingOperation(new Runnable()"," {"," @Override"," public void run()"," {"," for (Runnable operation : updateOperations)"," {"," operation.run();"," }"," }"," });",""," editor.putUserData(LAST_UPDATE_INJECTED_STAMP_KEY, timeStamp);"," }"," };","}"],"function_name":"updateInjectedFoldRegions","function_name_tokens":["update","injected","fold","regions"],"id_body_hash":"4eda884e097211d4a83688c230e0850c","id_same_identifier_list":[0,1,2,3,4,5,6,6,6,7,8,9,10,11,11,12,13,13,14,15,16,17,17,17,17,18,19,20,21,22,23,24,25,26,27,27,28,29,30,31,32,33,34,35,36,36,37,38,39,40,41,42,42,43,44,45,45,45,46,47,47,48,49,50,51,52,52,53,54,55,56,57,58,59,59,60,60,61,62,63,64,64,64,65,66,67,68,69,70,70,71,72,73,74,74,74,75,76,77,78,79,79,79,80,81,82,83,83,83,84,85,85,85,85,85,86,87,88,89,90,90,90,91,92,93,94,95,96,97,98,98,98,99,100,101,101,102,103,104,105,105,106,107,108,109,110,111,112,112,113,114,114,115,116,116,116,117,118,118,118,118,119,120,121,122,123,124,125,125,126,127,127,128,129,130,131,132,133,134,135,136,137,137,138,139,139,140,141,142,142,143,144,144,145,146,147,148,149,150,151,152,152,153,154,154,155,156,157,157,158,159,159,160,161,162,163,164,165,166,167,167,168,169,170,171,172,172,173,174,174,175,176,177,178,179,180,181,182,182,183,183,184,185,185,186,187,188,189,190,191,191,192,193,193,194,195,196,197,198,199,200,201,201,201,202,203,204,205,205,206,207,208,209,210,210,210,210,211,212,212,212,213,214,215,216,217,218,219,220,221,222,223,223,224,224,225,225,226,227,228,228,229,230,231,231,231,231,232,233,234,235,236,237,238,239,240,241,241,242,243,243,244,245,246,247,248,249,250,250,251,252,252,252,253,254,254,254,254,254,254,255,256,257,258,258,259,260,261,262,263,264,265,265,266,267,267,268,269,270,271,272,272,273,274,275,276,277,277,278,279,279,280,281,282,282,283,284,285,286,286,287,288,289,290,290,291,292,293,294,294,295,296,297,298,299,300,301,302,303,304,305,305,305,306,307,307,308,309,309,310,311,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,340,341,342,343,344,344,345,346,347,347,348,349,350,351,352,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,368,369,370,371,372,373,374,375,376,377,378,378,379,379,380,381,381,382,383,384,385,386,387,388,388,389,389,390,391,391,392,393,394,395,396,397,398,399,400,401,401,402,403,403,404,405,406,407,407,408,409,410,411,412,413,413,414,415,416,417,418,419,420,421,422,423,423,424,425,426,427,428,428,428,428,429,430,431,432,432,433,434,434,435,436,437,438,438,438,439,440,440,440,441,442,443,444,445,445,445,446,447,448,449,450,451,452,452,453,454,454,454,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,473,474,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,489,490,490,490,491,492,492,492,492,492,493,494,494,495,496,497,498,499,500,501],"option_correct":"updateInjectedFoldRegions","options":["doClearFoldRegions","testThrowsList","updateFoldRegions","checkPsiElement","setChildProjects","updateInjectedFoldRegions","addToFold"],"options_nlp":["do clear fold regions","test throws list","update fold regions","check psi element","set child projects","update injected fold regions","add to fold"],"options_random":["setChildProjects","testThrowsList","checkPsiElement"],"options_tfidf":["updateFoldRegions","doClearFoldRegions","addToFold"],"project_name":"intellij-community","source_code_string":"@Nullable\n public static Runnable updateInjectedFoldRegions(@NotNull final Editor editor, @NotNull final PsiFile file, final boolean applyDefaultState) {\n if (file instanceof PsiCompiledElement) return null;\n ApplicationManager.getApplication().assertReadAccessAllowed();\n\n final Project project = file.getProject();\n Document document = editor.getDocument();\n LOG.assertTrue(!PsiDocumentManager.getInstance(project).isUncommited(document));\n final FoldingModel foldingModel = editor.getFoldingModel();\n\n final long timeStamp = document.getModificationStamp();\n Object lastTimeStamp = editor.getUserData(LAST_UPDATE_INJECTED_STAMP_KEY);\n if (lastTimeStamp instanceof Long && ((Long)lastTimeStamp).longValue() == timeStamp) return null;\n\n List<DocumentWindow> injectedDocuments = InjectedLanguageUtil.getCachedInjectedDocuments(file);\n if (injectedDocuments.isEmpty()) return null;\n final List<EditorWindow> injectedEditors = new ArrayList<EditorWindow>();\n final List<PsiFile> injectedFiles = new ArrayList<PsiFile>();\n final List<FoldingMap> maps = new ArrayList<FoldingMap>();\n for (final DocumentWindow injectedDocument : injectedDocuments) {\n if (!injectedDocument.isValid()) {\n continue;\n }\n InjectedLanguageUtil.enumerate(injectedDocument, file, new PsiLanguageInjectionHost.InjectedPsiVisitor() {\n @Override\n public void visit(@NotNull PsiFile injectedFile, @NotNull List<PsiLanguageInjectionHost.Shred> places) {\n if (!injectedFile.isValid()) return;\n Editor injectedEditor = InjectedLanguageUtil.getInjectedEditorForInjectedFile(editor, injectedFile);\n if (!(injectedEditor instanceof EditorWindow)) return;\n\n injectedEditors.add((EditorWindow)injectedEditor);\n injectedFiles.add(injectedFile);\n final FoldingMap map = new FoldingMap();\n maps.add(map);\n getFoldingsFor(injectedFile, injectedEditor.getDocument(), map, false);\n }\n });\n }\n\n return new Runnable() {\n @Override\n public void run() {\n final ArrayList<Runnable> updateOperations = new ArrayList<Runnable>(injectedEditors.size());\n for (int i = 0; i < injectedEditors.size(); i++) {\n EditorWindow injectedEditor = injectedEditors.get(i);\n PsiFile injectedFile = injectedFiles.get(i);\n if (!injectedEditor.getDocument().isValid()) continue;\n FoldingMap map = maps.get(i);\n updateOperations.add(new UpdateFoldRegionsOperation(project, injectedEditor, injectedFile, map,\n applyDefaultState ? EXCEPT_CARET_REGION : NO, !applyDefaultState, true));\n }\n foldingModel.runBatchFoldingOperation(new Runnable() {\n @Override\n public void run() {\n for (Runnable operation : updateOperations) {\n operation.run();\n }\n }\n });\n\n editor.putUserData(LAST_UPDATE_INJECTED_STAMP_KEY, timeStamp);\n }\n };\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"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":"file","start_char":8,"line":1},{"index_id":4,"token_group":4,"text":"Instanceof","start_char":13,"line":1},{"index_id":5,"token_group":5,"text":"psi","start_char":24,"line":1},{"index_id":6,"token_group":6,"text":"Compiled","start_char":27,"line":1},{"index_id":7,"token_group":6,"text":"Element","start_char":35,"line":1},{"index_id":8,"token_group":6,"text":")","start_char":42,"line":1},{"index_id":9,"token_group":7,"text":"return","start_char":44,"line":1},{"index_id":10,"token_group":8,"text":"null","start_char":51,"line":1},{"index_id":11,"token_group":9,"text":";","start_char":55,"line":1},{"index_id":12,"token_group":10,"text":"application","start_char":4,"line":2},{"index_id":13,"token_group":11,"text":"Manager","start_char":15,"line":2},{"index_id":14,"token_group":11,"text":".","start_char":22,"line":2},{"index_id":15,"token_group":12,"text":"get","start_char":23,"line":2},{"index_id":16,"token_group":13,"text":"Application","start_char":26,"line":2},{"index_id":17,"token_group":13,"text":"(","start_char":37,"line":2},{"index_id":18,"token_group":14,"text":")","start_char":38,"line":2},{"index_id":19,"token_group":15,"text":".","start_char":39,"line":2},{"index_id":20,"token_group":16,"text":"assert","start_char":40,"line":2},{"index_id":21,"token_group":17,"text":"Read","start_char":46,"line":2},{"index_id":22,"token_group":17,"text":"Access","start_char":50,"line":2},{"index_id":23,"token_group":17,"text":"Allowed","start_char":56,"line":2},{"index_id":24,"token_group":17,"text":"(","start_char":63,"line":2},{"index_id":25,"token_group":18,"text":")","start_char":64,"line":2},{"index_id":26,"token_group":19,"text":";","start_char":65,"line":2},{"index_id":27,"token_group":20,"text":"final","start_char":4,"line":4},{"index_id":28,"token_group":21,"text":"project","start_char":10,"line":4},{"index_id":29,"token_group":22,"text":"project","start_char":18,"line":4},{"index_id":30,"token_group":23,"text":"=","start_char":26,"line":4},{"index_id":31,"token_group":24,"text":"file","start_char":28,"line":4},{"index_id":32,"token_group":25,"text":".","start_char":32,"line":4},{"index_id":33,"token_group":26,"text":"get","start_char":33,"line":4},{"index_id":34,"token_group":27,"text":"Project","start_char":36,"line":4},{"index_id":35,"token_group":27,"text":"(","start_char":43,"line":4},{"index_id":36,"token_group":28,"text":")","start_char":44,"line":4},{"index_id":37,"token_group":29,"text":";","start_char":45,"line":4},{"index_id":38,"token_group":30,"text":"document","start_char":4,"line":5},{"index_id":39,"token_group":31,"text":"document","start_char":13,"line":5},{"index_id":40,"token_group":32,"text":"=","start_char":22,"line":5},{"index_id":41,"token_group":33,"text":"editor","start_char":24,"line":5},{"index_id":42,"token_group":34,"text":".","start_char":30,"line":5},{"index_id":43,"token_group":35,"text":"get","start_char":31,"line":5},{"index_id":44,"token_group":36,"text":"Document","start_char":34,"line":5},{"index_id":45,"token_group":36,"text":"(","start_char":42,"line":5},{"index_id":46,"token_group":37,"text":")","start_char":43,"line":5},{"index_id":47,"token_group":38,"text":";","start_char":44,"line":5},{"index_id":48,"token_group":39,"text":"log","start_char":4,"line":6},{"index_id":49,"token_group":40,"text":".","start_char":7,"line":6},{"index_id":50,"token_group":41,"text":"assert","start_char":8,"line":6},{"index_id":51,"token_group":42,"text":"True","start_char":14,"line":6},{"index_id":52,"token_group":42,"text":"(","start_char":18,"line":6},{"index_id":53,"token_group":43,"text":"!","start_char":19,"line":6},{"index_id":54,"token_group":44,"text":"psi","start_char":20,"line":6},{"index_id":55,"token_group":45,"text":"Document","start_char":23,"line":6},{"index_id":56,"token_group":45,"text":"Manager","start_char":31,"line":6},{"index_id":57,"token_group":45,"text":".","start_char":38,"line":6},{"index_id":58,"token_group":46,"text":"get","start_char":39,"line":6},{"index_id":59,"token_group":47,"text":"Instance","start_char":42,"line":6},{"index_id":60,"token_group":47,"text":"(","start_char":50,"line":6},{"index_id":61,"token_group":48,"text":"project","start_char":51,"line":6},{"index_id":62,"token_group":49,"text":")","start_char":58,"line":6},{"index_id":63,"token_group":50,"text":".","start_char":59,"line":6},{"index_id":64,"token_group":51,"text":"is","start_char":60,"line":6},{"index_id":65,"token_group":52,"text":"Uncommited","start_char":62,"line":6},{"index_id":66,"token_group":52,"text":"(","start_char":72,"line":6},{"index_id":67,"token_group":53,"text":"document","start_char":73,"line":6},{"index_id":68,"token_group":54,"text":")","start_char":81,"line":6},{"index_id":69,"token_group":55,"text":")","start_char":82,"line":6},{"index_id":70,"token_group":56,"text":";","start_char":83,"line":6},{"index_id":71,"token_group":57,"text":"final","start_char":4,"line":7},{"index_id":72,"token_group":58,"text":"folding","start_char":10,"line":7},{"index_id":73,"token_group":59,"text":"Model","start_char":17,"line":7},{"index_id":74,"token_group":59,"text":"folding","start_char":23,"line":7},{"index_id":75,"token_group":60,"text":"Model","start_char":30,"line":7},{"index_id":76,"token_group":60,"text":"=","start_char":36,"line":7},{"index_id":77,"token_group":61,"text":"editor","start_char":38,"line":7},{"index_id":78,"token_group":62,"text":".","start_char":44,"line":7},{"index_id":79,"token_group":63,"text":"get","start_char":45,"line":7},{"index_id":80,"token_group":64,"text":"Folding","start_char":48,"line":7},{"index_id":81,"token_group":64,"text":"Model","start_char":55,"line":7},{"index_id":82,"token_group":64,"text":"(","start_char":60,"line":7},{"index_id":83,"token_group":65,"text":")","start_char":61,"line":7},{"index_id":84,"token_group":66,"text":";","start_char":62,"line":7},{"index_id":85,"token_group":67,"text":"final","start_char":4,"line":9},{"index_id":86,"token_group":68,"text":"long","start_char":10,"line":9},{"index_id":87,"token_group":69,"text":"time","start_char":15,"line":9},{"index_id":88,"token_group":70,"text":"Stamp","start_char":19,"line":9},{"index_id":89,"token_group":70,"text":"=","start_char":25,"line":9},{"index_id":90,"token_group":71,"text":"document","start_char":27,"line":9},{"index_id":91,"token_group":72,"text":".","start_char":35,"line":9},{"index_id":92,"token_group":73,"text":"get","start_char":36,"line":9},{"index_id":93,"token_group":74,"text":"Modification","start_char":39,"line":9},{"index_id":94,"token_group":74,"text":"Stamp","start_char":51,"line":9},{"index_id":95,"token_group":74,"text":"(","start_char":56,"line":9},{"index_id":96,"token_group":75,"text":")","start_char":57,"line":9},{"index_id":97,"token_group":76,"text":";","start_char":58,"line":9},{"index_id":98,"token_group":77,"text":"object","start_char":4,"line":10},{"index_id":99,"token_group":78,"text":"last","start_char":11,"line":10},{"index_id":100,"token_group":79,"text":"Time","start_char":15,"line":10},{"index_id":101,"token_group":79,"text":"Stamp","start_char":19,"line":10},{"index_id":102,"token_group":79,"text":"=","start_char":25,"line":10},{"index_id":103,"token_group":80,"text":"editor","start_char":27,"line":10},{"index_id":104,"token_group":81,"text":".","start_char":33,"line":10},{"index_id":105,"token_group":82,"text":"get","start_char":34,"line":10},{"index_id":106,"token_group":83,"text":"User","start_char":37,"line":10},{"index_id":107,"token_group":83,"text":"Data","start_char":41,"line":10},{"index_id":108,"token_group":83,"text":"(","start_char":45,"line":10},{"index_id":109,"token_group":84,"text":"last","start_char":46,"line":10},{"index_id":110,"token_group":85,"text":"Update","start_char":51,"line":10},{"index_id":111,"token_group":85,"text":"Injected","start_char":58,"line":10},{"index_id":112,"token_group":85,"text":"Stamp","start_char":67,"line":10},{"index_id":113,"token_group":85,"text":"Key","start_char":73,"line":10},{"index_id":114,"token_group":85,"text":")","start_char":76,"line":10},{"index_id":115,"token_group":86,"text":";","start_char":77,"line":10},{"index_id":116,"token_group":87,"text":"if","start_char":4,"line":11},{"index_id":117,"token_group":88,"text":"(","start_char":7,"line":11},{"index_id":118,"token_group":89,"text":"last","start_char":8,"line":11},{"index_id":119,"token_group":90,"text":"Time","start_char":12,"line":11},{"index_id":120,"token_group":90,"text":"Stamp","start_char":16,"line":11},{"index_id":121,"token_group":90,"text":"Instanceof","start_char":22,"line":11},{"index_id":122,"token_group":91,"text":"long","start_char":33,"line":11},{"index_id":123,"token_group":92,"text":"&&","start_char":38,"line":11},{"index_id":124,"token_group":93,"text":"(","start_char":12,"line":12},{"index_id":125,"token_group":94,"text":"(","start_char":13,"line":12},{"index_id":126,"token_group":95,"text":"long","start_char":14,"line":12},{"index_id":127,"token_group":96,"text":")","start_char":18,"line":12},{"index_id":128,"token_group":97,"text":"last","start_char":19,"line":12},{"index_id":129,"token_group":98,"text":"Time","start_char":23,"line":12},{"index_id":130,"token_group":98,"text":"Stamp","start_char":27,"line":12},{"index_id":131,"token_group":98,"text":")","start_char":32,"line":12},{"index_id":132,"token_group":99,"text":".","start_char":33,"line":12},{"index_id":133,"token_group":100,"text":"long","start_char":34,"line":12},{"index_id":134,"token_group":101,"text":"Value","start_char":38,"line":12},{"index_id":135,"token_group":101,"text":"(","start_char":43,"line":12},{"index_id":136,"token_group":102,"text":")","start_char":44,"line":12},{"index_id":137,"token_group":103,"text":"==","start_char":46,"line":12},{"index_id":138,"token_group":104,"text":"time","start_char":49,"line":12},{"index_id":139,"token_group":105,"text":"Stamp","start_char":53,"line":12},{"index_id":140,"token_group":105,"text":")","start_char":58,"line":12},{"index_id":141,"token_group":106,"text":"return","start_char":60,"line":12},{"index_id":142,"token_group":107,"text":"null","start_char":67,"line":12},{"index_id":143,"token_group":108,"text":";","start_char":71,"line":12},{"index_id":144,"token_group":109,"text":"list","start_char":4,"line":14},{"index_id":145,"token_group":110,"text":"<","start_char":8,"line":14},{"index_id":146,"token_group":111,"text":"document","start_char":9,"line":14},{"index_id":147,"token_group":112,"text":"Window","start_char":17,"line":14},{"index_id":148,"token_group":112,"text":">","start_char":23,"line":14},{"index_id":149,"token_group":113,"text":"injected","start_char":25,"line":14},{"index_id":150,"token_group":114,"text":"Documents","start_char":33,"line":14},{"index_id":151,"token_group":114,"text":"=","start_char":43,"line":14},{"index_id":152,"token_group":115,"text":"injected","start_char":8,"line":15},{"index_id":153,"token_group":116,"text":"Language","start_char":16,"line":15},{"index_id":154,"token_group":116,"text":"Util","start_char":24,"line":15},{"index_id":155,"token_group":116,"text":".","start_char":28,"line":15},{"index_id":156,"token_group":117,"text":"get","start_char":29,"line":15},{"index_id":157,"token_group":118,"text":"Cached","start_char":32,"line":15},{"index_id":158,"token_group":118,"text":"Injected","start_char":38,"line":15},{"index_id":159,"token_group":118,"text":"Documents","start_char":46,"line":15},{"index_id":160,"token_group":118,"text":"(","start_char":55,"line":15},{"index_id":161,"token_group":119,"text":"file","start_char":56,"line":15},{"index_id":162,"token_group":120,"text":")","start_char":60,"line":15},{"index_id":163,"token_group":121,"text":";","start_char":61,"line":15},{"index_id":164,"token_group":122,"text":"if","start_char":4,"line":16},{"index_id":165,"token_group":123,"text":"(","start_char":7,"line":16},{"index_id":166,"token_group":124,"text":"injected","start_char":8,"line":16},{"index_id":167,"token_group":125,"text":"Documents","start_char":16,"line":16},{"index_id":168,"token_group":125,"text":".","start_char":25,"line":16},{"index_id":169,"token_group":126,"text":"is","start_char":26,"line":16},{"index_id":170,"token_group":127,"text":"Empty","start_char":28,"line":16},{"index_id":171,"token_group":127,"text":"(","start_char":33,"line":16},{"index_id":172,"token_group":128,"text":")","start_char":34,"line":16},{"index_id":173,"token_group":129,"text":")","start_char":35,"line":16},{"index_id":174,"token_group":130,"text":"return","start_char":37,"line":16},{"index_id":175,"token_group":131,"text":"null","start_char":44,"line":16},{"index_id":176,"token_group":132,"text":";","start_char":48,"line":16},{"index_id":177,"token_group":133,"text":"final","start_char":4,"line":17},{"index_id":178,"token_group":134,"text":"list","start_char":10,"line":17},{"index_id":179,"token_group":135,"text":"<","start_char":14,"line":17},{"index_id":180,"token_group":136,"text":"editor","start_char":15,"line":17},{"index_id":181,"token_group":137,"text":"Window","start_char":21,"line":17},{"index_id":182,"token_group":137,"text":">","start_char":27,"line":17},{"index_id":183,"token_group":138,"text":"injected","start_char":29,"line":17},{"index_id":184,"token_group":139,"text":"Editors","start_char":37,"line":17},{"index_id":185,"token_group":139,"text":"=","start_char":45,"line":17},{"index_id":186,"token_group":140,"text":"new","start_char":47,"line":17},{"index_id":187,"token_group":141,"text":"array","start_char":51,"line":17},{"index_id":188,"token_group":142,"text":"List","start_char":56,"line":17},{"index_id":189,"token_group":142,"text":"<","start_char":60,"line":17},{"index_id":190,"token_group":143,"text":"editor","start_char":61,"line":17},{"index_id":191,"token_group":144,"text":"Window","start_char":67,"line":17},{"index_id":192,"token_group":144,"text":">","start_char":73,"line":17},{"index_id":193,"token_group":145,"text":"(","start_char":74,"line":17},{"index_id":194,"token_group":146,"text":")","start_char":75,"line":17},{"index_id":195,"token_group":147,"text":";","start_char":76,"line":17},{"index_id":196,"token_group":148,"text":"final","start_char":4,"line":18},{"index_id":197,"token_group":149,"text":"list","start_char":10,"line":18},{"index_id":198,"token_group":150,"text":"<","start_char":14,"line":18},{"index_id":199,"token_group":151,"text":"psi","start_char":15,"line":18},{"index_id":200,"token_group":152,"text":"File","start_char":18,"line":18},{"index_id":201,"token_group":152,"text":">","start_char":22,"line":18},{"index_id":202,"token_group":153,"text":"injected","start_char":24,"line":18},{"index_id":203,"token_group":154,"text":"Files","start_char":32,"line":18},{"index_id":204,"token_group":154,"text":"=","start_char":38,"line":18},{"index_id":205,"token_group":155,"text":"new","start_char":40,"line":18},{"index_id":206,"token_group":156,"text":"array","start_char":44,"line":18},{"index_id":207,"token_group":157,"text":"List","start_char":49,"line":18},{"index_id":208,"token_group":157,"text":"<","start_char":53,"line":18},{"index_id":209,"token_group":158,"text":"psi","start_char":54,"line":18},{"index_id":210,"token_group":159,"text":"File","start_char":57,"line":18},{"index_id":211,"token_group":159,"text":">","start_char":61,"line":18},{"index_id":212,"token_group":160,"text":"(","start_char":62,"line":18},{"index_id":213,"token_group":161,"text":")","start_char":63,"line":18},{"index_id":214,"token_group":162,"text":";","start_char":64,"line":18},{"index_id":215,"token_group":163,"text":"final","start_char":4,"line":19},{"index_id":216,"token_group":164,"text":"list","start_char":10,"line":19},{"index_id":217,"token_group":165,"text":"<","start_char":14,"line":19},{"index_id":218,"token_group":166,"text":"folding","start_char":15,"line":19},{"index_id":219,"token_group":167,"text":"Map","start_char":22,"line":19},{"index_id":220,"token_group":167,"text":">","start_char":25,"line":19},{"index_id":221,"token_group":168,"text":"maps","start_char":27,"line":19},{"index_id":222,"token_group":169,"text":"=","start_char":32,"line":19},{"index_id":223,"token_group":170,"text":"new","start_char":34,"line":19},{"index_id":224,"token_group":171,"text":"array","start_char":38,"line":19},{"index_id":225,"token_group":172,"text":"List","start_char":43,"line":19},{"index_id":226,"token_group":172,"text":"<","start_char":47,"line":19},{"index_id":227,"token_group":173,"text":"folding","start_char":48,"line":19},{"index_id":228,"token_group":174,"text":"Map","start_char":55,"line":19},{"index_id":229,"token_group":174,"text":">","start_char":58,"line":19},{"index_id":230,"token_group":175,"text":"(","start_char":59,"line":19},{"index_id":231,"token_group":176,"text":")","start_char":60,"line":19},{"index_id":232,"token_group":177,"text":";","start_char":61,"line":19},{"index_id":233,"token_group":178,"text":"for","start_char":4,"line":20},{"index_id":234,"token_group":179,"text":"(","start_char":8,"line":20},{"index_id":235,"token_group":180,"text":"final","start_char":9,"line":20},{"index_id":236,"token_group":181,"text":"document","start_char":15,"line":20},{"index_id":237,"token_group":182,"text":"Window","start_char":23,"line":20},{"index_id":238,"token_group":182,"text":"injected","start_char":30,"line":20},{"index_id":239,"token_group":183,"text":"Document","start_char":38,"line":20},{"index_id":240,"token_group":183,"text":":","start_char":47,"line":20},{"index_id":241,"token_group":184,"text":"injected","start_char":49,"line":20},{"index_id":242,"token_group":185,"text":"Documents","start_char":57,"line":20},{"index_id":243,"token_group":185,"text":")","start_char":66,"line":20},{"index_id":244,"token_group":186,"text":"{","start_char":4,"line":21},{"index_id":245,"token_group":187,"text":"if","start_char":8,"line":22},{"index_id":246,"token_group":188,"text":"(","start_char":11,"line":22},{"index_id":247,"token_group":189,"text":"!","start_char":12,"line":22},{"index_id":248,"token_group":190,"text":"injected","start_char":13,"line":22},{"index_id":249,"token_group":191,"text":"Document","start_char":21,"line":22},{"index_id":250,"token_group":191,"text":".","start_char":29,"line":22},{"index_id":251,"token_group":192,"text":"is","start_char":30,"line":22},{"index_id":252,"token_group":193,"text":"Valid","start_char":32,"line":22},{"index_id":253,"token_group":193,"text":"(","start_char":37,"line":22},{"index_id":254,"token_group":194,"text":")","start_char":38,"line":22},{"index_id":255,"token_group":195,"text":")","start_char":39,"line":22},{"index_id":256,"token_group":196,"text":"{","start_char":8,"line":23},{"index_id":257,"token_group":197,"text":"continue","start_char":12,"line":24},{"index_id":258,"token_group":198,"text":";","start_char":20,"line":24},{"index_id":259,"token_group":199,"text":"}","start_char":8,"line":25},{"index_id":260,"token_group":200,"text":"injected","start_char":8,"line":26},{"index_id":261,"token_group":201,"text":"Language","start_char":16,"line":26},{"index_id":262,"token_group":201,"text":"Util","start_char":24,"line":26},{"index_id":263,"token_group":201,"text":".","start_char":28,"line":26},{"index_id":264,"token_group":202,"text":"enumerate","start_char":29,"line":26},{"index_id":265,"token_group":203,"text":"(","start_char":38,"line":26},{"index_id":266,"token_group":204,"text":"injected","start_char":39,"line":26},{"index_id":267,"token_group":205,"text":"Document","start_char":47,"line":26},{"index_id":268,"token_group":205,"text":",","start_char":55,"line":26},{"index_id":269,"token_group":206,"text":"file","start_char":57,"line":26},{"index_id":270,"token_group":207,"text":",","start_char":61,"line":26},{"index_id":271,"token_group":208,"text":"new","start_char":39,"line":27},{"index_id":272,"token_group":209,"text":"psi","start_char":43,"line":27},{"index_id":273,"token_group":210,"text":"Language","start_char":46,"line":27},{"index_id":274,"token_group":210,"text":"Injection","start_char":54,"line":27},{"index_id":275,"token_group":210,"text":"Host","start_char":63,"line":27},{"index_id":276,"token_group":210,"text":".","start_char":67,"line":27},{"index_id":277,"token_group":211,"text":"injected","start_char":68,"line":27},{"index_id":278,"token_group":212,"text":"Psi","start_char":76,"line":27},{"index_id":279,"token_group":212,"text":"Visitor","start_char":79,"line":27},{"index_id":280,"token_group":212,"text":"(","start_char":86,"line":27},{"index_id":281,"token_group":213,"text":")","start_char":87,"line":27},{"index_id":282,"token_group":214,"text":"{","start_char":8,"line":28},{"index_id":283,"token_group":215,"text":"@","start_char":12,"line":29},{"index_id":284,"token_group":216,"text":"override","start_char":13,"line":29},{"index_id":285,"token_group":217,"text":"Public","start_char":12,"line":30},{"index_id":286,"token_group":218,"text":"void","start_char":19,"line":30},{"index_id":287,"token_group":219,"text":"visit","start_char":24,"line":30},{"index_id":288,"token_group":220,"text":"(","start_char":29,"line":30},{"index_id":289,"token_group":221,"text":"@","start_char":30,"line":30},{"index_id":290,"token_group":222,"text":"not","start_char":31,"line":30},{"index_id":291,"token_group":223,"text":"Null","start_char":34,"line":30},{"index_id":292,"token_group":223,"text":"psi","start_char":39,"line":30},{"index_id":293,"token_group":224,"text":"File","start_char":42,"line":30},{"index_id":294,"token_group":224,"text":"injected","start_char":47,"line":30},{"index_id":295,"token_group":225,"text":"File","start_char":55,"line":30},{"index_id":296,"token_group":225,"text":",","start_char":59,"line":30},{"index_id":297,"token_group":226,"text":"@","start_char":30,"line":31},{"index_id":298,"token_group":227,"text":"not","start_char":31,"line":31},{"index_id":299,"token_group":228,"text":"Null","start_char":34,"line":31},{"index_id":300,"token_group":228,"text":"list","start_char":39,"line":31},{"index_id":301,"token_group":229,"text":"<","start_char":43,"line":31},{"index_id":302,"token_group":230,"text":"psi","start_char":44,"line":31},{"index_id":303,"token_group":231,"text":"Language","start_char":47,"line":31},{"index_id":304,"token_group":231,"text":"Injection","start_char":55,"line":31},{"index_id":305,"token_group":231,"text":"Host","start_char":64,"line":31},{"index_id":306,"token_group":231,"text":".","start_char":68,"line":31},{"index_id":307,"token_group":232,"text":"shred","start_char":69,"line":31},{"index_id":308,"token_group":233,"text":">","start_char":74,"line":31},{"index_id":309,"token_group":234,"text":"places","start_char":76,"line":31},{"index_id":310,"token_group":235,"text":")","start_char":82,"line":31},{"index_id":311,"token_group":236,"text":"{","start_char":12,"line":32},{"index_id":312,"token_group":237,"text":"if","start_char":16,"line":33},{"index_id":313,"token_group":238,"text":"(","start_char":19,"line":33},{"index_id":314,"token_group":239,"text":"!","start_char":20,"line":33},{"index_id":315,"token_group":240,"text":"injected","start_char":21,"line":33},{"index_id":316,"token_group":241,"text":"File","start_char":29,"line":33},{"index_id":317,"token_group":241,"text":".","start_char":33,"line":33},{"index_id":318,"token_group":242,"text":"is","start_char":34,"line":33},{"index_id":319,"token_group":243,"text":"Valid","start_char":36,"line":33},{"index_id":320,"token_group":243,"text":"(","start_char":41,"line":33},{"index_id":321,"token_group":244,"text":")","start_char":42,"line":33},{"index_id":322,"token_group":245,"text":")","start_char":43,"line":33},{"index_id":323,"token_group":246,"text":"return","start_char":45,"line":33},{"index_id":324,"token_group":247,"text":";","start_char":51,"line":33},{"index_id":325,"token_group":248,"text":"editor","start_char":16,"line":34},{"index_id":326,"token_group":249,"text":"injected","start_char":23,"line":34},{"index_id":327,"token_group":250,"text":"Editor","start_char":31,"line":34},{"index_id":328,"token_group":250,"text":"=","start_char":38,"line":34},{"index_id":329,"token_group":251,"text":"injected","start_char":40,"line":34},{"index_id":330,"token_group":252,"text":"Language","start_char":48,"line":34},{"index_id":331,"token_group":252,"text":"Util","start_char":56,"line":34},{"index_id":332,"token_group":252,"text":".","start_char":60,"line":34},{"index_id":333,"token_group":253,"text":"get","start_char":61,"line":34},{"index_id":334,"token_group":254,"text":"Injected","start_char":64,"line":34},{"index_id":335,"token_group":254,"text":"Editor","start_char":72,"line":34},{"index_id":336,"token_group":254,"text":"For","start_char":78,"line":34},{"index_id":337,"token_group":254,"text":"Injected","start_char":81,"line":34},{"index_id":338,"token_group":254,"text":"File","start_char":89,"line":34},{"index_id":339,"token_group":254,"text":"(","start_char":93,"line":34},{"index_id":340,"token_group":255,"text":"editor","start_char":44,"line":35},{"index_id":341,"token_group":256,"text":",","start_char":50,"line":35},{"index_id":342,"token_group":257,"text":"injected","start_char":52,"line":35},{"index_id":343,"token_group":258,"text":"File","start_char":60,"line":35},{"index_id":344,"token_group":258,"text":")","start_char":64,"line":35},{"index_id":345,"token_group":259,"text":";","start_char":65,"line":35},{"index_id":346,"token_group":260,"text":"if","start_char":16,"line":36},{"index_id":347,"token_group":261,"text":"(","start_char":19,"line":36},{"index_id":348,"token_group":262,"text":"!","start_char":20,"line":36},{"index_id":349,"token_group":263,"text":"(","start_char":21,"line":36},{"index_id":350,"token_group":264,"text":"injected","start_char":22,"line":36},{"index_id":351,"token_group":265,"text":"Editor","start_char":30,"line":36},{"index_id":352,"token_group":265,"text":"Instanceof","start_char":37,"line":36},{"index_id":353,"token_group":266,"text":"editor","start_char":48,"line":36},{"index_id":354,"token_group":267,"text":"Window","start_char":54,"line":36},{"index_id":355,"token_group":267,"text":")","start_char":60,"line":36},{"index_id":356,"token_group":268,"text":")","start_char":61,"line":36},{"index_id":357,"token_group":269,"text":"return","start_char":63,"line":36},{"index_id":358,"token_group":270,"text":";","start_char":69,"line":36},{"index_id":359,"token_group":271,"text":"injected","start_char":16,"line":38},{"index_id":360,"token_group":272,"text":"Editors","start_char":24,"line":38},{"index_id":361,"token_group":272,"text":".","start_char":31,"line":38},{"index_id":362,"token_group":273,"text":"add","start_char":32,"line":38},{"index_id":363,"token_group":274,"text":"(","start_char":35,"line":38},{"index_id":364,"token_group":275,"text":"(","start_char":36,"line":38},{"index_id":365,"token_group":276,"text":"editor","start_char":37,"line":38},{"index_id":366,"token_group":277,"text":"Window","start_char":43,"line":38},{"index_id":367,"token_group":277,"text":")","start_char":49,"line":38},{"index_id":368,"token_group":278,"text":"injected","start_char":50,"line":38},{"index_id":369,"token_group":279,"text":"Editor","start_char":58,"line":38},{"index_id":370,"token_group":279,"text":")","start_char":64,"line":38},{"index_id":371,"token_group":280,"text":";","start_char":65,"line":38},{"index_id":372,"token_group":281,"text":"injected","start_char":16,"line":39},{"index_id":373,"token_group":282,"text":"Files","start_char":24,"line":39},{"index_id":374,"token_group":282,"text":".","start_char":29,"line":39},{"index_id":375,"token_group":283,"text":"add","start_char":30,"line":39},{"index_id":376,"token_group":284,"text":"(","start_char":33,"line":39},{"index_id":377,"token_group":285,"text":"injected","start_char":34,"line":39},{"index_id":378,"token_group":286,"text":"File","start_char":42,"line":39},{"index_id":379,"token_group":286,"text":")","start_char":46,"line":39},{"index_id":380,"token_group":287,"text":";","start_char":47,"line":39},{"index_id":381,"token_group":288,"text":"final","start_char":16,"line":40},{"index_id":382,"token_group":289,"text":"folding","start_char":22,"line":40},{"index_id":383,"token_group":290,"text":"Map","start_char":29,"line":40},{"index_id":384,"token_group":290,"text":"map","start_char":33,"line":40},{"index_id":385,"token_group":291,"text":"=","start_char":37,"line":40},{"index_id":386,"token_group":292,"text":"new","start_char":39,"line":40},{"index_id":387,"token_group":293,"text":"folding","start_char":43,"line":40},{"index_id":388,"token_group":294,"text":"Map","start_char":50,"line":40},{"index_id":389,"token_group":294,"text":"(","start_char":53,"line":40},{"index_id":390,"token_group":295,"text":")","start_char":54,"line":40},{"index_id":391,"token_group":296,"text":";","start_char":55,"line":40},{"index_id":392,"token_group":297,"text":"maps","start_char":16,"line":41},{"index_id":393,"token_group":298,"text":".","start_char":20,"line":41},{"index_id":394,"token_group":299,"text":"add","start_char":21,"line":41},{"index_id":395,"token_group":300,"text":"(","start_char":24,"line":41},{"index_id":396,"token_group":301,"text":"map","start_char":25,"line":41},{"index_id":397,"token_group":302,"text":")","start_char":28,"line":41},{"index_id":398,"token_group":303,"text":";","start_char":29,"line":41},{"index_id":399,"token_group":304,"text":"get","start_char":16,"line":42},{"index_id":400,"token_group":305,"text":"Foldings","start_char":19,"line":42},{"index_id":401,"token_group":305,"text":"For","start_char":27,"line":42},{"index_id":402,"token_group":305,"text":"(","start_char":30,"line":42},{"index_id":403,"token_group":306,"text":"injected","start_char":31,"line":42},{"index_id":404,"token_group":307,"text":"File","start_char":39,"line":42},{"index_id":405,"token_group":307,"text":",","start_char":43,"line":42},{"index_id":406,"token_group":308,"text":"injected","start_char":45,"line":42},{"index_id":407,"token_group":309,"text":"Editor","start_char":53,"line":42},{"index_id":408,"token_group":309,"text":".","start_char":59,"line":42},{"index_id":409,"token_group":310,"text":"get","start_char":60,"line":42},{"index_id":410,"token_group":311,"text":"Document","start_char":63,"line":42},{"index_id":411,"token_group":311,"text":"(","start_char":71,"line":42},{"index_id":412,"token_group":312,"text":")","start_char":72,"line":42},{"index_id":413,"token_group":313,"text":",","start_char":73,"line":42},{"index_id":414,"token_group":314,"text":"map","start_char":75,"line":42},{"index_id":415,"token_group":315,"text":",","start_char":78,"line":42},{"index_id":416,"token_group":316,"text":"false","start_char":80,"line":42},{"index_id":417,"token_group":317,"text":")","start_char":85,"line":42},{"index_id":418,"token_group":318,"text":";","start_char":86,"line":42},{"index_id":419,"token_group":319,"text":"}","start_char":12,"line":43},{"index_id":420,"token_group":320,"text":"}","start_char":8,"line":44},{"index_id":421,"token_group":321,"text":")","start_char":9,"line":44},{"index_id":422,"token_group":322,"text":";","start_char":10,"line":44},{"index_id":423,"token_group":323,"text":"}","start_char":4,"line":45},{"index_id":424,"token_group":324,"text":"return","start_char":4,"line":47},{"index_id":425,"token_group":325,"text":"new","start_char":11,"line":47},{"index_id":426,"token_group":326,"text":"runnable","start_char":15,"line":47},{"index_id":427,"token_group":327,"text":"(","start_char":23,"line":47},{"index_id":428,"token_group":328,"text":")","start_char":24,"line":47},{"index_id":429,"token_group":329,"text":"{","start_char":4,"line":48},{"index_id":430,"token_group":330,"text":"@","start_char":8,"line":49},{"index_id":431,"token_group":331,"text":"override","start_char":9,"line":49},{"index_id":432,"token_group":332,"text":"Public","start_char":8,"line":50},{"index_id":433,"token_group":333,"text":"void","start_char":15,"line":50},{"index_id":434,"token_group":334,"text":"run","start_char":20,"line":50},{"index_id":435,"token_group":335,"text":"(","start_char":23,"line":50},{"index_id":436,"token_group":336,"text":")","start_char":24,"line":50},{"index_id":437,"token_group":337,"text":"{","start_char":8,"line":51},{"index_id":438,"token_group":338,"text":"final","start_char":12,"line":52},{"index_id":439,"token_group":339,"text":"array","start_char":18,"line":52},{"index_id":440,"token_group":340,"text":"List","start_char":23,"line":52},{"index_id":441,"token_group":340,"text":"<","start_char":27,"line":52},{"index_id":442,"token_group":341,"text":"runnable","start_char":28,"line":52},{"index_id":443,"token_group":342,"text":">","start_char":36,"line":52},{"index_id":444,"token_group":343,"text":"update","start_char":38,"line":52},{"index_id":445,"token_group":344,"text":"Operations","start_char":44,"line":52},{"index_id":446,"token_group":344,"text":"=","start_char":55,"line":52},{"index_id":447,"token_group":345,"text":"new","start_char":57,"line":52},{"index_id":448,"token_group":346,"text":"array","start_char":61,"line":52},{"index_id":449,"token_group":347,"text":"List","start_char":66,"line":52},{"index_id":450,"token_group":347,"text":"<","start_char":70,"line":52},{"index_id":451,"token_group":348,"text":"runnable","start_char":71,"line":52},{"index_id":452,"token_group":349,"text":">","start_char":79,"line":52},{"index_id":453,"token_group":350,"text":"(","start_char":12,"line":53},{"index_id":454,"token_group":351,"text":"injected","start_char":13,"line":53},{"index_id":455,"token_group":352,"text":"Editors","start_char":21,"line":53},{"index_id":456,"token_group":352,"text":".","start_char":28,"line":53},{"index_id":457,"token_group":353,"text":"size","start_char":29,"line":53},{"index_id":458,"token_group":354,"text":"(","start_char":33,"line":53},{"index_id":459,"token_group":355,"text":")","start_char":34,"line":53},{"index_id":460,"token_group":356,"text":")","start_char":35,"line":53},{"index_id":461,"token_group":357,"text":";","start_char":36,"line":53},{"index_id":462,"token_group":358,"text":"for","start_char":12,"line":54},{"index_id":463,"token_group":359,"text":"(","start_char":16,"line":54},{"index_id":464,"token_group":360,"text":"int","start_char":17,"line":54},{"index_id":465,"token_group":361,"text":"i","start_char":21,"line":54},{"index_id":466,"token_group":362,"text":"=","start_char":23,"line":54},{"index_id":467,"token_group":363,"text":"0","start_char":25,"line":54},{"index_id":468,"token_group":364,"text":";","start_char":26,"line":54},{"index_id":469,"token_group":365,"text":"i","start_char":28,"line":54},{"index_id":470,"token_group":366,"text":"<","start_char":30,"line":54},{"index_id":471,"token_group":367,"text":"injected","start_char":32,"line":54},{"index_id":472,"token_group":368,"text":"Editors","start_char":40,"line":54},{"index_id":473,"token_group":368,"text":".","start_char":47,"line":54},{"index_id":474,"token_group":369,"text":"size","start_char":48,"line":54},{"index_id":475,"token_group":370,"text":"(","start_char":52,"line":54},{"index_id":476,"token_group":371,"text":")","start_char":53,"line":54},{"index_id":477,"token_group":372,"text":";","start_char":54,"line":54},{"index_id":478,"token_group":373,"text":"i","start_char":56,"line":54},{"index_id":479,"token_group":374,"text":"++","start_char":57,"line":54},{"index_id":480,"token_group":375,"text":")","start_char":59,"line":54},{"index_id":481,"token_group":376,"text":"{","start_char":12,"line":55},{"index_id":482,"token_group":377,"text":"editor","start_char":16,"line":56},{"index_id":483,"token_group":378,"text":"Window","start_char":22,"line":56},{"index_id":484,"token_group":378,"text":"injected","start_char":29,"line":56},{"index_id":485,"token_group":379,"text":"Editor","start_char":37,"line":56},{"index_id":486,"token_group":379,"text":"=","start_char":44,"line":56},{"index_id":487,"token_group":380,"text":"injected","start_char":46,"line":56},{"index_id":488,"token_group":381,"text":"Editors","start_char":54,"line":56},{"index_id":489,"token_group":381,"text":".","start_char":61,"line":56},{"index_id":490,"token_group":382,"text":"get","start_char":62,"line":56},{"index_id":491,"token_group":383,"text":"(","start_char":65,"line":56},{"index_id":492,"token_group":384,"text":"i","start_char":66,"line":56},{"index_id":493,"token_group":385,"text":")","start_char":67,"line":56},{"index_id":494,"token_group":386,"text":";","start_char":68,"line":56},{"index_id":495,"token_group":387,"text":"psi","start_char":16,"line":57},{"index_id":496,"token_group":388,"text":"File","start_char":19,"line":57},{"index_id":497,"token_group":388,"text":"injected","start_char":24,"line":57},{"index_id":498,"token_group":389,"text":"File","start_char":32,"line":57},{"index_id":499,"token_group":389,"text":"=","start_char":37,"line":57},{"index_id":500,"token_group":390,"text":"injected","start_char":39,"line":57},{"index_id":501,"token_group":391,"text":"Files","start_char":47,"line":57},{"index_id":502,"token_group":391,"text":".","start_char":52,"line":57},{"index_id":503,"token_group":392,"text":"get","start_char":53,"line":57},{"index_id":504,"token_group":393,"text":"(","start_char":56,"line":57},{"index_id":505,"token_group":394,"text":"i","start_char":57,"line":57},{"index_id":506,"token_group":395,"text":")","start_char":58,"line":57},{"index_id":507,"token_group":396,"text":";","start_char":59,"line":57},{"index_id":508,"token_group":397,"text":"if","start_char":16,"line":58},{"index_id":509,"token_group":398,"text":"(","start_char":19,"line":58},{"index_id":510,"token_group":399,"text":"!","start_char":20,"line":58},{"index_id":511,"token_group":400,"text":"injected","start_char":21,"line":58},{"index_id":512,"token_group":401,"text":"Editor","start_char":29,"line":58},{"index_id":513,"token_group":401,"text":".","start_char":35,"line":58},{"index_id":514,"token_group":402,"text":"get","start_char":36,"line":58},{"index_id":515,"token_group":403,"text":"Document","start_char":39,"line":58},{"index_id":516,"token_group":403,"text":"(","start_char":47,"line":58},{"index_id":517,"token_group":404,"text":")","start_char":48,"line":58},{"index_id":518,"token_group":405,"text":".","start_char":49,"line":58},{"index_id":519,"token_group":406,"text":"is","start_char":50,"line":58},{"index_id":520,"token_group":407,"text":"Valid","start_char":52,"line":58},{"index_id":521,"token_group":407,"text":"(","start_char":57,"line":58},{"index_id":522,"token_group":408,"text":")","start_char":58,"line":58},{"index_id":523,"token_group":409,"text":")","start_char":59,"line":58},{"index_id":524,"token_group":410,"text":"continue","start_char":61,"line":58},{"index_id":525,"token_group":411,"text":";","start_char":69,"line":58},{"index_id":526,"token_group":412,"text":"folding","start_char":16,"line":59},{"index_id":527,"token_group":413,"text":"Map","start_char":23,"line":59},{"index_id":528,"token_group":413,"text":"map","start_char":27,"line":59},{"index_id":529,"token_group":414,"text":"=","start_char":31,"line":59},{"index_id":530,"token_group":415,"text":"maps","start_char":33,"line":59},{"index_id":531,"token_group":416,"text":".","start_char":37,"line":59},{"index_id":532,"token_group":417,"text":"get","start_char":38,"line":59},{"index_id":533,"token_group":418,"text":"(","start_char":41,"line":59},{"index_id":534,"token_group":419,"text":"i","start_char":42,"line":59},{"index_id":535,"token_group":420,"text":")","start_char":43,"line":59},{"index_id":536,"token_group":421,"text":";","start_char":44,"line":59},{"index_id":537,"token_group":422,"text":"update","start_char":16,"line":60},{"index_id":538,"token_group":423,"text":"Operations","start_char":22,"line":60},{"index_id":539,"token_group":423,"text":".","start_char":32,"line":60},{"index_id":540,"token_group":424,"text":"add","start_char":33,"line":60},{"index_id":541,"token_group":425,"text":"(","start_char":36,"line":60},{"index_id":542,"token_group":426,"text":"new","start_char":37,"line":60},{"index_id":543,"token_group":427,"text":"update","start_char":41,"line":60},{"index_id":544,"token_group":428,"text":"Fold","start_char":47,"line":60},{"index_id":545,"token_group":428,"text":"Regions","start_char":51,"line":60},{"index_id":546,"token_group":428,"text":"Operation","start_char":58,"line":60},{"index_id":547,"token_group":428,"text":"(","start_char":67,"line":60},{"index_id":548,"token_group":429,"text":"project","start_char":68,"line":60},{"index_id":549,"token_group":430,"text":",","start_char":75,"line":60},{"index_id":550,"token_group":431,"text":"injected","start_char":77,"line":60},{"index_id":551,"token_group":432,"text":"Editor","start_char":85,"line":60},{"index_id":552,"token_group":432,"text":",","start_char":91,"line":60},{"index_id":553,"token_group":433,"text":"injected","start_char":37,"line":61},{"index_id":554,"token_group":434,"text":"File","start_char":45,"line":61},{"index_id":555,"token_group":434,"text":",","start_char":49,"line":61},{"index_id":556,"token_group":435,"text":"map","start_char":51,"line":61},{"index_id":557,"token_group":436,"text":",","start_char":54,"line":61},{"index_id":558,"token_group":437,"text":"apply","start_char":37,"line":62},{"index_id":559,"token_group":438,"text":"Default","start_char":42,"line":62},{"index_id":560,"token_group":438,"text":"State","start_char":49,"line":62},{"index_id":561,"token_group":438,"text":"?","start_char":55,"line":62},{"index_id":562,"token_group":439,"text":"except","start_char":57,"line":62},{"index_id":563,"token_group":440,"text":"Caret","start_char":64,"line":62},{"index_id":564,"token_group":440,"text":"Region","start_char":70,"line":62},{"index_id":565,"token_group":440,"text":":","start_char":77,"line":62},{"index_id":566,"token_group":441,"text":"no","start_char":79,"line":62},{"index_id":567,"token_group":442,"text":",","start_char":81,"line":62},{"index_id":568,"token_group":443,"text":"!","start_char":83,"line":62},{"index_id":569,"token_group":444,"text":"apply","start_char":84,"line":62},{"index_id":570,"token_group":445,"text":"Default","start_char":89,"line":62},{"index_id":571,"token_group":445,"text":"State","start_char":96,"line":62},{"index_id":572,"token_group":445,"text":",","start_char":101,"line":62},{"index_id":573,"token_group":446,"text":"true","start_char":103,"line":62},{"index_id":574,"token_group":447,"text":")","start_char":107,"line":62},{"index_id":575,"token_group":448,"text":")","start_char":108,"line":62},{"index_id":576,"token_group":449,"text":";","start_char":109,"line":62},{"index_id":577,"token_group":450,"text":"}","start_char":12,"line":63},{"index_id":578,"token_group":451,"text":"folding","start_char":12,"line":64},{"index_id":579,"token_group":452,"text":"Model","start_char":19,"line":64},{"index_id":580,"token_group":452,"text":".","start_char":24,"line":64},{"index_id":581,"token_group":453,"text":"run","start_char":25,"line":64},{"index_id":582,"token_group":454,"text":"Batch","start_char":28,"line":64},{"index_id":583,"token_group":454,"text":"Folding","start_char":33,"line":64},{"index_id":584,"token_group":454,"text":"Operation","start_char":40,"line":64},{"index_id":585,"token_group":454,"text":"(","start_char":49,"line":64},{"index_id":586,"token_group":455,"text":"new","start_char":50,"line":64},{"index_id":587,"token_group":456,"text":"runnable","start_char":54,"line":64},{"index_id":588,"token_group":457,"text":"(","start_char":62,"line":64},{"index_id":589,"token_group":458,"text":")","start_char":63,"line":64},{"index_id":590,"token_group":459,"text":"{","start_char":12,"line":65},{"index_id":591,"token_group":460,"text":"@","start_char":16,"line":66},{"index_id":592,"token_group":461,"text":"override","start_char":17,"line":66},{"index_id":593,"token_group":462,"text":"Public","start_char":16,"line":67},{"index_id":594,"token_group":463,"text":"void","start_char":23,"line":67},{"index_id":595,"token_group":464,"text":"run","start_char":28,"line":67},{"index_id":596,"token_group":465,"text":"(","start_char":31,"line":67},{"index_id":597,"token_group":466,"text":")","start_char":32,"line":67},{"index_id":598,"token_group":467,"text":"{","start_char":16,"line":68},{"index_id":599,"token_group":468,"text":"for","start_char":20,"line":69},{"index_id":600,"token_group":469,"text":"(","start_char":24,"line":69},{"index_id":601,"token_group":470,"text":"runnable","start_char":25,"line":69},{"index_id":602,"token_group":471,"text":"operation","start_char":34,"line":69},{"index_id":603,"token_group":472,"text":":","start_char":44,"line":69},{"index_id":604,"token_group":473,"text":"update","start_char":46,"line":69},{"index_id":605,"token_group":474,"text":"Operations","start_char":52,"line":69},{"index_id":606,"token_group":474,"text":")","start_char":62,"line":69},{"index_id":607,"token_group":475,"text":"{","start_char":20,"line":70},{"index_id":608,"token_group":476,"text":"operation","start_char":24,"line":71},{"index_id":609,"token_group":477,"text":".","start_char":33,"line":71},{"index_id":610,"token_group":478,"text":"run","start_char":34,"line":71},{"index_id":611,"token_group":479,"text":"(","start_char":37,"line":71},{"index_id":612,"token_group":480,"text":")","start_char":38,"line":71},{"index_id":613,"token_group":481,"text":";","start_char":39,"line":71},{"index_id":614,"token_group":482,"text":"}","start_char":20,"line":72},{"index_id":615,"token_group":483,"text":"}","start_char":16,"line":73},{"index_id":616,"token_group":484,"text":"}","start_char":12,"line":74},{"index_id":617,"token_group":485,"text":")","start_char":13,"line":74},{"index_id":618,"token_group":486,"text":";","start_char":14,"line":74},{"index_id":619,"token_group":487,"text":"editor","start_char":12,"line":76},{"index_id":620,"token_group":488,"text":".","start_char":18,"line":76},{"index_id":621,"token_group":489,"text":"put","start_char":19,"line":76},{"index_id":622,"token_group":490,"text":"User","start_char":22,"line":76},{"index_id":623,"token_group":490,"text":"Data","start_char":26,"line":76},{"index_id":624,"token_group":490,"text":"(","start_char":30,"line":76},{"index_id":625,"token_group":491,"text":"last","start_char":31,"line":76},{"index_id":626,"token_group":492,"text":"Update","start_char":36,"line":76},{"index_id":627,"token_group":492,"text":"Injected","start_char":43,"line":76},{"index_id":628,"token_group":492,"text":"Stamp","start_char":52,"line":76},{"index_id":629,"token_group":492,"text":"Key","start_char":58,"line":76},{"index_id":630,"token_group":492,"text":",","start_char":61,"line":76},{"index_id":631,"token_group":493,"text":"time","start_char":63,"line":76},{"index_id":632,"token_group":494,"text":"Stamp","start_char":67,"line":76},{"index_id":633,"token_group":494,"text":")","start_char":72,"line":76},{"index_id":634,"token_group":495,"text":";","start_char":73,"line":76},{"index_id":635,"token_group":496,"text":"}","start_char":8,"line":77},{"index_id":636,"token_group":497,"text":"}","start_char":4,"line":78},{"index_id":637,"token_group":498,"text":";","start_char":5,"line":78},{"index_id":638,"token_group":499,"text":"}","start_char":0,"line":79}],"tokens_list":["{","if","(","file","Instanceof","psi","Compiled","Element",")","return","null",";","application","Manager",".","get","Application","(",")",".","assert","Read","Access","Allowed","(",")",";","final","project","project","=","file",".","get","Project","(",")",";","document","document","=","editor",".","get","Document","(",")",";","log",".","assert","True","(","!","psi","Document","Manager",".","get","Instance","(","project",")",".","is","Uncommited","(","document",")",")",";","final","folding","Model","folding","Model","=","editor",".","get","Folding","Model","(",")",";","final","long","time","Stamp","=","document",".","get","Modification","Stamp","(",")",";","object","last","Time","Stamp","=","editor",".","get","User","Data","(","last","Update","Injected","Stamp","Key",")",";","if","(","last","Time","Stamp","Instanceof","long","&&","(","(","long",")","last","Time","Stamp",")",".","long","Value","(",")","==","time","Stamp",")","return","null",";","list","<","document","Window",">","injected","Documents","=","injected","Language","Util",".","get","Cached","Injected","Documents","(","file",")",";","if","(","injected","Documents",".","is","Empty","(",")",")","return","null",";","final","list","<","editor","Window",">","injected","Editors","=","new","array","List","<","editor","Window",">","(",")",";","final","list","<","psi","File",">","injected","Files","=","new","array","List","<","psi","File",">","(",")",";","final","list","<","folding","Map",">","maps","=","new","array","List","<","folding","Map",">","(",")",";","for","(","final","document","Window","injected","Document",":","injected","Documents",")","{","if","(","!","injected","Document",".","is","Valid","(",")",")","{","continue",";","}","injected","Language","Util",".","enumerate","(","injected","Document",",","file",",","new","psi","Language","Injection","Host",".","injected","Psi","Visitor","(",")","{","@","override","Public","void","visit","(","@","not","Null","psi","File","injected","File",",","@","not","Null","list","<","psi","Language","Injection","Host",".","shred",">","places",")","{","if","(","!","injected","File",".","is","Valid","(",")",")","return",";","editor","injected","Editor","=","injected","Language","Util",".","get","Injected","Editor","For","Injected","File","(","editor",",","injected","File",")",";","if","(","!","(","injected","Editor","Instanceof","editor","Window",")",")","return",";","injected","Editors",".","add","(","(","editor","Window",")","injected","Editor",")",";","injected","Files",".","add","(","injected","File",")",";","final","folding","Map","map","=","new","folding","Map","(",")",";","maps",".","add","(","map",")",";","get","Foldings","For","(","injected","File",",","injected","Editor",".","get","Document","(",")",",","map",",","false",")",";","}","}",")",";","}","return","new","runnable","(",")","{","@","override","Public","void","run","(",")","{","final","array","List","<","runnable",">","update","Operations","=","new","array","List","<","runnable",">","(","injected","Editors",".","size","(",")",")",";","for","(","int","i","=","0",";","i","<","injected","Editors",".","size","(",")",";","i","++",")","{","editor","Window","injected","Editor","=","injected","Editors",".","get","(","i",")",";","psi","File","injected","File","=","injected","Files",".","get","(","i",")",";","if","(","!","injected","Editor",".","get","Document","(",")",".","is","Valid","(",")",")","continue",";","folding","Map","map","=","maps",".","get","(","i",")",";","update","Operations",".","add","(","new","update","Fold","Regions","Operation","(","project",",","injected","Editor",",","injected","File",",","map",",","apply","Default","State","?","except","Caret","Region",":","no",",","!","apply","Default","State",",","true",")",")",";","}","folding","Model",".","run","Batch","Folding","Operation","(","new","runnable","(",")","{","@","override","Public","void","run","(",")","{","for","(","runnable","operation",":","update","Operations",")","{","operation",".","run","(",")",";","}","}","}",")",";","editor",".","put","User","Data","(","last","Update","Injected","Stamp","Key",",","time","Stamp",")",";","}","}",";","}"],"uuid":"b6d688f50e0e81963237b65a07f02945"},{"cap_original_tokens":["<SENTENCE_START>","{","return","new","<id>","symbol","<\/id>","(","<id>","id","<\/id>",",","<id>","left","<\/id>",",","<id>","right","<\/id>",",","<id>","value","<\/id>",")",";","}","<SENTENCE_END\/>"],"file_name":"DefaultSymbolFactory.java","formatted_lines":["{"," return new Symbol(id, left, right, value);","}"],"function_name":"newSymbol","function_name_tokens":["new","symbol"],"id_body_hash":"c53b0b11b2c91c27c4b54ad1151b3d3c","id_same_identifier_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],"option_correct":"newSymbol","options":["newMethod","setToolActionId","newA","checkSymbolNames","newSymbol","getLibrarySourceDir","getFirst"],"options_nlp":["new method","set tool action id","new a","check symbol names","new symbol","get library source dir","get first"],"options_random":["getLibrarySourceDir","setToolActionId","getFirst"],"options_tfidf":["checkSymbolNames","newMethod","newA"],"project_name":"intellij-community","source_code_string":"public Symbol newSymbol(String name, int id, int left, int right, Object value){\n return new Symbol(id,left,right,value);\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":"symbol","start_char":15,"line":1},{"index_id":4,"token_group":4,"text":"(","start_char":21,"line":1},{"index_id":5,"token_group":5,"text":"id","start_char":22,"line":1},{"index_id":6,"token_group":6,"text":",","start_char":24,"line":1},{"index_id":7,"token_group":7,"text":"left","start_char":26,"line":1},{"index_id":8,"token_group":8,"text":",","start_char":30,"line":1},{"index_id":9,"token_group":9,"text":"right","start_char":32,"line":1},{"index_id":10,"token_group":10,"text":",","start_char":37,"line":1},{"index_id":11,"token_group":11,"text":"value","start_char":39,"line":1},{"index_id":12,"token_group":12,"text":")","start_char":44,"line":1},{"index_id":13,"token_group":13,"text":";","start_char":45,"line":1},{"index_id":14,"token_group":14,"text":"}","start_char":0,"line":2}],"tokens_list":["{","return","new","symbol","(","id",",","left",",","right",",","value",")",";","}"],"uuid":"3643c801fa3c9f19acda08ff0ecfaece"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","synchronous","Destination","<\/id>","<id>","synchronous","Destination","<\/id>","=","new","<id>","synchronous","Destination","<\/id>","(",")",";","<id>","synchronous","Destination","<\/id>",".","<id>","set","Name","<\/id>","(","\"testSynchronousDestination\"",")",";","<id>","synchronous","Destination","<\/id>",".","<id>","after","Properties","Set","<\/id>","(",")",";","<id>","synchronous","Destination","<\/id>",".","<id>","open","<\/id>","(",")",";","<id>","do","Test","Send","<\/id>","(","<id>","synchronous","Destination","<\/id>",")",";","}","<SENTENCE_END\/>"],"file_name":"DefaultSynchronousMessageSenderTest.java","formatted_lines":["{"," SynchronousDestination synchronousDestination ="," new SynchronousDestination();",""," synchronousDestination.setName(\"testSynchronousDestination\");",""," synchronousDestination.afterPropertiesSet();",""," synchronousDestination.open();",""," doTestSend(synchronousDestination);","}"],"function_name":"testSendToSynchronousDestination","function_name_tokens":["test","send","to","synchronous","destination"],"id_body_hash":"84545e516b0cd4612a2afc1859d3900e","id_same_identifier_list":[0,1,2,2,3,3,4,5,6,6,7,8,9,10,10,11,12,12,13,14,15,16,17,17,18,19,19,19,20,21,22,23,23,24,25,26,27,28,29,29,29,30,31,31,32,33,34,35],"option_correct":"testSendToSynchronousDestination","options":["_filterAssetTagNamesAssetEntries","testSendToAsyncDestination","setReverse","setSocialActivitySettingService","send","testSendToSynchronousDestination","_replaceWithSynchronousDestination"],"options_nlp":[" filter asset tag names asset entries","test send to async destination","set reverse","set social activity setting service","send","test send to synchronous destination"," replace with synchronous destination"],"options_random":["setReverse","_filterAssetTagNamesAssetEntries","setSocialActivitySettingService"],"options_tfidf":["_replaceWithSynchronousDestination","send","testSendToAsyncDestination"],"project_name":"liferay-portal","source_code_string":"@Test\n\tpublic void testSendToSynchronousDestination() throws MessageBusException {\n\t\tSynchronousDestination synchronousDestination =\n\t\t\tnew SynchronousDestination();\n\n\t\tsynchronousDestination.setName(\"testSynchronousDestination\");\n\n\t\tsynchronousDestination.afterPropertiesSet();\n\n\t\tsynchronousDestination.open();\n\n\t\tdoTestSend(synchronousDestination);\n\t}","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"synchronous","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"Destination","start_char":15,"line":1},{"index_id":3,"token_group":2,"text":"synchronous","start_char":27,"line":1},{"index_id":4,"token_group":3,"text":"Destination","start_char":38,"line":1},{"index_id":5,"token_group":3,"text":"=","start_char":50,"line":1},{"index_id":6,"token_group":4,"text":"new","start_char":4,"line":2},{"index_id":7,"token_group":5,"text":"synchronous","start_char":8,"line":2},{"index_id":8,"token_group":6,"text":"Destination","start_char":19,"line":2},{"index_id":9,"token_group":6,"text":"(","start_char":30,"line":2},{"index_id":10,"token_group":7,"text":")","start_char":31,"line":2},{"index_id":11,"token_group":8,"text":";","start_char":32,"line":2},{"index_id":12,"token_group":9,"text":"synchronous","start_char":4,"line":4},{"index_id":13,"token_group":10,"text":"Destination","start_char":15,"line":4},{"index_id":14,"token_group":10,"text":".","start_char":26,"line":4},{"index_id":15,"token_group":11,"text":"set","start_char":27,"line":4},{"index_id":16,"token_group":12,"text":"Name","start_char":30,"line":4},{"index_id":17,"token_group":12,"text":"(","start_char":34,"line":4},{"index_id":18,"token_group":13,"text":"\"testSynchronousDestination\"","start_char":35,"line":4},{"index_id":19,"token_group":14,"text":")","start_char":63,"line":4},{"index_id":20,"token_group":15,"text":";","start_char":64,"line":4},{"index_id":21,"token_group":16,"text":"synchronous","start_char":4,"line":6},{"index_id":22,"token_group":17,"text":"Destination","start_char":15,"line":6},{"index_id":23,"token_group":17,"text":".","start_char":26,"line":6},{"index_id":24,"token_group":18,"text":"after","start_char":27,"line":6},{"index_id":25,"token_group":19,"text":"Properties","start_char":32,"line":6},{"index_id":26,"token_group":19,"text":"Set","start_char":42,"line":6},{"index_id":27,"token_group":19,"text":"(","start_char":45,"line":6},{"index_id":28,"token_group":20,"text":")","start_char":46,"line":6},{"index_id":29,"token_group":21,"text":";","start_char":47,"line":6},{"index_id":30,"token_group":22,"text":"synchronous","start_char":4,"line":8},{"index_id":31,"token_group":23,"text":"Destination","start_char":15,"line":8},{"index_id":32,"token_group":23,"text":".","start_char":26,"line":8},{"index_id":33,"token_group":24,"text":"open","start_char":27,"line":8},{"index_id":34,"token_group":25,"text":"(","start_char":31,"line":8},{"index_id":35,"token_group":26,"text":")","start_char":32,"line":8},{"index_id":36,"token_group":27,"text":";","start_char":33,"line":8},{"index_id":37,"token_group":28,"text":"do","start_char":4,"line":10},{"index_id":38,"token_group":29,"text":"Test","start_char":6,"line":10},{"index_id":39,"token_group":29,"text":"Send","start_char":10,"line":10},{"index_id":40,"token_group":29,"text":"(","start_char":14,"line":10},{"index_id":41,"token_group":30,"text":"synchronous","start_char":15,"line":10},{"index_id":42,"token_group":31,"text":"Destination","start_char":26,"line":10},{"index_id":43,"token_group":31,"text":")","start_char":37,"line":10},{"index_id":44,"token_group":32,"text":";","start_char":38,"line":10},{"index_id":45,"token_group":33,"text":"}","start_char":0,"line":11}],"tokens_list":["{","synchronous","Destination","synchronous","Destination","=","new","synchronous","Destination","(",")",";","synchronous","Destination",".","set","Name","(","\"testSynchronousDestination\"",")",";","synchronous","Destination",".","after","Properties","Set","(",")",";","synchronous","Destination",".","open","(",")",";","do","Test","Send","(","synchronous","Destination",")",";","}"],"uuid":"ee9be781fc52e43c068b8f02ca2a45c8"},{"cap_original_tokens":["<SENTENCE_START>","{","return","<id>","user","Persistence","<\/id>",";","}","<SENTENCE_END\/>"],"file_name":"DDMTemplateServiceBaseImpl.java","formatted_lines":["{"," return userPersistence;","}"],"function_name":"getUserPersistence","function_name_tokens":["get","user","persistence"],"id_body_hash":"7ce180ec595df73954ecb125fb8aba1d","id_same_identifier_list":[0,1,2,3,3,4,5,6],"option_correct":"getUserPersistence","options":["getPersistence","getUser","getByG_N_H_S_PrevAndNext","createSearchContext","newEmailAddress","getUserPersistence","getUserGroupPersistence"],"options_nlp":["get persistence","get user","get by g n h s prev and next","create search context","new email address","get user persistence","get user group persistence"],"options_random":["getByG_N_H_S_PrevAndNext","createSearchContext","newEmailAddress"],"options_tfidf":["getPersistence","getUser","getUserGroupPersistence"],"project_name":"liferay-portal","source_code_string":"public UserPersistence getUserPersistence() {\n\t\treturn userPersistence;\n\t}","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"return","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"user","start_char":11,"line":1},{"index_id":3,"token_group":3,"text":"Persistence","start_char":15,"line":1},{"index_id":4,"token_group":3,"text":";","start_char":26,"line":1},{"index_id":5,"token_group":4,"text":"}","start_char":0,"line":2}],"tokens_list":["{","return","user","Persistence",";","}"],"uuid":"d5be5c233db0bc08ef9027e837f22eb5"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","","Release","Local","Service","<\/id>","=","<id>","release","Local","Service","<\/id>",";","}","<SENTENCE_END\/>"],"file_name":"PortletCSSWebUpgrade.java","formatted_lines":["{",""," _releaseLocalService = releaseLocalService;","}"],"function_name":"setReleaseLocalService","function_name_tokens":["set","release","local","service"],"id_body_hash":"253b37d5df14d4dea7790dc0d48037c8","id_same_identifier_list":[0,1,2,2,2,2,3,4,4,4,5,6,7],"option_correct":"setReleaseLocalService","options":["getReleaseDate","setReleaseLocalService","setDDLRecordVersionLocalService","setLayoutSetLocalService","getReleaseLocalService","filterCalendarBookings","testTrashDuplicate"],"options_nlp":["get release date","set release local service","set ddl record version local service","set layout set local service","get release local service","filter calendar bookings","test trash duplicate"],"options_random":["filterCalendarBookings","setDDLRecordVersionLocalService","testTrashDuplicate"],"options_tfidf":["getReleaseDate","getReleaseLocalService","setLayoutSetLocalService"],"project_name":"liferay-portal","source_code_string":"@Reference(unbind = \"-\")\n\tprotected void setReleaseLocalService(\n\t\tReleaseLocalService releaseLocalService) {\n\n\t\t_releaseLocalService = releaseLocalService;\n\t}","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"","start_char":1,"line":0},{"index_id":2,"token_group":2,"text":"Release","start_char":5,"line":2},{"index_id":3,"token_group":2,"text":"Local","start_char":12,"line":2},{"index_id":4,"token_group":2,"text":"Service","start_char":17,"line":2},{"index_id":5,"token_group":2,"text":"=","start_char":25,"line":2},{"index_id":6,"token_group":3,"text":"release","start_char":27,"line":2},{"index_id":7,"token_group":4,"text":"Local","start_char":34,"line":2},{"index_id":8,"token_group":4,"text":"Service","start_char":39,"line":2},{"index_id":9,"token_group":4,"text":";","start_char":46,"line":2},{"index_id":10,"token_group":5,"text":"}","start_char":0,"line":3}],"tokens_list":["{","","Release","Local","Service","=","release","Local","Service",";","}"],"uuid":"9be8600145a8e6bf0402e7e16f798ca9"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","assert","Query","<\/id>","(","\"SELECT classify(features(1, 2), model) \"","+","\"FROM (SELECT learn_classifier(labels, features) AS model FROM (VALUES ('cat', features(1, 2))) t(labels, features)) t2\"",",","\"SELECT 'cat'\"",")",";","}","<SENTENCE_END\/>"],"file_name":"TestMLQueries.java","formatted_lines":["{"," assertQuery(\"SELECT classify(features(1, 2), model) \" +"," \"FROM (SELECT learn_classifier(labels, features) AS model FROM (VALUES ('cat', features(1, 2))) t(labels, features)) t2\", \"SELECT 'cat'\");","}"],"function_name":"testVarcharPrediction","function_name_tokens":["test","varchar","prediction"],"id_body_hash":"98f7f23436b27e5dec15bad9bc71bf21","id_same_identifier_list":[0,1,2,2,3,4,5,6,7,8,9,10,11,12],"option_correct":"testVarcharPrediction","options":["getQueuedTime","testCastToVarchar","testPrediction","testVarcharPrediction","testCastFromVarchar","getIncludedOrcColumns","getInterfaces"],"options_nlp":["get queued time","test cast to varchar","test prediction","test varchar prediction","test cast from varchar","get included orc columns","get interfaces"],"options_random":["getQueuedTime","getIncludedOrcColumns","getInterfaces"],"options_tfidf":["testCastToVarchar","testCastFromVarchar","testPrediction"],"project_name":"presto","source_code_string":"@Test\n public void testVarcharPrediction()\n throws Exception\n {\n assertQuery(\"SELECT classify(features(1, 2), model) \" +\n \"FROM (SELECT learn_classifier(labels, features) AS model FROM (VALUES ('cat', features(1, 2))) t(labels, features)) t2\", \"SELECT 'cat'\");\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"assert","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"Query","start_char":10,"line":1},{"index_id":3,"token_group":2,"text":"(","start_char":15,"line":1},{"index_id":4,"token_group":3,"text":"\"SELECT classify(features(1, 2), model) \"","start_char":16,"line":1},{"index_id":5,"token_group":4,"text":"+","start_char":58,"line":1},{"index_id":6,"token_group":5,"text":"\"FROM (SELECT learn_classifier(labels, features) AS model FROM (VALUES ('cat', features(1, 2))) t(labels, features)) t2\"","start_char":16,"line":2},{"index_id":7,"token_group":6,"text":",","start_char":136,"line":2},{"index_id":8,"token_group":7,"text":"\"SELECT 'cat'\"","start_char":138,"line":2},{"index_id":9,"token_group":8,"text":")","start_char":152,"line":2},{"index_id":10,"token_group":9,"text":";","start_char":153,"line":2},{"index_id":11,"token_group":10,"text":"}","start_char":0,"line":3}],"tokens_list":["{","assert","Query","(","\"SELECT classify(features(1, 2), model) \"","+","\"FROM (SELECT learn_classifier(labels, features) AS model FROM (VALUES ('cat', features(1, 2))) t(labels, features)) t2\"",",","\"SELECT 'cat'\"",")",";","}"],"uuid":"56017f20ac118556ce354584885fa237"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","map","<\/id>","<","<id>","string","<\/id>",",","<id>","object","<\/id>",">","<id>","config","<\/id>","=","new","<id>","hash","Map","<\/id>","<",">","(",")",";","<id>","config","<\/id>",".","<id>","put","<\/id>","(","\"foo\"",",","1l",")",";","<id>","config","<\/id>",".","<id>","put","<\/id>","(","\"bar_file\"",",","\"barScriptValue\"",")",";","<id>","config","<\/id>",".","<id>","put","<\/id>","(","\"baz_id\"",",","\"bazScriptValue\"",")",";","<id>","config","<\/id>",".","<id>","put","<\/id>","(","\"lang\"",",","\"myLang\"",")",";","<id>","set","<\/id>","<","<id>","string","<\/id>",">","<id>","parameters","<\/id>","=","new","<id>","hash","Set","<\/id>","<",">","(",")",";","<id>","parameters","<\/id>",".","<id>","add","<\/id>","(","\"foo\"",")",";","<id>","parameters","<\/id>",".","<id>","add","<\/id>","(","\"bar\"",")",";","<id>","parameters","<\/id>",".","<id>","add","<\/id>","(","\"baz\"",")",";","<id>","script","Parameter","Parser","<\/id>","<id>","param","Parser","<\/id>","=","new","<id>","script","Parameter","Parser","<\/id>","(","<id>","parameters","<\/id>",")",";","<id>","assert","That","<\/id>","(","<id>","param","Parser","<\/id>",".","<id>","get","Script","Parameter","Value","<\/id>","(","\"foo\"",")",",","<id>","null","Value","<\/id>","(",")",")",";","<id>","assert","That","<\/id>","(","<id>","param","Parser","<\/id>",".","<id>","get","Script","Parameter","Value","<\/id>","(","\"bar\"",")",",","<id>","null","Value","<\/id>","(",")",")",";","<id>","assert","That","<\/id>","(","<id>","param","Parser","<\/id>",".","<id>","get","Script","Parameter","Value","<\/id>","(","\"baz\"",")",",","<id>","null","Value","<\/id>","(",")",")",";","<id>","assert","That","<\/id>","(","<id>","param","Parser","<\/id>",".","<id>","get","Script","Parameter","Value","<\/id>","(","\"bar_file\"",")",",","<id>","null","Value","<\/id>","(",")",")",";","<id>","assert","That","<\/id>","(","<id>","param","Parser","<\/id>",".","<id>","get","Script","Parameter","Value","<\/id>","(","\"baz_id\"",")",",","<id>","null","Value","<\/id>","(",")",")",";","<id>","assert","That","<\/id>","(","<id>","param","Parser","<\/id>",".","<id>","lang","<\/id>","(",")",",","<id>","null","Value","<\/id>","(",")",")",";","try","{","<id>","param","Parser","<\/id>",".","<id>","parse","Config","<\/id>","(","<id>","config","<\/id>",",","true",",","<id>","parse","Field","Matcher","<\/id>",".","<id>","strict","<\/id>",")",";","<id>","fail","<\/id>","(","\"Expected ScriptParseException\"",")",";","}","catch","(","<id>","script","Parse","Exception","<\/id>","<id>","e","<\/id>",")","{","<id>","assert","That","<\/id>","(","<id>","e","<\/id>",".","<id>","get","Message","<\/id>","(",")",",","<id>","is","<\/id>","(","\"Value must be of type String: [foo]\"",")",")",";","}","}","<SENTENCE_END\/>"],"file_name":"ScriptParameterParserTests.java","formatted_lines":["{"," Map<String, Object> config = new HashMap<>();"," config.put(\"foo\", 1l);"," config.put(\"bar_file\", \"barScriptValue\");"," config.put(\"baz_id\", \"bazScriptValue\");"," config.put(\"lang\", \"myLang\");"," Set<String> parameters = new HashSet<>();"," parameters.add(\"foo\");"," parameters.add(\"bar\");"," parameters.add(\"baz\");"," ScriptParameterParser paramParser = new ScriptParameterParser(parameters);"," assertThat(paramParser.getScriptParameterValue(\"foo\"), nullValue());"," assertThat(paramParser.getScriptParameterValue(\"bar\"), nullValue());"," assertThat(paramParser.getScriptParameterValue(\"baz\"), nullValue());"," assertThat(paramParser.getScriptParameterValue(\"bar_file\"), nullValue());"," assertThat(paramParser.getScriptParameterValue(\"baz_id\"), nullValue());"," assertThat(paramParser.lang(), nullValue());"," try"," {"," paramParser.parseConfig(config, true, ParseFieldMatcher.STRICT);"," fail(\"Expected ScriptParseException\");"," }"," catch (ScriptParseException e)"," {"," assertThat(e.getMessage(), is(\"Value must be of type String: [foo]\"));"," }","}"],"function_name":"testConfigMultipleParametersInlineWrongType","function_name_tokens":["test","config","multiple","parameters","inline","wrong","type"],"id_body_hash":"5714d0961432bdb3e2694978c7afbcb9","id_same_identifier_list":[0,1,2,3,4,5,6,7,8,9,10,11,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,87,87,88,88,89,90,91,91,91,92,93,94,95,96,96,97,98,98,99,100,100,100,100,101,102,103,104,105,105,106,107,108,109,110,110,111,112,112,113,114,114,114,114,115,116,117,118,119,119,120,121,122,123,124,124,125,126,126,127,128,128,128,128,129,130,131,132,133,133,134,135,136,137,138,138,139,140,140,141,142,142,142,142,143,144,145,146,147,147,148,149,150,151,152,152,153,154,154,155,156,156,156,156,157,158,159,160,161,161,162,163,164,165,166,166,167,168,168,169,170,171,172,173,174,174,175,176,177,178,179,180,181,181,182,183,183,184,185,186,187,188,189,189,189,190,191,192,193,194,195,196,197,198,199,200,201,202,202,202,203,204,205,206,206,207,208,209,210,210,211,212,213,214,215,216,217,218,219,220,221,222],"option_correct":"testConfigMultipleParametersInlineWrongType","options":["testConfigMultipleParametersIndexedWrongType","testConfigMultipleParametersFileWrongType","testClusterInfoServiceCollectsInformation","testAllMissingLenient","testConfigMultipleParametersLangWrongType","testRerouteWithCommands_enableAllocationSettings","testConfigMultipleParametersInlineWrongType"],"options_nlp":["test config multiple parameters indexed wrong type","test config multiple parameters file wrong type","test cluster info service collects information","test all missing lenient","test config multiple parameters lang wrong type","test reroute with commands enable allocation settings","test config multiple parameters inline wrong type"],"options_random":["testClusterInfoServiceCollectsInformation","testAllMissingLenient","testRerouteWithCommands_enableAllocationSettings"],"options_tfidf":["testConfigMultipleParametersLangWrongType","testConfigMultipleParametersIndexedWrongType","testConfigMultipleParametersFileWrongType"],"project_name":"elasticsearch","source_code_string":"public void testConfigMultipleParametersInlineWrongType() throws IOException {\n Map<String, Object> config = new HashMap<>();\n config.put(\"foo\", 1l);\n config.put(\"bar_file\", \"barScriptValue\");\n config.put(\"baz_id\", \"bazScriptValue\");\n config.put(\"lang\", \"myLang\");\n Set<String> parameters = new HashSet<>();\n parameters.add(\"foo\");\n parameters.add(\"bar\");\n parameters.add(\"baz\");\n ScriptParameterParser paramParser = new ScriptParameterParser(parameters);\n assertThat(paramParser.getScriptParameterValue(\"foo\"), nullValue());\n assertThat(paramParser.getScriptParameterValue(\"bar\"), nullValue());\n assertThat(paramParser.getScriptParameterValue(\"baz\"), nullValue());\n assertThat(paramParser.getScriptParameterValue(\"bar_file\"), nullValue());\n assertThat(paramParser.getScriptParameterValue(\"baz_id\"), nullValue());\n assertThat(paramParser.lang(), nullValue());\n try {\n paramParser.parseConfig(config, true, ParseFieldMatcher.STRICT);\n fail(\"Expected ScriptParseException\");\n } catch (ScriptParseException e) {\n assertThat(e.getMessage(), is(\"Value must be of type String: [foo]\"));\n }\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"map","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"<","start_char":7,"line":1},{"index_id":3,"token_group":3,"text":"string","start_char":8,"line":1},{"index_id":4,"token_group":4,"text":",","start_char":14,"line":1},{"index_id":5,"token_group":5,"text":"object","start_char":16,"line":1},{"index_id":6,"token_group":6,"text":">","start_char":22,"line":1},{"index_id":7,"token_group":7,"text":"config","start_char":24,"line":1},{"index_id":8,"token_group":8,"text":"=","start_char":31,"line":1},{"index_id":9,"token_group":9,"text":"new","start_char":33,"line":1},{"index_id":10,"token_group":10,"text":"hash","start_char":37,"line":1},{"index_id":11,"token_group":11,"text":"Map","start_char":41,"line":1},{"index_id":12,"token_group":11,"text":"<","start_char":44,"line":1},{"index_id":13,"token_group":12,"text":">","start_char":45,"line":1},{"index_id":14,"token_group":13,"text":"(","start_char":46,"line":1},{"index_id":15,"token_group":14,"text":")","start_char":47,"line":1},{"index_id":16,"token_group":15,"text":";","start_char":48,"line":1},{"index_id":17,"token_group":16,"text":"config","start_char":4,"line":2},{"index_id":18,"token_group":17,"text":".","start_char":10,"line":2},{"index_id":19,"token_group":18,"text":"put","start_char":11,"line":2},{"index_id":20,"token_group":19,"text":"(","start_char":14,"line":2},{"index_id":21,"token_group":20,"text":"\"foo\"","start_char":15,"line":2},{"index_id":22,"token_group":21,"text":",","start_char":20,"line":2},{"index_id":23,"token_group":22,"text":"1l","start_char":22,"line":2},{"index_id":24,"token_group":23,"text":")","start_char":24,"line":2},{"index_id":25,"token_group":24,"text":";","start_char":25,"line":2},{"index_id":26,"token_group":25,"text":"config","start_char":4,"line":3},{"index_id":27,"token_group":26,"text":".","start_char":10,"line":3},{"index_id":28,"token_group":27,"text":"put","start_char":11,"line":3},{"index_id":29,"token_group":28,"text":"(","start_char":14,"line":3},{"index_id":30,"token_group":29,"text":"\"bar_file\"","start_char":15,"line":3},{"index_id":31,"token_group":30,"text":",","start_char":25,"line":3},{"index_id":32,"token_group":31,"text":"\"barScriptValue\"","start_char":27,"line":3},{"index_id":33,"token_group":32,"text":")","start_char":43,"line":3},{"index_id":34,"token_group":33,"text":";","start_char":44,"line":3},{"index_id":35,"token_group":34,"text":"config","start_char":4,"line":4},{"index_id":36,"token_group":35,"text":".","start_char":10,"line":4},{"index_id":37,"token_group":36,"text":"put","start_char":11,"line":4},{"index_id":38,"token_group":37,"text":"(","start_char":14,"line":4},{"index_id":39,"token_group":38,"text":"\"baz_id\"","start_char":15,"line":4},{"index_id":40,"token_group":39,"text":",","start_char":23,"line":4},{"index_id":41,"token_group":40,"text":"\"bazScriptValue\"","start_char":25,"line":4},{"index_id":42,"token_group":41,"text":")","start_char":41,"line":4},{"index_id":43,"token_group":42,"text":";","start_char":42,"line":4},{"index_id":44,"token_group":43,"text":"config","start_char":4,"line":5},{"index_id":45,"token_group":44,"text":".","start_char":10,"line":5},{"index_id":46,"token_group":45,"text":"put","start_char":11,"line":5},{"index_id":47,"token_group":46,"text":"(","start_char":14,"line":5},{"index_id":48,"token_group":47,"text":"\"lang\"","start_char":15,"line":5},{"index_id":49,"token_group":48,"text":",","start_char":21,"line":5},{"index_id":50,"token_group":49,"text":"\"myLang\"","start_char":23,"line":5},{"index_id":51,"token_group":50,"text":")","start_char":31,"line":5},{"index_id":52,"token_group":51,"text":";","start_char":32,"line":5},{"index_id":53,"token_group":52,"text":"set","start_char":4,"line":6},{"index_id":54,"token_group":53,"text":"<","start_char":7,"line":6},{"index_id":55,"token_group":54,"text":"string","start_char":8,"line":6},{"index_id":56,"token_group":55,"text":">","start_char":14,"line":6},{"index_id":57,"token_group":56,"text":"parameters","start_char":16,"line":6},{"index_id":58,"token_group":57,"text":"=","start_char":27,"line":6},{"index_id":59,"token_group":58,"text":"new","start_char":29,"line":6},{"index_id":60,"token_group":59,"text":"hash","start_char":33,"line":6},{"index_id":61,"token_group":60,"text":"Set","start_char":37,"line":6},{"index_id":62,"token_group":60,"text":"<","start_char":40,"line":6},{"index_id":63,"token_group":61,"text":">","start_char":41,"line":6},{"index_id":64,"token_group":62,"text":"(","start_char":42,"line":6},{"index_id":65,"token_group":63,"text":")","start_char":43,"line":6},{"index_id":66,"token_group":64,"text":";","start_char":44,"line":6},{"index_id":67,"token_group":65,"text":"parameters","start_char":4,"line":7},{"index_id":68,"token_group":66,"text":".","start_char":14,"line":7},{"index_id":69,"token_group":67,"text":"add","start_char":15,"line":7},{"index_id":70,"token_group":68,"text":"(","start_char":18,"line":7},{"index_id":71,"token_group":69,"text":"\"foo\"","start_char":19,"line":7},{"index_id":72,"token_group":70,"text":")","start_char":24,"line":7},{"index_id":73,"token_group":71,"text":";","start_char":25,"line":7},{"index_id":74,"token_group":72,"text":"parameters","start_char":4,"line":8},{"index_id":75,"token_group":73,"text":".","start_char":14,"line":8},{"index_id":76,"token_group":74,"text":"add","start_char":15,"line":8},{"index_id":77,"token_group":75,"text":"(","start_char":18,"line":8},{"index_id":78,"token_group":76,"text":"\"bar\"","start_char":19,"line":8},{"index_id":79,"token_group":77,"text":")","start_char":24,"line":8},{"index_id":80,"token_group":78,"text":";","start_char":25,"line":8},{"index_id":81,"token_group":79,"text":"parameters","start_char":4,"line":9},{"index_id":82,"token_group":80,"text":".","start_char":14,"line":9},{"index_id":83,"token_group":81,"text":"add","start_char":15,"line":9},{"index_id":84,"token_group":82,"text":"(","start_char":18,"line":9},{"index_id":85,"token_group":83,"text":"\"baz\"","start_char":19,"line":9},{"index_id":86,"token_group":84,"text":")","start_char":24,"line":9},{"index_id":87,"token_group":85,"text":";","start_char":25,"line":9},{"index_id":88,"token_group":86,"text":"script","start_char":4,"line":10},{"index_id":89,"token_group":87,"text":"Parameter","start_char":10,"line":10},{"index_id":90,"token_group":87,"text":"Parser","start_char":19,"line":10},{"index_id":91,"token_group":87,"text":"param","start_char":26,"line":10},{"index_id":92,"token_group":88,"text":"Parser","start_char":31,"line":10},{"index_id":93,"token_group":88,"text":"=","start_char":38,"line":10},{"index_id":94,"token_group":89,"text":"new","start_char":40,"line":10},{"index_id":95,"token_group":90,"text":"script","start_char":44,"line":10},{"index_id":96,"token_group":91,"text":"Parameter","start_char":50,"line":10},{"index_id":97,"token_group":91,"text":"Parser","start_char":59,"line":10},{"index_id":98,"token_group":91,"text":"(","start_char":65,"line":10},{"index_id":99,"token_group":92,"text":"parameters","start_char":66,"line":10},{"index_id":100,"token_group":93,"text":")","start_char":76,"line":10},{"index_id":101,"token_group":94,"text":";","start_char":77,"line":10},{"index_id":102,"token_group":95,"text":"assert","start_char":4,"line":11},{"index_id":103,"token_group":96,"text":"That","start_char":10,"line":11},{"index_id":104,"token_group":96,"text":"(","start_char":14,"line":11},{"index_id":105,"token_group":97,"text":"param","start_char":15,"line":11},{"index_id":106,"token_group":98,"text":"Parser","start_char":20,"line":11},{"index_id":107,"token_group":98,"text":".","start_char":26,"line":11},{"index_id":108,"token_group":99,"text":"get","start_char":27,"line":11},{"index_id":109,"token_group":100,"text":"Script","start_char":30,"line":11},{"index_id":110,"token_group":100,"text":"Parameter","start_char":36,"line":11},{"index_id":111,"token_group":100,"text":"Value","start_char":45,"line":11},{"index_id":112,"token_group":100,"text":"(","start_char":50,"line":11},{"index_id":113,"token_group":101,"text":"\"foo\"","start_char":51,"line":11},{"index_id":114,"token_group":102,"text":")","start_char":56,"line":11},{"index_id":115,"token_group":103,"text":",","start_char":57,"line":11},{"index_id":116,"token_group":104,"text":"null","start_char":59,"line":11},{"index_id":117,"token_group":105,"text":"Value","start_char":63,"line":11},{"index_id":118,"token_group":105,"text":"(","start_char":68,"line":11},{"index_id":119,"token_group":106,"text":")","start_char":69,"line":11},{"index_id":120,"token_group":107,"text":")","start_char":70,"line":11},{"index_id":121,"token_group":108,"text":";","start_char":71,"line":11},{"index_id":122,"token_group":109,"text":"assert","start_char":4,"line":12},{"index_id":123,"token_group":110,"text":"That","start_char":10,"line":12},{"index_id":124,"token_group":110,"text":"(","start_char":14,"line":12},{"index_id":125,"token_group":111,"text":"param","start_char":15,"line":12},{"index_id":126,"token_group":112,"text":"Parser","start_char":20,"line":12},{"index_id":127,"token_group":112,"text":".","start_char":26,"line":12},{"index_id":128,"token_group":113,"text":"get","start_char":27,"line":12},{"index_id":129,"token_group":114,"text":"Script","start_char":30,"line":12},{"index_id":130,"token_group":114,"text":"Parameter","start_char":36,"line":12},{"index_id":131,"token_group":114,"text":"Value","start_char":45,"line":12},{"index_id":132,"token_group":114,"text":"(","start_char":50,"line":12},{"index_id":133,"token_group":115,"text":"\"bar\"","start_char":51,"line":12},{"index_id":134,"token_group":116,"text":")","start_char":56,"line":12},{"index_id":135,"token_group":117,"text":",","start_char":57,"line":12},{"index_id":136,"token_group":118,"text":"null","start_char":59,"line":12},{"index_id":137,"token_group":119,"text":"Value","start_char":63,"line":12},{"index_id":138,"token_group":119,"text":"(","start_char":68,"line":12},{"index_id":139,"token_group":120,"text":")","start_char":69,"line":12},{"index_id":140,"token_group":121,"text":")","start_char":70,"line":12},{"index_id":141,"token_group":122,"text":";","start_char":71,"line":12},{"index_id":142,"token_group":123,"text":"assert","start_char":4,"line":13},{"index_id":143,"token_group":124,"text":"That","start_char":10,"line":13},{"index_id":144,"token_group":124,"text":"(","start_char":14,"line":13},{"index_id":145,"token_group":125,"text":"param","start_char":15,"line":13},{"index_id":146,"token_group":126,"text":"Parser","start_char":20,"line":13},{"index_id":147,"token_group":126,"text":".","start_char":26,"line":13},{"index_id":148,"token_group":127,"text":"get","start_char":27,"line":13},{"index_id":149,"token_group":128,"text":"Script","start_char":30,"line":13},{"index_id":150,"token_group":128,"text":"Parameter","start_char":36,"line":13},{"index_id":151,"token_group":128,"text":"Value","start_char":45,"line":13},{"index_id":152,"token_group":128,"text":"(","start_char":50,"line":13},{"index_id":153,"token_group":129,"text":"\"baz\"","start_char":51,"line":13},{"index_id":154,"token_group":130,"text":")","start_char":56,"line":13},{"index_id":155,"token_group":131,"text":",","start_char":57,"line":13},{"index_id":156,"token_group":132,"text":"null","start_char":59,"line":13},{"index_id":157,"token_group":133,"text":"Value","start_char":63,"line":13},{"index_id":158,"token_group":133,"text":"(","start_char":68,"line":13},{"index_id":159,"token_group":134,"text":")","start_char":69,"line":13},{"index_id":160,"token_group":135,"text":")","start_char":70,"line":13},{"index_id":161,"token_group":136,"text":";","start_char":71,"line":13},{"index_id":162,"token_group":137,"text":"assert","start_char":4,"line":14},{"index_id":163,"token_group":138,"text":"That","start_char":10,"line":14},{"index_id":164,"token_group":138,"text":"(","start_char":14,"line":14},{"index_id":165,"token_group":139,"text":"param","start_char":15,"line":14},{"index_id":166,"token_group":140,"text":"Parser","start_char":20,"line":14},{"index_id":167,"token_group":140,"text":".","start_char":26,"line":14},{"index_id":168,"token_group":141,"text":"get","start_char":27,"line":14},{"index_id":169,"token_group":142,"text":"Script","start_char":30,"line":14},{"index_id":170,"token_group":142,"text":"Parameter","start_char":36,"line":14},{"index_id":171,"token_group":142,"text":"Value","start_char":45,"line":14},{"index_id":172,"token_group":142,"text":"(","start_char":50,"line":14},{"index_id":173,"token_group":143,"text":"\"bar_file\"","start_char":51,"line":14},{"index_id":174,"token_group":144,"text":")","start_char":61,"line":14},{"index_id":175,"token_group":145,"text":",","start_char":62,"line":14},{"index_id":176,"token_group":146,"text":"null","start_char":64,"line":14},{"index_id":177,"token_group":147,"text":"Value","start_char":68,"line":14},{"index_id":178,"token_group":147,"text":"(","start_char":73,"line":14},{"index_id":179,"token_group":148,"text":")","start_char":74,"line":14},{"index_id":180,"token_group":149,"text":")","start_char":75,"line":14},{"index_id":181,"token_group":150,"text":";","start_char":76,"line":14},{"index_id":182,"token_group":151,"text":"assert","start_char":4,"line":15},{"index_id":183,"token_group":152,"text":"That","start_char":10,"line":15},{"index_id":184,"token_group":152,"text":"(","start_char":14,"line":15},{"index_id":185,"token_group":153,"text":"param","start_char":15,"line":15},{"index_id":186,"token_group":154,"text":"Parser","start_char":20,"line":15},{"index_id":187,"token_group":154,"text":".","start_char":26,"line":15},{"index_id":188,"token_group":155,"text":"get","start_char":27,"line":15},{"index_id":189,"token_group":156,"text":"Script","start_char":30,"line":15},{"index_id":190,"token_group":156,"text":"Parameter","start_char":36,"line":15},{"index_id":191,"token_group":156,"text":"Value","start_char":45,"line":15},{"index_id":192,"token_group":156,"text":"(","start_char":50,"line":15},{"index_id":193,"token_group":157,"text":"\"baz_id\"","start_char":51,"line":15},{"index_id":194,"token_group":158,"text":")","start_char":59,"line":15},{"index_id":195,"token_group":159,"text":",","start_char":60,"line":15},{"index_id":196,"token_group":160,"text":"null","start_char":62,"line":15},{"index_id":197,"token_group":161,"text":"Value","start_char":66,"line":15},{"index_id":198,"token_group":161,"text":"(","start_char":71,"line":15},{"index_id":199,"token_group":162,"text":")","start_char":72,"line":15},{"index_id":200,"token_group":163,"text":")","start_char":73,"line":15},{"index_id":201,"token_group":164,"text":";","start_char":74,"line":15},{"index_id":202,"token_group":165,"text":"assert","start_char":4,"line":16},{"index_id":203,"token_group":166,"text":"That","start_char":10,"line":16},{"index_id":204,"token_group":166,"text":"(","start_char":14,"line":16},{"index_id":205,"token_group":167,"text":"param","start_char":15,"line":16},{"index_id":206,"token_group":168,"text":"Parser","start_char":20,"line":16},{"index_id":207,"token_group":168,"text":".","start_char":26,"line":16},{"index_id":208,"token_group":169,"text":"lang","start_char":27,"line":16},{"index_id":209,"token_group":170,"text":"(","start_char":31,"line":16},{"index_id":210,"token_group":171,"text":")","start_char":32,"line":16},{"index_id":211,"token_group":172,"text":",","start_char":33,"line":16},{"index_id":212,"token_group":173,"text":"null","start_char":35,"line":16},{"index_id":213,"token_group":174,"text":"Value","start_char":39,"line":16},{"index_id":214,"token_group":174,"text":"(","start_char":44,"line":16},{"index_id":215,"token_group":175,"text":")","start_char":45,"line":16},{"index_id":216,"token_group":176,"text":")","start_char":46,"line":16},{"index_id":217,"token_group":177,"text":";","start_char":47,"line":16},{"index_id":218,"token_group":178,"text":"try","start_char":4,"line":17},{"index_id":219,"token_group":179,"text":"{","start_char":4,"line":18},{"index_id":220,"token_group":180,"text":"param","start_char":8,"line":19},{"index_id":221,"token_group":181,"text":"Parser","start_char":13,"line":19},{"index_id":222,"token_group":181,"text":".","start_char":19,"line":19},{"index_id":223,"token_group":182,"text":"parse","start_char":20,"line":19},{"index_id":224,"token_group":183,"text":"Config","start_char":25,"line":19},{"index_id":225,"token_group":183,"text":"(","start_char":31,"line":19},{"index_id":226,"token_group":184,"text":"config","start_char":32,"line":19},{"index_id":227,"token_group":185,"text":",","start_char":38,"line":19},{"index_id":228,"token_group":186,"text":"true","start_char":40,"line":19},{"index_id":229,"token_group":187,"text":",","start_char":44,"line":19},{"index_id":230,"token_group":188,"text":"parse","start_char":46,"line":19},{"index_id":231,"token_group":189,"text":"Field","start_char":51,"line":19},{"index_id":232,"token_group":189,"text":"Matcher","start_char":56,"line":19},{"index_id":233,"token_group":189,"text":".","start_char":63,"line":19},{"index_id":234,"token_group":190,"text":"strict","start_char":64,"line":19},{"index_id":235,"token_group":191,"text":")","start_char":70,"line":19},{"index_id":236,"token_group":192,"text":";","start_char":71,"line":19},{"index_id":237,"token_group":193,"text":"fail","start_char":8,"line":20},{"index_id":238,"token_group":194,"text":"(","start_char":12,"line":20},{"index_id":239,"token_group":195,"text":"\"Expected ScriptParseException\"","start_char":13,"line":20},{"index_id":240,"token_group":196,"text":")","start_char":44,"line":20},{"index_id":241,"token_group":197,"text":";","start_char":45,"line":20},{"index_id":242,"token_group":198,"text":"}","start_char":4,"line":21},{"index_id":243,"token_group":199,"text":"catch","start_char":4,"line":22},{"index_id":244,"token_group":200,"text":"(","start_char":10,"line":22},{"index_id":245,"token_group":201,"text":"script","start_char":11,"line":22},{"index_id":246,"token_group":202,"text":"Parse","start_char":17,"line":22},{"index_id":247,"token_group":202,"text":"Exception","start_char":22,"line":22},{"index_id":248,"token_group":202,"text":"e","start_char":32,"line":22},{"index_id":249,"token_group":203,"text":")","start_char":33,"line":22},{"index_id":250,"token_group":204,"text":"{","start_char":4,"line":23},{"index_id":251,"token_group":205,"text":"assert","start_char":8,"line":24},{"index_id":252,"token_group":206,"text":"That","start_char":14,"line":24},{"index_id":253,"token_group":206,"text":"(","start_char":18,"line":24},{"index_id":254,"token_group":207,"text":"e","start_char":19,"line":24},{"index_id":255,"token_group":208,"text":".","start_char":20,"line":24},{"index_id":256,"token_group":209,"text":"get","start_char":21,"line":24},{"index_id":257,"token_group":210,"text":"Message","start_char":24,"line":24},{"index_id":258,"token_group":210,"text":"(","start_char":31,"line":24},{"index_id":259,"token_group":211,"text":")","start_char":32,"line":24},{"index_id":260,"token_group":212,"text":",","start_char":33,"line":24},{"index_id":261,"token_group":213,"text":"is","start_char":35,"line":24},{"index_id":262,"token_group":214,"text":"(","start_char":37,"line":24},{"index_id":263,"token_group":215,"text":"\"Value must be of type String: [foo]\"","start_char":38,"line":24},{"index_id":264,"token_group":216,"text":")","start_char":75,"line":24},{"index_id":265,"token_group":217,"text":")","start_char":76,"line":24},{"index_id":266,"token_group":218,"text":";","start_char":77,"line":24},{"index_id":267,"token_group":219,"text":"}","start_char":4,"line":25},{"index_id":268,"token_group":220,"text":"}","start_char":0,"line":26}],"tokens_list":["{","map","<","string",",","object",">","config","=","new","hash","Map","<",">","(",")",";","config",".","put","(","\"foo\"",",","1l",")",";","config",".","put","(","\"bar_file\"",",","\"barScriptValue\"",")",";","config",".","put","(","\"baz_id\"",",","\"bazScriptValue\"",")",";","config",".","put","(","\"lang\"",",","\"myLang\"",")",";","set","<","string",">","parameters","=","new","hash","Set","<",">","(",")",";","parameters",".","add","(","\"foo\"",")",";","parameters",".","add","(","\"bar\"",")",";","parameters",".","add","(","\"baz\"",")",";","script","Parameter","Parser","param","Parser","=","new","script","Parameter","Parser","(","parameters",")",";","assert","That","(","param","Parser",".","get","Script","Parameter","Value","(","\"foo\"",")",",","null","Value","(",")",")",";","assert","That","(","param","Parser",".","get","Script","Parameter","Value","(","\"bar\"",")",",","null","Value","(",")",")",";","assert","That","(","param","Parser",".","get","Script","Parameter","Value","(","\"baz\"",")",",","null","Value","(",")",")",";","assert","That","(","param","Parser",".","get","Script","Parameter","Value","(","\"bar_file\"",")",",","null","Value","(",")",")",";","assert","That","(","param","Parser",".","get","Script","Parameter","Value","(","\"baz_id\"",")",",","null","Value","(",")",")",";","assert","That","(","param","Parser",".","lang","(",")",",","null","Value","(",")",")",";","try","{","param","Parser",".","parse","Config","(","config",",","true",",","parse","Field","Matcher",".","strict",")",";","fail","(","\"Expected ScriptParseException\"",")",";","}","catch","(","script","Parse","Exception","e",")","{","assert","That","(","e",".","get","Message","(",")",",","is","(","\"Value must be of type String: [foo]\"",")",")",";","}","}"],"uuid":"f58843e62b478308e322efefede3a1b6"},{"cap_original_tokens":["<SENTENCE_START>","{","try","{","<id>","object","<\/id>","<id>","property","Value","<\/id>","=","<id>","bucket","<\/id>",".","<id>","get","Property","<\/id>","(","<id>","agg","<\/id>",".","<id>","get","Name","<\/id>","(",")",",","<id>","agg","Path","As","List","<\/id>",")",";","if","(","<id>","property","Value","<\/id>","==","null",")","{","throw","new","<id>","aggregation","Execution","Exception","<\/id>","(","<id>","derivative","Parser","<\/id>",".","<id>","buckets","Path","<\/id>",".","<id>","get","Preferred","Name","<\/id>","(",")","+","\" must reference either a number value or a single value numeric metric aggregation\"",")",";","}","else","{","double","<id>","value","<\/id>",";","if","(","<id>","property","Value","<\/id>","Instanceof","<id>","number","<\/id>",")","{","<id>","value","<\/id>","=","(","(","<id>","number","<\/id>",")","<id>","property","Value","<\/id>",")",".","<id>","double","Value","<\/id>","(",")",";","}","else","if","(","<id>","property","Value","<\/id>","Instanceof","<id>","internal","Numeric","Metrics","Aggregation","<\/id>",".","<id>","single","Value","<\/id>",")","{","<id>","value","<\/id>","=","(","(","<id>","internal","Numeric","Metrics","Aggregation","<\/id>",".","<id>","single","Value","<\/id>",")","<id>","property","Value","<\/id>",")",".","<id>","value","<\/id>","(",")",";","}","else","{","throw","new","<id>","aggregation","Execution","Exception","<\/id>","(","<id>","derivative","Parser","<\/id>",".","<id>","buckets","Path","<\/id>",".","<id>","get","Preferred","Name","<\/id>","(",")","+","\" must reference either a number value or a single value numeric metric aggregation, got: \"","+","<id>","property","Value","<\/id>",".","<id>","get","Class","<\/id>","(",")",".","<id>","get","Canonical","Name","<\/id>","(",")",")",";","}","boolean","<id>","is","Doc","Count","Property","<\/id>","=","<id>","agg","Path","As","List","<\/id>",".","<id>","size","<\/id>","(",")","==","1","&&","\"_count\"",".","<id>","equals","<\/id>","(","<id>","agg","Path","As","List","<\/id>",".","<id>","get","<\/id>","(","0",")",")",";","if","(","<id>","double","<\/id>",".","<id>","is","Infinite","<\/id>","(","<id>","value","<\/id>",")","||","<id>","double","<\/id>",".","<id>","is","Na","N","<\/id>","(","<id>","value","<\/id>",")","||","(","<id>","bucket","<\/id>",".","<id>","get","Doc","Count","<\/id>","(",")","==","0","&&","!","<id>","is","Doc","Count","Property","<\/id>",")",")","{","switch","(","<id>","gap","Policy","<\/id>",")","{","case","<id>","insert","Zeros","<\/id>",":","return","0.0",";","case","<id>","skip","<\/id>",":","default",":","return","<id>","double","<\/id>",".","<id>","na","N","<\/id>",";","}","}","else","{","return","<id>","value","<\/id>",";","}","}","}","catch","(","<id>","invalid","Aggregation","Path","Exception","<\/id>","<id>","e","<\/id>",")","{","return","null",";","}","}","<SENTENCE_END\/>"],"file_name":"BucketHelpers.java","formatted_lines":["{"," try"," {"," Object propertyValue = bucket.getProperty(agg.getName(), aggPathAsList);"," if (propertyValue == null)"," {"," throw new AggregationExecutionException("," DerivativeParser.BUCKETS_PATH.getPreferredName()"," + \" must reference either a number value or a single value numeric metric aggregation\");"," }"," else"," {"," double value;"," if (propertyValue instanceof Number)"," {"," value = ((Number) propertyValue).doubleValue();"," }"," else if (propertyValue instanceof"," InternalNumericMetricsAggregation.SingleValue)"," {"," value = ((InternalNumericMetricsAggregation.SingleValue) propertyValue).value();"," }"," else"," {"," throw new AggregationExecutionException("," DerivativeParser.BUCKETS_PATH.getPreferredName()"," + \" must reference either a number value or a single value numeric metric aggregation, got: \""," + propertyValue.getClass().getCanonicalName());"," }",""," boolean isDocCountProperty = aggPathAsList.size() == 1 &&"," \"_count\".equals(aggPathAsList.get(0));"," if (Double.isInfinite(value) || Double.isNaN(value) ||"," (bucket.getDocCount() == 0 && !isDocCountProperty))"," {"," switch (gapPolicy)"," {"," case INSERT_ZEROS:"," return 0.0;"," case SKIP:"," default:"," return Double.NaN;"," }"," }"," else"," {"," return value;"," }"," }"," }"," catch (InvalidAggregationPathException e)"," {"," return null;"," }","}"],"function_name":"resolveBucketValue","function_name_tokens":["resolve","bucket","value"],"id_body_hash":"85afd39aa4ac6d3df09c30bc4ededc9f","id_same_identifier_list":[0,1,2,3,4,5,5,6,7,8,9,9,10,11,12,13,13,14,15,16,17,17,17,17,18,19,20,21,22,22,23,24,25,26,27,28,29,29,29,30,31,31,32,33,33,34,35,35,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,50,51,52,53,54,55,56,57,58,59,60,61,61,62,63,64,64,65,66,67,68,69,70,71,72,72,73,74,74,74,74,75,76,76,77,78,79,80,81,82,83,83,83,83,84,85,85,86,87,87,88,89,90,91,92,93,94,95,96,97,98,99,99,99,100,101,101,102,103,103,104,105,105,105,106,107,108,109,110,111,111,112,113,113,114,115,116,117,117,117,118,119,120,121,122,123,124,124,124,124,125,126,126,126,126,127,128,129,130,131,132,133,134,135,136,137,138,138,138,138,139,140,141,142,143,144,145,146,147,148,149,150,150,151,152,153,154,155,156,157,157,157,158,159,160,161,162,163,164,165,165,165,166,167,168,169,170,171,172,172,172,172,173,174,175,176,177,178,178,179,180,181,182,182,183,184,185,186,187,188,189,190,191,192,193,194,195,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,209,209,209,210,211,212,213,214,215,216,217,218],"option_correct":"resolveBucketValue","options":["testFreeze","buildResponse","resolveValue","resolveBucketValue","resolve","resolveIndex","main"],"options_nlp":["test freeze","build response","resolve value","resolve bucket value","resolve","resolve index","main"],"options_random":["testFreeze","buildResponse","main"],"options_tfidf":["resolve","resolveValue","resolveIndex"],"project_name":"elasticsearch","source_code_string":"public static Double resolveBucketValue(InternalMultiBucketAggregation<?, ? extends InternalMultiBucketAggregation.Bucket> agg,\n InternalMultiBucketAggregation.Bucket bucket, List<String> aggPathAsList, GapPolicy gapPolicy) {\n try {\n Object propertyValue = bucket.getProperty(agg.getName(), aggPathAsList);\n if (propertyValue == null) {\n throw new AggregationExecutionException(DerivativeParser.BUCKETS_PATH.getPreferredName()\n + \" must reference either a number value or a single value numeric metric aggregation\");\n } else {\n double value;\n if (propertyValue instanceof Number) {\n value = ((Number) propertyValue).doubleValue();\n } else if (propertyValue instanceof InternalNumericMetricsAggregation.SingleValue) {\n value = ((InternalNumericMetricsAggregation.SingleValue) propertyValue).value();\n } else {\n throw new AggregationExecutionException(DerivativeParser.BUCKETS_PATH.getPreferredName()\n + \" must reference either a number value or a single value numeric metric aggregation, got: \"\n + propertyValue.getClass().getCanonicalName());\n }\n \n boolean isDocCountProperty = aggPathAsList.size() == 1 && \"_count\".equals(aggPathAsList.get(0));\n if (Double.isInfinite(value) || Double.isNaN(value) || (bucket.getDocCount() == 0 && !isDocCountProperty)) {\n switch (gapPolicy) {\n case INSERT_ZEROS:\n return 0.0;\n case SKIP:\n default:\n return Double.NaN;\n }\n } else {\n return value;\n }\n }\n } catch (InvalidAggregationPathException e) {\n return null;\n }\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"try","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"{","start_char":4,"line":2},{"index_id":3,"token_group":3,"text":"object","start_char":8,"line":3},{"index_id":4,"token_group":4,"text":"property","start_char":15,"line":3},{"index_id":5,"token_group":5,"text":"Value","start_char":23,"line":3},{"index_id":6,"token_group":5,"text":"=","start_char":29,"line":3},{"index_id":7,"token_group":6,"text":"bucket","start_char":31,"line":3},{"index_id":8,"token_group":7,"text":".","start_char":37,"line":3},{"index_id":9,"token_group":8,"text":"get","start_char":38,"line":3},{"index_id":10,"token_group":9,"text":"Property","start_char":41,"line":3},{"index_id":11,"token_group":9,"text":"(","start_char":49,"line":3},{"index_id":12,"token_group":10,"text":"agg","start_char":50,"line":3},{"index_id":13,"token_group":11,"text":".","start_char":53,"line":3},{"index_id":14,"token_group":12,"text":"get","start_char":54,"line":3},{"index_id":15,"token_group":13,"text":"Name","start_char":57,"line":3},{"index_id":16,"token_group":13,"text":"(","start_char":61,"line":3},{"index_id":17,"token_group":14,"text":")","start_char":62,"line":3},{"index_id":18,"token_group":15,"text":",","start_char":63,"line":3},{"index_id":19,"token_group":16,"text":"agg","start_char":65,"line":3},{"index_id":20,"token_group":17,"text":"Path","start_char":68,"line":3},{"index_id":21,"token_group":17,"text":"As","start_char":72,"line":3},{"index_id":22,"token_group":17,"text":"List","start_char":74,"line":3},{"index_id":23,"token_group":17,"text":")","start_char":78,"line":3},{"index_id":24,"token_group":18,"text":";","start_char":79,"line":3},{"index_id":25,"token_group":19,"text":"if","start_char":8,"line":4},{"index_id":26,"token_group":20,"text":"(","start_char":11,"line":4},{"index_id":27,"token_group":21,"text":"property","start_char":12,"line":4},{"index_id":28,"token_group":22,"text":"Value","start_char":20,"line":4},{"index_id":29,"token_group":22,"text":"==","start_char":26,"line":4},{"index_id":30,"token_group":23,"text":"null","start_char":29,"line":4},{"index_id":31,"token_group":24,"text":")","start_char":33,"line":4},{"index_id":32,"token_group":25,"text":"{","start_char":8,"line":5},{"index_id":33,"token_group":26,"text":"throw","start_char":12,"line":6},{"index_id":34,"token_group":27,"text":"new","start_char":18,"line":6},{"index_id":35,"token_group":28,"text":"aggregation","start_char":22,"line":6},{"index_id":36,"token_group":29,"text":"Execution","start_char":33,"line":6},{"index_id":37,"token_group":29,"text":"Exception","start_char":42,"line":6},{"index_id":38,"token_group":29,"text":"(","start_char":51,"line":6},{"index_id":39,"token_group":30,"text":"derivative","start_char":16,"line":7},{"index_id":40,"token_group":31,"text":"Parser","start_char":26,"line":7},{"index_id":41,"token_group":31,"text":".","start_char":32,"line":7},{"index_id":42,"token_group":32,"text":"buckets","start_char":33,"line":7},{"index_id":43,"token_group":33,"text":"Path","start_char":41,"line":7},{"index_id":44,"token_group":33,"text":".","start_char":45,"line":7},{"index_id":45,"token_group":34,"text":"get","start_char":46,"line":7},{"index_id":46,"token_group":35,"text":"Preferred","start_char":49,"line":7},{"index_id":47,"token_group":35,"text":"Name","start_char":58,"line":7},{"index_id":48,"token_group":35,"text":"(","start_char":62,"line":7},{"index_id":49,"token_group":36,"text":")","start_char":63,"line":7},{"index_id":50,"token_group":37,"text":"+","start_char":16,"line":8},{"index_id":51,"token_group":38,"text":"\" must reference either a number value or a single value numeric metric aggregation\"","start_char":18,"line":8},{"index_id":52,"token_group":39,"text":")","start_char":102,"line":8},{"index_id":53,"token_group":40,"text":";","start_char":103,"line":8},{"index_id":54,"token_group":41,"text":"}","start_char":8,"line":9},{"index_id":55,"token_group":42,"text":"else","start_char":8,"line":10},{"index_id":56,"token_group":43,"text":"{","start_char":8,"line":11},{"index_id":57,"token_group":44,"text":"double","start_char":12,"line":12},{"index_id":58,"token_group":45,"text":"value","start_char":19,"line":12},{"index_id":59,"token_group":46,"text":";","start_char":24,"line":12},{"index_id":60,"token_group":47,"text":"if","start_char":12,"line":13},{"index_id":61,"token_group":48,"text":"(","start_char":15,"line":13},{"index_id":62,"token_group":49,"text":"property","start_char":16,"line":13},{"index_id":63,"token_group":50,"text":"Value","start_char":24,"line":13},{"index_id":64,"token_group":50,"text":"Instanceof","start_char":30,"line":13},{"index_id":65,"token_group":51,"text":"number","start_char":41,"line":13},{"index_id":66,"token_group":52,"text":")","start_char":47,"line":13},{"index_id":67,"token_group":53,"text":"{","start_char":12,"line":14},{"index_id":68,"token_group":54,"text":"value","start_char":16,"line":15},{"index_id":69,"token_group":55,"text":"=","start_char":22,"line":15},{"index_id":70,"token_group":56,"text":"(","start_char":24,"line":15},{"index_id":71,"token_group":57,"text":"(","start_char":25,"line":15},{"index_id":72,"token_group":58,"text":"number","start_char":26,"line":15},{"index_id":73,"token_group":59,"text":")","start_char":32,"line":15},{"index_id":74,"token_group":60,"text":"property","start_char":34,"line":15},{"index_id":75,"token_group":61,"text":"Value","start_char":42,"line":15},{"index_id":76,"token_group":61,"text":")","start_char":47,"line":15},{"index_id":77,"token_group":62,"text":".","start_char":48,"line":15},{"index_id":78,"token_group":63,"text":"double","start_char":49,"line":15},{"index_id":79,"token_group":64,"text":"Value","start_char":55,"line":15},{"index_id":80,"token_group":64,"text":"(","start_char":60,"line":15},{"index_id":81,"token_group":65,"text":")","start_char":61,"line":15},{"index_id":82,"token_group":66,"text":";","start_char":62,"line":15},{"index_id":83,"token_group":67,"text":"}","start_char":12,"line":16},{"index_id":84,"token_group":68,"text":"else","start_char":12,"line":17},{"index_id":85,"token_group":69,"text":"if","start_char":17,"line":17},{"index_id":86,"token_group":70,"text":"(","start_char":20,"line":17},{"index_id":87,"token_group":71,"text":"property","start_char":21,"line":17},{"index_id":88,"token_group":72,"text":"Value","start_char":29,"line":17},{"index_id":89,"token_group":72,"text":"Instanceof","start_char":35,"line":17},{"index_id":90,"token_group":73,"text":"internal","start_char":21,"line":18},{"index_id":91,"token_group":74,"text":"Numeric","start_char":29,"line":18},{"index_id":92,"token_group":74,"text":"Metrics","start_char":36,"line":18},{"index_id":93,"token_group":74,"text":"Aggregation","start_char":43,"line":18},{"index_id":94,"token_group":74,"text":".","start_char":54,"line":18},{"index_id":95,"token_group":75,"text":"single","start_char":55,"line":18},{"index_id":96,"token_group":76,"text":"Value","start_char":61,"line":18},{"index_id":97,"token_group":76,"text":")","start_char":66,"line":18},{"index_id":98,"token_group":77,"text":"{","start_char":12,"line":19},{"index_id":99,"token_group":78,"text":"value","start_char":16,"line":20},{"index_id":100,"token_group":79,"text":"=","start_char":22,"line":20},{"index_id":101,"token_group":80,"text":"(","start_char":24,"line":20},{"index_id":102,"token_group":81,"text":"(","start_char":25,"line":20},{"index_id":103,"token_group":82,"text":"internal","start_char":26,"line":20},{"index_id":104,"token_group":83,"text":"Numeric","start_char":34,"line":20},{"index_id":105,"token_group":83,"text":"Metrics","start_char":41,"line":20},{"index_id":106,"token_group":83,"text":"Aggregation","start_char":48,"line":20},{"index_id":107,"token_group":83,"text":".","start_char":59,"line":20},{"index_id":108,"token_group":84,"text":"single","start_char":60,"line":20},{"index_id":109,"token_group":85,"text":"Value","start_char":66,"line":20},{"index_id":110,"token_group":85,"text":")","start_char":71,"line":20},{"index_id":111,"token_group":86,"text":"property","start_char":73,"line":20},{"index_id":112,"token_group":87,"text":"Value","start_char":81,"line":20},{"index_id":113,"token_group":87,"text":")","start_char":86,"line":20},{"index_id":114,"token_group":88,"text":".","start_char":87,"line":20},{"index_id":115,"token_group":89,"text":"value","start_char":88,"line":20},{"index_id":116,"token_group":90,"text":"(","start_char":93,"line":20},{"index_id":117,"token_group":91,"text":")","start_char":94,"line":20},{"index_id":118,"token_group":92,"text":";","start_char":95,"line":20},{"index_id":119,"token_group":93,"text":"}","start_char":12,"line":21},{"index_id":120,"token_group":94,"text":"else","start_char":12,"line":22},{"index_id":121,"token_group":95,"text":"{","start_char":12,"line":23},{"index_id":122,"token_group":96,"text":"throw","start_char":16,"line":24},{"index_id":123,"token_group":97,"text":"new","start_char":22,"line":24},{"index_id":124,"token_group":98,"text":"aggregation","start_char":26,"line":24},{"index_id":125,"token_group":99,"text":"Execution","start_char":37,"line":24},{"index_id":126,"token_group":99,"text":"Exception","start_char":46,"line":24},{"index_id":127,"token_group":99,"text":"(","start_char":55,"line":24},{"index_id":128,"token_group":100,"text":"derivative","start_char":20,"line":25},{"index_id":129,"token_group":101,"text":"Parser","start_char":30,"line":25},{"index_id":130,"token_group":101,"text":".","start_char":36,"line":25},{"index_id":131,"token_group":102,"text":"buckets","start_char":37,"line":25},{"index_id":132,"token_group":103,"text":"Path","start_char":45,"line":25},{"index_id":133,"token_group":103,"text":".","start_char":49,"line":25},{"index_id":134,"token_group":104,"text":"get","start_char":50,"line":25},{"index_id":135,"token_group":105,"text":"Preferred","start_char":53,"line":25},{"index_id":136,"token_group":105,"text":"Name","start_char":62,"line":25},{"index_id":137,"token_group":105,"text":"(","start_char":66,"line":25},{"index_id":138,"token_group":106,"text":")","start_char":67,"line":25},{"index_id":139,"token_group":107,"text":"+","start_char":20,"line":26},{"index_id":140,"token_group":108,"text":"\" must reference either a number value or a single value numeric metric aggregation, got: \"","start_char":22,"line":26},{"index_id":141,"token_group":109,"text":"+","start_char":20,"line":27},{"index_id":142,"token_group":110,"text":"property","start_char":22,"line":27},{"index_id":143,"token_group":111,"text":"Value","start_char":30,"line":27},{"index_id":144,"token_group":111,"text":".","start_char":35,"line":27},{"index_id":145,"token_group":112,"text":"get","start_char":36,"line":27},{"index_id":146,"token_group":113,"text":"Class","start_char":39,"line":27},{"index_id":147,"token_group":113,"text":"(","start_char":44,"line":27},{"index_id":148,"token_group":114,"text":")","start_char":45,"line":27},{"index_id":149,"token_group":115,"text":".","start_char":46,"line":27},{"index_id":150,"token_group":116,"text":"get","start_char":47,"line":27},{"index_id":151,"token_group":117,"text":"Canonical","start_char":50,"line":27},{"index_id":152,"token_group":117,"text":"Name","start_char":59,"line":27},{"index_id":153,"token_group":117,"text":"(","start_char":63,"line":27},{"index_id":154,"token_group":118,"text":")","start_char":64,"line":27},{"index_id":155,"token_group":119,"text":")","start_char":65,"line":27},{"index_id":156,"token_group":120,"text":";","start_char":66,"line":27},{"index_id":157,"token_group":121,"text":"}","start_char":12,"line":28},{"index_id":158,"token_group":122,"text":"boolean","start_char":12,"line":30},{"index_id":159,"token_group":123,"text":"is","start_char":20,"line":30},{"index_id":160,"token_group":124,"text":"Doc","start_char":22,"line":30},{"index_id":161,"token_group":124,"text":"Count","start_char":25,"line":30},{"index_id":162,"token_group":124,"text":"Property","start_char":30,"line":30},{"index_id":163,"token_group":124,"text":"=","start_char":39,"line":30},{"index_id":164,"token_group":125,"text":"agg","start_char":41,"line":30},{"index_id":165,"token_group":126,"text":"Path","start_char":44,"line":30},{"index_id":166,"token_group":126,"text":"As","start_char":48,"line":30},{"index_id":167,"token_group":126,"text":"List","start_char":50,"line":30},{"index_id":168,"token_group":126,"text":".","start_char":54,"line":30},{"index_id":169,"token_group":127,"text":"size","start_char":55,"line":30},{"index_id":170,"token_group":128,"text":"(","start_char":59,"line":30},{"index_id":171,"token_group":129,"text":")","start_char":60,"line":30},{"index_id":172,"token_group":130,"text":"==","start_char":62,"line":30},{"index_id":173,"token_group":131,"text":"1","start_char":65,"line":30},{"index_id":174,"token_group":132,"text":"&&","start_char":67,"line":30},{"index_id":175,"token_group":133,"text":"\"_count\"","start_char":41,"line":31},{"index_id":176,"token_group":134,"text":".","start_char":49,"line":31},{"index_id":177,"token_group":135,"text":"equals","start_char":50,"line":31},{"index_id":178,"token_group":136,"text":"(","start_char":56,"line":31},{"index_id":179,"token_group":137,"text":"agg","start_char":57,"line":31},{"index_id":180,"token_group":138,"text":"Path","start_char":60,"line":31},{"index_id":181,"token_group":138,"text":"As","start_char":64,"line":31},{"index_id":182,"token_group":138,"text":"List","start_char":66,"line":31},{"index_id":183,"token_group":138,"text":".","start_char":70,"line":31},{"index_id":184,"token_group":139,"text":"get","start_char":71,"line":31},{"index_id":185,"token_group":140,"text":"(","start_char":74,"line":31},{"index_id":186,"token_group":141,"text":"0","start_char":75,"line":31},{"index_id":187,"token_group":142,"text":")","start_char":76,"line":31},{"index_id":188,"token_group":143,"text":")","start_char":77,"line":31},{"index_id":189,"token_group":144,"text":";","start_char":78,"line":31},{"index_id":190,"token_group":145,"text":"if","start_char":12,"line":32},{"index_id":191,"token_group":146,"text":"(","start_char":15,"line":32},{"index_id":192,"token_group":147,"text":"double","start_char":16,"line":32},{"index_id":193,"token_group":148,"text":".","start_char":22,"line":32},{"index_id":194,"token_group":149,"text":"is","start_char":23,"line":32},{"index_id":195,"token_group":150,"text":"Infinite","start_char":25,"line":32},{"index_id":196,"token_group":150,"text":"(","start_char":33,"line":32},{"index_id":197,"token_group":151,"text":"value","start_char":34,"line":32},{"index_id":198,"token_group":152,"text":")","start_char":39,"line":32},{"index_id":199,"token_group":153,"text":"||","start_char":41,"line":32},{"index_id":200,"token_group":154,"text":"double","start_char":44,"line":32},{"index_id":201,"token_group":155,"text":".","start_char":50,"line":32},{"index_id":202,"token_group":156,"text":"is","start_char":51,"line":32},{"index_id":203,"token_group":157,"text":"Na","start_char":53,"line":32},{"index_id":204,"token_group":157,"text":"N","start_char":55,"line":32},{"index_id":205,"token_group":157,"text":"(","start_char":56,"line":32},{"index_id":206,"token_group":158,"text":"value","start_char":57,"line":32},{"index_id":207,"token_group":159,"text":")","start_char":62,"line":32},{"index_id":208,"token_group":160,"text":"||","start_char":64,"line":32},{"index_id":209,"token_group":161,"text":"(","start_char":20,"line":33},{"index_id":210,"token_group":162,"text":"bucket","start_char":21,"line":33},{"index_id":211,"token_group":163,"text":".","start_char":27,"line":33},{"index_id":212,"token_group":164,"text":"get","start_char":28,"line":33},{"index_id":213,"token_group":165,"text":"Doc","start_char":31,"line":33},{"index_id":214,"token_group":165,"text":"Count","start_char":34,"line":33},{"index_id":215,"token_group":165,"text":"(","start_char":39,"line":33},{"index_id":216,"token_group":166,"text":")","start_char":40,"line":33},{"index_id":217,"token_group":167,"text":"==","start_char":42,"line":33},{"index_id":218,"token_group":168,"text":"0","start_char":45,"line":33},{"index_id":219,"token_group":169,"text":"&&","start_char":47,"line":33},{"index_id":220,"token_group":170,"text":"!","start_char":50,"line":33},{"index_id":221,"token_group":171,"text":"is","start_char":51,"line":33},{"index_id":222,"token_group":172,"text":"Doc","start_char":53,"line":33},{"index_id":223,"token_group":172,"text":"Count","start_char":56,"line":33},{"index_id":224,"token_group":172,"text":"Property","start_char":61,"line":33},{"index_id":225,"token_group":172,"text":")","start_char":69,"line":33},{"index_id":226,"token_group":173,"text":")","start_char":70,"line":33},{"index_id":227,"token_group":174,"text":"{","start_char":12,"line":34},{"index_id":228,"token_group":175,"text":"switch","start_char":16,"line":35},{"index_id":229,"token_group":176,"text":"(","start_char":23,"line":35},{"index_id":230,"token_group":177,"text":"gap","start_char":24,"line":35},{"index_id":231,"token_group":178,"text":"Policy","start_char":27,"line":35},{"index_id":232,"token_group":178,"text":")","start_char":33,"line":35},{"index_id":233,"token_group":179,"text":"{","start_char":16,"line":36},{"index_id":234,"token_group":180,"text":"case","start_char":16,"line":37},{"index_id":235,"token_group":181,"text":"insert","start_char":21,"line":37},{"index_id":236,"token_group":182,"text":"Zeros","start_char":28,"line":37},{"index_id":237,"token_group":182,"text":":","start_char":33,"line":37},{"index_id":238,"token_group":183,"text":"return","start_char":20,"line":38},{"index_id":239,"token_group":184,"text":"0.0","start_char":27,"line":38},{"index_id":240,"token_group":185,"text":";","start_char":30,"line":38},{"index_id":241,"token_group":186,"text":"case","start_char":16,"line":39},{"index_id":242,"token_group":187,"text":"skip","start_char":21,"line":39},{"index_id":243,"token_group":188,"text":":","start_char":25,"line":39},{"index_id":244,"token_group":189,"text":"default","start_char":16,"line":40},{"index_id":245,"token_group":190,"text":":","start_char":23,"line":40},{"index_id":246,"token_group":191,"text":"return","start_char":20,"line":41},{"index_id":247,"token_group":192,"text":"double","start_char":27,"line":41},{"index_id":248,"token_group":193,"text":".","start_char":33,"line":41},{"index_id":249,"token_group":194,"text":"na","start_char":34,"line":41},{"index_id":250,"token_group":195,"text":"N","start_char":36,"line":41},{"index_id":251,"token_group":195,"text":";","start_char":37,"line":41},{"index_id":252,"token_group":196,"text":"}","start_char":16,"line":42},{"index_id":253,"token_group":197,"text":"}","start_char":12,"line":43},{"index_id":254,"token_group":198,"text":"else","start_char":12,"line":44},{"index_id":255,"token_group":199,"text":"{","start_char":12,"line":45},{"index_id":256,"token_group":200,"text":"return","start_char":16,"line":46},{"index_id":257,"token_group":201,"text":"value","start_char":23,"line":46},{"index_id":258,"token_group":202,"text":";","start_char":28,"line":46},{"index_id":259,"token_group":203,"text":"}","start_char":12,"line":47},{"index_id":260,"token_group":204,"text":"}","start_char":8,"line":48},{"index_id":261,"token_group":205,"text":"}","start_char":4,"line":49},{"index_id":262,"token_group":206,"text":"catch","start_char":4,"line":50},{"index_id":263,"token_group":207,"text":"(","start_char":10,"line":50},{"index_id":264,"token_group":208,"text":"invalid","start_char":11,"line":50},{"index_id":265,"token_group":209,"text":"Aggregation","start_char":18,"line":50},{"index_id":266,"token_group":209,"text":"Path","start_char":29,"line":50},{"index_id":267,"token_group":209,"text":"Exception","start_char":33,"line":50},{"index_id":268,"token_group":209,"text":"e","start_char":43,"line":50},{"index_id":269,"token_group":210,"text":")","start_char":44,"line":50},{"index_id":270,"token_group":211,"text":"{","start_char":4,"line":51},{"index_id":271,"token_group":212,"text":"return","start_char":8,"line":52},{"index_id":272,"token_group":213,"text":"null","start_char":15,"line":52},{"index_id":273,"token_group":214,"text":";","start_char":19,"line":52},{"index_id":274,"token_group":215,"text":"}","start_char":4,"line":53},{"index_id":275,"token_group":216,"text":"}","start_char":0,"line":54}],"tokens_list":["{","try","{","object","property","Value","=","bucket",".","get","Property","(","agg",".","get","Name","(",")",",","agg","Path","As","List",")",";","if","(","property","Value","==","null",")","{","throw","new","aggregation","Execution","Exception","(","derivative","Parser",".","buckets","Path",".","get","Preferred","Name","(",")","+","\" must reference either a number value or a single value numeric metric aggregation\"",")",";","}","else","{","double","value",";","if","(","property","Value","Instanceof","number",")","{","value","=","(","(","number",")","property","Value",")",".","double","Value","(",")",";","}","else","if","(","property","Value","Instanceof","internal","Numeric","Metrics","Aggregation",".","single","Value",")","{","value","=","(","(","internal","Numeric","Metrics","Aggregation",".","single","Value",")","property","Value",")",".","value","(",")",";","}","else","{","throw","new","aggregation","Execution","Exception","(","derivative","Parser",".","buckets","Path",".","get","Preferred","Name","(",")","+","\" must reference either a number value or a single value numeric metric aggregation, got: \"","+","property","Value",".","get","Class","(",")",".","get","Canonical","Name","(",")",")",";","}","boolean","is","Doc","Count","Property","=","agg","Path","As","List",".","size","(",")","==","1","&&","\"_count\"",".","equals","(","agg","Path","As","List",".","get","(","0",")",")",";","if","(","double",".","is","Infinite","(","value",")","||","double",".","is","Na","N","(","value",")","||","(","bucket",".","get","Doc","Count","(",")","==","0","&&","!","is","Doc","Count","Property",")",")","{","switch","(","gap","Policy",")","{","case","insert","Zeros",":","return","0.0",";","case","skip",":","default",":","return","double",".","na","N",";","}","}","else","{","return","value",";","}","}","}","catch","(","invalid","Aggregation","Path","Exception","e",")","{","return","null",";","}","}"],"uuid":"fe3353b402b0cef80a4fed24757b8d37"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","gridmix","Test","Utils","<\/id>",".","<id>","init","Cluster","<\/id>","(","<id>","test","Dist","Cache","Emulation","<\/id>",".","class",")",";","<id>","file","<\/id>","<id>","target","<\/id>","=","new","<id>","file","<\/id>","(","\"target\"","+","<id>","file","<\/id>",".","<id>","separator","<\/id>","+","<id>","test","Dist","Cache","Emulation","<\/id>",".","class",".","<id>","get","Name","<\/id>","(",")",")",";","if","(","!","<id>","target","<\/id>",".","<id>","exists","<\/id>","(",")",")","{","<id>","assert","True","<\/id>","(","<id>","target","<\/id>",".","<id>","mkdirs","<\/id>","(",")",")",";","}","}","<SENTENCE_END\/>"],"file_name":"TestDistCacheEmulation.java","formatted_lines":["{"," GridmixTestUtils.initCluster(TestDistCacheEmulation.class);"," File target = new File(\"target\" + File.separator + TestDistCacheEmulation.class.getName());"," if(!target.exists())"," {"," assertTrue(target.mkdirs());"," }","","}"],"function_name":"init","function_name_tokens":["init"],"id_body_hash":"5e86fe6d0f5e6485257d9421f75777b2","id_same_identifier_list":[0,1,2,2,2,3,4,4,5,6,6,6,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,23,23,23,24,25,26,27,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,42,43,44,45,46,47,48,49,50,51,52,53],"option_correct":"init","options":["init","failedInit","initConfiguration","getPartition","getMapperTriesToSucceed","deleteBlocks","initContainers"],"options_nlp":["init","failed init","init configuration","get partition","get mapper tries to succeed","delete blocks","init containers"],"options_random":["deleteBlocks","getPartition","getMapperTriesToSucceed"],"options_tfidf":["failedInit","initConfiguration","initContainers"],"project_name":"hadoop-common","source_code_string":"@BeforeClass\n public static void init() throws IOException {\n GridmixTestUtils.initCluster(TestDistCacheEmulation.class);\n File target=new File(\"target\"+File.separator+TestDistCacheEmulation.class.getName());\n if(!target.exists()){\n assertTrue(target.mkdirs());\n }\n \n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"gridmix","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"Test","start_char":11,"line":1},{"index_id":3,"token_group":2,"text":"Utils","start_char":15,"line":1},{"index_id":4,"token_group":2,"text":".","start_char":20,"line":1},{"index_id":5,"token_group":3,"text":"init","start_char":21,"line":1},{"index_id":6,"token_group":4,"text":"Cluster","start_char":25,"line":1},{"index_id":7,"token_group":4,"text":"(","start_char":32,"line":1},{"index_id":8,"token_group":5,"text":"test","start_char":33,"line":1},{"index_id":9,"token_group":6,"text":"Dist","start_char":37,"line":1},{"index_id":10,"token_group":6,"text":"Cache","start_char":41,"line":1},{"index_id":11,"token_group":6,"text":"Emulation","start_char":46,"line":1},{"index_id":12,"token_group":6,"text":".","start_char":55,"line":1},{"index_id":13,"token_group":7,"text":"class","start_char":56,"line":1},{"index_id":14,"token_group":8,"text":")","start_char":61,"line":1},{"index_id":15,"token_group":9,"text":";","start_char":62,"line":1},{"index_id":16,"token_group":10,"text":"file","start_char":4,"line":2},{"index_id":17,"token_group":11,"text":"target","start_char":9,"line":2},{"index_id":18,"token_group":12,"text":"=","start_char":16,"line":2},{"index_id":19,"token_group":13,"text":"new","start_char":18,"line":2},{"index_id":20,"token_group":14,"text":"file","start_char":22,"line":2},{"index_id":21,"token_group":15,"text":"(","start_char":26,"line":2},{"index_id":22,"token_group":16,"text":"\"target\"","start_char":27,"line":2},{"index_id":23,"token_group":17,"text":"+","start_char":36,"line":2},{"index_id":24,"token_group":18,"text":"file","start_char":38,"line":2},{"index_id":25,"token_group":19,"text":".","start_char":42,"line":2},{"index_id":26,"token_group":20,"text":"separator","start_char":43,"line":2},{"index_id":27,"token_group":21,"text":"+","start_char":53,"line":2},{"index_id":28,"token_group":22,"text":"test","start_char":55,"line":2},{"index_id":29,"token_group":23,"text":"Dist","start_char":59,"line":2},{"index_id":30,"token_group":23,"text":"Cache","start_char":63,"line":2},{"index_id":31,"token_group":23,"text":"Emulation","start_char":68,"line":2},{"index_id":32,"token_group":23,"text":".","start_char":77,"line":2},{"index_id":33,"token_group":24,"text":"class","start_char":78,"line":2},{"index_id":34,"token_group":25,"text":".","start_char":83,"line":2},{"index_id":35,"token_group":26,"text":"get","start_char":84,"line":2},{"index_id":36,"token_group":27,"text":"Name","start_char":87,"line":2},{"index_id":37,"token_group":27,"text":"(","start_char":91,"line":2},{"index_id":38,"token_group":28,"text":")","start_char":92,"line":2},{"index_id":39,"token_group":29,"text":")","start_char":93,"line":2},{"index_id":40,"token_group":30,"text":";","start_char":94,"line":2},{"index_id":41,"token_group":31,"text":"if","start_char":4,"line":3},{"index_id":42,"token_group":32,"text":"(","start_char":6,"line":3},{"index_id":43,"token_group":33,"text":"!","start_char":7,"line":3},{"index_id":44,"token_group":34,"text":"target","start_char":8,"line":3},{"index_id":45,"token_group":35,"text":".","start_char":14,"line":3},{"index_id":46,"token_group":36,"text":"exists","start_char":15,"line":3},{"index_id":47,"token_group":37,"text":"(","start_char":21,"line":3},{"index_id":48,"token_group":38,"text":")","start_char":22,"line":3},{"index_id":49,"token_group":39,"text":")","start_char":23,"line":3},{"index_id":50,"token_group":40,"text":"{","start_char":4,"line":4},{"index_id":51,"token_group":41,"text":"assert","start_char":8,"line":5},{"index_id":52,"token_group":42,"text":"True","start_char":14,"line":5},{"index_id":53,"token_group":42,"text":"(","start_char":18,"line":5},{"index_id":54,"token_group":43,"text":"target","start_char":19,"line":5},{"index_id":55,"token_group":44,"text":".","start_char":25,"line":5},{"index_id":56,"token_group":45,"text":"mkdirs","start_char":26,"line":5},{"index_id":57,"token_group":46,"text":"(","start_char":32,"line":5},{"index_id":58,"token_group":47,"text":")","start_char":33,"line":5},{"index_id":59,"token_group":48,"text":")","start_char":34,"line":5},{"index_id":60,"token_group":49,"text":";","start_char":35,"line":5},{"index_id":61,"token_group":50,"text":"}","start_char":4,"line":6},{"index_id":62,"token_group":51,"text":"}","start_char":0,"line":8}],"tokens_list":["{","gridmix","Test","Utils",".","init","Cluster","(","test","Dist","Cache","Emulation",".","class",")",";","file","target","=","new","file","(","\"target\"","+","file",".","separator","+","test","Dist","Cache","Emulation",".","class",".","get","Name","(",")",")",";","if","(","!","target",".","exists","(",")",")","{","assert","True","(","target",".","mkdirs","(",")",")",";","}","}"],"uuid":"23ce7883725caf7e53466898be10d2cb"},{"cap_original_tokens":["<SENTENCE_START>","{","return","<id>","my","Name","<\/id>",";","}","<SENTENCE_END\/>"],"file_name":"AddParameterFix.java","formatted_lines":["{"," return myName;","}"],"function_name":"getParamName","function_name_tokens":["get","param","name"],"id_body_hash":"d28004da1e90bd22a84dd016541a6655","id_same_identifier_list":[0,1,2,3,3,4,5,6],"option_correct":"getParamName","options":["testParamNameEqMethodName","testDefaultPluginsAsDeclared","invokeImpl","getOutputFileName","getName","getQName","getParamName"],"options_nlp":["test param name eq method name","test default plugins as declared","invoke impl","get output file name","get name","get q name","get param name"],"options_random":["getOutputFileName","testDefaultPluginsAsDeclared","invokeImpl"],"options_tfidf":["getQName","getName","testParamNameEqMethodName"],"project_name":"intellij-community","source_code_string":"protected String getParamName() {\n return myName;\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"return","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"my","start_char":11,"line":1},{"index_id":3,"token_group":3,"text":"Name","start_char":13,"line":1},{"index_id":4,"token_group":3,"text":";","start_char":17,"line":1},{"index_id":5,"token_group":4,"text":"}","start_char":0,"line":2}],"tokens_list":["{","return","my","Name",";","}"],"uuid":"8e75fd0b43aea86bfa961494a5ac63c7"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","","Called","Update","Table","<\/id>","=","true",";","<id>","generate","Temp","File","<\/id>","(","<id>","source","Connection","<\/id>",")",";","<id>","string","<\/id>","<id>","temp","File","Name","<\/id>","=","<id>","get","Temp","File","Name","<\/id>","(",")",";","try","{","<id>","db","<\/id>","<id>","db","<\/id>","=","<id>","db","Manager","Util","<\/id>",".","<id>","get","Db","<\/id>","(",")",";","if","(","<id>","validator","<\/id>",".","<id>","is","Not","Null","<\/id>","(","<id>","temp","File","Name","<\/id>",")","&&","<id>","delete","Source","<\/id>",")","{","<id>","string","<\/id>","<id>","delete","Sql","<\/id>","=","<id>","get","Delete","Sql","<\/id>","(",")",";","<id>","db","<\/id>",".","<id>","run","Sql","<\/id>","(","<id>","source","Connection","<\/id>",",","<id>","delete","Sql","<\/id>",")",";","}","<id>","string","<\/id>","<id>","create","Sql","<\/id>","=","<id>","get","Create","Sql","<\/id>","(",")",";","if","(","<id>","validator","<\/id>",".","<id>","is","Not","Null","<\/id>","(","<id>","create","Sql","<\/id>",")",")","{","if","(","<id>","delete","Source","<\/id>",")","{","<id>","db","<\/id>",".","<id>","run","Sql","<\/id>","(","<id>","source","Connection","<\/id>",",","\"drop table \"","+","<id>","get","Table","Name","<\/id>","(",")",")",";","}","<id>","db","<\/id>",".","<id>","run","Sql","<\/id>","(","<id>","target","Connection","<\/id>",",","<id>","create","Sql","<\/id>",")",";","}","<id>","populate","Table","<\/id>","(","<id>","target","Connection","<\/id>",")",";","<id>","string","<\/id>","[","]","<id>","indexes","Sql","<\/id>","=","<id>","get","Indexes","Sql","<\/id>","(",")",";","boolean","<id>","drop","Indexes","<\/id>","=","false",";","for","(","<id>","string","<\/id>","<id>","index","Sql","<\/id>",":","<id>","indexes","Sql","<\/id>",")","{","if","(","!","<id>","is","Allow","Unique","Indexes","<\/id>","(",")",")","{","if","(","<id>","index","Sql","<\/id>",".","<id>","contains","<\/id>","(","\"create unique index\"",")",")","{","<id>","index","Sql","<\/id>","=","<id>","string","Util","<\/id>",".","<id>","replace","<\/id>","(","<id>","index","Sql","<\/id>",",","\"create unique index \"",",","\"create index \"",")",";","<id>","drop","Indexes","<\/id>","=","true",";","}","}","try","{","<id>","db","<\/id>",".","<id>","run","Sql","Template","String","<\/id>","(","<id>","target","Connection","<\/id>",",","<id>","index","Sql","<\/id>",",","false",",","false",")",";","}","catch","(","<id>","exception","<\/id>","<id>","e","<\/id>",")","{","if","(","<id>","","Log","<\/id>",".","<id>","is","Warn","Enabled","<\/id>","(",")",")","{","<id>","","Log","<\/id>",".","<id>","warn","<\/id>","(","<id>","e","<\/id>",".","<id>","get","Message","<\/id>","(",")","+","\": \"","+","<id>","index","Sql","<\/id>",")",";","}","}","}","if","(","<id>","drop","Indexes","<\/id>",")","{","<id>","startup","Helper","Util","<\/id>",".","<id>","set","Drop","Indexes","<\/id>","(","true",")",";","}","}","finally","{","if","(","<id>","validator","<\/id>",".","<id>","is","Not","Null","<\/id>","(","<id>","temp","File","Name","<\/id>",")","&&","<id>","","Delete","Temp","File","<\/id>",")","{","<id>","file","Util","<\/id>",".","<id>","delete","<\/id>","(","<id>","temp","File","Name","<\/id>",")",";","}","}","}","<SENTENCE_END\/>"],"file_name":"BaseUpgradeTableImpl.java","formatted_lines":["{",""," _calledUpdateTable = true;",""," generateTempFile(sourceConnection);",""," String tempFileName = getTempFileName();",""," try"," {"," DB db = DBManagerUtil.getDB();",""," if (Validator.isNotNull(tempFileName) && deleteSource)"," {"," String deleteSQL = getDeleteSQL();",""," db.runSQL(sourceConnection, deleteSQL);"," }",""," String createSQL = getCreateSQL();",""," if (Validator.isNotNull(createSQL))"," {"," if (deleteSource)"," {"," db.runSQL(sourceConnection, \"drop table \" + getTableName());"," }",""," db.runSQL(targetConnection, createSQL);"," }",""," populateTable(targetConnection);",""," String[] indexesSQL = getIndexesSQL();",""," boolean dropIndexes = false;",""," for (String indexSQL : indexesSQL)"," {"," if (!isAllowUniqueIndexes())"," {"," if (indexSQL.contains(\"create unique index\"))"," {"," indexSQL = StringUtil.replace("," indexSQL, \"create unique index \", \"create index \");",""," dropIndexes = true;"," }"," }",""," try"," {"," db.runSQLTemplateString("," targetConnection, indexSQL, false, false);"," }"," catch (Exception e)"," {"," if (_log.isWarnEnabled())"," {"," _log.warn(e.getMessage() + \": \" + indexSQL);"," }"," }"," }",""," if (dropIndexes)"," {"," StartupHelperUtil.setDropIndexes(true);"," }"," }"," finally {"," if (Validator.isNotNull(tempFileName) && _deleteTempFile)"," {"," FileUtil.delete(tempFileName);"," }"," }","}"],"function_name":"updateTable","function_name_tokens":["update","table"],"id_body_hash":"a62d2c622c7f478d86f77356192ec20f","id_same_identifier_list":[0,1,2,2,2,2,3,4,5,6,6,6,7,8,8,9,10,11,12,12,12,13,14,14,14,14,15,16,17,18,19,20,21,22,23,23,23,24,25,25,26,27,28,29,30,31,32,33,33,33,34,35,35,35,36,37,38,38,39,40,41,42,42,43,44,44,44,45,46,47,48,49,50,50,51,52,52,53,54,54,55,56,57,58,59,59,60,61,61,61,62,63,64,65,66,67,68,69,69,69,70,71,71,72,73,74,75,76,77,77,78,79,80,81,82,82,83,84,84,85,86,87,88,88,88,89,90,91,92,93,94,95,96,96,97,98,98,99,100,100,101,102,103,104,104,105,106,106,107,108,109,110,111,112,112,113,114,114,114,115,116,117,118,119,119,120,121,122,123,124,125,126,126,127,128,128,129,130,131,132,133,134,134,134,134,135,136,137,138,139,140,141,141,142,143,144,145,146,147,148,149,149,150,151,151,152,153,154,155,155,156,157,158,159,160,161,162,162,163,164,165,166,167,168,169,170,171,172,172,172,172,173,174,174,175,176,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,192,193,194,194,194,195,196,197,198,199,199,200,201,202,203,204,205,205,206,207,208,209,210,211,211,212,213,214,215,216,217,218,219,219,220,221,222,222,222,223,224,224,224,225,226,227,228,229,230,231,232,233,234,235,236,237,237,237,238,239,239,239,240,241,242,242,242,242,243,244,245,245,246,247,248,249,249,249,250,251,252,253,254,255],"option_correct":"updateTable","options":["updateTable","mDASH","testAssignUsersToForbiddenRole","testUpdate1","createConfigurationTable","renameTable","replaceTokens"],"options_nlp":["update table","m dash","test assign users to forbidden role","test update 1","create configuration table","rename table","replace tokens"],"options_random":["testAssignUsersToForbiddenRole","mDASH","replaceTokens"],"options_tfidf":["renameTable","createConfigurationTable","testUpdate1"],"project_name":"liferay-portal","source_code_string":"protected void updateTable(\n\t\t\tConnection sourceConnection, Connection targetConnection,\n\t\t\tboolean deleteSource)\n\t\tthrows Exception {\n\n\t\t_calledUpdateTable = true;\n\n\t\tgenerateTempFile(sourceConnection);\n\n\t\tString tempFileName = getTempFileName();\n\n\t\ttry {\n\t\t\tDB db = DBManagerUtil.getDB();\n\n\t\t\tif (Validator.isNotNull(tempFileName) && deleteSource) {\n\t\t\t\tString deleteSQL = getDeleteSQL();\n\n\t\t\t\tdb.runSQL(sourceConnection, deleteSQL);\n\t\t\t}\n\n\t\t\tString createSQL = getCreateSQL();\n\n\t\t\tif (Validator.isNotNull(createSQL)) {\n\t\t\t\tif (deleteSource) {\n\t\t\t\t\tdb.runSQL(sourceConnection, \"drop table \" + getTableName());\n\t\t\t\t}\n\n\t\t\t\tdb.runSQL(targetConnection, createSQL);\n\t\t\t}\n\n\t\t\tpopulateTable(targetConnection);\n\n\t\t\tString[] indexesSQL = getIndexesSQL();\n\n\t\t\tboolean dropIndexes = false;\n\n\t\t\tfor (String indexSQL : indexesSQL) {\n\t\t\t\tif (!isAllowUniqueIndexes()) {\n\t\t\t\t\tif (indexSQL.contains(\"create unique index\")) {\n\t\t\t\t\t\tindexSQL = StringUtil.replace(\n\t\t\t\t\t\t\tindexSQL, \"create unique index \", \"create index \");\n\n\t\t\t\t\t\tdropIndexes = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tdb.runSQLTemplateString(\n\t\t\t\t\t\ttargetConnection, indexSQL, false, false);\n\t\t\t\t}\n\t\t\t\tcatch (Exception e) {\n\t\t\t\t\tif (_log.isWarnEnabled()) {\n\t\t\t\t\t\t_log.warn(e.getMessage() + \": \" + indexSQL);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (dropIndexes) {\n\t\t\t\tStartupHelperUtil.setDropIndexes(true);\n\t\t\t}\n\t\t}\n\t\tfinally {\n\t\t\tif (Validator.isNotNull(tempFileName) && _deleteTempFile) {\n\t\t\t\tFileUtil.delete(tempFileName);\n\t\t\t}\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":"","start_char":1,"line":0},{"index_id":2,"token_group":2,"text":"Called","start_char":5,"line":2},{"index_id":3,"token_group":2,"text":"Update","start_char":11,"line":2},{"index_id":4,"token_group":2,"text":"Table","start_char":17,"line":2},{"index_id":5,"token_group":2,"text":"=","start_char":23,"line":2},{"index_id":6,"token_group":3,"text":"true","start_char":25,"line":2},{"index_id":7,"token_group":4,"text":";","start_char":29,"line":2},{"index_id":8,"token_group":5,"text":"generate","start_char":4,"line":4},{"index_id":9,"token_group":6,"text":"Temp","start_char":12,"line":4},{"index_id":10,"token_group":6,"text":"File","start_char":16,"line":4},{"index_id":11,"token_group":6,"text":"(","start_char":20,"line":4},{"index_id":12,"token_group":7,"text":"source","start_char":21,"line":4},{"index_id":13,"token_group":8,"text":"Connection","start_char":27,"line":4},{"index_id":14,"token_group":8,"text":")","start_char":37,"line":4},{"index_id":15,"token_group":9,"text":";","start_char":38,"line":4},{"index_id":16,"token_group":10,"text":"string","start_char":4,"line":6},{"index_id":17,"token_group":11,"text":"temp","start_char":11,"line":6},{"index_id":18,"token_group":12,"text":"File","start_char":15,"line":6},{"index_id":19,"token_group":12,"text":"Name","start_char":19,"line":6},{"index_id":20,"token_group":12,"text":"=","start_char":24,"line":6},{"index_id":21,"token_group":13,"text":"get","start_char":26,"line":6},{"index_id":22,"token_group":14,"text":"Temp","start_char":29,"line":6},{"index_id":23,"token_group":14,"text":"File","start_char":33,"line":6},{"index_id":24,"token_group":14,"text":"Name","start_char":37,"line":6},{"index_id":25,"token_group":14,"text":"(","start_char":41,"line":6},{"index_id":26,"token_group":15,"text":")","start_char":42,"line":6},{"index_id":27,"token_group":16,"text":";","start_char":43,"line":6},{"index_id":28,"token_group":17,"text":"try","start_char":4,"line":8},{"index_id":29,"token_group":18,"text":"{","start_char":4,"line":9},{"index_id":30,"token_group":19,"text":"db","start_char":8,"line":10},{"index_id":31,"token_group":20,"text":"db","start_char":11,"line":10},{"index_id":32,"token_group":21,"text":"=","start_char":14,"line":10},{"index_id":33,"token_group":22,"text":"db","start_char":16,"line":10},{"index_id":34,"token_group":23,"text":"Manager","start_char":18,"line":10},{"index_id":35,"token_group":23,"text":"Util","start_char":25,"line":10},{"index_id":36,"token_group":23,"text":".","start_char":29,"line":10},{"index_id":37,"token_group":24,"text":"get","start_char":30,"line":10},{"index_id":38,"token_group":25,"text":"Db","start_char":33,"line":10},{"index_id":39,"token_group":25,"text":"(","start_char":35,"line":10},{"index_id":40,"token_group":26,"text":")","start_char":36,"line":10},{"index_id":41,"token_group":27,"text":";","start_char":37,"line":10},{"index_id":42,"token_group":28,"text":"if","start_char":8,"line":12},{"index_id":43,"token_group":29,"text":"(","start_char":11,"line":12},{"index_id":44,"token_group":30,"text":"validator","start_char":12,"line":12},{"index_id":45,"token_group":31,"text":".","start_char":21,"line":12},{"index_id":46,"token_group":32,"text":"is","start_char":22,"line":12},{"index_id":47,"token_group":33,"text":"Not","start_char":24,"line":12},{"index_id":48,"token_group":33,"text":"Null","start_char":27,"line":12},{"index_id":49,"token_group":33,"text":"(","start_char":31,"line":12},{"index_id":50,"token_group":34,"text":"temp","start_char":32,"line":12},{"index_id":51,"token_group":35,"text":"File","start_char":36,"line":12},{"index_id":52,"token_group":35,"text":"Name","start_char":40,"line":12},{"index_id":53,"token_group":35,"text":")","start_char":44,"line":12},{"index_id":54,"token_group":36,"text":"&&","start_char":46,"line":12},{"index_id":55,"token_group":37,"text":"delete","start_char":49,"line":12},{"index_id":56,"token_group":38,"text":"Source","start_char":55,"line":12},{"index_id":57,"token_group":38,"text":")","start_char":61,"line":12},{"index_id":58,"token_group":39,"text":"{","start_char":8,"line":13},{"index_id":59,"token_group":40,"text":"string","start_char":12,"line":14},{"index_id":60,"token_group":41,"text":"delete","start_char":19,"line":14},{"index_id":61,"token_group":42,"text":"Sql","start_char":25,"line":14},{"index_id":62,"token_group":42,"text":"=","start_char":29,"line":14},{"index_id":63,"token_group":43,"text":"get","start_char":31,"line":14},{"index_id":64,"token_group":44,"text":"Delete","start_char":34,"line":14},{"index_id":65,"token_group":44,"text":"Sql","start_char":40,"line":14},{"index_id":66,"token_group":44,"text":"(","start_char":43,"line":14},{"index_id":67,"token_group":45,"text":")","start_char":44,"line":14},{"index_id":68,"token_group":46,"text":";","start_char":45,"line":14},{"index_id":69,"token_group":47,"text":"db","start_char":12,"line":16},{"index_id":70,"token_group":48,"text":".","start_char":14,"line":16},{"index_id":71,"token_group":49,"text":"run","start_char":15,"line":16},{"index_id":72,"token_group":50,"text":"Sql","start_char":18,"line":16},{"index_id":73,"token_group":50,"text":"(","start_char":21,"line":16},{"index_id":74,"token_group":51,"text":"source","start_char":22,"line":16},{"index_id":75,"token_group":52,"text":"Connection","start_char":28,"line":16},{"index_id":76,"token_group":52,"text":",","start_char":38,"line":16},{"index_id":77,"token_group":53,"text":"delete","start_char":40,"line":16},{"index_id":78,"token_group":54,"text":"Sql","start_char":46,"line":16},{"index_id":79,"token_group":54,"text":")","start_char":49,"line":16},{"index_id":80,"token_group":55,"text":";","start_char":50,"line":16},{"index_id":81,"token_group":56,"text":"}","start_char":8,"line":17},{"index_id":82,"token_group":57,"text":"string","start_char":8,"line":19},{"index_id":83,"token_group":58,"text":"create","start_char":15,"line":19},{"index_id":84,"token_group":59,"text":"Sql","start_char":21,"line":19},{"index_id":85,"token_group":59,"text":"=","start_char":25,"line":19},{"index_id":86,"token_group":60,"text":"get","start_char":27,"line":19},{"index_id":87,"token_group":61,"text":"Create","start_char":30,"line":19},{"index_id":88,"token_group":61,"text":"Sql","start_char":36,"line":19},{"index_id":89,"token_group":61,"text":"(","start_char":39,"line":19},{"index_id":90,"token_group":62,"text":")","start_char":40,"line":19},{"index_id":91,"token_group":63,"text":";","start_char":41,"line":19},{"index_id":92,"token_group":64,"text":"if","start_char":8,"line":21},{"index_id":93,"token_group":65,"text":"(","start_char":11,"line":21},{"index_id":94,"token_group":66,"text":"validator","start_char":12,"line":21},{"index_id":95,"token_group":67,"text":".","start_char":21,"line":21},{"index_id":96,"token_group":68,"text":"is","start_char":22,"line":21},{"index_id":97,"token_group":69,"text":"Not","start_char":24,"line":21},{"index_id":98,"token_group":69,"text":"Null","start_char":27,"line":21},{"index_id":99,"token_group":69,"text":"(","start_char":31,"line":21},{"index_id":100,"token_group":70,"text":"create","start_char":32,"line":21},{"index_id":101,"token_group":71,"text":"Sql","start_char":38,"line":21},{"index_id":102,"token_group":71,"text":")","start_char":41,"line":21},{"index_id":103,"token_group":72,"text":")","start_char":42,"line":21},{"index_id":104,"token_group":73,"text":"{","start_char":8,"line":22},{"index_id":105,"token_group":74,"text":"if","start_char":12,"line":23},{"index_id":106,"token_group":75,"text":"(","start_char":15,"line":23},{"index_id":107,"token_group":76,"text":"delete","start_char":16,"line":23},{"index_id":108,"token_group":77,"text":"Source","start_char":22,"line":23},{"index_id":109,"token_group":77,"text":")","start_char":28,"line":23},{"index_id":110,"token_group":78,"text":"{","start_char":12,"line":24},{"index_id":111,"token_group":79,"text":"db","start_char":16,"line":25},{"index_id":112,"token_group":80,"text":".","start_char":18,"line":25},{"index_id":113,"token_group":81,"text":"run","start_char":19,"line":25},{"index_id":114,"token_group":82,"text":"Sql","start_char":22,"line":25},{"index_id":115,"token_group":82,"text":"(","start_char":25,"line":25},{"index_id":116,"token_group":83,"text":"source","start_char":26,"line":25},{"index_id":117,"token_group":84,"text":"Connection","start_char":32,"line":25},{"index_id":118,"token_group":84,"text":",","start_char":42,"line":25},{"index_id":119,"token_group":85,"text":"\"drop table \"","start_char":44,"line":25},{"index_id":120,"token_group":86,"text":"+","start_char":58,"line":25},{"index_id":121,"token_group":87,"text":"get","start_char":60,"line":25},{"index_id":122,"token_group":88,"text":"Table","start_char":63,"line":25},{"index_id":123,"token_group":88,"text":"Name","start_char":68,"line":25},{"index_id":124,"token_group":88,"text":"(","start_char":72,"line":25},{"index_id":125,"token_group":89,"text":")","start_char":73,"line":25},{"index_id":126,"token_group":90,"text":")","start_char":74,"line":25},{"index_id":127,"token_group":91,"text":";","start_char":75,"line":25},{"index_id":128,"token_group":92,"text":"}","start_char":12,"line":26},{"index_id":129,"token_group":93,"text":"db","start_char":12,"line":28},{"index_id":130,"token_group":94,"text":".","start_char":14,"line":28},{"index_id":131,"token_group":95,"text":"run","start_char":15,"line":28},{"index_id":132,"token_group":96,"text":"Sql","start_char":18,"line":28},{"index_id":133,"token_group":96,"text":"(","start_char":21,"line":28},{"index_id":134,"token_group":97,"text":"target","start_char":22,"line":28},{"index_id":135,"token_group":98,"text":"Connection","start_char":28,"line":28},{"index_id":136,"token_group":98,"text":",","start_char":38,"line":28},{"index_id":137,"token_group":99,"text":"create","start_char":40,"line":28},{"index_id":138,"token_group":100,"text":"Sql","start_char":46,"line":28},{"index_id":139,"token_group":100,"text":")","start_char":49,"line":28},{"index_id":140,"token_group":101,"text":";","start_char":50,"line":28},{"index_id":141,"token_group":102,"text":"}","start_char":8,"line":29},{"index_id":142,"token_group":103,"text":"populate","start_char":8,"line":31},{"index_id":143,"token_group":104,"text":"Table","start_char":16,"line":31},{"index_id":144,"token_group":104,"text":"(","start_char":21,"line":31},{"index_id":145,"token_group":105,"text":"target","start_char":22,"line":31},{"index_id":146,"token_group":106,"text":"Connection","start_char":28,"line":31},{"index_id":147,"token_group":106,"text":")","start_char":38,"line":31},{"index_id":148,"token_group":107,"text":";","start_char":39,"line":31},{"index_id":149,"token_group":108,"text":"string","start_char":8,"line":33},{"index_id":150,"token_group":109,"text":"[","start_char":14,"line":33},{"index_id":151,"token_group":110,"text":"]","start_char":15,"line":33},{"index_id":152,"token_group":111,"text":"indexes","start_char":17,"line":33},{"index_id":153,"token_group":112,"text":"Sql","start_char":24,"line":33},{"index_id":154,"token_group":112,"text":"=","start_char":28,"line":33},{"index_id":155,"token_group":113,"text":"get","start_char":30,"line":33},{"index_id":156,"token_group":114,"text":"Indexes","start_char":33,"line":33},{"index_id":157,"token_group":114,"text":"Sql","start_char":40,"line":33},{"index_id":158,"token_group":114,"text":"(","start_char":43,"line":33},{"index_id":159,"token_group":115,"text":")","start_char":44,"line":33},{"index_id":160,"token_group":116,"text":";","start_char":45,"line":33},{"index_id":161,"token_group":117,"text":"boolean","start_char":8,"line":35},{"index_id":162,"token_group":118,"text":"drop","start_char":16,"line":35},{"index_id":163,"token_group":119,"text":"Indexes","start_char":20,"line":35},{"index_id":164,"token_group":119,"text":"=","start_char":28,"line":35},{"index_id":165,"token_group":120,"text":"false","start_char":30,"line":35},{"index_id":166,"token_group":121,"text":";","start_char":35,"line":35},{"index_id":167,"token_group":122,"text":"for","start_char":8,"line":37},{"index_id":168,"token_group":123,"text":"(","start_char":12,"line":37},{"index_id":169,"token_group":124,"text":"string","start_char":13,"line":37},{"index_id":170,"token_group":125,"text":"index","start_char":20,"line":37},{"index_id":171,"token_group":126,"text":"Sql","start_char":25,"line":37},{"index_id":172,"token_group":126,"text":":","start_char":29,"line":37},{"index_id":173,"token_group":127,"text":"indexes","start_char":31,"line":37},{"index_id":174,"token_group":128,"text":"Sql","start_char":38,"line":37},{"index_id":175,"token_group":128,"text":")","start_char":41,"line":37},{"index_id":176,"token_group":129,"text":"{","start_char":8,"line":38},{"index_id":177,"token_group":130,"text":"if","start_char":12,"line":39},{"index_id":178,"token_group":131,"text":"(","start_char":15,"line":39},{"index_id":179,"token_group":132,"text":"!","start_char":16,"line":39},{"index_id":180,"token_group":133,"text":"is","start_char":17,"line":39},{"index_id":181,"token_group":134,"text":"Allow","start_char":19,"line":39},{"index_id":182,"token_group":134,"text":"Unique","start_char":24,"line":39},{"index_id":183,"token_group":134,"text":"Indexes","start_char":30,"line":39},{"index_id":184,"token_group":134,"text":"(","start_char":37,"line":39},{"index_id":185,"token_group":135,"text":")","start_char":38,"line":39},{"index_id":186,"token_group":136,"text":")","start_char":39,"line":39},{"index_id":187,"token_group":137,"text":"{","start_char":12,"line":40},{"index_id":188,"token_group":138,"text":"if","start_char":16,"line":41},{"index_id":189,"token_group":139,"text":"(","start_char":19,"line":41},{"index_id":190,"token_group":140,"text":"index","start_char":20,"line":41},{"index_id":191,"token_group":141,"text":"Sql","start_char":25,"line":41},{"index_id":192,"token_group":141,"text":".","start_char":28,"line":41},{"index_id":193,"token_group":142,"text":"contains","start_char":29,"line":41},{"index_id":194,"token_group":143,"text":"(","start_char":37,"line":41},{"index_id":195,"token_group":144,"text":"\"create unique index\"","start_char":38,"line":41},{"index_id":196,"token_group":145,"text":")","start_char":59,"line":41},{"index_id":197,"token_group":146,"text":")","start_char":60,"line":41},{"index_id":198,"token_group":147,"text":"{","start_char":16,"line":42},{"index_id":199,"token_group":148,"text":"index","start_char":20,"line":43},{"index_id":200,"token_group":149,"text":"Sql","start_char":25,"line":43},{"index_id":201,"token_group":149,"text":"=","start_char":29,"line":43},{"index_id":202,"token_group":150,"text":"string","start_char":31,"line":43},{"index_id":203,"token_group":151,"text":"Util","start_char":37,"line":43},{"index_id":204,"token_group":151,"text":".","start_char":41,"line":43},{"index_id":205,"token_group":152,"text":"replace","start_char":42,"line":43},{"index_id":206,"token_group":153,"text":"(","start_char":49,"line":43},{"index_id":207,"token_group":154,"text":"index","start_char":35,"line":44},{"index_id":208,"token_group":155,"text":"Sql","start_char":40,"line":44},{"index_id":209,"token_group":155,"text":",","start_char":43,"line":44},{"index_id":210,"token_group":156,"text":"\"create unique index \"","start_char":45,"line":44},{"index_id":211,"token_group":157,"text":",","start_char":67,"line":44},{"index_id":212,"token_group":158,"text":"\"create index \"","start_char":69,"line":44},{"index_id":213,"token_group":159,"text":")","start_char":84,"line":44},{"index_id":214,"token_group":160,"text":";","start_char":85,"line":44},{"index_id":215,"token_group":161,"text":"drop","start_char":20,"line":46},{"index_id":216,"token_group":162,"text":"Indexes","start_char":24,"line":46},{"index_id":217,"token_group":162,"text":"=","start_char":32,"line":46},{"index_id":218,"token_group":163,"text":"true","start_char":34,"line":46},{"index_id":219,"token_group":164,"text":";","start_char":38,"line":46},{"index_id":220,"token_group":165,"text":"}","start_char":16,"line":47},{"index_id":221,"token_group":166,"text":"}","start_char":12,"line":48},{"index_id":222,"token_group":167,"text":"try","start_char":12,"line":50},{"index_id":223,"token_group":168,"text":"{","start_char":12,"line":51},{"index_id":224,"token_group":169,"text":"db","start_char":16,"line":52},{"index_id":225,"token_group":170,"text":".","start_char":18,"line":52},{"index_id":226,"token_group":171,"text":"run","start_char":19,"line":52},{"index_id":227,"token_group":172,"text":"Sql","start_char":22,"line":52},{"index_id":228,"token_group":172,"text":"Template","start_char":25,"line":52},{"index_id":229,"token_group":172,"text":"String","start_char":33,"line":52},{"index_id":230,"token_group":172,"text":"(","start_char":39,"line":52},{"index_id":231,"token_group":173,"text":"target","start_char":20,"line":53},{"index_id":232,"token_group":174,"text":"Connection","start_char":26,"line":53},{"index_id":233,"token_group":174,"text":",","start_char":36,"line":53},{"index_id":234,"token_group":175,"text":"index","start_char":38,"line":53},{"index_id":235,"token_group":176,"text":"Sql","start_char":43,"line":53},{"index_id":236,"token_group":176,"text":",","start_char":46,"line":53},{"index_id":237,"token_group":177,"text":"false","start_char":48,"line":53},{"index_id":238,"token_group":178,"text":",","start_char":53,"line":53},{"index_id":239,"token_group":179,"text":"false","start_char":55,"line":53},{"index_id":240,"token_group":180,"text":")","start_char":60,"line":53},{"index_id":241,"token_group":181,"text":";","start_char":61,"line":53},{"index_id":242,"token_group":182,"text":"}","start_char":12,"line":54},{"index_id":243,"token_group":183,"text":"catch","start_char":12,"line":55},{"index_id":244,"token_group":184,"text":"(","start_char":18,"line":55},{"index_id":245,"token_group":185,"text":"exception","start_char":19,"line":55},{"index_id":246,"token_group":186,"text":"e","start_char":29,"line":55},{"index_id":247,"token_group":187,"text":")","start_char":30,"line":55},{"index_id":248,"token_group":188,"text":"{","start_char":12,"line":56},{"index_id":249,"token_group":189,"text":"if","start_char":16,"line":57},{"index_id":250,"token_group":190,"text":"(","start_char":19,"line":57},{"index_id":251,"token_group":191,"text":"","start_char":20,"line":57},{"index_id":252,"token_group":192,"text":"Log","start_char":21,"line":57},{"index_id":253,"token_group":192,"text":".","start_char":24,"line":57},{"index_id":254,"token_group":193,"text":"is","start_char":25,"line":57},{"index_id":255,"token_group":194,"text":"Warn","start_char":27,"line":57},{"index_id":256,"token_group":194,"text":"Enabled","start_char":31,"line":57},{"index_id":257,"token_group":194,"text":"(","start_char":38,"line":57},{"index_id":258,"token_group":195,"text":")","start_char":39,"line":57},{"index_id":259,"token_group":196,"text":")","start_char":40,"line":57},{"index_id":260,"token_group":197,"text":"{","start_char":16,"line":58},{"index_id":261,"token_group":198,"text":"","start_char":17,"line":58},{"index_id":262,"token_group":199,"text":"Log","start_char":21,"line":59},{"index_id":263,"token_group":199,"text":".","start_char":24,"line":59},{"index_id":264,"token_group":200,"text":"warn","start_char":25,"line":59},{"index_id":265,"token_group":201,"text":"(","start_char":29,"line":59},{"index_id":266,"token_group":202,"text":"e","start_char":30,"line":59},{"index_id":267,"token_group":203,"text":".","start_char":31,"line":59},{"index_id":268,"token_group":204,"text":"get","start_char":32,"line":59},{"index_id":269,"token_group":205,"text":"Message","start_char":35,"line":59},{"index_id":270,"token_group":205,"text":"(","start_char":42,"line":59},{"index_id":271,"token_group":206,"text":")","start_char":43,"line":59},{"index_id":272,"token_group":207,"text":"+","start_char":45,"line":59},{"index_id":273,"token_group":208,"text":"\": \"","start_char":47,"line":59},{"index_id":274,"token_group":209,"text":"+","start_char":52,"line":59},{"index_id":275,"token_group":210,"text":"index","start_char":54,"line":59},{"index_id":276,"token_group":211,"text":"Sql","start_char":59,"line":59},{"index_id":277,"token_group":211,"text":")","start_char":62,"line":59},{"index_id":278,"token_group":212,"text":";","start_char":63,"line":59},{"index_id":279,"token_group":213,"text":"}","start_char":16,"line":60},{"index_id":280,"token_group":214,"text":"}","start_char":12,"line":61},{"index_id":281,"token_group":215,"text":"}","start_char":8,"line":62},{"index_id":282,"token_group":216,"text":"if","start_char":8,"line":64},{"index_id":283,"token_group":217,"text":"(","start_char":11,"line":64},{"index_id":284,"token_group":218,"text":"drop","start_char":12,"line":64},{"index_id":285,"token_group":219,"text":"Indexes","start_char":16,"line":64},{"index_id":286,"token_group":219,"text":")","start_char":23,"line":64},{"index_id":287,"token_group":220,"text":"{","start_char":8,"line":65},{"index_id":288,"token_group":221,"text":"startup","start_char":12,"line":66},{"index_id":289,"token_group":222,"text":"Helper","start_char":19,"line":66},{"index_id":290,"token_group":222,"text":"Util","start_char":25,"line":66},{"index_id":291,"token_group":222,"text":".","start_char":29,"line":66},{"index_id":292,"token_group":223,"text":"set","start_char":30,"line":66},{"index_id":293,"token_group":224,"text":"Drop","start_char":33,"line":66},{"index_id":294,"token_group":224,"text":"Indexes","start_char":37,"line":66},{"index_id":295,"token_group":224,"text":"(","start_char":44,"line":66},{"index_id":296,"token_group":225,"text":"true","start_char":45,"line":66},{"index_id":297,"token_group":226,"text":")","start_char":49,"line":66},{"index_id":298,"token_group":227,"text":";","start_char":50,"line":66},{"index_id":299,"token_group":228,"text":"}","start_char":8,"line":67},{"index_id":300,"token_group":229,"text":"}","start_char":4,"line":68},{"index_id":301,"token_group":230,"text":"finally","start_char":4,"line":69},{"index_id":302,"token_group":231,"text":"{","start_char":12,"line":69},{"index_id":303,"token_group":232,"text":"if","start_char":8,"line":70},{"index_id":304,"token_group":233,"text":"(","start_char":11,"line":70},{"index_id":305,"token_group":234,"text":"validator","start_char":12,"line":70},{"index_id":306,"token_group":235,"text":".","start_char":21,"line":70},{"index_id":307,"token_group":236,"text":"is","start_char":22,"line":70},{"index_id":308,"token_group":237,"text":"Not","start_char":24,"line":70},{"index_id":309,"token_group":237,"text":"Null","start_char":27,"line":70},{"index_id":310,"token_group":237,"text":"(","start_char":31,"line":70},{"index_id":311,"token_group":238,"text":"temp","start_char":32,"line":70},{"index_id":312,"token_group":239,"text":"File","start_char":36,"line":70},{"index_id":313,"token_group":239,"text":"Name","start_char":40,"line":70},{"index_id":314,"token_group":239,"text":")","start_char":44,"line":70},{"index_id":315,"token_group":240,"text":"&&","start_char":46,"line":70},{"index_id":316,"token_group":241,"text":"","start_char":48,"line":70},{"index_id":317,"token_group":242,"text":"Delete","start_char":50,"line":70},{"index_id":318,"token_group":242,"text":"Temp","start_char":56,"line":70},{"index_id":319,"token_group":242,"text":"File","start_char":60,"line":70},{"index_id":320,"token_group":242,"text":")","start_char":64,"line":70},{"index_id":321,"token_group":243,"text":"{","start_char":8,"line":71},{"index_id":322,"token_group":244,"text":"file","start_char":12,"line":72},{"index_id":323,"token_group":245,"text":"Util","start_char":16,"line":72},{"index_id":324,"token_group":245,"text":".","start_char":20,"line":72},{"index_id":325,"token_group":246,"text":"delete","start_char":21,"line":72},{"index_id":326,"token_group":247,"text":"(","start_char":27,"line":72},{"index_id":327,"token_group":248,"text":"temp","start_char":28,"line":72},{"index_id":328,"token_group":249,"text":"File","start_char":32,"line":72},{"index_id":329,"token_group":249,"text":"Name","start_char":36,"line":72},{"index_id":330,"token_group":249,"text":")","start_char":40,"line":72},{"index_id":331,"token_group":250,"text":";","start_char":41,"line":72},{"index_id":332,"token_group":251,"text":"}","start_char":8,"line":73},{"index_id":333,"token_group":252,"text":"}","start_char":4,"line":74},{"index_id":334,"token_group":253,"text":"}","start_char":0,"line":75}],"tokens_list":["{","","Called","Update","Table","=","true",";","generate","Temp","File","(","source","Connection",")",";","string","temp","File","Name","=","get","Temp","File","Name","(",")",";","try","{","db","db","=","db","Manager","Util",".","get","Db","(",")",";","if","(","validator",".","is","Not","Null","(","temp","File","Name",")","&&","delete","Source",")","{","string","delete","Sql","=","get","Delete","Sql","(",")",";","db",".","run","Sql","(","source","Connection",",","delete","Sql",")",";","}","string","create","Sql","=","get","Create","Sql","(",")",";","if","(","validator",".","is","Not","Null","(","create","Sql",")",")","{","if","(","delete","Source",")","{","db",".","run","Sql","(","source","Connection",",","\"drop table \"","+","get","Table","Name","(",")",")",";","}","db",".","run","Sql","(","target","Connection",",","create","Sql",")",";","}","populate","Table","(","target","Connection",")",";","string","[","]","indexes","Sql","=","get","Indexes","Sql","(",")",";","boolean","drop","Indexes","=","false",";","for","(","string","index","Sql",":","indexes","Sql",")","{","if","(","!","is","Allow","Unique","Indexes","(",")",")","{","if","(","index","Sql",".","contains","(","\"create unique index\"",")",")","{","index","Sql","=","string","Util",".","replace","(","index","Sql",",","\"create unique index \"",",","\"create index \"",")",";","drop","Indexes","=","true",";","}","}","try","{","db",".","run","Sql","Template","String","(","target","Connection",",","index","Sql",",","false",",","false",")",";","}","catch","(","exception","e",")","{","if","(","","Log",".","is","Warn","Enabled","(",")",")","{","","Log",".","warn","(","e",".","get","Message","(",")","+","\": \"","+","index","Sql",")",";","}","}","}","if","(","drop","Indexes",")","{","startup","Helper","Util",".","set","Drop","Indexes","(","true",")",";","}","}","finally","{","if","(","validator",".","is","Not","Null","(","temp","File","Name",")","&&","","Delete","Temp","File",")","{","file","Util",".","delete","(","temp","File","Name",")",";","}","}","}"],"uuid":"4a6f7e74e9cc8b0da1e2bae7015e5507"}]