-
Notifications
You must be signed in to change notification settings - Fork 1
/
experiment_0000001.json
1 lines (1 loc) · 105 KB
/
experiment_0000001.json
1
[{"cap_original_tokens":["<SENTENCE_START>","{","return","(","<id>","t","<\/id>",")","<id>","serialization","Helper","<\/id>",".","<id>","deserialize","<\/id>","(","<id>","bytes","<\/id>",",","<id>","get","Java","Type","Class","<\/id>","(",")",".","<id>","get","Class","Loader","<\/id>","(",")",")",";","}","<SENTENCE_END\/>"],"file_name":"SerializableTypeDescriptor.java","formatted_lines":["{"," return (T) SerializationHelper.deserialize( bytes,"," getJavaTypeClass().getClassLoader() );","}"],"function_name":"fromBytes","function_name_tokens":["from","bytes"],"id_body_hash":"937e3f82d98de23d704746ceac253f02","id_same_identifier_list":[0,1,2,3,4,5,6,6,7,8,9,10,11,12,12,12,12,13,14,15,16,16,16,17,18,19,20,21,22],"option_correct":"fromBytes","options":["testNestedManyToOneChangedToNewEntity","getSchema","exists","fromString","fromBytes","from","createFrom"],"options_nlp":["test nested many to one changed to new entity","get schema","exists","from string","from bytes","from","create from"],"options_random":["getSchema","exists","testNestedManyToOneChangedToNewEntity"],"options_tfidf":["from","createFrom","fromString"],"project_name":"hibernate-orm","source_code_string":"@SuppressWarnings({ \"unchecked\" })\n\tprotected T fromBytes(byte[] bytes) {\n\t\treturn (T) SerializationHelper.deserialize( bytes, getJavaTypeClass().getClassLoader() );\n\t}","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"return","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"(","start_char":11,"line":1},{"index_id":3,"token_group":3,"text":"t","start_char":12,"line":1},{"index_id":4,"token_group":4,"text":")","start_char":13,"line":1},{"index_id":5,"token_group":5,"text":"serialization","start_char":15,"line":1},{"index_id":6,"token_group":6,"text":"Helper","start_char":28,"line":1},{"index_id":7,"token_group":6,"text":".","start_char":34,"line":1},{"index_id":8,"token_group":7,"text":"deserialize","start_char":35,"line":1},{"index_id":9,"token_group":8,"text":"(","start_char":46,"line":1},{"index_id":10,"token_group":9,"text":"bytes","start_char":48,"line":1},{"index_id":11,"token_group":10,"text":",","start_char":53,"line":1},{"index_id":12,"token_group":11,"text":"get","start_char":12,"line":2},{"index_id":13,"token_group":12,"text":"Java","start_char":15,"line":2},{"index_id":14,"token_group":12,"text":"Type","start_char":19,"line":2},{"index_id":15,"token_group":12,"text":"Class","start_char":23,"line":2},{"index_id":16,"token_group":12,"text":"(","start_char":28,"line":2},{"index_id":17,"token_group":13,"text":")","start_char":29,"line":2},{"index_id":18,"token_group":14,"text":".","start_char":30,"line":2},{"index_id":19,"token_group":15,"text":"get","start_char":31,"line":2},{"index_id":20,"token_group":16,"text":"Class","start_char":34,"line":2},{"index_id":21,"token_group":16,"text":"Loader","start_char":39,"line":2},{"index_id":22,"token_group":16,"text":"(","start_char":45,"line":2},{"index_id":23,"token_group":17,"text":")","start_char":46,"line":2},{"index_id":24,"token_group":18,"text":")","start_char":48,"line":2},{"index_id":25,"token_group":19,"text":";","start_char":49,"line":2},{"index_id":26,"token_group":20,"text":"}","start_char":0,"line":3}],"tokens_list":["{","return","(","t",")","serialization","Helper",".","deserialize","(","bytes",",","get","Java","Type","Class","(",")",".","get","Class","Loader","(",")",")",";","}"],"uuid":"5f2a90cc2db164d2329f982dc37d25b1"},{"cap_original_tokens":["<SENTENCE_START>","{","return","<id>","must","Successors","<\/id>",";","}","<SENTENCE_END\/>"],"file_name":"TaskInfo.java","formatted_lines":["{"," return mustSuccessors;","}"],"function_name":"getMustSuccessors","function_name_tokens":["get","must","successors"],"id_body_hash":"6eb0cc1331f70c8f194945438e790ad2","id_same_identifier_list":[0,1,2,3,3,4,5,6],"option_correct":"getMustSuccessors","options":["getMustSuccessors","get","createProjectSelectorNotationParser","registersSpecifiedBooleanInputValue","getAssembler","getShouldSuccessors","getDependencySuccessors"],"options_nlp":["get must successors","get","create project selector notation parser","registers specified boolean input value","get assembler","get should successors","get dependency successors"],"options_random":["getAssembler","registersSpecifiedBooleanInputValue","createProjectSelectorNotationParser"],"options_tfidf":["getShouldSuccessors","get","getDependencySuccessors"],"project_name":"gradle","source_code_string":"public TreeSet<TaskInfo> getMustSuccessors() {\n return mustSuccessors;\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":"must","start_char":11,"line":1},{"index_id":3,"token_group":3,"text":"Successors","start_char":15,"line":1},{"index_id":4,"token_group":3,"text":";","start_char":25,"line":1},{"index_id":5,"token_group":4,"text":"}","start_char":0,"line":2}],"tokens_list":["{","return","must","Successors",";","}"],"uuid":"181aab53ce5b1c11a29c828169500fd5"},{"cap_original_tokens":["<SENTENCE_START>","{","return","<id>","total","Splits","<\/id>",";","}","<SENTENCE_END\/>"],"file_name":"QueryStats.java","formatted_lines":["{"," return totalSplits;","}"],"function_name":"getTotalSplits","function_name_tokens":["get","total","splits"],"id_body_hash":"2e3b44c8cee95071bd99638844cbcc87","id_same_identifier_list":[0,1,2,3,3,4,5,6],"option_correct":"getTotalSplits","options":["getTotalSplits","getSplits","getPartitionSplits","getColumnTypes","getAllSplits","copyTable","testApproximateQueryCountCustkey"],"options_nlp":["get total splits","get splits","get partition splits","get column types","get all splits","copy table","test approximate query count custkey"],"options_random":["getColumnTypes","copyTable","testApproximateQueryCountCustkey"],"options_tfidf":["getPartitionSplits","getSplits","getAllSplits"],"project_name":"presto","source_code_string":"public int getTotalSplits()\n {\n return totalSplits;\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"return","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"total","start_char":11,"line":1},{"index_id":3,"token_group":3,"text":"Splits","start_char":16,"line":1},{"index_id":4,"token_group":3,"text":";","start_char":22,"line":1},{"index_id":5,"token_group":4,"text":"}","start_char":0,"line":2}],"tokens_list":["{","return","total","Splits",";","}"],"uuid":"471f2eab813434908acd9d9c24988976"},{"cap_original_tokens":["<SENTENCE_START>","{","return","\"_CVS\"",";","}","<SENTENCE_END\/>"],"file_name":"CvsCheckoutProvider.java","formatted_lines":["{"," return \"_CVS\";","}"],"function_name":"getVcsName","function_name_tokens":["get","vcs","name"],"id_body_hash":"72f1c5c15fd52137e19bd12339c6d799","id_same_identifier_list":[0,1,2,3,4,5,6],"option_correct":"getVcsName","options":["initModule","getVcsLine2","getVcsName","getVcs","getI18nizedTextGenerator","findExpression","getVcsLine1"],"options_nlp":["init module","get vcs line 2","get vcs name","get vcs","get i 18 nized text generator","find expression","get vcs line 1"],"options_random":["initModule","findExpression","getI18nizedTextGenerator"],"options_tfidf":["getVcsLine1","getVcs","getVcsLine2"],"project_name":"intellij-community","source_code_string":"public String getVcsName() {\n return \"_CVS\";\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":"\"_CVS\"","start_char":11,"line":1},{"index_id":3,"token_group":3,"text":";","start_char":17,"line":1},{"index_id":4,"token_group":4,"text":"}","start_char":0,"line":2}],"tokens_list":["{","return","\"_CVS\"",";","}"],"uuid":"89211b2bd473c8b8fb252fabf430c2c3"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","assert","Same","<\/id>","(","<id>","data","Source","From","Tx","Manager","<\/id>",",","<id>","data","Source","Via","Injection","<\/id>",")",";","}","<SENTENCE_END\/>"],"file_name":"TransactionalAnnotatedConfigClassWithAtConfigurationTests.java","formatted_lines":["{",""," assertSame(dataSourceFromTxManager, dataSourceViaInjection);","}"],"function_name":"compareDataSources","function_name_tokens":["compare","data","sources"],"id_body_hash":"f94f922589a22197dab71c031d66644b","id_same_identifier_list":[0,1,2,2,3,4,4,4,4,4,5,6,6,6,6,7,8,9,10],"option_correct":"compareDataSources","options":["mapCompare","collectionCompare","getMappings","compareDataSources","compare","testCanPassInMoreThanOneProperty","getTransactionAttributeSources"],"options_nlp":["map compare","collection compare","get mappings","compare data sources","compare","test can pass in more than one property","get transaction attribute sources"],"options_random":["getMappings","testCanPassInMoreThanOneProperty","collectionCompare"],"options_tfidf":["mapCompare","compare","getTransactionAttributeSources"],"project_name":"spring-framework","source_code_string":"@Before\n\tpublic void compareDataSources() throws Exception {\n\t\t\n\t\tassertSame(dataSourceFromTxManager, dataSourceViaInjection);\n\t}","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"assert","start_char":4,"line":2},{"index_id":2,"token_group":2,"text":"Same","start_char":10,"line":2},{"index_id":3,"token_group":2,"text":"(","start_char":14,"line":2},{"index_id":4,"token_group":3,"text":"data","start_char":15,"line":2},{"index_id":5,"token_group":4,"text":"Source","start_char":19,"line":2},{"index_id":6,"token_group":4,"text":"From","start_char":25,"line":2},{"index_id":7,"token_group":4,"text":"Tx","start_char":29,"line":2},{"index_id":8,"token_group":4,"text":"Manager","start_char":31,"line":2},{"index_id":9,"token_group":4,"text":",","start_char":38,"line":2},{"index_id":10,"token_group":5,"text":"data","start_char":40,"line":2},{"index_id":11,"token_group":6,"text":"Source","start_char":44,"line":2},{"index_id":12,"token_group":6,"text":"Via","start_char":50,"line":2},{"index_id":13,"token_group":6,"text":"Injection","start_char":53,"line":2},{"index_id":14,"token_group":6,"text":")","start_char":62,"line":2},{"index_id":15,"token_group":7,"text":";","start_char":63,"line":2},{"index_id":16,"token_group":8,"text":"}","start_char":0,"line":3}],"tokens_list":["{","assert","Same","(","data","Source","From","Tx","Manager",",","data","Source","Via","Injection",")",";","}"],"uuid":"5c612db7f48b6b86b484140605954648"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","file","View","Provider","<\/id>","<id>","file","View","Provider","<\/id>","=","<id>","my","V","File","To","View","Provider","Map","<\/id>",".","<id>","get","<\/id>","(","<id>","file","<\/id>",")",";","if","(","<id>","file","View","Provider","<\/id>","==","null",")","<id>","file","View","Provider","<\/id>","=","<id>","file","<\/id>",".","<id>","get","User","Data","<\/id>","(","<id>","my","Psi","Hard","Ref","Key","<\/id>",")",";","return","<id>","file","View","Provider","<\/id>","Instanceof","<id>","single","Root","File","View","Provider","<\/id>","?","(","(","<id>","single","Root","File","View","Provider","<\/id>",")","<id>","file","View","Provider","<\/id>",")",".","<id>","get","Cached","Psi","<\/id>","(","<id>","file","View","Provider","<\/id>",".","<id>","get","Base","Language","<\/id>","(",")",")",":","null",";","}","<SENTENCE_END\/>"],"file_name":"FileManagerImpl.java","formatted_lines":["{"," FileViewProvider fileViewProvider = myVFileToViewProviderMap.get(file);"," if (fileViewProvider == null) fileViewProvider = file.getUserData("," myPsiHardRefKey);"," return fileViewProvider instanceof SingleRootFileViewProvider"," ? ((SingleRootFileViewProvider)fileViewProvider).getCachedPsi("," fileViewProvider.getBaseLanguage()) : null;","}"],"function_name":"getCachedPsiFileInner","function_name_tokens":["get","cached","psi","file","inner"],"id_body_hash":"76a4fcd2901430400029455c8a076e82","id_same_identifier_list":[0,1,2,2,2,3,3,3,4,5,5,5,5,5,5,5,6,7,8,9,10,11,12,13,14,14,14,15,16,17,18,18,18,19,20,21,22,22,22,23,24,24,24,24,24,25,26,27,28,28,28,29,30,30,30,30,30,31,32,33,34,34,34,34,34,35,36,36,36,37,38,39,39,39,40,41,41,41,42,43,43,43,44,45,46,47,48,49,50,51],"option_correct":"getCachedPsiFileInner","options":["testIDEA67584","getStepOverCommand","getPsiFile","getSelectedComponents","getCachedPsiFileInner","getCachedContentFile","getCached"],"options_nlp":["test idea 67584","get step over command","get psi file","get selected components","get cached psi file inner","get cached content file","get cached"],"options_random":["testIDEA67584","getStepOverCommand","getSelectedComponents"],"options_tfidf":["getCached","getCachedContentFile","getPsiFile"],"project_name":"intellij-community","source_code_string":"@Nullable\n PsiFile getCachedPsiFileInner(@NotNull VirtualFile file) {\n FileViewProvider fileViewProvider = myVFileToViewProviderMap.get(file);\n if (fileViewProvider == null) fileViewProvider = file.getUserData(myPsiHardRefKey);\n return fileViewProvider instanceof SingleRootFileViewProvider\n ? ((SingleRootFileViewProvider)fileViewProvider).getCachedPsi(fileViewProvider.getBaseLanguage()) : null;\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":"View","start_char":8,"line":1},{"index_id":3,"token_group":2,"text":"Provider","start_char":12,"line":1},{"index_id":4,"token_group":2,"text":"file","start_char":21,"line":1},{"index_id":5,"token_group":3,"text":"View","start_char":25,"line":1},{"index_id":6,"token_group":3,"text":"Provider","start_char":29,"line":1},{"index_id":7,"token_group":3,"text":"=","start_char":38,"line":1},{"index_id":8,"token_group":4,"text":"my","start_char":40,"line":1},{"index_id":9,"token_group":5,"text":"V","start_char":42,"line":1},{"index_id":10,"token_group":5,"text":"File","start_char":43,"line":1},{"index_id":11,"token_group":5,"text":"To","start_char":47,"line":1},{"index_id":12,"token_group":5,"text":"View","start_char":49,"line":1},{"index_id":13,"token_group":5,"text":"Provider","start_char":53,"line":1},{"index_id":14,"token_group":5,"text":"Map","start_char":61,"line":1},{"index_id":15,"token_group":5,"text":".","start_char":64,"line":1},{"index_id":16,"token_group":6,"text":"get","start_char":65,"line":1},{"index_id":17,"token_group":7,"text":"(","start_char":68,"line":1},{"index_id":18,"token_group":8,"text":"file","start_char":69,"line":1},{"index_id":19,"token_group":9,"text":")","start_char":73,"line":1},{"index_id":20,"token_group":10,"text":";","start_char":74,"line":1},{"index_id":21,"token_group":11,"text":"if","start_char":4,"line":2},{"index_id":22,"token_group":12,"text":"(","start_char":7,"line":2},{"index_id":23,"token_group":13,"text":"file","start_char":8,"line":2},{"index_id":24,"token_group":14,"text":"View","start_char":12,"line":2},{"index_id":25,"token_group":14,"text":"Provider","start_char":16,"line":2},{"index_id":26,"token_group":14,"text":"==","start_char":25,"line":2},{"index_id":27,"token_group":15,"text":"null","start_char":28,"line":2},{"index_id":28,"token_group":16,"text":")","start_char":32,"line":2},{"index_id":29,"token_group":17,"text":"file","start_char":34,"line":2},{"index_id":30,"token_group":18,"text":"View","start_char":38,"line":2},{"index_id":31,"token_group":18,"text":"Provider","start_char":42,"line":2},{"index_id":32,"token_group":18,"text":"=","start_char":51,"line":2},{"index_id":33,"token_group":19,"text":"file","start_char":53,"line":2},{"index_id":34,"token_group":20,"text":".","start_char":57,"line":2},{"index_id":35,"token_group":21,"text":"get","start_char":58,"line":2},{"index_id":36,"token_group":22,"text":"User","start_char":61,"line":2},{"index_id":37,"token_group":22,"text":"Data","start_char":65,"line":2},{"index_id":38,"token_group":22,"text":"(","start_char":69,"line":2},{"index_id":39,"token_group":23,"text":"my","start_char":20,"line":3},{"index_id":40,"token_group":24,"text":"Psi","start_char":22,"line":3},{"index_id":41,"token_group":24,"text":"Hard","start_char":25,"line":3},{"index_id":42,"token_group":24,"text":"Ref","start_char":29,"line":3},{"index_id":43,"token_group":24,"text":"Key","start_char":32,"line":3},{"index_id":44,"token_group":24,"text":")","start_char":35,"line":3},{"index_id":45,"token_group":25,"text":";","start_char":36,"line":3},{"index_id":46,"token_group":26,"text":"return","start_char":4,"line":4},{"index_id":47,"token_group":27,"text":"file","start_char":11,"line":4},{"index_id":48,"token_group":28,"text":"View","start_char":15,"line":4},{"index_id":49,"token_group":28,"text":"Provider","start_char":19,"line":4},{"index_id":50,"token_group":28,"text":"Instanceof","start_char":28,"line":4},{"index_id":51,"token_group":29,"text":"single","start_char":39,"line":4},{"index_id":52,"token_group":30,"text":"Root","start_char":45,"line":4},{"index_id":53,"token_group":30,"text":"File","start_char":49,"line":4},{"index_id":54,"token_group":30,"text":"View","start_char":53,"line":4},{"index_id":55,"token_group":30,"text":"Provider","start_char":57,"line":4},{"index_id":56,"token_group":30,"text":"?","start_char":11,"line":5},{"index_id":57,"token_group":31,"text":"(","start_char":13,"line":5},{"index_id":58,"token_group":32,"text":"(","start_char":14,"line":5},{"index_id":59,"token_group":33,"text":"single","start_char":15,"line":5},{"index_id":60,"token_group":34,"text":"Root","start_char":21,"line":5},{"index_id":61,"token_group":34,"text":"File","start_char":25,"line":5},{"index_id":62,"token_group":34,"text":"View","start_char":29,"line":5},{"index_id":63,"token_group":34,"text":"Provider","start_char":33,"line":5},{"index_id":64,"token_group":34,"text":")","start_char":41,"line":5},{"index_id":65,"token_group":35,"text":"file","start_char":42,"line":5},{"index_id":66,"token_group":36,"text":"View","start_char":46,"line":5},{"index_id":67,"token_group":36,"text":"Provider","start_char":50,"line":5},{"index_id":68,"token_group":36,"text":")","start_char":58,"line":5},{"index_id":69,"token_group":37,"text":".","start_char":59,"line":5},{"index_id":70,"token_group":38,"text":"get","start_char":60,"line":5},{"index_id":71,"token_group":39,"text":"Cached","start_char":63,"line":5},{"index_id":72,"token_group":39,"text":"Psi","start_char":69,"line":5},{"index_id":73,"token_group":39,"text":"(","start_char":72,"line":5},{"index_id":74,"token_group":40,"text":"file","start_char":15,"line":6},{"index_id":75,"token_group":41,"text":"View","start_char":19,"line":6},{"index_id":76,"token_group":41,"text":"Provider","start_char":23,"line":6},{"index_id":77,"token_group":41,"text":".","start_char":31,"line":6},{"index_id":78,"token_group":42,"text":"get","start_char":32,"line":6},{"index_id":79,"token_group":43,"text":"Base","start_char":35,"line":6},{"index_id":80,"token_group":43,"text":"Language","start_char":39,"line":6},{"index_id":81,"token_group":43,"text":"(","start_char":47,"line":6},{"index_id":82,"token_group":44,"text":")","start_char":48,"line":6},{"index_id":83,"token_group":45,"text":")","start_char":49,"line":6},{"index_id":84,"token_group":46,"text":":","start_char":51,"line":6},{"index_id":85,"token_group":47,"text":"null","start_char":53,"line":6},{"index_id":86,"token_group":48,"text":";","start_char":57,"line":6},{"index_id":87,"token_group":49,"text":"}","start_char":0,"line":7}],"tokens_list":["{","file","View","Provider","file","View","Provider","=","my","V","File","To","View","Provider","Map",".","get","(","file",")",";","if","(","file","View","Provider","==","null",")","file","View","Provider","=","file",".","get","User","Data","(","my","Psi","Hard","Ref","Key",")",";","return","file","View","Provider","Instanceof","single","Root","File","View","Provider","?","(","(","single","Root","File","View","Provider",")","file","View","Provider",")",".","get","Cached","Psi","(","file","View","Provider",".","get","Base","Language","(",")",")",":","null",";","}"],"uuid":"c4f1614ed866c0f4b2f00a7acdeb9d85"},{"cap_original_tokens":["<SENTENCE_START>","{","int","<id>","text","Length","<\/id>","=","<id>","my","Document","<\/id>",".","<id>","get","Text","Length","<\/id>","(",")",";","if","(","<id>","text","Length","<\/id>","==","0",")","return","0",";","if","(","<id>","offset","<\/id>",">","<id>","text","Length","<\/id>","||","<id>","offset","<\/id>","<","0",")","{","throw","new","<id>","index","Out","Of","Bounds","Exception","<\/id>","(","\"Wrong offset: \"","+","<id>","offset","<\/id>","+","\" textLength: \"","+","<id>","text","Length","<\/id>",")",";","}","int","<id>","line","Index","<\/id>","=","<id>","my","Document","<\/id>",".","<id>","get","Line","Number","<\/id>","(","<id>","offset","<\/id>",")",";","<id>","log","<\/id>",".","<id>","assert","True","<\/id>","(","<id>","line","Index","<\/id>",">=","0","&&","<id>","line","Index","<\/id>","<","<id>","my","Document","<\/id>",".","<id>","get","Line","Count","<\/id>","(",")",")",";","return","<id>","line","Index","<\/id>",";","}","<SENTENCE_END\/>"],"file_name":"EditorImpl.java","formatted_lines":["{"," int textLength = myDocument.getTextLength();"," if (textLength == 0) return 0;",""," if (offset > textLength || offset < 0)"," {"," throw new IndexOutOfBoundsException(\"Wrong offset: \" + offset + \" textLength: \""," + textLength);"," }",""," int lineIndex = myDocument.getLineNumber(offset);"," LOG.assertTrue(lineIndex >= 0 && lineIndex < myDocument.getLineCount());",""," return lineIndex;","}"],"function_name":"offsetToLogicalLine","function_name_tokens":["offset","to","logical","line"],"id_body_hash":"d58ad4e31d37330b124ca44ca174477e","id_same_identifier_list":[0,1,2,3,3,4,5,5,6,7,7,7,8,9,10,11,12,13,13,14,15,16,17,18,19,20,21,22,23,24,24,25,26,27,28,29,30,31,32,33,33,33,33,33,34,35,36,37,38,39,40,41,41,42,43,44,45,46,46,47,48,48,49,50,50,50,51,52,53,54,55,56,57,57,58,59,59,60,61,62,63,63,64,65,65,66,67,67,67,68,69,70,71,72,73,73,74,75,76],"option_correct":"offsetToLogicalLine","options":["offsetToLogicalLine","constructFormNode","inferConversionType","checkLookAndFeel","offsetToVisualLine","isLogicalAndExpression","visualLineToOffset"],"options_nlp":["offset to logical line","construct form node","infer conversion type","check look and feel","offset to visual line","is logical and expression","visual line to offset"],"options_random":["constructFormNode","inferConversionType","checkLookAndFeel"],"options_tfidf":["visualLineToOffset","offsetToVisualLine","isLogicalAndExpression"],"project_name":"intellij-community","source_code_string":"int offsetToLogicalLine(int offset) {\n int textLength = myDocument.getTextLength();\n if (textLength == 0) return 0;\n\n if (offset > textLength || offset < 0) {\n throw new IndexOutOfBoundsException(\"Wrong offset: \" + offset + \" textLength: \" + textLength);\n }\n\n int lineIndex = myDocument.getLineNumber(offset);\n LOG.assertTrue(lineIndex >= 0 && lineIndex < myDocument.getLineCount());\n\n return lineIndex;\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":"text","start_char":8,"line":1},{"index_id":3,"token_group":3,"text":"Length","start_char":12,"line":1},{"index_id":4,"token_group":3,"text":"=","start_char":19,"line":1},{"index_id":5,"token_group":4,"text":"my","start_char":21,"line":1},{"index_id":6,"token_group":5,"text":"Document","start_char":23,"line":1},{"index_id":7,"token_group":5,"text":".","start_char":31,"line":1},{"index_id":8,"token_group":6,"text":"get","start_char":32,"line":1},{"index_id":9,"token_group":7,"text":"Text","start_char":35,"line":1},{"index_id":10,"token_group":7,"text":"Length","start_char":39,"line":1},{"index_id":11,"token_group":7,"text":"(","start_char":45,"line":1},{"index_id":12,"token_group":8,"text":")","start_char":46,"line":1},{"index_id":13,"token_group":9,"text":";","start_char":47,"line":1},{"index_id":14,"token_group":10,"text":"if","start_char":4,"line":2},{"index_id":15,"token_group":11,"text":"(","start_char":7,"line":2},{"index_id":16,"token_group":12,"text":"text","start_char":8,"line":2},{"index_id":17,"token_group":13,"text":"Length","start_char":12,"line":2},{"index_id":18,"token_group":13,"text":"==","start_char":19,"line":2},{"index_id":19,"token_group":14,"text":"0","start_char":22,"line":2},{"index_id":20,"token_group":15,"text":")","start_char":23,"line":2},{"index_id":21,"token_group":16,"text":"return","start_char":25,"line":2},{"index_id":22,"token_group":17,"text":"0","start_char":32,"line":2},{"index_id":23,"token_group":18,"text":";","start_char":33,"line":2},{"index_id":24,"token_group":19,"text":"if","start_char":4,"line":4},{"index_id":25,"token_group":20,"text":"(","start_char":7,"line":4},{"index_id":26,"token_group":21,"text":"offset","start_char":8,"line":4},{"index_id":27,"token_group":22,"text":">","start_char":15,"line":4},{"index_id":28,"token_group":23,"text":"text","start_char":17,"line":4},{"index_id":29,"token_group":24,"text":"Length","start_char":21,"line":4},{"index_id":30,"token_group":24,"text":"||","start_char":28,"line":4},{"index_id":31,"token_group":25,"text":"offset","start_char":31,"line":4},{"index_id":32,"token_group":26,"text":"<","start_char":38,"line":4},{"index_id":33,"token_group":27,"text":"0","start_char":40,"line":4},{"index_id":34,"token_group":28,"text":")","start_char":41,"line":4},{"index_id":35,"token_group":29,"text":"{","start_char":4,"line":5},{"index_id":36,"token_group":30,"text":"throw","start_char":8,"line":6},{"index_id":37,"token_group":31,"text":"new","start_char":14,"line":6},{"index_id":38,"token_group":32,"text":"index","start_char":18,"line":6},{"index_id":39,"token_group":33,"text":"Out","start_char":23,"line":6},{"index_id":40,"token_group":33,"text":"Of","start_char":26,"line":6},{"index_id":41,"token_group":33,"text":"Bounds","start_char":28,"line":6},{"index_id":42,"token_group":33,"text":"Exception","start_char":34,"line":6},{"index_id":43,"token_group":33,"text":"(","start_char":43,"line":6},{"index_id":44,"token_group":34,"text":"\"Wrong offset: \"","start_char":44,"line":6},{"index_id":45,"token_group":35,"text":"+","start_char":61,"line":6},{"index_id":46,"token_group":36,"text":"offset","start_char":63,"line":6},{"index_id":47,"token_group":37,"text":"+","start_char":70,"line":6},{"index_id":48,"token_group":38,"text":"\" textLength: \"","start_char":72,"line":6},{"index_id":49,"token_group":39,"text":"+","start_char":44,"line":7},{"index_id":50,"token_group":40,"text":"text","start_char":46,"line":7},{"index_id":51,"token_group":41,"text":"Length","start_char":50,"line":7},{"index_id":52,"token_group":41,"text":")","start_char":56,"line":7},{"index_id":53,"token_group":42,"text":";","start_char":57,"line":7},{"index_id":54,"token_group":43,"text":"}","start_char":4,"line":8},{"index_id":55,"token_group":44,"text":"int","start_char":4,"line":10},{"index_id":56,"token_group":45,"text":"line","start_char":8,"line":10},{"index_id":57,"token_group":46,"text":"Index","start_char":12,"line":10},{"index_id":58,"token_group":46,"text":"=","start_char":18,"line":10},{"index_id":59,"token_group":47,"text":"my","start_char":20,"line":10},{"index_id":60,"token_group":48,"text":"Document","start_char":22,"line":10},{"index_id":61,"token_group":48,"text":".","start_char":30,"line":10},{"index_id":62,"token_group":49,"text":"get","start_char":31,"line":10},{"index_id":63,"token_group":50,"text":"Line","start_char":34,"line":10},{"index_id":64,"token_group":50,"text":"Number","start_char":38,"line":10},{"index_id":65,"token_group":50,"text":"(","start_char":44,"line":10},{"index_id":66,"token_group":51,"text":"offset","start_char":45,"line":10},{"index_id":67,"token_group":52,"text":")","start_char":51,"line":10},{"index_id":68,"token_group":53,"text":";","start_char":52,"line":10},{"index_id":69,"token_group":54,"text":"log","start_char":4,"line":11},{"index_id":70,"token_group":55,"text":".","start_char":7,"line":11},{"index_id":71,"token_group":56,"text":"assert","start_char":8,"line":11},{"index_id":72,"token_group":57,"text":"True","start_char":14,"line":11},{"index_id":73,"token_group":57,"text":"(","start_char":18,"line":11},{"index_id":74,"token_group":58,"text":"line","start_char":19,"line":11},{"index_id":75,"token_group":59,"text":"Index","start_char":23,"line":11},{"index_id":76,"token_group":59,"text":">=","start_char":29,"line":11},{"index_id":77,"token_group":60,"text":"0","start_char":32,"line":11},{"index_id":78,"token_group":61,"text":"&&","start_char":34,"line":11},{"index_id":79,"token_group":62,"text":"line","start_char":37,"line":11},{"index_id":80,"token_group":63,"text":"Index","start_char":41,"line":11},{"index_id":81,"token_group":63,"text":"<","start_char":47,"line":11},{"index_id":82,"token_group":64,"text":"my","start_char":49,"line":11},{"index_id":83,"token_group":65,"text":"Document","start_char":51,"line":11},{"index_id":84,"token_group":65,"text":".","start_char":59,"line":11},{"index_id":85,"token_group":66,"text":"get","start_char":60,"line":11},{"index_id":86,"token_group":67,"text":"Line","start_char":63,"line":11},{"index_id":87,"token_group":67,"text":"Count","start_char":67,"line":11},{"index_id":88,"token_group":67,"text":"(","start_char":72,"line":11},{"index_id":89,"token_group":68,"text":")","start_char":73,"line":11},{"index_id":90,"token_group":69,"text":")","start_char":74,"line":11},{"index_id":91,"token_group":70,"text":";","start_char":75,"line":11},{"index_id":92,"token_group":71,"text":"return","start_char":4,"line":13},{"index_id":93,"token_group":72,"text":"line","start_char":11,"line":13},{"index_id":94,"token_group":73,"text":"Index","start_char":15,"line":13},{"index_id":95,"token_group":73,"text":";","start_char":20,"line":13},{"index_id":96,"token_group":74,"text":"}","start_char":0,"line":14}],"tokens_list":["{","int","text","Length","=","my","Document",".","get","Text","Length","(",")",";","if","(","text","Length","==","0",")","return","0",";","if","(","offset",">","text","Length","||","offset","<","0",")","{","throw","new","index","Out","Of","Bounds","Exception","(","\"Wrong offset: \"","+","offset","+","\" textLength: \"","+","text","Length",")",";","}","int","line","Index","=","my","Document",".","get","Line","Number","(","offset",")",";","log",".","assert","True","(","line","Index",">=","0","&&","line","Index","<","my","Document",".","get","Line","Count","(",")",")",";","return","line","Index",";","}"],"uuid":"dba46f241ccff3b9f16d8056095cdda9"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","bean","Name","Url","Handler","Mapping","<\/id>","<id>","mapping","<\/id>","=","new","<id>","bean","Name","Url","Handler","Mapping","<\/id>","(",")",";","<id>","mapping","<\/id>",".","<id>","set","Order","<\/id>","(","2",")",";","<id>","mapping","<\/id>",".","<id>","set","Interceptors","<\/id>","(","<id>","get","Interceptors","<\/id>","(",")",")",";","<id>","mapping","<\/id>",".","<id>","set","Cors","Configurations","<\/id>","(","<id>","get","Cors","Configurations","<\/id>","(",")",")",";","return","<id>","mapping","<\/id>",";","}","<SENTENCE_END\/>"],"file_name":"WebMvcConfigurationSupport.java","formatted_lines":["{"," BeanNameUrlHandlerMapping mapping = new BeanNameUrlHandlerMapping();"," mapping.setOrder(2);"," mapping.setInterceptors(getInterceptors());"," mapping.setCorsConfigurations(getCorsConfigurations());"," return mapping;","}"],"function_name":"beanNameHandlerMapping","function_name_tokens":["bean","name","handler","mapping"],"id_body_hash":"50bec7032f2165398d3856ba49e41094","id_same_identifier_list":[0,1,2,2,2,2,2,3,4,5,6,6,6,6,6,7,8,9,10,11,12,12,13,14,15,16,17,18,19,19,20,21,21,22,23,24,25,26,27,28,28,28,29,30,30,30,31,32,33,34,35,36,37,38,39],"option_correct":"beanNameHandlerMapping","options":["beanNameHandlerMapping","handlerMapping","testGenericMapOfListsWithElementConversion","getSecWebSocketVersion","withMappingName","registerBeanNameUrlHandlerMapping","testGenericMapFromProperties"],"options_nlp":["bean name handler mapping","handler mapping","test generic map of lists with element conversion","get sec web socket version","with mapping name","register bean name url handler mapping","test generic map from properties"],"options_random":["getSecWebSocketVersion","testGenericMapOfListsWithElementConversion","testGenericMapFromProperties"],"options_tfidf":["withMappingName","handlerMapping","registerBeanNameUrlHandlerMapping"],"project_name":"spring-framework","source_code_string":"@Bean\n\tpublic BeanNameUrlHandlerMapping beanNameHandlerMapping() {\n\t\tBeanNameUrlHandlerMapping mapping = new BeanNameUrlHandlerMapping();\n\t\tmapping.setOrder(2);\n\t\tmapping.setInterceptors(getInterceptors());\n\t\tmapping.setCorsConfigurations(getCorsConfigurations());\n\t\treturn mapping;\n\t}","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"bean","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"Name","start_char":8,"line":1},{"index_id":3,"token_group":2,"text":"Url","start_char":12,"line":1},{"index_id":4,"token_group":2,"text":"Handler","start_char":15,"line":1},{"index_id":5,"token_group":2,"text":"Mapping","start_char":22,"line":1},{"index_id":6,"token_group":2,"text":"mapping","start_char":30,"line":1},{"index_id":7,"token_group":3,"text":"=","start_char":38,"line":1},{"index_id":8,"token_group":4,"text":"new","start_char":40,"line":1},{"index_id":9,"token_group":5,"text":"bean","start_char":44,"line":1},{"index_id":10,"token_group":6,"text":"Name","start_char":48,"line":1},{"index_id":11,"token_group":6,"text":"Url","start_char":52,"line":1},{"index_id":12,"token_group":6,"text":"Handler","start_char":55,"line":1},{"index_id":13,"token_group":6,"text":"Mapping","start_char":62,"line":1},{"index_id":14,"token_group":6,"text":"(","start_char":69,"line":1},{"index_id":15,"token_group":7,"text":")","start_char":70,"line":1},{"index_id":16,"token_group":8,"text":";","start_char":71,"line":1},{"index_id":17,"token_group":9,"text":"mapping","start_char":4,"line":2},{"index_id":18,"token_group":10,"text":".","start_char":11,"line":2},{"index_id":19,"token_group":11,"text":"set","start_char":12,"line":2},{"index_id":20,"token_group":12,"text":"Order","start_char":15,"line":2},{"index_id":21,"token_group":12,"text":"(","start_char":20,"line":2},{"index_id":22,"token_group":13,"text":"2","start_char":21,"line":2},{"index_id":23,"token_group":14,"text":")","start_char":22,"line":2},{"index_id":24,"token_group":15,"text":";","start_char":23,"line":2},{"index_id":25,"token_group":16,"text":"mapping","start_char":4,"line":3},{"index_id":26,"token_group":17,"text":".","start_char":11,"line":3},{"index_id":27,"token_group":18,"text":"set","start_char":12,"line":3},{"index_id":28,"token_group":19,"text":"Interceptors","start_char":15,"line":3},{"index_id":29,"token_group":19,"text":"(","start_char":27,"line":3},{"index_id":30,"token_group":20,"text":"get","start_char":28,"line":3},{"index_id":31,"token_group":21,"text":"Interceptors","start_char":31,"line":3},{"index_id":32,"token_group":21,"text":"(","start_char":43,"line":3},{"index_id":33,"token_group":22,"text":")","start_char":44,"line":3},{"index_id":34,"token_group":23,"text":")","start_char":45,"line":3},{"index_id":35,"token_group":24,"text":";","start_char":46,"line":3},{"index_id":36,"token_group":25,"text":"mapping","start_char":4,"line":4},{"index_id":37,"token_group":26,"text":".","start_char":11,"line":4},{"index_id":38,"token_group":27,"text":"set","start_char":12,"line":4},{"index_id":39,"token_group":28,"text":"Cors","start_char":15,"line":4},{"index_id":40,"token_group":28,"text":"Configurations","start_char":19,"line":4},{"index_id":41,"token_group":28,"text":"(","start_char":33,"line":4},{"index_id":42,"token_group":29,"text":"get","start_char":34,"line":4},{"index_id":43,"token_group":30,"text":"Cors","start_char":37,"line":4},{"index_id":44,"token_group":30,"text":"Configurations","start_char":41,"line":4},{"index_id":45,"token_group":30,"text":"(","start_char":55,"line":4},{"index_id":46,"token_group":31,"text":")","start_char":56,"line":4},{"index_id":47,"token_group":32,"text":")","start_char":57,"line":4},{"index_id":48,"token_group":33,"text":";","start_char":58,"line":4},{"index_id":49,"token_group":34,"text":"return","start_char":4,"line":5},{"index_id":50,"token_group":35,"text":"mapping","start_char":11,"line":5},{"index_id":51,"token_group":36,"text":";","start_char":18,"line":5},{"index_id":52,"token_group":37,"text":"}","start_char":0,"line":6}],"tokens_list":["{","bean","Name","Url","Handler","Mapping","mapping","=","new","bean","Name","Url","Handler","Mapping","(",")",";","mapping",".","set","Order","(","2",")",";","mapping",".","set","Interceptors","(","get","Interceptors","(",")",")",";","mapping",".","set","Cors","Configurations","(","get","Cors","Configurations","(",")",")",";","return","mapping",";","}"],"uuid":"070beb1b4563217340ab7e5dd1f994d2"},{"cap_original_tokens":["<SENTENCE_START>","{","this",".","<id>","user","Persistence","<\/id>","=","<id>","user","Persistence","<\/id>",";","}","<SENTENCE_END\/>"],"file_name":"KaleoNotificationRecipientLocalServiceBaseImpl.java","formatted_lines":["{"," this.userPersistence = userPersistence;","}"],"function_name":"setUserPersistence","function_name_tokens":["set","user","persistence"],"id_body_hash":"bfc92858e8323b28989a495128d6e050","id_same_identifier_list":[0,1,2,3,4,4,5,6,6,7,8,9],"option_correct":"setUserPersistence","options":["setUserPersistence","getUniqueLayoutFriendlyURL","setPersistence","setUserGroupPersistence","testSetFilter","setPortletDisplayTemplateImportCapability","setUser"],"options_nlp":["set user persistence","get unique layout friendly url","set persistence","set user group persistence","test set filter","set portlet display template import capability","set user"],"options_random":["setPortletDisplayTemplateImportCapability","testSetFilter","getUniqueLayoutFriendlyURL"],"options_tfidf":["setPersistence","setUserGroupPersistence","setUser"],"project_name":"liferay-portal","source_code_string":"public void setUserPersistence(UserPersistence userPersistence) {\n\t\tthis.userPersistence = userPersistence;\n\t}","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"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":"user","start_char":9,"line":1},{"index_id":4,"token_group":4,"text":"Persistence","start_char":13,"line":1},{"index_id":5,"token_group":4,"text":"=","start_char":25,"line":1},{"index_id":6,"token_group":5,"text":"user","start_char":27,"line":1},{"index_id":7,"token_group":6,"text":"Persistence","start_char":31,"line":1},{"index_id":8,"token_group":6,"text":";","start_char":42,"line":1},{"index_id":9,"token_group":7,"text":"}","start_char":0,"line":2}],"tokens_list":["{","this",".","user","Persistence","=","user","Persistence",";","}"],"uuid":"b9ec9ee342c0d8c941d9e23d82041247"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","list","<\/id>","<","<id>","resource","Type","Permission","Soap","<\/id>",">","<id>","soap","Models","<\/id>","=","new","<id>","array","List","<\/id>","<","<id>","resource","Type","Permission","Soap","<\/id>",">","(","<id>","models","<\/id>",".","<id>","size","<\/id>","(",")",")",";","for","(","<id>","resource","Type","Permission","<\/id>","<id>","model","<\/id>",":","<id>","models","<\/id>",")","{","<id>","soap","Models","<\/id>",".","<id>","add","<\/id>","(","<id>","to","Soap","Model","<\/id>","(","<id>","model","<\/id>",")",")",";","}","return","<id>","soap","Models","<\/id>",".","<id>","to","Array","<\/id>","(","new","<id>","resource","Type","Permission","Soap","<\/id>","[","<id>","soap","Models","<\/id>",".","<id>","size","<\/id>","(",")","]",")",";","}","<SENTENCE_END\/>"],"file_name":"ResourceTypePermissionSoap.java","formatted_lines":["{"," List<ResourceTypePermissionSoap> soapModels = new"," ArrayList<ResourceTypePermissionSoap>(models.size());",""," for (ResourceTypePermission model : models)"," {"," soapModels.add(toSoapModel(model));"," }",""," return soapModels.toArray(new ResourceTypePermissionSoap[soapModels.size()]);","}"],"function_name":"toSoapModels","function_name_tokens":["to","soap","models"],"id_body_hash":"39bd6129e13c56c9edcbac53efc88b63","id_same_identifier_list":[0,1,2,3,4,4,4,4,5,6,6,7,8,9,9,10,11,11,11,11,12,13,14,15,16,17,18,19,20,21,22,23,23,23,24,25,26,27,28,29,29,30,31,32,33,33,33,34,35,36,37,38,39,40,41,41,42,43,43,44,45,46,46,46,46,47,48,48,49,50,51,52,53,54,55,56,57],"option_correct":"toSoapModels","options":["getMatchedValue","invoke","doValidateSchemaVersion","toSoapModel","toSoapModels","_toSet","toModels"],"options_nlp":["get matched value","invoke","do validate schema version","to soap model","to soap models"," to set","to models"],"options_random":["getMatchedValue","invoke","doValidateSchemaVersion"],"options_tfidf":["toSoapModel","toModels","_toSet"],"project_name":"liferay-portal","source_code_string":"public static ResourceTypePermissionSoap[] toSoapModels(\n\t\tList<ResourceTypePermission> models) {\n\t\tList<ResourceTypePermissionSoap> soapModels = new ArrayList<ResourceTypePermissionSoap>(models.size());\n\n\t\tfor (ResourceTypePermission model : models) {\n\t\t\tsoapModels.add(toSoapModel(model));\n\t\t}\n\n\t\treturn soapModels.toArray(new ResourceTypePermissionSoap[soapModels.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":"list","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"<","start_char":8,"line":1},{"index_id":3,"token_group":3,"text":"resource","start_char":9,"line":1},{"index_id":4,"token_group":4,"text":"Type","start_char":17,"line":1},{"index_id":5,"token_group":4,"text":"Permission","start_char":21,"line":1},{"index_id":6,"token_group":4,"text":"Soap","start_char":31,"line":1},{"index_id":7,"token_group":4,"text":">","start_char":35,"line":1},{"index_id":8,"token_group":5,"text":"soap","start_char":37,"line":1},{"index_id":9,"token_group":6,"text":"Models","start_char":41,"line":1},{"index_id":10,"token_group":6,"text":"=","start_char":48,"line":1},{"index_id":11,"token_group":7,"text":"new","start_char":50,"line":1},{"index_id":12,"token_group":8,"text":"array","start_char":4,"line":2},{"index_id":13,"token_group":9,"text":"List","start_char":9,"line":2},{"index_id":14,"token_group":9,"text":"<","start_char":13,"line":2},{"index_id":15,"token_group":10,"text":"resource","start_char":14,"line":2},{"index_id":16,"token_group":11,"text":"Type","start_char":22,"line":2},{"index_id":17,"token_group":11,"text":"Permission","start_char":26,"line":2},{"index_id":18,"token_group":11,"text":"Soap","start_char":36,"line":2},{"index_id":19,"token_group":11,"text":">","start_char":40,"line":2},{"index_id":20,"token_group":12,"text":"(","start_char":41,"line":2},{"index_id":21,"token_group":13,"text":"models","start_char":42,"line":2},{"index_id":22,"token_group":14,"text":".","start_char":48,"line":2},{"index_id":23,"token_group":15,"text":"size","start_char":49,"line":2},{"index_id":24,"token_group":16,"text":"(","start_char":53,"line":2},{"index_id":25,"token_group":17,"text":")","start_char":54,"line":2},{"index_id":26,"token_group":18,"text":")","start_char":55,"line":2},{"index_id":27,"token_group":19,"text":";","start_char":56,"line":2},{"index_id":28,"token_group":20,"text":"for","start_char":4,"line":4},{"index_id":29,"token_group":21,"text":"(","start_char":8,"line":4},{"index_id":30,"token_group":22,"text":"resource","start_char":9,"line":4},{"index_id":31,"token_group":23,"text":"Type","start_char":17,"line":4},{"index_id":32,"token_group":23,"text":"Permission","start_char":21,"line":4},{"index_id":33,"token_group":23,"text":"model","start_char":32,"line":4},{"index_id":34,"token_group":24,"text":":","start_char":38,"line":4},{"index_id":35,"token_group":25,"text":"models","start_char":40,"line":4},{"index_id":36,"token_group":26,"text":")","start_char":46,"line":4},{"index_id":37,"token_group":27,"text":"{","start_char":4,"line":5},{"index_id":38,"token_group":28,"text":"soap","start_char":8,"line":6},{"index_id":39,"token_group":29,"text":"Models","start_char":12,"line":6},{"index_id":40,"token_group":29,"text":".","start_char":18,"line":6},{"index_id":41,"token_group":30,"text":"add","start_char":19,"line":6},{"index_id":42,"token_group":31,"text":"(","start_char":22,"line":6},{"index_id":43,"token_group":32,"text":"to","start_char":23,"line":6},{"index_id":44,"token_group":33,"text":"Soap","start_char":25,"line":6},{"index_id":45,"token_group":33,"text":"Model","start_char":29,"line":6},{"index_id":46,"token_group":33,"text":"(","start_char":34,"line":6},{"index_id":47,"token_group":34,"text":"model","start_char":35,"line":6},{"index_id":48,"token_group":35,"text":")","start_char":40,"line":6},{"index_id":49,"token_group":36,"text":")","start_char":41,"line":6},{"index_id":50,"token_group":37,"text":";","start_char":42,"line":6},{"index_id":51,"token_group":38,"text":"}","start_char":4,"line":7},{"index_id":52,"token_group":39,"text":"return","start_char":4,"line":9},{"index_id":53,"token_group":40,"text":"soap","start_char":11,"line":9},{"index_id":54,"token_group":41,"text":"Models","start_char":15,"line":9},{"index_id":55,"token_group":41,"text":".","start_char":21,"line":9},{"index_id":56,"token_group":42,"text":"to","start_char":22,"line":9},{"index_id":57,"token_group":43,"text":"Array","start_char":24,"line":9},{"index_id":58,"token_group":43,"text":"(","start_char":29,"line":9},{"index_id":59,"token_group":44,"text":"new","start_char":30,"line":9},{"index_id":60,"token_group":45,"text":"resource","start_char":34,"line":9},{"index_id":61,"token_group":46,"text":"Type","start_char":42,"line":9},{"index_id":62,"token_group":46,"text":"Permission","start_char":46,"line":9},{"index_id":63,"token_group":46,"text":"Soap","start_char":56,"line":9},{"index_id":64,"token_group":46,"text":"[","start_char":60,"line":9},{"index_id":65,"token_group":47,"text":"soap","start_char":61,"line":9},{"index_id":66,"token_group":48,"text":"Models","start_char":65,"line":9},{"index_id":67,"token_group":48,"text":".","start_char":71,"line":9},{"index_id":68,"token_group":49,"text":"size","start_char":72,"line":9},{"index_id":69,"token_group":50,"text":"(","start_char":76,"line":9},{"index_id":70,"token_group":51,"text":")","start_char":77,"line":9},{"index_id":71,"token_group":52,"text":"]","start_char":78,"line":9},{"index_id":72,"token_group":53,"text":")","start_char":79,"line":9},{"index_id":73,"token_group":54,"text":";","start_char":80,"line":9},{"index_id":74,"token_group":55,"text":"}","start_char":0,"line":10}],"tokens_list":["{","list","<","resource","Type","Permission","Soap",">","soap","Models","=","new","array","List","<","resource","Type","Permission","Soap",">","(","models",".","size","(",")",")",";","for","(","resource","Type","Permission","model",":","models",")","{","soap","Models",".","add","(","to","Soap","Model","(","model",")",")",";","}","return","soap","Models",".","to","Array","(","new","resource","Type","Permission","Soap","[","soap","Models",".","size","(",")","]",")",";","}"],"uuid":"2bf65a64aaffffa6b21dd25241084144"},{"cap_original_tokens":["<SENTENCE_START>","{","return","<id>","component","Note","<\/id>",";","}","<SENTENCE_END\/>"],"file_name":"PlainComponent.java","formatted_lines":["{"," return componentNote;","}"],"function_name":"getComponentNote","function_name_tokens":["get","component","note"],"id_body_hash":"7d1f85272029ab8795334039945ebecf","id_same_identifier_list":[0,1,2,3,3,4,5,6],"option_correct":"getComponentNote","options":["getComponentNote","getCommunityNote","getNote","getComponent","runXaResourceCommitTx","getExecutionRowCount","getAggregatedSelectExpression"],"options_nlp":["get component note","get community note","get note","get component","run xa resource commit tx","get execution row count","get aggregated select expression"],"options_random":["runXaResourceCommitTx","getExecutionRowCount","getAggregatedSelectExpression"],"options_tfidf":["getComponent","getNote","getCommunityNote"],"project_name":"hibernate-orm","source_code_string":"public String getComponentNote() {\n\t\treturn componentNote;\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":"component","start_char":11,"line":1},{"index_id":3,"token_group":3,"text":"Note","start_char":20,"line":1},{"index_id":4,"token_group":3,"text":";","start_char":24,"line":1},{"index_id":5,"token_group":4,"text":"}","start_char":0,"line":2}],"tokens_list":["{","return","component","Note",";","}"],"uuid":"b8a890c1ae754c65d9ffb04f6d98dbe7"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","our","Instance","<\/id>",".","<id>","do","Filter","<\/id>","(","<id>","in","<\/id>",")",";","}","<SENTENCE_END\/>"],"file_name":"FilterDescendantVirtualFiles.java","formatted_lines":["{"," ourInstance.doFilter(in);","}"],"function_name":"filter","function_name_tokens":["filter"],"id_body_hash":"4cd91bf99ebfd686176683a034de1303","id_same_identifier_list":[0,1,2,2,3,4,4,5,6,7,8,9,10],"option_correct":"filter","options":["createFilter","setFilter","filter","addFilter","testChangeSet","resolveAction","getDisplayText"],"options_nlp":["create filter","set filter","filter","add filter","test change set","resolve action","get display text"],"options_random":["testChangeSet","resolveAction","getDisplayText"],"options_tfidf":["addFilter","setFilter","createFilter"],"project_name":"intellij-community","source_code_string":"public static void filter(final List<VirtualFile> in) {\n ourInstance.doFilter(in);\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"our","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"Instance","start_char":7,"line":1},{"index_id":3,"token_group":2,"text":".","start_char":15,"line":1},{"index_id":4,"token_group":3,"text":"do","start_char":16,"line":1},{"index_id":5,"token_group":4,"text":"Filter","start_char":18,"line":1},{"index_id":6,"token_group":4,"text":"(","start_char":24,"line":1},{"index_id":7,"token_group":5,"text":"in","start_char":25,"line":1},{"index_id":8,"token_group":6,"text":")","start_char":27,"line":1},{"index_id":9,"token_group":7,"text":";","start_char":28,"line":1},{"index_id":10,"token_group":8,"text":"}","start_char":0,"line":2}],"tokens_list":["{","our","Instance",".","do","Filter","(","in",")",";","}"],"uuid":"ba173b419ca53f7c9ec5373a997bdf2b"},{"cap_original_tokens":["<SENTENCE_START>","{","return","new","<id>","blockquote","<\/id>","<","<id>","t","<\/id>",">","(","\"blockquote\"",",","<id>","e","<\/id>",",","<id>","opt","<\/id>","(","true",",","<id>","inline","<\/id>",",","false",")",")",";","}","<SENTENCE_END\/>"],"file_name":"Hamlet.java","formatted_lines":["{"," return new BLOCKQUOTE<T>(\"blockquote\", e, opt(true, inline, false));","}"],"function_name":"bq_","function_name_tokens":["bq"],"id_body_hash":"d3239b27541a1ed62cc03be6561337a2","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],"option_correct":"bq_","options":["testSeekAndReadPastEndOfFile","makeQualifiedLocated","testSeekReadClosedFile","testAsyncAPIPollTimeout","bq_","testFilterAclEntriesByAclSpecDefaultMaskCalculated","testBlockReadZeroByteFile"],"options_nlp":["test seek and read past end of file","make qualified located","test seek read closed file","test async api poll timeout","bq","test filter acl entries by acl spec default mask calculated","test block read zero byte file"],"options_random":["testFilterAclEntriesByAclSpecDefaultMaskCalculated","makeQualifiedLocated","testAsyncAPIPollTimeout"],"options_tfidf":["testBlockReadZeroByteFile","testSeekAndReadPastEndOfFile","testSeekReadClosedFile"],"project_name":"hadoop-common","source_code_string":"private <T extends _> BLOCKQUOTE<T> bq_(T e, boolean inline) {\n return new BLOCKQUOTE<T>(\"blockquote\", e, opt(true, inline, false)); }","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":"blockquote","start_char":15,"line":1},{"index_id":4,"token_group":4,"text":"<","start_char":25,"line":1},{"index_id":5,"token_group":5,"text":"t","start_char":26,"line":1},{"index_id":6,"token_group":6,"text":">","start_char":27,"line":1},{"index_id":7,"token_group":7,"text":"(","start_char":28,"line":1},{"index_id":8,"token_group":8,"text":"\"blockquote\"","start_char":29,"line":1},{"index_id":9,"token_group":9,"text":",","start_char":41,"line":1},{"index_id":10,"token_group":10,"text":"e","start_char":43,"line":1},{"index_id":11,"token_group":11,"text":",","start_char":44,"line":1},{"index_id":12,"token_group":12,"text":"opt","start_char":46,"line":1},{"index_id":13,"token_group":13,"text":"(","start_char":49,"line":1},{"index_id":14,"token_group":14,"text":"true","start_char":50,"line":1},{"index_id":15,"token_group":15,"text":",","start_char":54,"line":1},{"index_id":16,"token_group":16,"text":"inline","start_char":56,"line":1},{"index_id":17,"token_group":17,"text":",","start_char":62,"line":1},{"index_id":18,"token_group":18,"text":"false","start_char":64,"line":1},{"index_id":19,"token_group":19,"text":")","start_char":69,"line":1},{"index_id":20,"token_group":20,"text":")","start_char":70,"line":1},{"index_id":21,"token_group":21,"text":";","start_char":71,"line":1},{"index_id":22,"token_group":22,"text":"}","start_char":0,"line":2}],"tokens_list":["{","return","new","blockquote","<","t",">","(","\"blockquote\"",",","e",",","opt","(","true",",","inline",",","false",")",")",";","}"],"uuid":"1872d3b1599e00fe5f972703aa1bad35"},{"cap_original_tokens":["<SENTENCE_START>","{","return","<id>","name","Lookup","<\/id>",".","<id>","get","<\/id>","(","<id>","name","<\/id>",")",";","}","<SENTENCE_END\/>"],"file_name":"JqlStandardFunction.java","formatted_lines":["{"," return NAME_LOOKUP.get(name);","}"],"function_name":"byName","function_name_tokens":["by","name"],"id_body_hash":"6cb271cdb7c10f7f0c3f44e90200f9f7","id_same_identifier_list":[0,1,2,3,3,4,5,6,7,8,9,10,11],"option_correct":"byName","options":["findMethodByName","testAttributeNCName","byName","findByName","getLine1","testSuggestMethodReturnType","findFileByName"],"options_nlp":["find method by name","test attribute nc name","by name","find by name","get line 1","test suggest method return type","find file by name"],"options_random":["getLine1","testSuggestMethodReturnType","testAttributeNCName"],"options_tfidf":["findFileByName","findMethodByName","findByName"],"project_name":"intellij-community","source_code_string":"public static JqlStandardFunction byName(@NotNull String name) {\n return NAME_LOOKUP.get(name);\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":"name","start_char":11,"line":1},{"index_id":3,"token_group":3,"text":"Lookup","start_char":16,"line":1},{"index_id":4,"token_group":3,"text":".","start_char":22,"line":1},{"index_id":5,"token_group":4,"text":"get","start_char":23,"line":1},{"index_id":6,"token_group":5,"text":"(","start_char":26,"line":1},{"index_id":7,"token_group":6,"text":"name","start_char":27,"line":1},{"index_id":8,"token_group":7,"text":")","start_char":31,"line":1},{"index_id":9,"token_group":8,"text":";","start_char":32,"line":1},{"index_id":10,"token_group":9,"text":"}","start_char":0,"line":2}],"tokens_list":["{","return","name","Lookup",".","get","(","name",")",";","}"],"uuid":"9175be67ac39da27e4e07f20c50f55ca"},{"cap_original_tokens":["<SENTENCE_START>","{","return","<id>","joiner","<\/id>",".","<id>","on","<\/id>","(","\"\"",")",".","<id>","join","<\/id>","(","<id>","concat","<\/id>","(","<id>","immutable","List","<\/id>",".","<id>","of","<\/id>","(","<id>","class","Type","<\/id>",")",",","<id>","immutable","List","<\/id>",".","<id>","copy","Of","<\/id>","(","<id>","interface","Types","<\/id>",")",")",")",";","}","<SENTENCE_END\/>"],"file_name":"ClassDefinition.java","formatted_lines":["{"," return Joiner.on(\"\").join("," concat(ImmutableList.of(classType), ImmutableList.copyOf(interfaceTypes))"," );","}"],"function_name":"genericClassSignature","function_name_tokens":["generic","class","signature"],"id_body_hash":"3496be051f1eaaed31c5011e07536c16","id_same_identifier_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,14,15,16,17,18,18,19,20,21,21,22,23,23,24,25,25,26,27,28,29,30,31],"option_correct":"genericClassSignature","options":["genericClassSignature","readVInt","getViewData","ifSignature","notSignature","castSignature","run"],"options_nlp":["generic class signature","read v int","get view data","if signature","not signature","cast signature","run"],"options_random":["run","readVInt","getViewData"],"options_tfidf":["ifSignature","castSignature","notSignature"],"project_name":"presto","source_code_string":"public static String genericClassSignature(\n ParameterizedType classType,\n ParameterizedType... interfaceTypes\n )\n {\n return Joiner.on(\"\").join(\n concat(ImmutableList.of(classType), ImmutableList.copyOf(interfaceTypes))\n );\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":"joiner","start_char":11,"line":1},{"index_id":3,"token_group":3,"text":".","start_char":17,"line":1},{"index_id":4,"token_group":4,"text":"on","start_char":18,"line":1},{"index_id":5,"token_group":5,"text":"(","start_char":20,"line":1},{"index_id":6,"token_group":6,"text":"\"\"","start_char":21,"line":1},{"index_id":7,"token_group":7,"text":")","start_char":23,"line":1},{"index_id":8,"token_group":8,"text":".","start_char":24,"line":1},{"index_id":9,"token_group":9,"text":"join","start_char":25,"line":1},{"index_id":10,"token_group":10,"text":"(","start_char":29,"line":1},{"index_id":11,"token_group":11,"text":"concat","start_char":15,"line":2},{"index_id":12,"token_group":12,"text":"(","start_char":21,"line":2},{"index_id":13,"token_group":13,"text":"immutable","start_char":22,"line":2},{"index_id":14,"token_group":14,"text":"List","start_char":31,"line":2},{"index_id":15,"token_group":14,"text":".","start_char":35,"line":2},{"index_id":16,"token_group":15,"text":"of","start_char":36,"line":2},{"index_id":17,"token_group":16,"text":"(","start_char":38,"line":2},{"index_id":18,"token_group":17,"text":"class","start_char":39,"line":2},{"index_id":19,"token_group":18,"text":"Type","start_char":44,"line":2},{"index_id":20,"token_group":18,"text":")","start_char":48,"line":2},{"index_id":21,"token_group":19,"text":",","start_char":49,"line":2},{"index_id":22,"token_group":20,"text":"immutable","start_char":51,"line":2},{"index_id":23,"token_group":21,"text":"List","start_char":60,"line":2},{"index_id":24,"token_group":21,"text":".","start_char":64,"line":2},{"index_id":25,"token_group":22,"text":"copy","start_char":65,"line":2},{"index_id":26,"token_group":23,"text":"Of","start_char":69,"line":2},{"index_id":27,"token_group":23,"text":"(","start_char":71,"line":2},{"index_id":28,"token_group":24,"text":"interface","start_char":72,"line":2},{"index_id":29,"token_group":25,"text":"Types","start_char":81,"line":2},{"index_id":30,"token_group":25,"text":")","start_char":86,"line":2},{"index_id":31,"token_group":26,"text":")","start_char":87,"line":2},{"index_id":32,"token_group":27,"text":")","start_char":11,"line":3},{"index_id":33,"token_group":28,"text":";","start_char":12,"line":3},{"index_id":34,"token_group":29,"text":"}","start_char":0,"line":4}],"tokens_list":["{","return","joiner",".","on","(","\"\"",")",".","join","(","concat","(","immutable","List",".","of","(","class","Type",")",",","immutable","List",".","copy","Of","(","interface","Types",")",")",")",";","}"],"uuid":"dab9ebc5795b86ee5259ecd10c89bc0e"},{"cap_original_tokens":["<SENTENCE_START>","{","return","<id>","user","Local","Service","<\/id>",";","}","<SENTENCE_END\/>"],"file_name":"WorkflowDefinitionLinkLocalServiceBaseImpl.java","formatted_lines":["{"," return userLocalService;","}"],"function_name":"getUserLocalService","function_name_tokens":["get","user","local","service"],"id_body_hash":"dffb33a5c0ed2d4707763bf7322b623b","id_same_identifier_list":[0,1,2,3,3,3,4,5,6],"option_correct":"getUserLocalService","options":["popServiceContext","setManagerUserName","getUserLocalService","getUserService","getWrappedUserLocalService","setPhoneService","getUserGroupLocalService"],"options_nlp":["pop service context","set manager user name","get user local service","get user service","get wrapped user local service","set phone service","get user group local service"],"options_random":["popServiceContext","setManagerUserName","setPhoneService"],"options_tfidf":["getUserService","getUserGroupLocalService","getWrappedUserLocalService"],"project_name":"liferay-portal","source_code_string":"public com.liferay.portal.service.UserLocalService getUserLocalService() {\n\t\treturn userLocalService;\n\t}","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"return","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"user","start_char":11,"line":1},{"index_id":3,"token_group":3,"text":"Local","start_char":15,"line":1},{"index_id":4,"token_group":3,"text":"Service","start_char":20,"line":1},{"index_id":5,"token_group":3,"text":";","start_char":27,"line":1},{"index_id":6,"token_group":4,"text":"}","start_char":0,"line":2}],"tokens_list":["{","return","user","Local","Service",";","}"],"uuid":"2ef275fc2a29d458ca1c55e5d4296523"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","spel","Expression","Parser","<\/id>","<id>","parser","<\/id>","=","new","<id>","spel","Expression","Parser","<\/id>","(",")",";","<id>","standard","Evaluation","Context","<\/id>","<id>","ctx","<\/id>","=","new","<id>","standard","Evaluation","Context","<\/id>","(",")",";","<id>","ctx","<\/id>",".","<id>","add","Property","Accessor","<\/id>","(","new","<id>","fruit","Colour","Accessor","<\/id>","(",")",")",";","<id>","expression","<\/id>","<id>","expr","<\/id>","=","<id>","parser","<\/id>",".","<id>","parse","Raw","<\/id>","(","\"orange\"",")",";","<id>","object","<\/id>","<id>","value","<\/id>","=","<id>","expr","<\/id>",".","<id>","get","Value","<\/id>","(","<id>","ctx","<\/id>",")",";","<id>","assert","Equals","<\/id>","(","<id>","color","<\/id>",".","<id>","orange","<\/id>",",","<id>","value","<\/id>",")",";","try","{","<id>","expr","<\/id>",".","<id>","set","Value","<\/id>","(","<id>","ctx","<\/id>",",","<id>","color","<\/id>",".","<id>","blue","<\/id>",")",";","<id>","fail","<\/id>","(","\"Should not be allowed to set oranges to be blue !\"",")",";","}","catch","(","<id>","spel","Evaluation","Exception","<\/id>","<id>","ee","<\/id>",")","{","<id>","assert","Equals","<\/id>","(","<id>","ee","<\/id>",".","<id>","get","Message","Code","<\/id>","(",")",",","<id>","spel","Message","<\/id>",".","<id>","property","Or","Field","Not","Writable","On","Null","<\/id>",")",";","}","}","<SENTENCE_END\/>"],"file_name":"ExpressionLanguageScenarioTests.java","formatted_lines":["{",""," SpelExpressionParser parser = new SpelExpressionParser();",""," StandardEvaluationContext ctx = new StandardEvaluationContext();",""," ctx.addPropertyAccessor(new FruitColourAccessor());"," Expression expr = parser.parseRaw(\"orange\");"," Object value = expr.getValue(ctx);"," assertEquals(Color.orange, value);",""," try"," {"," expr.setValue(ctx, Color.blue);"," fail(\"Should not be allowed to set oranges to be blue !\");"," }"," catch (SpelEvaluationException ee)"," {"," assertEquals(ee.getMessageCode(),"," SpelMessage.PROPERTY_OR_FIELD_NOT_WRITABLE_ON_NULL);"," }","}"],"function_name":"testScenario_AddingYourOwnPropertyResolvers_1","function_name_tokens":["test","scenario","adding","your","own","property","resolvers","1"],"id_body_hash":"a74463d167876a6c741713194f5eab67","id_same_identifier_list":[0,1,2,2,2,3,4,5,6,6,6,7,8,9,10,10,10,11,12,13,14,14,14,15,16,17,18,19,20,20,20,21,22,23,23,23,24,25,26,27,28,29,30,31,32,33,33,34,35,36,37,38,39,40,41,42,43,43,44,45,46,47,48,48,49,50,51,52,53,54,55,56,57,58,59,60,61,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,78,78,79,80,81,82,82,83,84,85,86,86,86,87,88,89,90,90,91,92,92,92,92,92,92,92,93,94,95,96,97],"option_correct":"testScenario_AddingYourOwnPropertyResolvers_1","options":["indexerMapAccessor_12045","getPrincipalWithNativeSession","testScenario_AddingYourOwnPropertyResolvers_2","testAddingConstructorResolvers","echoException","addResolvers","testScenario_AddingYourOwnPropertyResolvers_1"],"options_nlp":["indexer map accessor 12045","get principal with native session","test scenario adding your own property resolvers 2","test adding constructor resolvers","echo exception","add resolvers","test scenario adding your own property resolvers 1"],"options_random":["indexerMapAccessor_12045","echoException","getPrincipalWithNativeSession"],"options_tfidf":["testScenario_AddingYourOwnPropertyResolvers_2","testAddingConstructorResolvers","addResolvers"],"project_name":"spring-framework","source_code_string":"@Test\n\tpublic void testScenario_AddingYourOwnPropertyResolvers_1() throws Exception {\n\t\t\n\t\tSpelExpressionParser parser = new SpelExpressionParser();\n\t\t\n\t\tStandardEvaluationContext ctx = new StandardEvaluationContext();\n\n\t\tctx.addPropertyAccessor(new FruitColourAccessor());\n\t\tExpression expr = parser.parseRaw(\"orange\");\n\t\tObject value = expr.getValue(ctx);\n\t\tassertEquals(Color.orange, value);\n\n\t\ttry {\n\t\t\texpr.setValue(ctx, Color.blue);\n\t\t\tfail(\"Should not be allowed to set oranges to be blue !\");\n\t\t} catch (SpelEvaluationException ee) {\n\t\t\tassertEquals(ee.getMessageCode(), SpelMessage.PROPERTY_OR_FIELD_NOT_WRITABLE_ON_NULL);\n\t\t}\n\t}","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"spel","start_char":4,"line":2},{"index_id":2,"token_group":2,"text":"Expression","start_char":8,"line":2},{"index_id":3,"token_group":2,"text":"Parser","start_char":18,"line":2},{"index_id":4,"token_group":2,"text":"parser","start_char":25,"line":2},{"index_id":5,"token_group":3,"text":"=","start_char":32,"line":2},{"index_id":6,"token_group":4,"text":"new","start_char":34,"line":2},{"index_id":7,"token_group":5,"text":"spel","start_char":38,"line":2},{"index_id":8,"token_group":6,"text":"Expression","start_char":42,"line":2},{"index_id":9,"token_group":6,"text":"Parser","start_char":52,"line":2},{"index_id":10,"token_group":6,"text":"(","start_char":58,"line":2},{"index_id":11,"token_group":7,"text":")","start_char":59,"line":2},{"index_id":12,"token_group":8,"text":";","start_char":60,"line":2},{"index_id":13,"token_group":9,"text":"standard","start_char":4,"line":4},{"index_id":14,"token_group":10,"text":"Evaluation","start_char":12,"line":4},{"index_id":15,"token_group":10,"text":"Context","start_char":22,"line":4},{"index_id":16,"token_group":10,"text":"ctx","start_char":30,"line":4},{"index_id":17,"token_group":11,"text":"=","start_char":34,"line":4},{"index_id":18,"token_group":12,"text":"new","start_char":36,"line":4},{"index_id":19,"token_group":13,"text":"standard","start_char":40,"line":4},{"index_id":20,"token_group":14,"text":"Evaluation","start_char":48,"line":4},{"index_id":21,"token_group":14,"text":"Context","start_char":58,"line":4},{"index_id":22,"token_group":14,"text":"(","start_char":65,"line":4},{"index_id":23,"token_group":15,"text":")","start_char":66,"line":4},{"index_id":24,"token_group":16,"text":";","start_char":67,"line":4},{"index_id":25,"token_group":17,"text":"ctx","start_char":4,"line":6},{"index_id":26,"token_group":18,"text":".","start_char":7,"line":6},{"index_id":27,"token_group":19,"text":"add","start_char":8,"line":6},{"index_id":28,"token_group":20,"text":"Property","start_char":11,"line":6},{"index_id":29,"token_group":20,"text":"Accessor","start_char":19,"line":6},{"index_id":30,"token_group":20,"text":"(","start_char":27,"line":6},{"index_id":31,"token_group":21,"text":"new","start_char":28,"line":6},{"index_id":32,"token_group":22,"text":"fruit","start_char":32,"line":6},{"index_id":33,"token_group":23,"text":"Colour","start_char":37,"line":6},{"index_id":34,"token_group":23,"text":"Accessor","start_char":43,"line":6},{"index_id":35,"token_group":23,"text":"(","start_char":51,"line":6},{"index_id":36,"token_group":24,"text":")","start_char":52,"line":6},{"index_id":37,"token_group":25,"text":")","start_char":53,"line":6},{"index_id":38,"token_group":26,"text":";","start_char":54,"line":6},{"index_id":39,"token_group":27,"text":"expression","start_char":4,"line":7},{"index_id":40,"token_group":28,"text":"expr","start_char":15,"line":7},{"index_id":41,"token_group":29,"text":"=","start_char":20,"line":7},{"index_id":42,"token_group":30,"text":"parser","start_char":22,"line":7},{"index_id":43,"token_group":31,"text":".","start_char":28,"line":7},{"index_id":44,"token_group":32,"text":"parse","start_char":29,"line":7},{"index_id":45,"token_group":33,"text":"Raw","start_char":34,"line":7},{"index_id":46,"token_group":33,"text":"(","start_char":37,"line":7},{"index_id":47,"token_group":34,"text":"\"orange\"","start_char":38,"line":7},{"index_id":48,"token_group":35,"text":")","start_char":46,"line":7},{"index_id":49,"token_group":36,"text":";","start_char":47,"line":7},{"index_id":50,"token_group":37,"text":"object","start_char":4,"line":8},{"index_id":51,"token_group":38,"text":"value","start_char":11,"line":8},{"index_id":52,"token_group":39,"text":"=","start_char":17,"line":8},{"index_id":53,"token_group":40,"text":"expr","start_char":19,"line":8},{"index_id":54,"token_group":41,"text":".","start_char":23,"line":8},{"index_id":55,"token_group":42,"text":"get","start_char":24,"line":8},{"index_id":56,"token_group":43,"text":"Value","start_char":27,"line":8},{"index_id":57,"token_group":43,"text":"(","start_char":32,"line":8},{"index_id":58,"token_group":44,"text":"ctx","start_char":33,"line":8},{"index_id":59,"token_group":45,"text":")","start_char":36,"line":8},{"index_id":60,"token_group":46,"text":";","start_char":37,"line":8},{"index_id":61,"token_group":47,"text":"assert","start_char":4,"line":9},{"index_id":62,"token_group":48,"text":"Equals","start_char":10,"line":9},{"index_id":63,"token_group":48,"text":"(","start_char":16,"line":9},{"index_id":64,"token_group":49,"text":"color","start_char":17,"line":9},{"index_id":65,"token_group":50,"text":".","start_char":22,"line":9},{"index_id":66,"token_group":51,"text":"orange","start_char":23,"line":9},{"index_id":67,"token_group":52,"text":",","start_char":29,"line":9},{"index_id":68,"token_group":53,"text":"value","start_char":31,"line":9},{"index_id":69,"token_group":54,"text":")","start_char":36,"line":9},{"index_id":70,"token_group":55,"text":";","start_char":37,"line":9},{"index_id":71,"token_group":56,"text":"try","start_char":4,"line":11},{"index_id":72,"token_group":57,"text":"{","start_char":4,"line":12},{"index_id":73,"token_group":58,"text":"expr","start_char":8,"line":13},{"index_id":74,"token_group":59,"text":".","start_char":12,"line":13},{"index_id":75,"token_group":60,"text":"set","start_char":13,"line":13},{"index_id":76,"token_group":61,"text":"Value","start_char":16,"line":13},{"index_id":77,"token_group":61,"text":"(","start_char":21,"line":13},{"index_id":78,"token_group":62,"text":"ctx","start_char":22,"line":13},{"index_id":79,"token_group":63,"text":",","start_char":25,"line":13},{"index_id":80,"token_group":64,"text":"color","start_char":27,"line":13},{"index_id":81,"token_group":65,"text":".","start_char":32,"line":13},{"index_id":82,"token_group":66,"text":"blue","start_char":33,"line":13},{"index_id":83,"token_group":67,"text":")","start_char":37,"line":13},{"index_id":84,"token_group":68,"text":";","start_char":38,"line":13},{"index_id":85,"token_group":69,"text":"fail","start_char":8,"line":14},{"index_id":86,"token_group":70,"text":"(","start_char":12,"line":14},{"index_id":87,"token_group":71,"text":"\"Should not be allowed to set oranges to be blue !\"","start_char":13,"line":14},{"index_id":88,"token_group":72,"text":")","start_char":64,"line":14},{"index_id":89,"token_group":73,"text":";","start_char":65,"line":14},{"index_id":90,"token_group":74,"text":"}","start_char":4,"line":15},{"index_id":91,"token_group":75,"text":"catch","start_char":4,"line":16},{"index_id":92,"token_group":76,"text":"(","start_char":10,"line":16},{"index_id":93,"token_group":77,"text":"spel","start_char":11,"line":16},{"index_id":94,"token_group":78,"text":"Evaluation","start_char":15,"line":16},{"index_id":95,"token_group":78,"text":"Exception","start_char":25,"line":16},{"index_id":96,"token_group":78,"text":"ee","start_char":35,"line":16},{"index_id":97,"token_group":79,"text":")","start_char":37,"line":16},{"index_id":98,"token_group":80,"text":"{","start_char":4,"line":17},{"index_id":99,"token_group":81,"text":"assert","start_char":8,"line":18},{"index_id":100,"token_group":82,"text":"Equals","start_char":14,"line":18},{"index_id":101,"token_group":82,"text":"(","start_char":20,"line":18},{"index_id":102,"token_group":83,"text":"ee","start_char":21,"line":18},{"index_id":103,"token_group":84,"text":".","start_char":23,"line":18},{"index_id":104,"token_group":85,"text":"get","start_char":24,"line":18},{"index_id":105,"token_group":86,"text":"Message","start_char":27,"line":18},{"index_id":106,"token_group":86,"text":"Code","start_char":34,"line":18},{"index_id":107,"token_group":86,"text":"(","start_char":38,"line":18},{"index_id":108,"token_group":87,"text":")","start_char":39,"line":18},{"index_id":109,"token_group":88,"text":",","start_char":40,"line":18},{"index_id":110,"token_group":89,"text":"spel","start_char":21,"line":19},{"index_id":111,"token_group":90,"text":"Message","start_char":25,"line":19},{"index_id":112,"token_group":90,"text":".","start_char":32,"line":19},{"index_id":113,"token_group":91,"text":"property","start_char":33,"line":19},{"index_id":114,"token_group":92,"text":"Or","start_char":42,"line":19},{"index_id":115,"token_group":92,"text":"Field","start_char":45,"line":19},{"index_id":116,"token_group":92,"text":"Not","start_char":51,"line":19},{"index_id":117,"token_group":92,"text":"Writable","start_char":55,"line":19},{"index_id":118,"token_group":92,"text":"On","start_char":64,"line":19},{"index_id":119,"token_group":92,"text":"Null","start_char":67,"line":19},{"index_id":120,"token_group":92,"text":")","start_char":71,"line":19},{"index_id":121,"token_group":93,"text":";","start_char":72,"line":19},{"index_id":122,"token_group":94,"text":"}","start_char":4,"line":20},{"index_id":123,"token_group":95,"text":"}","start_char":0,"line":21}],"tokens_list":["{","spel","Expression","Parser","parser","=","new","spel","Expression","Parser","(",")",";","standard","Evaluation","Context","ctx","=","new","standard","Evaluation","Context","(",")",";","ctx",".","add","Property","Accessor","(","new","fruit","Colour","Accessor","(",")",")",";","expression","expr","=","parser",".","parse","Raw","(","\"orange\"",")",";","object","value","=","expr",".","get","Value","(","ctx",")",";","assert","Equals","(","color",".","orange",",","value",")",";","try","{","expr",".","set","Value","(","ctx",",","color",".","blue",")",";","fail","(","\"Should not be allowed to set oranges to be blue !\"",")",";","}","catch","(","spel","Evaluation","Exception","ee",")","{","assert","Equals","(","ee",".","get","Message","Code","(",")",",","spel","Message",".","property","Or","Field","Not","Writable","On","Null",")",";","}","}"],"uuid":"f266638355f7b951b177fd26b2094ef3"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","exception","Handler","Method","Resolver","<\/id>","<id>","resolver","<\/id>","=","new","<id>","exception","Handler","Method","Resolver","<\/id>","(","<id>","exception","Controller","<\/id>",".","class",")",";","<id>","socket","Exception","<\/id>","<id>","exception","<\/id>","=","new","<id>","socket","Exception","<\/id>","(",")",";","<id>","assert","Equals","<\/id>","(","\"handleSocketException\"",",","<id>","resolver","<\/id>",".","<id>","resolve","Method","<\/id>","(","<id>","exception","<\/id>",")",".","<id>","get","Name","<\/id>","(",")",")",";","}","<SENTENCE_END\/>"],"file_name":"ExceptionHandlerMethodResolverTests.java","formatted_lines":["{"," ExceptionHandlerMethodResolver resolver = new ExceptionHandlerMethodResolver("," ExceptionController.class);"," SocketException exception = new SocketException();"," assertEquals(\"handleSocketException\","," resolver.resolveMethod(exception).getName());","}"],"function_name":"resolveMethodBestMatch","function_name_tokens":["resolve","method","best","match"],"id_body_hash":"a2305a8f7304f8045f4b8aa2eeb5b536","id_same_identifier_list":[0,1,2,2,2,2,3,4,5,6,6,6,6,7,8,8,9,10,11,12,13,13,14,15,16,17,17,18,19,20,21,21,22,23,24,25,26,27,27,28,29,30,31,32,32,33,34,35,36,37,38],"option_correct":"resolveMethodBestMatch","options":["logException","httpEntityCallback","resolveMethodBestMatch","SPR9486_floatNotEqFloat","bestMatchWildcard","resolveMethodNoMatch","resolveMethod"],"options_nlp":["log exception","http entity callback","resolve method best match","spr 9486 float not eq float","best match wildcard","resolve method no match","resolve method"],"options_random":["SPR9486_floatNotEqFloat","logException","httpEntityCallback"],"options_tfidf":["resolveMethod","bestMatchWildcard","resolveMethodNoMatch"],"project_name":"spring-framework","source_code_string":"@Test\n\tpublic void resolveMethodBestMatch() {\n\t\tExceptionHandlerMethodResolver resolver = new ExceptionHandlerMethodResolver(ExceptionController.class);\n\t\tSocketException exception = new SocketException();\n\t\tassertEquals(\"handleSocketException\", resolver.resolveMethod(exception).getName());\n\t}","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"exception","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"Handler","start_char":13,"line":1},{"index_id":3,"token_group":2,"text":"Method","start_char":20,"line":1},{"index_id":4,"token_group":2,"text":"Resolver","start_char":26,"line":1},{"index_id":5,"token_group":2,"text":"resolver","start_char":35,"line":1},{"index_id":6,"token_group":3,"text":"=","start_char":44,"line":1},{"index_id":7,"token_group":4,"text":"new","start_char":46,"line":1},{"index_id":8,"token_group":5,"text":"exception","start_char":50,"line":1},{"index_id":9,"token_group":6,"text":"Handler","start_char":59,"line":1},{"index_id":10,"token_group":6,"text":"Method","start_char":66,"line":1},{"index_id":11,"token_group":6,"text":"Resolver","start_char":72,"line":1},{"index_id":12,"token_group":6,"text":"(","start_char":80,"line":1},{"index_id":13,"token_group":7,"text":"exception","start_char":8,"line":2},{"index_id":14,"token_group":8,"text":"Controller","start_char":17,"line":2},{"index_id":15,"token_group":8,"text":".","start_char":27,"line":2},{"index_id":16,"token_group":9,"text":"class","start_char":28,"line":2},{"index_id":17,"token_group":10,"text":")","start_char":33,"line":2},{"index_id":18,"token_group":11,"text":";","start_char":34,"line":2},{"index_id":19,"token_group":12,"text":"socket","start_char":4,"line":3},{"index_id":20,"token_group":13,"text":"Exception","start_char":10,"line":3},{"index_id":21,"token_group":13,"text":"exception","start_char":20,"line":3},{"index_id":22,"token_group":14,"text":"=","start_char":30,"line":3},{"index_id":23,"token_group":15,"text":"new","start_char":32,"line":3},{"index_id":24,"token_group":16,"text":"socket","start_char":36,"line":3},{"index_id":25,"token_group":17,"text":"Exception","start_char":42,"line":3},{"index_id":26,"token_group":17,"text":"(","start_char":51,"line":3},{"index_id":27,"token_group":18,"text":")","start_char":52,"line":3},{"index_id":28,"token_group":19,"text":";","start_char":53,"line":3},{"index_id":29,"token_group":20,"text":"assert","start_char":4,"line":4},{"index_id":30,"token_group":21,"text":"Equals","start_char":10,"line":4},{"index_id":31,"token_group":21,"text":"(","start_char":16,"line":4},{"index_id":32,"token_group":22,"text":"\"handleSocketException\"","start_char":17,"line":4},{"index_id":33,"token_group":23,"text":",","start_char":40,"line":4},{"index_id":34,"token_group":24,"text":"resolver","start_char":17,"line":5},{"index_id":35,"token_group":25,"text":".","start_char":25,"line":5},{"index_id":36,"token_group":26,"text":"resolve","start_char":26,"line":5},{"index_id":37,"token_group":27,"text":"Method","start_char":33,"line":5},{"index_id":38,"token_group":27,"text":"(","start_char":39,"line":5},{"index_id":39,"token_group":28,"text":"exception","start_char":40,"line":5},{"index_id":40,"token_group":29,"text":")","start_char":49,"line":5},{"index_id":41,"token_group":30,"text":".","start_char":50,"line":5},{"index_id":42,"token_group":31,"text":"get","start_char":51,"line":5},{"index_id":43,"token_group":32,"text":"Name","start_char":54,"line":5},{"index_id":44,"token_group":32,"text":"(","start_char":58,"line":5},{"index_id":45,"token_group":33,"text":")","start_char":59,"line":5},{"index_id":46,"token_group":34,"text":")","start_char":60,"line":5},{"index_id":47,"token_group":35,"text":";","start_char":61,"line":5},{"index_id":48,"token_group":36,"text":"}","start_char":0,"line":6}],"tokens_list":["{","exception","Handler","Method","Resolver","resolver","=","new","exception","Handler","Method","Resolver","(","exception","Controller",".","class",")",";","socket","Exception","exception","=","new","socket","Exception","(",")",";","assert","Equals","(","\"handleSocketException\"",",","resolver",".","resolve","Method","(","exception",")",".","get","Name","(",")",")",";","}"],"uuid":"952f2e03eadbbd97e46d436fef0fb00f"},{"cap_original_tokens":["<SENTENCE_START>","{","<id>","collection","<\/id>","<","<id>","string","<\/id>",">","<id>","activated","Profiles","<\/id>","=","<id>","my","Mark","State","Descriptor","<\/id>",".","<id>","get","Activated","Profiles","<\/id>","(",")",";","<id>","maven","Explicit","Profiles","<\/id>","<id>","new","Selected","Profiles","<\/id>","=","<id>","maven","Explicit","Profiles","<\/id>",".","<id>","none","<\/id>",".","<id>","clone","<\/id>","(",")",";","for","(","<id>","map","<\/id>",".","<id>","entry","<\/id>","<","<id>","string","<\/id>",",","<id>","maven","Profile","Kind","<\/id>",">","<id>","entry","<\/id>",":","<id>","profile","Chooser","<\/id>",".","<id>","get","Element","Mark","States","<\/id>","(",")",".","<id>","entry","Set","<\/id>","(",")",")","{","<id>","string","<\/id>","<id>","profile","<\/id>","=","<id>","entry","<\/id>",".","<id>","get","Key","<\/id>","(",")",";","<id>","maven","Profile","Kind","<\/id>","<id>","profile","Kind","<\/id>","=","<id>","entry","<\/id>",".","<id>","get","Value","<\/id>","(",")",";","switch","(","<id>","profile","Kind","<\/id>",")","{","case","<id>","none","<\/id>",":","if","(","<id>","activated","Profiles","<\/id>",".","<id>","contains","<\/id>","(","<id>","profile","<\/id>",")",")","{","<id>","new","Selected","Profiles","<\/id>",".","<id>","get","Disabled","Profiles","<\/id>","(",")",".","<id>","add","<\/id>","(","<id>","profile","<\/id>",")",";","}","break",";","case","<id>","explicit","<\/id>",":","<id>","new","Selected","Profiles","<\/id>",".","<id>","get","Enabled","Profiles","<\/id>","(",")",".","<id>","add","<\/id>","(","<id>","profile","<\/id>",")",";","break",";","case","<id>","implicit","<\/id>",":","break",";","}","}","return","<id>","get","Builder","<\/id>","(",")",".","<id>","set","Selected","Profiles","<\/id>","(","<id>","new","Selected","Profiles","<\/id>",")",";","}","<SENTENCE_END\/>"],"file_name":"SelectProfilesStep.java","formatted_lines":["{"," Collection<String> activatedProfiles = myMarkStateDescriptor.getActivatedProfiles();"," MavenExplicitProfiles newSelectedProfiles = MavenExplicitProfiles.NONE.clone();"," for (Map.Entry<String, MavenProfileKind> entry : profileChooser.getElementMarkStates().entrySet())"," {"," String profile = entry.getKey();"," MavenProfileKind profileKind = entry.getValue();"," switch (profileKind)"," {"," case NONE:"," if (activatedProfiles.contains(profile))"," {"," newSelectedProfiles.getDisabledProfiles().add(profile);"," }"," break;"," case EXPLICIT:"," newSelectedProfiles.getEnabledProfiles().add(profile);"," break;"," case IMPLICIT:"," break;"," }"," }"," return getBuilder().setSelectedProfiles(newSelectedProfiles);","}"],"function_name":"validate","function_name_tokens":["validate"],"id_body_hash":"f4bb67195ca208972cea2c9ebb9dd204","id_same_identifier_list":[0,1,2,3,4,5,6,6,7,8,8,8,8,9,10,10,10,11,12,13,14,14,14,15,15,15,16,17,17,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,33,33,34,35,36,37,37,38,39,39,39,39,40,41,42,43,43,44,45,46,47,48,49,50,51,52,53,53,54,55,56,57,57,57,58,58,59,60,61,62,62,63,64,65,66,67,68,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,84,84,85,86,86,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,101,101,102,103,103,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,122,123,124,125,126,126,126,127,128,128,128,129,130,131,132],"option_correct":"validate","options":["assertSubBars","validateNode","parseWithoutBuildingTree","validateData","testCollectionsEmptySetInMethodCall","validate","doValidate"],"options_nlp":["assert sub bars","validate node","parse without building tree","validate data","test collections empty set in method call","validate","do validate"],"options_random":["assertSubBars","testCollectionsEmptySetInMethodCall","parseWithoutBuildingTree"],"options_tfidf":["validateData","validateNode","doValidate"],"project_name":"intellij-community","source_code_string":"public boolean validate() throws ConfigurationException {\n Collection<String> activatedProfiles = myMarkStateDescriptor.getActivatedProfiles();\n MavenExplicitProfiles newSelectedProfiles = MavenExplicitProfiles.NONE.clone();\n for (Map.Entry<String, MavenProfileKind> entry : profileChooser.getElementMarkStates().entrySet()) {\n String profile = entry.getKey();\n MavenProfileKind profileKind = entry.getValue();\n switch (profileKind) {\n case NONE:\n if (activatedProfiles.contains(profile)) {\n newSelectedProfiles.getDisabledProfiles().add(profile);\n }\n break;\n case EXPLICIT:\n newSelectedProfiles.getEnabledProfiles().add(profile);\n break;\n case IMPLICIT:\n break;\n }\n }\n return getBuilder().setSelectedProfiles(newSelectedProfiles);\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"collection","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"<","start_char":14,"line":1},{"index_id":3,"token_group":3,"text":"string","start_char":15,"line":1},{"index_id":4,"token_group":4,"text":">","start_char":21,"line":1},{"index_id":5,"token_group":5,"text":"activated","start_char":23,"line":1},{"index_id":6,"token_group":6,"text":"Profiles","start_char":32,"line":1},{"index_id":7,"token_group":6,"text":"=","start_char":41,"line":1},{"index_id":8,"token_group":7,"text":"my","start_char":43,"line":1},{"index_id":9,"token_group":8,"text":"Mark","start_char":45,"line":1},{"index_id":10,"token_group":8,"text":"State","start_char":49,"line":1},{"index_id":11,"token_group":8,"text":"Descriptor","start_char":54,"line":1},{"index_id":12,"token_group":8,"text":".","start_char":64,"line":1},{"index_id":13,"token_group":9,"text":"get","start_char":65,"line":1},{"index_id":14,"token_group":10,"text":"Activated","start_char":68,"line":1},{"index_id":15,"token_group":10,"text":"Profiles","start_char":77,"line":1},{"index_id":16,"token_group":10,"text":"(","start_char":85,"line":1},{"index_id":17,"token_group":11,"text":")","start_char":86,"line":1},{"index_id":18,"token_group":12,"text":";","start_char":87,"line":1},{"index_id":19,"token_group":13,"text":"maven","start_char":4,"line":2},{"index_id":20,"token_group":14,"text":"Explicit","start_char":9,"line":2},{"index_id":21,"token_group":14,"text":"Profiles","start_char":17,"line":2},{"index_id":22,"token_group":14,"text":"new","start_char":26,"line":2},{"index_id":23,"token_group":15,"text":"Selected","start_char":29,"line":2},{"index_id":24,"token_group":15,"text":"Profiles","start_char":37,"line":2},{"index_id":25,"token_group":15,"text":"=","start_char":46,"line":2},{"index_id":26,"token_group":16,"text":"maven","start_char":48,"line":2},{"index_id":27,"token_group":17,"text":"Explicit","start_char":53,"line":2},{"index_id":28,"token_group":17,"text":"Profiles","start_char":61,"line":2},{"index_id":29,"token_group":17,"text":".","start_char":69,"line":2},{"index_id":30,"token_group":18,"text":"none","start_char":70,"line":2},{"index_id":31,"token_group":19,"text":".","start_char":74,"line":2},{"index_id":32,"token_group":20,"text":"clone","start_char":75,"line":2},{"index_id":33,"token_group":21,"text":"(","start_char":80,"line":2},{"index_id":34,"token_group":22,"text":")","start_char":81,"line":2},{"index_id":35,"token_group":23,"text":";","start_char":82,"line":2},{"index_id":36,"token_group":24,"text":"for","start_char":4,"line":3},{"index_id":37,"token_group":25,"text":"(","start_char":8,"line":3},{"index_id":38,"token_group":26,"text":"map","start_char":9,"line":3},{"index_id":39,"token_group":27,"text":".","start_char":12,"line":3},{"index_id":40,"token_group":28,"text":"entry","start_char":13,"line":3},{"index_id":41,"token_group":29,"text":"<","start_char":18,"line":3},{"index_id":42,"token_group":30,"text":"string","start_char":19,"line":3},{"index_id":43,"token_group":31,"text":",","start_char":25,"line":3},{"index_id":44,"token_group":32,"text":"maven","start_char":27,"line":3},{"index_id":45,"token_group":33,"text":"Profile","start_char":32,"line":3},{"index_id":46,"token_group":33,"text":"Kind","start_char":39,"line":3},{"index_id":47,"token_group":33,"text":">","start_char":43,"line":3},{"index_id":48,"token_group":34,"text":"entry","start_char":45,"line":3},{"index_id":49,"token_group":35,"text":":","start_char":51,"line":3},{"index_id":50,"token_group":36,"text":"profile","start_char":53,"line":3},{"index_id":51,"token_group":37,"text":"Chooser","start_char":60,"line":3},{"index_id":52,"token_group":37,"text":".","start_char":67,"line":3},{"index_id":53,"token_group":38,"text":"get","start_char":68,"line":3},{"index_id":54,"token_group":39,"text":"Element","start_char":71,"line":3},{"index_id":55,"token_group":39,"text":"Mark","start_char":78,"line":3},{"index_id":56,"token_group":39,"text":"States","start_char":82,"line":3},{"index_id":57,"token_group":39,"text":"(","start_char":88,"line":3},{"index_id":58,"token_group":40,"text":")","start_char":89,"line":3},{"index_id":59,"token_group":41,"text":".","start_char":90,"line":3},{"index_id":60,"token_group":42,"text":"entry","start_char":91,"line":3},{"index_id":61,"token_group":43,"text":"Set","start_char":96,"line":3},{"index_id":62,"token_group":43,"text":"(","start_char":99,"line":3},{"index_id":63,"token_group":44,"text":")","start_char":100,"line":3},{"index_id":64,"token_group":45,"text":")","start_char":101,"line":3},{"index_id":65,"token_group":46,"text":"{","start_char":4,"line":4},{"index_id":66,"token_group":47,"text":"string","start_char":8,"line":5},{"index_id":67,"token_group":48,"text":"profile","start_char":15,"line":5},{"index_id":68,"token_group":49,"text":"=","start_char":23,"line":5},{"index_id":69,"token_group":50,"text":"entry","start_char":25,"line":5},{"index_id":70,"token_group":51,"text":".","start_char":30,"line":5},{"index_id":71,"token_group":52,"text":"get","start_char":31,"line":5},{"index_id":72,"token_group":53,"text":"Key","start_char":34,"line":5},{"index_id":73,"token_group":53,"text":"(","start_char":37,"line":5},{"index_id":74,"token_group":54,"text":")","start_char":38,"line":5},{"index_id":75,"token_group":55,"text":";","start_char":39,"line":5},{"index_id":76,"token_group":56,"text":"maven","start_char":8,"line":6},{"index_id":77,"token_group":57,"text":"Profile","start_char":13,"line":6},{"index_id":78,"token_group":57,"text":"Kind","start_char":20,"line":6},{"index_id":79,"token_group":57,"text":"profile","start_char":25,"line":6},{"index_id":80,"token_group":58,"text":"Kind","start_char":32,"line":6},{"index_id":81,"token_group":58,"text":"=","start_char":37,"line":6},{"index_id":82,"token_group":59,"text":"entry","start_char":39,"line":6},{"index_id":83,"token_group":60,"text":".","start_char":44,"line":6},{"index_id":84,"token_group":61,"text":"get","start_char":45,"line":6},{"index_id":85,"token_group":62,"text":"Value","start_char":48,"line":6},{"index_id":86,"token_group":62,"text":"(","start_char":53,"line":6},{"index_id":87,"token_group":63,"text":")","start_char":54,"line":6},{"index_id":88,"token_group":64,"text":";","start_char":55,"line":6},{"index_id":89,"token_group":65,"text":"switch","start_char":8,"line":7},{"index_id":90,"token_group":66,"text":"(","start_char":15,"line":7},{"index_id":91,"token_group":67,"text":"profile","start_char":16,"line":7},{"index_id":92,"token_group":68,"text":"Kind","start_char":23,"line":7},{"index_id":93,"token_group":68,"text":")","start_char":27,"line":7},{"index_id":94,"token_group":69,"text":"{","start_char":8,"line":8},{"index_id":95,"token_group":70,"text":"case","start_char":8,"line":9},{"index_id":96,"token_group":71,"text":"none","start_char":13,"line":9},{"index_id":97,"token_group":72,"text":":","start_char":17,"line":9},{"index_id":98,"token_group":73,"text":"if","start_char":12,"line":10},{"index_id":99,"token_group":74,"text":"(","start_char":15,"line":10},{"index_id":100,"token_group":75,"text":"activated","start_char":16,"line":10},{"index_id":101,"token_group":76,"text":"Profiles","start_char":25,"line":10},{"index_id":102,"token_group":76,"text":".","start_char":33,"line":10},{"index_id":103,"token_group":77,"text":"contains","start_char":34,"line":10},{"index_id":104,"token_group":78,"text":"(","start_char":42,"line":10},{"index_id":105,"token_group":79,"text":"profile","start_char":43,"line":10},{"index_id":106,"token_group":80,"text":")","start_char":50,"line":10},{"index_id":107,"token_group":81,"text":")","start_char":51,"line":10},{"index_id":108,"token_group":82,"text":"{","start_char":12,"line":11},{"index_id":109,"token_group":83,"text":"new","start_char":16,"line":12},{"index_id":110,"token_group":84,"text":"Selected","start_char":19,"line":12},{"index_id":111,"token_group":84,"text":"Profiles","start_char":27,"line":12},{"index_id":112,"token_group":84,"text":".","start_char":35,"line":12},{"index_id":113,"token_group":85,"text":"get","start_char":36,"line":12},{"index_id":114,"token_group":86,"text":"Disabled","start_char":39,"line":12},{"index_id":115,"token_group":86,"text":"Profiles","start_char":47,"line":12},{"index_id":116,"token_group":86,"text":"(","start_char":55,"line":12},{"index_id":117,"token_group":87,"text":")","start_char":56,"line":12},{"index_id":118,"token_group":88,"text":".","start_char":57,"line":12},{"index_id":119,"token_group":89,"text":"add","start_char":58,"line":12},{"index_id":120,"token_group":90,"text":"(","start_char":61,"line":12},{"index_id":121,"token_group":91,"text":"profile","start_char":62,"line":12},{"index_id":122,"token_group":92,"text":")","start_char":69,"line":12},{"index_id":123,"token_group":93,"text":";","start_char":70,"line":12},{"index_id":124,"token_group":94,"text":"}","start_char":12,"line":13},{"index_id":125,"token_group":95,"text":"break","start_char":12,"line":14},{"index_id":126,"token_group":96,"text":";","start_char":17,"line":14},{"index_id":127,"token_group":97,"text":"case","start_char":8,"line":15},{"index_id":128,"token_group":98,"text":"explicit","start_char":13,"line":15},{"index_id":129,"token_group":99,"text":":","start_char":21,"line":15},{"index_id":130,"token_group":100,"text":"new","start_char":12,"line":16},{"index_id":131,"token_group":101,"text":"Selected","start_char":15,"line":16},{"index_id":132,"token_group":101,"text":"Profiles","start_char":23,"line":16},{"index_id":133,"token_group":101,"text":".","start_char":31,"line":16},{"index_id":134,"token_group":102,"text":"get","start_char":32,"line":16},{"index_id":135,"token_group":103,"text":"Enabled","start_char":35,"line":16},{"index_id":136,"token_group":103,"text":"Profiles","start_char":42,"line":16},{"index_id":137,"token_group":103,"text":"(","start_char":50,"line":16},{"index_id":138,"token_group":104,"text":")","start_char":51,"line":16},{"index_id":139,"token_group":105,"text":".","start_char":52,"line":16},{"index_id":140,"token_group":106,"text":"add","start_char":53,"line":16},{"index_id":141,"token_group":107,"text":"(","start_char":56,"line":16},{"index_id":142,"token_group":108,"text":"profile","start_char":57,"line":16},{"index_id":143,"token_group":109,"text":")","start_char":64,"line":16},{"index_id":144,"token_group":110,"text":";","start_char":65,"line":16},{"index_id":145,"token_group":111,"text":"break","start_char":12,"line":17},{"index_id":146,"token_group":112,"text":";","start_char":17,"line":17},{"index_id":147,"token_group":113,"text":"case","start_char":8,"line":18},{"index_id":148,"token_group":114,"text":"implicit","start_char":13,"line":18},{"index_id":149,"token_group":115,"text":":","start_char":21,"line":18},{"index_id":150,"token_group":116,"text":"break","start_char":12,"line":19},{"index_id":151,"token_group":117,"text":";","start_char":17,"line":19},{"index_id":152,"token_group":118,"text":"}","start_char":8,"line":20},{"index_id":153,"token_group":119,"text":"}","start_char":4,"line":21},{"index_id":154,"token_group":120,"text":"return","start_char":4,"line":22},{"index_id":155,"token_group":121,"text":"get","start_char":11,"line":22},{"index_id":156,"token_group":122,"text":"Builder","start_char":14,"line":22},{"index_id":157,"token_group":122,"text":"(","start_char":21,"line":22},{"index_id":158,"token_group":123,"text":")","start_char":22,"line":22},{"index_id":159,"token_group":124,"text":".","start_char":23,"line":22},{"index_id":160,"token_group":125,"text":"set","start_char":24,"line":22},{"index_id":161,"token_group":126,"text":"Selected","start_char":27,"line":22},{"index_id":162,"token_group":126,"text":"Profiles","start_char":35,"line":22},{"index_id":163,"token_group":126,"text":"(","start_char":43,"line":22},{"index_id":164,"token_group":127,"text":"new","start_char":44,"line":22},{"index_id":165,"token_group":128,"text":"Selected","start_char":47,"line":22},{"index_id":166,"token_group":128,"text":"Profiles","start_char":55,"line":22},{"index_id":167,"token_group":128,"text":")","start_char":63,"line":22},{"index_id":168,"token_group":129,"text":";","start_char":64,"line":22},{"index_id":169,"token_group":130,"text":"}","start_char":0,"line":23}],"tokens_list":["{","collection","<","string",">","activated","Profiles","=","my","Mark","State","Descriptor",".","get","Activated","Profiles","(",")",";","maven","Explicit","Profiles","new","Selected","Profiles","=","maven","Explicit","Profiles",".","none",".","clone","(",")",";","for","(","map",".","entry","<","string",",","maven","Profile","Kind",">","entry",":","profile","Chooser",".","get","Element","Mark","States","(",")",".","entry","Set","(",")",")","{","string","profile","=","entry",".","get","Key","(",")",";","maven","Profile","Kind","profile","Kind","=","entry",".","get","Value","(",")",";","switch","(","profile","Kind",")","{","case","none",":","if","(","activated","Profiles",".","contains","(","profile",")",")","{","new","Selected","Profiles",".","get","Disabled","Profiles","(",")",".","add","(","profile",")",";","}","break",";","case","explicit",":","new","Selected","Profiles",".","get","Enabled","Profiles","(",")",".","add","(","profile",")",";","break",";","case","implicit",":","break",";","}","}","return","get","Builder","(",")",".","set","Selected","Profiles","(","new","Selected","Profiles",")",";","}"],"uuid":"233f2946f23f0020681f237064ecd689"},{"cap_original_tokens":["<SENTENCE_START>","{","final","int","<id>","limit","<\/id>","=","<id>","uid","<\/id>",".","<id>","offset","<\/id>","+","<id>","uid","<\/id>",".","<id>","length","<\/id>",";","for","(","int","<id>","i","<\/id>","=","<id>","uid","<\/id>",".","<id>","offset","<\/id>",";","<id>","i","<\/id>","<","<id>","limit","<\/id>",";","<id>","i","<\/id>","++",")","{","if","(","<id>","uid","<\/id>",".","<id>","bytes","<\/id>","[","<id>","i","<\/id>","]","==","<id>","delimiter","Byte","<\/id>",")","{","return","true",";","}","}","return","false",";","}","<SENTENCE_END\/>"],"file_name":"Uid.java","formatted_lines":["{"," final int limit = uid.offset + uid.length;"," for (int i = uid.offset; i < limit; i++)"," {"," if (uid.bytes[i] == DELIMITER_BYTE)"," {"," return true;"," }"," }"," return false;","}"],"function_name":"hasDelimiter","function_name_tokens":["has","delimiter"],"id_body_hash":"81a8ca48e410bb98a97e62221f6c8034","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],"option_correct":"hasDelimiter","options":["hasDelimiter","hasIndex","suggest","newMapperService","isEscapedDelimiter","createRandomDelimiter","assertRequestContainsHeader"],"options_nlp":["has delimiter","has index","suggest","new mapper service","is escaped delimiter","create random delimiter","assert request contains header"],"options_random":["suggest","newMapperService","assertRequestContainsHeader"],"options_tfidf":["hasIndex","createRandomDelimiter","isEscapedDelimiter"],"project_name":"elasticsearch","source_code_string":"public static boolean hasDelimiter(BytesRef uid) {\n final int limit = uid.offset + uid.length;\n for (int i = uid.offset; i < limit; i++) {\n if (uid.bytes[i] == DELIMITER_BYTE) { \n return true;\n }\n }\n return false;\n }","tokens_in_code":[{"index_id":0,"token_group":0,"text":"{","start_char":0,"line":0},{"index_id":1,"token_group":1,"text":"final","start_char":4,"line":1},{"index_id":2,"token_group":2,"text":"int","start_char":10,"line":1},{"index_id":3,"token_group":3,"text":"limit","start_char":14,"line":1},{"index_id":4,"token_group":4,"text":"=","start_char":20,"line":1},{"index_id":5,"token_group":5,"text":"uid","start_char":22,"line":1},{"index_id":6,"token_group":6,"text":".","start_char":25,"line":1},{"index_id":7,"token_group":7,"text":"offset","start_char":26,"line":1},{"index_id":8,"token_group":8,"text":"+","start_char":33,"line":1},{"index_id":9,"token_group":9,"text":"uid","start_char":35,"line":1},{"index_id":10,"token_group":10,"text":".","start_char":38,"line":1},{"index_id":11,"token_group":11,"text":"length","start_char":39,"line":1},{"index_id":12,"token_group":12,"text":";","start_char":45,"line":1},{"index_id":13,"token_group":13,"text":"for","start_char":4,"line":2},{"index_id":14,"token_group":14,"text":"(","start_char":8,"line":2},{"index_id":15,"token_group":15,"text":"int","start_char":9,"line":2},{"index_id":16,"token_group":16,"text":"i","start_char":13,"line":2},{"index_id":17,"token_group":17,"text":"=","start_char":15,"line":2},{"index_id":18,"token_group":18,"text":"uid","start_char":17,"line":2},{"index_id":19,"token_group":19,"text":".","start_char":20,"line":2},{"index_id":20,"token_group":20,"text":"offset","start_char":21,"line":2},{"index_id":21,"token_group":21,"text":";","start_char":27,"line":2},{"index_id":22,"token_group":22,"text":"i","start_char":29,"line":2},{"index_id":23,"token_group":23,"text":"<","start_char":31,"line":2},{"index_id":24,"token_group":24,"text":"limit","start_char":33,"line":2},{"index_id":25,"token_group":25,"text":";","start_char":38,"line":2},{"index_id":26,"token_group":26,"text":"i","start_char":40,"line":2},{"index_id":27,"token_group":27,"text":"++","start_char":41,"line":2},{"index_id":28,"token_group":28,"text":")","start_char":43,"line":2},{"index_id":29,"token_group":29,"text":"{","start_char":4,"line":3},{"index_id":30,"token_group":30,"text":"if","start_char":8,"line":4},{"index_id":31,"token_group":31,"text":"(","start_char":11,"line":4},{"index_id":32,"token_group":32,"text":"uid","start_char":12,"line":4},{"index_id":33,"token_group":33,"text":".","start_char":15,"line":4},{"index_id":34,"token_group":34,"text":"bytes","start_char":16,"line":4},{"index_id":35,"token_group":35,"text":"[","start_char":21,"line":4},{"index_id":36,"token_group":36,"text":"i","start_char":22,"line":4},{"index_id":37,"token_group":37,"text":"]","start_char":23,"line":4},{"index_id":38,"token_group":38,"text":"==","start_char":25,"line":4},{"index_id":39,"token_group":39,"text":"delimiter","start_char":28,"line":4},{"index_id":40,"token_group":40,"text":"Byte","start_char":38,"line":4},{"index_id":41,"token_group":40,"text":")","start_char":42,"line":4},{"index_id":42,"token_group":41,"text":"{","start_char":8,"line":5},{"index_id":43,"token_group":42,"text":"return","start_char":12,"line":6},{"index_id":44,"token_group":43,"text":"true","start_char":19,"line":6},{"index_id":45,"token_group":44,"text":";","start_char":23,"line":6},{"index_id":46,"token_group":45,"text":"}","start_char":8,"line":7},{"index_id":47,"token_group":46,"text":"}","start_char":4,"line":8},{"index_id":48,"token_group":47,"text":"return","start_char":4,"line":9},{"index_id":49,"token_group":48,"text":"false","start_char":11,"line":9},{"index_id":50,"token_group":49,"text":";","start_char":16,"line":9},{"index_id":51,"token_group":50,"text":"}","start_char":0,"line":10}],"tokens_list":["{","final","int","limit","=","uid",".","offset","+","uid",".","length",";","for","(","int","i","=","uid",".","offset",";","i","<","limit",";","i","++",")","{","if","(","uid",".","bytes","[","i","]","==","delimiter","Byte",")","{","return","true",";","}","}","return","false",";","}"],"uuid":"f0a373636455183b3bcb53b25b506b20"}]