-
Notifications
You must be signed in to change notification settings - Fork 1
/
experiment_0000033.json
1 lines (1 loc) · 132 KB
/
experiment_0000033.json
1
[{"cap_original_tokens":["<SENTENCE_START>","{","<id>","file","<\/id>","<id>","file","Dir","<\/id>","=","new","<id>","file","<\/id>","(","<id>","folder","<\/id>",")",";","return","<id>","file","Dir","<\/id>",".","<id>","is","Directory","<\/id>","(",")","&&","<id>","file","Dir","<\/id>",".","<id>","can","Write","<\/id>","(",")","&&","<id>","file","Dir","<\/id>",".","<id>","get","Usable","Space","<\/id>","(",")",">=","<id>","space","<\/id>",";","}","<SENTENCE_END\/>"],"file_name":"Runner.java","formatted_lines":["{"," File fileDir = new File(folder);"," return fileDir.isDirectory() && fileDir.canWrite() &&"," fileDir.getUsableSpace() >= space;","}"],"function_name":"isValidDir","function_name_tokens":["is","valid","dir"],"id_body_hash":"9361fcf37133c89583fa97a47e8a9754","id_same_identifier_list":[0,1,2,3,3,4,5,6,7,8,9,10,11,12,12,13,14,14,15,16,17,18,18,19,20,20,21,22,23,24,24,25,26,26,26,27,28,29,30,31,32,33],"option_correct":"isValidDir","options":["isValidDir","isFileValid","isValid","setFocusOwner","getCallArgumentTypes","isValidName","testInsideWhile"],"options_nlp":["is valid dir","is file valid","is valid","set focus owner","get call argument types","is valid name","test inside while"],"options_random":["getCallArgumentTypes","setFocusOwner","testInsideWhile"],"options_tfidf":["isValidName","isValid","isFileValid"],"project_name":"intellij-community","source_code_string":"private static boolean isValidDir(String folder, long space) {\n File fileDir = new File(folder);\n return fileDir.isDirectory() && fileDir.canWrite() && fileDir.getUsableSpace() >= space;\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"file","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"file","start_char":9,"line":1},{"index_id":3,"token_group":3,"text":"Dir","start_char":13,"line":1},{"index_id":4,"token_group":3,"text":"=","start_char":17,"line":1},{"index_id":5,"token_group":4,"text":"new","start_char":19,"line":1},{"index_id":6,"token_group":5,"text":"file","start_char":23,"line":1},{"index_id":7,"token_group":6,"text":"(","start_char":27,"line":1},{"index_id":8,"token_group":7,"text":"folder","start_char":28,"line":1},{"index_id":9,"token_group":8,"text":")","start_char":34,"line":1},{"index_id":10,"token_group":9,"text":";","start_char":35,"line":1},{"index_id":11,"token_group":10,"text":"return","start_char":4,"line":2},{"index_id":12,"token_group":11,"text":"file","start_char":11,"line":2},{"index_id":13,"token_group":12,"text":"Dir","start_char":15,"line":2},{"index_id":14,"token_group":12,"text":".","start_char":18,"line":2},{"index_id":15,"token_group":13,"text":"is","start_char":19,"line":2},{"index_id":16,"token_group":14,"text":"Directory","start_char":21,"line":2},{"index_id":17,"token_group":14,"text":"(","start_char":30,"line":2},{"index_id":18,"token_group":15,"text":")","start_char":31,"line":2},{"index_id":19,"token_group":16,"text":"&&","start_char":33,"line":2},{"index_id":20,"token_group":17,"text":"file","start_char":36,"line":2},{"index_id":21,"token_group":18,"text":"Dir","start_char":40,"line":2},{"index_id":22,"token_group":18,"text":".","start_char":43,"line":2},{"index_id":23,"token_group":19,"text":"can","start_char":44,"line":2},{"index_id":24,"token_group":20,"text":"Write","start_char":47,"line":2},{"index_id":25,"token_group":20,"text":"(","start_char":52,"line":2},{"index_id":26,"token_group":21,"text":")","start_char":53,"line":2},{"index_id":27,"token_group":22,"text":"&&","start_char":55,"line":2},{"index_id":28,"token_group":23,"text":"file","start_char":11,"line":3},{"index_id":29,"token_group":24,"text":"Dir","start_char":15,"line":3},{"index_id":30,"token_group":24,"text":".","start_char":18,"line":3},{"index_id":31,"token_group":25,"text":"get","start_char":19,"line":3},{"index_id":32,"token_group":26,"text":"Usable","start_char":22,"line":3},{"index_id":33,"token_group":26,"text":"Space","start_char":28,"line":3},{"index_id":34,"token_group":26,"text":"(","start_char":33,"line":3},{"index_id":35,"token_group":27,"text":")","start_char":34,"line":3},{"index_id":36,"token_group":28,"text":">=","start_char":36,"line":3},{"index_id":37,"token_group":29,"text":"space","start_char":39,"line":3},{"index_id":38,"token_group":30,"text":";","start_char":44,"line":3},{"index_id":39,"token_group":31,"text":"}","start_char":0,"line":4}],"tokens_list":["{","file","file","Dir","=","new","file","(","folder",")",";","return","file","Dir",".","is","Directory","(",")","&&","file","Dir",".","can","Write","(",")","&&","file","Dir",".","get","Usable","Space","(",")",">=","space",";","}"],"uuid":"2a8122738db982473c0e53e19e7e41ef"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","session","<\/id>","<id>","s","<\/id>","=","<id>","open","Session","<\/id>","(",")",";","<id>","transaction","<\/id>","<id>","tx","<\/id>","=","<id>","s","<\/id>",".","<id>","begin","Transaction","<\/id>","(",")",";","<id>","competition","<\/id>","<id>","competition","<\/id>","=","new","<id>","competition","<\/id>","(",")",";","<id>","competition","<\/id>",".","<id>","get","Competitors","<\/id>","(",")",".","<id>","add","<\/id>","(","new","<id>","competitor","<\/id>","(","\"Name\"",")",")",";","<id>","competition","<\/id>",".","<id>","get","Competitors","<\/id>","(",")",".","<id>","add","<\/id>","(","new","<id>","competitor","<\/id>","(",")",")",";","<id>","competition","<\/id>",".","<id>","get","Competitors","<\/id>","(",")",".","<id>","add","<\/id>","(","new","<id>","competitor","<\/id>","(",")",")",";","<id>","s","<\/id>",".","<id>","persist","<\/id>","(","<id>","competition","<\/id>",")",";","<id>","tx","<\/id>",".","<id>","commit","<\/id>","(",")",";","<id>","s","<\/id>",".","<id>","close","<\/id>","(",")",";","<id>","s","<\/id>","=","<id>","open","Session","<\/id>","(",")",";","<id>","tx","<\/id>","=","<id>","s","<\/id>",".","<id>","begin","Transaction","<\/id>","(",")",";","<id>","list","<\/id>","<id>","new","Comp","<\/id>","=","new","<id>","array","List","<\/id>","(",")",";","<id>","competitor","<\/id>","<id>","original","Competitor","<\/id>","=","(","<id>","competitor","<\/id>",")","<id>","competition","<\/id>",".","<id>","get","Competitors","<\/id>","(",")",".","<id>","get","<\/id>","(","0",")",";","<id>","original","Competitor","<\/id>",".","<id>","set","Name","<\/id>","(","\"Name2\"",")",";","<id>","new","Comp","<\/id>",".","<id>","add","<\/id>","(","<id>","original","Competitor","<\/id>",")",";","<id>","new","Comp","<\/id>",".","<id>","add","<\/id>","(","new","<id>","competitor","<\/id>","(",")",")",";","<id>","competition","<\/id>",".","<id>","set","Competitors","<\/id>","(","<id>","new","Comp","<\/id>",")",";","<id>","competition","<\/id>","<id>","competition","2","<\/id>","=","(","<id>","competition","<\/id>",")","<id>","s","<\/id>",".","<id>","merge","<\/id>","(","<id>","competition","<\/id>",")",";","<id>","tx","<\/id>",".","<id>","commit","<\/id>","(",")",";","<id>","s","<\/id>",".","<id>","close","<\/id>","(",")",";","<id>","assert","False","<\/id>","(","<id>","competition","<\/id>","==","<id>","competition","2","<\/id>",")",";","<id>","assert","False","<\/id>","(","<id>","competition","<\/id>",".","<id>","get","Competitors","<\/id>","(",")","==","<id>","competition","2","<\/id>",".","<id>","get","Competitors","<\/id>","(",")",")",";","<id>","assert","Equals","<\/id>","(","2",",","<id>","competition","2","<\/id>",".","<id>","get","Competitors","<\/id>","(",")",".","<id>","size","<\/id>","(",")",")",";","<id>","s","<\/id>","=","<id>","open","Session","<\/id>","(",")",";","<id>","tx","<\/id>","=","<id>","s","<\/id>",".","<id>","begin","Transaction","<\/id>","(",")",";","<id>","competition","<\/id>","=","(","<id>","competition","<\/id>",")","<id>","s","<\/id>",".","<id>","get","<\/id>","(","<id>","competition","<\/id>",".","class",",","<id>","competition","<\/id>",".","<id>","get","Id","<\/id>","(",")",")",";","<id>","assert","Equals","<\/id>","(","2",",","<id>","competition","<\/id>",".","<id>","get","Competitors","<\/id>","(",")",".","<id>","size","<\/id>","(",")",")",";","<id>","s","<\/id>",".","<id>","delete","<\/id>","(","<id>","competition","<\/id>",")",";","<id>","tx","<\/id>",".","<id>","commit","<\/id>","(",")",";","<id>","s","<\/id>",".","<id>","close","<\/id>","(",")",";","<id>","cleanup","<\/id>","(",")",";","}","<SENTENCE_END\/>"],"file_name":"MergeTest.java","formatted_lines":["{",""," Session s = openSession();"," Transaction tx = s.beginTransaction();"," Competition competition = new Competition();"," competition.getCompetitors().add( new Competitor( \"Name\" ) );"," competition.getCompetitors().add( new Competitor() );"," competition.getCompetitors().add( new Competitor() );"," s.persist( competition );"," tx.commit();"," s.close();","","",""," s = openSession();"," tx = s.beginTransaction();"," List newComp = new ArrayList();"," Competitor originalCompetitor = ( Competitor ) competition.getCompetitors().get( 0 );"," originalCompetitor.setName( \"Name2\" );"," newComp.add( originalCompetitor );"," newComp.add( new Competitor() );",""," competition.setCompetitors( newComp );",""," Competition competition2 = ( Competition ) s.merge( competition );"," tx.commit();"," s.close();",""," assertFalse( competition == competition2 );"," assertFalse( competition.getCompetitors() == competition2.getCompetitors() );"," assertEquals( 2, competition2.getCompetitors().size() );",""," s = openSession();"," tx = s.beginTransaction();"," competition = ( Competition ) s.get( Competition.class, competition.getId() );"," assertEquals( 2, competition.getCompetitors().size() );"," s.delete( competition );"," tx.commit();"," s.close();",""," cleanup();","}"],"function_name":"testMergeManyToManyWithCollectionDeference","function_name_tokens":["test","merge","many","to","many","with","collection","deference"],"id_body_hash":"f75236721e9c6a6ae307c03b42a0a583","id_same_identifier_list":[0,1,2,3,4,5,5,6,7,8,9,10,11,12,13,14,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,57,58,59,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,88,89,90,90,91,92,93,94,95,96,97,98,98,99,100,101,102,103,103,104,105,106,106,107,108,109,110,111,111,112,113,114,115,116,117,118,118,119,120,121,122,123,124,125,126,127,127,128,129,129,130,131,132,133,134,134,135,136,137,138,138,139,140,141,141,142,143,144,145,146,147,148,149,150,151,152,153,153,154,155,155,156,157,158,159,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,183,184,185,186,187,187,188,189,190,190,191,192,193,194,194,195,196,197,198,198,199,200,200,201,202,203,204,205,205,206,207,208,209,209,210,211,211,212,213,214,215,216,217,218,219,220,221,222,222,223,224,225,226,227,228,229,230,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,249,250,251,252,253,254,254,255,256,257,258,259,260,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293],"option_correct":"testMergeManyToManyWithCollectionDeference","options":["generateSettings","testManyToMany","isManyToManyWith","testMergeManyToManyWithCollectionDeference","testManyToManyCollectionSemantics","testHistoryOfReferencedCollection1","testRetrieveAuditedEntityWithEntityName"],"options_nlp":["generate settings","test many to many","is many to many with","test merge many to many with collection deference","test many to many collection semantics","test history of referenced collection 1","test retrieve audited entity with entity name"],"options_random":["generateSettings","testHistoryOfReferencedCollection1","testRetrieveAuditedEntityWithEntityName"],"options_tfidf":["testManyToMany","testManyToManyCollectionSemantics","isManyToManyWith"],"project_name":"hibernate-orm","source_code_string":"@SuppressWarnings( {\"unchecked\"})\n\t@Test\n\tpublic void testMergeManyToManyWithCollectionDeference() throws Exception {\n\t\t\n\t\tSession s = openSession();\n\t\tTransaction tx = s.beginTransaction();\n\t\tCompetition competition = new Competition();\n\t\tcompetition.getCompetitors().add( new Competitor( \"Name\" ) );\n\t\tcompetition.getCompetitors().add( new Competitor() );\n\t\tcompetition.getCompetitors().add( new Competitor() );\n\t\ts.persist( competition );\n\t\ttx.commit();\n\t\ts.close();\n\n\t\t\n\t\t\n\t\ts = openSession();\n\t\ttx = s.beginTransaction();\n\t\tList newComp = new ArrayList();\n\t\tCompetitor originalCompetitor = ( Competitor ) competition.getCompetitors().get( 0 );\n\t\toriginalCompetitor.setName( \"Name2\" );\n\t\tnewComp.add( originalCompetitor );\n\t\tnewComp.add( new Competitor() );\n\t\t\n\t\tcompetition.setCompetitors( newComp );\n\t\t\n\t\tCompetition competition2 = ( Competition ) s.merge( competition );\n\t\ttx.commit();\n\t\ts.close();\n\n\t\tassertFalse( competition == competition2 );\n\t\tassertFalse( competition.getCompetitors() == competition2.getCompetitors() );\n\t\tassertEquals( 2, competition2.getCompetitors().size() );\n\n\t\ts = openSession();\n\t\ttx = s.beginTransaction();\n\t\tcompetition = ( Competition ) s.get( Competition.class, competition.getId() );\n\t\tassertEquals( 2, competition.getCompetitors().size() );\n\t\ts.delete( competition );\n\t\ttx.commit();\n\t\ts.close();\n\n\t\tcleanup();\n\t}","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"session","start_char":4,"line":2},{"index_id":2,"token_group":2,"text":"s","start_char":12,"line":2},{"index_id":3,"token_group":3,"text":"=","start_char":14,"line":2},{"index_id":4,"token_group":4,"text":"open","start_char":16,"line":2},{"index_id":5,"token_group":5,"text":"Session","start_char":20,"line":2},{"index_id":6,"token_group":5,"text":"(","start_char":27,"line":2},{"index_id":7,"token_group":6,"text":")","start_char":28,"line":2},{"index_id":8,"token_group":7,"text":";","start_char":29,"line":2},{"index_id":9,"token_group":8,"text":"transaction","start_char":4,"line":3},{"index_id":10,"token_group":9,"text":"tx","start_char":16,"line":3},{"index_id":11,"token_group":10,"text":"=","start_char":19,"line":3},{"index_id":12,"token_group":11,"text":"s","start_char":21,"line":3},{"index_id":13,"token_group":12,"text":".","start_char":22,"line":3},{"index_id":14,"token_group":13,"text":"begin","start_char":23,"line":3},{"index_id":15,"token_group":14,"text":"Transaction","start_char":28,"line":3},{"index_id":16,"token_group":14,"text":"(","start_char":39,"line":3},{"index_id":17,"token_group":15,"text":")","start_char":40,"line":3},{"index_id":18,"token_group":16,"text":";","start_char":41,"line":3},{"index_id":19,"token_group":17,"text":"competition","start_char":4,"line":4},{"index_id":20,"token_group":18,"text":"competition","start_char":16,"line":4},{"index_id":21,"token_group":19,"text":"=","start_char":28,"line":4},{"index_id":22,"token_group":20,"text":"new","start_char":30,"line":4},{"index_id":23,"token_group":21,"text":"competition","start_char":34,"line":4},{"index_id":24,"token_group":22,"text":"(","start_char":45,"line":4},{"index_id":25,"token_group":23,"text":")","start_char":46,"line":4},{"index_id":26,"token_group":24,"text":";","start_char":47,"line":4},{"index_id":27,"token_group":25,"text":"competition","start_char":4,"line":5},{"index_id":28,"token_group":26,"text":".","start_char":15,"line":5},{"index_id":29,"token_group":27,"text":"get","start_char":16,"line":5},{"index_id":30,"token_group":28,"text":"Competitors","start_char":19,"line":5},{"index_id":31,"token_group":28,"text":"(","start_char":30,"line":5},{"index_id":32,"token_group":29,"text":")","start_char":31,"line":5},{"index_id":33,"token_group":30,"text":".","start_char":32,"line":5},{"index_id":34,"token_group":31,"text":"add","start_char":33,"line":5},{"index_id":35,"token_group":32,"text":"(","start_char":36,"line":5},{"index_id":36,"token_group":33,"text":"new","start_char":38,"line":5},{"index_id":37,"token_group":34,"text":"competitor","start_char":42,"line":5},{"index_id":38,"token_group":35,"text":"(","start_char":52,"line":5},{"index_id":39,"token_group":36,"text":"\"Name\"","start_char":54,"line":5},{"index_id":40,"token_group":37,"text":")","start_char":61,"line":5},{"index_id":41,"token_group":38,"text":")","start_char":63,"line":5},{"index_id":42,"token_group":39,"text":";","start_char":64,"line":5},{"index_id":43,"token_group":40,"text":"competition","start_char":4,"line":6},{"index_id":44,"token_group":41,"text":".","start_char":15,"line":6},{"index_id":45,"token_group":42,"text":"get","start_char":16,"line":6},{"index_id":46,"token_group":43,"text":"Competitors","start_char":19,"line":6},{"index_id":47,"token_group":43,"text":"(","start_char":30,"line":6},{"index_id":48,"token_group":44,"text":")","start_char":31,"line":6},{"index_id":49,"token_group":45,"text":".","start_char":32,"line":6},{"index_id":50,"token_group":46,"text":"add","start_char":33,"line":6},{"index_id":51,"token_group":47,"text":"(","start_char":36,"line":6},{"index_id":52,"token_group":48,"text":"new","start_char":38,"line":6},{"index_id":53,"token_group":49,"text":"competitor","start_char":42,"line":6},{"index_id":54,"token_group":50,"text":"(","start_char":52,"line":6},{"index_id":55,"token_group":51,"text":")","start_char":53,"line":6},{"index_id":56,"token_group":52,"text":")","start_char":55,"line":6},{"index_id":57,"token_group":53,"text":";","start_char":56,"line":6},{"index_id":58,"token_group":54,"text":"competition","start_char":4,"line":7},{"index_id":59,"token_group":55,"text":".","start_char":15,"line":7},{"index_id":60,"token_group":56,"text":"get","start_char":16,"line":7},{"index_id":61,"token_group":57,"text":"Competitors","start_char":19,"line":7},{"index_id":62,"token_group":57,"text":"(","start_char":30,"line":7},{"index_id":63,"token_group":58,"text":")","start_char":31,"line":7},{"index_id":64,"token_group":59,"text":".","start_char":32,"line":7},{"index_id":65,"token_group":60,"text":"add","start_char":33,"line":7},{"index_id":66,"token_group":61,"text":"(","start_char":36,"line":7},{"index_id":67,"token_group":62,"text":"new","start_char":38,"line":7},{"index_id":68,"token_group":63,"text":"competitor","start_char":42,"line":7},{"index_id":69,"token_group":64,"text":"(","start_char":52,"line":7},{"index_id":70,"token_group":65,"text":")","start_char":53,"line":7},{"index_id":71,"token_group":66,"text":")","start_char":55,"line":7},{"index_id":72,"token_group":67,"text":";","start_char":56,"line":7},{"index_id":73,"token_group":68,"text":"s","start_char":4,"line":8},{"index_id":74,"token_group":69,"text":".","start_char":5,"line":8},{"index_id":75,"token_group":70,"text":"persist","start_char":6,"line":8},{"index_id":76,"token_group":71,"text":"(","start_char":13,"line":8},{"index_id":77,"token_group":72,"text":"competition","start_char":15,"line":8},{"index_id":78,"token_group":73,"text":")","start_char":27,"line":8},{"index_id":79,"token_group":74,"text":";","start_char":28,"line":8},{"index_id":80,"token_group":75,"text":"tx","start_char":4,"line":9},{"index_id":81,"token_group":76,"text":".","start_char":6,"line":9},{"index_id":82,"token_group":77,"text":"commit","start_char":7,"line":9},{"index_id":83,"token_group":78,"text":"(","start_char":13,"line":9},{"index_id":84,"token_group":79,"text":")","start_char":14,"line":9},{"index_id":85,"token_group":80,"text":";","start_char":15,"line":9},{"index_id":86,"token_group":81,"text":"s","start_char":4,"line":10},{"index_id":87,"token_group":82,"text":".","start_char":5,"line":10},{"index_id":88,"token_group":83,"text":"close","start_char":6,"line":10},{"index_id":89,"token_group":84,"text":"(","start_char":11,"line":10},{"index_id":90,"token_group":85,"text":")","start_char":12,"line":10},{"index_id":91,"token_group":86,"text":";","start_char":13,"line":10},{"index_id":92,"token_group":87,"text":"s","start_char":4,"line":14},{"index_id":93,"token_group":88,"text":"=","start_char":6,"line":14},{"index_id":94,"token_group":89,"text":"open","start_char":8,"line":14},{"index_id":95,"token_group":90,"text":"Session","start_char":12,"line":14},{"index_id":96,"token_group":90,"text":"(","start_char":19,"line":14},{"index_id":97,"token_group":91,"text":")","start_char":20,"line":14},{"index_id":98,"token_group":92,"text":";","start_char":21,"line":14},{"index_id":99,"token_group":93,"text":"tx","start_char":4,"line":15},{"index_id":100,"token_group":94,"text":"=","start_char":7,"line":15},{"index_id":101,"token_group":95,"text":"s","start_char":9,"line":15},{"index_id":102,"token_group":96,"text":".","start_char":10,"line":15},{"index_id":103,"token_group":97,"text":"begin","start_char":11,"line":15},{"index_id":104,"token_group":98,"text":"Transaction","start_char":16,"line":15},{"index_id":105,"token_group":98,"text":"(","start_char":27,"line":15},{"index_id":106,"token_group":99,"text":")","start_char":28,"line":15},{"index_id":107,"token_group":100,"text":";","start_char":29,"line":15},{"index_id":108,"token_group":101,"text":"list","start_char":4,"line":16},{"index_id":109,"token_group":102,"text":"new","start_char":9,"line":16},{"index_id":110,"token_group":103,"text":"Comp","start_char":12,"line":16},{"index_id":111,"token_group":103,"text":"=","start_char":17,"line":16},{"index_id":112,"token_group":104,"text":"new","start_char":19,"line":16},{"index_id":113,"token_group":105,"text":"array","start_char":23,"line":16},{"index_id":114,"token_group":106,"text":"List","start_char":28,"line":16},{"index_id":115,"token_group":106,"text":"(","start_char":32,"line":16},{"index_id":116,"token_group":107,"text":")","start_char":33,"line":16},{"index_id":117,"token_group":108,"text":";","start_char":34,"line":16},{"index_id":118,"token_group":109,"text":"competitor","start_char":4,"line":17},{"index_id":119,"token_group":110,"text":"original","start_char":15,"line":17},{"index_id":120,"token_group":111,"text":"Competitor","start_char":23,"line":17},{"index_id":121,"token_group":111,"text":"=","start_char":34,"line":17},{"index_id":122,"token_group":112,"text":"(","start_char":36,"line":17},{"index_id":123,"token_group":113,"text":"competitor","start_char":38,"line":17},{"index_id":124,"token_group":114,"text":")","start_char":49,"line":17},{"index_id":125,"token_group":115,"text":"competition","start_char":51,"line":17},{"index_id":126,"token_group":116,"text":".","start_char":62,"line":17},{"index_id":127,"token_group":117,"text":"get","start_char":63,"line":17},{"index_id":128,"token_group":118,"text":"Competitors","start_char":66,"line":17},{"index_id":129,"token_group":118,"text":"(","start_char":77,"line":17},{"index_id":130,"token_group":119,"text":")","start_char":78,"line":17},{"index_id":131,"token_group":120,"text":".","start_char":79,"line":17},{"index_id":132,"token_group":121,"text":"get","start_char":80,"line":17},{"index_id":133,"token_group":122,"text":"(","start_char":83,"line":17},{"index_id":134,"token_group":123,"text":"0","start_char":85,"line":17},{"index_id":135,"token_group":124,"text":")","start_char":87,"line":17},{"index_id":136,"token_group":125,"text":";","start_char":88,"line":17},{"index_id":137,"token_group":126,"text":"original","start_char":4,"line":18},{"index_id":138,"token_group":127,"text":"Competitor","start_char":12,"line":18},{"index_id":139,"token_group":127,"text":".","start_char":22,"line":18},{"index_id":140,"token_group":128,"text":"set","start_char":23,"line":18},{"index_id":141,"token_group":129,"text":"Name","start_char":26,"line":18},{"index_id":142,"token_group":129,"text":"(","start_char":30,"line":18},{"index_id":143,"token_group":130,"text":"\"Name2\"","start_char":32,"line":18},{"index_id":144,"token_group":131,"text":")","start_char":40,"line":18},{"index_id":145,"token_group":132,"text":";","start_char":41,"line":18},{"index_id":146,"token_group":133,"text":"new","start_char":4,"line":19},{"index_id":147,"token_group":134,"text":"Comp","start_char":7,"line":19},{"index_id":148,"token_group":134,"text":".","start_char":11,"line":19},{"index_id":149,"token_group":135,"text":"add","start_char":12,"line":19},{"index_id":150,"token_group":136,"text":"(","start_char":15,"line":19},{"index_id":151,"token_group":137,"text":"original","start_char":17,"line":19},{"index_id":152,"token_group":138,"text":"Competitor","start_char":25,"line":19},{"index_id":153,"token_group":138,"text":")","start_char":36,"line":19},{"index_id":154,"token_group":139,"text":";","start_char":37,"line":19},{"index_id":155,"token_group":140,"text":"new","start_char":4,"line":20},{"index_id":156,"token_group":141,"text":"Comp","start_char":7,"line":20},{"index_id":157,"token_group":141,"text":".","start_char":11,"line":20},{"index_id":158,"token_group":142,"text":"add","start_char":12,"line":20},{"index_id":159,"token_group":143,"text":"(","start_char":15,"line":20},{"index_id":160,"token_group":144,"text":"new","start_char":17,"line":20},{"index_id":161,"token_group":145,"text":"competitor","start_char":21,"line":20},{"index_id":162,"token_group":146,"text":"(","start_char":31,"line":20},{"index_id":163,"token_group":147,"text":")","start_char":32,"line":20},{"index_id":164,"token_group":148,"text":")","start_char":34,"line":20},{"index_id":165,"token_group":149,"text":";","start_char":35,"line":20},{"index_id":166,"token_group":150,"text":"competition","start_char":4,"line":22},{"index_id":167,"token_group":151,"text":".","start_char":15,"line":22},{"index_id":168,"token_group":152,"text":"set","start_char":16,"line":22},{"index_id":169,"token_group":153,"text":"Competitors","start_char":19,"line":22},{"index_id":170,"token_group":153,"text":"(","start_char":30,"line":22},{"index_id":171,"token_group":154,"text":"new","start_char":32,"line":22},{"index_id":172,"token_group":155,"text":"Comp","start_char":35,"line":22},{"index_id":173,"token_group":155,"text":")","start_char":40,"line":22},{"index_id":174,"token_group":156,"text":";","start_char":41,"line":22},{"index_id":175,"token_group":157,"text":"competition","start_char":4,"line":24},{"index_id":176,"token_group":158,"text":"competition","start_char":16,"line":24},{"index_id":177,"token_group":159,"text":"2","start_char":27,"line":24},{"index_id":178,"token_group":159,"text":"=","start_char":29,"line":24},{"index_id":179,"token_group":160,"text":"(","start_char":31,"line":24},{"index_id":180,"token_group":161,"text":"competition","start_char":33,"line":24},{"index_id":181,"token_group":162,"text":")","start_char":45,"line":24},{"index_id":182,"token_group":163,"text":"s","start_char":47,"line":24},{"index_id":183,"token_group":164,"text":".","start_char":48,"line":24},{"index_id":184,"token_group":165,"text":"merge","start_char":49,"line":24},{"index_id":185,"token_group":166,"text":"(","start_char":54,"line":24},{"index_id":186,"token_group":167,"text":"competition","start_char":56,"line":24},{"index_id":187,"token_group":168,"text":")","start_char":68,"line":24},{"index_id":188,"token_group":169,"text":";","start_char":69,"line":24},{"index_id":189,"token_group":170,"text":"tx","start_char":4,"line":25},{"index_id":190,"token_group":171,"text":".","start_char":6,"line":25},{"index_id":191,"token_group":172,"text":"commit","start_char":7,"line":25},{"index_id":192,"token_group":173,"text":"(","start_char":13,"line":25},{"index_id":193,"token_group":174,"text":")","start_char":14,"line":25},{"index_id":194,"token_group":175,"text":";","start_char":15,"line":25},{"index_id":195,"token_group":176,"text":"s","start_char":4,"line":26},{"index_id":196,"token_group":177,"text":".","start_char":5,"line":26},{"index_id":197,"token_group":178,"text":"close","start_char":6,"line":26},{"index_id":198,"token_group":179,"text":"(","start_char":11,"line":26},{"index_id":199,"token_group":180,"text":")","start_char":12,"line":26},{"index_id":200,"token_group":181,"text":";","start_char":13,"line":26},{"index_id":201,"token_group":182,"text":"assert","start_char":4,"line":28},{"index_id":202,"token_group":183,"text":"False","start_char":10,"line":28},{"index_id":203,"token_group":183,"text":"(","start_char":15,"line":28},{"index_id":204,"token_group":184,"text":"competition","start_char":17,"line":28},{"index_id":205,"token_group":185,"text":"==","start_char":29,"line":28},{"index_id":206,"token_group":186,"text":"competition","start_char":32,"line":28},{"index_id":207,"token_group":187,"text":"2","start_char":43,"line":28},{"index_id":208,"token_group":187,"text":")","start_char":45,"line":28},{"index_id":209,"token_group":188,"text":";","start_char":46,"line":28},{"index_id":210,"token_group":189,"text":"assert","start_char":4,"line":29},{"index_id":211,"token_group":190,"text":"False","start_char":10,"line":29},{"index_id":212,"token_group":190,"text":"(","start_char":15,"line":29},{"index_id":213,"token_group":191,"text":"competition","start_char":17,"line":29},{"index_id":214,"token_group":192,"text":".","start_char":28,"line":29},{"index_id":215,"token_group":193,"text":"get","start_char":29,"line":29},{"index_id":216,"token_group":194,"text":"Competitors","start_char":32,"line":29},{"index_id":217,"token_group":194,"text":"(","start_char":43,"line":29},{"index_id":218,"token_group":195,"text":")","start_char":44,"line":29},{"index_id":219,"token_group":196,"text":"==","start_char":46,"line":29},{"index_id":220,"token_group":197,"text":"competition","start_char":49,"line":29},{"index_id":221,"token_group":198,"text":"2","start_char":60,"line":29},{"index_id":222,"token_group":198,"text":".","start_char":61,"line":29},{"index_id":223,"token_group":199,"text":"get","start_char":62,"line":29},{"index_id":224,"token_group":200,"text":"Competitors","start_char":65,"line":29},{"index_id":225,"token_group":200,"text":"(","start_char":76,"line":29},{"index_id":226,"token_group":201,"text":")","start_char":77,"line":29},{"index_id":227,"token_group":202,"text":")","start_char":79,"line":29},{"index_id":228,"token_group":203,"text":";","start_char":80,"line":29},{"index_id":229,"token_group":204,"text":"assert","start_char":4,"line":30},{"index_id":230,"token_group":205,"text":"Equals","start_char":10,"line":30},{"index_id":231,"token_group":205,"text":"(","start_char":16,"line":30},{"index_id":232,"token_group":206,"text":"2","start_char":18,"line":30},{"index_id":233,"token_group":207,"text":",","start_char":19,"line":30},{"index_id":234,"token_group":208,"text":"competition","start_char":21,"line":30},{"index_id":235,"token_group":209,"text":"2","start_char":32,"line":30},{"index_id":236,"token_group":209,"text":".","start_char":33,"line":30},{"index_id":237,"token_group":210,"text":"get","start_char":34,"line":30},{"index_id":238,"token_group":211,"text":"Competitors","start_char":37,"line":30},{"index_id":239,"token_group":211,"text":"(","start_char":48,"line":30},{"index_id":240,"token_group":212,"text":")","start_char":49,"line":30},{"index_id":241,"token_group":213,"text":".","start_char":50,"line":30},{"index_id":242,"token_group":214,"text":"size","start_char":51,"line":30},{"index_id":243,"token_group":215,"text":"(","start_char":55,"line":30},{"index_id":244,"token_group":216,"text":")","start_char":56,"line":30},{"index_id":245,"token_group":217,"text":")","start_char":58,"line":30},{"index_id":246,"token_group":218,"text":";","start_char":59,"line":30},{"index_id":247,"token_group":219,"text":"s","start_char":4,"line":32},{"index_id":248,"token_group":220,"text":"=","start_char":6,"line":32},{"index_id":249,"token_group":221,"text":"open","start_char":8,"line":32},{"index_id":250,"token_group":222,"text":"Session","start_char":12,"line":32},{"index_id":251,"token_group":222,"text":"(","start_char":19,"line":32},{"index_id":252,"token_group":223,"text":")","start_char":20,"line":32},{"index_id":253,"token_group":224,"text":";","start_char":21,"line":32},{"index_id":254,"token_group":225,"text":"tx","start_char":4,"line":33},{"index_id":255,"token_group":226,"text":"=","start_char":7,"line":33},{"index_id":256,"token_group":227,"text":"s","start_char":9,"line":33},{"index_id":257,"token_group":228,"text":".","start_char":10,"line":33},{"index_id":258,"token_group":229,"text":"begin","start_char":11,"line":33},{"index_id":259,"token_group":230,"text":"Transaction","start_char":16,"line":33},{"index_id":260,"token_group":230,"text":"(","start_char":27,"line":33},{"index_id":261,"token_group":231,"text":")","start_char":28,"line":33},{"index_id":262,"token_group":232,"text":";","start_char":29,"line":33},{"index_id":263,"token_group":233,"text":"competition","start_char":4,"line":34},{"index_id":264,"token_group":234,"text":"=","start_char":16,"line":34},{"index_id":265,"token_group":235,"text":"(","start_char":18,"line":34},{"index_id":266,"token_group":236,"text":"competition","start_char":20,"line":34},{"index_id":267,"token_group":237,"text":")","start_char":32,"line":34},{"index_id":268,"token_group":238,"text":"s","start_char":34,"line":34},{"index_id":269,"token_group":239,"text":".","start_char":35,"line":34},{"index_id":270,"token_group":240,"text":"get","start_char":36,"line":34},{"index_id":271,"token_group":241,"text":"(","start_char":39,"line":34},{"index_id":272,"token_group":242,"text":"competition","start_char":41,"line":34},{"index_id":273,"token_group":243,"text":".","start_char":52,"line":34},{"index_id":274,"token_group":244,"text":"class","start_char":53,"line":34},{"index_id":275,"token_group":245,"text":",","start_char":58,"line":34},{"index_id":276,"token_group":246,"text":"competition","start_char":60,"line":34},{"index_id":277,"token_group":247,"text":".","start_char":71,"line":34},{"index_id":278,"token_group":248,"text":"get","start_char":72,"line":34},{"index_id":279,"token_group":249,"text":"Id","start_char":75,"line":34},{"index_id":280,"token_group":249,"text":"(","start_char":77,"line":34},{"index_id":281,"token_group":250,"text":")","start_char":78,"line":34},{"index_id":282,"token_group":251,"text":")","start_char":80,"line":34},{"index_id":283,"token_group":252,"text":";","start_char":81,"line":34},{"index_id":284,"token_group":253,"text":"assert","start_char":4,"line":35},{"index_id":285,"token_group":254,"text":"Equals","start_char":10,"line":35},{"index_id":286,"token_group":254,"text":"(","start_char":16,"line":35},{"index_id":287,"token_group":255,"text":"2","start_char":18,"line":35},{"index_id":288,"token_group":256,"text":",","start_char":19,"line":35},{"index_id":289,"token_group":257,"text":"competition","start_char":21,"line":35},{"index_id":290,"token_group":258,"text":".","start_char":32,"line":35},{"index_id":291,"token_group":259,"text":"get","start_char":33,"line":35},{"index_id":292,"token_group":260,"text":"Competitors","start_char":36,"line":35},{"index_id":293,"token_group":260,"text":"(","start_char":47,"line":35},{"index_id":294,"token_group":261,"text":")","start_char":48,"line":35},{"index_id":295,"token_group":262,"text":".","start_char":49,"line":35},{"index_id":296,"token_group":263,"text":"size","start_char":50,"line":35},{"index_id":297,"token_group":264,"text":"(","start_char":54,"line":35},{"index_id":298,"token_group":265,"text":")","start_char":55,"line":35},{"index_id":299,"token_group":266,"text":")","start_char":57,"line":35},{"index_id":300,"token_group":267,"text":";","start_char":58,"line":35},{"index_id":301,"token_group":268,"text":"s","start_char":4,"line":36},{"index_id":302,"token_group":269,"text":".","start_char":5,"line":36},{"index_id":303,"token_group":270,"text":"delete","start_char":6,"line":36},{"index_id":304,"token_group":271,"text":"(","start_char":12,"line":36},{"index_id":305,"token_group":272,"text":"competition","start_char":14,"line":36},{"index_id":306,"token_group":273,"text":")","start_char":26,"line":36},{"index_id":307,"token_group":274,"text":";","start_char":27,"line":36},{"index_id":308,"token_group":275,"text":"tx","start_char":4,"line":37},{"index_id":309,"token_group":276,"text":".","start_char":6,"line":37},{"index_id":310,"token_group":277,"text":"commit","start_char":7,"line":37},{"index_id":311,"token_group":278,"text":"(","start_char":13,"line":37},{"index_id":312,"token_group":279,"text":")","start_char":14,"line":37},{"index_id":313,"token_group":280,"text":";","start_char":15,"line":37},{"index_id":314,"token_group":281,"text":"s","start_char":4,"line":38},{"index_id":315,"token_group":282,"text":".","start_char":5,"line":38},{"index_id":316,"token_group":283,"text":"close","start_char":6,"line":38},{"index_id":317,"token_group":284,"text":"(","start_char":11,"line":38},{"index_id":318,"token_group":285,"text":")","start_char":12,"line":38},{"index_id":319,"token_group":286,"text":";","start_char":13,"line":38},{"index_id":320,"token_group":287,"text":"cleanup","start_char":4,"line":40},{"index_id":321,"token_group":288,"text":"(","start_char":11,"line":40},{"index_id":322,"token_group":289,"text":")","start_char":12,"line":40},{"index_id":323,"token_group":290,"text":";","start_char":13,"line":40},{"index_id":324,"token_group":291,"text":"}","start_char":0,"line":41}],"tokens_list":["{","session","s","=","open","Session","(",")",";","transaction","tx","=","s",".","begin","Transaction","(",")",";","competition","competition","=","new","competition","(",")",";","competition",".","get","Competitors","(",")",".","add","(","new","competitor","(","\"Name\"",")",")",";","competition",".","get","Competitors","(",")",".","add","(","new","competitor","(",")",")",";","competition",".","get","Competitors","(",")",".","add","(","new","competitor","(",")",")",";","s",".","persist","(","competition",")",";","tx",".","commit","(",")",";","s",".","close","(",")",";","s","=","open","Session","(",")",";","tx","=","s",".","begin","Transaction","(",")",";","list","new","Comp","=","new","array","List","(",")",";","competitor","original","Competitor","=","(","competitor",")","competition",".","get","Competitors","(",")",".","get","(","0",")",";","original","Competitor",".","set","Name","(","\"Name2\"",")",";","new","Comp",".","add","(","original","Competitor",")",";","new","Comp",".","add","(","new","competitor","(",")",")",";","competition",".","set","Competitors","(","new","Comp",")",";","competition","competition","2","=","(","competition",")","s",".","merge","(","competition",")",";","tx",".","commit","(",")",";","s",".","close","(",")",";","assert","False","(","competition","==","competition","2",")",";","assert","False","(","competition",".","get","Competitors","(",")","==","competition","2",".","get","Competitors","(",")",")",";","assert","Equals","(","2",",","competition","2",".","get","Competitors","(",")",".","size","(",")",")",";","s","=","open","Session","(",")",";","tx","=","s",".","begin","Transaction","(",")",";","competition","=","(","competition",")","s",".","get","(","competition",".","class",",","competition",".","get","Id","(",")",")",";","assert","Equals","(","2",",","competition",".","get","Competitors","(",")",".","size","(",")",")",";","s",".","delete","(","competition",")",";","tx",".","commit","(",")",";","s",".","close","(",")",";","cleanup","(",")",";","}"],"uuid":"08620f9e279aca9d948708b8dae0cfe4"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","map","<\/id>","<","<id>","string","<\/id>",",","<id>","string","<\/id>",">","<id>","config","<\/id>","=","new","<id>","linked","Hash","Map","<\/id>","<",">","(",")",";","<id>","config","<\/id>",".","<id>","put","<\/id>","(","\"foo\"",",","\"scriptValue\"",")",";","<id>","config","<\/id>",".","<id>","put","<\/id>","(","\"foo_id\"",",","\"scriptValue\"",")",";","<id>","set","<\/id>","<","<id>","string","<\/id>",">","<id>","parameters","<\/id>","=","<id>","collections","<\/id>",".","<id>","singleton","<\/id>","(","\"foo\"",")",";","<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>","map","Params","<\/id>","<id>","params","<\/id>","=","new","<id>","map","Params","<\/id>","(","<id>","config","<\/id>",")",";","try","{","<id>","param","Parser","<\/id>",".","<id>","parse","Params","<\/id>","(","<id>","params","<\/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>","(","\"Only one of [foo, foo_file, foo_id] is allowed.\"",")",")",";","}","}","<SENTENCE_END\/>"],"file_name":"ScriptParameterParserTests.java","formatted_lines":["{"," Map<String, String> config = new LinkedHashMap<>();"," config.put(\"foo\", \"scriptValue\");"," config.put(\"foo_id\", \"scriptValue\");"," Set<String> parameters = Collections.singleton(\"foo\");"," ScriptParameterParser paramParser = new ScriptParameterParser(parameters);"," assertThat(paramParser.getScriptParameterValue(\"foo\"), nullValue());"," MapParams params = new MapParams(config);"," try"," {"," paramParser.parseParams(params);"," fail(\"Expected ScriptParseException\");"," }"," catch(ScriptParseException e)"," {"," assertThat(e.getMessage(),"," is(\"Only one of [foo, foo_file, foo_id] is allowed.\"));"," }","}"],"function_name":"testParamsSingleParameterDelcaredTwiceInlineIndexed","function_name_tokens":["test","params","single","parameter","delcared","twice","inline","indexed"],"id_body_hash":"8a5896a73db664fe03b536418f849589","id_same_identifier_list":[0,1,2,3,4,5,6,7,8,9,10,11,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,48,48,49,49,50,51,52,52,52,53,54,55,56,57,57,58,59,59,60,61,61,61,61,62,63,64,65,66,66,67,68,69,70,71,71,72,73,74,75,75,76,77,78,79,80,81,82,82,83,84,84,85,86,87,88,89,90,91,92,93,94,95,96,97,97,97,98,99,100,101,101,102,103,104,105,105,106,107,108,109,110,111,112,113,114,115,116,117],"option_correct":"testParamsSingleParameterDelcaredTwiceInlineIndexed","options":["testParamsSingleParameterDelcaredTwiceFileInline","testParamsSingleParameterDelcaredTwiceInlineIndexed","bytes","testPercolateNonMatchingConstantScoreQuery","testParamsSingleParameterDelcaredTwiceInlineFile","testParamsSingleParameterDelcaredTwiceIndexedInline","testMvOrdinalsTrigger"],"options_nlp":["test params single parameter delcared twice file inline","test params single parameter delcared twice inline indexed","bytes","test percolate non matching constant score query","test params single parameter delcared twice inline file","test params single parameter delcared twice indexed inline","test mv ordinals trigger"],"options_random":["testPercolateNonMatchingConstantScoreQuery","testMvOrdinalsTrigger","bytes"],"options_tfidf":["testParamsSingleParameterDelcaredTwiceInlineFile","testParamsSingleParameterDelcaredTwiceIndexedInline","testParamsSingleParameterDelcaredTwiceFileInline"],"project_name":"elasticsearch","source_code_string":"public void testParamsSingleParameterDelcaredTwiceInlineIndexed() throws IOException {\n Map<String, String> config = new LinkedHashMap<>();\n config.put(\"foo\", \"scriptValue\");\n config.put(\"foo_id\", \"scriptValue\");\n Set<String> parameters = Collections.singleton(\"foo\");\n ScriptParameterParser paramParser = new ScriptParameterParser(parameters);\n assertThat(paramParser.getScriptParameterValue(\"foo\"), nullValue());\n MapParams params = new MapParams(config);\n try {\n paramParser.parseParams(params);\n fail(\"Expected ScriptParseException\");\n } catch(ScriptParseException e) {\n assertThat(e.getMessage(), is(\"Only one of [foo, foo_file, foo_id] is allowed.\"));\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":"string","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":"linked","start_char":37,"line":1},{"index_id":11,"token_group":11,"text":"Hash","start_char":43,"line":1},{"index_id":12,"token_group":11,"text":"Map","start_char":47,"line":1},{"index_id":13,"token_group":11,"text":"<","start_char":50,"line":1},{"index_id":14,"token_group":12,"text":">","start_char":51,"line":1},{"index_id":15,"token_group":13,"text":"(","start_char":52,"line":1},{"index_id":16,"token_group":14,"text":")","start_char":53,"line":1},{"index_id":17,"token_group":15,"text":";","start_char":54,"line":1},{"index_id":18,"token_group":16,"text":"config","start_char":4,"line":2},{"index_id":19,"token_group":17,"text":".","start_char":10,"line":2},{"index_id":20,"token_group":18,"text":"put","start_char":11,"line":2},{"index_id":21,"token_group":19,"text":"(","start_char":14,"line":2},{"index_id":22,"token_group":20,"text":"\"foo\"","start_char":15,"line":2},{"index_id":23,"token_group":21,"text":",","start_char":20,"line":2},{"index_id":24,"token_group":22,"text":"\"scriptValue\"","start_char":22,"line":2},{"index_id":25,"token_group":23,"text":")","start_char":35,"line":2},{"index_id":26,"token_group":24,"text":";","start_char":36,"line":2},{"index_id":27,"token_group":25,"text":"config","start_char":4,"line":3},{"index_id":28,"token_group":26,"text":".","start_char":10,"line":3},{"index_id":29,"token_group":27,"text":"put","start_char":11,"line":3},{"index_id":30,"token_group":28,"text":"(","start_char":14,"line":3},{"index_id":31,"token_group":29,"text":"\"foo_id\"","start_char":15,"line":3},{"index_id":32,"token_group":30,"text":",","start_char":23,"line":3},{"index_id":33,"token_group":31,"text":"\"scriptValue\"","start_char":25,"line":3},{"index_id":34,"token_group":32,"text":")","start_char":38,"line":3},{"index_id":35,"token_group":33,"text":";","start_char":39,"line":3},{"index_id":36,"token_group":34,"text":"set","start_char":4,"line":4},{"index_id":37,"token_group":35,"text":"<","start_char":7,"line":4},{"index_id":38,"token_group":36,"text":"string","start_char":8,"line":4},{"index_id":39,"token_group":37,"text":">","start_char":14,"line":4},{"index_id":40,"token_group":38,"text":"parameters","start_char":16,"line":4},{"index_id":41,"token_group":39,"text":"=","start_char":27,"line":4},{"index_id":42,"token_group":40,"text":"collections","start_char":29,"line":4},{"index_id":43,"token_group":41,"text":".","start_char":40,"line":4},{"index_id":44,"token_group":42,"text":"singleton","start_char":41,"line":4},{"index_id":45,"token_group":43,"text":"(","start_char":50,"line":4},{"index_id":46,"token_group":44,"text":"\"foo\"","start_char":51,"line":4},{"index_id":47,"token_group":45,"text":")","start_char":56,"line":4},{"index_id":48,"token_group":46,"text":";","start_char":57,"line":4},{"index_id":49,"token_group":47,"text":"script","start_char":4,"line":5},{"index_id":50,"token_group":48,"text":"Parameter","start_char":10,"line":5},{"index_id":51,"token_group":48,"text":"Parser","start_char":19,"line":5},{"index_id":52,"token_group":48,"text":"param","start_char":26,"line":5},{"index_id":53,"token_group":49,"text":"Parser","start_char":31,"line":5},{"index_id":54,"token_group":49,"text":"=","start_char":38,"line":5},{"index_id":55,"token_group":50,"text":"new","start_char":40,"line":5},{"index_id":56,"token_group":51,"text":"script","start_char":44,"line":5},{"index_id":57,"token_group":52,"text":"Parameter","start_char":50,"line":5},{"index_id":58,"token_group":52,"text":"Parser","start_char":59,"line":5},{"index_id":59,"token_group":52,"text":"(","start_char":65,"line":5},{"index_id":60,"token_group":53,"text":"parameters","start_char":66,"line":5},{"index_id":61,"token_group":54,"text":")","start_char":76,"line":5},{"index_id":62,"token_group":55,"text":";","start_char":77,"line":5},{"index_id":63,"token_group":56,"text":"assert","start_char":4,"line":6},{"index_id":64,"token_group":57,"text":"That","start_char":10,"line":6},{"index_id":65,"token_group":57,"text":"(","start_char":14,"line":6},{"index_id":66,"token_group":58,"text":"param","start_char":15,"line":6},{"index_id":67,"token_group":59,"text":"Parser","start_char":20,"line":6},{"index_id":68,"token_group":59,"text":".","start_char":26,"line":6},{"index_id":69,"token_group":60,"text":"get","start_char":27,"line":6},{"index_id":70,"token_group":61,"text":"Script","start_char":30,"line":6},{"index_id":71,"token_group":61,"text":"Parameter","start_char":36,"line":6},{"index_id":72,"token_group":61,"text":"Value","start_char":45,"line":6},{"index_id":73,"token_group":61,"text":"(","start_char":50,"line":6},{"index_id":74,"token_group":62,"text":"\"foo\"","start_char":51,"line":6},{"index_id":75,"token_group":63,"text":")","start_char":56,"line":6},{"index_id":76,"token_group":64,"text":",","start_char":57,"line":6},{"index_id":77,"token_group":65,"text":"null","start_char":59,"line":6},{"index_id":78,"token_group":66,"text":"Value","start_char":63,"line":6},{"index_id":79,"token_group":66,"text":"(","start_char":68,"line":6},{"index_id":80,"token_group":67,"text":")","start_char":69,"line":6},{"index_id":81,"token_group":68,"text":")","start_char":70,"line":6},{"index_id":82,"token_group":69,"text":";","start_char":71,"line":6},{"index_id":83,"token_group":70,"text":"map","start_char":4,"line":7},{"index_id":84,"token_group":71,"text":"Params","start_char":7,"line":7},{"index_id":85,"token_group":71,"text":"params","start_char":14,"line":7},{"index_id":86,"token_group":72,"text":"=","start_char":21,"line":7},{"index_id":87,"token_group":73,"text":"new","start_char":23,"line":7},{"index_id":88,"token_group":74,"text":"map","start_char":27,"line":7},{"index_id":89,"token_group":75,"text":"Params","start_char":30,"line":7},{"index_id":90,"token_group":75,"text":"(","start_char":36,"line":7},{"index_id":91,"token_group":76,"text":"config","start_char":37,"line":7},{"index_id":92,"token_group":77,"text":")","start_char":43,"line":7},{"index_id":93,"token_group":78,"text":";","start_char":44,"line":7},{"index_id":94,"token_group":79,"text":"try","start_char":4,"line":8},{"index_id":95,"token_group":80,"text":"{","start_char":4,"line":9},{"index_id":96,"token_group":81,"text":"param","start_char":8,"line":10},{"index_id":97,"token_group":82,"text":"Parser","start_char":13,"line":10},{"index_id":98,"token_group":82,"text":".","start_char":19,"line":10},{"index_id":99,"token_group":83,"text":"parse","start_char":20,"line":10},{"index_id":100,"token_group":84,"text":"Params","start_char":25,"line":10},{"index_id":101,"token_group":84,"text":"(","start_char":31,"line":10},{"index_id":102,"token_group":85,"text":"params","start_char":32,"line":10},{"index_id":103,"token_group":86,"text":")","start_char":38,"line":10},{"index_id":104,"token_group":87,"text":";","start_char":39,"line":10},{"index_id":105,"token_group":88,"text":"fail","start_char":8,"line":11},{"index_id":106,"token_group":89,"text":"(","start_char":12,"line":11},{"index_id":107,"token_group":90,"text":"\"Expected ScriptParseException\"","start_char":13,"line":11},{"index_id":108,"token_group":91,"text":")","start_char":44,"line":11},{"index_id":109,"token_group":92,"text":";","start_char":45,"line":11},{"index_id":110,"token_group":93,"text":"}","start_char":4,"line":12},{"index_id":111,"token_group":94,"text":"catch","start_char":4,"line":13},{"index_id":112,"token_group":95,"text":"(","start_char":9,"line":13},{"index_id":113,"token_group":96,"text":"script","start_char":10,"line":13},{"index_id":114,"token_group":97,"text":"Parse","start_char":16,"line":13},{"index_id":115,"token_group":97,"text":"Exception","start_char":21,"line":13},{"index_id":116,"token_group":97,"text":"e","start_char":31,"line":13},{"index_id":117,"token_group":98,"text":")","start_char":32,"line":13},{"index_id":118,"token_group":99,"text":"{","start_char":4,"line":14},{"index_id":119,"token_group":100,"text":"assert","start_char":8,"line":15},{"index_id":120,"token_group":101,"text":"That","start_char":14,"line":15},{"index_id":121,"token_group":101,"text":"(","start_char":18,"line":15},{"index_id":122,"token_group":102,"text":"e","start_char":19,"line":15},{"index_id":123,"token_group":103,"text":".","start_char":20,"line":15},{"index_id":124,"token_group":104,"text":"get","start_char":21,"line":15},{"index_id":125,"token_group":105,"text":"Message","start_char":24,"line":15},{"index_id":126,"token_group":105,"text":"(","start_char":31,"line":15},{"index_id":127,"token_group":106,"text":")","start_char":32,"line":15},{"index_id":128,"token_group":107,"text":",","start_char":33,"line":15},{"index_id":129,"token_group":108,"text":"is","start_char":19,"line":16},{"index_id":130,"token_group":109,"text":"(","start_char":21,"line":16},{"index_id":131,"token_group":110,"text":"\"Only one of [foo, foo_file, foo_id] is allowed.\"","start_char":22,"line":16},{"index_id":132,"token_group":111,"text":")","start_char":71,"line":16},{"index_id":133,"token_group":112,"text":")","start_char":72,"line":16},{"index_id":134,"token_group":113,"text":";","start_char":73,"line":16},{"index_id":135,"token_group":114,"text":"}","start_char":4,"line":17},{"index_id":136,"token_group":115,"text":"}","start_char":0,"line":18}],"tokens_list":["{","map","<","string",",","string",">","config","=","new","linked","Hash","Map","<",">","(",")",";","config",".","put","(","\"foo\"",",","\"scriptValue\"",")",";","config",".","put","(","\"foo_id\"",",","\"scriptValue\"",")",";","set","<","string",">","parameters","=","collections",".","singleton","(","\"foo\"",")",";","script","Parameter","Parser","param","Parser","=","new","script","Parameter","Parser","(","parameters",")",";","assert","That","(","param","Parser",".","get","Script","Parameter","Value","(","\"foo\"",")",",","null","Value","(",")",")",";","map","Params","params","=","new","map","Params","(","config",")",";","try","{","param","Parser",".","parse","Params","(","params",")",";","fail","(","\"Expected ScriptParseException\"",")",";","}","catch","(","script","Parse","Exception","e",")","{","assert","That","(","e",".","get","Message","(",")",",","is","(","\"Only one of [foo, foo_file, foo_id] is allowed.\"",")",")",";","}","}"],"uuid":"2f1d76ad2c7e64a97daa5a2eb3700df9"},{"cap_original_tokens":["<SENTENCE_START>","{","return","new","<id>","query","<\/id>","(","null",",","<id>","query","Type","<\/id>",".","<id>","standard","<\/id>",",","null",")",";","}","<SENTENCE_END\/>"],"file_name":"Query.java","formatted_lines":["{"," return new Query(null, QueryType.STANDARD, null);","}"],"function_name":"createStandardQuery","function_name_tokens":["create","standard","query"],"id_body_hash":"72d6cb5aabdf036066a933389031d6b3","id_same_identifier_list":[0,1,2,3,4,5,6,7,8,8,9,10,11,12,13,14,15,16],"option_correct":"createStandardQuery","options":["getLevel","createDDMFormValuesQuery","testCountByU_C","createStandardQuery","create","getUseShippingFormula","createCustomQuery"],"options_nlp":["get level","create ddm form values query","test count by u c","create standard query","create","get use shipping formula","create custom query"],"options_random":["getLevel","testCountByU_C","getUseShippingFormula"],"options_tfidf":["createCustomQuery","createDDMFormValuesQuery","create"],"project_name":"liferay-portal","source_code_string":"public static Query createStandardQuery() {\n\t\treturn new Query(null, QueryType.STANDARD, null);\n\t}","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"return","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"new","start_char":11,"line":1},{"index_id":3,"token_group":3,"text":"query","start_char":15,"line":1},{"index_id":4,"token_group":4,"text":"(","start_char":20,"line":1},{"index_id":5,"token_group":5,"text":"null","start_char":21,"line":1},{"index_id":6,"token_group":6,"text":",","start_char":25,"line":1},{"index_id":7,"token_group":7,"text":"query","start_char":27,"line":1},{"index_id":8,"token_group":8,"text":"Type","start_char":32,"line":1},{"index_id":9,"token_group":8,"text":".","start_char":36,"line":1},{"index_id":10,"token_group":9,"text":"standard","start_char":37,"line":1},{"index_id":11,"token_group":10,"text":",","start_char":45,"line":1},{"index_id":12,"token_group":11,"text":"null","start_char":47,"line":1},{"index_id":13,"token_group":12,"text":")","start_char":51,"line":1},{"index_id":14,"token_group":13,"text":";","start_char":52,"line":1},{"index_id":15,"token_group":14,"text":"}","start_char":0,"line":2}],"tokens_list":["{","return","new","query","(","null",",","query","Type",".","standard",",","null",")",";","}"],"uuid":"2239e6f5bcc974db27d050c8a981e09b"},{"cap_original_tokens":["<SENTENCE_START>","{","int","<id>","low","<\/id>","=","0",";","int","<id>","high","<\/id>","=","<id>","list","<\/id>",".","<id>","size","<\/id>","(",")",";","while","(","<id>","low","<\/id>","<","<id>","high","<\/id>",")","{","int","<id>","mid","<\/id>","=","(","<id>","low","<\/id>","+","<id>","high","<\/id>",")",">>>","1",";","<id>","comparable","<\/id>","<","?","super","<id>","t","<\/id>",">","<id>","mid","Val","<\/id>","=","<id>","list","<\/id>",".","<id>","get","<\/id>","(","<id>","mid","<\/id>",")",";","int","<id>","ret","<\/id>","=","<id>","mid","Val","<\/id>",".","<id>","compare","To","<\/id>","(","<id>","key","<\/id>",")",";","if","(","<id>","ret","<\/id>","<","0",")","<id>","low","<\/id>","=","<id>","mid","<\/id>","+","1",";","else","<id>","high","<\/id>","=","<id>","mid","<\/id>",";","}","return","<id>","low","<\/id>",";","}","<SENTENCE_END\/>"],"file_name":"Utils.java","formatted_lines":["{"," int low = 0;"," int high = list.size();",""," while (low < high)"," {"," int mid = (low + high) >>> 1;"," Comparable <? super T > midVal = list.get(mid);"," int ret = midVal.compareTo(key);"," if (ret < 0)"," low = mid + 1;"," else high = mid;"," }"," return low;","}"],"function_name":"lowerBound","function_name_tokens":["lower","bound"],"id_body_hash":"bbd9d054794b10261e96056b9718991b","id_same_identifier_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,40,41,42,43,44,45,46,47,48,49,50,51,52,52,53,54,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81],"option_correct":"lowerBound","options":["lowerBound","testSourceListing","upperBound","baseService","getUnexpectedAMRegisteredDiagnostics","getBoundPort","injectCriteria"],"options_nlp":["lower bound","test source listing","upper bound","base service","get unexpected am registered diagnostics","get bound port","inject criteria"],"options_random":["testSourceListing","baseService","getUnexpectedAMRegisteredDiagnostics"],"options_tfidf":["injectCriteria","getBoundPort","upperBound"],"project_name":"hadoop-common","source_code_string":"public static <T> int lowerBound(List<? extends Comparable<? super T>> list,\n T key) {\n int low = 0;\n int high = list.size();\n\n while (low < high) {\n int mid = (low + high) >>> 1;\n Comparable<? super T> midVal = list.get(mid);\n int ret = midVal.compareTo(key);\n if (ret < 0)\n low = mid + 1;\n else high = mid;\n }\n return low;\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"int","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"low","start_char":8,"line":1},{"index_id":3,"token_group":3,"text":"=","start_char":12,"line":1},{"index_id":4,"token_group":4,"text":"0","start_char":14,"line":1},{"index_id":5,"token_group":5,"text":";","start_char":15,"line":1},{"index_id":6,"token_group":6,"text":"int","start_char":4,"line":2},{"index_id":7,"token_group":7,"text":"high","start_char":8,"line":2},{"index_id":8,"token_group":8,"text":"=","start_char":13,"line":2},{"index_id":9,"token_group":9,"text":"list","start_char":15,"line":2},{"index_id":10,"token_group":10,"text":".","start_char":19,"line":2},{"index_id":11,"token_group":11,"text":"size","start_char":20,"line":2},{"index_id":12,"token_group":12,"text":"(","start_char":24,"line":2},{"index_id":13,"token_group":13,"text":")","start_char":25,"line":2},{"index_id":14,"token_group":14,"text":";","start_char":26,"line":2},{"index_id":15,"token_group":15,"text":"while","start_char":4,"line":4},{"index_id":16,"token_group":16,"text":"(","start_char":10,"line":4},{"index_id":17,"token_group":17,"text":"low","start_char":11,"line":4},{"index_id":18,"token_group":18,"text":"<","start_char":15,"line":4},{"index_id":19,"token_group":19,"text":"high","start_char":17,"line":4},{"index_id":20,"token_group":20,"text":")","start_char":21,"line":4},{"index_id":21,"token_group":21,"text":"{","start_char":4,"line":5},{"index_id":22,"token_group":22,"text":"int","start_char":8,"line":6},{"index_id":23,"token_group":23,"text":"mid","start_char":12,"line":6},{"index_id":24,"token_group":24,"text":"=","start_char":16,"line":6},{"index_id":25,"token_group":25,"text":"(","start_char":18,"line":6},{"index_id":26,"token_group":26,"text":"low","start_char":19,"line":6},{"index_id":27,"token_group":27,"text":"+","start_char":23,"line":6},{"index_id":28,"token_group":28,"text":"high","start_char":25,"line":6},{"index_id":29,"token_group":29,"text":")","start_char":29,"line":6},{"index_id":30,"token_group":30,"text":">>>","start_char":31,"line":6},{"index_id":31,"token_group":31,"text":"1","start_char":35,"line":6},{"index_id":32,"token_group":32,"text":";","start_char":36,"line":6},{"index_id":33,"token_group":33,"text":"comparable","start_char":8,"line":7},{"index_id":34,"token_group":34,"text":"<","start_char":19,"line":7},{"index_id":35,"token_group":35,"text":"?","start_char":20,"line":7},{"index_id":36,"token_group":36,"text":"super","start_char":22,"line":7},{"index_id":37,"token_group":37,"text":"t","start_char":28,"line":7},{"index_id":38,"token_group":38,"text":">","start_char":30,"line":7},{"index_id":39,"token_group":39,"text":"mid","start_char":32,"line":7},{"index_id":40,"token_group":40,"text":"Val","start_char":35,"line":7},{"index_id":41,"token_group":40,"text":"=","start_char":39,"line":7},{"index_id":42,"token_group":41,"text":"list","start_char":41,"line":7},{"index_id":43,"token_group":42,"text":".","start_char":45,"line":7},{"index_id":44,"token_group":43,"text":"get","start_char":46,"line":7},{"index_id":45,"token_group":44,"text":"(","start_char":49,"line":7},{"index_id":46,"token_group":45,"text":"mid","start_char":50,"line":7},{"index_id":47,"token_group":46,"text":")","start_char":53,"line":7},{"index_id":48,"token_group":47,"text":";","start_char":54,"line":7},{"index_id":49,"token_group":48,"text":"int","start_char":8,"line":8},{"index_id":50,"token_group":49,"text":"ret","start_char":12,"line":8},{"index_id":51,"token_group":50,"text":"=","start_char":16,"line":8},{"index_id":52,"token_group":51,"text":"mid","start_char":18,"line":8},{"index_id":53,"token_group":52,"text":"Val","start_char":21,"line":8},{"index_id":54,"token_group":52,"text":".","start_char":24,"line":8},{"index_id":55,"token_group":53,"text":"compare","start_char":25,"line":8},{"index_id":56,"token_group":54,"text":"To","start_char":32,"line":8},{"index_id":57,"token_group":54,"text":"(","start_char":34,"line":8},{"index_id":58,"token_group":55,"text":"key","start_char":35,"line":8},{"index_id":59,"token_group":56,"text":")","start_char":38,"line":8},{"index_id":60,"token_group":57,"text":";","start_char":39,"line":8},{"index_id":61,"token_group":58,"text":"if","start_char":8,"line":9},{"index_id":62,"token_group":59,"text":"(","start_char":11,"line":9},{"index_id":63,"token_group":60,"text":"ret","start_char":12,"line":9},{"index_id":64,"token_group":61,"text":"<","start_char":16,"line":9},{"index_id":65,"token_group":62,"text":"0","start_char":18,"line":9},{"index_id":66,"token_group":63,"text":")","start_char":19,"line":9},{"index_id":67,"token_group":64,"text":"low","start_char":12,"line":10},{"index_id":68,"token_group":65,"text":"=","start_char":16,"line":10},{"index_id":69,"token_group":66,"text":"mid","start_char":18,"line":10},{"index_id":70,"token_group":67,"text":"+","start_char":22,"line":10},{"index_id":71,"token_group":68,"text":"1","start_char":24,"line":10},{"index_id":72,"token_group":69,"text":";","start_char":25,"line":10},{"index_id":73,"token_group":70,"text":"else","start_char":8,"line":11},{"index_id":74,"token_group":71,"text":"high","start_char":13,"line":11},{"index_id":75,"token_group":72,"text":"=","start_char":18,"line":11},{"index_id":76,"token_group":73,"text":"mid","start_char":20,"line":11},{"index_id":77,"token_group":74,"text":";","start_char":23,"line":11},{"index_id":78,"token_group":75,"text":"}","start_char":4,"line":12},{"index_id":79,"token_group":76,"text":"return","start_char":4,"line":13},{"index_id":80,"token_group":77,"text":"low","start_char":11,"line":13},{"index_id":81,"token_group":78,"text":";","start_char":14,"line":13},{"index_id":82,"token_group":79,"text":"}","start_char":0,"line":14}],"tokens_list":["{","int","low","=","0",";","int","high","=","list",".","size","(",")",";","while","(","low","<","high",")","{","int","mid","=","(","low","+","high",")",">>>","1",";","comparable","<","?","super","t",">","mid","Val","=","list",".","get","(","mid",")",";","int","ret","=","mid","Val",".","compare","To","(","key",")",";","if","(","ret","<","0",")","low","=","mid","+","1",";","else","high","=","mid",";","}","return","low",";","}"],"uuid":"2cb42542beddb6abce4b71f128a0f7d2"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","connection","<\/id>","<id>","con","<\/id>","=","null",";","<id>","prepared","Statement","<\/id>","<id>","ps","<\/id>","=","null",";","try","{","<id>","con","<\/id>","=","<id>","data","Access","<\/id>",".","<id>","get","Upgrade","Optimized","Connection","<\/id>","(",")",";","<id>","ps","<\/id>","=","<id>","con","<\/id>",".","<id>","prepare","Statement","<\/id>","(","\"update MBThread set question = ? where threadId =\"","+","<id>","thread","Id","<\/id>",")",";","<id>","ps","<\/id>",".","<id>","set","Boolean","<\/id>","(","1",",","<id>","question","<\/id>",")",";","<id>","ps","<\/id>",".","<id>","execute","Update","<\/id>","(",")",";","}","finally","{","<id>","data","Access","<\/id>",".","<id>","clean","Up","<\/id>","(","<id>","con","<\/id>",",","<id>","ps","<\/id>",")",";","}","}","<SENTENCE_END\/>"],"file_name":"UpgradeMessageBoards.java","formatted_lines":["{",""," Connection con = null;"," PreparedStatement ps = null;",""," try"," {"," con = DataAccess.getUpgradeOptimizedConnection();",""," ps = con.prepareStatement("," \"update MBThread set question = ? where threadId =\" + threadId);",""," ps.setBoolean(1, question);",""," ps.executeUpdate();"," }"," finally {"," DataAccess.cleanUp(con, ps);"," }","}"],"function_name":"updateThreadQuestion","function_name_tokens":["update","thread","question"],"id_body_hash":"50c34a0067d192358f879e392cce5279","id_same_identifier_list":[0,1,2,3,4,5,6,7,7,8,9,10,11,12,13,14,15,16,16,17,18,18,18,18,19,20,21,22,23,24,25,26,26,27,28,29,30,30,31,32,33,34,35,35,36,37,38,39,40,41,42,43,44,44,45,46,47,48,49,50,51,51,52,53,53,54,55,56,57,58,59,60,61,62],"option_correct":"updateThreadQuestion","options":["updateThreadQuestion","getPage","updateThreadFlag","updateThread","isQuestion","addDraftBaseModel","getSAPEntryLocalService"],"options_nlp":["update thread question","get page","update thread flag","update thread","is question","add draft base model","get sap entry local service"],"options_random":["getPage","addDraftBaseModel","getSAPEntryLocalService"],"options_tfidf":["isQuestion","updateThread","updateThreadFlag"],"project_name":"liferay-portal","source_code_string":"protected void updateThreadQuestion(long threadId, boolean question)\n\t\tthrows Exception {\n\n\t\tConnection con = null;\n\t\tPreparedStatement ps = null;\n\n\t\ttry {\n\t\t\tcon = DataAccess.getUpgradeOptimizedConnection();\n\n\t\t\tps = con.prepareStatement(\n\t\t\t\t\"update MBThread set question = ? where threadId =\" + threadId);\n\n\t\t\tps.setBoolean(1, question);\n\n\t\t\tps.executeUpdate();\n\t\t}\n\t\tfinally {\n\t\t\tDataAccess.cleanUp(con, ps);\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":"connection","start_char":4,"line":2},{"index_id":2,"token_group":2,"text":"con","start_char":15,"line":2},{"index_id":3,"token_group":3,"text":"=","start_char":19,"line":2},{"index_id":4,"token_group":4,"text":"null","start_char":21,"line":2},{"index_id":5,"token_group":5,"text":";","start_char":25,"line":2},{"index_id":6,"token_group":6,"text":"prepared","start_char":4,"line":3},{"index_id":7,"token_group":7,"text":"Statement","start_char":12,"line":3},{"index_id":8,"token_group":7,"text":"ps","start_char":22,"line":3},{"index_id":9,"token_group":8,"text":"=","start_char":25,"line":3},{"index_id":10,"token_group":9,"text":"null","start_char":27,"line":3},{"index_id":11,"token_group":10,"text":";","start_char":31,"line":3},{"index_id":12,"token_group":11,"text":"try","start_char":4,"line":5},{"index_id":13,"token_group":12,"text":"{","start_char":4,"line":6},{"index_id":14,"token_group":13,"text":"con","start_char":8,"line":7},{"index_id":15,"token_group":14,"text":"=","start_char":12,"line":7},{"index_id":16,"token_group":15,"text":"data","start_char":14,"line":7},{"index_id":17,"token_group":16,"text":"Access","start_char":18,"line":7},{"index_id":18,"token_group":16,"text":".","start_char":24,"line":7},{"index_id":19,"token_group":17,"text":"get","start_char":25,"line":7},{"index_id":20,"token_group":18,"text":"Upgrade","start_char":28,"line":7},{"index_id":21,"token_group":18,"text":"Optimized","start_char":35,"line":7},{"index_id":22,"token_group":18,"text":"Connection","start_char":44,"line":7},{"index_id":23,"token_group":18,"text":"(","start_char":54,"line":7},{"index_id":24,"token_group":19,"text":")","start_char":55,"line":7},{"index_id":25,"token_group":20,"text":";","start_char":56,"line":7},{"index_id":26,"token_group":21,"text":"ps","start_char":8,"line":9},{"index_id":27,"token_group":22,"text":"=","start_char":11,"line":9},{"index_id":28,"token_group":23,"text":"con","start_char":13,"line":9},{"index_id":29,"token_group":24,"text":".","start_char":16,"line":9},{"index_id":30,"token_group":25,"text":"prepare","start_char":17,"line":9},{"index_id":31,"token_group":26,"text":"Statement","start_char":24,"line":9},{"index_id":32,"token_group":26,"text":"(","start_char":33,"line":9},{"index_id":33,"token_group":27,"text":"\"update MBThread set question = ? where threadId =\"","start_char":12,"line":10},{"index_id":34,"token_group":28,"text":"+","start_char":64,"line":10},{"index_id":35,"token_group":29,"text":"thread","start_char":66,"line":10},{"index_id":36,"token_group":30,"text":"Id","start_char":72,"line":10},{"index_id":37,"token_group":30,"text":")","start_char":74,"line":10},{"index_id":38,"token_group":31,"text":";","start_char":75,"line":10},{"index_id":39,"token_group":32,"text":"ps","start_char":8,"line":12},{"index_id":40,"token_group":33,"text":".","start_char":10,"line":12},{"index_id":41,"token_group":34,"text":"set","start_char":11,"line":12},{"index_id":42,"token_group":35,"text":"Boolean","start_char":14,"line":12},{"index_id":43,"token_group":35,"text":"(","start_char":21,"line":12},{"index_id":44,"token_group":36,"text":"1","start_char":22,"line":12},{"index_id":45,"token_group":37,"text":",","start_char":23,"line":12},{"index_id":46,"token_group":38,"text":"question","start_char":25,"line":12},{"index_id":47,"token_group":39,"text":")","start_char":33,"line":12},{"index_id":48,"token_group":40,"text":";","start_char":34,"line":12},{"index_id":49,"token_group":41,"text":"ps","start_char":8,"line":14},{"index_id":50,"token_group":42,"text":".","start_char":10,"line":14},{"index_id":51,"token_group":43,"text":"execute","start_char":11,"line":14},{"index_id":52,"token_group":44,"text":"Update","start_char":18,"line":14},{"index_id":53,"token_group":44,"text":"(","start_char":24,"line":14},{"index_id":54,"token_group":45,"text":")","start_char":25,"line":14},{"index_id":55,"token_group":46,"text":";","start_char":26,"line":14},{"index_id":56,"token_group":47,"text":"}","start_char":4,"line":15},{"index_id":57,"token_group":48,"text":"finally","start_char":4,"line":16},{"index_id":58,"token_group":49,"text":"{","start_char":12,"line":16},{"index_id":59,"token_group":50,"text":"data","start_char":8,"line":17},{"index_id":60,"token_group":51,"text":"Access","start_char":12,"line":17},{"index_id":61,"token_group":51,"text":".","start_char":18,"line":17},{"index_id":62,"token_group":52,"text":"clean","start_char":19,"line":17},{"index_id":63,"token_group":53,"text":"Up","start_char":24,"line":17},{"index_id":64,"token_group":53,"text":"(","start_char":26,"line":17},{"index_id":65,"token_group":54,"text":"con","start_char":27,"line":17},{"index_id":66,"token_group":55,"text":",","start_char":30,"line":17},{"index_id":67,"token_group":56,"text":"ps","start_char":32,"line":17},{"index_id":68,"token_group":57,"text":")","start_char":34,"line":17},{"index_id":69,"token_group":58,"text":";","start_char":35,"line":17},{"index_id":70,"token_group":59,"text":"}","start_char":4,"line":18},{"index_id":71,"token_group":60,"text":"}","start_char":0,"line":19}],"tokens_list":["{","connection","con","=","null",";","prepared","Statement","ps","=","null",";","try","{","con","=","data","Access",".","get","Upgrade","Optimized","Connection","(",")",";","ps","=","con",".","prepare","Statement","(","\"update MBThread set question = ? where threadId =\"","+","thread","Id",")",";","ps",".","set","Boolean","(","1",",","question",")",";","ps",".","execute","Update","(",")",";","}","finally","{","data","Access",".","clean","Up","(","con",",","ps",")",";","}","}"],"uuid":"15a8d892d6840e63d2d2601e7b297357"},{"cap_original_tokens":["<SENTENCE_START>","{","this",".","<id>","age","<\/id>","=","<id>","age","<\/id>",";","}","<SENTENCE_END\/>"],"file_name":"Driver.java","formatted_lines":["{"," this.age = age;","}"],"function_name":"setAge","function_name_tokens":["set","age"],"id_body_hash":"c5a7c96c93a050b96324daeb12fab04f","id_same_identifier_list":[0,1,2,3,4,5,6,7,8,9],"option_correct":"setAge","options":["getRecoveryManagerInjector","setAge","parseSet","setCreate","failInFirstCall","onConstruct","setName"],"options_nlp":["get recovery manager injector","set age","parse set","set create","fail in first call","on construct","set name"],"options_random":["getRecoveryManagerInjector","onConstruct","failInFirstCall"],"options_tfidf":["setCreate","parseSet","setName"],"project_name":"wildfly","source_code_string":"public void setAge(int age) {\n this.age = age;\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"this","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":".","start_char":8,"line":1},{"index_id":3,"token_group":3,"text":"age","start_char":9,"line":1},{"index_id":4,"token_group":4,"text":"=","start_char":13,"line":1},{"index_id":5,"token_group":5,"text":"age","start_char":15,"line":1},{"index_id":6,"token_group":6,"text":";","start_char":18,"line":1},{"index_id":7,"token_group":7,"text":"}","start_char":0,"line":2}],"tokens_list":["{","this",".","age","=","age",";","}"],"uuid":"be035090e8bef4af9b9adb0c6ea6416d"},{"cap_original_tokens":["<SENTENCE_START>","{","return","<id>","","Column","Bitmask","<\/id>",";","}","<SENTENCE_END\/>"],"file_name":"DLFileVersionModelImpl.java","formatted_lines":["{"," return _columnBitmask;","}"],"function_name":"getColumnBitmask","function_name_tokens":["get","column","bitmask"],"id_body_hash":"83128eef9a0a668a92eaacb94f098f36","id_same_identifier_list":[0,1,2,3,3,3,4,5,6],"option_correct":"getColumnBitmask","options":["initStrutsActions","getColumnBitmask","getColumnNames","testPreferencesLocalization","getExpandoColumnPersistence","processColumn","setDDLRecordSetRequestAttribute"],"options_nlp":["init struts actions","get column bitmask","get column names","test preferences localization","get expando column persistence","process column","set ddl record set request attribute"],"options_random":["initStrutsActions","testPreferencesLocalization","setDDLRecordSetRequestAttribute"],"options_tfidf":["processColumn","getExpandoColumnPersistence","getColumnNames"],"project_name":"liferay-portal","source_code_string":"public long getColumnBitmask() {\n\t\treturn _columnBitmask;\n\t}","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"return","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"","start_char":10,"line":1},{"index_id":3,"token_group":3,"text":"Column","start_char":12,"line":1},{"index_id":4,"token_group":3,"text":"Bitmask","start_char":18,"line":1},{"index_id":5,"token_group":3,"text":";","start_char":25,"line":1},{"index_id":6,"token_group":4,"text":"}","start_char":0,"line":2}],"tokens_list":["{","return","","Column","Bitmask",";","}"],"uuid":"cc297ec29125c5c64bc981d85548c475"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","x","Frames","View","<\/id>","<id>","frames","View","<\/id>","=","new","<id>","x","Frames","View","<\/id>","(","<id>","my","Project","<\/id>",")",";","<id>","my","Views","<\/id>",".","<id>","add","<\/id>","(","<id>","frames","View","<\/id>",")",";","<id>","content","<\/id>","<id>","frames","Content","<\/id>","=","<id>","my","Ui","<\/id>",".","<id>","create","Content","<\/id>","(","<id>","debugger","Content","Info","<\/id>",".","<id>","frame","Content","<\/id>",",","<id>","frames","View","<\/id>",".","<id>","get","Main","Panel","<\/id>","(",")",",","<id>","x","Debugger","Bundle","<\/id>",".","<id>","message","<\/id>","(","\"debugger.session.tab.frames.title\"",")",",","<id>","all","Icons","<\/id>",".","<id>","debugger","<\/id>",".","<id>","frame","<\/id>",",","null",")",";","<id>","frames","Content","<\/id>",".","<id>","set","Closeable","<\/id>","(","false",")",";","return","<id>","frames","Content","<\/id>",";","}","<SENTENCE_END\/>"],"file_name":"XDebugSessionTab.java","formatted_lines":["{"," XFramesView framesView = new XFramesView(myProject);"," myViews.add(framesView);"," Content framesContent = myUi.createContent(DebuggerContentInfo.FRAME_CONTENT,"," framesView.getMainPanel(),"," XDebuggerBundle.message(\"debugger.session.tab.frames.title\"),"," AllIcons.Debugger.Frame, null);"," framesContent.setCloseable(false);"," return framesContent;","}"],"function_name":"createFramesContent","function_name_tokens":["create","frames","content"],"id_body_hash":"deb5b7befeea994b61359a74b631aed0","id_same_identifier_list":[0,1,2,2,2,3,3,4,5,6,6,6,7,8,8,9,10,11,11,12,13,14,15,15,16,17,18,19,19,20,21,21,22,23,23,24,25,25,25,26,27,27,28,29,29,30,31,31,31,32,33,34,35,35,35,36,37,38,39,40,41,42,42,43,44,45,46,47,48,49,50,51,51,52,53,53,54,55,56,57,58,59,59,60,61,62],"option_correct":"createFramesContent","options":["testClassWithMultipleConstructors","processStack","createAfterContent","createContent","createFramesContent","createBeforeContent","invokeLater"],"options_nlp":["test class with multiple constructors","process stack","create after content","create content","create frames content","create before content","invoke later"],"options_random":["testClassWithMultipleConstructors","processStack","invokeLater"],"options_tfidf":["createContent","createAfterContent","createBeforeContent"],"project_name":"intellij-community","source_code_string":"@NotNull\n private Content createFramesContent() {\n XFramesView framesView = new XFramesView(myProject);\n myViews.add(framesView);\n Content framesContent = myUi.createContent(DebuggerContentInfo.FRAME_CONTENT, framesView.getMainPanel(),\n XDebuggerBundle.message(\"debugger.session.tab.frames.title\"), AllIcons.Debugger.Frame, null);\n framesContent.setCloseable(false);\n return framesContent;\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"x","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"Frames","start_char":5,"line":1},{"index_id":3,"token_group":2,"text":"View","start_char":11,"line":1},{"index_id":4,"token_group":2,"text":"frames","start_char":16,"line":1},{"index_id":5,"token_group":3,"text":"View","start_char":22,"line":1},{"index_id":6,"token_group":3,"text":"=","start_char":27,"line":1},{"index_id":7,"token_group":4,"text":"new","start_char":29,"line":1},{"index_id":8,"token_group":5,"text":"x","start_char":33,"line":1},{"index_id":9,"token_group":6,"text":"Frames","start_char":34,"line":1},{"index_id":10,"token_group":6,"text":"View","start_char":40,"line":1},{"index_id":11,"token_group":6,"text":"(","start_char":44,"line":1},{"index_id":12,"token_group":7,"text":"my","start_char":45,"line":1},{"index_id":13,"token_group":8,"text":"Project","start_char":47,"line":1},{"index_id":14,"token_group":8,"text":")","start_char":54,"line":1},{"index_id":15,"token_group":9,"text":";","start_char":55,"line":1},{"index_id":16,"token_group":10,"text":"my","start_char":4,"line":2},{"index_id":17,"token_group":11,"text":"Views","start_char":6,"line":2},{"index_id":18,"token_group":11,"text":".","start_char":11,"line":2},{"index_id":19,"token_group":12,"text":"add","start_char":12,"line":2},{"index_id":20,"token_group":13,"text":"(","start_char":15,"line":2},{"index_id":21,"token_group":14,"text":"frames","start_char":16,"line":2},{"index_id":22,"token_group":15,"text":"View","start_char":22,"line":2},{"index_id":23,"token_group":15,"text":")","start_char":26,"line":2},{"index_id":24,"token_group":16,"text":";","start_char":27,"line":2},{"index_id":25,"token_group":17,"text":"content","start_char":4,"line":3},{"index_id":26,"token_group":18,"text":"frames","start_char":12,"line":3},{"index_id":27,"token_group":19,"text":"Content","start_char":18,"line":3},{"index_id":28,"token_group":19,"text":"=","start_char":26,"line":3},{"index_id":29,"token_group":20,"text":"my","start_char":28,"line":3},{"index_id":30,"token_group":21,"text":"Ui","start_char":30,"line":3},{"index_id":31,"token_group":21,"text":".","start_char":32,"line":3},{"index_id":32,"token_group":22,"text":"create","start_char":33,"line":3},{"index_id":33,"token_group":23,"text":"Content","start_char":39,"line":3},{"index_id":34,"token_group":23,"text":"(","start_char":46,"line":3},{"index_id":35,"token_group":24,"text":"debugger","start_char":47,"line":3},{"index_id":36,"token_group":25,"text":"Content","start_char":55,"line":3},{"index_id":37,"token_group":25,"text":"Info","start_char":62,"line":3},{"index_id":38,"token_group":25,"text":".","start_char":66,"line":3},{"index_id":39,"token_group":26,"text":"frame","start_char":67,"line":3},{"index_id":40,"token_group":27,"text":"Content","start_char":73,"line":3},{"index_id":41,"token_group":27,"text":",","start_char":80,"line":3},{"index_id":42,"token_group":28,"text":"frames","start_char":28,"line":4},{"index_id":43,"token_group":29,"text":"View","start_char":34,"line":4},{"index_id":44,"token_group":29,"text":".","start_char":38,"line":4},{"index_id":45,"token_group":30,"text":"get","start_char":39,"line":4},{"index_id":46,"token_group":31,"text":"Main","start_char":42,"line":4},{"index_id":47,"token_group":31,"text":"Panel","start_char":46,"line":4},{"index_id":48,"token_group":31,"text":"(","start_char":51,"line":4},{"index_id":49,"token_group":32,"text":")","start_char":52,"line":4},{"index_id":50,"token_group":33,"text":",","start_char":53,"line":4},{"index_id":51,"token_group":34,"text":"x","start_char":28,"line":5},{"index_id":52,"token_group":35,"text":"Debugger","start_char":29,"line":5},{"index_id":53,"token_group":35,"text":"Bundle","start_char":37,"line":5},{"index_id":54,"token_group":35,"text":".","start_char":43,"line":5},{"index_id":55,"token_group":36,"text":"message","start_char":44,"line":5},{"index_id":56,"token_group":37,"text":"(","start_char":51,"line":5},{"index_id":57,"token_group":38,"text":"\"debugger.session.tab.frames.title\"","start_char":52,"line":5},{"index_id":58,"token_group":39,"text":")","start_char":87,"line":5},{"index_id":59,"token_group":40,"text":",","start_char":88,"line":5},{"index_id":60,"token_group":41,"text":"all","start_char":28,"line":6},{"index_id":61,"token_group":42,"text":"Icons","start_char":31,"line":6},{"index_id":62,"token_group":42,"text":".","start_char":36,"line":6},{"index_id":63,"token_group":43,"text":"debugger","start_char":37,"line":6},{"index_id":64,"token_group":44,"text":".","start_char":45,"line":6},{"index_id":65,"token_group":45,"text":"frame","start_char":46,"line":6},{"index_id":66,"token_group":46,"text":",","start_char":51,"line":6},{"index_id":67,"token_group":47,"text":"null","start_char":53,"line":6},{"index_id":68,"token_group":48,"text":")","start_char":57,"line":6},{"index_id":69,"token_group":49,"text":";","start_char":58,"line":6},{"index_id":70,"token_group":50,"text":"frames","start_char":4,"line":7},{"index_id":71,"token_group":51,"text":"Content","start_char":10,"line":7},{"index_id":72,"token_group":51,"text":".","start_char":17,"line":7},{"index_id":73,"token_group":52,"text":"set","start_char":18,"line":7},{"index_id":74,"token_group":53,"text":"Closeable","start_char":21,"line":7},{"index_id":75,"token_group":53,"text":"(","start_char":30,"line":7},{"index_id":76,"token_group":54,"text":"false","start_char":31,"line":7},{"index_id":77,"token_group":55,"text":")","start_char":36,"line":7},{"index_id":78,"token_group":56,"text":";","start_char":37,"line":7},{"index_id":79,"token_group":57,"text":"return","start_char":4,"line":8},{"index_id":80,"token_group":58,"text":"frames","start_char":11,"line":8},{"index_id":81,"token_group":59,"text":"Content","start_char":17,"line":8},{"index_id":82,"token_group":59,"text":";","start_char":24,"line":8},{"index_id":83,"token_group":60,"text":"}","start_char":0,"line":9}],"tokens_list":["{","x","Frames","View","frames","View","=","new","x","Frames","View","(","my","Project",")",";","my","Views",".","add","(","frames","View",")",";","content","frames","Content","=","my","Ui",".","create","Content","(","debugger","Content","Info",".","frame","Content",",","frames","View",".","get","Main","Panel","(",")",",","x","Debugger","Bundle",".","message","(","\"debugger.session.tab.frames.title\"",")",",","all","Icons",".","debugger",".","frame",",","null",")",";","frames","Content",".","set","Closeable","(","false",")",";","return","frames","Content",";","}"],"uuid":"44d7b9fc7d938788e201a67acb79476c"},{"cap_original_tokens":["<SENTENCE_START>","{","final","<id>","simple","Content","<\/id>","<id>","content","<\/id>","=","new","<id>","simple","Content","<\/id>","(","\"\"",")",";","<id>","content","<\/id>",".","<id>","set","Is","Empty","<\/id>","(","true",")",";","return","<id>","content","<\/id>",";","}","<SENTENCE_END\/>"],"file_name":"SimpleContent.java","formatted_lines":["{"," final SimpleContent content = new SimpleContent(\"\");"," content.setIsEmpty(true);"," return content;","}"],"function_name":"createEmpty","function_name_tokens":["create","empty"],"id_body_hash":"6cecd07d6fc0ac1fe4aea5416b6f4b4e","id_same_identifier_list":[0,1,2,3,3,4,5,6,7,7,8,9,10,11,12,13,14,14,14,15,16,17,18,19,20,21,22,23],"option_correct":"createEmpty","options":["forElement","createEmptyInstance","createEmptyPanel","findFiles","testFromClassInitializer","createEmptyJar","createEmpty"],"options_nlp":["for element","create empty instance","create empty panel","find files","test from class initializer","create empty jar","create empty"],"options_random":["forElement","findFiles","testFromClassInitializer"],"options_tfidf":["createEmptyInstance","createEmptyPanel","createEmptyJar"],"project_name":"intellij-community","source_code_string":"public static SimpleContent createEmpty() {\n final SimpleContent content = new SimpleContent(\"\");\n content.setIsEmpty(true);\n return content;\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"final","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"simple","start_char":10,"line":1},{"index_id":3,"token_group":3,"text":"Content","start_char":16,"line":1},{"index_id":4,"token_group":3,"text":"content","start_char":24,"line":1},{"index_id":5,"token_group":4,"text":"=","start_char":32,"line":1},{"index_id":6,"token_group":5,"text":"new","start_char":34,"line":1},{"index_id":7,"token_group":6,"text":"simple","start_char":38,"line":1},{"index_id":8,"token_group":7,"text":"Content","start_char":44,"line":1},{"index_id":9,"token_group":7,"text":"(","start_char":51,"line":1},{"index_id":10,"token_group":8,"text":"\"\"","start_char":52,"line":1},{"index_id":11,"token_group":9,"text":")","start_char":54,"line":1},{"index_id":12,"token_group":10,"text":";","start_char":55,"line":1},{"index_id":13,"token_group":11,"text":"content","start_char":4,"line":2},{"index_id":14,"token_group":12,"text":".","start_char":11,"line":2},{"index_id":15,"token_group":13,"text":"set","start_char":12,"line":2},{"index_id":16,"token_group":14,"text":"Is","start_char":15,"line":2},{"index_id":17,"token_group":14,"text":"Empty","start_char":17,"line":2},{"index_id":18,"token_group":14,"text":"(","start_char":22,"line":2},{"index_id":19,"token_group":15,"text":"true","start_char":23,"line":2},{"index_id":20,"token_group":16,"text":")","start_char":27,"line":2},{"index_id":21,"token_group":17,"text":";","start_char":28,"line":2},{"index_id":22,"token_group":18,"text":"return","start_char":4,"line":3},{"index_id":23,"token_group":19,"text":"content","start_char":11,"line":3},{"index_id":24,"token_group":20,"text":";","start_char":18,"line":3},{"index_id":25,"token_group":21,"text":"}","start_char":0,"line":4}],"tokens_list":["{","final","simple","Content","content","=","new","simple","Content","(","\"\"",")",";","content",".","set","Is","Empty","(","true",")",";","return","content",";","}"],"uuid":"196ad00c94d4ea0f7e0ba07156cf8f3c"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","","Persistence","<\/id>",".","<id>","count","By","Kaleo","Definition","Id","<\/id>","(","<id>","random","Test","Util","<\/id>",".","<id>","next","Long","<\/id>","(",")",")",";","<id>","","Persistence","<\/id>",".","<id>","count","By","Kaleo","Definition","Id","<\/id>","(","0L",")",";","}","<SENTENCE_END\/>"],"file_name":"KaleoActionPersistenceTest.java","formatted_lines":["{"," _persistence.countByKaleoDefinitionId(RandomTestUtil.nextLong());",""," _persistence.countByKaleoDefinitionId(0L);","}"],"function_name":"testCountByKaleoDefinitionId","function_name_tokens":["test","count","by","kaleo","definition","id"],"id_body_hash":"d8402057605d533be531acbd51c7442a","id_same_identifier_list":[0,1,2,2,3,4,4,4,4,4,5,6,6,6,7,8,8,9,10,11,12,13,13,14,15,15,15,15,15,16,17,18,19,20,21],"option_correct":"testCountByKaleoDefinitionId","options":["testCountByKaleoDefinitionId","setUser","getByKaleoDefinitionId_PrevAndNext","testFailedPortletExport","testCountByKaleoNodeId","testContainsShortArray","testCountByKaleoInstanceId"],"options_nlp":["test count by kaleo definition id","set user","get by kaleo definition id prev and next","test failed portlet export","test count by kaleo node id","test contains short array","test count by kaleo instance id"],"options_random":["testFailedPortletExport","setUser","testContainsShortArray"],"options_tfidf":["testCountByKaleoInstanceId","getByKaleoDefinitionId_PrevAndNext","testCountByKaleoNodeId"],"project_name":"liferay-portal","source_code_string":"@Test\n\tpublic void testCountByKaleoDefinitionId() throws Exception {\n\t\t_persistence.countByKaleoDefinitionId(RandomTestUtil.nextLong());\n\n\t\t_persistence.countByKaleoDefinitionId(0L);\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":"Persistence","start_char":5,"line":1},{"index_id":3,"token_group":2,"text":".","start_char":16,"line":1},{"index_id":4,"token_group":3,"text":"count","start_char":17,"line":1},{"index_id":5,"token_group":4,"text":"By","start_char":22,"line":1},{"index_id":6,"token_group":4,"text":"Kaleo","start_char":24,"line":1},{"index_id":7,"token_group":4,"text":"Definition","start_char":29,"line":1},{"index_id":8,"token_group":4,"text":"Id","start_char":39,"line":1},{"index_id":9,"token_group":4,"text":"(","start_char":41,"line":1},{"index_id":10,"token_group":5,"text":"random","start_char":42,"line":1},{"index_id":11,"token_group":6,"text":"Test","start_char":48,"line":1},{"index_id":12,"token_group":6,"text":"Util","start_char":52,"line":1},{"index_id":13,"token_group":6,"text":".","start_char":56,"line":1},{"index_id":14,"token_group":7,"text":"next","start_char":57,"line":1},{"index_id":15,"token_group":8,"text":"Long","start_char":61,"line":1},{"index_id":16,"token_group":8,"text":"(","start_char":65,"line":1},{"index_id":17,"token_group":9,"text":")","start_char":66,"line":1},{"index_id":18,"token_group":10,"text":")","start_char":67,"line":1},{"index_id":19,"token_group":11,"text":";","start_char":68,"line":1},{"index_id":20,"token_group":12,"text":"","start_char":69,"line":1},{"index_id":21,"token_group":13,"text":"Persistence","start_char":5,"line":3},{"index_id":22,"token_group":13,"text":".","start_char":16,"line":3},{"index_id":23,"token_group":14,"text":"count","start_char":17,"line":3},{"index_id":24,"token_group":15,"text":"By","start_char":22,"line":3},{"index_id":25,"token_group":15,"text":"Kaleo","start_char":24,"line":3},{"index_id":26,"token_group":15,"text":"Definition","start_char":29,"line":3},{"index_id":27,"token_group":15,"text":"Id","start_char":39,"line":3},{"index_id":28,"token_group":15,"text":"(","start_char":41,"line":3},{"index_id":29,"token_group":16,"text":"0L","start_char":42,"line":3},{"index_id":30,"token_group":17,"text":")","start_char":44,"line":3},{"index_id":31,"token_group":18,"text":";","start_char":45,"line":3},{"index_id":32,"token_group":19,"text":"}","start_char":0,"line":4}],"tokens_list":["{","","Persistence",".","count","By","Kaleo","Definition","Id","(","random","Test","Util",".","next","Long","(",")",")",";","","Persistence",".","count","By","Kaleo","Definition","Id","(","0L",")",";","}"],"uuid":"cdb9579fba149e087ccbf1f0e341655b"},{"cap_original_tokens":["<SENTENCE_START>","{","this",".","<id>","status","<\/id>","=","<id>","status","<\/id>",";","}","<SENTENCE_END\/>"],"file_name":"ProjectData.java","formatted_lines":["{"," this.status = status;","}"],"function_name":"setStatus","function_name_tokens":["set","status"],"id_body_hash":"277df803bbb1ad0577735cab10ec0b9b","id_same_identifier_list":[0,1,2,3,4,5,6,7,8,9],"option_correct":"setStatus","options":["setStatusBar","prepareTransformer","debug_reduce","setStatusAndError","setStatus","registerFileDescription","setStatusText"],"options_nlp":["set status bar","prepare transformer","debug reduce","set status and error","set status","register file description","set status text"],"options_random":["debug_reduce","registerFileDescription","prepareTransformer"],"options_tfidf":["setStatusBar","setStatusAndError","setStatusText"],"project_name":"intellij-community","source_code_string":"public void setStatus(com.intellij.tasks.mantis.model.ObjectRef status) {\n this.status = status;\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"this","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":".","start_char":8,"line":1},{"index_id":3,"token_group":3,"text":"status","start_char":9,"line":1},{"index_id":4,"token_group":4,"text":"=","start_char":16,"line":1},{"index_id":5,"token_group":5,"text":"status","start_char":18,"line":1},{"index_id":6,"token_group":6,"text":";","start_char":24,"line":1},{"index_id":7,"token_group":7,"text":"}","start_char":0,"line":2}],"tokens_list":["{","this",".","status","=","status",";","}"],"uuid":"aec53611a00eca741ea0ab88db52c819"},{"cap_original_tokens":["<SENTENCE_START>","{","this",".","<id>","timestamp","<\/id>","=","<id>","timestamp","<\/id>",";","<id>","set","Timestamp","Is","Set","<\/id>","(","true",")",";","return","this",";","}","<SENTENCE_END\/>"],"file_name":"Deletion.java","formatted_lines":["{"," this.timestamp = timestamp;"," setTimestampIsSet(true);"," return this;","}"],"function_name":"setTimestamp","function_name_tokens":["set","timestamp"],"id_body_hash":"c77fe497673fc2a6b36e5db6ebceee1d","id_same_identifier_list":[0,1,2,3,4,5,6,7,8,8,8,8,9,10,11,12,13,14,15,16,17],"option_correct":"setTimestamp","options":["setTimestamp","isTimestampSet","stop","isSetTimestamp","setTimestampIsSet","getOnlyRowUnfiltered","test"],"options_nlp":["set timestamp","is timestamp set","stop","is set timestamp","set timestamp is set","get only row unfiltered","test"],"options_random":["test","stop","getOnlyRowUnfiltered"],"options_tfidf":["setTimestampIsSet","isTimestampSet","isSetTimestamp"],"project_name":"cassandra","source_code_string":"public Deletion setTimestamp(long timestamp) {\n this.timestamp = timestamp;\n setTimestampIsSet(true);\n return this;\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"this","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":".","start_char":8,"line":1},{"index_id":3,"token_group":3,"text":"timestamp","start_char":9,"line":1},{"index_id":4,"token_group":4,"text":"=","start_char":19,"line":1},{"index_id":5,"token_group":5,"text":"timestamp","start_char":21,"line":1},{"index_id":6,"token_group":6,"text":";","start_char":30,"line":1},{"index_id":7,"token_group":7,"text":"set","start_char":4,"line":2},{"index_id":8,"token_group":8,"text":"Timestamp","start_char":7,"line":2},{"index_id":9,"token_group":8,"text":"Is","start_char":16,"line":2},{"index_id":10,"token_group":8,"text":"Set","start_char":18,"line":2},{"index_id":11,"token_group":8,"text":"(","start_char":21,"line":2},{"index_id":12,"token_group":9,"text":"true","start_char":22,"line":2},{"index_id":13,"token_group":10,"text":")","start_char":26,"line":2},{"index_id":14,"token_group":11,"text":";","start_char":27,"line":2},{"index_id":15,"token_group":12,"text":"return","start_char":4,"line":3},{"index_id":16,"token_group":13,"text":"this","start_char":11,"line":3},{"index_id":17,"token_group":14,"text":";","start_char":15,"line":3},{"index_id":18,"token_group":15,"text":"}","start_char":0,"line":4}],"tokens_list":["{","this",".","timestamp","=","timestamp",";","set","Timestamp","Is","Set","(","true",")",";","return","this",";","}"],"uuid":"65e5b264a8e3ad49282985280c2fff9c"},{"cap_original_tokens":["<SENTENCE_START>","{","return","<id>","conf","<\/id>",".","<id>","get","<\/id>","(","<id>","db","Configuration","<\/id>",".","<id>","input","Bounding","Query","<\/id>",")",";","}","<SENTENCE_END\/>"],"file_name":"DBConfiguration.java","formatted_lines":["{"," return conf.get(DBConfiguration.INPUT_BOUNDING_QUERY);","}"],"function_name":"getInputBoundingQuery","function_name_tokens":["get","input","bounding","query"],"id_body_hash":"bcac732125b6b0d324e86360b0710829","id_same_identifier_list":[0,1,2,3,4,5,6,7,7,8,9,9,9,10,11,12,13],"option_correct":"getInputBoundingQuery","options":["getInputBoundingQuery","getInputCountQuery","getInputQuery","getBoundingValsQuery","getNumFinishedMaps","pipeline_Fi_44","testVerifyMD5FileGood"],"options_nlp":["get input bounding query","get input count query","get input query","get bounding vals query","get num finished maps","pipeline fi 44","test verify md 5 file good"],"options_random":["getNumFinishedMaps","pipeline_Fi_44","testVerifyMD5FileGood"],"options_tfidf":["getInputQuery","getInputCountQuery","getBoundingValsQuery"],"project_name":"hadoop-common","source_code_string":"public String getInputBoundingQuery() {\n return conf.get(DBConfiguration.INPUT_BOUNDING_QUERY);\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":"conf","start_char":11,"line":1},{"index_id":3,"token_group":3,"text":".","start_char":15,"line":1},{"index_id":4,"token_group":4,"text":"get","start_char":16,"line":1},{"index_id":5,"token_group":5,"text":"(","start_char":19,"line":1},{"index_id":6,"token_group":6,"text":"db","start_char":20,"line":1},{"index_id":7,"token_group":7,"text":"Configuration","start_char":22,"line":1},{"index_id":8,"token_group":7,"text":".","start_char":35,"line":1},{"index_id":9,"token_group":8,"text":"input","start_char":36,"line":1},{"index_id":10,"token_group":9,"text":"Bounding","start_char":42,"line":1},{"index_id":11,"token_group":9,"text":"Query","start_char":51,"line":1},{"index_id":12,"token_group":9,"text":")","start_char":56,"line":1},{"index_id":13,"token_group":10,"text":";","start_char":57,"line":1},{"index_id":14,"token_group":11,"text":"}","start_char":0,"line":2}],"tokens_list":["{","return","conf",".","get","(","db","Configuration",".","input","Bounding","Query",")",";","}"],"uuid":"feba2f20a14d26479da01057d4d15a4e"},{"cap_original_tokens":["<SENTENCE_START>","{","this",".","<id>","counter","Local","Service","<\/id>","=","<id>","counter","Local","Service","<\/id>",";","}","<SENTENCE_END\/>"],"file_name":"ExportImportServiceBaseImpl.java","formatted_lines":["{"," this.counterLocalService = counterLocalService;","}"],"function_name":"setCounterLocalService","function_name_tokens":["set","counter","local","service"],"id_body_hash":"4360e785cb9ede2206e097b85b2a7bb2","id_same_identifier_list":[0,1,2,3,4,4,4,5,6,6,6,7,8,9],"option_correct":"setCounterLocalService","options":["getFilterConfig","setCounterLocalService","getCounterLocalService","getSearchResults","getSocialActivityCounterLocalService","setSocialActivityCounterLocalService","setServiceContext"],"options_nlp":["get filter config","set counter local service","get counter local service","get search results","get social activity counter local service","set social activity counter local service","set service context"],"options_random":["getFilterConfig","setServiceContext","getSearchResults"],"options_tfidf":["setSocialActivityCounterLocalService","getSocialActivityCounterLocalService","getCounterLocalService"],"project_name":"liferay-portal","source_code_string":"public void setCounterLocalService(\n\t\tcom.liferay.counter.service.CounterLocalService counterLocalService) {\n\t\tthis.counterLocalService = counterLocalService;\n\t}","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"this","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":".","start_char":8,"line":1},{"index_id":3,"token_group":3,"text":"counter","start_char":9,"line":1},{"index_id":4,"token_group":4,"text":"Local","start_char":16,"line":1},{"index_id":5,"token_group":4,"text":"Service","start_char":21,"line":1},{"index_id":6,"token_group":4,"text":"=","start_char":29,"line":1},{"index_id":7,"token_group":5,"text":"counter","start_char":31,"line":1},{"index_id":8,"token_group":6,"text":"Local","start_char":38,"line":1},{"index_id":9,"token_group":6,"text":"Service","start_char":43,"line":1},{"index_id":10,"token_group":6,"text":";","start_char":50,"line":1},{"index_id":11,"token_group":7,"text":"}","start_char":0,"line":2}],"tokens_list":["{","this",".","counter","Local","Service","=","counter","Local","Service",";","}"],"uuid":"5c9704ccd9a17661dd2926f3bd081382"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","dynamic","Query","<\/id>","<id>","dynamic","Query","<\/id>","=","<id>","dynamic","Query","Factory","Util","<\/id>",".","<id>","for","Class","<\/id>","(","<id>","layout","Branch","<\/id>",".","class",",","<id>","","Dynamic","Query","Class","Loader","<\/id>",")",";","<id>","dynamic","Query","<\/id>",".","<id>","set","Projection","<\/id>","(","<id>","projection","Factory","Util","<\/id>",".","<id>","property","<\/id>","(","\"layoutBranchId\"",")",")",";","<id>","dynamic","Query","<\/id>",".","<id>","add","<\/id>","(","<id>","restrictions","Factory","Util","<\/id>",".","<id>","in","<\/id>","(","\"layoutBranchId\"",",","new","<id>","object","<\/id>","[","]","{","<id>","random","Test","Util","<\/id>",".","<id>","next","Long","<\/id>","(",")","}",")",")",";","<id>","list","<\/id>","<","<id>","object","<\/id>",">","<id>","result","<\/id>","=","<id>","","Persistence","<\/id>",".","<id>","find","With","Dynamic","Query","<\/id>","(","<id>","dynamic","Query","<\/id>",")",";","<id>","assert","<\/id>",".","<id>","assert","Equals","<\/id>","(","0",",","<id>","result","<\/id>",".","<id>","size","<\/id>","(",")",")",";","}","<SENTENCE_END\/>"],"file_name":"LayoutBranchPersistenceTest.java","formatted_lines":["{"," DynamicQuery dynamicQuery = DynamicQueryFactoryUtil.forClass(LayoutBranch.class,"," _dynamicQueryClassLoader);",""," dynamicQuery.setProjection(ProjectionFactoryUtil.property("," \"layoutBranchId\"));",""," dynamicQuery.add(RestrictionsFactoryUtil.in(\"layoutBranchId\","," new Object[] { RandomTestUtil.nextLong() }));",""," List<Object> result = _persistence.findWithDynamicQuery(dynamicQuery);",""," Assert.assertEquals(0, result.size());","}"],"function_name":"testDynamicQueryByProjectionMissing","function_name_tokens":["test","dynamic","query","by","projection","missing"],"id_body_hash":"d3f3f3e52a5c813c97bd8b592d654dc7","id_same_identifier_list":[0,1,2,2,3,3,4,5,5,5,5,6,7,7,8,9,9,10,11,12,13,13,13,13,13,14,15,16,16,17,18,18,19,20,20,20,21,22,23,24,25,26,27,28,28,29,30,31,32,32,32,33,34,35,36,37,38,39,40,41,42,43,43,43,44,45,45,46,47,48,49,50,51,52,53,54,55,56,57,58,58,59,60,60,60,60,61,62,62,63,64,65,66,67,67,68,69,70,71,72,73,74,75,76,77,78,79],"option_correct":"testDynamicQueryByProjectionMissing","options":["testDynamicQueryByProjectionExisting","getShoppingItemPricePersistence","testQueryByG_F_C","testDynamicQueryByProjectionMissing","getByG_A_NotST_PrevAndNext","before","testDynamicQueryByPrimaryKeyMissing"],"options_nlp":["test dynamic query by projection existing","get shopping item price persistence","test query by g f c","test dynamic query by projection missing","get by g a not st prev and next","before","test dynamic query by primary key missing"],"options_random":["getByG_A_NotST_PrevAndNext","before","getShoppingItemPricePersistence"],"options_tfidf":["testQueryByG_F_C","testDynamicQueryByPrimaryKeyMissing","testDynamicQueryByProjectionExisting"],"project_name":"liferay-portal","source_code_string":"@Test\n\tpublic void testDynamicQueryByProjectionMissing() throws Exception {\n\t\tDynamicQuery dynamicQuery = DynamicQueryFactoryUtil.forClass(LayoutBranch.class,\n\t\t\t\t_dynamicQueryClassLoader);\n\n\t\tdynamicQuery.setProjection(ProjectionFactoryUtil.property(\n\t\t\t\t\"layoutBranchId\"));\n\n\t\tdynamicQuery.add(RestrictionsFactoryUtil.in(\"layoutBranchId\",\n\t\t\t\tnew Object[] { RandomTestUtil.nextLong() }));\n\n\t\tList<Object> result = _persistence.findWithDynamicQuery(dynamicQuery);\n\n\t\tAssert.assertEquals(0, result.size());\n\t}","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"dynamic","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"Query","start_char":11,"line":1},{"index_id":3,"token_group":2,"text":"dynamic","start_char":17,"line":1},{"index_id":4,"token_group":3,"text":"Query","start_char":24,"line":1},{"index_id":5,"token_group":3,"text":"=","start_char":30,"line":1},{"index_id":6,"token_group":4,"text":"dynamic","start_char":32,"line":1},{"index_id":7,"token_group":5,"text":"Query","start_char":39,"line":1},{"index_id":8,"token_group":5,"text":"Factory","start_char":44,"line":1},{"index_id":9,"token_group":5,"text":"Util","start_char":51,"line":1},{"index_id":10,"token_group":5,"text":".","start_char":55,"line":1},{"index_id":11,"token_group":6,"text":"for","start_char":56,"line":1},{"index_id":12,"token_group":7,"text":"Class","start_char":59,"line":1},{"index_id":13,"token_group":7,"text":"(","start_char":64,"line":1},{"index_id":14,"token_group":8,"text":"layout","start_char":65,"line":1},{"index_id":15,"token_group":9,"text":"Branch","start_char":71,"line":1},{"index_id":16,"token_group":9,"text":".","start_char":77,"line":1},{"index_id":17,"token_group":10,"text":"class","start_char":78,"line":1},{"index_id":18,"token_group":11,"text":",","start_char":83,"line":1},{"index_id":19,"token_group":12,"text":"","start_char":84,"line":1},{"index_id":20,"token_group":13,"text":"Dynamic","start_char":13,"line":2},{"index_id":21,"token_group":13,"text":"Query","start_char":20,"line":2},{"index_id":22,"token_group":13,"text":"Class","start_char":25,"line":2},{"index_id":23,"token_group":13,"text":"Loader","start_char":30,"line":2},{"index_id":24,"token_group":13,"text":")","start_char":36,"line":2},{"index_id":25,"token_group":14,"text":";","start_char":37,"line":2},{"index_id":26,"token_group":15,"text":"dynamic","start_char":4,"line":4},{"index_id":27,"token_group":16,"text":"Query","start_char":11,"line":4},{"index_id":28,"token_group":16,"text":".","start_char":16,"line":4},{"index_id":29,"token_group":17,"text":"set","start_char":17,"line":4},{"index_id":30,"token_group":18,"text":"Projection","start_char":20,"line":4},{"index_id":31,"token_group":18,"text":"(","start_char":30,"line":4},{"index_id":32,"token_group":19,"text":"projection","start_char":31,"line":4},{"index_id":33,"token_group":20,"text":"Factory","start_char":41,"line":4},{"index_id":34,"token_group":20,"text":"Util","start_char":48,"line":4},{"index_id":35,"token_group":20,"text":".","start_char":52,"line":4},{"index_id":36,"token_group":21,"text":"property","start_char":53,"line":4},{"index_id":37,"token_group":22,"text":"(","start_char":61,"line":4},{"index_id":38,"token_group":23,"text":"\"layoutBranchId\"","start_char":35,"line":5},{"index_id":39,"token_group":24,"text":")","start_char":51,"line":5},{"index_id":40,"token_group":25,"text":")","start_char":52,"line":5},{"index_id":41,"token_group":26,"text":";","start_char":53,"line":5},{"index_id":42,"token_group":27,"text":"dynamic","start_char":4,"line":7},{"index_id":43,"token_group":28,"text":"Query","start_char":11,"line":7},{"index_id":44,"token_group":28,"text":".","start_char":16,"line":7},{"index_id":45,"token_group":29,"text":"add","start_char":17,"line":7},{"index_id":46,"token_group":30,"text":"(","start_char":20,"line":7},{"index_id":47,"token_group":31,"text":"restrictions","start_char":21,"line":7},{"index_id":48,"token_group":32,"text":"Factory","start_char":33,"line":7},{"index_id":49,"token_group":32,"text":"Util","start_char":40,"line":7},{"index_id":50,"token_group":32,"text":".","start_char":44,"line":7},{"index_id":51,"token_group":33,"text":"in","start_char":45,"line":7},{"index_id":52,"token_group":34,"text":"(","start_char":47,"line":7},{"index_id":53,"token_group":35,"text":"\"layoutBranchId\"","start_char":48,"line":7},{"index_id":54,"token_group":36,"text":",","start_char":64,"line":7},{"index_id":55,"token_group":37,"text":"new","start_char":4,"line":8},{"index_id":56,"token_group":38,"text":"object","start_char":8,"line":8},{"index_id":57,"token_group":39,"text":"[","start_char":14,"line":8},{"index_id":58,"token_group":40,"text":"]","start_char":15,"line":8},{"index_id":59,"token_group":41,"text":"{","start_char":17,"line":8},{"index_id":60,"token_group":42,"text":"random","start_char":19,"line":8},{"index_id":61,"token_group":43,"text":"Test","start_char":25,"line":8},{"index_id":62,"token_group":43,"text":"Util","start_char":29,"line":8},{"index_id":63,"token_group":43,"text":".","start_char":33,"line":8},{"index_id":64,"token_group":44,"text":"next","start_char":34,"line":8},{"index_id":65,"token_group":45,"text":"Long","start_char":38,"line":8},{"index_id":66,"token_group":45,"text":"(","start_char":42,"line":8},{"index_id":67,"token_group":46,"text":")","start_char":43,"line":8},{"index_id":68,"token_group":47,"text":"}","start_char":45,"line":8},{"index_id":69,"token_group":48,"text":")","start_char":46,"line":8},{"index_id":70,"token_group":49,"text":")","start_char":47,"line":8},{"index_id":71,"token_group":50,"text":";","start_char":48,"line":8},{"index_id":72,"token_group":51,"text":"list","start_char":4,"line":10},{"index_id":73,"token_group":52,"text":"<","start_char":8,"line":10},{"index_id":74,"token_group":53,"text":"object","start_char":9,"line":10},{"index_id":75,"token_group":54,"text":">","start_char":15,"line":10},{"index_id":76,"token_group":55,"text":"result","start_char":17,"line":10},{"index_id":77,"token_group":56,"text":"=","start_char":24,"line":10},{"index_id":78,"token_group":57,"text":"","start_char":25,"line":10},{"index_id":79,"token_group":58,"text":"Persistence","start_char":27,"line":10},{"index_id":80,"token_group":58,"text":".","start_char":38,"line":10},{"index_id":81,"token_group":59,"text":"find","start_char":39,"line":10},{"index_id":82,"token_group":60,"text":"With","start_char":43,"line":10},{"index_id":83,"token_group":60,"text":"Dynamic","start_char":47,"line":10},{"index_id":84,"token_group":60,"text":"Query","start_char":54,"line":10},{"index_id":85,"token_group":60,"text":"(","start_char":59,"line":10},{"index_id":86,"token_group":61,"text":"dynamic","start_char":60,"line":10},{"index_id":87,"token_group":62,"text":"Query","start_char":67,"line":10},{"index_id":88,"token_group":62,"text":")","start_char":72,"line":10},{"index_id":89,"token_group":63,"text":";","start_char":73,"line":10},{"index_id":90,"token_group":64,"text":"assert","start_char":4,"line":12},{"index_id":91,"token_group":65,"text":".","start_char":10,"line":12},{"index_id":92,"token_group":66,"text":"assert","start_char":11,"line":12},{"index_id":93,"token_group":67,"text":"Equals","start_char":17,"line":12},{"index_id":94,"token_group":67,"text":"(","start_char":23,"line":12},{"index_id":95,"token_group":68,"text":"0","start_char":24,"line":12},{"index_id":96,"token_group":69,"text":",","start_char":25,"line":12},{"index_id":97,"token_group":70,"text":"result","start_char":27,"line":12},{"index_id":98,"token_group":71,"text":".","start_char":33,"line":12},{"index_id":99,"token_group":72,"text":"size","start_char":34,"line":12},{"index_id":100,"token_group":73,"text":"(","start_char":38,"line":12},{"index_id":101,"token_group":74,"text":")","start_char":39,"line":12},{"index_id":102,"token_group":75,"text":")","start_char":40,"line":12},{"index_id":103,"token_group":76,"text":";","start_char":41,"line":12},{"index_id":104,"token_group":77,"text":"}","start_char":0,"line":13}],"tokens_list":["{","dynamic","Query","dynamic","Query","=","dynamic","Query","Factory","Util",".","for","Class","(","layout","Branch",".","class",",","","Dynamic","Query","Class","Loader",")",";","dynamic","Query",".","set","Projection","(","projection","Factory","Util",".","property","(","\"layoutBranchId\"",")",")",";","dynamic","Query",".","add","(","restrictions","Factory","Util",".","in","(","\"layoutBranchId\"",",","new","object","[","]","{","random","Test","Util",".","next","Long","(",")","}",")",")",";","list","<","object",">","result","=","","Persistence",".","find","With","Dynamic","Query","(","dynamic","Query",")",";","assert",".","assert","Equals","(","0",",","result",".","size","(",")",")",";","}"],"uuid":"590aaf8b60b1f03812c6eba77a3b6bdd"},{"cap_original_tokens":["<SENTENCE_START>","{","return","<id>","files","Cached","<\/id>",";","}","<SENTENCE_END\/>"],"file_name":"CachePoolStats.java","formatted_lines":["{"," return filesCached;","}"],"function_name":"getFilesCached","function_name_tokens":["get","files","cached"],"id_body_hash":"83ea4c1f352e7c540eb3a6611711ed3f","id_same_identifier_list":[0,1,2,3,3,4,5,6],"option_correct":"getFilesCached","options":["testCreateWithPartQualPathFails","getBytesCached","getCachedHosts","testMkdirRecursiveWithNonExistingDir","setClient","getFilesCached","getCached"],"options_nlp":["test create with part qual path fails","get bytes cached","get cached hosts","test mkdir recursive with non existing dir","set client","get files cached","get cached"],"options_random":["testCreateWithPartQualPathFails","testMkdirRecursiveWithNonExistingDir","setClient"],"options_tfidf":["getCached","getBytesCached","getCachedHosts"],"project_name":"hadoop-common","source_code_string":"public long getFilesCached() {\n return filesCached;\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":"files","start_char":11,"line":1},{"index_id":3,"token_group":3,"text":"Cached","start_char":16,"line":1},{"index_id":4,"token_group":3,"text":";","start_char":22,"line":1},{"index_id":5,"token_group":4,"text":"}","start_char":0,"line":2}],"tokens_list":["{","return","files","Cached",";","}"],"uuid":"71ff20a24c76369564c0aaf64c4526ed"},{"cap_original_tokens":["<SENTENCE_START>","{","return","<id>","my","Text","<\/id>",";","}","<SENTENCE_END\/>"],"file_name":"DefaultTemplate.java","formatted_lines":["{"," return myText;","}"],"function_name":"getText","function_name_tokens":["get","text"],"id_body_hash":"d3f2ba116dd7824ec8fedaf2f7379236","id_same_identifier_list":[0,1,2,3,3,4,5,6],"option_correct":"getText","options":["removeRegexpPatterns","clearCaretThread","getText1","setCanGroupByChangeList","getText","getTextFile","getText2"],"options_nlp":["remove regexp patterns","clear caret thread","get text 1","set can group by change list","get text","get text file","get text 2"],"options_random":["removeRegexpPatterns","clearCaretThread","setCanGroupByChangeList"],"options_tfidf":["getText2","getTextFile","getText1"],"project_name":"intellij-community","source_code_string":"@NotNull\n public String getText() {\n return myText;\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":"Text","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","Text",";","}"],"uuid":"7d74d75a54fdb0a6f19b1631e1538906"},{"cap_original_tokens":["<SENTENCE_START>","{","return","<id>","dummy","<\/id>","(",")",";","}","<SENTENCE_END\/>"],"file_name":"NoOpLoggingSystem.java","formatted_lines":["{"," return dummy();","}"],"function_name":"snapshot","function_name_tokens":["snapshot"],"id_body_hash":"250b8118476ee20c9b41cb15060c4e72","id_same_identifier_list":[0,1,2,3,4,5,6,7,8],"option_correct":"snapshot","options":["findUniqueSnapshotVersion","resolveUniqueSnapshotDependency","checkCanPublish","onNonError","withSearchUpwardsFlagSet","isNonUniqueSnapshot","snapshot"],"options_nlp":["find unique snapshot version","resolve unique snapshot dependency","check can publish","on non error","with search upwards flag set","is non unique snapshot","snapshot"],"options_random":["checkCanPublish","onNonError","withSearchUpwardsFlagSet"],"options_tfidf":["isNonUniqueSnapshot","findUniqueSnapshotVersion","resolveUniqueSnapshotDependency"],"project_name":"gradle","source_code_string":"public Snapshot snapshot() {\n return dummy();\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":"dummy","start_char":11,"line":1},{"index_id":3,"token_group":3,"text":"(","start_char":16,"line":1},{"index_id":4,"token_group":4,"text":")","start_char":17,"line":1},{"index_id":5,"token_group":5,"text":";","start_char":18,"line":1},{"index_id":6,"token_group":6,"text":"}","start_char":0,"line":2}],"tokens_list":["{","return","dummy","(",")",";","}"],"uuid":"89084737f0db8df982baa982e60a290e"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","inet","Socket","Address","<\/id>","<id>","addr","<\/id>","=","new","<id>","inet","Socket","Address","<\/id>","(","0",")",";","<id>","configuration","<\/id>","<id>","conf","<\/id>","=","new","<id>","configuration","<\/id>","(",")",";","<id>","localization","Protocol","<\/id>","<id>","instance","<\/id>","=","new","<id>","localization","Protocol","Test","Impl","<\/id>","(",")",";","<id>","server","<\/id>","<id>","server","<\/id>","=","null",";","try","{","<id>","server","<\/id>","=","<id>","rpc","Server","Factory","Pb","Impl","<\/id>",".","<id>","get","<\/id>","(",")",".","<id>","get","Server","<\/id>","(","<id>","localization","Protocol","<\/id>",".","class",",","<id>","instance","<\/id>",",","<id>","addr","<\/id>",",","<id>","conf","<\/id>",",","null",",","1",")",";","<id>","server","<\/id>",".","<id>","start","<\/id>","(",")",";","}","catch","(","<id>","yarn","Runtime","Exception","<\/id>","<id>","e","<\/id>",")","{","<id>","e","<\/id>",".","<id>","print","Stack","Trace","<\/id>","(",")",";","<id>","assert","<\/id>",".","<id>","fail","<\/id>","(","\"Failed to create server\"",")",";","}","finally","{","if","(","<id>","server","<\/id>","!=","null",")","{","<id>","server","<\/id>",".","<id>","stop","<\/id>","(",")",";","}","}","}","<SENTENCE_END\/>"],"file_name":"TestRPCFactories.java","formatted_lines":["{"," InetSocketAddress addr = new InetSocketAddress(0);"," Configuration conf = new Configuration();"," LocalizationProtocol instance = new LocalizationProtocolTestImpl();"," Server server = null;"," try"," {"," server ="," RpcServerFactoryPBImpl.get().getServer("," LocalizationProtocol.class, instance, addr, conf, null, 1);"," server.start();"," }"," catch (YarnRuntimeException e)"," {"," e.printStackTrace();"," Assert.fail(\"Failed to create server\");"," }"," finally"," {"," if (server != null)"," {"," server.stop();"," }"," }","}"],"function_name":"testPbServerFactory","function_name_tokens":["test","pb","server","factory"],"id_body_hash":"593495301a6a9a7fcb76933768aaad6f","id_same_identifier_list":[0,1,2,2,2,3,4,5,6,6,6,7,8,9,10,11,12,13,14,15,16,17,18,19,19,20,21,22,23,23,23,23,24,25,26,27,28,29,30,31,32,33,34,35,36,36,36,36,36,37,38,39,40,41,42,42,43,44,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,68,68,69,70,71,72,73,74,74,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],"option_correct":"testPbServerFactory","options":["testPbRecordFactory","testFactory","setIsJavaRecordReader","testLocalFileCorruption","testPbClientFactory","testPbServerFactory","dumpTreeRecursively"],"options_nlp":["test pb record factory","test factory","set is java record reader","test local file corruption","test pb client factory","test pb server factory","dump tree recursively"],"options_random":["setIsJavaRecordReader","dumpTreeRecursively","testLocalFileCorruption"],"options_tfidf":["testPbClientFactory","testPbRecordFactory","testFactory"],"project_name":"hadoop-common","source_code_string":"private void testPbServerFactory() {\n InetSocketAddress addr = new InetSocketAddress(0);\n Configuration conf = new Configuration();\n LocalizationProtocol instance = new LocalizationProtocolTestImpl();\n Server server = null;\n try {\n server = \n RpcServerFactoryPBImpl.get().getServer(\n LocalizationProtocol.class, instance, addr, conf, null, 1);\n server.start();\n } catch (YarnRuntimeException e) {\n e.printStackTrace();\n Assert.fail(\"Failed to create server\");\n } finally {\n if (server != null) {\n server.stop();\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":"inet","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"Socket","start_char":8,"line":1},{"index_id":3,"token_group":2,"text":"Address","start_char":14,"line":1},{"index_id":4,"token_group":2,"text":"addr","start_char":22,"line":1},{"index_id":5,"token_group":3,"text":"=","start_char":27,"line":1},{"index_id":6,"token_group":4,"text":"new","start_char":29,"line":1},{"index_id":7,"token_group":5,"text":"inet","start_char":33,"line":1},{"index_id":8,"token_group":6,"text":"Socket","start_char":37,"line":1},{"index_id":9,"token_group":6,"text":"Address","start_char":43,"line":1},{"index_id":10,"token_group":6,"text":"(","start_char":50,"line":1},{"index_id":11,"token_group":7,"text":"0","start_char":51,"line":1},{"index_id":12,"token_group":8,"text":")","start_char":52,"line":1},{"index_id":13,"token_group":9,"text":";","start_char":53,"line":1},{"index_id":14,"token_group":10,"text":"configuration","start_char":4,"line":2},{"index_id":15,"token_group":11,"text":"conf","start_char":18,"line":2},{"index_id":16,"token_group":12,"text":"=","start_char":23,"line":2},{"index_id":17,"token_group":13,"text":"new","start_char":25,"line":2},{"index_id":18,"token_group":14,"text":"configuration","start_char":29,"line":2},{"index_id":19,"token_group":15,"text":"(","start_char":42,"line":2},{"index_id":20,"token_group":16,"text":")","start_char":43,"line":2},{"index_id":21,"token_group":17,"text":";","start_char":44,"line":2},{"index_id":22,"token_group":18,"text":"localization","start_char":4,"line":3},{"index_id":23,"token_group":19,"text":"Protocol","start_char":16,"line":3},{"index_id":24,"token_group":19,"text":"instance","start_char":25,"line":3},{"index_id":25,"token_group":20,"text":"=","start_char":34,"line":3},{"index_id":26,"token_group":21,"text":"new","start_char":36,"line":3},{"index_id":27,"token_group":22,"text":"localization","start_char":40,"line":3},{"index_id":28,"token_group":23,"text":"Protocol","start_char":52,"line":3},{"index_id":29,"token_group":23,"text":"Test","start_char":60,"line":3},{"index_id":30,"token_group":23,"text":"Impl","start_char":64,"line":3},{"index_id":31,"token_group":23,"text":"(","start_char":68,"line":3},{"index_id":32,"token_group":24,"text":")","start_char":69,"line":3},{"index_id":33,"token_group":25,"text":";","start_char":70,"line":3},{"index_id":34,"token_group":26,"text":"server","start_char":4,"line":4},{"index_id":35,"token_group":27,"text":"server","start_char":11,"line":4},{"index_id":36,"token_group":28,"text":"=","start_char":18,"line":4},{"index_id":37,"token_group":29,"text":"null","start_char":20,"line":4},{"index_id":38,"token_group":30,"text":";","start_char":24,"line":4},{"index_id":39,"token_group":31,"text":"try","start_char":4,"line":5},{"index_id":40,"token_group":32,"text":"{","start_char":4,"line":6},{"index_id":41,"token_group":33,"text":"server","start_char":8,"line":7},{"index_id":42,"token_group":34,"text":"=","start_char":15,"line":7},{"index_id":43,"token_group":35,"text":"rpc","start_char":12,"line":8},{"index_id":44,"token_group":36,"text":"Server","start_char":15,"line":8},{"index_id":45,"token_group":36,"text":"Factory","start_char":21,"line":8},{"index_id":46,"token_group":36,"text":"Pb","start_char":28,"line":8},{"index_id":47,"token_group":36,"text":"Impl","start_char":30,"line":8},{"index_id":48,"token_group":36,"text":".","start_char":34,"line":8},{"index_id":49,"token_group":37,"text":"get","start_char":35,"line":8},{"index_id":50,"token_group":38,"text":"(","start_char":38,"line":8},{"index_id":51,"token_group":39,"text":")","start_char":39,"line":8},{"index_id":52,"token_group":40,"text":".","start_char":40,"line":8},{"index_id":53,"token_group":41,"text":"get","start_char":41,"line":8},{"index_id":54,"token_group":42,"text":"Server","start_char":44,"line":8},{"index_id":55,"token_group":42,"text":"(","start_char":50,"line":8},{"index_id":56,"token_group":43,"text":"localization","start_char":16,"line":9},{"index_id":57,"token_group":44,"text":"Protocol","start_char":28,"line":9},{"index_id":58,"token_group":44,"text":".","start_char":36,"line":9},{"index_id":59,"token_group":45,"text":"class","start_char":37,"line":9},{"index_id":60,"token_group":46,"text":",","start_char":42,"line":9},{"index_id":61,"token_group":47,"text":"instance","start_char":44,"line":9},{"index_id":62,"token_group":48,"text":",","start_char":52,"line":9},{"index_id":63,"token_group":49,"text":"addr","start_char":54,"line":9},{"index_id":64,"token_group":50,"text":",","start_char":58,"line":9},{"index_id":65,"token_group":51,"text":"conf","start_char":60,"line":9},{"index_id":66,"token_group":52,"text":",","start_char":64,"line":9},{"index_id":67,"token_group":53,"text":"null","start_char":66,"line":9},{"index_id":68,"token_group":54,"text":",","start_char":70,"line":9},{"index_id":69,"token_group":55,"text":"1","start_char":72,"line":9},{"index_id":70,"token_group":56,"text":")","start_char":73,"line":9},{"index_id":71,"token_group":57,"text":";","start_char":74,"line":9},{"index_id":72,"token_group":58,"text":"server","start_char":8,"line":10},{"index_id":73,"token_group":59,"text":".","start_char":14,"line":10},{"index_id":74,"token_group":60,"text":"start","start_char":15,"line":10},{"index_id":75,"token_group":61,"text":"(","start_char":20,"line":10},{"index_id":76,"token_group":62,"text":")","start_char":21,"line":10},{"index_id":77,"token_group":63,"text":";","start_char":22,"line":10},{"index_id":78,"token_group":64,"text":"}","start_char":4,"line":11},{"index_id":79,"token_group":65,"text":"catch","start_char":4,"line":12},{"index_id":80,"token_group":66,"text":"(","start_char":10,"line":12},{"index_id":81,"token_group":67,"text":"yarn","start_char":11,"line":12},{"index_id":82,"token_group":68,"text":"Runtime","start_char":15,"line":12},{"index_id":83,"token_group":68,"text":"Exception","start_char":22,"line":12},{"index_id":84,"token_group":68,"text":"e","start_char":32,"line":12},{"index_id":85,"token_group":69,"text":")","start_char":33,"line":12},{"index_id":86,"token_group":70,"text":"{","start_char":4,"line":13},{"index_id":87,"token_group":71,"text":"e","start_char":8,"line":14},{"index_id":88,"token_group":72,"text":".","start_char":9,"line":14},{"index_id":89,"token_group":73,"text":"print","start_char":10,"line":14},{"index_id":90,"token_group":74,"text":"Stack","start_char":15,"line":14},{"index_id":91,"token_group":74,"text":"Trace","start_char":20,"line":14},{"index_id":92,"token_group":74,"text":"(","start_char":25,"line":14},{"index_id":93,"token_group":75,"text":")","start_char":26,"line":14},{"index_id":94,"token_group":76,"text":";","start_char":27,"line":14},{"index_id":95,"token_group":77,"text":"assert","start_char":8,"line":15},{"index_id":96,"token_group":78,"text":".","start_char":14,"line":15},{"index_id":97,"token_group":79,"text":"fail","start_char":15,"line":15},{"index_id":98,"token_group":80,"text":"(","start_char":19,"line":15},{"index_id":99,"token_group":81,"text":"\"Failed to create server\"","start_char":20,"line":15},{"index_id":100,"token_group":82,"text":")","start_char":45,"line":15},{"index_id":101,"token_group":83,"text":";","start_char":46,"line":15},{"index_id":102,"token_group":84,"text":"}","start_char":4,"line":16},{"index_id":103,"token_group":85,"text":"finally","start_char":4,"line":17},{"index_id":104,"token_group":86,"text":"{","start_char":4,"line":18},{"index_id":105,"token_group":87,"text":"if","start_char":8,"line":19},{"index_id":106,"token_group":88,"text":"(","start_char":11,"line":19},{"index_id":107,"token_group":89,"text":"server","start_char":12,"line":19},{"index_id":108,"token_group":90,"text":"!=","start_char":19,"line":19},{"index_id":109,"token_group":91,"text":"null","start_char":22,"line":19},{"index_id":110,"token_group":92,"text":")","start_char":26,"line":19},{"index_id":111,"token_group":93,"text":"{","start_char":8,"line":20},{"index_id":112,"token_group":94,"text":"server","start_char":12,"line":21},{"index_id":113,"token_group":95,"text":".","start_char":18,"line":21},{"index_id":114,"token_group":96,"text":"stop","start_char":19,"line":21},{"index_id":115,"token_group":97,"text":"(","start_char":23,"line":21},{"index_id":116,"token_group":98,"text":")","start_char":24,"line":21},{"index_id":117,"token_group":99,"text":";","start_char":25,"line":21},{"index_id":118,"token_group":100,"text":"}","start_char":8,"line":22},{"index_id":119,"token_group":101,"text":"}","start_char":4,"line":23},{"index_id":120,"token_group":102,"text":"}","start_char":0,"line":24}],"tokens_list":["{","inet","Socket","Address","addr","=","new","inet","Socket","Address","(","0",")",";","configuration","conf","=","new","configuration","(",")",";","localization","Protocol","instance","=","new","localization","Protocol","Test","Impl","(",")",";","server","server","=","null",";","try","{","server","=","rpc","Server","Factory","Pb","Impl",".","get","(",")",".","get","Server","(","localization","Protocol",".","class",",","instance",",","addr",",","conf",",","null",",","1",")",";","server",".","start","(",")",";","}","catch","(","yarn","Runtime","Exception","e",")","{","e",".","print","Stack","Trace","(",")",";","assert",".","fail","(","\"Failed to create server\"",")",";","}","finally","{","if","(","server","!=","null",")","{","server",".","stop","(",")",";","}","}","}"],"uuid":"c01e122e12af2c86c0469ee8c8aa64c4"}]