sample_uid
stringlengths
39
42
benchmark_id
stringclasses
1 value
family
stringclasses
1 value
language
stringclasses
1 value
prompt
stringlengths
1.94k
29.1k
context
dict
reference
stringlengths
10
302
tests
unknown
repo_meta
dict
metric_protocol
dict
raw_metadata
dict
cross_code_eval_java::project_cc_java/1011
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // sdk/src/main/java/co/decodable/sdk/pipeline/internal/config/StreamConfig.java // private final Startu...
{ "prefix": "/*\n * SPDX-License-Identifier: Apache-2.0\n *\n * Copyright Decodable, Inc.\n *\n * Licensed under the Apache Software License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0\n */\npackage co.decodable.sdk.pipeline.testing;\n\nimport co.decodable.sdk.pipeline.EnvironmentAccess;\nimp...
.subscribe(Collections.singleton(testEnvironment.topicFor(name)));
{}
{ "repository": "decodableco-decodable-pipeline-sdk-af78b8a", "file": "sdk/src/main/java/co/decodable/sdk/pipeline/testing/PipelineTestContext.java", "task_id": "project_cc_java/1011" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "sdk/src/main/java/co/decodable/sdk/pipeline/testing/PipelineTestContext.java", "groundtruth_start_lineno": 82, "repository": "decodableco-decodable-pipeline-sdk-af78b8a", "right_context_start_lineno": 83, "task_id": "project_cc_java/1011" }...
cross_code_eval_java::project_cc_java/1024
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // sdk/src/main/java/co/decodable/sdk/pipeline/internal/DecodableStreamSinkBuilderImpl.java // ...
{ "prefix": "/*\n * SPDX-License-Identifier: Apache-2.0\n *\n * Copyright Decodable, Inc.\n *\n * Licensed under the Apache Software License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0\n */\npackage co.decodable.sdk.pipeline.internal;\n\nimport co.decodable.sdk.pipeline.DecodableStreamSource;...
setTopics(streamConfig.topic()) .setProperties(toProperties(streamConfig.kafkaProperties())) .setValueOnlyDeserializer(deserializationSchema);
{}
{ "repository": "decodableco-decodable-pipeline-sdk-af78b8a", "file": "sdk/src/main/java/co/decodable/sdk/pipeline/internal/DecodableStreamSourceBuilderImpl.java", "task_id": "project_cc_java/1024" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "sdk/src/main/java/co/decodable/sdk/pipeline/internal/DecodableStreamSourceBuilderImpl.java", "groundtruth_start_lineno": 68, "repository": "decodableco-decodable-pipeline-sdk-af78b8a", "right_context_start_lineno": 71, "task_id": "project_cc_...
cross_code_eval_java::project_cc_java/1007
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // sdk/src/main/java/co/decodable/sdk/pipeline/internal/DelegatingEnumeratorStateSerializer.java // re...
{ "prefix": "/*\n * SPDX-License-Identifier: Apache-2.0\n *\n * Copyright Decodable, Inc.\n *\n * Licensed under the Apache Software License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0\n */\npackage co.decodable.sdk.pipeline.internal;\n\nimport co.decodable.sdk.pipeline.DecodableSourceSplit;\...
((DecodableSourceSplitImpl) obj).getDelegate());
{}
{ "repository": "decodableco-decodable-pipeline-sdk-af78b8a", "file": "sdk/src/main/java/co/decodable/sdk/pipeline/internal/DelegatingSplitSerializer.java", "task_id": "project_cc_java/1007" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "sdk/src/main/java/co/decodable/sdk/pipeline/internal/DelegatingSplitSerializer.java", "groundtruth_start_lineno": 29, "repository": "decodableco-decodable-pipeline-sdk-af78b8a", "right_context_start_lineno": 30, "task_id": "project_cc_java/10...
cross_code_eval_java::project_cc_java/1009
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // sdk/src/main/java/co/decodable/sdk/pipeline/testing/TestEnvironment.java // } // /** {@inheritDoc} ...
{ "prefix": "/*\n * SPDX-License-Identifier: Apache-2.0\n *\n * Copyright Decodable, Inc.\n *\n * Licensed under the Apache Software License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0\n */\npackage co.decodable.sdk.pipeline.testing;\n\nimport co.decodable.sdk.pipeline.EnvironmentAccess;\nimp...
producerProperties(testEnvironment.bootstrapServers()));
{}
{ "repository": "decodableco-decodable-pipeline-sdk-af78b8a", "file": "sdk/src/main/java/co/decodable/sdk/pipeline/testing/PipelineTestContext.java", "task_id": "project_cc_java/1009" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "sdk/src/main/java/co/decodable/sdk/pipeline/testing/PipelineTestContext.java", "groundtruth_start_lineno": 53, "repository": "decodableco-decodable-pipeline-sdk-af78b8a", "right_context_start_lineno": 54, "task_id": "project_cc_java/1009" }...
cross_code_eval_java::project_cc_java/1021
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // sdk/src/test/java/co/decodable/sdk/pipeline/internal/config/StreamConfigMappingTest.java // ...
{ "prefix": "/*\n * SPDX-License-Identifier: Apache-2.0\n *\n * Copyright Decodable, Inc.\n *\n * Licensed under the Apache Software License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0\n */\npackage co.decodable.sdk.pipeline.internal;\n\nimport co.decodable.sdk.pipeline.DecodableStreamSink;\n...
.setKafkaProducerConfig(toProperties(streamConfig.kafkaProperties())) .build();
{}
{ "repository": "decodableco-decodable-pipeline-sdk-af78b8a", "file": "sdk/src/main/java/co/decodable/sdk/pipeline/internal/DecodableStreamSinkBuilderImpl.java", "task_id": "project_cc_java/1021" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "sdk/src/main/java/co/decodable/sdk/pipeline/internal/DecodableStreamSinkBuilderImpl.java", "groundtruth_start_lineno": 72, "repository": "decodableco-decodable-pipeline-sdk-af78b8a", "right_context_start_lineno": 74, "task_id": "project_cc_ja...
cross_code_eval_java::project_cc_java/1012
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // sdk/src/main/java/co/decodable/sdk/pipeline/internal/DecodableStreamSinkBuilderImpl.java // public De...
{ "prefix": "/*\n * SPDX-License-Identifier: Apache-2.0\n *\n * Copyright Decodable, Inc.\n *\n * Licensed under the Apache Software License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0\n */\npackage co.decodable.sdk.pipeline.testing;\n\nimport co.decodable.sdk.pipeline.EnvironmentAccess;\nimp...
(testEnvironment.topicFor(streamName), streamRecord.value()));
{}
{ "repository": "decodableco-decodable-pipeline-sdk-af78b8a", "file": "sdk/src/main/java/co/decodable/sdk/pipeline/testing/PipelineTestContext.java", "task_id": "project_cc_java/1012" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "sdk/src/main/java/co/decodable/sdk/pipeline/testing/PipelineTestContext.java", "groundtruth_start_lineno": 145, "repository": "decodableco-decodable-pipeline-sdk-af78b8a", "right_context_start_lineno": 146, "task_id": "project_cc_java/1012" ...
cross_code_eval_java::project_cc_java/1025
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // sdk/src/main/java/co/decodable/sdk/pipeline/internal/DecodableStreamSinkBuilderImpl.java // ...
{ "prefix": "/*\n * SPDX-License-Identifier: Apache-2.0\n *\n * Copyright Decodable, Inc.\n *\n * Licensed under the Apache Software License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0\n */\npackage co.decodable.sdk.pipeline.internal;\n\nimport co.decodable.sdk.pipeline.DecodableStreamSource;...
toProperties(streamConfig.kafkaProperties())) .setValueOnlyDeserializer(deserializationSchema);
{}
{ "repository": "decodableco-decodable-pipeline-sdk-af78b8a", "file": "sdk/src/main/java/co/decodable/sdk/pipeline/internal/DecodableStreamSourceBuilderImpl.java", "task_id": "project_cc_java/1025" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "sdk/src/main/java/co/decodable/sdk/pipeline/internal/DecodableStreamSourceBuilderImpl.java", "groundtruth_start_lineno": 69, "repository": "decodableco-decodable-pipeline-sdk-af78b8a", "right_context_start_lineno": 71, "task_id": "project_cc_...
cross_code_eval_java::project_cc_java/1026
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // sdk/src/main/java/co/decodable/sdk/pipeline/internal/DecodableStreamSinkBuilderImpl.java // ...
{ "prefix": "/*\n * SPDX-License-Identifier: Apache-2.0\n *\n * Copyright Decodable, Inc.\n *\n * Licensed under the Apache Software License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0\n */\npackage co.decodable.sdk.pipeline.internal;\n\nimport co.decodable.sdk.pipeline.DecodableStreamSource;...
if (streamConfig.startupMode() != null) {
{}
{ "repository": "decodableco-decodable-pipeline-sdk-af78b8a", "file": "sdk/src/main/java/co/decodable/sdk/pipeline/internal/DecodableStreamSourceBuilderImpl.java", "task_id": "project_cc_java/1026" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "sdk/src/main/java/co/decodable/sdk/pipeline/internal/DecodableStreamSourceBuilderImpl.java", "groundtruth_start_lineno": 72, "repository": "decodableco-decodable-pipeline-sdk-af78b8a", "right_context_start_lineno": 73, "task_id": "project_cc_...
cross_code_eval_java::project_cc_java/1005
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/com/home/chat/dao/TbApikeyDAO.java // /** // * 通过查询条件查询所有记录,不分页 // * @param...
{ "prefix": "package com.home.chat.services;\n\nimport cn.hutool.core.map.MapUtil;\nimport cn.hutool.core.text.UnicodeUtil;\nimport cn.hutool.core.util.StrUtil;\nimport cn.hutool.http.Header;\nimport cn.hutool.http.HttpRequest;\nimport cn.hutool.http.HttpResponse;\nimport cn.hutool.json.JSONObject;\nimport cn.hutool....
tbApikeyDAO.useOnece(key);
{}
{ "repository": "dd8023dd-chatgpt-web-server-7bd2f76", "file": "src/main/java/com/home/chat/services/ChatGPTService.java", "task_id": "project_cc_java/1005" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/home/chat/services/ChatGPTService.java", "groundtruth_start_lineno": 119, "repository": "dd8023dd-chatgpt-web-server-7bd2f76", "right_context_start_lineno": 120, "task_id": "project_cc_java/1005" } }
cross_code_eval_java::project_cc_java/1056
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/method/MethodActionRegister.j...
{ "prefix": "package com.github.deeround.jdbc.plus.Interceptor;\n\nimport com.github.deeround.jdbc.plus.Interceptor.pagination.Dialect;\nimport com.github.deeround.jdbc.plus.Interceptor.pagination.Page;\nimport com.github.deeround.jdbc.plus.Interceptor.pagination.PageHelper;\nimport com.github.deeround.jdbc.plus.meth...
Object cnt = jdbcTemplate.queryForMap(dialect.getCountSql(sql), actionInfo.getParameter()).get("PG_COUNT");
{}
{ "repository": "deeround-jdbc-plus-a0dcdfd", "file": "jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/Interceptor/PaginationInterceptor.java", "task_id": "project_cc_java/1056" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/Interceptor/PaginationInterceptor.java", "groundtruth_start_lineno": 72, "repository": "deeround-jdbc-plus-a0dcdfd", "right_context_start_lineno": 73, "task_id": "proje...
cross_code_eval_java::project_cc_java/1037
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/Interceptor/TenantLineInterce...
{ "prefix": "/*\n * Copyright © 2018 organization baomidou\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless re...
() != null && methodInfo.getArgs().length > 0) {
{}
{ "repository": "deeround-jdbc-plus-a0dcdfd", "file": "jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/aop/JdbcTemplateMethodInterceptor.java", "task_id": "project_cc_java/1037" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/aop/JdbcTemplateMethodInterceptor.java", "groundtruth_start_lineno": 57, "repository": "deeround-jdbc-plus-a0dcdfd", "right_context_start_lineno": 58, "task_id": "proje...
cross_code_eval_java::project_cc_java/1055
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/Interceptor/pagination/dialec...
{ "prefix": "package com.github.deeround.jdbc.plus.Interceptor;\n\nimport com.github.deeround.jdbc.plus.Interceptor.pagination.Dialect;\nimport com.github.deeround.jdbc.plus.Interceptor.pagination.Page;\nimport com.github.deeround.jdbc.plus.Interceptor.pagination.PageHelper;\nimport com.github.deeround.jdbc.plus.meth...
), actionInfo.getParameter(), actionInfo.getParameterType()).get("PG_COUNT");
{}
{ "repository": "deeround-jdbc-plus-a0dcdfd", "file": "jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/Interceptor/PaginationInterceptor.java", "task_id": "project_cc_java/1055" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/Interceptor/PaginationInterceptor.java", "groundtruth_start_lineno": 69, "repository": "deeround-jdbc-plus-a0dcdfd", "right_context_start_lineno": 70, "task_id": "proje...
cross_code_eval_java::project_cc_java/1048
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/method/MethodActionRegister.j...
{ "prefix": "package com.github.deeround.jdbc.plus.Interceptor;\n\nimport com.github.deeround.jdbc.plus.Interceptor.pagination.Dialect;\nimport com.github.deeround.jdbc.plus.Interceptor.pagination.Page;\nimport com.github.deeround.jdbc.plus.Interceptor.pagination.PageHelper;\nimport com.github.deeround.jdbc.plus.meth...
cnt = jdbcTemplate.queryForMap(dialect.getCountSql(sql), actionInfo.getParameter()).get("PG_COUNT");
{}
{ "repository": "deeround-jdbc-plus-a0dcdfd", "file": "jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/Interceptor/PaginationInterceptor.java", "task_id": "project_cc_java/1048" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/Interceptor/PaginationInterceptor.java", "groundtruth_start_lineno": 72, "repository": "deeround-jdbc-plus-a0dcdfd", "right_context_start_lineno": 73, "task_id": "proje...
cross_code_eval_java::project_cc_java/1039
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // jdbc-plus-samples/src/main/java/com/github/deeround/jdbc/plus/samples/config/MyStatInterceptor.java // ...
{ "prefix": "/*\n * Copyright © 2018 organization baomidou\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless re...
.debug("finish sql==>{
{}
{ "repository": "deeround-jdbc-plus-a0dcdfd", "file": "jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/aop/JdbcTemplateMethodInterceptor.java", "task_id": "project_cc_java/1039" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/aop/JdbcTemplateMethodInterceptor.java", "groundtruth_start_lineno": 64, "repository": "deeround-jdbc-plus-a0dcdfd", "right_context_start_lineno": 65, "task_id": "proje...
cross_code_eval_java::project_cc_java/1079
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/test/java/dev/cru/context/K8sNeedleExtractorTest.java // Path.of("src", "test", "resources", "K8...
{ "prefix": "/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership. The ASF licenses this file\n * to you under the Apache License, Version 2.0 (the...
cpuPattern.matcher(location.fileContent());
{}
{ "repository": "DennisRippinger-cru-6558fde", "file": "src/main/java/dev/cru/context/k8s/K8sNeedleExtractor.java", "task_id": "project_cc_java/1079" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/dev/cru/context/k8s/K8sNeedleExtractor.java", "groundtruth_start_lineno": 39, "repository": "DennisRippinger-cru-6558fde", "right_context_start_lineno": 40, "task_id": "project_cc_java/1079" } }
cross_code_eval_java::project_cc_java/1031
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/Interceptor/pagination/PageSe...
{ "prefix": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014-2017 abel533@gmail.com\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including withou...
pages = page.getPages();
{}
{ "repository": "deeround-jdbc-plus-a0dcdfd", "file": "jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/Interceptor/pagination/PageInfo.java", "task_id": "project_cc_java/1031" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/Interceptor/pagination/PageInfo.java", "groundtruth_start_lineno": 105, "repository": "deeround-jdbc-plus-a0dcdfd", "right_context_start_lineno": 106, "task_id": "proje...
cross_code_eval_java::project_cc_java/1043
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/method/MethodActionRegister.j...
{ "prefix": "package com.github.deeround.jdbc.plus.method;\n\nimport java.lang.reflect.Method;\nimport java.util.ArrayList;\nimport java.util.HashMap;\nimport java.util.List;\nimport java.util.Map;\n\n/**\n * @author wanghao 913351190@qq.com\n * @create 2023/4/23 14:24\n */\npublic class MethodInvocationInfo extends ...
] = this.actionInfo.getParameter();
{}
{ "repository": "deeround-jdbc-plus-a0dcdfd", "file": "jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/method/MethodInvocationInfo.java", "task_id": "project_cc_java/1043" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/method/MethodInvocationInfo.java", "groundtruth_start_lineno": 121, "repository": "deeround-jdbc-plus-a0dcdfd", "right_context_start_lineno": 122, "task_id": "project_c...
cross_code_eval_java::project_cc_java/1059
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/Interceptor/IInterceptor.java...
{ "prefix": "package com.github.deeround.jdbc.plus.Interceptor;\n\nimport com.github.deeround.jdbc.plus.Interceptor.pagination.Dialect;\nimport com.github.deeround.jdbc.plus.Interceptor.pagination.Page;\nimport com.github.deeround.jdbc.plus.Interceptor.pagination.PageHelper;\nimport com.github.deeround.jdbc.plus.meth...
MethodActionInfo actionInfo = methodInfo.getActionInfo();
{}
{ "repository": "deeround-jdbc-plus-a0dcdfd", "file": "jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/Interceptor/PaginationInterceptor.java", "task_id": "project_cc_java/1059" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/Interceptor/PaginationInterceptor.java", "groundtruth_start_lineno": 46, "repository": "deeround-jdbc-plus-a0dcdfd", "right_context_start_lineno": 47, "task_id": "proje...
cross_code_eval_java::project_cc_java/1033
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/method/MethodInvocationInfo.j...
{ "prefix": "/*\n * Copyright © 2018 organization baomidou\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless re...
.debug("method==>name:{
{}
{ "repository": "deeround-jdbc-plus-a0dcdfd", "file": "jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/aop/JdbcTemplateMethodInterceptor.java", "task_id": "project_cc_java/1033" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/aop/JdbcTemplateMethodInterceptor.java", "groundtruth_start_lineno": 47, "repository": "deeround-jdbc-plus-a0dcdfd", "right_context_start_lineno": 48, "task_id": "proje...
cross_code_eval_java::project_cc_java/1047
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/method/MethodActionRegister.j...
{ "prefix": "package com.github.deeround.jdbc.plus.Interceptor;\n\nimport com.github.deeround.jdbc.plus.Interceptor.pagination.Dialect;\nimport com.github.deeround.jdbc.plus.Interceptor.pagination.Page;\nimport com.github.deeround.jdbc.plus.Interceptor.pagination.PageHelper;\nimport com.github.deeround.jdbc.plus.meth...
queryForMap(dialect.getCountSql(sql), actionInfo.getParameter(), actionInfo.getParameterType()).get("PG_COUNT");
{}
{ "repository": "deeround-jdbc-plus-a0dcdfd", "file": "jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/Interceptor/PaginationInterceptor.java", "task_id": "project_cc_java/1047" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/Interceptor/PaginationInterceptor.java", "groundtruth_start_lineno": 69, "repository": "deeround-jdbc-plus-a0dcdfd", "right_context_start_lineno": 70, "task_id": "proje...
cross_code_eval_java::project_cc_java/1078
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/dev/cru/repository/gitlab/GitLabMockRepositoryApi.java // new RepoConfig( // new...
{ "prefix": "/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership. The ASF licenses this file\n * to you under the Apache License, Version 2.0 (the...
Repository repository : gitLabRepositoryApi.findRepositories()) {
{}
{ "repository": "DennisRippinger-cru-6558fde", "file": "src/main/java/dev/cru/context/CruService.java", "task_id": "project_cc_java/1078" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/dev/cru/context/CruService.java", "groundtruth_start_lineno": 30, "repository": "DennisRippinger-cru-6558fde", "right_context_start_lineno": 31, "task_id": "project_cc_java/1078" } }
cross_code_eval_java::project_cc_java/1054
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/Interceptor/TenantLineInterce...
{ "prefix": "package com.github.deeround.jdbc.plus.Interceptor;\n\nimport com.github.deeround.jdbc.plus.Interceptor.pagination.Dialect;\nimport com.github.deeround.jdbc.plus.Interceptor.pagination.Page;\nimport com.github.deeround.jdbc.plus.Interceptor.pagination.PageHelper;\nimport com.github.deeround.jdbc.plus.meth...
String sql = actionInfo.getSql();
{}
{ "repository": "deeround-jdbc-plus-a0dcdfd", "file": "jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/Interceptor/PaginationInterceptor.java", "task_id": "project_cc_java/1054" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/Interceptor/PaginationInterceptor.java", "groundtruth_start_lineno": 48, "repository": "deeround-jdbc-plus-a0dcdfd", "right_context_start_lineno": 49, "task_id": "proje...
cross_code_eval_java::project_cc_java/1060
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/Interceptor/pagination/PageHe...
{ "prefix": "package com.github.deeround.jdbc.plus.Interceptor;\n\nimport com.github.deeround.jdbc.plus.Interceptor.pagination.Dialect;\nimport com.github.deeround.jdbc.plus.Interceptor.pagination.Page;\nimport com.github.deeround.jdbc.plus.Interceptor.pagination.PageHelper;\nimport com.github.deeround.jdbc.plus.meth...
() && methodInfo.getActionInfo().isReturnIsList()) {
{}
{ "repository": "deeround-jdbc-plus-a0dcdfd", "file": "jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/Interceptor/PaginationInterceptor.java", "task_id": "project_cc_java/1060" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/Interceptor/PaginationInterceptor.java", "groundtruth_start_lineno": 51, "repository": "deeround-jdbc-plus-a0dcdfd", "right_context_start_lineno": 52, "task_id": "proje...
cross_code_eval_java::project_cc_java/1061
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/method/MethodActionRegister.j...
{ "prefix": "package com.github.deeround.jdbc.plus.Interceptor;\n\nimport com.github.deeround.jdbc.plus.Interceptor.pagination.Dialect;\nimport com.github.deeround.jdbc.plus.Interceptor.pagination.Page;\nimport com.github.deeround.jdbc.plus.Interceptor.pagination.PageHelper;\nimport com.github.deeround.jdbc.plus.meth...
sql), (PreparedStatementSetter) methodInfo.getArgs()[actionInfo.getParameterIndex()], new ResultSetExtractor<Map>() {
{}
{ "repository": "deeround-jdbc-plus-a0dcdfd", "file": "jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/Interceptor/PaginationInterceptor.java", "task_id": "project_cc_java/1061" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/Interceptor/PaginationInterceptor.java", "groundtruth_start_lineno": 55, "repository": "deeround-jdbc-plus-a0dcdfd", "right_context_start_lineno": 56, "task_id": "proje...
cross_code_eval_java::project_cc_java/1035
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // jdbc-plus-samples/src/main/java/com/github/deeround/jdbc/plus/samples/config/MyStatInterceptor.java // ...
{ "prefix": "/*\n * Copyright © 2018 organization baomidou\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless re...
(methodInfo.getActionInfo().getBatchParameter()));
{}
{ "repository": "deeround-jdbc-plus-a0dcdfd", "file": "jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/aop/JdbcTemplateMethodInterceptor.java", "task_id": "project_cc_java/1035" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/aop/JdbcTemplateMethodInterceptor.java", "groundtruth_start_lineno": 49, "repository": "deeround-jdbc-plus-a0dcdfd", "right_context_start_lineno": 50, "task_id": "proje...
cross_code_eval_java::project_cc_java/1032
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/Interceptor/pagination/Page.j...
{ "prefix": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014-2017 abel533@gmail.com\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including withou...
page.getStartRow() + 1;
{}
{ "repository": "deeround-jdbc-plus-a0dcdfd", "file": "jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/Interceptor/pagination/PageInfo.java", "task_id": "project_cc_java/1032" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/Interceptor/pagination/PageInfo.java", "groundtruth_start_lineno": 112, "repository": "deeround-jdbc-plus-a0dcdfd", "right_context_start_lineno": 113, "task_id": "proje...
cross_code_eval_java::project_cc_java/1036
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // jdbc-plus-samples/src/main/java/com/github/deeround/jdbc/plus/samples/config/MyStatInterceptor.java // ...
{ "prefix": "/*\n * Copyright © 2018 organization baomidou\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless re...
if (methodInfo.getArgs() != null && methodInfo.getArgs().length > 0) {
{}
{ "repository": "deeround-jdbc-plus-a0dcdfd", "file": "jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/aop/JdbcTemplateMethodInterceptor.java", "task_id": "project_cc_java/1036" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/aop/JdbcTemplateMethodInterceptor.java", "groundtruth_start_lineno": 57, "repository": "deeround-jdbc-plus-a0dcdfd", "right_context_start_lineno": 58, "task_id": "proje...
cross_code_eval_java::project_cc_java/1034
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // jdbc-plus-samples/src/main/java/com/github/deeround/jdbc/plus/samples/config/MyStatInterceptor.java // ...
{ "prefix": "/*\n * Copyright © 2018 organization baomidou\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless re...
toStr(methodInfo.getActionInfo().getBatchSql()));
{}
{ "repository": "deeround-jdbc-plus-a0dcdfd", "file": "jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/aop/JdbcTemplateMethodInterceptor.java", "task_id": "project_cc_java/1034" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/aop/JdbcTemplateMethodInterceptor.java", "groundtruth_start_lineno": 48, "repository": "deeround-jdbc-plus-a0dcdfd", "right_context_start_lineno": 49, "task_id": "proje...
cross_code_eval_java::project_cc_java/1062
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/Interceptor/pagination/PageHe...
{ "prefix": "package com.github.deeround.jdbc.plus.Interceptor;\n\nimport com.github.deeround.jdbc.plus.Interceptor.pagination.Dialect;\nimport com.github.deeround.jdbc.plus.Interceptor.pagination.Page;\nimport com.github.deeround.jdbc.plus.Interceptor.pagination.PageHelper;\nimport com.github.deeround.jdbc.plus.meth...
methodInfo.resolveSql(sql);
{}
{ "repository": "deeround-jdbc-plus-a0dcdfd", "file": "jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/Interceptor/PaginationInterceptor.java", "task_id": "project_cc_java/1062" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/Interceptor/PaginationInterceptor.java", "groundtruth_start_lineno": 85, "repository": "deeround-jdbc-plus-a0dcdfd", "right_context_start_lineno": 86, "task_id": "proje...
cross_code_eval_java::project_cc_java/1001
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // server/src/main/java/io/delta/store/internal/types/ArrayType.java // containsNull)); // DataType....
{ "prefix": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright ownership.\n * The ASF licenses this file to You under the Apache License, Version 2.0\n * (the ...
String.format("%s-- key: %s\n", prefix, keyType.getTypeName()));
{}
{ "repository": "dataplatform-lab-deltastore-017c850", "file": "server/src/main/java/io/delta/store/internal/types/MapType.java", "task_id": "project_cc_java/1001" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "server/src/main/java/io/delta/store/internal/types/MapType.java", "groundtruth_start_lineno": 90, "repository": "dataplatform-lab-deltastore-017c850", "right_context_start_lineno": 91, "task_id": "project_cc_java/1001" } }
cross_code_eval_java::project_cc_java/1065
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/handler/TenantLineHandler.jav...
{ "prefix": "/*\n * Copyright (c) 2011-2022, baomidou (jobob@qq.com).\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n ...
equalsTo.setRightExpression(this.tenantLineHandler.getTenantId());
{}
{ "repository": "deeround-jdbc-plus-a0dcdfd", "file": "jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/Interceptor/TenantLineInterceptor.java", "task_id": "project_cc_java/1065" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/Interceptor/TenantLineInterceptor.java", "groundtruth_start_lineno": 112, "repository": "deeround-jdbc-plus-a0dcdfd", "right_context_start_lineno": 113, "task_id": "pro...
cross_code_eval_java::project_cc_java/1000
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // server/src/main/java/io/delta/store/internal/types/StructField.java // dataType.getTypeName(), null...
{ "prefix": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright ownership.\n * The ASF licenses this file to You under the Apache License, Version 2.0\n * (the ...
DataType.buildFormattedString(elementType, nextPrefix, builder);
{}
{ "repository": "dataplatform-lab-deltastore-017c850", "file": "server/src/main/java/io/delta/store/internal/types/ArrayType.java", "task_id": "project_cc_java/1000" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "server/src/main/java/io/delta/store/internal/types/ArrayType.java", "groundtruth_start_lineno": 80, "repository": "dataplatform-lab-deltastore-017c850", "right_context_start_lineno": 81, "task_id": "project_cc_java/1000" } }
cross_code_eval_java::project_cc_java/1069
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/Interceptor/BaseMultiTableInt...
{ "prefix": "/*\n * Copyright (c) 2011-2022, baomidou (jobob@qq.com).\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n ...
new EqualsTo(this.getAliasColumn(table), this.tenantLineHandler.getTenantId());
{}
{ "repository": "deeround-jdbc-plus-a0dcdfd", "file": "jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/Interceptor/TenantLineInterceptor.java", "task_id": "project_cc_java/1069" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/Interceptor/TenantLineInterceptor.java", "groundtruth_start_lineno": 228, "repository": "deeround-jdbc-plus-a0dcdfd", "right_context_start_lineno": 229, "task_id": "pro...
cross_code_eval_java::project_cc_java/998
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // server/src/main/java/io/delta/store/internal/types/ArrayType.java // containsNull)); // DataType....
{ "prefix": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright ownership.\n * The ASF licenses this file to You under the Apache License, Version 2.0\n * (the ...
DataType.buildFormattedString(dataType, nextPrefix, builder);
{}
{ "repository": "dataplatform-lab-deltastore-017c850", "file": "server/src/main/java/io/delta/store/internal/types/StructField.java", "task_id": "project_cc_java/998" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "server/src/main/java/io/delta/store/internal/types/StructField.java", "groundtruth_start_lineno": 124, "repository": "dataplatform-lab-deltastore-017c850", "right_context_start_lineno": 125, "task_id": "project_cc_java/998" } }
cross_code_eval_java::project_cc_java/1063
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/Interceptor/TenantLineInterce...
{ "prefix": "package com.github.deeround.jdbc.plus.Interceptor;\n\nimport com.github.deeround.jdbc.plus.Interceptor.pagination.Dialect;\nimport com.github.deeround.jdbc.plus.Interceptor.pagination.Page;\nimport com.github.deeround.jdbc.plus.Interceptor.pagination.PageHelper;\nimport com.github.deeround.jdbc.plus.meth...
(methodInfo.getActionInfo().isReturnIsList()) {
{}
{ "repository": "deeround-jdbc-plus-a0dcdfd", "file": "jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/Interceptor/PaginationInterceptor.java", "task_id": "project_cc_java/1063" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/Interceptor/PaginationInterceptor.java", "groundtruth_start_lineno": 100, "repository": "deeround-jdbc-plus-a0dcdfd", "right_context_start_lineno": 101, "task_id": "pro...
cross_code_eval_java::project_cc_java/1003
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // server/src/main/java/io/delta/store/internal/types/StructField.java // dataType.getTypeName(), null...
{ "prefix": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright ownership.\n * The ASF licenses this file to You under the Apache License, Version 2.0\n * (the ...
prefix, valueType.getTypeName(), valueContainsNull));
{}
{ "repository": "dataplatform-lab-deltastore-017c850", "file": "server/src/main/java/io/delta/store/internal/types/MapType.java", "task_id": "project_cc_java/1003" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "server/src/main/java/io/delta/store/internal/types/MapType.java", "groundtruth_start_lineno": 92, "repository": "dataplatform-lab-deltastore-017c850", "right_context_start_lineno": 94, "task_id": "project_cc_java/1003" } }
cross_code_eval_java::project_cc_java/1067
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/Interceptor/BaseMultiTableInt...
{ "prefix": "/*\n * Copyright (c) 2011-2022, baomidou (jobob@qq.com).\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n ...
(new SelectExpressionItem(new Column(this.tenantLineHandler.getTenantIdColumn())));
{}
{ "repository": "deeround-jdbc-plus-a0dcdfd", "file": "jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/Interceptor/TenantLineInterceptor.java", "task_id": "project_cc_java/1067" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/Interceptor/TenantLineInterceptor.java", "groundtruth_start_lineno": 194, "repository": "deeround-jdbc-plus-a0dcdfd", "right_context_start_lineno": 195, "task_id": "pro...
cross_code_eval_java::project_cc_java/999
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // server/src/main/java/io/delta/store/internal/types/StructField.java // dataType.getTypeName(), null...
{ "prefix": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright ownership.\n * The ASF licenses this file to You under the Apache License, Version 2.0\n * (the ...
.format("%s-- element: %s (containsNull = %b)\n", prefix, elementType.getTypeName(), containsNull));
{}
{ "repository": "dataplatform-lab-deltastore-017c850", "file": "server/src/main/java/io/delta/store/internal/types/ArrayType.java", "task_id": "project_cc_java/999" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "server/src/main/java/io/delta/store/internal/types/ArrayType.java", "groundtruth_start_lineno": 78, "repository": "dataplatform-lab-deltastore-017c850", "right_context_start_lineno": 80, "task_id": "project_cc_java/999" } }
cross_code_eval_java::project_cc_java/1110
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/me/dio/model/Hero.java // this.name = name; // } // public int getXp() { ...
{ "prefix": "package me.dio.service.impl;\n\nimport java.util.List;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.data.domain.Sort;\nimport org.springframework.stereotype.Service;\nimport org.springframework.transaction.annotation.Transactional;\n\nimport me.dio.excepti...
(!dbHero.getId().equals(heroToUpdate.getId())) {
{}
{ "repository": "digitalinnovationone-spring-boot-3-rest-api-template-55aab88", "file": "src/main/java/me/dio/service/impl/HeroServiceImpl.java", "task_id": "project_cc_java/1110" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/me/dio/service/impl/HeroServiceImpl.java", "groundtruth_start_lineno": 40, "repository": "digitalinnovationone-spring-boot-3-rest-api-template-55aab88", "right_context_start_lineno": 41, "task_id": "project_cc_java/1110" } }
cross_code_eval_java::project_cc_java/997
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // server/src/main/java/io/delta/store/internal/types/ArrayType.java // containsNull)); // DataType....
{ "prefix": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright ownership.\n * The ASF licenses this file to You under the Apache License, Version 2.0\n * (the ...
dataType.getTypeName(), nullable, metadata.toString()));
{}
{ "repository": "dataplatform-lab-deltastore-017c850", "file": "server/src/main/java/io/delta/store/internal/types/StructField.java", "task_id": "project_cc_java/997" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "server/src/main/java/io/delta/store/internal/types/StructField.java", "groundtruth_start_lineno": 123, "repository": "dataplatform-lab-deltastore-017c850", "right_context_start_lineno": 124, "task_id": "project_cc_java/997" } }
cross_code_eval_java::project_cc_java/1113
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/me/dio/model/Hero.java // this.name = name; // } // public int getXp() { ...
{ "prefix": "package me.dio.service.impl;\n\nimport java.util.List;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.data.domain.Sort;\nimport org.springframework.stereotype.Service;\nimport org.springframework.transaction.annotation.Transactional;\n\nimport me.dio.excepti...
dbHero.getXp() + 2);
{}
{ "repository": "digitalinnovationone-spring-boot-3-rest-api-template-55aab88", "file": "src/main/java/me/dio/service/impl/HeroServiceImpl.java", "task_id": "project_cc_java/1113" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/me/dio/service/impl/HeroServiceImpl.java", "groundtruth_start_lineno": 55, "repository": "digitalinnovationone-spring-boot-3-rest-api-template-55aab88", "right_context_start_lineno": 56, "task_id": "project_cc_java/1113" } }
cross_code_eval_java::project_cc_java/1002
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // server/src/main/java/io/delta/store/internal/types/ArrayType.java // containsNull)); // DataType....
{ "prefix": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright ownership.\n * The ASF licenses this file to You under the Apache License, Version 2.0\n * (the ...
DataType.buildFormattedString(keyType, nextPrefix, builder);
{}
{ "repository": "dataplatform-lab-deltastore-017c850", "file": "server/src/main/java/io/delta/store/internal/types/MapType.java", "task_id": "project_cc_java/1002" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "server/src/main/java/io/delta/store/internal/types/MapType.java", "groundtruth_start_lineno": 91, "repository": "dataplatform-lab-deltastore-017c850", "right_context_start_lineno": 92, "task_id": "project_cc_java/1002" } }
cross_code_eval_java::project_cc_java/1111
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/me/dio/model/Hero.java // this.name = name; // } // public int getXp() { ...
{ "prefix": "package me.dio.service.impl;\n\nimport java.util.List;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.data.domain.Sort;\nimport org.springframework.stereotype.Service;\nimport org.springframework.transaction.annotation.Transactional;\n\nimport me.dio.excepti...
).equals(heroToUpdate.getId())) {
{}
{ "repository": "digitalinnovationone-spring-boot-3-rest-api-template-55aab88", "file": "src/main/java/me/dio/service/impl/HeroServiceImpl.java", "task_id": "project_cc_java/1111" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/me/dio/service/impl/HeroServiceImpl.java", "groundtruth_start_lineno": 40, "repository": "digitalinnovationone-spring-boot-3-rest-api-template-55aab88", "right_context_start_lineno": 41, "task_id": "project_cc_java/1111" } }
cross_code_eval_java::project_cc_java/1127
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/raven/toast/Notifications.java // * <!-- UIManager --> // * <p> // * Toast.success.ico...
{ "prefix": "package raven.toast.ui;\n\nimport static com.formdev.flatlaf.FlatClientProperties.*;\n\nimport com.formdev.flatlaf.FlatClientProperties;\nimport com.formdev.flatlaf.ui.FlatStylingSupport;\nimport com.formdev.flatlaf.ui.FlatStylingSupport.StyleableUI;\nimport com.formdev.flatlaf.ui.FlatStylingSupport.Styl...
Insets insets = UIUtils.getInsets("Toast.shadowInsets", new Insets(0, 0, 6, 6));
{}
{ "repository": "DJ-Raven-swing-toast-notifications-4c7978a", "file": "src/main/java/raven/toast/ui/ToastPanelUI.java", "task_id": "project_cc_java/1127" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/raven/toast/ui/ToastPanelUI.java", "groundtruth_start_lineno": 120, "repository": "DJ-Raven-swing-toast-notifications-4c7978a", "right_context_start_lineno": 121, "task_id": "project_cc_java/1127" } }
cross_code_eval_java::project_cc_java/1126
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/raven/toast/Notifications.java // * <!-- UIManager --> // * <p> // * Toast.success.ico...
{ "prefix": "package raven.toast.ui;\n\nimport static com.formdev.flatlaf.FlatClientProperties.*;\n\nimport com.formdev.flatlaf.FlatClientProperties;\nimport com.formdev.flatlaf.ui.FlatStylingSupport;\nimport com.formdev.flatlaf.ui.FlatStylingSupport.StyleableUI;\nimport com.formdev.flatlaf.ui.FlatStylingSupport.Styl...
UIUtils.getString(prefix + ".effectAlignment", "left");
{}
{ "repository": "DJ-Raven-swing-toast-notifications-4c7978a", "file": "src/main/java/raven/toast/ui/ToastPanelUI.java", "task_id": "project_cc_java/1126" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/raven/toast/ui/ToastPanelUI.java", "groundtruth_start_lineno": 106, "repository": "DJ-Raven-swing-toast-notifications-4c7978a", "right_context_start_lineno": 107, "task_id": "project_cc_java/1126" } }
cross_code_eval_java::project_cc_java/1119
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/raven/toast/util/NotificationHolder.java // } // public void clearHold() { // ...
{ "prefix": "package raven.toast;\n\nimport com.formdev.flatlaf.ui.FlatUIUtils;\nimport com.formdev.flatlaf.util.Animator;\nimport com.formdev.flatlaf.util.UIScale;\nimport raven.toast.ui.ToastNotificationPanel;\nimport raven.toast.util.NotificationHolder;\nimport raven.toast.util.UIUtils;\n\nimport javax.swing.*;\ni...
notificationHolder.clearHold();
{}
{ "repository": "DJ-Raven-swing-toast-notifications-4c7978a", "file": "src/main/java/raven/toast/Notifications.java", "task_id": "project_cc_java/1119" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/raven/toast/Notifications.java", "groundtruth_start_lineno": 195, "repository": "DJ-Raven-swing-toast-notifications-4c7978a", "right_context_start_lineno": 196, "task_id": "project_cc_java/1119" } }
cross_code_eval_java::project_cc_java/1123
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/raven/toast/ui/ToastNotificationPanel.java // labelIcon = new JLabel(); // ...
{ "prefix": "package raven.toast;\n\nimport com.formdev.flatlaf.ui.FlatUIUtils;\nimport com.formdev.flatlaf.util.Animator;\nimport com.formdev.flatlaf.util.UIScale;\nimport raven.toast.ui.ToastNotificationPanel;\nimport raven.toast.util.NotificationHolder;\nimport raven.toast.util.UIUtils;\n\nimport javax.swing.*;\ni...
UIUtils.getInsets("Toast.frameInsets", new Insets(10, 10, 10, 10));
{}
{ "repository": "DJ-Raven-swing-toast-notifications-4c7978a", "file": "src/main/java/raven/toast/Notifications.java", "task_id": "project_cc_java/1123" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/raven/toast/Notifications.java", "groundtruth_start_lineno": 301, "repository": "DJ-Raven-swing-toast-notifications-4c7978a", "right_context_start_lineno": 302, "task_id": "project_cc_java/1123" } }
cross_code_eval_java::project_cc_java/1118
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/raven/toast/util/NotificationHolder.java // } // public void clearHold() { // ...
{ "prefix": "package raven.toast;\n\nimport com.formdev.flatlaf.ui.FlatUIUtils;\nimport com.formdev.flatlaf.util.Animator;\nimport com.formdev.flatlaf.util.UIScale;\nimport raven.toast.ui.ToastNotificationPanel;\nimport raven.toast.util.NotificationHolder;\nimport raven.toast.util.UIUtils;\n\nimport javax.swing.*;\ni...
notificationHolder.removeHold(hold);
{}
{ "repository": "DJ-Raven-swing-toast-notifications-4c7978a", "file": "src/main/java/raven/toast/Notifications.java", "task_id": "project_cc_java/1118" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/raven/toast/Notifications.java", "groundtruth_start_lineno": 189, "repository": "DJ-Raven-swing-toast-notifications-4c7978a", "right_context_start_lineno": 190, "task_id": "project_cc_java/1118" } }
cross_code_eval_java::project_cc_java/1115
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/raven/toast/ui/ToastNotificationPanel.java // if (type == Notifications.Type.SUCC...
{ "prefix": "package raven.toast;\n\nimport com.formdev.flatlaf.ui.FlatUIUtils;\nimport com.formdev.flatlaf.util.Animator;\nimport com.formdev.flatlaf.util.UIScale;\nimport raven.toast.ui.ToastNotificationPanel;\nimport raven.toast.util.NotificationHolder;\nimport raven.toast.util.UIUtils;\n\nimport javax.swing.*;\ni...
toastNotificationPanel.setDialog(window);
{}
{ "repository": "DJ-Raven-swing-toast-notifications-4c7978a", "file": "src/main/java/raven/toast/Notifications.java", "task_id": "project_cc_java/1115" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/raven/toast/Notifications.java", "groundtruth_start_lineno": 286, "repository": "DJ-Raven-swing-toast-notifications-4c7978a", "right_context_start_lineno": 287, "task_id": "project_cc_java/1115" } }
cross_code_eval_java::project_cc_java/1125
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/raven/toast/Notifications.java // * <!-- UIManager --> // * <p> // * Toast.success.ico...
{ "prefix": "package raven.toast.ui;\n\nimport static com.formdev.flatlaf.FlatClientProperties.*;\n\nimport com.formdev.flatlaf.FlatClientProperties;\nimport com.formdev.flatlaf.ui.FlatStylingSupport;\nimport com.formdev.flatlaf.ui.FlatStylingSupport.StyleableUI;\nimport com.formdev.flatlaf.ui.FlatStylingSupport.Styl...
+ ".closeIcon", UIUtils.createIcon("raven/toast/svg/close.svg", closeIconColor, 0.75f));
{}
{ "repository": "DJ-Raven-swing-toast-notifications-4c7978a", "file": "src/main/java/raven/toast/ui/ToastPanelUI.java", "task_id": "project_cc_java/1125" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/raven/toast/ui/ToastPanelUI.java", "groundtruth_start_lineno": 101, "repository": "DJ-Raven-swing-toast-notifications-4c7978a", "right_context_start_lineno": 102, "task_id": "project_cc_java/1125" } }
cross_code_eval_java::project_cc_java/1117
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/raven/toast/util/NotificationHolder.java // } // public void clearHold() { // ...
{ "prefix": "package raven.toast;\n\nimport com.formdev.flatlaf.ui.FlatUIUtils;\nimport com.formdev.flatlaf.util.Animator;\nimport com.formdev.flatlaf.util.UIScale;\nimport raven.toast.ui.ToastNotificationPanel;\nimport raven.toast.util.NotificationHolder;\nimport raven.toast.util.UIUtils;\n\nimport javax.swing.*;\ni...
hold = notificationHolder.getHold(notificationAnimation.getLocation());
{}
{ "repository": "DJ-Raven-swing-toast-notifications-4c7978a", "file": "src/main/java/raven/toast/Notifications.java", "task_id": "project_cc_java/1117" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/raven/toast/Notifications.java", "groundtruth_start_lineno": 186, "repository": "DJ-Raven-swing-toast-notifications-4c7978a", "right_context_start_lineno": 187, "task_id": "project_cc_java/1117" } }
cross_code_eval_java::project_cc_java/1124
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/raven/toast/Notifications.java // } // } // ...
{ "prefix": "package raven.toast.ui;\n\nimport static com.formdev.flatlaf.FlatClientProperties.*;\n\nimport com.formdev.flatlaf.FlatClientProperties;\nimport com.formdev.flatlaf.ui.FlatStylingSupport;\nimport com.formdev.flatlaf.ui.FlatStylingSupport.StyleableUI;\nimport com.formdev.flatlaf.ui.FlatStylingSupport.Styl...
UIUtils.getInsets(prefix + ".margin", new Insets(8, 8, 8, 8));
{}
{ "repository": "DJ-Raven-swing-toast-notifications-4c7978a", "file": "src/main/java/raven/toast/ui/ToastPanelUI.java", "task_id": "project_cc_java/1124" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/raven/toast/ui/ToastPanelUI.java", "groundtruth_start_lineno": 98, "repository": "DJ-Raven-swing-toast-notifications-4c7978a", "right_context_start_lineno": 99, "task_id": "project_cc_java/1124" } }
cross_code_eval_java::project_cc_java/1120
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/raven/toast/util/NotificationHolder.java // if (n.getLocation() == locati...
{ "prefix": "package raven.toast;\n\nimport com.formdev.flatlaf.ui.FlatUIUtils;\nimport com.formdev.flatlaf.util.Animator;\nimport com.formdev.flatlaf.util.UIScale;\nimport raven.toast.ui.ToastNotificationPanel;\nimport raven.toast.util.NotificationHolder;\nimport raven.toast.util.UIUtils;\n\nimport javax.swing.*;\ni...
notificationHolder.clearHold(location);
{}
{ "repository": "DJ-Raven-swing-toast-notifications-4c7978a", "file": "src/main/java/raven/toast/Notifications.java", "task_id": "project_cc_java/1120" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/raven/toast/Notifications.java", "groundtruth_start_lineno": 207, "repository": "DJ-Raven-swing-toast-notifications-4c7978a", "right_context_start_lineno": 208, "task_id": "project_cc_java/1120" } }
cross_code_eval_java::project_cc_java/1114
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/test/java/raven/demo/CustomNotification.java // JLabel label = new JLabel(toastNotification...
{ "prefix": "package raven.toast;\n\nimport com.formdev.flatlaf.ui.FlatUIUtils;\nimport com.formdev.flatlaf.util.Animator;\nimport com.formdev.flatlaf.util.UIScale;\nimport raven.toast.ui.ToastNotificationPanel;\nimport raven.toast.util.NotificationHolder;\nimport raven.toast.util.UIUtils;\n\nimport javax.swing.*;\ni...
toastNotificationPanel.set(type, message);
{}
{ "repository": "DJ-Raven-swing-toast-notifications-4c7978a", "file": "src/main/java/raven/toast/Notifications.java", "task_id": "project_cc_java/1114" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/raven/toast/Notifications.java", "groundtruth_start_lineno": 229, "repository": "DJ-Raven-swing-toast-notifications-4c7978a", "right_context_start_lineno": 230, "task_id": "project_cc_java/1114" } }
cross_code_eval_java::project_cc_java/1155
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/primitives/Rectangle.java // package primitives; // import domain.Point; // public class ...
{ "prefix": "package sprites;\n\nimport domain.CompositeShape;\nimport domain.GenericShape;\nimport domain.Point;\nimport domain.Shape;\nimport primitives.Line;\nimport primitives.Rectangle;\nimport primitives.Square;\nimport transformations.MoveBy;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic cla...
lowerLeft.getY()).transform(new GenericShape(originalPoints)).getPoints();
{}
{ "repository": "dmitriyvolk-redrover-draw-b9b5e7d", "file": "src/main/java/sprites/House.java", "task_id": "project_cc_java/1155" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/sprites/House.java", "groundtruth_start_lineno": 36, "repository": "dmitriyvolk-redrover-draw-b9b5e7d", "right_context_start_lineno": 37, "task_id": "project_cc_java/1155" } }
cross_code_eval_java::project_cc_java/1116
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/raven/toast/util/NotificationHolder.java // } // public void clearHold() { // ...
{ "prefix": "package raven.toast;\n\nimport com.formdev.flatlaf.ui.FlatUIUtils;\nimport com.formdev.flatlaf.util.Animator;\nimport com.formdev.flatlaf.util.UIScale;\nimport raven.toast.ui.ToastNotificationPanel;\nimport raven.toast.util.NotificationHolder;\nimport raven.toast.util.UIUtils;\n\nimport javax.swing.*;\ni...
notificationHolder.hold(notificationAnimation);
{}
{ "repository": "DJ-Raven-swing-toast-notifications-4c7978a", "file": "src/main/java/raven/toast/Notifications.java", "task_id": "project_cc_java/1116" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/raven/toast/Notifications.java", "groundtruth_start_lineno": 180, "repository": "DJ-Raven-swing-toast-notifications-4c7978a", "right_context_start_lineno": 181, "task_id": "project_cc_java/1116" } }
cross_code_eval_java::project_cc_java/1154
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/primitives/Rectangle.java // package primitives; // import domain.Point; // public class ...
{ "prefix": "package sprites;\n\nimport domain.CompositeShape;\nimport domain.GenericShape;\nimport domain.Point;\nimport domain.Shape;\nimport primitives.Line;\nimport primitives.Rectangle;\nimport primitives.Square;\nimport transformations.MoveBy;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic cla...
lowerLeft.getX(), lowerLeft.getY()).transform(new GenericShape(originalPoints)).getPoints();
{}
{ "repository": "dmitriyvolk-redrover-draw-b9b5e7d", "file": "src/main/java/sprites/House.java", "task_id": "project_cc_java/1154" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/sprites/House.java", "groundtruth_start_lineno": 36, "repository": "dmitriyvolk-redrover-draw-b9b5e7d", "right_context_start_lineno": 37, "task_id": "project_cc_java/1154" } }
cross_code_eval_java::project_cc_java/1152
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/canvas/SwingCanvas.java // new Frame().setVisible(true); // }...
{ "prefix": "package canvas;\n\nimport domain.Point;\nimport domain.Shape;\nimport org.apache.commons.lang3.StringUtils;\n\nimport java.util.Arrays;\n\npublic class TextCanvas implements Canvas {\n private final Pixel[][] pixels;\n private final int height;\n private final int width;\n\n private String SE...
y][x].isSet()) {
{}
{ "repository": "dmitriyvolk-redrover-draw-b9b5e7d", "file": "src/main/java/canvas/TextCanvas.java", "task_id": "project_cc_java/1152" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/canvas/TextCanvas.java", "groundtruth_start_lineno": 50, "repository": "dmitriyvolk-redrover-draw-b9b5e7d", "right_context_start_lineno": 51, "task_id": "project_cc_java/1152" } }
cross_code_eval_java::project_cc_java/1149
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/canvas/SwingCanvas.java // int y = point.getY(); // if (x >= 0 &&...
{ "prefix": "package canvas;\n\nimport domain.Point;\nimport domain.Shape;\nimport org.apache.commons.lang3.StringUtils;\n\nimport java.util.Arrays;\n\npublic class TextCanvas implements Canvas {\n private final Pixel[][] pixels;\n private final int height;\n private final int width;\n\n private String SE...
(point.getX(), point.getY());
{}
{ "repository": "dmitriyvolk-redrover-draw-b9b5e7d", "file": "src/main/java/canvas/TextCanvas.java", "task_id": "project_cc_java/1149" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/canvas/TextCanvas.java", "groundtruth_start_lineno": 31, "repository": "dmitriyvolk-redrover-draw-b9b5e7d", "right_context_start_lineno": 32, "task_id": "project_cc_java/1149" } }
cross_code_eval_java::project_cc_java/1159
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/canvas/TextCanvas.java // } // } // @Override // public void show() {...
{ "prefix": "package canvas;\n\nimport domain.Point;\nimport domain.Shape;\n\nimport javax.swing.*;\nimport java.awt.*;\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class SwingCanvas implements Canvas {\n\n private final int width;\n private final int height;\n private final int factor;\n\n...
getX() * factor, point.getY() * factor + 50, factor, factor);
{}
{ "repository": "dmitriyvolk-redrover-draw-b9b5e7d", "file": "src/main/java/canvas/SwingCanvas.java", "task_id": "project_cc_java/1159" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/canvas/SwingCanvas.java", "groundtruth_start_lineno": 56, "repository": "dmitriyvolk-redrover-draw-b9b5e7d", "right_context_start_lineno": 57, "task_id": "project_cc_java/1159" } }
cross_code_eval_java::project_cc_java/1158
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/canvas/TextCanvas.java // } // } // @Override // public void show() {...
{ "prefix": "package canvas;\n\nimport domain.Point;\nimport domain.Shape;\n\nimport javax.swing.*;\nimport java.awt.*;\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class SwingCanvas implements Canvas {\n\n private final int width;\n private final int height;\n private final int factor;\n\n...
.drawOval(point.getX() * factor, point.getY() * factor + 50, factor, factor);
{}
{ "repository": "dmitriyvolk-redrover-draw-b9b5e7d", "file": "src/main/java/canvas/SwingCanvas.java", "task_id": "project_cc_java/1158" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/canvas/SwingCanvas.java", "groundtruth_start_lineno": 56, "repository": "dmitriyvolk-redrover-draw-b9b5e7d", "right_context_start_lineno": 57, "task_id": "project_cc_java/1158" } }
cross_code_eval_java::project_cc_java/1211
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/com/easyhome/common/feign/GrayHeaderParam.java // DW_LANG(GrayscaleConstant.DW_LANG),...
{ "prefix": "package com.easyhome.common.feign;\n\nimport com.easyhome.common.utils.GrayscaleConstant;\nimport lombok.extern.slf4j.Slf4j;\nimport org.springframework.lang.Nullable;\nimport org.springframework.util.StringUtils;\nimport org.springframework.web.servlet.HandlerInterceptor;\n\nimport javax.servlet.http.Ht...
param.put(item.getValue(), hParam);
{}
{ "repository": "EASYHOME-DOORVERSE-easyhome-springcloud-gray-faee63a", "file": "src/main/java/com/easyhome/common/feign/TransmitHeaderPrintLogHanlerInterceptor.java", "task_id": "project_cc_java/1211" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/easyhome/common/feign/TransmitHeaderPrintLogHanlerInterceptor.java", "groundtruth_start_lineno": 39, "repository": "EASYHOME-DOORVERSE-easyhome-springcloud-gray-faee63a", "right_context_start_lineno": 40, "task_id": "project...
cross_code_eval_java::project_cc_java/1076
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/Interceptor/DynamicTableNameI...
{ "prefix": "/*\n * Copyright (c) 2011-2022, baomidou (jobob@qq.com).\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n ...
, this.parserMulti(methodInfo.getActionInfo().getBatchSql()[i], null));
{}
{ "repository": "deeround-jdbc-plus-a0dcdfd", "file": "jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/Interceptor/TenantLineInterceptor.java", "task_id": "project_cc_java/1076" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/Interceptor/TenantLineInterceptor.java", "groundtruth_start_lineno": 69, "repository": "deeround-jdbc-plus-a0dcdfd", "right_context_start_lineno": 70, "task_id": "proje...
cross_code_eval_java::project_cc_java/1208
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/com/easyhome/common/feign/GrayParamHolder.java // for (Map.Entry<String,Strin...
{ "prefix": "package com.easyhome.common.feign;\n\nimport com.easyhome.common.utils.GrayscaleConstant;\nimport lombok.extern.slf4j.Slf4j;\nimport org.springframework.lang.Nullable;\nimport org.springframework.util.StringUtils;\nimport org.springframework.web.servlet.HandlerInterceptor;\n\nimport javax.servlet.http.Ht...
GrayParamHolder.putValues(param);
{}
{ "repository": "EASYHOME-DOORVERSE-easyhome-springcloud-gray-faee63a", "file": "src/main/java/com/easyhome/common/feign/TransmitHeaderPrintLogHanlerInterceptor.java", "task_id": "project_cc_java/1208" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/easyhome/common/feign/TransmitHeaderPrintLogHanlerInterceptor.java", "groundtruth_start_lineno": 42, "repository": "EASYHOME-DOORVERSE-easyhome-springcloud-gray-faee63a", "right_context_start_lineno": 43, "task_id": "project...
cross_code_eval_java::project_cc_java/1077
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/Interceptor/BaseMultiTableInt...
{ "prefix": "/*\n * Copyright (c) 2011-2022, baomidou (jobob@qq.com).\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n ...
ExceptionUtils.mpe("Failed to process multiple-table update, please exclude the tableName or statementId");
{}
{ "repository": "deeround-jdbc-plus-a0dcdfd", "file": "jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/Interceptor/TenantLineInterceptor.java", "task_id": "project_cc_java/1077" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "jdbc-plus-spring-boot-starter/src/main/java/com/github/deeround/jdbc/plus/Interceptor/TenantLineInterceptor.java", "groundtruth_start_lineno": 129, "repository": "deeround-jdbc-plus-a0dcdfd", "right_context_start_lineno": 130, "task_id": "pro...
cross_code_eval_java::project_cc_java/1200
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/com/easyhome/common/utils/GrayUtil.java // Map<String,String> attributes= GrayPar...
{ "prefix": "package com.easyhome.common.nacos.ribbon;\n\nimport com.alibaba.cloud.nacos.NacosDiscoveryProperties;\nimport com.alibaba.cloud.nacos.ribbon.ExtendBalancer;\nimport com.alibaba.cloud.nacos.ribbon.NacosServer;\nimport com.alibaba.nacos.api.naming.NamingService;\nimport com.alibaba.nacos.api.naming.pojo.In...
= GrayUtil.isGrayRequest();
{}
{ "repository": "EASYHOME-DOORVERSE-easyhome-springcloud-gray-faee63a", "file": "src/main/java/com/easyhome/common/nacos/ribbon/NacosRule.java", "task_id": "project_cc_java/1200" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/easyhome/common/nacos/ribbon/NacosRule.java", "groundtruth_start_lineno": 90, "repository": "EASYHOME-DOORVERSE-easyhome-springcloud-gray-faee63a", "right_context_start_lineno": 91, "task_id": "project_cc_java/1200" } }
cross_code_eval_java::project_cc_java/1206
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/com/easyhome/common/utils/GrayUtil.java // return groupFlag; // } els...
{ "prefix": "package com.easyhome.common.feign;\n\nimport com.alibaba.ttl.TransmittableThreadLocal;\nimport com.easyhome.common.utils.GrayUtil;\nimport com.easyhome.common.utils.GrayscaleConstant;\n\nimport java.util.HashMap;\nimport java.util.Map;\nimport java.util.Objects;\n\n/**\n * 异步线程间参数传递\n *\n * @author wangs...
if(GrayUtil.isGrayPod()){
{}
{ "repository": "EASYHOME-DOORVERSE-easyhome-springcloud-gray-faee63a", "file": "src/main/java/com/easyhome/common/feign/GrayParamHolder.java", "task_id": "project_cc_java/1206" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/easyhome/common/feign/GrayParamHolder.java", "groundtruth_start_lineno": 52, "repository": "EASYHOME-DOORVERSE-easyhome-springcloud-gray-faee63a", "right_context_start_lineno": 53, "task_id": "project_cc_java/1206" } }
cross_code_eval_java::project_cc_java/1214
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/com/easyhome/common/rocketmq/AbstractGrayEventListener.java // if (Object...
{ "prefix": "package com.easyhome.common.nacos;\n\nimport com.alibaba.nacos.api.naming.listener.Event;\nimport com.alibaba.nacos.api.naming.listener.EventListener;\nimport com.alibaba.nacos.api.naming.listener.NamingEvent;\nimport com.alibaba.nacos.api.naming.pojo.Instance;\nimport com.easyhome.common.event.GrayEvent...
info("当前实例监听mq队列的状态:{
{}
{ "repository": "EASYHOME-DOORVERSE-easyhome-springcloud-gray-faee63a", "file": "src/main/java/com/easyhome/common/nacos/NacosEventListener.java", "task_id": "project_cc_java/1214" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/easyhome/common/nacos/NacosEventListener.java", "groundtruth_start_lineno": 56, "repository": "EASYHOME-DOORVERSE-easyhome-springcloud-gray-faee63a", "right_context_start_lineno": 57, "task_id": "project_cc_java/1214" } }
cross_code_eval_java::project_cc_java/1201
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/com/easyhome/common/utils/GrayUtil.java // Map<String,String> attributes= GrayPar...
{ "prefix": "package com.easyhome.common.nacos.ribbon;\n\nimport com.alibaba.cloud.nacos.NacosDiscoveryProperties;\nimport com.alibaba.cloud.nacos.ribbon.ExtendBalancer;\nimport com.alibaba.cloud.nacos.ribbon.NacosServer;\nimport com.alibaba.nacos.api.naming.NamingService;\nimport com.alibaba.nacos.api.naming.pojo.In...
=GrayUtil.requestGroup();
{}
{ "repository": "EASYHOME-DOORVERSE-easyhome-springcloud-gray-faee63a", "file": "src/main/java/com/easyhome/common/nacos/ribbon/NacosRule.java", "task_id": "project_cc_java/1201" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/easyhome/common/nacos/ribbon/NacosRule.java", "groundtruth_start_lineno": 92, "repository": "EASYHOME-DOORVERSE-easyhome-springcloud-gray-faee63a", "right_context_start_lineno": 93, "task_id": "project_cc_java/1201" } }
cross_code_eval_java::project_cc_java/1198
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/com/easyhome/common/nacos/ribbon/NacosRule.java // grayGroup=(String)...
{ "prefix": "package com.easyhome.common.utils;\n\nimport com.easyhome.common.feign.GrayParamHolder;\nimport org.springframework.util.StringUtils;\n\nimport java.util.Map;\nimport java.util.Objects;\n\n/**\n * 灰度发布工具类\n *\n * @author wangshufeng\n */\npublic class GrayUtil {\n /**\n * 主题名称拼接灰度后缀\n *\n ...
String> attributes= GrayParamHolder.getGrayMap();
{}
{ "repository": "EASYHOME-DOORVERSE-easyhome-springcloud-gray-faee63a", "file": "src/main/java/com/easyhome/common/utils/GrayUtil.java", "task_id": "project_cc_java/1198" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/easyhome/common/utils/GrayUtil.java", "groundtruth_start_lineno": 45, "repository": "EASYHOME-DOORVERSE-easyhome-springcloud-gray-faee63a", "right_context_start_lineno": 46, "task_id": "project_cc_java/1198" } }
cross_code_eval_java::project_cc_java/1218
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/com/easyhome/common/nacos/NacosEventListener.java // } // /** // * 当前的mq监听状态...
{ "prefix": "package com.easyhome.common.rocketmq;\n\nimport com.aliyun.openservices.ons.api.Consumer;\nimport com.aliyun.openservices.ons.api.MessageListener;\nimport com.aliyun.openservices.ons.api.ONSFactory;\nimport com.aliyun.openservices.ons.api.PropertyKeyConst;\nimport com.easyhome.common.event.GrayEventChang...
getName() + "灰度环境变更:" + listenerStateEnum.getValue());
{}
{ "repository": "EASYHOME-DOORVERSE-easyhome-springcloud-gray-faee63a", "file": "src/main/java/com/easyhome/common/rocketmq/AbstractGrayEventListener.java", "task_id": "project_cc_java/1218" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/easyhome/common/rocketmq/AbstractGrayEventListener.java", "groundtruth_start_lineno": 99, "repository": "EASYHOME-DOORVERSE-easyhome-springcloud-gray-faee63a", "right_context_start_lineno": 100, "task_id": "project_cc_java/1...
cross_code_eval_java::project_cc_java/1210
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/com/easyhome/common/feign/GrayHeaderParam.java // DW_LANG(GrayscaleConstant.DW_LANG),...
{ "prefix": "package com.easyhome.common.feign;\n\nimport com.easyhome.common.utils.GrayscaleConstant;\nimport lombok.extern.slf4j.Slf4j;\nimport org.springframework.lang.Nullable;\nimport org.springframework.util.StringUtils;\nimport org.springframework.web.servlet.HandlerInterceptor;\n\nimport javax.servlet.http.Ht...
getHeader(item.getValue());
{}
{ "repository": "EASYHOME-DOORVERSE-easyhome-springcloud-gray-faee63a", "file": "src/main/java/com/easyhome/common/feign/TransmitHeaderPrintLogHanlerInterceptor.java", "task_id": "project_cc_java/1210" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/easyhome/common/feign/TransmitHeaderPrintLogHanlerInterceptor.java", "groundtruth_start_lineno": 37, "repository": "EASYHOME-DOORVERSE-easyhome-springcloud-gray-faee63a", "right_context_start_lineno": 38, "task_id": "project...
cross_code_eval_java::project_cc_java/1216
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/com/easyhome/common/rocketmq/AbstractGrayEventListener.java // if (Object...
{ "prefix": "package com.easyhome.common.nacos;\n\nimport com.alibaba.nacos.api.naming.listener.Event;\nimport com.alibaba.nacos.api.naming.listener.EventListener;\nimport com.alibaba.nacos.api.naming.listener.NamingEvent;\nimport com.alibaba.nacos.api.naming.pojo.Instance;\nimport com.easyhome.common.event.GrayEvent...
("当前实例是否为灰度环境:{
{}
{ "repository": "EASYHOME-DOORVERSE-easyhome-springcloud-gray-faee63a", "file": "src/main/java/com/easyhome/common/nacos/NacosEventListener.java", "task_id": "project_cc_java/1216" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/easyhome/common/nacos/NacosEventListener.java", "groundtruth_start_lineno": 55, "repository": "EASYHOME-DOORVERSE-easyhome-springcloud-gray-faee63a", "right_context_start_lineno": 56, "task_id": "project_cc_java/1216" } }
cross_code_eval_java::project_cc_java/1232
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/pro/edgematrix/crypto/RawTelegram.java // BigInteger nonce, // Bi...
{ "prefix": "/*\n * Copyright 2023 edgematrix Labs Ltd.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with\n * the License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by a...
RtcMsg.createContractTransaction( subject, application, content, to));
{}
{ "repository": "EMCProtocol-dev-emc_java_sdk-82e4b0e", "file": "src/main/java/pro/edgematrix/crypto/RawRtcMsg.java", "task_id": "project_cc_java/1232" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/pro/edgematrix/crypto/RawRtcMsg.java", "groundtruth_start_lineno": 38, "repository": "EMCProtocol-dev-emc_java_sdk-82e4b0e", "right_context_start_lineno": 40, "task_id": "project_cc_java/1232" } }
cross_code_eval_java::project_cc_java/1233
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/pro/edgematrix/crypto/type/Telegram.java // public static LegacyTransaction createTra...
{ "prefix": "/*\n * Copyright 2023 edgematrix Labs Ltd.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with\n * the License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by a...
rawTransaction = RawTelegram.createTransaction(nonce, gasPrice, gasLimit, contractAddress, value, data);
{}
{ "repository": "EMCProtocol-dev-emc_java_sdk-82e4b0e", "file": "src/main/java/pro/edgematrix/EdgeService.java", "task_id": "project_cc_java/1233" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/pro/edgematrix/EdgeService.java", "groundtruth_start_lineno": 54, "repository": "EMCProtocol-dev-emc_java_sdk-82e4b0e", "right_context_start_lineno": 55, "task_id": "project_cc_java/1233" } }
cross_code_eval_java::project_cc_java/1190
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/ru/dzen/kafka/connect/ytsaurus/common/BaseOffsetsManager.java // public Map<TopicPartit...
{ "prefix": "package ru.dzen.kafka.connect.ytsaurus.common;\n\nimport com.fasterxml.jackson.databind.JsonNode;\nimport com.fasterxml.jackson.databind.ObjectMapper;\nimport com.fasterxml.jackson.databind.node.JsonNodeFactory;\nimport java.nio.charset.StandardCharsets;\nimport java.time.Duration;\nimport java.util.Arra...
(config.getValueOutputFormat() == BaseTableWriterConfig.OutputFormat.STRING && !(recordValue instanceof String)) {
{}
{ "repository": "Dzen-Platform-kafka-connect-ytsaurus-518a6b8", "file": "src/main/java/ru/dzen/kafka/connect/ytsaurus/common/BaseTableWriter.java", "task_id": "project_cc_java/1190" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/ru/dzen/kafka/connect/ytsaurus/common/BaseTableWriter.java", "groundtruth_start_lineno": 125, "repository": "Dzen-Platform-kafka-connect-ytsaurus-518a6b8", "right_context_start_lineno": 127, "task_id": "project_cc_java/1190" }...
cross_code_eval_java::project_cc_java/1185
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/ru/dzen/kafka/connect/ytsaurus/YtTableSinkTask.java // public Map<TopicPartition, Offse...
{ "prefix": "package ru.dzen.kafka.connect.ytsaurus.common;\n\nimport java.time.Duration;\nimport java.util.Arrays;\nimport java.util.List;\nimport java.util.Map;\nimport java.util.stream.Collectors;\nimport org.apache.kafka.common.config.AbstractConfig;\nimport org.apache.kafka.common.config.ConfigDef;\nimport org.a...
Util.parseHumanReadableDuration(value.toString());
{}
{ "repository": "Dzen-Platform-kafka-connect-ytsaurus-518a6b8", "file": "src/main/java/ru/dzen/kafka/connect/ytsaurus/common/BaseTableWriterConfig.java", "task_id": "project_cc_java/1185" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/ru/dzen/kafka/connect/ytsaurus/common/BaseTableWriterConfig.java", "groundtruth_start_lineno": 200, "repository": "Dzen-Platform-kafka-connect-ytsaurus-518a6b8", "right_context_start_lineno": 201, "task_id": "project_cc_java/118...
cross_code_eval_java::project_cc_java/1240
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/app/src/main/java/com/example/duckling_movies/Register.java // } //...
{ "prefix": "package com.example.duckling_movies;\n\nimport androidx.annotation.NonNull;\nimport androidx.appcompat.app.AppCompatActivity;\n\nimport android.text.TextUtils;\nimport android.view.View;\nimport android.content.Intent;\nimport android.os.Bundle;\nimport android.view.View;\nimport android.widget.Button;\n...
if (usuario.getPassword().equals(Senha)) {
{}
{ "repository": "enzogebauer-duckling_animes-a00d26d", "file": "src/app/src/main/java/com/example/duckling_movies/Login.java", "task_id": "project_cc_java/1240" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/app/src/main/java/com/example/duckling_movies/Login.java", "groundtruth_start_lineno": 73, "repository": "enzogebauer-duckling_animes-a00d26d", "right_context_start_lineno": 74, "task_id": "project_cc_java/1240" } }
cross_code_eval_java::project_cc_java/1189
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/ru/dzen/kafka/connect/ytsaurus/common/BaseOffsetsManager.java // public Map<TopicPartit...
{ "prefix": "package ru.dzen.kafka.connect.ytsaurus.common;\n\nimport com.fasterxml.jackson.databind.JsonNode;\nimport com.fasterxml.jackson.databind.ObjectMapper;\nimport com.fasterxml.jackson.databind.node.JsonNodeFactory;\nimport java.nio.charset.StandardCharsets;\nimport java.time.Duration;\nimport java.util.Arra...
(config.getKeyOutputFormat() == BaseTableWriterConfig.OutputFormat.STRING && !(recordKey instanceof String)) {
{}
{ "repository": "Dzen-Platform-kafka-connect-ytsaurus-518a6b8", "file": "src/main/java/ru/dzen/kafka/connect/ytsaurus/common/BaseTableWriter.java", "task_id": "project_cc_java/1189" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/ru/dzen/kafka/connect/ytsaurus/common/BaseTableWriter.java", "groundtruth_start_lineno": 96, "repository": "Dzen-Platform-kafka-connect-ytsaurus-518a6b8", "right_context_start_lineno": 98, "task_id": "project_cc_java/1189" } }
cross_code_eval_java::project_cc_java/1241
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/app/src/main/java/com/example/duckling_movies/Anime_feed.java // // Aqui você pode ...
{ "prefix": "package com.example.duckling_movies;\n\nimport androidx.annotation.NonNull;\nimport androidx.appcompat.app.AppCompatActivity;\n\nimport android.text.TextUtils;\nimport android.view.View;\nimport android.content.Intent;\nimport android.os.Bundle;\nimport android.view.View;\nimport android.widget.Button;\n...
RA_atual = usuario.getMatricula();
{}
{ "repository": "enzogebauer-duckling_animes-a00d26d", "file": "src/app/src/main/java/com/example/duckling_movies/Login.java", "task_id": "project_cc_java/1241" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/app/src/main/java/com/example/duckling_movies/Login.java", "groundtruth_start_lineno": 77, "repository": "enzogebauer-duckling_animes-a00d26d", "right_context_start_lineno": 78, "task_id": "project_cc_java/1241" } }
cross_code_eval_java::project_cc_java/1262
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/com/ericblue/chatgpt3twilio/web/VoiceController.java // // TODO Update gather to ...
{ "prefix": "package com.ericblue.chatgpt3twilio.web;\n\nimport com.ericblue.chatgpt3twilio.exception.RestException;\nimport com.ericblue.chatgpt3twilio.service.ChatGPTService;\nimport com.ericblue.chatgpt3twilio.service.TwilioService;\nimport io.micronaut.http.MediaType;\nimport io.micronaut.http.annotation.Body;\ni...
!twilioService.validatePhoneNumber(from)) {
{}
{ "repository": "ericblue-ChatGPT-Twilio-Java-e88e8a0", "file": "src/main/java/com/ericblue/chatgpt3twilio/web/SmsController.java", "task_id": "project_cc_java/1262" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/ericblue/chatgpt3twilio/web/SmsController.java", "groundtruth_start_lineno": 51, "repository": "ericblue-ChatGPT-Twilio-Java-e88e8a0", "right_context_start_lineno": 52, "task_id": "project_cc_java/1262" } }
cross_code_eval_java::project_cc_java/1081
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // java/src/main/java/com/deshaw/pjrmi/PJRmi.java // * What an array looks like in Java, as far as Py...
{ "prefix": "package com.deshaw.python;\n\nimport java.util.ArrayList;\nimport java.util.HashMap;\nimport java.util.List;\nimport java.util.Map;\n\n/**\n * A more Pythonic version of the map: throws exceptions when trying to access\n * missing keys.\n */\npublic class Dict\n extends HashMap<Object,Object>\n{\n ...
array.validateShape(String.valueOf(key), expectedShape);
{}
{ "repository": "deshaw-pjrmi-4212d0a", "file": "java/src/main/java/com/deshaw/python/Dict.java", "task_id": "project_cc_java/1081" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "java/src/main/java/com/deshaw/python/Dict.java", "groundtruth_start_lineno": 245, "repository": "deshaw-pjrmi-4212d0a", "right_context_start_lineno": 246, "task_id": "project_cc_java/1081" } }
cross_code_eval_java::project_cc_java/1260
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/com/ericblue/chatgpt3twilio/web/SmsController.java // public String processSMSMessage...
{ "prefix": "package com.ericblue.chatgpt3twilio.web;\n\nimport com.ericblue.chatgpt3twilio.config.ChatGPTConfiguration;\nimport com.ericblue.chatgpt3twilio.domain.ChatMessage;\nimport com.ericblue.chatgpt3twilio.exception.RestException;\nimport com.ericblue.chatgpt3twilio.service.ChatGPTService;\nimport com.ericblue...
String response = chatGPTService.askQuestion(message);
{}
{ "repository": "ericblue-ChatGPT-Twilio-Java-e88e8a0", "file": "src/main/java/com/ericblue/chatgpt3twilio/web/ChatGPTController.java", "task_id": "project_cc_java/1260" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/ericblue/chatgpt3twilio/web/ChatGPTController.java", "groundtruth_start_lineno": 54, "repository": "ericblue-ChatGPT-Twilio-Java-e88e8a0", "right_context_start_lineno": 55, "task_id": "project_cc_java/1260" } }
cross_code_eval_java::project_cc_java/1083
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // java/src/main/java/com/deshaw/pjrmi/PJRmi.java // /** // * The sending buffer ...
{ "prefix": "package com.deshaw.pjrmi;\n\nimport com.deshaw.io.BlockingPipe;\nimport com.deshaw.util.StringUtil;\n\nimport java.io.InputStream;\nimport java.io.IOException;\nimport java.io.OutputStream;\n\nimport java.net.InetAddress;\n\nimport java.util.concurrent.ArrayBlockingQueue;\nimport java.util.concurrent.Blo...
myJavaInputStream = in.getInputStream();
{}
{ "repository": "deshaw-pjrmi-4212d0a", "file": "java/src/main/java/com/deshaw/pjrmi/PipedProvider.java", "task_id": "project_cc_java/1083" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "java/src/main/java/com/deshaw/pjrmi/PipedProvider.java", "groundtruth_start_lineno": 199, "repository": "deshaw-pjrmi-4212d0a", "right_context_start_lineno": 200, "task_id": "project_cc_java/1083" } }
cross_code_eval_java::project_cc_java/1261
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/com/ericblue/chatgpt3twilio/web/VoiceController.java // // TODO Update gather to ...
{ "prefix": "package com.ericblue.chatgpt3twilio.web;\n\nimport com.ericblue.chatgpt3twilio.exception.RestException;\nimport com.ericblue.chatgpt3twilio.service.ChatGPTService;\nimport com.ericblue.chatgpt3twilio.service.TwilioService;\nimport io.micronaut.http.MediaType;\nimport io.micronaut.http.annotation.Body;\ni...
chatGPTService.askQuestion(body);
{}
{ "repository": "ericblue-ChatGPT-Twilio-Java-e88e8a0", "file": "src/main/java/com/ericblue/chatgpt3twilio/web/SmsController.java", "task_id": "project_cc_java/1261" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/ericblue/chatgpt3twilio/web/SmsController.java", "groundtruth_start_lineno": 56, "repository": "ericblue-ChatGPT-Twilio-Java-e88e8a0", "right_context_start_lineno": 57, "task_id": "project_cc_java/1261" } }
cross_code_eval_java::project_cc_java/1085
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // java/src/main/java/com/deshaw/pjrmi/PJRmi.java // /** // * The sending buffer ...
{ "prefix": "package com.deshaw.pjrmi;\n\nimport com.deshaw.io.BlockingPipe;\nimport com.deshaw.util.StringUtil;\n\nimport java.io.InputStream;\nimport java.io.IOException;\nimport java.io.OutputStream;\n\nimport java.net.InetAddress;\n\nimport java.util.concurrent.ArrayBlockingQueue;\nimport java.util.concurrent.Blo...
myPythonInputStream = out.getInputStream();
{}
{ "repository": "deshaw-pjrmi-4212d0a", "file": "java/src/main/java/com/deshaw/pjrmi/PipedProvider.java", "task_id": "project_cc_java/1085" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "java/src/main/java/com/deshaw/pjrmi/PipedProvider.java", "groundtruth_start_lineno": 201, "repository": "deshaw-pjrmi-4212d0a", "right_context_start_lineno": 202, "task_id": "project_cc_java/1085" } }
cross_code_eval_java::project_cc_java/1257
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/com/ericblue/chatgpt3twilio/service/ChatGPTService.java // .apiKey(chatGP...
{ "prefix": "package com.ericblue.chatgpt3twilio.web;\n\nimport com.ericblue.chatgpt3twilio.config.ChatGPTConfiguration;\nimport com.ericblue.chatgpt3twilio.domain.ChatMessage;\nimport com.ericblue.chatgpt3twilio.exception.RestException;\nimport com.ericblue.chatgpt3twilio.service.ChatGPTService;\nimport com.ericblue...
chatGPTConfiguration.setApiKey(ConfigUtils.obfuscateApiKey(chatGPTConfiguration.getApiKey()));
{}
{ "repository": "ericblue-ChatGPT-Twilio-Java-e88e8a0", "file": "src/main/java/com/ericblue/chatgpt3twilio/web/ChatGPTController.java", "task_id": "project_cc_java/1257" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/ericblue/chatgpt3twilio/web/ChatGPTController.java", "groundtruth_start_lineno": 36, "repository": "ericblue-ChatGPT-Twilio-Java-e88e8a0", "right_context_start_lineno": 37, "task_id": "project_cc_java/1257" } }
cross_code_eval_java::project_cc_java/1088
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // java/src/main/java/com/deshaw/pjrmi/PJRmi.java // throw new RuntimeException("Faile...
{ "prefix": "package com.deshaw.pjrmi;\n\nimport com.deshaw.util.StringUtil;\n\nimport java.io.InputStream;\nimport java.io.IOException;\nimport java.io.OutputStream;\n\nimport java.net.InetAddress;\n\n/**\n * A transport provider which spawns a child Python process to talk to.\n */\npublic class PythonMinionProvider...
= StringUtil.stackTraceToString(t);
{}
{ "repository": "deshaw-pjrmi-4212d0a", "file": "java/src/main/java/com/deshaw/pjrmi/PythonMinionProvider.java", "task_id": "project_cc_java/1088" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "java/src/main/java/com/deshaw/pjrmi/PythonMinionProvider.java", "groundtruth_start_lineno": 317, "repository": "deshaw-pjrmi-4212d0a", "right_context_start_lineno": 318, "task_id": "project_cc_java/1088" } }
cross_code_eval_java::project_cc_java/1242
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/com/enzulode/network/UDPChannelServer.java // sendResponse(response, request.getFrom())...
{ "prefix": "package com.enzulode.network.concurrent.task.recursive;\n\nimport com.enzulode.network.concurrent.task.RespondingTask;\nimport com.enzulode.network.handling.RequestHandler;\nimport com.enzulode.network.model.interconnection.Request;\nimport com.enzulode.network.model.interconnection.Response;\nimport com...
(request.getTo());
{}
{ "repository": "enzulode-networking-library-dfda932", "file": "src/main/java/com/enzulode/network/concurrent/task/recursive/RecursiveRequestHandlingAction.java", "task_id": "project_cc_java/1242" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/enzulode/network/concurrent/task/recursive/RecursiveRequestHandlingAction.java", "groundtruth_start_lineno": 67, "repository": "enzulode-networking-library-dfda932", "right_context_start_lineno": 68, "task_id": "project_cc_j...
cross_code_eval_java::project_cc_java/1252
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/com/enzulode/network/UDPChannelServer.java // allRequestBytes = NetworkUtils.concatTw...
{ "prefix": "package com.enzulode.network;\n\nimport com.enzulode.network.exception.MappingException;\nimport com.enzulode.network.exception.NetworkException;\nimport com.enzulode.network.exception.ServerNotAvailableException;\nimport com.enzulode.network.mapper.FrameMapper;\nimport com.enzulode.network.mapper.Reques...
responseFrame = FrameMapper.mapFromBytesToInstance(currentFrameBytes);
{}
{ "repository": "enzulode-networking-library-dfda932", "file": "src/main/java/com/enzulode/network/UDPChannelClient.java", "task_id": "project_cc_java/1252" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/enzulode/network/UDPChannelClient.java", "groundtruth_start_lineno": 281, "repository": "enzulode-networking-library-dfda932", "right_context_start_lineno": 282, "task_id": "project_cc_java/1252" } }
cross_code_eval_java::project_cc_java/1245
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/com/enzulode/network/concurrent/task/RespondingTask.java // throw new NetworkException...
{ "prefix": "package com.enzulode.network.concurrent.task.recursive;\n\nimport com.enzulode.network.concurrent.structures.ConcurrentFrameReceivingMap;\nimport com.enzulode.network.concurrent.structures.Pair;\nimport com.enzulode.network.exception.MappingException;\nimport com.enzulode.network.exception.NetworkExcepti...
UDPFrame currentFrame = FrameMapper.mapFromBytesToInstance(incomingRequestPacket.getData());
{}
{ "repository": "enzulode-networking-library-dfda932", "file": "src/main/java/com/enzulode/network/concurrent/task/recursive/RecursiveRequestReceivingAction.java", "task_id": "project_cc_java/1245" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/enzulode/network/concurrent/task/recursive/RecursiveRequestReceivingAction.java", "groundtruth_start_lineno": 93, "repository": "enzulode-networking-library-dfda932", "right_context_start_lineno": 94, "task_id": "project_cc_...
cross_code_eval_java::project_cc_java/1244
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/com/enzulode/network/concurrent/structures/ConcurrentFrameReceivingMap.java // { // if...
{ "prefix": "package com.enzulode.network.concurrent.task.recursive;\n\nimport com.enzulode.network.concurrent.structures.ConcurrentFrameReceivingMap;\nimport com.enzulode.network.concurrent.structures.Pair;\nimport com.enzulode.network.exception.MappingException;\nimport com.enzulode.network.exception.NetworkExcepti...
, List<UDPFrame>> completedRequestFrameList : map.findCompletedRequestsFrameLists()) {
{}
{ "repository": "enzulode-networking-library-dfda932", "file": "src/main/java/com/enzulode/network/concurrent/task/recursive/RecursiveRequestReceivingAction.java", "task_id": "project_cc_java/1244" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/enzulode/network/concurrent/task/recursive/RecursiveRequestReceivingAction.java", "groundtruth_start_lineno": 98, "repository": "enzulode-networking-library-dfda932", "right_context_start_lineno": 100, "task_id": "project_cc...
cross_code_eval_java::project_cc_java/1246
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/com/enzulode/network/UDPChannelServer.java // { // throw new NetworkException("Faile...
{ "prefix": "package com.enzulode.network.concurrent.task;\n\nimport com.enzulode.network.exception.MappingException;\nimport com.enzulode.network.exception.NetworkException;\nimport com.enzulode.network.mapper.FrameMapper;\nimport com.enzulode.network.mapper.ResponseMapper;\nimport com.enzulode.network.model.interco...
sendResponseWithOverhead(responseBytes, response.getTo());
{}
{ "repository": "enzulode-networking-library-dfda932", "file": "src/main/java/com/enzulode/network/concurrent/task/RespondingTask.java", "task_id": "project_cc_java/1246" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/enzulode/network/concurrent/task/RespondingTask.java", "groundtruth_start_lineno": 80, "repository": "enzulode-networking-library-dfda932", "right_context_start_lineno": 81, "task_id": "project_cc_java/1246" } }
cross_code_eval_java::project_cc_java/1168
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // service/src/main/java/com/theokanning/openai/service/OpenAiAPI.java // Single<CompletionResult> cre...
{ "prefix": "package com.theokanning.openai.service;\n\nimport com.fasterxml.jackson.annotation.JsonInclude;\nimport com.fasterxml.jackson.databind.DeserializationFeature;\nimport com.fasterxml.jackson.databind.ObjectMapper;\nimport com.fasterxml.jackson.databind.PropertyNamingStrategy;\nimport com.theokanning.openai...
return execute(api.getModel(modelId));
{}
{ "repository": "dudu-Dev0-WearGPT-2a5428e", "file": "service/src/main/java/com/theokanning/openai/service/OpenAiService.java", "task_id": "project_cc_java/1168" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "service/src/main/java/com/theokanning/openai/service/OpenAiService.java", "groundtruth_start_lineno": 81, "repository": "dudu-Dev0-WearGPT-2a5428e", "right_context_start_lineno": 82, "task_id": "project_cc_java/1168" } }
cross_code_eval_java::project_cc_java/1096
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // java/src/main/java/com/deshaw/io/BlockingPipe.java // // Wait for the pipe to have room // ...
{ "prefix": "package com.deshaw.python;\n\nimport com.deshaw.util.ByteList;\n\nimport java.io.ByteArrayOutputStream;\nimport java.io.IOException;\nimport java.io.OutputStream;\n\nimport java.nio.ByteBuffer;\nimport java.nio.ByteOrder;\nimport java.nio.charset.StandardCharsets;\n\nimport java.util.Arrays;\nimport java...
myByteList.clear();
{}
{ "repository": "deshaw-pjrmi-4212d0a", "file": "java/src/main/java/com/deshaw/python/PythonPickle.java", "task_id": "project_cc_java/1096" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "java/src/main/java/com/deshaw/python/PythonPickle.java", "groundtruth_start_lineno": 199, "repository": "deshaw-pjrmi-4212d0a", "right_context_start_lineno": 200, "task_id": "project_cc_java/1096" } }
cross_code_eval_java::project_cc_java/1167
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // service/src/test/java/com/theokanning/openai/service/ModelTest.java // void listModels() { // ...
{ "prefix": "package com.theokanning.openai.service;\n\nimport com.fasterxml.jackson.annotation.JsonInclude;\nimport com.fasterxml.jackson.databind.DeserializationFeature;\nimport com.fasterxml.jackson.databind.ObjectMapper;\nimport com.fasterxml.jackson.databind.PropertyNamingStrategy;\nimport com.theokanning.openai...
return execute(api.listModels()).data;
{}
{ "repository": "dudu-Dev0-WearGPT-2a5428e", "file": "service/src/main/java/com/theokanning/openai/service/OpenAiService.java", "task_id": "project_cc_java/1167" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "service/src/main/java/com/theokanning/openai/service/OpenAiService.java", "groundtruth_start_lineno": 77, "repository": "dudu-Dev0-WearGPT-2a5428e", "right_context_start_lineno": 78, "task_id": "project_cc_java/1167" } }
cross_code_eval_java::project_cc_java/1098
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // java/src/main/java/com/deshaw/io/BlockingPipe.java // // Wait for the pipe to have room // ...
{ "prefix": "package com.deshaw.python;\n\nimport com.deshaw.util.ByteList;\n\nimport java.io.ByteArrayOutputStream;\nimport java.io.IOException;\nimport java.io.OutputStream;\n\nimport java.nio.ByteBuffer;\nimport java.nio.ByteOrder;\nimport java.nio.charset.StandardCharsets;\n\nimport java.util.Arrays;\nimport java...
(myByteList.toArray());
{}
{ "repository": "deshaw-pjrmi-4212d0a", "file": "java/src/main/java/com/deshaw/python/PythonPickle.java", "task_id": "project_cc_java/1098" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "java/src/main/java/com/deshaw/python/PythonPickle.java", "groundtruth_start_lineno": 203, "repository": "deshaw-pjrmi-4212d0a", "right_context_start_lineno": 204, "task_id": "project_cc_java/1098" } }
cross_code_eval_java::project_cc_java/1269
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // FinalProject1/src/net/braniumacademy/view/AddStudentDialog.java // var msg = "Vui lòng điền...
{ "prefix": "package net.braniumacademy.model;\n\nimport java.util.Objects;\nimport net.braniumacademy.controller.InfoFilterImp;\nimport net.braniumacademy.exception.InvalidDateOfBirthException;\nimport net.braniumacademy.exception.InvalidEmailException;\nimport net.braniumacademy.exception.InvalidNameException;\nimp...
if (infoFilter.isStudentIdValid(studentId)) {
{}
{ "repository": "EricTra-University_Admission-18ace1f", "file": "FinalProject1/src/net/braniumacademy/model/Student.java", "task_id": "project_cc_java/1269" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "FinalProject1/src/net/braniumacademy/model/Student.java", "groundtruth_start_lineno": 52, "repository": "EricTra-University_Admission-18ace1f", "right_context_start_lineno": 53, "task_id": "project_cc_java/1269" } }
cross_code_eval_java::project_cc_java/1093
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // java/src/main/java/com/deshaw/pjrmi/PJRmi.java // offset += Long.BYTES; // ...
{ "prefix": "package com.deshaw.pjrmi;\n\nimport com.deshaw.util.StringUtil;\n\nimport java.io.InputStream;\nimport java.io.IOException;\nimport java.io.OutputStream;\n\nimport java.net.InetAddress;\n\n/**\n * A transport provider which spawns a child Python process to talk to.\n */\npublic class PythonMinionProvider...
PythonMinion.byValue(foo);
{}
{ "repository": "deshaw-pjrmi-4212d0a", "file": "java/src/main/java/com/deshaw/pjrmi/PythonMinionProvider.java", "task_id": "project_cc_java/1093" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "java/src/main/java/com/deshaw/pjrmi/PythonMinionProvider.java", "groundtruth_start_lineno": 345, "repository": "deshaw-pjrmi-4212d0a", "right_context_start_lineno": 346, "task_id": "project_cc_java/1093" } }
cross_code_eval_java::project_cc_java/1274
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // FinalProject1/src/net/braniumacademy/model/Student.java // super(id, address, email, phoneNumbe...
{ "prefix": "package net.braniumacademy.model;\n\nimport java.io.Serializable;\nimport java.text.ParseException;\nimport java.text.SimpleDateFormat;\nimport java.util.Date;\nimport java.util.Objects;\nimport net.braniumacademy.controller.InfoFilterImp;\nimport net.braniumacademy.exception.InvalidDateOfBirthException;...
infoFilter.isPersonIdValid(id)) {
{}
{ "repository": "EricTra-University_Admission-18ace1f", "file": "FinalProject1/src/net/braniumacademy/model/Person.java", "task_id": "project_cc_java/1274" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "FinalProject1/src/net/braniumacademy/model/Person.java", "groundtruth_start_lineno": 53, "repository": "EricTra-University_Admission-18ace1f", "right_context_start_lineno": 54, "task_id": "project_cc_java/1274" } }