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/5400
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: // demo/src/main/java/com/solodroid/ads/sdkdemo/adapter/AdapterPost.java // case GOOGLE_AD_MAN...
{ "prefix": "package com.solodroid.ads.sdkdemo.activity;\n\nimport android.os.Bundle;\nimport android.view.MenuItem;\nimport android.widget.Toast;\n\nimport androidx.appcompat.app.ActionBar;\nimport androidx.appcompat.app.AppCompatActivity;\nimport androidx.appcompat.widget.Toolbar;\nimport androidx.recyclerview.widg...
adapterPost.setOnItemClickListener((view, obj, position) -> {
{}
{ "repository": "solodroidx-multi-ads-sdk-4f23cdf", "file": "demo/src/main/java/com/solodroid/ads/sdkdemo/activity/SecondActivity.java", "task_id": "project_cc_java/5400" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "demo/src/main/java/com/solodroid/ads/sdkdemo/activity/SecondActivity.java", "groundtruth_start_lineno": 65, "repository": "solodroidx-multi-ads-sdk-4f23cdf", "right_context_start_lineno": 66, "task_id": "project_cc_java/5400" } }
cross_code_eval_java::project_cc_java/5581
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/github/stupdit1t/jackson/expand/handler/params/DefaultParamsHandler.java // i...
{ "prefix": "package com.github.stupdit1t.jackson.expand.serializer;\n\nimport com.fasterxml.jackson.core.JsonGenerator;\nimport com.fasterxml.jackson.core.JsonStreamContext;\nimport com.fasterxml.jackson.databind.BeanProperty;\nimport com.fasterxml.jackson.databind.JsonMappingException;\nimport com.fasterxml.jackson...
jacksonExpandProperties.getExpandStrategy() == ExpandStrategy.COVER) {
{}
{ "repository": "stupdit1t-jackson-expand-boot-starter-b492b74", "file": "src/main/java/com/github/stupdit1t/jackson/expand/serializer/ExpandSerializer.java", "task_id": "project_cc_java/5581" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/github/stupdit1t/jackson/expand/serializer/ExpandSerializer.java", "groundtruth_start_lineno": 144, "repository": "stupdit1t-jackson-expand-boot-starter-b492b74", "right_context_start_lineno": 145, "task_id": "project_cc_jav...
cross_code_eval_java::project_cc_java/5410
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: // library/src/main/java/com/solodroid/ads/sdk/format/BannerAd.java // adConta...
{ "prefix": "package com.solodroid.ads.sdk.format;\n\nimport static com.solodroid.ads.sdk.util.Constant.ADMOB;\nimport static com.solodroid.ads.sdk.util.Constant.AD_STATUS_ON;\nimport static com.solodroid.ads.sdk.util.Constant.APPLOVIN;\nimport static com.solodroid.ads.sdk.util.Constant.APPLOVIN_DISCOVERY;\nimport st...
(Tools.getAdSizeMREC());
{}
{ "repository": "solodroidx-multi-ads-sdk-4f23cdf", "file": "library/src/main/java/com/solodroid/ads/sdk/format/MediumRectangleAd.java", "task_id": "project_cc_java/5410" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "library/src/main/java/com/solodroid/ads/sdk/format/MediumRectangleAd.java", "groundtruth_start_lineno": 181, "repository": "solodroidx-multi-ads-sdk-4f23cdf", "right_context_start_lineno": 182, "task_id": "project_cc_java/5410" } }
cross_code_eval_java::project_cc_java/5575
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/github/stupdit1t/jackson/expand/util/ReflectUtil.java // throw new Unsupp...
{ "prefix": "package com.github.stupdit1t.jackson.expand.serializer;\n\nimport com.fasterxml.jackson.core.JsonGenerator;\nimport com.fasterxml.jackson.core.JsonStreamContext;\nimport com.fasterxml.jackson.databind.BeanProperty;\nimport com.fasterxml.jackson.databind.JsonMappingException;\nimport com.fasterxml.jackson...
cache.get(String.format(cacheKey, OK));
{}
{ "repository": "stupdit1t-jackson-expand-boot-starter-b492b74", "file": "src/main/java/com/github/stupdit1t/jackson/expand/serializer/ExpandSerializer.java", "task_id": "project_cc_java/5575" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/github/stupdit1t/jackson/expand/serializer/ExpandSerializer.java", "groundtruth_start_lineno": 251, "repository": "stupdit1t-jackson-expand-boot-starter-b492b74", "right_context_start_lineno": 252, "task_id": "project_cc_jav...
cross_code_eval_java::project_cc_java/5577
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/github/stupdit1t/jackson/expand/util/ReflectUtil.java // throw new Unsupp...
{ "prefix": "package com.github.stupdit1t.jackson.expand.serializer;\n\nimport com.fasterxml.jackson.core.JsonGenerator;\nimport com.fasterxml.jackson.core.JsonStreamContext;\nimport com.fasterxml.jackson.databind.BeanProperty;\nimport com.fasterxml.jackson.databind.JsonMappingException;\nimport com.fasterxml.jackson...
lock = lockCache.get(cacheKey, new StampedLock(), Duration.ofSeconds(300));
{}
{ "repository": "stupdit1t-jackson-expand-boot-starter-b492b74", "file": "src/main/java/com/github/stupdit1t/jackson/expand/serializer/ExpandSerializer.java", "task_id": "project_cc_java/5577" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/github/stupdit1t/jackson/expand/serializer/ExpandSerializer.java", "groundtruth_start_lineno": 193, "repository": "stupdit1t-jackson-expand-boot-starter-b492b74", "right_context_start_lineno": 194, "task_id": "project_cc_jav...
cross_code_eval_java::project_cc_java/5583
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/github/stupdit1t/jackson/expand/config/JacksonExpandProperties.java // } // p...
{ "prefix": "package com.github.stupdit1t.jackson.expand.serializer;\n\nimport com.fasterxml.jackson.core.JsonGenerator;\nimport com.fasterxml.jackson.core.JsonStreamContext;\nimport com.fasterxml.jackson.databind.BeanProperty;\nimport com.fasterxml.jackson.databind.JsonMappingException;\nimport com.fasterxml.jackson...
format(jacksonExpandProperties.getCopyStrategyFormat(), gen.getOutputContext().getCurrentName());
{}
{ "repository": "stupdit1t-jackson-expand-boot-starter-b492b74", "file": "src/main/java/com/github/stupdit1t/jackson/expand/serializer/ExpandSerializer.java", "task_id": "project_cc_java/5583" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/github/stupdit1t/jackson/expand/serializer/ExpandSerializer.java", "groundtruth_start_lineno": 147, "repository": "stupdit1t-jackson-expand-boot-starter-b492b74", "right_context_start_lineno": 148, "task_id": "project_cc_jav...
cross_code_eval_java::project_cc_java/5580
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/github/stupdit1t/jackson/expand/config/JacksonExpandProperties.java // public Str...
{ "prefix": "package com.github.stupdit1t.jackson.expand.serializer;\n\nimport com.fasterxml.jackson.core.JsonGenerator;\nimport com.fasterxml.jackson.core.JsonStreamContext;\nimport com.fasterxml.jackson.databind.BeanProperty;\nimport com.fasterxml.jackson.databind.JsonMappingException;\nimport com.fasterxml.jackson...
(jacksonExpandProperties.getDynamicExpandParameterName());
{}
{ "repository": "stupdit1t-jackson-expand-boot-starter-b492b74", "file": "src/main/java/com/github/stupdit1t/jackson/expand/serializer/ExpandSerializer.java", "task_id": "project_cc_java/5580" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/github/stupdit1t/jackson/expand/serializer/ExpandSerializer.java", "groundtruth_start_lineno": 131, "repository": "stupdit1t-jackson-expand-boot-starter-b492b74", "right_context_start_lineno": 132, "task_id": "project_cc_jav...
cross_code_eval_java::project_cc_java/5656
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/tati/utils/YoutubeAPI.java // LocalDateTime publishedDateTime = LocalDateTime.pars...
{ "prefix": "package com.tati.controller;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.web.bind.annotation.CrossOrigin;\nimport org.springframework.web.bind.annotation.PostMapping;\nimport org.springframework.web.bind.annotation.RequestParam;\nimport org.springframewor...
dataHolder.setVideoPopularLink(videoData.get(8));
{}
{ "repository": "tati2002med-dashboarder-spring-mvc-api-61d5a07", "file": "src/main/java/com/tati/controller/YoutubeAPIController.java", "task_id": "project_cc_java/5656" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/tati/controller/YoutubeAPIController.java", "groundtruth_start_lineno": 38, "repository": "tati2002med-dashboarder-spring-mvc-api-61d5a07", "right_context_start_lineno": 39, "task_id": "project_cc_java/5656" } }
cross_code_eval_java::project_cc_java/5562
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/io/strimzi/kafka/bridge/mqtt/core/MqttServerInitializer.java // protected void initCh...
{ "prefix": "/*\n * Copyright Strimzi authors.\n * License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).\n */\npackage io.strimzi.kafka.bridge.mqtt.core;\n\nimport io.netty.bootstrap.ServerBootstrap;\nimport io.netty.channel.ChannelFuture;\nimport io.netty.channel.ChannelO...
(this.mqttConfig.getHost(), this.mqttConfig.getPort()).sync();
{}
{ "repository": "strimzi-strimzi-mqtt-bridge-cb0a4b8", "file": "src/main/java/io/strimzi/kafka/bridge/mqtt/core/MqttServer.java", "task_id": "project_cc_java/5562" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/io/strimzi/kafka/bridge/mqtt/core/MqttServer.java", "groundtruth_start_lineno": 60, "repository": "strimzi-strimzi-mqtt-bridge-cb0a4b8", "right_context_start_lineno": 61, "task_id": "project_cc_java/5562" } }
cross_code_eval_java::project_cc_java/5558
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/io/strimzi/kafka/bridge/mqtt/config/KafkaProducerConfig.java // .filter(e...
{ "prefix": "/*\n * Copyright Strimzi authors.\n * License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).\n */\npackage io.strimzi.kafka.bridge.mqtt.config;\n\nimport java.util.Map;\nimport java.util.stream.Collectors;\n\n/**\n * Represents the bridge configuration properti...
mqttConfig = MqttConfig.fromMap(map);
{}
{ "repository": "strimzi-strimzi-mqtt-bridge-cb0a4b8", "file": "src/main/java/io/strimzi/kafka/bridge/mqtt/config/BridgeConfig.java", "task_id": "project_cc_java/5558" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/io/strimzi/kafka/bridge/mqtt/config/BridgeConfig.java", "groundtruth_start_lineno": 46, "repository": "strimzi-strimzi-mqtt-bridge-cb0a4b8", "right_context_start_lineno": 47, "task_id": "project_cc_java/5558" } }
cross_code_eval_java::project_cc_java/5561
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/io/strimzi/kafka/bridge/mqtt/MqttBridgetIT.java // /** // * Test the client's co...
{ "prefix": "/*\n * Copyright Strimzi authors.\n * License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).\n */\npackage io.strimzi.kafka.bridge.mqtt.core;\n\nimport io.netty.bootstrap.ServerBootstrap;\nimport io.netty.channel.ChannelFuture;\nimport io.netty.channel.ChannelO...
(config.getKafkaConfig());
{}
{ "repository": "strimzi-strimzi-mqtt-bridge-cb0a4b8", "file": "src/main/java/io/strimzi/kafka/bridge/mqtt/core/MqttServer.java", "task_id": "project_cc_java/5561" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/io/strimzi/kafka/bridge/mqtt/core/MqttServer.java", "groundtruth_start_lineno": 46, "repository": "strimzi-strimzi-mqtt-bridge-cb0a4b8", "right_context_start_lineno": 47, "task_id": "project_cc_java/5561" } }
cross_code_eval_java::project_cc_java/5560
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/io/strimzi/kafka/bridge/mqtt/MqttBridgetIT.java // /** // * Test the client's co...
{ "prefix": "/*\n * Copyright Strimzi authors.\n * License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).\n */\npackage io.strimzi.kafka.bridge.mqtt.core;\n\nimport io.netty.bootstrap.ServerBootstrap;\nimport io.netty.channel.ChannelFuture;\nimport io.netty.channel.ChannelO...
config.getMqttConfig();
{}
{ "repository": "strimzi-strimzi-mqtt-bridge-cb0a4b8", "file": "src/main/java/io/strimzi/kafka/bridge/mqtt/core/MqttServer.java", "task_id": "project_cc_java/5560" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/io/strimzi/kafka/bridge/mqtt/core/MqttServer.java", "groundtruth_start_lineno": 45, "repository": "strimzi-strimzi-mqtt-bridge-cb0a4b8", "right_context_start_lineno": 46, "task_id": "project_cc_java/5560" } }
cross_code_eval_java::project_cc_java/5568
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/io/strimzi/kafka/bridge/mqtt/MqttBridgetIT.java // /** // * Test the client's co...
{ "prefix": "/*\n * Copyright Strimzi authors.\n * License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).\n */\npackage io.strimzi.kafka.bridge.mqtt;\n\nimport io.netty.channel.ChannelOption;\nimport io.netty.channel.EventLoopGroup;\nimport io.netty.channel.nio.NioEventLoop...
mqttServer.stop();
{}
{ "repository": "strimzi-strimzi-mqtt-bridge-cb0a4b8", "file": "src/main/java/io/strimzi/kafka/bridge/mqtt/Main.java", "task_id": "project_cc_java/5568" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/io/strimzi/kafka/bridge/mqtt/Main.java", "groundtruth_start_lineno": 55, "repository": "strimzi-strimzi-mqtt-bridge-cb0a4b8", "right_context_start_lineno": 56, "task_id": "project_cc_java/5568" } }
cross_code_eval_java::project_cc_java/5563
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/io/strimzi/kafka/bridge/mqtt/core/MqttServerInitializer.java // protected void initCh...
{ "prefix": "/*\n * Copyright Strimzi authors.\n * License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).\n */\npackage io.strimzi.kafka.bridge.mqtt.core;\n\nimport io.netty.bootstrap.ServerBootstrap;\nimport io.netty.channel.ChannelFuture;\nimport io.netty.channel.ChannelO...
, this.mqttConfig.getPort()).sync();
{}
{ "repository": "strimzi-strimzi-mqtt-bridge-cb0a4b8", "file": "src/main/java/io/strimzi/kafka/bridge/mqtt/core/MqttServer.java", "task_id": "project_cc_java/5563" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/io/strimzi/kafka/bridge/mqtt/core/MqttServer.java", "groundtruth_start_lineno": 60, "repository": "strimzi-strimzi-mqtt-bridge-cb0a4b8", "right_context_start_lineno": 61, "task_id": "project_cc_java/5563" } }
cross_code_eval_java::project_cc_java/5570
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/io/strimzi/kafka/bridge/mqtt/config/ConfigRetriever.java // */ // public static ...
{ "prefix": "/*\n * Copyright Strimzi authors.\n * License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).\n */\npackage io.strimzi.kafka.bridge.mqtt;\n\nimport io.netty.channel.ChannelOption;\nimport io.netty.channel.EventLoopGroup;\nimport io.netty.channel.nio.NioEventLoop...
MappingRulesLoader.getInstance().init(mappingRulesFile);
{}
{ "repository": "strimzi-strimzi-mqtt-bridge-cb0a4b8", "file": "src/main/java/io/strimzi/kafka/bridge/mqtt/Main.java", "task_id": "project_cc_java/5570" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/io/strimzi/kafka/bridge/mqtt/Main.java", "groundtruth_start_lineno": 44, "repository": "strimzi-strimzi-mqtt-bridge-cb0a4b8", "right_context_start_lineno": 45, "task_id": "project_cc_java/5570" } }
cross_code_eval_java::project_cc_java/5664
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/org/tallison/cc/index/extractor/CCMimeCounter.java // if (!fetcherConfig.getR...
{ "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 ...
return Integer.toString(record.getStatus());
{}
{ "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "file": "src/main/java/org/tallison/cc/index/selector/RecordSelector.java", "task_id": "project_cc_java/5664" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/org/tallison/cc/index/selector/RecordSelector.java", "groundtruth_start_lineno": 96, "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "right_context_start_lineno": 97, "task_id": "project_cc_java/5664" } }
cross_code_eval_java::project_cc_java/5662
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/org/tallison/cc/index/extractor/CCMimeCounter.java // if (!fetcherConfig.getR...
{ "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 ...
record.getTruncated();
{}
{ "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "file": "src/main/java/org/tallison/cc/index/selector/RecordSelector.java", "task_id": "project_cc_java/5662" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/org/tallison/cc/index/selector/RecordSelector.java", "groundtruth_start_lineno": 92, "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "right_context_start_lineno": 93, "task_id": "project_cc_java/5662" } }
cross_code_eval_java::project_cc_java/5660
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/org/tallison/cc/index/extractor/CCFileExtractor.java // ExtractorConfig fetcherCo...
{ "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 ...
CCMimeCounter.main(new String[]{
{}
{ "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "file": "src/main/java/org/tallison/cc/index/extractor/CCFetcherCli.java", "task_id": "project_cc_java/5660" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/org/tallison/cc/index/extractor/CCFetcherCli.java", "groundtruth_start_lineno": 35, "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "right_context_start_lineno": 36, "task_id": "project_cc_java/5660" } }
cross_code_eval_java::project_cc_java/5589
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/suimz/open/chatgptweb/java/bean/resp/R.java // return R.builder() // ...
{ "prefix": "package com.suimz.open.chatgptweb.java.core.exception;\n\nimport com.suimz.open.chatgptweb.java.bean.resp.R;\nimport org.springframework.http.ResponseEntity;\nimport org.springframework.http.converter.HttpMessageNotReadableException;\nimport org.springframework.validation.BindException;\nimport org.sprin...
R.error("bad request");
{}
{ "repository": "suimz-chatgpt-web-java-37a4c63", "file": "src/main/java/com/suimz/open/chatgptweb/java/core/exception/AdviceException.java", "task_id": "project_cc_java/5589" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/suimz/open/chatgptweb/java/core/exception/AdviceException.java", "groundtruth_start_lineno": 40, "repository": "suimz-chatgpt-web-java-37a4c63", "right_context_start_lineno": 41, "task_id": "project_cc_java/5589" } }
cross_code_eval_java::project_cc_java/5658
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/org/tallison/cc/index/extractor/CCFileExtractor.java // ExtractorConfig fetcherCo...
{ "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 ...
CCFileExtractor.main(new String[]{
{}
{ "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "file": "src/main/java/org/tallison/cc/index/extractor/CCFetcherCli.java", "task_id": "project_cc_java/5658" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/org/tallison/cc/index/extractor/CCFetcherCli.java", "groundtruth_start_lineno": 31, "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "right_context_start_lineno": 32, "task_id": "project_cc_java/5658" } }
cross_code_eval_java::project_cc_java/5590
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/suimz/open/chatgptweb/java/bean/resp/R.java // return R.builder() // ...
{ "prefix": "package com.suimz.open.chatgptweb.java.core.exception;\n\nimport com.suimz.open.chatgptweb.java.bean.resp.R;\nimport org.springframework.http.ResponseEntity;\nimport org.springframework.http.converter.HttpMessageNotReadableException;\nimport org.springframework.validation.BindException;\nimport org.sprin...
return R.error(error.get("errorMsg").toString());
{}
{ "repository": "suimz-chatgpt-web-java-37a4c63", "file": "src/main/java/com/suimz/open/chatgptweb/java/core/exception/AdviceException.java", "task_id": "project_cc_java/5590" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/suimz/open/chatgptweb/java/core/exception/AdviceException.java", "groundtruth_start_lineno": 47, "repository": "suimz-chatgpt-web-java-37a4c63", "right_context_start_lineno": 48, "task_id": "project_cc_java/5590" } }
cross_code_eval_java::project_cc_java/5592
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/suimz/open/chatgptweb/java/util/SpringUtil.java // File jarFile = home.getSou...
{ "prefix": "package com.suimz.open.chatgptweb.java.core.exception;\n\nimport com.suimz.open.chatgptweb.java.bean.resp.R;\nimport org.springframework.http.ResponseEntity;\nimport org.springframework.http.converter.HttpMessageNotReadableException;\nimport org.springframework.validation.BindException;\nimport org.sprin...
R.error();
{}
{ "repository": "suimz-chatgpt-web-java-37a4c63", "file": "src/main/java/com/suimz/open/chatgptweb/java/core/exception/AdviceException.java", "task_id": "project_cc_java/5592" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/suimz/open/chatgptweb/java/core/exception/AdviceException.java", "groundtruth_start_lineno": 79, "repository": "suimz-chatgpt-web-java-37a4c63", "right_context_start_lineno": 80, "task_id": "project_cc_java/5592" } }
cross_code_eval_java::project_cc_java/5593
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/suimz/open/chatgptweb/java/core/interceptor/AuthInterceptor.java // return St...
{ "prefix": "package com.suimz.open.chatgptweb.java.controller;\n\nimport cn.hutool.core.util.ObjectUtil;\nimport cn.hutool.core.util.StrUtil;\nimport com.suimz.open.chatgptweb.java.bean.constant.ApiRunMode;\nimport com.suimz.open.chatgptweb.java.bean.req.AuthVerifyReq;\nimport com.suimz.open.chatgptweb.java.bean.req...
R.ok("Verify successfully");
{}
{ "repository": "suimz-chatgpt-web-java-37a4c63", "file": "src/main/java/com/suimz/open/chatgptweb/java/controller/AppController.java", "task_id": "project_cc_java/5593" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/suimz/open/chatgptweb/java/controller/AppController.java", "groundtruth_start_lineno": 99, "repository": "suimz-chatgpt-web-java-37a4c63", "right_context_start_lineno": 100, "task_id": "project_cc_java/5593" } }
cross_code_eval_java::project_cc_java/5681
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/org/tallison/cc/index/extractor/FileFromCCWarcExtractor.java // } // private void...
{ "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 ...
r.getOffset(), r.getLength(), r.getTruncated());
{}
{ "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "file": "src/main/java/org/tallison/cc/index/extractor/CCFileExtractorRecordProcessor.java", "task_id": "project_cc_java/5681" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/org/tallison/cc/index/extractor/CCFileExtractorRecordProcessor.java", "groundtruth_start_lineno": 107, "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "right_context_start_lineno": 108, "task_id": "project_cc_java/56...
cross_code_eval_java::project_cc_java/5588
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/suimz/open/chatgptweb/java/bean/po/SsePushEventBuilder.java // if (!StringUti...
{ "prefix": "package com.suimz.open.chatgptweb.java.core.component.ratelimiter;\n\nimport com.suimz.open.chatgptweb.java.core.exception.ChatApiRequestTooManyBizException;\nimport com.suimz.open.chatgptweb.java.core.properties.AppProperties;\nimport com.suimz.open.chatgptweb.java.util.SpringUtil;\nimport io.github.res...
StringBuilder sb = new StringBuilder(SpringUtil.getClientIp()).append("-");
{}
{ "repository": "suimz-chatgpt-web-java-37a4c63", "file": "src/main/java/com/suimz/open/chatgptweb/java/core/component/ratelimiter/ApiRateLimiterAspect.java", "task_id": "project_cc_java/5588" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/suimz/open/chatgptweb/java/core/component/ratelimiter/ApiRateLimiterAspect.java", "groundtruth_start_lineno": 48, "repository": "suimz-chatgpt-web-java-37a4c63", "right_context_start_lineno": 49, "task_id": "project_cc_java/...
cross_code_eval_java::project_cc_java/5669
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/org/tallison/cc/index/extractor/CCMimeCounter.java // } // private static void re...
{ "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 ...
!clause.select(val)) {
{}
{ "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "file": "src/main/java/org/tallison/cc/index/selector/RecordSelector.java", "task_id": "project_cc_java/5669" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/org/tallison/cc/index/selector/RecordSelector.java", "groundtruth_start_lineno": 62, "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "right_context_start_lineno": 63, "task_id": "project_cc_java/5669" } }
cross_code_eval_java::project_cc_java/5587
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/suimz/open/chatgptweb/java/service/OpenAiReverseService.java // ...
{ "prefix": "package com.suimz.open.chatgptweb.java.bean.po;\n\nimport com.fasterxml.jackson.databind.ObjectMapper;\nimport com.theokanning.openai.OpenAiError;\nimport com.theokanning.openai.OpenAiHttpException;\nimport com.theokanning.openai.service.OpenAiService;\nimport com.theokanning.openai.service.SSEFormatExce...
sse.isDone()) {
{}
{ "repository": "suimz-chatgpt-web-java-37a4c63", "file": "src/main/java/com/suimz/open/chatgptweb/java/bean/po/ReverseResponseBodyCallback.java", "task_id": "project_cc_java/5587" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/suimz/open/chatgptweb/java/bean/po/ReverseResponseBodyCallback.java", "groundtruth_start_lineno": 60, "repository": "suimz-chatgpt-web-java-37a4c63", "right_context_start_lineno": 61, "task_id": "project_cc_java/5587" } }
cross_code_eval_java::project_cc_java/5683
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/org/tallison/cc/index/extractor/FileFromCCWarcExtractor.java // } // private void...
{ "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 ...
), r.getLength(), r.getTruncated());
{}
{ "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "file": "src/main/java/org/tallison/cc/index/extractor/CCFileExtractorRecordProcessor.java", "task_id": "project_cc_java/5683" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/org/tallison/cc/index/extractor/CCFileExtractorRecordProcessor.java", "groundtruth_start_lineno": 107, "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "right_context_start_lineno": 108, "task_id": "project_cc_java/56...
cross_code_eval_java::project_cc_java/5673
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/org/tallison/cc/index/extractor/CCMimeCounter.java // } // ...
{ "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 ...
extracted = counter.getFilesExtracted().incrementAndGet();
{}
{ "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "file": "src/main/java/org/tallison/cc/index/extractor/CCFileExtractorRecordProcessor.java", "task_id": "project_cc_java/5673" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/org/tallison/cc/index/extractor/CCFileExtractorRecordProcessor.java", "groundtruth_start_lineno": 89, "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "right_context_start_lineno": 90, "task_id": "project_cc_java/5673...
cross_code_eval_java::project_cc_java/5677
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/org/tallison/cc/index/extractor/CCMimeCounter.java // } // ...
{ "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 ...
url = r.getUrl();
{}
{ "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "file": "src/main/java/org/tallison/cc/index/extractor/CCFileExtractorRecordProcessor.java", "task_id": "project_cc_java/5677" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/org/tallison/cc/index/extractor/CCFileExtractorRecordProcessor.java", "groundtruth_start_lineno": 102, "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "right_context_start_lineno": 103, "task_id": "project_cc_java/56...
cross_code_eval_java::project_cc_java/5684
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/org/tallison/cc/index/extractor/CCMimeCounter.java // this.counter = counter;...
{ "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 ...
if (fetcherConfig.getNumThreads() > 10) {
{}
{ "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "file": "src/main/java/org/tallison/cc/index/extractor/CCFileExtractorRecordProcessor.java", "task_id": "project_cc_java/5684" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/org/tallison/cc/index/extractor/CCFileExtractorRecordProcessor.java", "groundtruth_start_lineno": 50, "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "right_context_start_lineno": 51, "task_id": "project_cc_java/5684...
cross_code_eval_java::project_cc_java/5680
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/org/tallison/cc/index/extractor/FileFromCCWarcExtractor.java // } // private void...
{ "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 ...
getNormalizedMimeDetected(), r.getFilename(), r.getOffset(), r.getLength(), r.getTruncated());
{}
{ "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "file": "src/main/java/org/tallison/cc/index/extractor/CCFileExtractorRecordProcessor.java", "task_id": "project_cc_java/5680" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/org/tallison/cc/index/extractor/CCFileExtractorRecordProcessor.java", "groundtruth_start_lineno": 106, "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "right_context_start_lineno": 108, "task_id": "project_cc_java/56...
cross_code_eval_java::project_cc_java/5688
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/org/tallison/cc/index/extractor/CCMimeCounter.java // } // ...
{ "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 ...
(fetcherConfig.getMaxFilesTruncated() > -1 && truncated >= fetcherConfig.getMaxFilesTruncated()) {
{}
{ "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "file": "src/main/java/org/tallison/cc/index/extractor/CCFileExtractorRecordProcessor.java", "task_id": "project_cc_java/5688" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/org/tallison/cc/index/extractor/CCFileExtractorRecordProcessor.java", "groundtruth_start_lineno": 81, "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "right_context_start_lineno": 83, "task_id": "project_cc_java/5688...
cross_code_eval_java::project_cc_java/5690
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/org/tallison/cc/index/extractor/CCMimeCounter.java // } // ...
{ "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 ...
if (fetcherConfig.isExtractTruncated() || StringUtils.isBlank(r.getTruncated())) {
{}
{ "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "file": "src/main/java/org/tallison/cc/index/extractor/CCFileExtractorRecordProcessor.java", "task_id": "project_cc_java/5690" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/org/tallison/cc/index/extractor/CCFileExtractorRecordProcessor.java", "groundtruth_start_lineno": 88, "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "right_context_start_lineno": 89, "task_id": "project_cc_java/5690...
cross_code_eval_java::project_cc_java/5693
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/org/tallison/cc/index/extractor/CCMimeCounter.java // } // ...
{ "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 ...
if (fetcherConfig.isDryRun()) {
{}
{ "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "file": "src/main/java/org/tallison/cc/index/extractor/CCFileExtractorRecordProcessor.java", "task_id": "project_cc_java/5693" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/org/tallison/cc/index/extractor/CCFileExtractorRecordProcessor.java", "groundtruth_start_lineno": 95, "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "right_context_start_lineno": 96, "task_id": "project_cc_java/5693...
cross_code_eval_java::project_cc_java/5705
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/org/tallison/cc/index/extractor/CCMimeCounter.java // while (shouldContinue) ...
{ "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 ...
.indexFetcher = fetcherConfig.newIndexFetcher();
{}
{ "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "file": "src/main/java/org/tallison/cc/index/extractor/CCFileExtractor.java", "task_id": "project_cc_java/5705" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/org/tallison/cc/index/extractor/CCFileExtractor.java", "groundtruth_start_lineno": 139, "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "right_context_start_lineno": 140, "task_id": "project_cc_java/5705" } }
cross_code_eval_java::project_cc_java/5706
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/org/tallison/cc/index/selector/IndexRecordSelectorTest.java // if (!i...
{ "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 ...
ccIndexReaderCounter.getEmptyPayload().incrementAndGet();
{}
{ "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "file": "src/main/java/org/tallison/cc/index/extractor/FileFromCCWarcExtractor.java", "task_id": "project_cc_java/5706" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/org/tallison/cc/index/extractor/FileFromCCWarcExtractor.java", "groundtruth_start_lineno": 107, "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "right_context_start_lineno": 108, "task_id": "project_cc_java/5706" }...
cross_code_eval_java::project_cc_java/5704
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/org/tallison/cc/index/extractor/CCMimeCounter.java // while (finishedWorkers ...
{ "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 ...
finishedWorkers < fetcherConfig.getNumThreads()) {
{}
{ "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "file": "src/main/java/org/tallison/cc/index/extractor/CCFileExtractor.java", "task_id": "project_cc_java/5704" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/org/tallison/cc/index/extractor/CCFileExtractor.java", "groundtruth_start_lineno": 100, "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "right_context_start_lineno": 101, "task_id": "project_cc_java/5704" } }
cross_code_eval_java::project_cc_java/5699
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/org/tallison/cc/index/extractor/CCMimeCounter.java // while (shouldContinue) ...
{ "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 ...
streamEmitter = fetcherConfig.newEmitter();
{}
{ "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "file": "src/main/java/org/tallison/cc/index/extractor/CCIndexFetcher.java", "task_id": "project_cc_java/5699" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/org/tallison/cc/index/extractor/CCIndexFetcher.java", "groundtruth_start_lineno": 115, "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "right_context_start_lineno": 116, "task_id": "project_cc_java/5699" } }
cross_code_eval_java::project_cc_java/5778
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/tcoded/folialib/impl/SpigotImplementation.java // return new WrappedBukkitTas...
{ "prefix": "package com.tcoded.folialib.impl;\n\nimport com.tcoded.folialib.FoliaLib;\nimport com.tcoded.folialib.enums.EntityTaskResult;\nimport com.tcoded.folialib.util.TimeConverter;\nimport com.tcoded.folialib.wrapper.WrappedTask;\nimport com.tcoded.folialib.wrapper.task.WrappedFoliaTask;\nimport io.papermc.pape...
run(), TimeConverter.toTicks(delay, unit) ) );
{}
{ "repository": "TechnicallyCoded-FoliaLib-8f9f24f", "file": "src/main/java/com/tcoded/folialib/impl/FoliaImplementation.java", "task_id": "project_cc_java/5778" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/tcoded/folialib/impl/FoliaImplementation.java", "groundtruth_start_lineno": 60, "repository": "TechnicallyCoded-FoliaLib-8f9f24f", "right_context_start_lineno": 63, "task_id": "project_cc_java/5778" } }
cross_code_eval_java::project_cc_java/5708
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/org/tallison/cc/index/extractor/CCFileExtractorRecordProcessor.java // //complete...
{ "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 ...
, record.getFilename(), record.getOffset(), record.getLength());
{}
{ "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "file": "src/main/java/org/tallison/cc/index/extractor/FileFromCCWarcExtractor.java", "task_id": "project_cc_java/5708" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/org/tallison/cc/index/extractor/FileFromCCWarcExtractor.java", "groundtruth_start_lineno": 76, "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "right_context_start_lineno": 78, "task_id": "project_cc_java/5708" } }
cross_code_eval_java::project_cc_java/5767
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/tcoded/folialib/impl/FoliaImplementation.java // @Override // public WrappedT...
{ "prefix": "package com.tcoded.folialib.impl;\n\nimport com.tcoded.folialib.FoliaLib;\nimport com.tcoded.folialib.enums.EntityTaskResult;\nimport com.tcoded.folialib.util.TimeConverter;\nimport com.tcoded.folialib.wrapper.WrappedTask;\nimport com.tcoded.folialib.wrapper.task.WrappedBukkitTask;\nimport org.bukkit.Loc...
TimeConverter.toTicks(period, unit)) );
{}
{ "repository": "TechnicallyCoded-FoliaLib-8f9f24f", "file": "src/main/java/com/tcoded/folialib/impl/SpigotImplementation.java", "task_id": "project_cc_java/5767" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/tcoded/folialib/impl/SpigotImplementation.java", "groundtruth_start_lineno": 74, "repository": "TechnicallyCoded-FoliaLib-8f9f24f", "right_context_start_lineno": 76, "task_id": "project_cc_java/5767" } }
cross_code_eval_java::project_cc_java/5709
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/org/tallison/cc/index/extractor/CCFileExtractorRecordProcessor.java // //complete...
{ "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 ...
.debug("going to fetch {
{}
{ "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "file": "src/main/java/org/tallison/cc/index/extractor/FileFromCCWarcExtractor.java", "task_id": "project_cc_java/5709" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/org/tallison/cc/index/extractor/FileFromCCWarcExtractor.java", "groundtruth_start_lineno": 76, "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "right_context_start_lineno": 77, "task_id": "project_cc_java/5709" } }
cross_code_eval_java::project_cc_java/5779
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/tcoded/folialib/impl/SpigotImplementation.java // TimeConvert...
{ "prefix": "package com.tcoded.folialib.impl;\n\nimport com.tcoded.folialib.FoliaLib;\nimport com.tcoded.folialib.enums.EntityTaskResult;\nimport com.tcoded.folialib.util.TimeConverter;\nimport com.tcoded.folialib.wrapper.WrappedTask;\nimport com.tcoded.folialib.wrapper.task.WrappedFoliaTask;\nimport io.papermc.pape...
TimeConverter.toTicks(delay, unit), TimeConverter.toTicks(period, unit) ) );
{}
{ "repository": "TechnicallyCoded-FoliaLib-8f9f24f", "file": "src/main/java/com/tcoded/folialib/impl/FoliaImplementation.java", "task_id": "project_cc_java/5779" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/tcoded/folialib/impl/FoliaImplementation.java", "groundtruth_start_lineno": 79, "repository": "TechnicallyCoded-FoliaLib-8f9f24f", "right_context_start_lineno": 83, "task_id": "project_cc_java/5779" } }
cross_code_eval_java::project_cc_java/5710
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/org/tallison/cc/index/extractor/CCFileExtractorRecordProcessor.java // //complete...
{ "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 ...
record.getLength());
{}
{ "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "file": "src/main/java/org/tallison/cc/index/extractor/FileFromCCWarcExtractor.java", "task_id": "project_cc_java/5710" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/org/tallison/cc/index/extractor/FileFromCCWarcExtractor.java", "groundtruth_start_lineno": 77, "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "right_context_start_lineno": 78, "task_id": "project_cc_java/5710" } }
cross_code_eval_java::project_cc_java/5766
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/tcoded/folialib/impl/FoliaImplementation.java // @Override // public WrappedT...
{ "prefix": "package com.tcoded.folialib.impl;\n\nimport com.tcoded.folialib.FoliaLib;\nimport com.tcoded.folialib.enums.EntityTaskResult;\nimport com.tcoded.folialib.util.TimeConverter;\nimport com.tcoded.folialib.wrapper.WrappedTask;\nimport com.tcoded.folialib.wrapper.task.WrappedBukkitTask;\nimport org.bukkit.Loc...
TimeConverter.toTicks(delay, unit), TimeConverter.toTicks(period, unit)) );
{}
{ "repository": "TechnicallyCoded-FoliaLib-8f9f24f", "file": "src/main/java/com/tcoded/folialib/impl/SpigotImplementation.java", "task_id": "project_cc_java/5766" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/tcoded/folialib/impl/SpigotImplementation.java", "groundtruth_start_lineno": 73, "repository": "TechnicallyCoded-FoliaLib-8f9f24f", "right_context_start_lineno": 76, "task_id": "project_cc_java/5766" } }
cross_code_eval_java::project_cc_java/5764
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/tcoded/folialib/impl/FoliaImplementation.java // ); // } // @Override...
{ "prefix": "package com.tcoded.folialib.impl;\n\nimport com.tcoded.folialib.FoliaLib;\nimport com.tcoded.folialib.enums.EntityTaskResult;\nimport com.tcoded.folialib.util.TimeConverter;\nimport com.tcoded.folialib.wrapper.WrappedTask;\nimport com.tcoded.folialib.wrapper.task.WrappedBukkitTask;\nimport org.bukkit.Loc...
runTaskLater(plugin, runnable, TimeConverter.toTicks(delay, unit)) );
{}
{ "repository": "TechnicallyCoded-FoliaLib-8f9f24f", "file": "src/main/java/com/tcoded/folialib/impl/SpigotImplementation.java", "task_id": "project_cc_java/5764" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/tcoded/folialib/impl/SpigotImplementation.java", "groundtruth_start_lineno": 57, "repository": "TechnicallyCoded-FoliaLib-8f9f24f", "right_context_start_lineno": 59, "task_id": "project_cc_java/5764" } }
cross_code_eval_java::project_cc_java/5711
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/org/tallison/cc/index/extractor/CCIndexFetcher.java // return 1l; // ...
{ "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 ...
record.getOffset() + record.getLength() - 1), new EmitKey());
{}
{ "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "file": "src/main/java/org/tallison/cc/index/extractor/FileFromCCWarcExtractor.java", "task_id": "project_cc_java/5711" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/org/tallison/cc/index/extractor/FileFromCCWarcExtractor.java", "groundtruth_start_lineno": 80, "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "right_context_start_lineno": 81, "task_id": "project_cc_java/5711" } }
cross_code_eval_java::project_cc_java/5717
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/org/tallison/cc/index/extractor/CCMimeCounter.java // } catch...
{ "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 ...
.equals(ccIndexRecord.getDigest())) {
{}
{ "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "file": "src/main/java/org/tallison/cc/index/extractor/FileFromCCWarcExtractor.java", "task_id": "project_cc_java/5717" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/org/tallison/cc/index/extractor/FileFromCCWarcExtractor.java", "groundtruth_start_lineno": 128, "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "right_context_start_lineno": 129, "task_id": "project_cc_java/5717" }...
cross_code_eval_java::project_cc_java/5712
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/org/tallison/cc/index/selector/RecordSelector.java // return true; // ...
{ "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 ...
.getOffset() + record.getLength() - 1), new EmitKey());
{}
{ "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "file": "src/main/java/org/tallison/cc/index/extractor/FileFromCCWarcExtractor.java", "task_id": "project_cc_java/5712" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/org/tallison/cc/index/extractor/FileFromCCWarcExtractor.java", "groundtruth_start_lineno": 80, "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "right_context_start_lineno": 81, "task_id": "project_cc_java/5712" } }
cross_code_eval_java::project_cc_java/5723
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/org/tallison/cc/index/extractor/CCFileExtractorRecordProcessor.java // fileFromCC...
{ "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 ...
ccIndexRecord.getOffset(), ccIndexRecord.getLength(), ccIndexRecord.getTruncated(), targetDigest, length, targetPath);
{}
{ "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "file": "src/main/java/org/tallison/cc/index/extractor/FileFromCCWarcExtractor.java", "task_id": "project_cc_java/5723" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/org/tallison/cc/index/extractor/FileFromCCWarcExtractor.java", "groundtruth_start_lineno": 170, "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "right_context_start_lineno": 173, "task_id": "project_cc_java/5723" }...
cross_code_eval_java::project_cc_java/5740
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/org/tallison/cc/index/extractor/CCFileExtractorRecordProcessor.java // if (fe...
{ "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 ...
totalCounts, r.getNormalizedMimeDetected());
{}
{ "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "file": "src/main/java/org/tallison/cc/index/extractor/CCMimeCounter.java", "task_id": "project_cc_java/5740" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/org/tallison/cc/index/extractor/CCMimeCounter.java", "groundtruth_start_lineno": 312, "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "right_context_start_lineno": 313, "task_id": "project_cc_java/5740" } }
cross_code_eval_java::project_cc_java/5724
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/org/tallison/cc/index/extractor/CCFileExtractorRecordProcessor.java // fileFromCC...
{ "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 ...
.getOffset(), ccIndexRecord.getLength(), ccIndexRecord.getTruncated(), targetDigest, length, targetPath);
{}
{ "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "file": "src/main/java/org/tallison/cc/index/extractor/FileFromCCWarcExtractor.java", "task_id": "project_cc_java/5724" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/org/tallison/cc/index/extractor/FileFromCCWarcExtractor.java", "groundtruth_start_lineno": 170, "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "right_context_start_lineno": 173, "task_id": "project_cc_java/5724" }...
cross_code_eval_java::project_cc_java/5730
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/org/tallison/cc/index/extractor/CCFileExtractorRecordProcessor.java // fileFromCC...
{ "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 ...
ccIndexRecord.getOffset(), ccIndexRecord.getLength(), targetDigest, length, targetPath);
{}
{ "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "file": "src/main/java/org/tallison/cc/index/extractor/FileFromCCWarcExtractor.java", "task_id": "project_cc_java/5730" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/org/tallison/cc/index/extractor/FileFromCCWarcExtractor.java", "groundtruth_start_lineno": 180, "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "right_context_start_lineno": 183, "task_id": "project_cc_java/5730" }...
cross_code_eval_java::project_cc_java/5732
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/org/tallison/cc/index/io/BackoffHttpFetcher.java // if (m.find() && m.gro...
{ "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 ...
targetPath = targetPathRewriter.rewrite(targetDigest);
{}
{ "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "file": "src/main/java/org/tallison/cc/index/extractor/FileFromCCWarcExtractor.java", "task_id": "project_cc_java/5732" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/org/tallison/cc/index/extractor/FileFromCCWarcExtractor.java", "groundtruth_start_lineno": 146, "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "right_context_start_lineno": 147, "task_id": "project_cc_java/5732" }...
cross_code_eval_java::project_cc_java/5734
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/org/tallison/cc/index/extractor/CCFileExtractorRecordProcessor.java // //complete...
{ "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 ...
RangeFetcher) fetcherConfig.newFetcher();
{}
{ "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "file": "src/main/java/org/tallison/cc/index/extractor/FileFromCCWarcExtractor.java", "task_id": "project_cc_java/5734" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/org/tallison/cc/index/extractor/FileFromCCWarcExtractor.java", "groundtruth_start_lineno": 68, "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "right_context_start_lineno": 69, "task_id": "project_cc_java/5734" } }
cross_code_eval_java::project_cc_java/5729
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/org/tallison/cc/index/extractor/CCFileExtractorRecordProcessor.java // fileFromCC...
{ "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 ...
ccIndexRecord.getFilename(), ccIndexRecord.getOffset(), ccIndexRecord.getLength(), targetDigest, length, targetPath);
{}
{ "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "file": "src/main/java/org/tallison/cc/index/extractor/FileFromCCWarcExtractor.java", "task_id": "project_cc_java/5729" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/org/tallison/cc/index/extractor/FileFromCCWarcExtractor.java", "groundtruth_start_lineno": 179, "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "right_context_start_lineno": 183, "task_id": "project_cc_java/5729" }...
cross_code_eval_java::project_cc_java/5735
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/org/tallison/cc/index/extractor/CCFileExtractorRecordProcessor.java // //complete...
{ "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 ...
.targetPathRewriter = fetcherConfig.getTargetPathRewriter();
{}
{ "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "file": "src/main/java/org/tallison/cc/index/extractor/FileFromCCWarcExtractor.java", "task_id": "project_cc_java/5735" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/org/tallison/cc/index/extractor/FileFromCCWarcExtractor.java", "groundtruth_start_lineno": 69, "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "right_context_start_lineno": 70, "task_id": "project_cc_java/5735" } }
cross_code_eval_java::project_cc_java/5725
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/org/tallison/cc/index/extractor/CCFileExtractorRecordProcessor.java // fileFromCC...
{ "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 ...
ccIndexRecord.getTruncated(), targetDigest, length, targetPath);
{}
{ "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "file": "src/main/java/org/tallison/cc/index/extractor/FileFromCCWarcExtractor.java", "task_id": "project_cc_java/5725" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/org/tallison/cc/index/extractor/FileFromCCWarcExtractor.java", "groundtruth_start_lineno": 171, "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "right_context_start_lineno": 173, "task_id": "project_cc_java/5725" }...
cross_code_eval_java::project_cc_java/5742
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/org/tallison/cc/index/extractor/CCFileExtractorRecordProcessor.java // LO...
{ "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 ...
r.getNormalizedMimeDetected());
{}
{ "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "file": "src/main/java/org/tallison/cc/index/extractor/CCMimeCounter.java", "task_id": "project_cc_java/5742" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/org/tallison/cc/index/extractor/CCMimeCounter.java", "groundtruth_start_lineno": 320, "repository": "tballison-commoncrawl-fetcher-lite-2c106d1", "right_context_start_lineno": 321, "task_id": "project_cc_java/5742" } }
cross_code_eval_java::project_cc_java/5793
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/de/telekom/phonenumbernormalizer/numberplans/PhoneLibWrapper.java // * If we have a ...
{ "prefix": "/*\n * Copyright © 2023 Deutsche Telekom AG (opensource@telekom.de)\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...
.INSTANCE.getNumberPlan(deviceContext.getLineType(), deviceContext.getCountryCode());
{}
{ "repository": "telekom-phonenumber-normalizer-9a1b7ad", "file": "src/main/java/de/telekom/phonenumbernormalizer/PhoneNumberNormalizerImpl.java", "task_id": "project_cc_java/5793" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/de/telekom/phonenumbernormalizer/PhoneNumberNormalizerImpl.java", "groundtruth_start_lineno": 92, "repository": "telekom-phonenumber-normalizer-9a1b7ad", "right_context_start_lineno": 93, "task_id": "project_cc_java/5793" } }
cross_code_eval_java::project_cc_java/5791
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/de/telekom/phonenumbernormalizer/numberplans/NumberPlan.java // * <ul> // * <li...
{ "prefix": "/*\n * Copyright © 2023 Deutsche Telekom AG (opensource@telekom.de)\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...
.put(DeFixedLineNumberPlan.getCountryCode(), new DeFixedLineNumberPlan());
{}
{ "repository": "telekom-phonenumber-normalizer-9a1b7ad", "file": "src/main/java/de/telekom/phonenumbernormalizer/numberplans/NumberPlanFactory.java", "task_id": "project_cc_java/5791" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/de/telekom/phonenumbernormalizer/numberplans/NumberPlanFactory.java", "groundtruth_start_lineno": 65, "repository": "telekom-phonenumber-normalizer-9a1b7ad", "right_context_start_lineno": 66, "task_id": "project_cc_java/5791" ...
cross_code_eval_java::project_cc_java/5794
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/de/telekom/phonenumbernormalizer/numberplans/PhoneLibWrapper.java // * If we have a ...
{ "prefix": "/*\n * Copyright © 2023 Deutsche Telekom AG (opensource@telekom.de)\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...
(), deviceContext.getCountryCode());
{}
{ "repository": "telekom-phonenumber-normalizer-9a1b7ad", "file": "src/main/java/de/telekom/phonenumbernormalizer/PhoneNumberNormalizerImpl.java", "task_id": "project_cc_java/5794" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/de/telekom/phonenumbernormalizer/PhoneNumberNormalizerImpl.java", "groundtruth_start_lineno": 92, "repository": "telekom-phonenumber-normalizer-9a1b7ad", "right_context_start_lineno": 93, "task_id": "project_cc_java/5794" } }
cross_code_eval_java::project_cc_java/5795
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/de/telekom/phonenumbernormalizer/numberplans/PhoneLibWrapper.java // //+: Number ...
{ "prefix": "/*\n * Copyright © 2023 Deutsche Telekom AG (opensource@telekom.de)\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...
deviceContext.getNationalDestinationCode());
{}
{ "repository": "telekom-phonenumber-normalizer-9a1b7ad", "file": "src/main/java/de/telekom/phonenumbernormalizer/PhoneNumberNormalizerImpl.java", "task_id": "project_cc_java/5795" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/de/telekom/phonenumbernormalizer/PhoneNumberNormalizerImpl.java", "groundtruth_start_lineno": 102, "repository": "telekom-phonenumber-normalizer-9a1b7ad", "right_context_start_lineno": 103, "task_id": "project_cc_java/5795" } ...
cross_code_eval_java::project_cc_java/5796
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/de/telekom/phonenumbernormalizer/numberplans/PhoneLibWrapper.java // /** // * Us...
{ "prefix": "/*\n * Copyright © 2023 Deutsche Telekom AG (opensource@telekom.de)\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...
(!normalizedDeviceContext.getCountryCode().equals(DeviceContext.UNKNOWN_VALUE)) {
{}
{ "repository": "telekom-phonenumber-normalizer-9a1b7ad", "file": "src/main/java/de/telekom/phonenumbernormalizer/PhoneNumberNormalizerImpl.java", "task_id": "project_cc_java/5796" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/de/telekom/phonenumbernormalizer/PhoneNumberNormalizerImpl.java", "groundtruth_start_lineno": 144, "repository": "telekom-phonenumber-normalizer-9a1b7ad", "right_context_start_lineno": 145, "task_id": "project_cc_java/5796" } ...
cross_code_eval_java::project_cc_java/5797
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/de/telekom/phonenumbernormalizer/PhoneNumberNormalizer.java // */ // String norm...
{ "prefix": "/*\n * Copyright © 2023 Deutsche Telekom AG (opensource@telekom.de)\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...
= PhoneLibWrapper.getRegionCodeForCountryCode(normalizedDeviceContext.getCountryCode());
{}
{ "repository": "telekom-phonenumber-normalizer-9a1b7ad", "file": "src/main/java/de/telekom/phonenumbernormalizer/PhoneNumberNormalizerImpl.java", "task_id": "project_cc_java/5797" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/de/telekom/phonenumbernormalizer/PhoneNumberNormalizerImpl.java", "groundtruth_start_lineno": 145, "repository": "telekom-phonenumber-normalizer-9a1b7ad", "right_context_start_lineno": 146, "task_id": "project_cc_java/5797" } ...
cross_code_eval_java::project_cc_java/5806
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/de/telekom/phonenumbernormalizer/numberplans/PhoneLibWrapper.java // } // ...
{ "prefix": "/*\n * Copyright © 2023 Deutsche Telekom AG (opensource@telekom.de)\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...
if (! normalizerPhoneNumber.isNormalizingTried()) {
{}
{ "repository": "telekom-phonenumber-normalizer-9a1b7ad", "file": "src/main/java/de/telekom/phonenumbernormalizer/PhoneNumberNormalizerImpl.java", "task_id": "project_cc_java/5806" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/de/telekom/phonenumbernormalizer/PhoneNumberNormalizerImpl.java", "groundtruth_start_lineno": 138, "repository": "telekom-phonenumber-normalizer-9a1b7ad", "right_context_start_lineno": 139, "task_id": "project_cc_java/5806" } ...
cross_code_eval_java::project_cc_java/5799
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/de/telekom/phonenumbernormalizer/PhoneNumberNormalizer.java // /** // * Normaliz...
{ "prefix": "/*\n * Copyright © 2023 Deutsche Telekom AG (opensource@telekom.de)\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...
(PhoneLibWrapper.getCountryCodeForRegion(fallBackRegionCode) > 0) {
{}
{ "repository": "telekom-phonenumber-normalizer-9a1b7ad", "file": "src/main/java/de/telekom/phonenumbernormalizer/PhoneNumberNormalizerImpl.java", "task_id": "project_cc_java/5799" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/de/telekom/phonenumbernormalizer/PhoneNumberNormalizerImpl.java", "groundtruth_start_lineno": 47, "repository": "telekom-phonenumber-normalizer-9a1b7ad", "right_context_start_lineno": 48, "task_id": "project_cc_java/5799" } }
cross_code_eval_java::project_cc_java/5800
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/de/telekom/phonenumbernormalizer/numberplans/PhoneLibWrapper.java // * If we have a ...
{ "prefix": "/*\n * Copyright © 2023 Deutsche Telekom AG (opensource@telekom.de)\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...
(wrapper.hasRegionNationalAccessCode() && deviceContext != null) {
{}
{ "repository": "telekom-phonenumber-normalizer-9a1b7ad", "file": "src/main/java/de/telekom/phonenumbernormalizer/PhoneNumberNormalizerImpl.java", "task_id": "project_cc_java/5800" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/de/telekom/phonenumbernormalizer/PhoneNumberNormalizerImpl.java", "groundtruth_start_lineno": 100, "repository": "telekom-phonenumber-normalizer-9a1b7ad", "right_context_start_lineno": 101, "task_id": "project_cc_java/5800" } ...
cross_code_eval_java::project_cc_java/5801
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/de/telekom/phonenumbernormalizer/numberplans/PhoneLibWrapper.java // //+: Number ...
{ "prefix": "/*\n * Copyright © 2023 Deutsche Telekom AG (opensource@telekom.de)\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...
.extendNumberByDefaultAreaCodeAndCountryCode(wrapper.getNationalAccessCode(), deviceContext.getNationalDestinationCode());
{}
{ "repository": "telekom-phonenumber-normalizer-9a1b7ad", "file": "src/main/java/de/telekom/phonenumbernormalizer/PhoneNumberNormalizerImpl.java", "task_id": "project_cc_java/5801" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/de/telekom/phonenumbernormalizer/PhoneNumberNormalizerImpl.java", "groundtruth_start_lineno": 102, "repository": "telekom-phonenumber-normalizer-9a1b7ad", "right_context_start_lineno": 103, "task_id": "project_cc_java/5801" } ...
cross_code_eval_java::project_cc_java/5805
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/de/telekom/phonenumbernormalizer/numberplans/PhoneLibWrapper.java // } // ...
{ "prefix": "/*\n * Copyright © 2023 Deutsche Telekom AG (opensource@telekom.de)\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...
) : wrapper.getE164Formatted();
{}
{ "repository": "telekom-phonenumber-normalizer-9a1b7ad", "file": "src/main/java/de/telekom/phonenumbernormalizer/PhoneNumberNormalizerImpl.java", "task_id": "project_cc_java/5805" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/de/telekom/phonenumbernormalizer/PhoneNumberNormalizerImpl.java", "groundtruth_start_lineno": 129, "repository": "telekom-phonenumber-normalizer-9a1b7ad", "right_context_start_lineno": 130, "task_id": "project_cc_java/5805" } ...
cross_code_eval_java::project_cc_java/5802
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/de/telekom/phonenumbernormalizer/numberplans/PhoneLibWrapper.java // //+: Number ...
{ "prefix": "/*\n * Copyright © 2023 Deutsche Telekom AG (opensource@telekom.de)\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...
return wrapper.getE164Formatted();
{}
{ "repository": "telekom-phonenumber-normalizer-9a1b7ad", "file": "src/main/java/de/telekom/phonenumbernormalizer/PhoneNumberNormalizerImpl.java", "task_id": "project_cc_java/5802" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/de/telekom/phonenumbernormalizer/PhoneNumberNormalizerImpl.java", "groundtruth_start_lineno": 105, "repository": "telekom-phonenumber-normalizer-9a1b7ad", "right_context_start_lineno": 106, "task_id": "project_cc_java/5802" } ...
cross_code_eval_java::project_cc_java/5804
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/de/telekom/phonenumbernormalizer/numberplans/PhoneLibWrapper.java // /** // * If...
{ "prefix": "/*\n * Copyright © 2023 Deutsche Telekom AG (opensource@telekom.de)\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...
boolean hasNoCCAndNoNAC = wrapper.hasNoCountryCodeNorNationalAccessCode();
{}
{ "repository": "telekom-phonenumber-normalizer-9a1b7ad", "file": "src/main/java/de/telekom/phonenumbernormalizer/PhoneNumberNormalizerImpl.java", "task_id": "project_cc_java/5804" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/de/telekom/phonenumbernormalizer/PhoneNumberNormalizerImpl.java", "groundtruth_start_lineno": 123, "repository": "telekom-phonenumber-normalizer-9a1b7ad", "right_context_start_lineno": 124, "task_id": "project_cc_java/5804" } ...
cross_code_eval_java::project_cc_java/5855
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/rosymaple/hitindication/latesthits/HitMarker.java // } // public boolean expi...
{ "prefix": "package com.rosymaple.hitindication.latesthits;\n\nimport com.rosymaple.hitindication.config.HitIndicatorClientConfigs;\nimport net.minecraft.client.Minecraft;\nimport net.minecraft.world.entity.Entity;\nimport net.minecraftforge.api.distmarker.Dist;\nimport net.minecraftforge.api.distmarker.OnlyIn;\n\ni...
(hitIndicator.expired()) latestHitIndicators.remove(i);
{}
{ "repository": "TheHamester-HitIndicator-261bcb9", "file": "src/main/java/com/rosymaple/hitindication/latesthits/ClientLatestHits.java", "task_id": "project_cc_java/5855" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/rosymaple/hitindication/latesthits/ClientLatestHits.java", "groundtruth_start_lineno": 46, "repository": "TheHamester-HitIndicator-261bcb9", "right_context_start_lineno": 48, "task_id": "project_cc_java/5855" } }
cross_code_eval_java::project_cc_java/5798
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/de/telekom/phonenumbernormalizer/numberplans/PhoneLibWrapper.java // */ // Phone...
{ "prefix": "/*\n * Copyright © 2023 Deutsche Telekom AG (opensource@telekom.de)\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...
!normalizedDeviceContext.getNationalDestinationCode().equals(DeviceContext.UNKNOWN_VALUE)) {
{}
{ "repository": "telekom-phonenumber-normalizer-9a1b7ad", "file": "src/main/java/de/telekom/phonenumbernormalizer/PhoneNumberNormalizerImpl.java", "task_id": "project_cc_java/5798" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/de/telekom/phonenumbernormalizer/PhoneNumberNormalizerImpl.java", "groundtruth_start_lineno": 148, "repository": "telekom-phonenumber-normalizer-9a1b7ad", "right_context_start_lineno": 149, "task_id": "project_cc_java/5798" } ...
cross_code_eval_java::project_cc_java/5468
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/net/chauvedev/woodencog/mixin/MixinKineticBlock.java // 1, //...
{ "prefix": "package net.chauvedev.woodencog.mixin;\n\nimport com.simibubi.create.content.kinetics.KineticNetwork;\nimport com.simibubi.create.content.kinetics.base.KineticBlockEntity;\nimport com.simibubi.create.content.kinetics.crusher.CrushingWheelBlockEntity;\nimport com.simibubi.create.content.kinetics.transmiss...
if (!destroyed || !capacity.isDestroyed() || this.stress != Integer.MAX_VALUE){
{}
{ "repository": "Sparks-and-Rotation-woodencog-bb3d3ef", "file": "src/main/java/net/chauvedev/woodencog/mixin/MixinKineticBlockEntity.java", "task_id": "project_cc_java/5468" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/chauvedev/woodencog/mixin/MixinKineticBlockEntity.java", "groundtruth_start_lineno": 104, "repository": "Sparks-and-Rotation-woodencog-bb3d3ef", "right_context_start_lineno": 105, "task_id": "project_cc_java/5468" } }
cross_code_eval_java::project_cc_java/5469
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/net/chauvedev/woodencog/mixin/MixinKineticBlock.java // 1, //...
{ "prefix": "package net.chauvedev.woodencog.mixin;\n\nimport com.simibubi.create.content.kinetics.KineticNetwork;\nimport com.simibubi.create.content.kinetics.base.KineticBlockEntity;\nimport com.simibubi.create.content.kinetics.crusher.CrushingWheelBlockEntity;\nimport com.simibubi.create.content.kinetics.transmiss...
capacity.setDestroyed(true);
{}
{ "repository": "Sparks-and-Rotation-woodencog-bb3d3ef", "file": "src/main/java/net/chauvedev/woodencog/mixin/MixinKineticBlockEntity.java", "task_id": "project_cc_java/5469" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/chauvedev/woodencog/mixin/MixinKineticBlockEntity.java", "groundtruth_start_lineno": 110, "repository": "Sparks-and-Rotation-woodencog-bb3d3ef", "right_context_start_lineno": 111, "task_id": "project_cc_java/5469" } }
cross_code_eval_java::project_cc_java/5472
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/net/chauvedev/woodencog/core/MachineCapacityStorage.java // public MachineCapacityEnt...
{ "prefix": "package net.chauvedev.woodencog.mixin;\n\nimport com.simibubi.create.content.kinetics.KineticNetwork;\nimport com.simibubi.create.content.kinetics.base.KineticBlockEntity;\nimport com.simibubi.create.content.kinetics.crusher.CrushingWheelBlockEntity;\nimport com.simibubi.create.content.kinetics.transmiss...
MachineCapacityEntry config = MachineCapacityStorage.getInstance().getCapacity(block.getBlockState().getBlock());
{}
{ "repository": "Sparks-and-Rotation-woodencog-bb3d3ef", "file": "src/main/java/net/chauvedev/woodencog/mixin/MixinKineticBlockEntity.java", "task_id": "project_cc_java/5472" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/chauvedev/woodencog/mixin/MixinKineticBlockEntity.java", "groundtruth_start_lineno": 85, "repository": "Sparks-and-Rotation-woodencog-bb3d3ef", "right_context_start_lineno": 86, "task_id": "project_cc_java/5472" } }
cross_code_eval_java::project_cc_java/5466
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/net/chauvedev/woodencog/mixin/MixinKineticBlock.java // 1, //...
{ "prefix": "package net.chauvedev.woodencog.mixin;\n\nimport com.simibubi.create.content.kinetics.KineticNetwork;\nimport com.simibubi.create.content.kinetics.base.KineticBlockEntity;\nimport com.simibubi.create.content.kinetics.crusher.CrushingWheelBlockEntity;\nimport com.simibubi.create.content.kinetics.transmiss...
(capacity.getDurability()+damage_for_speed);
{}
{ "repository": "Sparks-and-Rotation-woodencog-bb3d3ef", "file": "src/main/java/net/chauvedev/woodencog/mixin/MixinKineticBlockEntity.java", "task_id": "project_cc_java/5466" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/chauvedev/woodencog/mixin/MixinKineticBlockEntity.java", "groundtruth_start_lineno": 93, "repository": "Sparks-and-Rotation-woodencog-bb3d3ef", "right_context_start_lineno": 94, "task_id": "project_cc_java/5466" } }
cross_code_eval_java::project_cc_java/5465
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/net/chauvedev/woodencog/core/MachineCapacityStorage.java // public MachineCapacityEnt...
{ "prefix": "package net.chauvedev.woodencog.mixin;\n\nimport com.simibubi.create.content.kinetics.KineticNetwork;\nimport com.simibubi.create.content.kinetics.base.KineticBlockEntity;\nimport com.simibubi.create.content.kinetics.crusher.CrushingWheelBlockEntity;\nimport com.simibubi.create.content.kinetics.transmiss...
= config.durabilityMax - capacity.getDurability();
{}
{ "repository": "Sparks-and-Rotation-woodencog-bb3d3ef", "file": "src/main/java/net/chauvedev/woodencog/mixin/MixinKineticBlockEntity.java", "task_id": "project_cc_java/5465" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/chauvedev/woodencog/mixin/MixinKineticBlockEntity.java", "groundtruth_start_lineno": 89, "repository": "Sparks-and-Rotation-woodencog-bb3d3ef", "right_context_start_lineno": 90, "task_id": "project_cc_java/5465" } }
cross_code_eval_java::project_cc_java/5471
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/net/chauvedev/woodencog/WoodenCogEvents.java // } // @SubscribeEvent // ...
{ "prefix": "package net.chauvedev.woodencog.mixin;\n\nimport com.simibubi.create.content.kinetics.KineticNetwork;\nimport com.simibubi.create.content.kinetics.base.KineticBlockEntity;\nimport com.simibubi.create.content.kinetics.crusher.CrushingWheelBlockEntity;\nimport com.simibubi.create.content.kinetics.transmiss...
(MachineCapacityStorage.getInstance().isBlackListBlock(block)){
{}
{ "repository": "Sparks-and-Rotation-woodencog-bb3d3ef", "file": "src/main/java/net/chauvedev/woodencog/mixin/MixinKineticBlockEntity.java", "task_id": "project_cc_java/5471" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/chauvedev/woodencog/mixin/MixinKineticBlockEntity.java", "groundtruth_start_lineno": 82, "repository": "Sparks-and-Rotation-woodencog-bb3d3ef", "right_context_start_lineno": 83, "task_id": "project_cc_java/5471" } }
cross_code_eval_java::project_cc_java/5464
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/net/chauvedev/woodencog/item/fluids/can/FireclayCrucibleFluidHandler.java // retu...
{ "prefix": "package net.chauvedev.woodencog.capability;\n\n\nimport net.chauvedev.woodencog.WoodenCog;\nimport net.minecraft.core.Direction;\nimport net.minecraft.nbt.CompoundTag;\nimport net.minecraft.resources.ResourceKey;\nimport net.minecraft.resources.ResourceLocation;\nimport net.minecraftforge.common.capabili...
put("machine_capacity",createMachineCapacity().toTag());
{}
{ "repository": "Sparks-and-Rotation-woodencog-bb3d3ef", "file": "src/main/java/net/chauvedev/woodencog/capability/MachineCapacityProvider.java", "task_id": "project_cc_java/5464" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/chauvedev/woodencog/capability/MachineCapacityProvider.java", "groundtruth_start_lineno": 45, "repository": "Sparks-and-Rotation-woodencog-bb3d3ef", "right_context_start_lineno": 46, "task_id": "project_cc_java/5464" } }
cross_code_eval_java::project_cc_java/5470
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/net/chauvedev/woodencog/WoodenCogEvents.java // } // @SubscribeEvent // ...
{ "prefix": "package net.chauvedev.woodencog.mixin;\n\nimport com.simibubi.create.content.kinetics.KineticNetwork;\nimport com.simibubi.create.content.kinetics.base.KineticBlockEntity;\nimport com.simibubi.create.content.kinetics.crusher.CrushingWheelBlockEntity;\nimport com.simibubi.create.content.kinetics.transmiss...
(!MachineCapacityStorage.getInstance().active){
{}
{ "repository": "Sparks-and-Rotation-woodencog-bb3d3ef", "file": "src/main/java/net/chauvedev/woodencog/mixin/MixinKineticBlockEntity.java", "task_id": "project_cc_java/5470" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/chauvedev/woodencog/mixin/MixinKineticBlockEntity.java", "groundtruth_start_lineno": 79, "repository": "Sparks-and-Rotation-woodencog-bb3d3ef", "right_context_start_lineno": 80, "task_id": "project_cc_java/5470" } }
cross_code_eval_java::project_cc_java/5820
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: // common/src/main/java/earth/terrarium/hermes/api/defaults/lists/ListItemTagElement.java // @Override...
{ "prefix": "package earth.terrarium.hermes.api;\n\nimport org.apache.commons.lang3.StringUtils;\nimport org.w3c.dom.Document;\nimport org.w3c.dom.NamedNodeMap;\nimport org.w3c.dom.Node;\nimport org.xml.sax.SAXException;\n\nimport javax.xml.parsers.DocumentBuilderFactory;\nimport javax.xml.parsers.ParserConfiguration...
element.setContent(text);
{}
{ "repository": "terrarium-earth-Hermes-00fce0f", "file": "common/src/main/java/earth/terrarium/hermes/api/TagProvider.java", "task_id": "project_cc_java/5820" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "common/src/main/java/earth/terrarium/hermes/api/TagProvider.java", "groundtruth_start_lineno": 54, "repository": "terrarium-earth-Hermes-00fce0f", "right_context_start_lineno": 55, "task_id": "project_cc_java/5820" } }
cross_code_eval_java::project_cc_java/5818
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: // common/src/main/java/earth/terrarium/hermes/api/TagElement.java // default void render(Theme theme,...
{ "prefix": "package earth.terrarium.hermes.client;\n\nimport com.teamresourceful.resourcefullib.client.utils.RenderUtils;\nimport earth.terrarium.hermes.api.TagElement;\nimport earth.terrarium.hermes.api.themes.Theme;\nimport net.minecraft.client.Minecraft;\nimport net.minecraft.client.gui.GuiGraphics;\nimport net.m...
itemheight = element.getHeight(this.width);
{}
{ "repository": "terrarium-earth-Hermes-00fce0f", "file": "common/src/main/java/earth/terrarium/hermes/client/DocumentWidget.java", "task_id": "project_cc_java/5818" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "common/src/main/java/earth/terrarium/hermes/client/DocumentWidget.java", "groundtruth_start_lineno": 54, "repository": "terrarium-earth-Hermes-00fce0f", "right_context_start_lineno": 55, "task_id": "project_cc_java/5818" } }
cross_code_eval_java::project_cc_java/5819
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: // common/src/main/java/earth/terrarium/hermes/api/defaults/columns/ColumnsTagElement.java // } el...
{ "prefix": "package earth.terrarium.hermes.api;\n\nimport org.apache.commons.lang3.StringUtils;\nimport org.w3c.dom.Document;\nimport org.w3c.dom.NamedNodeMap;\nimport org.w3c.dom.Node;\nimport org.xml.sax.SAXException;\n\nimport javax.xml.parsers.DocumentBuilderFactory;\nimport javax.xml.parsers.ParserConfiguration...
TagElement element = serializer.deserialize(mapAttributes(child.getAttributes()));
{}
{ "repository": "terrarium-earth-Hermes-00fce0f", "file": "common/src/main/java/earth/terrarium/hermes/api/TagProvider.java", "task_id": "project_cc_java/5819" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "common/src/main/java/earth/terrarium/hermes/api/TagProvider.java", "groundtruth_start_lineno": 45, "repository": "terrarium-earth-Hermes-00fce0f", "right_context_start_lineno": 46, "task_id": "project_cc_java/5819" } }
cross_code_eval_java::project_cc_java/5817
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: // common/src/main/java/earth/terrarium/hermes/api/defaults/columns/ColumnTagElement.java // @Override...
{ "prefix": "package earth.terrarium.hermes.api.defaults.columns;\n\nimport earth.terrarium.hermes.api.TagElement;\nimport earth.terrarium.hermes.api.themes.Theme;\nimport net.minecraft.client.gui.GuiGraphics;\nimport org.jetbrains.annotations.NotNull;\n\nimport java.util.ArrayList;\nimport java.util.List;\nimport ja...
element.mouseClicked(mouseX - (columnWidth * index), mouseY, button, columnWidth)) {
{}
{ "repository": "terrarium-earth-Hermes-00fce0f", "file": "common/src/main/java/earth/terrarium/hermes/api/defaults/columns/ColumnsTagElement.java", "task_id": "project_cc_java/5817" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "common/src/main/java/earth/terrarium/hermes/api/defaults/columns/ColumnsTagElement.java", "groundtruth_start_lineno": 59, "repository": "terrarium-earth-Hermes-00fce0f", "right_context_start_lineno": 60, "task_id": "project_cc_java/5817" } ...
cross_code_eval_java::project_cc_java/5821
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: // common/src/main/java/earth/terrarium/hermes/api/defaults/lists/OrderedListTagElement.java // in...
{ "prefix": "package earth.terrarium.hermes.api.defaults.carousel;\n\nimport com.teamresourceful.resourcefullib.client.utils.RenderUtils;\nimport earth.terrarium.hermes.api.TagElement;\nimport earth.terrarium.hermes.api.themes.Theme;\nimport earth.terrarium.hermes.utils.ElementParsingUtils;\nimport net.minecraft.clie...
.max(element.getHeight(width), 20);
{}
{ "repository": "terrarium-earth-Hermes-00fce0f", "file": "common/src/main/java/earth/terrarium/hermes/api/defaults/carousel/CarouselTagElement.java", "task_id": "project_cc_java/5821" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "common/src/main/java/earth/terrarium/hermes/api/defaults/carousel/CarouselTagElement.java", "groundtruth_start_lineno": 53, "repository": "terrarium-earth-Hermes-00fce0f", "right_context_start_lineno": 54, "task_id": "project_cc_java/5821" ...
cross_code_eval_java::project_cc_java/5840
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: // common/src/main/java/earth/terrarium/hermes/api/defaults/columns/ColumnTagElement.java // @Override...
{ "prefix": "package earth.terrarium.hermes.api.defaults;\n\nimport earth.terrarium.hermes.api.TagElement;\nimport earth.terrarium.hermes.api.themes.Theme;\nimport earth.terrarium.hermes.utils.ElementParsingUtils;\nimport net.minecraft.client.gui.GuiGraphics;\nimport org.jetbrains.annotations.NotNull;\n\nimport java....
child.getHeight(width);
{}
{ "repository": "terrarium-earth-Hermes-00fce0f", "file": "common/src/main/java/earth/terrarium/hermes/api/defaults/DetailsTagElement.java", "task_id": "project_cc_java/5840" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "common/src/main/java/earth/terrarium/hermes/api/defaults/DetailsTagElement.java", "groundtruth_start_lineno": 47, "repository": "terrarium-earth-Hermes-00fce0f", "right_context_start_lineno": 48, "task_id": "project_cc_java/5840" } }
cross_code_eval_java::project_cc_java/5822
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: // common/src/main/java/earth/terrarium/hermes/api/defaults/lists/ListTagElement.java // int heigh...
{ "prefix": "package earth.terrarium.hermes.api.defaults.carousel;\n\nimport com.teamresourceful.resourcefullib.client.utils.RenderUtils;\nimport earth.terrarium.hermes.api.TagElement;\nimport earth.terrarium.hermes.api.themes.Theme;\nimport earth.terrarium.hermes.utils.ElementParsingUtils;\nimport net.minecraft.clie...
element.mouseClicked(mouseX, mouseY, button, width - 40);
{}
{ "repository": "terrarium-earth-Hermes-00fce0f", "file": "common/src/main/java/earth/terrarium/hermes/api/defaults/carousel/CarouselTagElement.java", "task_id": "project_cc_java/5822" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "common/src/main/java/earth/terrarium/hermes/api/defaults/carousel/CarouselTagElement.java", "groundtruth_start_lineno": 90, "repository": "terrarium-earth-Hermes-00fce0f", "right_context_start_lineno": 91, "task_id": "project_cc_java/5822" ...
cross_code_eval_java::project_cc_java/5826
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: // common/src/main/java/earth/terrarium/hermes/api/defaults/lists/UnorderedListTagElement.java // ...
{ "prefix": "package earth.terrarium.hermes.api.defaults.lists;\n\nimport earth.terrarium.hermes.api.TagElement;\nimport earth.terrarium.hermes.api.themes.Theme;\nimport net.minecraft.client.Minecraft;\nimport net.minecraft.client.gui.Font;\nimport net.minecraft.client.gui.GuiGraphics;\n\nimport java.util.Map;\n\npub...
element.getHeight(width - indexWidth - 2), Minecraft.getInstance().font.lineHeight + 1);
{}
{ "repository": "terrarium-earth-Hermes-00fce0f", "file": "common/src/main/java/earth/terrarium/hermes/api/defaults/lists/OrderedListTagElement.java", "task_id": "project_cc_java/5826" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "common/src/main/java/earth/terrarium/hermes/api/defaults/lists/OrderedListTagElement.java", "groundtruth_start_lineno": 37, "repository": "terrarium-earth-Hermes-00fce0f", "right_context_start_lineno": 38, "task_id": "project_cc_java/5826" ...
cross_code_eval_java::project_cc_java/5749
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: // nostr-bot-command-handler-provider/src/main/java/nostr/bot/command/handler/provider/BotCommandHandler.j...
{ "prefix": "/*\n * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license\n * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template\n */\npackage nostr.bot.core.command;\n\nimport java.text.ParseException;\nimport java.util.logging.Level;\...
bot.getCommand(cmdId).isPresent()) {
{}
{ "repository": "tcheeric-nostr-bot-18de389", "file": "nostr-bot-core/src/main/java/nostr/bot/core/command/CommandParser.java", "task_id": "project_cc_java/5749" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "nostr-bot-core/src/main/java/nostr/bot/core/command/CommandParser.java", "groundtruth_start_lineno": 47, "repository": "tcheeric-nostr-bot-18de389", "right_context_start_lineno": 48, "task_id": "project_cc_java/5749" } }
cross_code_eval_java::project_cc_java/5754
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: // nostr-bot-core/src/main/java/nostr/bot/core/command/ICommand.java // */ // public interface ICommand<T...
{ "prefix": "/*\n * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license\n * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template\n */\npackage nostr.bot.core;\n\nimport jakarta.validation.ConstraintViolation;\nimport jakarta.validation....
String key = command.getId();
{}
{ "repository": "tcheeric-nostr-bot-18de389", "file": "nostr-bot-core/src/main/java/nostr/bot/core/BotRunner.java", "task_id": "project_cc_java/5754" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "nostr-bot-core/src/main/java/nostr/bot/core/BotRunner.java", "groundtruth_start_lineno": 70, "repository": "tcheeric-nostr-bot-18de389", "right_context_start_lineno": 71, "task_id": "project_cc_java/5754" } }
cross_code_eval_java::project_cc_java/5752
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: // nostr-bot-core/src/main/java/nostr/bot/core/BotRunner.java // log.log(Level.FINE, "checkExecuti...
{ "prefix": "/*\n * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license\n * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template\n */\npackage nostr.bot.core;\n\n\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.Op...
filter(c -> c.getSources().length == 0).findFirst();
{}
{ "repository": "tcheeric-nostr-bot-18de389", "file": "nostr-bot-core/src/main/java/nostr/bot/core/Bot.java", "task_id": "project_cc_java/5752" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "nostr-bot-core/src/main/java/nostr/bot/core/Bot.java", "groundtruth_start_lineno": 63, "repository": "tcheeric-nostr-bot-18de389", "right_context_start_lineno": 64, "task_id": "project_cc_java/5752" } }
cross_code_eval_java::project_cc_java/5761
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: // nostr-bot-core/src/main/java/nostr/bot/core/command/AbstractCommand.java // } // @Override // ...
{ "prefix": "/*\n * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license\n * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template\n */\npackage nostr.bot.core;\n\nimport jakarta.validation.ConstraintViolation;\nimport jakarta.validation....
= bot.getStartCommand();
{}
{ "repository": "tcheeric-nostr-bot-18de389", "file": "nostr-bot-core/src/main/java/nostr/bot/core/BotRunner.java", "task_id": "project_cc_java/5761" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "nostr-bot-core/src/main/java/nostr/bot/core/BotRunner.java", "groundtruth_start_lineno": 98, "repository": "tcheeric-nostr-bot-18de389", "right_context_start_lineno": 99, "task_id": "project_cc_java/5761" } }
cross_code_eval_java::project_cc_java/5755
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: // nostr-bot-command-handler-provider/src/main/java/nostr/bot/command/handler/provider/BotCommandHandler.j...
{ "prefix": "/*\n * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license\n * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template\n */\npackage nostr.bot.core;\n\nimport jakarta.validation.ConstraintViolation;\nimport jakarta.validation....
return command.getHelp();
{}
{ "repository": "tcheeric-nostr-bot-18de389", "file": "nostr-bot-core/src/main/java/nostr/bot/core/BotRunner.java", "task_id": "project_cc_java/5755" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "nostr-bot-core/src/main/java/nostr/bot/core/BotRunner.java", "groundtruth_start_lineno": 112, "repository": "tcheeric-nostr-bot-18de389", "right_context_start_lineno": 113, "task_id": "project_cc_java/5755" } }
cross_code_eval_java::project_cc_java/5760
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: // nostr-bot-core/src/test/java/nostr/test/bot/core/command/CommandParserTest.java // ); // ...
{ "prefix": "/*\n * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license\n * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template\n */\npackage nostr.bot.core;\n\nimport jakarta.validation.ConstraintViolation;\nimport jakarta.validation....
, "checkExecutionOrder of {
{}
{ "repository": "tcheeric-nostr-bot-18de389", "file": "nostr-bot-core/src/main/java/nostr/bot/core/BotRunner.java", "task_id": "project_cc_java/5760" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "nostr-bot-core/src/main/java/nostr/bot/core/BotRunner.java", "groundtruth_start_lineno": 219, "repository": "tcheeric-nostr-bot-18de389", "right_context_start_lineno": 220, "task_id": "project_cc_java/5760" } }
cross_code_eval_java::project_cc_java/5758
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: // nostr-bot-example/src/main/java/nostr/bot/example/HelloCommand.java // } // } // @Overr...
{ "prefix": "/*\n * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license\n * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template\n */\npackage nostr.bot.core;\n\nimport jakarta.validation.ConstraintViolation;\nimport jakarta.validation....
(command.getId());
{}
{ "repository": "tcheeric-nostr-bot-18de389", "file": "nostr-bot-core/src/main/java/nostr/bot/core/BotRunner.java", "task_id": "project_cc_java/5758" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "nostr-bot-core/src/main/java/nostr/bot/core/BotRunner.java", "groundtruth_start_lineno": 183, "repository": "tcheeric-nostr-bot-18de389", "right_context_start_lineno": 184, "task_id": "project_cc_java/5758" } }
cross_code_eval_java::project_cc_java/5753
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: // nostr-bot-command-handler-provider/src/main/java/nostr/bot/command/handler/provider/BotCommandHandler.j...
{ "prefix": "/*\n * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license\n * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template\n */\npackage nostr.bot.core;\n\nimport jakarta.validation.ConstraintViolation;\nimport jakarta.validation....
this.execute(command, null);
{}
{ "repository": "tcheeric-nostr-bot-18de389", "file": "nostr-bot-core/src/main/java/nostr/bot/core/BotRunner.java", "task_id": "project_cc_java/5753" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "nostr-bot-core/src/main/java/nostr/bot/core/BotRunner.java", "groundtruth_start_lineno": 59, "repository": "tcheeric-nostr-bot-18de389", "right_context_start_lineno": 60, "task_id": "project_cc_java/5753" } }
cross_code_eval_java::project_cc_java/5865
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/kavu/gameapi/world/Area.java // } // // Getters & Setters // /** // ...
{ "prefix": "package dev.kavu.gameapi.world;\n\nimport javafx.geometry.Point2D;\nimport javafx.geometry.Point3D;\nimport org.bukkit.Location;\n\n/**\n * Representation of 3-Dimensional shape created using {@link Area} object. <br/>\n * This interface contains predefined, usually used shapes.\n *\n * @see #SPHERE\n * ...
.getSizeZ() <= 1 && Math.abs(center.getY() - pos.getY()) <= area.getSizeY();
{}
{ "repository": "TheKaVu-GameAPI-acf2cb4", "file": "src/main/java/dev/kavu/gameapi/world/AreaShape.java", "task_id": "project_cc_java/5865" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/dev/kavu/gameapi/world/AreaShape.java", "groundtruth_start_lineno": 43, "repository": "TheKaVu-GameAPI-acf2cb4", "right_context_start_lineno": 44, "task_id": "project_cc_java/5865" } }