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/671 | 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/ee/carlrobert/openai/client/completion/text/request/TextCompletionRequest.java
// ret... | {
"prefix": "package ee.carlrobert.openai.client;\n\nimport ee.carlrobert.openai.client.completion.CompletionClient;\nimport java.net.Proxy;\nimport java.security.KeyManagementException;\nimport java.security.NoSuchAlgorithmException;\nimport java.security.SecureRandom;\nimport java.security.cert.X509Certificate;\nim... | proxyAuthenticator.getUsername(),
proxyAuthenticator.getPassword()))
.build()); | {} | {
"repository": "carlrobertoh-openai-client-7a73e99",
"file": "src/main/java/ee/carlrobert/openai/client/Client.java",
"task_id": "project_cc_java/671"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/ee/carlrobert/openai/client/Client.java",
"groundtruth_start_lineno": 132,
"repository": "carlrobertoh-openai-client-7a73e99",
"right_context_start_lineno": 135,
"task_id": "project_cc_java/671"
}
} |
cross_code_eval_java::project_cc_java/765 | 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/coralblocks/coralme/Order.java
// }
// sb.append("]");
// return sb;
// }
// }... | {
"prefix": "/* \n * Copyright 2023 (c) CoralBlocks - http://www.coralblocks.com\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE... | orderBookLogger.off(); | {} | {
"repository": "coralblocks-CoralME-ec2b736",
"file": "src/main/java/com/coralblocks/coralme/example/Example.java",
"task_id": "project_cc_java/765"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/coralblocks/coralme/example/Example.java",
"groundtruth_start_lineno": 84,
"repository": "coralblocks-CoralME-ec2b736",
"right_context_start_lineno": 85,
"task_id": "project_cc_java/765"
}
} |
cross_code_eval_java::project_cc_java/682 | 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/ee/carlrobert/openai/client/completion/CompletionEventSourceListener.java
// }
// ... | {
"prefix": "package ee.carlrobert.openai.client.completion;\n\nimport com.fasterxml.jackson.core.JsonProcessingException;\nimport com.fasterxml.jackson.core.type.TypeReference;\nimport com.fasterxml.jackson.databind.ObjectMapper;\nimport ee.carlrobert.openai.client.Client;\nimport ee.carlrobert.openai.client.ClientC... | createFactory(client.getHttpClient())
.newEventSource(
request,
getEventListener(listeners, client.isRetryOnReadTimeout(), (response) -> { | {} | {
"repository": "carlrobertoh-openai-client-7a73e99",
"file": "src/main/java/ee/carlrobert/openai/client/completion/CompletionClient.java",
"task_id": "project_cc_java/682"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/ee/carlrobert/openai/client/completion/CompletionClient.java",
"groundtruth_start_lineno": 87,
"repository": "carlrobertoh-openai-client-7a73e99",
"right_context_start_lineno": 91,
"task_id": "project_cc_java/682"
}
} |
cross_code_eval_java::project_cc_java/703 | 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:
// parts/src/org/lineageos/settings/dirac/DiracSound.java
// checkStatus(setParameter(DIRACSOUND_P... | {
"prefix": "/*\n * Copyright (C) 2018,2020 The LineageOS Project\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * U... | != null && mDiracSound.getMusic() == 1; | {} | {
"repository": "CHRISL7-android_device_xiaomi_sm6225-common-ed8a1e0",
"file": "parts/src/org/lineageos/settings/dirac/DiracUtils.java",
"task_id": "project_cc_java/703"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "parts/src/org/lineageos/settings/dirac/DiracUtils.java",
"groundtruth_start_lineno": 125,
"repository": "CHRISL7-android_device_xiaomi_sm6225-common-ed8a1e0",
"right_context_start_lineno": 126,
"task_id": "project_cc_java/703"
}
} |
cross_code_eval_java::project_cc_java/752 | 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/coralblocks/coralme/Order.java
// }
// sb.append("]");
// return sb;
// }
// }... | {
"prefix": "/* \n * Copyright 2023 (c) CoralBlocks - http://www.coralblocks.com\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE... | orderBook.showLevels(); | {} | {
"repository": "coralblocks-CoralME-ec2b736",
"file": "src/main/java/com/coralblocks/coralme/example/Example.java",
"task_id": "project_cc_java/752"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/coralblocks/coralme/example/Example.java",
"groundtruth_start_lineno": 52,
"repository": "coralblocks-CoralME-ec2b736",
"right_context_start_lineno": 53,
"task_id": "project_cc_java/752"
}
} |
cross_code_eval_java::project_cc_java/681 | 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/ee/carlrobert/openai/client/completion/text/TextCompletionClient.java
// @Override
// ... | {
"prefix": "package ee.carlrobert.openai.client.completion;\n\nimport com.fasterxml.jackson.core.JsonProcessingException;\nimport com.fasterxml.jackson.core.type.TypeReference;\nimport com.fasterxml.jackson.databind.ObjectMapper;\nimport ee.carlrobert.openai.client.Client;\nimport ee.carlrobert.openai.client.ClientC... | = client.getHttpClient().newCall(buildRequest(requestBody)).execute()) { | {} | {
"repository": "carlrobertoh-openai-client-7a73e99",
"file": "src/main/java/ee/carlrobert/openai/client/completion/CompletionClient.java",
"task_id": "project_cc_java/681"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/ee/carlrobert/openai/client/completion/CompletionClient.java",
"groundtruth_start_lineno": 49,
"repository": "carlrobertoh-openai-client-7a73e99",
"right_context_start_lineno": 50,
"task_id": "project_cc_java/681"
}
} |
cross_code_eval_java::project_cc_java/783 | 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/coralblocks/coralme/OrderBook.java
// return hasBestBid();
// }
// public final b... | {
"prefix": "/* \n * Copyright 2023 (c) CoralBlocks - http://www.coralblocks.com\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE... | DoubleUtils.toDouble(price); | {} | {
"repository": "coralblocks-CoralME-ec2b736",
"file": "src/main/java/com/coralblocks/coralme/Order.java",
"task_id": "project_cc_java/783"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/coralblocks/coralme/Order.java",
"groundtruth_start_lineno": 146,
"repository": "coralblocks-CoralME-ec2b736",
"right_context_start_lineno": 147,
"task_id": "project_cc_java/783"
}
} |
cross_code_eval_java::project_cc_java/696 | 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:
// parts/src/org/lineageos/settings/BootCompletedReceiver.java
// ThermalUtils.initialize(context)... | {
"prefix": "/*\n * Copyright (C) 2018,2020 The LineageOS Project\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * U... | mDiracUtils != null ? mDiracUtils.isDiracEnabled() : false; | {} | {
"repository": "CHRISL7-android_device_xiaomi_sm6225-common-ed8a1e0",
"file": "parts/src/org/lineageos/settings/dirac/DiracSettingsFragment.java",
"task_id": "project_cc_java/696"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "parts/src/org/lineageos/settings/dirac/DiracSettingsFragment.java",
"groundtruth_start_lineno": 62,
"repository": "CHRISL7-android_device_xiaomi_sm6225-common-ed8a1e0",
"right_context_start_lineno": 63,
"task_id": "project_cc_java/696"
}
} |
cross_code_eval_java::project_cc_java/766 | 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/coralblocks/coralme/Order.java
// }
// public void rest(long time) {
// ... | {
"prefix": "/* \n * Copyright 2023 (c) CoralBlocks - http://www.coralblocks.com\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE... | orderBookLogger.on(); | {} | {
"repository": "coralblocks-CoralME-ec2b736",
"file": "src/main/java/com/coralblocks/coralme/example/Example.java",
"task_id": "project_cc_java/766"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/coralblocks/coralme/example/Example.java",
"groundtruth_start_lineno": 118,
"repository": "coralblocks-CoralME-ec2b736",
"right_context_start_lineno": 119,
"task_id": "project_cc_java/766"
}
} |
cross_code_eval_java::project_cc_java/794 | 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/cos/devoxx/hypermediairl/http/spectacles/SpectaclesController.java
// return Re... | {
"prefix": "package com.cos.devoxx.hypermediairl.http.item;\n\nimport static java.util.Objects.requireNonNull;\nimport static org.springframework.hateoas.server.mvc.WebMvcLinkBuilder.afford;\nimport static org.springframework.hateoas.server.mvc.WebMvcLinkBuilder.methodOn;\n\nimport com.cos.devoxx.hypermediairl.core.... | VoidAffordance.create(), afford(methodOn(ItemController.class).create(null)))); | {} | {
"repository": "Cosium-hypermedia-irl-presentation-0269869",
"file": "src/main/java/com/cos/devoxx/hypermediairl/http/item/ItemController.java",
"task_id": "project_cc_java/794"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/cos/devoxx/hypermediairl/http/item/ItemController.java",
"groundtruth_start_lineno": 52,
"repository": "Cosium-hypermedia-irl-presentation-0269869",
"right_context_start_lineno": 53,
"task_id": "project_cc_java/794"
}
} |
cross_code_eval_java::project_cc_java/785 | 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/coralblocks/coralme/OrderBook.java
// Iterator<Order> iter = orders.iterator();
// ... | {
"prefix": "/* \n * Copyright 2023 (c) CoralBlocks - http://www.coralblocks.com\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE... | if (StringUtils.equals(s.getFixCode(), sb)) { | {} | {
"repository": "coralblocks-CoralME-ec2b736",
"file": "src/main/java/com/coralblocks/coralme/Order.java",
"task_id": "project_cc_java/785"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/coralblocks/coralme/Order.java",
"groundtruth_start_lineno": 488,
"repository": "coralblocks-CoralME-ec2b736",
"right_context_start_lineno": 489,
"task_id": "project_cc_java/785"
}
} |
cross_code_eval_java::project_cc_java/790 | 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/cos/devoxx/hypermediairl/http/spectacles/SpectaclesController.java
// lin... | {
"prefix": "package com.cos.devoxx.hypermediairl.http.item;\n\nimport static java.util.Objects.requireNonNull;\nimport static org.springframework.hateoas.server.mvc.WebMvcLinkBuilder.afford;\nimport static org.springframework.hateoas.server.mvc.WebMvcLinkBuilder.methodOn;\n\nimport com.cos.devoxx.hypermediairl.core.... | class).findById(item.id())).toUri())
.build(); | {} | {
"repository": "Cosium-hypermedia-irl-presentation-0269869",
"file": "src/main/java/com/cos/devoxx/hypermediairl/http/item/ItemController.java",
"task_id": "project_cc_java/790"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/cos/devoxx/hypermediairl/http/item/ItemController.java",
"groundtruth_start_lineno": 70,
"repository": "Cosium-hypermedia-irl-presentation-0269869",
"right_context_start_lineno": 72,
"task_id": "project_cc_java/790"
}
} |
cross_code_eval_java::project_cc_java/782 | 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/coralblocks/coralme/OrderBook.java
// StringBuilder sb = new StringBuilder(1024);
/... | {
"prefix": "/* \n * Copyright 2023 (c) CoralBlocks - http://www.coralblocks.com\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE... | " restPrice=" + DoubleUtils.toDouble(restPrice)); | {} | {
"repository": "coralblocks-CoralME-ec2b736",
"file": "src/main/java/com/coralblocks/coralme/OrderBookLogger.java",
"task_id": "project_cc_java/782"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/coralblocks/coralme/OrderBookLogger.java",
"groundtruth_start_lineno": 118,
"repository": "coralblocks-CoralME-ec2b736",
"right_context_start_lineno": 119,
"task_id": "project_cc_java/782"
}
} |
cross_code_eval_java::project_cc_java/795 | 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/c20g/labs/agency/skill/python/PythonSkill.java
// "Executes arbitrary log... | {
"prefix": "package com.c20g.labs.agency.milvus;\n\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.List;\nimport java.util.Random;\nimport java.util.concurrent.TimeUnit;\n\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\nimport org.springframework.beans.factory.annotation.Autowire... | .withDimension(milvusConfiguration.getDimensions())
.build(); | {} | {
"repository": "CounterpointConsulting-agency-5891951",
"file": "src/main/java/com/c20g/labs/agency/milvus/MilvusService.java",
"task_id": "project_cc_java/795"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/c20g/labs/agency/milvus/MilvusService.java",
"groundtruth_start_lineno": 73,
"repository": "CounterpointConsulting-agency-5891951",
"right_context_start_lineno": 75,
"task_id": "project_cc_java/795"
}
} |
cross_code_eval_java::project_cc_java/774 | 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/coralblocks/coralme/example/Example.java
// 500 @ 156.43 (orders=1)
// 15... | {
"prefix": "/* \n * Copyright 2023 (c) CoralBlocks - http://www.coralblocks.com\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE... | book.getBestBidOrder(); | {} | {
"repository": "coralblocks-CoralME-ec2b736",
"file": "src/main/java/com/coralblocks/coralme/example/NoGCTest.java",
"task_id": "project_cc_java/774"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/coralblocks/coralme/example/NoGCTest.java",
"groundtruth_start_lineno": 98,
"repository": "coralblocks-CoralME-ec2b736",
"right_context_start_lineno": 99,
"task_id": "project_cc_java/774"
}
} |
cross_code_eval_java::project_cc_java/798 | 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/c20g/labs/agency/config/MilvusConfiguration.java
// public void setHost(String ho... | {
"prefix": "package com.c20g.labs.agency.milvus;\n\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.List;\nimport java.util.Random;\nimport java.util.concurrent.TimeUnit;\n\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\nimport org.springframework.beans.factory.annotation.Autowire... | .withTimeout(milvusConfiguration.getTimeout(), TimeUnit.MILLISECONDS)
.createCollection(createCollectionReq); | {} | {
"repository": "CounterpointConsulting-agency-5891951",
"file": "src/main/java/com/c20g/labs/agency/milvus/MilvusService.java",
"task_id": "project_cc_java/798"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/c20g/labs/agency/milvus/MilvusService.java",
"groundtruth_start_lineno": 87,
"repository": "CounterpointConsulting-agency-5891951",
"right_context_start_lineno": 89,
"task_id": "project_cc_java/798"
}
} |
cross_code_eval_java::project_cc_java/800 | 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/c20g/labs/agency/skill/calculate/CalculateSkill.java
// }
// return "... | {
"prefix": "package com.c20g.labs.agency.milvus;\n\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.List;\nimport java.util.Random;\nimport java.util.concurrent.TimeUnit;\n\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\nimport org.springframework.beans.factory.annotation.Autowire... | if(milvusConfiguration.getDeleteOnStartup() && hasCollection) { | {} | {
"repository": "CounterpointConsulting-agency-5891951",
"file": "src/main/java/com/c20g/labs/agency/milvus/MilvusService.java",
"task_id": "project_cc_java/800"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/c20g/labs/agency/milvus/MilvusService.java",
"groundtruth_start_lineno": 136,
"repository": "CounterpointConsulting-agency-5891951",
"right_context_start_lineno": 137,
"task_id": "project_cc_java/800"
}
} |
cross_code_eval_java::project_cc_java/802 | 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/c20g/labs/agency/config/MilvusConfiguration.java
// .withHost(host)
/... | {
"prefix": "package com.c20g.labs.agency.milvus;\n\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.List;\nimport java.util.Random;\nimport java.util.concurrent.TimeUnit;\n\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\nimport org.springframework.beans.factory.annotation.Autowire... | (milvusConfiguration.getCollection())
.build()); | {} | {
"repository": "CounterpointConsulting-agency-5891951",
"file": "src/main/java/com/c20g/labs/agency/milvus/MilvusService.java",
"task_id": "project_cc_java/802"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/c20g/labs/agency/milvus/MilvusService.java",
"groundtruth_start_lineno": 148,
"repository": "CounterpointConsulting-agency-5891951",
"right_context_start_lineno": 150,
"task_id": "project_cc_java/802"
}
} |
cross_code_eval_java::project_cc_java/826 | 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/agency/highlysuspect/minivan/stitch/ClassMergerCooler.java
// list.add(entryServer);... | {
"prefix": "/*\n * Copyright (c) 2016, 2017, 2018, 2019 FabricMC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Un... | new Entry(entry1.path, entry1.metadata, classMergerCooler.merge(entry1.data, entry2.data)); | {} | {
"repository": "CrackedPolishedBlackstoneBricksMC-minivan-4e8aa7f",
"file": "src/main/java/agency/highlysuspect/minivan/stitch/JarMergerCooler.java",
"task_id": "project_cc_java/826"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/agency/highlysuspect/minivan/stitch/JarMergerCooler.java",
"groundtruth_start_lineno": 181,
"repository": "CrackedPolishedBlackstoneBricksMC-minivan-4e8aa7f",
"right_context_start_lineno": 182,
"task_id": "project_cc_java/826"
... |
cross_code_eval_java::project_cc_java/827 | 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/agency/highlysuspect/minivan/prov/MinecraftProvider.java
// }
// public final Vanilla... | {
"prefix": "package agency.highlysuspect.minivan;\n\nimport com.google.gson.Gson;\nimport com.google.gson.JsonElement;\nimport com.google.gson.JsonObject;\nimport com.google.gson.annotations.SerializedName;\n\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.nio.file.Files;\nimport java.nio.f... | (MinivanPlugin.filenameSafe(name) + ".jar"); | {} | {
"repository": "CrackedPolishedBlackstoneBricksMC-minivan-4e8aa7f",
"file": "src/main/java/agency/highlysuspect/minivan/VersionManifest.java",
"task_id": "project_cc_java/827"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/agency/highlysuspect/minivan/VersionManifest.java",
"groundtruth_start_lineno": 72,
"repository": "CrackedPolishedBlackstoneBricksMC-minivan-4e8aa7f",
"right_context_start_lineno": 73,
"task_id": "project_cc_java/827"
}
} |
cross_code_eval_java::project_cc_java/844 | 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/cristike/aquainput/request/AquaInputRequest.java
// }
// public CompletableFu... | {
"prefix": "/*\n * Copyright (c) 2023 Cristike\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use... | sendInputMessage(uuid, request.getInput(), InputMessage.TIMEOUT); | {} | {
"repository": "Cristike-AquaInput-c8e8cb9",
"file": "src/main/java/dev/cristike/aquainput/manager/AquaInputManager.java",
"task_id": "project_cc_java/844"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/dev/cristike/aquainput/manager/AquaInputManager.java",
"groundtruth_start_lineno": 86,
"repository": "Cristike-AquaInput-c8e8cb9",
"right_context_start_lineno": 87,
"task_id": "project_cc_java/844"
}
} |
cross_code_eval_java::project_cc_java/847 | 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/cristike/aquainput/manager/EventsListener.java
// @EventHandler(priority = EventP... | {
"prefix": "/*\n * Copyright (c) 2023 Cristike\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use... | .get(uuid).forEach(request -> request.getFuture().complete(response)); | {} | {
"repository": "Cristike-AquaInput-c8e8cb9",
"file": "src/main/java/dev/cristike/aquainput/manager/AquaInputManager.java",
"task_id": "project_cc_java/847"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/dev/cristike/aquainput/manager/AquaInputManager.java",
"groundtruth_start_lineno": 119,
"repository": "Cristike-AquaInput-c8e8cb9",
"right_context_start_lineno": 120,
"task_id": "project_cc_java/847"
}
} |
cross_code_eval_java::project_cc_java/843 | 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/cristike/aquainput/manager/EventsListener.java
// }
// input.sendMess... | {
"prefix": "/*\n * Copyright (c) 2023 Cristike\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use... | request.getInput().getTimeout() * 20L); | {} | {
"repository": "Cristike-AquaInput-c8e8cb9",
"file": "src/main/java/dev/cristike/aquainput/manager/AquaInputManager.java",
"task_id": "project_cc_java/843"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/dev/cristike/aquainput/manager/AquaInputManager.java",
"groundtruth_start_lineno": 88,
"repository": "Cristike-AquaInput-c8e8cb9",
"right_context_start_lineno": 89,
"task_id": "project_cc_java/843"
}
} |
cross_code_eval_java::project_cc_java/842 | 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/cristike/aquainput/input/AquaInput.java
// * */
// public abstract boolean i... | {
"prefix": "/*\n * Copyright (c) 2023 Cristike\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use... | if (request.getInput().getTimeout() < 0) return; | {} | {
"repository": "Cristike-AquaInput-c8e8cb9",
"file": "src/main/java/dev/cristike/aquainput/manager/AquaInputManager.java",
"task_id": "project_cc_java/842"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/dev/cristike/aquainput/manager/AquaInputManager.java",
"groundtruth_start_lineno": 80,
"repository": "Cristike-AquaInput-c8e8cb9",
"right_context_start_lineno": 81,
"task_id": "project_cc_java/842"
}
} |
cross_code_eval_java::project_cc_java/841 | 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/cristike/aquainput/request/AquaInputRequest.java
// }
// public CompletableFu... | {
"prefix": "/*\n * Copyright (c) 2023 Cristike\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use... | , request.getInput(), InputMessage.PROMPT); | {} | {
"repository": "Cristike-AquaInput-c8e8cb9",
"file": "src/main/java/dev/cristike/aquainput/manager/AquaInputManager.java",
"task_id": "project_cc_java/841"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/dev/cristike/aquainput/manager/AquaInputManager.java",
"groundtruth_start_lineno": 77,
"repository": "Cristike-AquaInput-c8e8cb9",
"right_context_start_lineno": 78,
"task_id": "project_cc_java/841"
}
} |
cross_code_eval_java::project_cc_java/845 | 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/cristike/aquainput/input/AquaInput.java
// if (!messages.containsKey(type)) r... | {
"prefix": "/*\n * Copyright (c) 2023 Cristike\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use... | .element().getInput(); | {} | {
"repository": "Cristike-AquaInput-c8e8cb9",
"file": "src/main/java/dev/cristike/aquainput/manager/AquaInputManager.java",
"task_id": "project_cc_java/845"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/dev/cristike/aquainput/manager/AquaInputManager.java",
"groundtruth_start_lineno": 101,
"repository": "Cristike-AquaInput-c8e8cb9",
"right_context_start_lineno": 102,
"task_id": "project_cc_java/845"
}
} |
cross_code_eval_java::project_cc_java/846 | 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/cristike/aquainput/manager/EventsListener.java
// @EventHandler(priority = EventP... | {
"prefix": "/*\n * Copyright (c) 2023 Cristike\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use... | requests.element().getFuture().complete(response); | {} | {
"repository": "Cristike-AquaInput-c8e8cb9",
"file": "src/main/java/dev/cristike/aquainput/manager/AquaInputManager.java",
"task_id": "project_cc_java/846"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/dev/cristike/aquainput/manager/AquaInputManager.java",
"groundtruth_start_lineno": 108,
"repository": "Cristike-AquaInput-c8e8cb9",
"right_context_start_lineno": 109,
"task_id": "project_cc_java/846"
}
} |
cross_code_eval_java::project_cc_java/840 | 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/cristike/aquainput/request/AquaInputRequest.java
// }
// public CompletableFu... | {
"prefix": "/*\n * Copyright (c) 2023 Cristike\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use... | request.getFuture(); | {} | {
"repository": "Cristike-AquaInput-c8e8cb9",
"file": "src/main/java/dev/cristike/aquainput/manager/AquaInputManager.java",
"task_id": "project_cc_java/840"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/dev/cristike/aquainput/manager/AquaInputManager.java",
"groundtruth_start_lineno": 65,
"repository": "Cristike-AquaInput-c8e8cb9",
"right_context_start_lineno": 66,
"task_id": "project_cc_java/840"
}
} |
cross_code_eval_java::project_cc_java/808 | 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/c20g/labs/agency/util/ChatUtils.java
// }
// }
// }
// pu... | {
"prefix": "package com.c20g.labs.agency.loader;\n\nimport java.io.File;\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.Scanner;\n\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.stereotype.... | d.getOriginalText().split("\\n"); | {} | {
"repository": "CounterpointConsulting-agency-5891951",
"file": "src/main/java/com/c20g/labs/agency/loader/TextFileLoader.java",
"task_id": "project_cc_java/808"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/c20g/labs/agency/loader/TextFileLoader.java",
"groundtruth_start_lineno": 40,
"repository": "CounterpointConsulting-agency-5891951",
"right_context_start_lineno": 41,
"task_id": "project_cc_java/808"
}
} |
cross_code_eval_java::project_cc_java/810 | 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/c20g/labs/agency/skill/Skill.java
// package com.c20g.labs.agency.skill;
// public in... | {
"prefix": "package com.c20g.labs.agency.skill;\n\nimport java.util.Arrays;\nimport java.util.HashMap;\nimport java.util.List;\nimport java.util.Map;\n\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.context.Applic... | (description.getName().equals(skillType)) { | {} | {
"repository": "CounterpointConsulting-agency-5891951",
"file": "src/main/java/com/c20g/labs/agency/skill/SkillLocator.java",
"task_id": "project_cc_java/810"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/c20g/labs/agency/skill/SkillLocator.java",
"groundtruth_start_lineno": 47,
"repository": "CounterpointConsulting-agency-5891951",
"right_context_start_lineno": 48,
"task_id": "project_cc_java/810"
}
} |
cross_code_eval_java::project_cc_java/816 | 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/c20g/labs/agency/loader/TextFileLoader.java
// List<String> chunks = chunkTex... | {
"prefix": "package com.c20g.labs.agency.util;\n\nimport java.util.Scanner;\n\nimport org.json.simple.JSONValue;\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.stereotype.Component;\n\nimport com.c20g.labs.agency.... | conversation.formattedFullHistory(), null); | {} | {
"repository": "CounterpointConsulting-agency-5891951",
"file": "src/main/java/com/c20g/labs/agency/util/ChatUtils.java",
"task_id": "project_cc_java/816"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/c20g/labs/agency/util/ChatUtils.java",
"groundtruth_start_lineno": 120,
"repository": "CounterpointConsulting-agency-5891951",
"right_context_start_lineno": 121,
"task_id": "project_cc_java/816"
}
} |
cross_code_eval_java::project_cc_java/811 | 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/c20g/labs/agency/skill/planner/PlannerSkill.java
// }
// @Override
// pub... | {
"prefix": "package com.c20g.labs.agency.skill;\n\nimport java.util.Arrays;\nimport java.util.HashMap;\nimport java.util.List;\nimport java.util.Map;\n\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.context.Applic... | = currentSkill.describe(); | {} | {
"repository": "CounterpointConsulting-agency-5891951",
"file": "src/main/java/com/c20g/labs/agency/skill/SkillLocator.java",
"task_id": "project_cc_java/811"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/c20g/labs/agency/skill/SkillLocator.java",
"groundtruth_start_lineno": 46,
"repository": "CounterpointConsulting-agency-5891951",
"right_context_start_lineno": 47,
"task_id": "project_cc_java/811"
}
} |
cross_code_eval_java::project_cc_java/817 | 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/c20g/labs/agency/agent/python/PythonAgent.java
// package com.c20g.labs.agency.agent.... | {
"prefix": "package com.c20g.labs.agency.util;\n\nimport java.util.Scanner;\n\nimport org.json.simple.JSONValue;\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.stereotype.Component;\n\nimport com.c20g.labs.agency.... | conversation.getAllMessages().get(0).getRole().equals(ChatMessageRole.SYSTEM.value())) { | {} | {
"repository": "CounterpointConsulting-agency-5891951",
"file": "src/main/java/com/c20g/labs/agency/util/ChatUtils.java",
"task_id": "project_cc_java/817"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/c20g/labs/agency/util/ChatUtils.java",
"groundtruth_start_lineno": 125,
"repository": "CounterpointConsulting-agency-5891951",
"right_context_start_lineno": 126,
"task_id": "project_cc_java/817"
}
} |
cross_code_eval_java::project_cc_java/839 | 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:
// twister-avro/src/main/java/dev/twister/avro/AvroSchemaInferrer.java
// */
// private Schema ge... | {
"prefix": "package dev.twister.avro;\n\nimport org.apache.avro.LogicalType;\nimport org.apache.avro.Schema;\nimport org.apache.avro.io.BinaryEncoder;\nimport org.apache.avro.io.DatumWriter;\nimport org.apache.avro.io.Encoder;\nimport org.apache.avro.io.EncoderFactory;\n\nimport java.io.ByteArrayOutputStream;\nimpor... | ).infer(object, recordName)); | {} | {
"repository": "criccomini-twister-4e63c85",
"file": "twister-avro/src/main/java/dev/twister/avro/AvroWriter.java",
"task_id": "project_cc_java/839"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "twister-avro/src/main/java/dev/twister/avro/AvroWriter.java",
"groundtruth_start_lineno": 247,
"repository": "criccomini-twister-4e63c85",
"right_context_start_lineno": 248,
"task_id": "project_cc_java/839"
}
} |
cross_code_eval_java::project_cc_java/814 | 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/c20g/labs/agency/agent/planner/PlannerAgent.java
// ChatMessage aiResponseMessage =... | {
"prefix": "package com.c20g.labs.agency.util;\n\nimport java.util.Scanner;\n\nimport org.json.simple.JSONValue;\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.stereotype.Component;\n\nimport com.c20g.labs.agency.... | conversation.getAllMessages())
.maxTokens(agencyConfiguration.getChatRequestMaxTokens())
.build(); | {} | {
"repository": "CounterpointConsulting-agency-5891951",
"file": "src/main/java/com/c20g/labs/agency/util/ChatUtils.java",
"task_id": "project_cc_java/814"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/c20g/labs/agency/util/ChatUtils.java",
"groundtruth_start_lineno": 66,
"repository": "CounterpointConsulting-agency-5891951",
"right_context_start_lineno": 69,
"task_id": "project_cc_java/814"
}
} |
cross_code_eval_java::project_cc_java/815 | 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/c20g/labs/agency/config/OpenAiConfiguration.java
// throw new Exception("... | {
"prefix": "package com.c20g.labs.agency.util;\n\nimport java.util.Scanner;\n\nimport org.json.simple.JSONValue;\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.stereotype.Component;\n\nimport com.c20g.labs.agency.... | var message : conversation.getAllMessages()) { | {} | {
"repository": "CounterpointConsulting-agency-5891951",
"file": "src/main/java/com/c20g/labs/agency/util/ChatUtils.java",
"task_id": "project_cc_java/815"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/c20g/labs/agency/util/ChatUtils.java",
"groundtruth_start_lineno": 90,
"repository": "CounterpointConsulting-agency-5891951",
"right_context_start_lineno": 91,
"task_id": "project_cc_java/815"
}
} |
cross_code_eval_java::project_cc_java/820 | 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/c20g/labs/agency/skill/calculate/CalculateSkill.java
// File tmpPytho... | {
"prefix": "package com.c20g.labs.agency.util;\n\nimport java.util.Scanner;\n\nimport org.json.simple.JSONValue;\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.stereotype.Component;\n\nimport com.c20g.labs.agency.... | historyAgentConversation.getAllMessages().get(
historyAgentConversation.getAllMessages().size()-1))); | {} | {
"repository": "CounterpointConsulting-agency-5891951",
"file": "src/main/java/com/c20g/labs/agency/util/ChatUtils.java",
"task_id": "project_cc_java/820"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/c20g/labs/agency/util/ChatUtils.java",
"groundtruth_start_lineno": 134,
"repository": "CounterpointConsulting-agency-5891951",
"right_context_start_lineno": 136,
"task_id": "project_cc_java/820"
}
} |
cross_code_eval_java::project_cc_java/859 | 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/gld/model/dto/CommentId.java
// }
// public Long getSeq() {
// return seq;
// }
... | {
"prefix": "package com.gld.model.biz;\n\nimport java.util.List;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.stereotype.Service;\n\nimport com.gld.model.dto.RegisteredMemberDto;\nimport com.gld.model.mapper.RegisteredMemberMapper;\nimport com.gld.model.repository.Reg... | return mapper.deleteRegister(challengeSeq, id); | {} | {
"repository": "Dalaranian-GodLifeDiary-4811d09",
"file": "src/main/java/com/gld/model/biz/RegisteredBiz.java",
"task_id": "project_cc_java/859"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/gld/model/biz/RegisteredBiz.java",
"groundtruth_start_lineno": 43,
"repository": "Dalaranian-GodLifeDiary-4811d09",
"right_context_start_lineno": 44,
"task_id": "project_cc_java/859"
}
} |
cross_code_eval_java::project_cc_java/878 | 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/gld/model/controller/ChallengeController.java
// return res; }
// }
// the below c... | {
"prefix": "package com.gld.model.controller;\n\nimport java.text.ParseException;\nimport java.text.SimpleDateFormat;\nimport java.util.HashMap;\nimport java.util.Map;\n\nimport javax.servlet.http.HttpSession;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.stereotype.Co... | dto.setOnOffNoty("Y"); | {} | {
"repository": "Dalaranian-GodLifeDiary-4811d09",
"file": "src/main/java/com/gld/model/controller/KakaoLoginController.java",
"task_id": "project_cc_java/878"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/gld/model/controller/KakaoLoginController.java",
"groundtruth_start_lineno": 75,
"repository": "Dalaranian-GodLifeDiary-4811d09",
"right_context_start_lineno": 76,
"task_id": "project_cc_java/878"
}
} |
cross_code_eval_java::project_cc_java/881 | 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/gld/model/controller/MypageController.java
// }
// @GetMapping("/gotopwchange")
// ... | {
"prefix": "package com.gld.model.controller;\n\nimport java.time.LocalDate;\nimport java.util.ArrayList;\nimport java.util.HashMap;\nimport java.util.List;\nimport java.util.Map;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.format.annotation.DateTimeFormat;\nimport o... | > challenges = challengeBiz.findbyCate(category); | {} | {
"repository": "Dalaranian-GodLifeDiary-4811d09",
"file": "src/main/java/com/gld/model/controller/ChallengeController.java",
"task_id": "project_cc_java/881"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/gld/model/controller/ChallengeController.java",
"groundtruth_start_lineno": 67,
"repository": "Dalaranian-GodLifeDiary-4811d09",
"right_context_start_lineno": 68,
"task_id": "project_cc_java/881"
}
} |
cross_code_eval_java::project_cc_java/819 | 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/c20g/labs/agency/skill/calculate/CalculateSkill.java
// File tmpPytho... | {
"prefix": "package com.c20g.labs.agency.util;\n\nimport java.util.Scanner;\n\nimport org.json.simple.JSONValue;\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.stereotype.Component;\n\nimport com.c20g.labs.agency.... | historyAgentConversation.getAllMessages().size()-1))); | {} | {
"repository": "CounterpointConsulting-agency-5891951",
"file": "src/main/java/com/c20g/labs/agency/util/ChatUtils.java",
"task_id": "project_cc_java/819"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/c20g/labs/agency/util/ChatUtils.java",
"groundtruth_start_lineno": 135,
"repository": "CounterpointConsulting-agency-5891951",
"right_context_start_lineno": 136,
"task_id": "project_cc_java/819"
}
} |
cross_code_eval_java::project_cc_java/824 | 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/c20g/labs/agency/skill/calculate/CalculateSkill.java
// File tmpPytho... | {
"prefix": "package com.c20g.labs.agency.util;\n\nimport java.util.Scanner;\n\nimport org.json.simple.JSONValue;\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.stereotype.Component;\n\nimport com.c20g.labs.agency.... | conversation.getAllMessages().size()).toArray(new ChatMessage[0]); | {} | {
"repository": "CounterpointConsulting-agency-5891951",
"file": "src/main/java/com/c20g/labs/agency/util/ChatUtils.java",
"task_id": "project_cc_java/824"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/c20g/labs/agency/util/ChatUtils.java",
"groundtruth_start_lineno": 159,
"repository": "CounterpointConsulting-agency-5891951",
"right_context_start_lineno": 160,
"task_id": "project_cc_java/824"
}
} |
cross_code_eval_java::project_cc_java/879 | 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/gld/model/controller/ChallengeController.java
// return res; }
// }
// the below c... | {
"prefix": "package com.gld.model.controller;\n\nimport java.text.ParseException;\nimport java.text.SimpleDateFormat;\nimport java.util.HashMap;\nimport java.util.Map;\n\nimport javax.servlet.http.HttpSession;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.stereotype.Co... | dto.setUserLoginType("K"); | {} | {
"repository": "Dalaranian-GodLifeDiary-4811d09",
"file": "src/main/java/com/gld/model/controller/KakaoLoginController.java",
"task_id": "project_cc_java/879"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/gld/model/controller/KakaoLoginController.java",
"groundtruth_start_lineno": 76,
"repository": "Dalaranian-GodLifeDiary-4811d09",
"right_context_start_lineno": 77,
"task_id": "project_cc_java/879"
}
} |
cross_code_eval_java::project_cc_java/875 | 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/gld/model/dto/UserDto.java
// return "UserDto [userId="
// + userId + ", userPw... | {
"prefix": "package com.gld.model.controller;\n\nimport java.text.ParseException;\nimport java.text.SimpleDateFormat;\nimport java.util.HashMap;\nimport java.util.Map;\n\nimport javax.servlet.http.HttpSession;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.stereotype.Co... | dto.setUserName(userName); | {} | {
"repository": "Dalaranian-GodLifeDiary-4811d09",
"file": "src/main/java/com/gld/model/controller/KakaoLoginController.java",
"task_id": "project_cc_java/875"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/gld/model/controller/KakaoLoginController.java",
"groundtruth_start_lineno": 66,
"repository": "Dalaranian-GodLifeDiary-4811d09",
"right_context_start_lineno": 67,
"task_id": "project_cc_java/875"
}
} |
cross_code_eval_java::project_cc_java/871 | 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/gld/model/controller/ChallengeController.java
// }else {
// res.put("list"... | {
"prefix": "package com.gld.model.controller;\n\nimport java.text.ParseException;\nimport java.text.SimpleDateFormat;\nimport java.util.HashMap;\nimport java.util.Map;\n\nimport javax.servlet.http.HttpSession;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.stereotype.Co... | .put("userId", dto.getUserId()); | {} | {
"repository": "Dalaranian-GodLifeDiary-4811d09",
"file": "src/main/java/com/gld/model/controller/KakaoLoginController.java",
"task_id": "project_cc_java/871"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/gld/model/controller/KakaoLoginController.java",
"groundtruth_start_lineno": 45,
"repository": "Dalaranian-GodLifeDiary-4811d09",
"right_context_start_lineno": 46,
"task_id": "project_cc_java/871"
}
} |
cross_code_eval_java::project_cc_java/877 | 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/gld/model/controller/ChallengeController.java
// return res; }
// }
// the below c... | {
"prefix": "package com.gld.model.controller;\n\nimport java.text.ParseException;\nimport java.text.SimpleDateFormat;\nimport java.util.HashMap;\nimport java.util.Map;\n\nimport javax.servlet.http.HttpSession;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.stereotype.Co... | dto.setUserPhone(userPhone); | {} | {
"repository": "Dalaranian-GodLifeDiary-4811d09",
"file": "src/main/java/com/gld/model/controller/KakaoLoginController.java",
"task_id": "project_cc_java/877"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/gld/model/controller/KakaoLoginController.java",
"groundtruth_start_lineno": 74,
"repository": "Dalaranian-GodLifeDiary-4811d09",
"right_context_start_lineno": 75,
"task_id": "project_cc_java/877"
}
} |
cross_code_eval_java::project_cc_java/866 | 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/gld/model/controller/IndexController.java
// }*/
// @GetMapping("/index")
// publi... | {
"prefix": "package com.gld.model.controller;\n\n\nimport javax.servlet.http.HttpSession;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.stereotype.Controller;\nimport org.springframework.ui.Model;\nimport org.springframework.web.bind.annotation.GetMapping;\nimport org.... | user = loginBiz.findByUserId(userId); | {} | {
"repository": "Dalaranian-GodLifeDiary-4811d09",
"file": "src/main/java/com/gld/model/controller/LoginController.java",
"task_id": "project_cc_java/866"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/gld/model/controller/LoginController.java",
"groundtruth_start_lineno": 47,
"repository": "Dalaranian-GodLifeDiary-4811d09",
"right_context_start_lineno": 48,
"task_id": "project_cc_java/866"
}
} |
cross_code_eval_java::project_cc_java/867 | 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/gld/model/controller/MypageController.java
// return "loginform";
// }
// }
// th... | {
"prefix": "package com.gld.model.controller;\n\n\nimport javax.servlet.http.HttpSession;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.stereotype.Controller;\nimport org.springframework.ui.Model;\nimport org.springframework.web.bind.annotation.GetMapping;\nimport org.... | && user.getUserPw().equals(userPw)) { | {} | {
"repository": "Dalaranian-GodLifeDiary-4811d09",
"file": "src/main/java/com/gld/model/controller/LoginController.java",
"task_id": "project_cc_java/867"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/gld/model/controller/LoginController.java",
"groundtruth_start_lineno": 49,
"repository": "Dalaranian-GodLifeDiary-4811d09",
"right_context_start_lineno": 50,
"task_id": "project_cc_java/867"
}
} |
cross_code_eval_java::project_cc_java/825 | 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/c20g/labs/agency/AgencyApplication.java
// }
// ChatMessage userInputMessage = ... | {
"prefix": "package com.c20g.labs.agency.util;\n\nimport java.util.Scanner;\n\nimport org.json.simple.JSONValue;\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.stereotype.Component;\n\nimport com.c20g.labs.agency.... | openAiConfiguration.chatModel(),
conversation); | {} | {
"repository": "CounterpointConsulting-agency-5891951",
"file": "src/main/java/com/c20g/labs/agency/util/ChatUtils.java",
"task_id": "project_cc_java/825"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/c20g/labs/agency/util/ChatUtils.java",
"groundtruth_start_lineno": 61,
"repository": "CounterpointConsulting-agency-5891951",
"right_context_start_lineno": 63,
"task_id": "project_cc_java/825"
}
} |
cross_code_eval_java::project_cc_java/821 | 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/c20g/labs/agency/skill/calculate/CalculateSkill.java
// File tmpPytho... | {
"prefix": "package com.c20g.labs.agency.util;\n\nimport java.util.Scanner;\n\nimport org.json.simple.JSONValue;\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.stereotype.Component;\n\nimport com.c20g.labs.agency.... | (conversation.getAllMessages().size() > agencyConfiguration.getChatSummaryRetainedMessageCount()) { | {} | {
"repository": "CounterpointConsulting-agency-5891951",
"file": "src/main/java/com/c20g/labs/agency/util/ChatUtils.java",
"task_id": "project_cc_java/821"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/c20g/labs/agency/util/ChatUtils.java",
"groundtruth_start_lineno": 139,
"repository": "CounterpointConsulting-agency-5891951",
"right_context_start_lineno": 140,
"task_id": "project_cc_java/821"
}
} |
cross_code_eval_java::project_cc_java/887 | 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/gld/model/controller/KakaoLoginController.java
// System.out.println("kakaoAuth\n" ... | {
"prefix": "package com.gld.model.controller;\n\nimport java.time.LocalDate;\nimport java.util.ArrayList;\nimport java.util.HashMap;\nimport java.util.List;\nimport java.util.Map;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.format.annotation.DateTimeFormat;\nimport o... | ChallengeDto currentChallenge = challengeBiz.selectOneBySeq(challengeSeq); | {} | {
"repository": "Dalaranian-GodLifeDiary-4811d09",
"file": "src/main/java/com/gld/model/controller/ChallengeController.java",
"task_id": "project_cc_java/887"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/gld/model/controller/ChallengeController.java",
"groundtruth_start_lineno": 210,
"repository": "Dalaranian-GodLifeDiary-4811d09",
"right_context_start_lineno": 211,
"task_id": "project_cc_java/887"
}
} |
cross_code_eval_java::project_cc_java/885 | 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/gld/model/controller/MypageController.java
// }
// @GetMapping("/gotopwchange")
// ... | {
"prefix": "package com.gld.model.controller;\n\nimport java.time.LocalDate;\nimport java.util.ArrayList;\nimport java.util.HashMap;\nimport java.util.List;\nimport java.util.Map;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.format.annotation.DateTimeFormat;\nimport o... | challenge = challengeBiz.selectOne(challengeName); | {} | {
"repository": "Dalaranian-GodLifeDiary-4811d09",
"file": "src/main/java/com/gld/model/controller/ChallengeController.java",
"task_id": "project_cc_java/885"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/gld/model/controller/ChallengeController.java",
"groundtruth_start_lineno": 114,
"repository": "Dalaranian-GodLifeDiary-4811d09",
"right_context_start_lineno": 115,
"task_id": "project_cc_java/885"
}
} |
cross_code_eval_java::project_cc_java/850 | 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/icu/aicq/ai/open/ai/api/config/OpenAIConfigStorage.java
// */
// OkHttpClientUti... | {
"prefix": "package icu.aicq.ai.open.ai.api.config.impl;\n\nimport icu.aicq.ai.open.ai.api.common.OpenAIConstant;\nimport icu.aicq.ai.open.ai.api.config.OpenAIConfigStorage;\nimport icu.aicq.ai.open.ai.api.redis.RedisOps;\nimport icu.aicq.ai.open.ai.api.redis.RedissonRedisOps;\nimport icu.aicq.ai.open.ai.api.utils.O... | return redisOps.getValue(getApiKeyRedisKey()); | {} | {
"repository": "czqclm-aicq-open-ai-api-a7b76bc",
"file": "src/main/java/icu/aicq/ai/open/ai/api/config/impl/OpenAIRedisConfigStorageImpl.java",
"task_id": "project_cc_java/850"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/icu/aicq/ai/open/ai/api/config/impl/OpenAIRedisConfigStorageImpl.java",
"groundtruth_start_lineno": 90,
"repository": "czqclm-aicq-open-ai-api-a7b76bc",
"right_context_start_lineno": 91,
"task_id": "project_cc_java/850"
}
} |
cross_code_eval_java::project_cc_java/849 | 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/icu/aicq/ai/open/ai/api/config/OpenAIConfigStorage.java
// */
// OkHttpClientUti... | {
"prefix": "package icu.aicq.ai.open.ai.api.config.impl;\n\nimport icu.aicq.ai.open.ai.api.common.OpenAIConstant;\nimport icu.aicq.ai.open.ai.api.config.OpenAIConfigStorage;\nimport icu.aicq.ai.open.ai.api.redis.RedisOps;\nimport icu.aicq.ai.open.ai.api.redis.RedissonRedisOps;\nimport icu.aicq.ai.open.ai.api.utils.O... | redisOps.setValue(apiKeyRedisKey, openApiKey); | {} | {
"repository": "czqclm-aicq-open-ai-api-a7b76bc",
"file": "src/main/java/icu/aicq/ai/open/ai/api/config/impl/OpenAIRedisConfigStorageImpl.java",
"task_id": "project_cc_java/849"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/icu/aicq/ai/open/ai/api/config/impl/OpenAIRedisConfigStorageImpl.java",
"groundtruth_start_lineno": 85,
"repository": "czqclm-aicq-open-ai-api-a7b76bc",
"right_context_start_lineno": 86,
"task_id": "project_cc_java/849"
}
} |
cross_code_eval_java::project_cc_java/895 | 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/gld/model/controller/KakaoLoginController.java
// System.out.println("kakaoAuth\n" ... | {
"prefix": "package com.gld.model.controller;\n\nimport java.time.LocalDate;\nimport java.util.ArrayList;\nimport java.util.HashMap;\nimport java.util.List;\nimport java.util.Map;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.format.annotation.DateTimeFormat;\nimport o... | int currentMember = registeredBiz.coutBySeq(challengeSeq); | {} | {
"repository": "Dalaranian-GodLifeDiary-4811d09",
"file": "src/main/java/com/gld/model/controller/ChallengeController.java",
"task_id": "project_cc_java/895"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/gld/model/controller/ChallengeController.java",
"groundtruth_start_lineno": 212,
"repository": "Dalaranian-GodLifeDiary-4811d09",
"right_context_start_lineno": 213,
"task_id": "project_cc_java/895"
}
} |
cross_code_eval_java::project_cc_java/896 | 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/gld/model/biz/RegisteredBiz.java
// public void challengeStart(String challengeSeq) ... | {
"prefix": "package com.gld.model.controller;\n\nimport java.time.LocalDate;\nimport java.util.ArrayList;\nimport java.util.HashMap;\nimport java.util.List;\nimport java.util.Map;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.format.annotation.DateTimeFormat;\nimport o... | registeredBiz.coutBySeq(challengeSeq); | {} | {
"repository": "Dalaranian-GodLifeDiary-4811d09",
"file": "src/main/java/com/gld/model/controller/ChallengeController.java",
"task_id": "project_cc_java/896"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/gld/model/controller/ChallengeController.java",
"groundtruth_start_lineno": 223,
"repository": "Dalaranian-GodLifeDiary-4811d09",
"right_context_start_lineno": 224,
"task_id": "project_cc_java/896"
}
} |
cross_code_eval_java::project_cc_java/897 | 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/gld/model/biz/RegisteredBiz.java
// public void challengeStart(String challengeSeq) ... | {
"prefix": "package com.gld.model.controller;\n\nimport java.time.LocalDate;\nimport java.util.ArrayList;\nimport java.util.HashMap;\nimport java.util.List;\nimport java.util.Map;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.format.annotation.DateTimeFormat;\nimport o... | registeredBiz.challengeStart(challengeSeq); | {} | {
"repository": "Dalaranian-GodLifeDiary-4811d09",
"file": "src/main/java/com/gld/model/controller/ChallengeController.java",
"task_id": "project_cc_java/897"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/gld/model/controller/ChallengeController.java",
"groundtruth_start_lineno": 227,
"repository": "Dalaranian-GodLifeDiary-4811d09",
"right_context_start_lineno": 228,
"task_id": "project_cc_java/897"
}
} |
cross_code_eval_java::project_cc_java/898 | 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/gld/model/controller/KakaoLoginController.java
// @PostMapping("/join")
// public S... | {
"prefix": "package com.gld.model.controller;\n\nimport java.time.LocalDate;\nimport java.util.ArrayList;\nimport java.util.HashMap;\nimport java.util.List;\nimport java.util.Map;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.format.annotation.DateTimeFormat;\nimport o... | if (currentChallenge.getChallengeEnabled().equals("Y")
&& currentMember < currentChallenge.getChallengeMaxMember()) { | {} | {
"repository": "Dalaranian-GodLifeDiary-4811d09",
"file": "src/main/java/com/gld/model/controller/ChallengeController.java",
"task_id": "project_cc_java/898"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/gld/model/controller/ChallengeController.java",
"groundtruth_start_lineno": 217,
"repository": "Dalaranian-GodLifeDiary-4811d09",
"right_context_start_lineno": 219,
"task_id": "project_cc_java/898"
}
} |
cross_code_eval_java::project_cc_java/902 | 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/gld/model/biz/RegisteredBiz.java
// public void challengeStart(String challengeSeq) ... | {
"prefix": "package com.gld.model.controller;\n\nimport java.time.LocalDate;\nimport java.util.ArrayList;\nimport java.util.HashMap;\nimport java.util.List;\nimport java.util.Map;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.format.annotation.DateTimeFormat;\nimport o... | return currentChallenge.getChallengeName() + "에 참여하였습니다. "; | {} | {
"repository": "Dalaranian-GodLifeDiary-4811d09",
"file": "src/main/java/com/gld/model/controller/ChallengeController.java",
"task_id": "project_cc_java/902"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/gld/model/controller/ChallengeController.java",
"groundtruth_start_lineno": 231,
"repository": "Dalaranian-GodLifeDiary-4811d09",
"right_context_start_lineno": 232,
"task_id": "project_cc_java/902"
}
} |
cross_code_eval_java::project_cc_java/899 | 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/gld/model/controller/KakaoLoginController.java
// @PostMapping("/join")
// public S... | {
"prefix": "package com.gld.model.controller;\n\nimport java.time.LocalDate;\nimport java.util.ArrayList;\nimport java.util.HashMap;\nimport java.util.List;\nimport java.util.Map;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.format.annotation.DateTimeFormat;\nimport o... | currentChallenge.getChallengeMaxMember()) { | {} | {
"repository": "Dalaranian-GodLifeDiary-4811d09",
"file": "src/main/java/com/gld/model/controller/ChallengeController.java",
"task_id": "project_cc_java/899"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/gld/model/controller/ChallengeController.java",
"groundtruth_start_lineno": 218,
"repository": "Dalaranian-GodLifeDiary-4811d09",
"right_context_start_lineno": 219,
"task_id": "project_cc_java/899"
}
} |
cross_code_eval_java::project_cc_java/937 | 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/daputzy/intellijsopsplugin/settings/SettingsState.java
// public @Nullable Se... | {
"prefix": "package com.github.daputzy.intellijsopsplugin.settings;\n\nimport java.util.Objects;\n\nimport com.intellij.openapi.options.Configurable;\nimport javax.swing.*;\nimport org.jetbrains.annotations.Nls;\nimport org.jetbrains.annotations.Nullable;\n\npublic class SettingsConfigurable implements Configurable ... | .equals(settings.sopsExecutable, settingsComponent.getSopsExecutable()) ||
!Objects.equals(settings.sopsFilesReadOnly, settingsComponent.getSopsFilesReadOnly()); | {} | {
"repository": "DaPutzy-intellij-sops-plugin-d164a55",
"file": "src/main/java/com/github/daputzy/intellijsopsplugin/settings/SettingsConfigurable.java",
"task_id": "project_cc_java/937"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/github/daputzy/intellijsopsplugin/settings/SettingsConfigurable.java",
"groundtruth_start_lineno": 36,
"repository": "DaPutzy-intellij-sops-plugin-d164a55",
"right_context_start_lineno": 38,
"task_id": "project_cc_java/937"
... |
cross_code_eval_java::project_cc_java/938 | 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/daputzy/intellijsopsplugin/settings/SettingsState.java
// public @Nullable Se... | {
"prefix": "package com.github.daputzy.intellijsopsplugin.settings;\n\nimport java.util.Objects;\n\nimport com.intellij.openapi.options.Configurable;\nimport javax.swing.*;\nimport org.jetbrains.annotations.Nls;\nimport org.jetbrains.annotations.Nullable;\n\npublic class SettingsConfigurable implements Configurable ... | settingsComponent.getSopsFilesReadOnly()); | {} | {
"repository": "DaPutzy-intellij-sops-plugin-d164a55",
"file": "src/main/java/com/github/daputzy/intellijsopsplugin/settings/SettingsConfigurable.java",
"task_id": "project_cc_java/938"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/github/daputzy/intellijsopsplugin/settings/SettingsConfigurable.java",
"groundtruth_start_lineno": 37,
"repository": "DaPutzy-intellij-sops-plugin-d164a55",
"right_context_start_lineno": 38,
"task_id": "project_cc_java/938"
... |
cross_code_eval_java::project_cc_java/903 | 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/gld/model/controller/KakaoLoginController.java
// System.out.println("kakaoAuth\n" ... | {
"prefix": "package com.gld.model.controller;\n\nimport java.time.LocalDate;\nimport java.util.ArrayList;\nimport java.util.HashMap;\nimport java.util.List;\nimport java.util.Map;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.format.annotation.DateTimeFormat;\nimport o... | if (currentChallenge.getChallengeEnabled().equals("Y")) { | {} | {
"repository": "Dalaranian-GodLifeDiary-4811d09",
"file": "src/main/java/com/gld/model/controller/ChallengeController.java",
"task_id": "project_cc_java/903"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/gld/model/controller/ChallengeController.java",
"groundtruth_start_lineno": 264,
"repository": "Dalaranian-GodLifeDiary-4811d09",
"right_context_start_lineno": 265,
"task_id": "project_cc_java/903"
}
} |
cross_code_eval_java::project_cc_java/946 | 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/daputzy/intellijsopsplugin/settings/SettingsConfigurable.java
// settingsCom... | {
"prefix": "package com.github.daputzy.intellijsopsplugin.sops;\n\nimport java.nio.charset.StandardCharsets;\nimport java.util.Arrays;\nimport java.util.List;\nimport java.util.function.Consumer;\nimport java.util.function.Predicate;\nimport java.util.stream.Collectors;\n\nimport com.github.daputzy.intellijsopsplugi... | SettingsState.getInstance().sopsEnvironment.split("\\s(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)"); | {} | {
"repository": "DaPutzy-intellij-sops-plugin-d164a55",
"file": "src/main/java/com/github/daputzy/intellijsopsplugin/sops/ExecutionUtil.java",
"task_id": "project_cc_java/946"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/github/daputzy/intellijsopsplugin/sops/ExecutionUtil.java",
"groundtruth_start_lineno": 134,
"repository": "DaPutzy-intellij-sops-plugin-d164a55",
"right_context_start_lineno": 135,
"task_id": "project_cc_java/946"
}
} |
cross_code_eval_java::project_cc_java/900 | 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/gld/model/biz/RegisteredBiz.java
// public void challengeStart(String challengeSeq) ... | {
"prefix": "package com.gld.model.controller;\n\nimport java.time.LocalDate;\nimport java.util.ArrayList;\nimport java.util.HashMap;\nimport java.util.List;\nimport java.util.Map;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.format.annotation.DateTimeFormat;\nimport o... | currentChallenge.getChallengeMaxMember() <= member) { | {} | {
"repository": "Dalaranian-GodLifeDiary-4811d09",
"file": "src/main/java/com/gld/model/controller/ChallengeController.java",
"task_id": "project_cc_java/900"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/gld/model/controller/ChallengeController.java",
"groundtruth_start_lineno": 225,
"repository": "Dalaranian-GodLifeDiary-4811d09",
"right_context_start_lineno": 226,
"task_id": "project_cc_java/900"
}
} |
cross_code_eval_java::project_cc_java/933 | 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/im/dnn/BlockEntities/Utils/Helpers.java
// }
// }
// }
// pub... | {
"prefix": "package im.dnn.BlockEntities.Commands;\n\nimport im.dnn.BlockEntities.BlockEntities;\nimport im.dnn.BlockEntities.Constants.Commands;\nimport im.dnn.BlockEntities.Constants.Keys;\nimport im.dnn.BlockEntities.Constants.Permissions;\nimport im.dnn.BlockEntities.Models.BlockItem;\nimport im.dnn.BlockEntitie... | + " &3&o→ &r" + blockItem.getDisplayName()); | {} | {
"repository": "dannegm-BlockEntities-7256b11",
"file": "src/main/java/im/dnn/BlockEntities/Commands/MainCommand.java",
"task_id": "project_cc_java/933"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/im/dnn/BlockEntities/Commands/MainCommand.java",
"groundtruth_start_lineno": 72,
"repository": "dannegm-BlockEntities-7256b11",
"right_context_start_lineno": 73,
"task_id": "project_cc_java/933"
}
} |
cross_code_eval_java::project_cc_java/931 | 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/im/dnn/BlockEntities/Models/BlockEntity.java
// ItemStack item = blockItem.ge... | {
"prefix": "package im.dnn.BlockEntities.Managers;\n\nimport im.dnn.BlockEntities.BlockEntities;\nimport im.dnn.BlockEntities.Models.BlockEntity;\nimport im.dnn.BlockEntities.Models.BlockItem;\nimport im.dnn.BlockEntities.Utils.Helpers;\nimport org.bukkit.GameMode;\nimport org.bukkit.Location;\nimport org.bukkit.Sou... | world.dropItemNaturally(location, blockItem.getItem(1)); | {} | {
"repository": "dannegm-BlockEntities-7256b11",
"file": "src/main/java/im/dnn/BlockEntities/Managers/BlockManager.java",
"task_id": "project_cc_java/931"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/im/dnn/BlockEntities/Managers/BlockManager.java",
"groundtruth_start_lineno": 53,
"repository": "dannegm-BlockEntities-7256b11",
"right_context_start_lineno": 54,
"task_id": "project_cc_java/931"
}
} |
cross_code_eval_java::project_cc_java/932 | 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/im/dnn/BlockEntities/Commands/MainCommand.java
// this.plugin.settings.reloadConf... | {
"prefix": "package im.dnn.BlockEntities.Commands;\n\nimport im.dnn.BlockEntities.BlockEntities;\nimport im.dnn.BlockEntities.Constants.Keys;\nimport im.dnn.BlockEntities.Constants.Permissions;\nimport im.dnn.BlockEntities.Models.BlockItem;\nimport im.dnn.BlockEntities.Utils.Helpers;\nimport org.bukkit.command.Comma... | player.getInventory().addItem(blockItem.getItem(amount)); | {} | {
"repository": "dannegm-BlockEntities-7256b11",
"file": "src/main/java/im/dnn/BlockEntities/Commands/BlockCommand.java",
"task_id": "project_cc_java/932"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/im/dnn/BlockEntities/Commands/BlockCommand.java",
"groundtruth_start_lineno": 59,
"repository": "dannegm-BlockEntities-7256b11",
"right_context_start_lineno": 60,
"task_id": "project_cc_java/932"
}
} |
cross_code_eval_java::project_cc_java/913 | 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/jds/edgar/cik/download/service/FilingsDownloadServiceImpl.java
// ... | {
"prefix": "package com.jds.edgar.cik.download.controller;\n\nimport com.jds.edgar.cik.download.model.Stock;\nimport com.jds.edgar.cik.download.repository.FullIndexRepository;\nimport com.jds.edgar.cik.download.repository.StockRepository;\nimport com.jds.edgar.cik.download.service.EdgarSectorEnrichServiceImpl;\nimpo... | edgarSectorEnrichService.exportToCSV(writer); | {} | {
"repository": "danielsobrado-edgar-cik-cusip-ticker-sector-service-745194d",
"file": "src/main/java/com/jds/edgar/cik/download/controller/StockController.java",
"task_id": "project_cc_java/913"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/jds/edgar/cik/download/controller/StockController.java",
"groundtruth_start_lineno": 92,
"repository": "danielsobrado-edgar-cik-cusip-ticker-sector-service-745194d",
"right_context_start_lineno": 93,
"task_id": "project_cc_j... |
cross_code_eval_java::project_cc_java/912 | 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/jds/edgar/cik/download/service/FilingsDownloadServiceImpl.java
// ... | {
"prefix": "package com.jds.edgar.cik.download.controller;\n\nimport com.jds.edgar.cik.download.model.Stock;\nimport com.jds.edgar.cik.download.repository.FullIndexRepository;\nimport com.jds.edgar.cik.download.repository.StockRepository;\nimport com.jds.edgar.cik.download.service.EdgarSectorEnrichServiceImpl;\nimpo... | edgarSectorEnrichService.enrichCik(ticker); | {} | {
"repository": "danielsobrado-edgar-cik-cusip-ticker-sector-service-745194d",
"file": "src/main/java/com/jds/edgar/cik/download/controller/StockController.java",
"task_id": "project_cc_java/912"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/jds/edgar/cik/download/controller/StockController.java",
"groundtruth_start_lineno": 81,
"repository": "danielsobrado-edgar-cik-cusip-ticker-sector-service-745194d",
"right_context_start_lineno": 82,
"task_id": "project_cc_j... |
cross_code_eval_java::project_cc_java/914 | 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/jds/edgar/cik/download/service/FilingsDownloadServiceImpl.java
// ... | {
"prefix": "package com.jds.edgar.cik.download.controller;\n\nimport com.jds.edgar.cik.download.model.Stock;\nimport com.jds.edgar.cik.download.repository.FullIndexRepository;\nimport com.jds.edgar.cik.download.repository.StockRepository;\nimport com.jds.edgar.cik.download.service.EdgarSectorEnrichServiceImpl;\nimpo... | fullIndexDownloadService.processFillings(filingTypesList); | {} | {
"repository": "danielsobrado-edgar-cik-cusip-ticker-sector-service-745194d",
"file": "src/main/java/com/jds/edgar/cik/download/controller/StockController.java",
"task_id": "project_cc_java/914"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/jds/edgar/cik/download/controller/StockController.java",
"groundtruth_start_lineno": 110,
"repository": "danielsobrado-edgar-cik-cusip-ticker-sector-service-745194d",
"right_context_start_lineno": 111,
"task_id": "project_cc... |
cross_code_eval_java::project_cc_java/907 | 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/jds/edgar/cik/download/service/FilingsDownloadServiceImpl.java
// ... | {
"prefix": "package com.jds.edgar.cik.download.controller;\n\nimport com.jds.edgar.cik.download.model.Stock;\nimport com.jds.edgar.cik.download.repository.FullIndexRepository;\nimport com.jds.edgar.cik.download.repository.StockRepository;\nimport com.jds.edgar.cik.download.service.EdgarSectorEnrichServiceImpl;\nimpo... | String> formTypes = fullIndexRepository.findDistinctFormTypes(); | {} | {
"repository": "danielsobrado-edgar-cik-cusip-ticker-sector-service-745194d",
"file": "src/main/java/com/jds/edgar/cik/download/controller/StockController.java",
"task_id": "project_cc_java/907"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/jds/edgar/cik/download/controller/StockController.java",
"groundtruth_start_lineno": 132,
"repository": "danielsobrado-edgar-cik-cusip-ticker-sector-service-745194d",
"right_context_start_lineno": 133,
"task_id": "project_cc... |
cross_code_eval_java::project_cc_java/917 | 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/jds/edgar/cik/download/service/FilingsDownloadServiceImpl.java
// ... | {
"prefix": "package com.jds.edgar.cik.download.controller;\n\nimport com.jds.edgar.cik.download.model.Stock;\nimport com.jds.edgar.cik.download.repository.FullIndexRepository;\nimport com.jds.edgar.cik.download.repository.StockRepository;\nimport com.jds.edgar.cik.download.service.EdgarSectorEnrichServiceImpl;\nimpo... | filingsDownloadService.downloadFullIndex(); | {} | {
"repository": "danielsobrado-edgar-cik-cusip-ticker-sector-service-745194d",
"file": "src/main/java/com/jds/edgar/cik/download/controller/StockController.java",
"task_id": "project_cc_java/917"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/jds/edgar/cik/download/controller/StockController.java",
"groundtruth_start_lineno": 138,
"repository": "danielsobrado-edgar-cik-cusip-ticker-sector-service-745194d",
"right_context_start_lineno": 139,
"task_id": "project_cc... |
cross_code_eval_java::project_cc_java/924 | 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/jds/edgar/cik/download/service/CikExchangeDownloadServiceImpl.java
// }
// pr... | {
"prefix": "package com.jds.edgar.cik.download.service;\n\nimport com.jds.edgar.cik.download.config.EdgarConfig;\nimport com.jds.edgar.cik.download.model.CikCusipMaps;\nimport com.jds.edgar.cik.download.model.FullIndex;\nimport com.jds.edgar.cik.download.repository.CikCusipMapsRepository;\nimport com.jds.edgar.cik.d... | <String> allFormTypes = fullIndexRepository.findDistinctFormTypes(); | {} | {
"repository": "danielsobrado-edgar-cik-cusip-ticker-sector-service-745194d",
"file": "src/main/java/com/jds/edgar/cik/download/service/FilingsDownloadServiceImpl.java",
"task_id": "project_cc_java/924"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/jds/edgar/cik/download/service/FilingsDownloadServiceImpl.java",
"groundtruth_start_lineno": 232,
"repository": "danielsobrado-edgar-cik-cusip-ticker-sector-service-745194d",
"right_context_start_lineno": 233,
"task_id": "pr... |
cross_code_eval_java::project_cc_java/951 | 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:
// fedup-extract/src/main/java/com/tridevmc/fedup/extract/api/apk/IAPKAnalyzer.java
// */
// IAPK... | {
"prefix": "package com.tridevmc.fedup.extract.internal.cli;\n\n\nimport com.google.gson.GsonBuilder;\nimport com.tridevmc.fedup.extract.api.apk.IAPKAnalyzer;\nimport org.tinylog.Logger;\nimport org.tinylog.TaggedLogger;\nimport org.tinylog.configuration.Configuration;\nimport picocli.CommandLine;\nimport picocli.Co... | IAPKAnalyzer.createFor(inputFile); | {} | {
"repository": "darkevilmac-FedUp-d741f7d",
"file": "fedup-extract/src/main/java/com/tridevmc/fedup/extract/internal/cli/CommandExtract.java",
"task_id": "project_cc_java/951"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "fedup-extract/src/main/java/com/tridevmc/fedup/extract/internal/cli/CommandExtract.java",
"groundtruth_start_lineno": 60,
"repository": "darkevilmac-FedUp-d741f7d",
"right_context_start_lineno": 61,
"task_id": "project_cc_java/951"
}
} |
cross_code_eval_java::project_cc_java/923 | 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/jds/edgar/cik/download/service/EdgarSectorEnrichServiceImpl.java
// s... | {
"prefix": "package com.jds.edgar.cik.download.service;\n\nimport com.jds.edgar.cik.download.config.EdgarConfig;\nimport com.jds.edgar.cik.download.model.CikCusipMaps;\nimport com.jds.edgar.cik.download.model.FullIndex;\nimport com.jds.edgar.cik.download.repository.CikCusipMapsRepository;\nimport com.jds.edgar.cik.d... | targetFilings = fullIndexRepository.findByFormType(filingType); | {} | {
"repository": "danielsobrado-edgar-cik-cusip-ticker-sector-service-745194d",
"file": "src/main/java/com/jds/edgar/cik/download/service/FilingsDownloadServiceImpl.java",
"task_id": "project_cc_java/923"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/jds/edgar/cik/download/service/FilingsDownloadServiceImpl.java",
"groundtruth_start_lineno": 171,
"repository": "danielsobrado-edgar-cik-cusip-ticker-sector-service-745194d",
"right_context_start_lineno": 172,
"task_id": "pr... |
cross_code_eval_java::project_cc_java/960 | 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:
// lib_sillyboy/src/main/java/com/example/lib_sillyboy/tinker/ShareReflectUtil.java
// return;... | {
"prefix": "/*\n * Tencent is pleased to support the open source community by making Tinker available.\n *\n * Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved.\n *\n * Licensed under the BSD 3-Clause License (the \"License\"); you may not use this file except in\n * compliance with the Lic... | nativeLibraryDirectories = ShareReflectUtil.findField(dexPathList, "nativeLibraryDirectories"); | {} | {
"repository": "DarrenTianYe-android_dynamic_load_so-7a70027",
"file": "lib_sillyboy/src/main/java/com/example/lib_sillyboy/tinker/TinkerLoadLibrary.java",
"task_id": "project_cc_java/960"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "lib_sillyboy/src/main/java/com/example/lib_sillyboy/tinker/TinkerLoadLibrary.java",
"groundtruth_start_lineno": 124,
"repository": "DarrenTianYe-android_dynamic_load_so-7a70027",
"right_context_start_lineno": 125,
"task_id": "project_cc_java/... |
cross_code_eval_java::project_cc_java/961 | 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:
// lib_sillyboy/src/main/java/com/example/lib_sillyboy/elf/ElfParser.java
// if (vStringTableOff =... | {
"prefix": "/*\n * Tencent is pleased to support the open source community by making Tinker available.\n *\n * Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved.\n *\n * Licensed under the BSD 3-Clause License (the \"License\"); you may not use this file except in\n * compliance with the Lic... | Field systemNativeLibraryDirectories = ShareReflectUtil.findField(dexPathList, "systemNativeLibraryDirectories"); | {} | {
"repository": "DarrenTianYe-android_dynamic_load_so-7a70027",
"file": "lib_sillyboy/src/main/java/com/example/lib_sillyboy/tinker/TinkerLoadLibrary.java",
"task_id": "project_cc_java/961"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "lib_sillyboy/src/main/java/com/example/lib_sillyboy/tinker/TinkerLoadLibrary.java",
"groundtruth_start_lineno": 140,
"repository": "DarrenTianYe-android_dynamic_load_so-7a70027",
"right_context_start_lineno": 141,
"task_id": "project_cc_java/... |
cross_code_eval_java::project_cc_java/958 | 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:
// lib_sillyboy/src/main/java/com/example/lib_sillyboy/tinker/ShareReflectUtil.java
// return;... | {
"prefix": "/*\n * Tencent is pleased to support the open source community by making Tinker available.\n *\n * Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved.\n *\n * Licensed under the BSD 3-Clause License (the \"License\"); you may not use this file except in\n * compliance with the Lic... | Field nativeLibDirField = ShareReflectUtil.findField(dexPathList, "nativeLibraryDirectories"); | {} | {
"repository": "DarrenTianYe-android_dynamic_load_so-7a70027",
"file": "lib_sillyboy/src/main/java/com/example/lib_sillyboy/tinker/TinkerLoadLibrary.java",
"task_id": "project_cc_java/958"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "lib_sillyboy/src/main/java/com/example/lib_sillyboy/tinker/TinkerLoadLibrary.java",
"groundtruth_start_lineno": 105,
"repository": "DarrenTianYe-android_dynamic_load_so-7a70027",
"right_context_start_lineno": 106,
"task_id": "project_cc_java/... |
cross_code_eval_java::project_cc_java/955 | 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:
// lib_sillyboy/src/main/java/com/example/lib_sillyboy/tinker/ShareTinkerLog.java
// final long ti... | {
"prefix": "/*\n * Tencent is pleased to support the open source community by making Tinker available.\n *\n * Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved.\n *\n * Licensed under the BSD 3-Clause License (the \"License\"); you may not use this file except in\n * compliance with the Lic... | = ShareReflectUtil.findField(classLoader, "libPath"); | {} | {
"repository": "DarrenTianYe-android_dynamic_load_so-7a70027",
"file": "lib_sillyboy/src/main/java/com/example/lib_sillyboy/tinker/TinkerLoadLibrary.java",
"task_id": "project_cc_java/955"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "lib_sillyboy/src/main/java/com/example/lib_sillyboy/tinker/TinkerLoadLibrary.java",
"groundtruth_start_lineno": 72,
"repository": "DarrenTianYe-android_dynamic_load_so-7a70027",
"right_context_start_lineno": 73,
"task_id": "project_cc_java/95... |
cross_code_eval_java::project_cc_java/971 | 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:
// lib_sillyboy/src/main/java/com/example/lib_sillyboy/elf/Dynamic32Structure.java
// public Dynamic32... | {
"prefix": "/**\n * Copyright 2015 - 2016 KeepSafe Software, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unles... | = parser.readLong(buffer, baseOffset); | {} | {
"repository": "DarrenTianYe-android_dynamic_load_so-7a70027",
"file": "lib_sillyboy/src/main/java/com/example/lib_sillyboy/elf/Dynamic64Structure.java",
"task_id": "project_cc_java/971"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "lib_sillyboy/src/main/java/com/example/lib_sillyboy/elf/Dynamic64Structure.java",
"groundtruth_start_lineno": 29,
"repository": "DarrenTianYe-android_dynamic_load_so-7a70027",
"right_context_start_lineno": 30,
"task_id": "project_cc_java/971"... |
cross_code_eval_java::project_cc_java/970 | 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:
// lib_sillyboy/src/main/java/com/example/lib_sillyboy/elf/Dynamic64Structure.java
// public Dynamic64... | {
"prefix": "/**\n * Copyright 2015 - 2016 KeepSafe Software, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unles... | val = parser.readWord(buffer, baseOffset + 0x4); | {} | {
"repository": "DarrenTianYe-android_dynamic_load_so-7a70027",
"file": "lib_sillyboy/src/main/java/com/example/lib_sillyboy/elf/Dynamic32Structure.java",
"task_id": "project_cc_java/970"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "lib_sillyboy/src/main/java/com/example/lib_sillyboy/elf/Dynamic32Structure.java",
"groundtruth_start_lineno": 29,
"repository": "DarrenTianYe-android_dynamic_load_so-7a70027",
"right_context_start_lineno": 30,
"task_id": "project_cc_java/970"... |
cross_code_eval_java::project_cc_java/974 | 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:
// lib_sillyboy/src/main/java/com/example/lib_sillyboy/elf/Elf64Header.java
// phnum = parser.read... | {
"prefix": "/**\n * Copyright 2015 - 2016 KeepSafe Software, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unles... | = parser.readWord(buffer, 0x1C); | {} | {
"repository": "DarrenTianYe-android_dynamic_load_so-7a70027",
"file": "lib_sillyboy/src/main/java/com/example/lib_sillyboy/elf/Elf32Header.java",
"task_id": "project_cc_java/974"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "lib_sillyboy/src/main/java/com/example/lib_sillyboy/elf/Elf32Header.java",
"groundtruth_start_lineno": 34,
"repository": "DarrenTianYe-android_dynamic_load_so-7a70027",
"right_context_start_lineno": 35,
"task_id": "project_cc_java/974"
}
} |
cross_code_eval_java::project_cc_java/967 | 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:
// lib_sillyboy/src/main/java/com/example/lib_sillyboy/elf/ElfParser.java
// buffer.order(header.b... | {
"prefix": "/*\n * Tencent is pleased to support the open source community by making Tinker available.\n *\n * Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved.\n *\n * Licensed under the BSD 3-Clause License (the \"License\"); you may not use this file except in\n * compliance with the Lic... | final Method makeElements = ShareReflectUtil.findMethod(dexPathList, "makePathElements", List.class); | {} | {
"repository": "DarrenTianYe-android_dynamic_load_so-7a70027",
"file": "lib_sillyboy/src/main/java/com/example/lib_sillyboy/tinker/TinkerLoadLibrary.java",
"task_id": "project_cc_java/967"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "lib_sillyboy/src/main/java/com/example/lib_sillyboy/tinker/TinkerLoadLibrary.java",
"groundtruth_start_lineno": 192,
"repository": "DarrenTianYe-android_dynamic_load_so-7a70027",
"right_context_start_lineno": 193,
"task_id": "project_cc_java/... |
cross_code_eval_java::project_cc_java/956 | 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:
// lib_sillyboy/src/main/java/com/example/lib_sillyboy/elf/ElfParser.java
// short c;
// w... | {
"prefix": "/*\n * Tencent is pleased to support the open source community by making Tinker available.\n *\n * Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved.\n *\n * Licensed under the BSD 3-Clause License (the \"License\"); you may not use this file except in\n * compliance with the Lic... | libraryPathElementsFiled = ShareReflectUtil.findField(classLoader, "libraryPathElements"); | {} | {
"repository": "DarrenTianYe-android_dynamic_load_so-7a70027",
"file": "lib_sillyboy/src/main/java/com/example/lib_sillyboy/tinker/TinkerLoadLibrary.java",
"task_id": "project_cc_java/956"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "lib_sillyboy/src/main/java/com/example/lib_sillyboy/tinker/TinkerLoadLibrary.java",
"groundtruth_start_lineno": 85,
"repository": "DarrenTianYe-android_dynamic_load_so-7a70027",
"right_context_start_lineno": 86,
"task_id": "project_cc_java/95... |
cross_code_eval_java::project_cc_java/954 | 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:
// lib_sillyboy/src/main/java/com/example/lib_sillyboy/tinker/ShareReflectUtil.java
// *
// * @p... | {
"prefix": "/*\n * Tencent is pleased to support the open source community by making Tinker available.\n *\n * Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved.\n *\n * Licensed under the BSD 3-Clause License (the \"License\"); you may not use this file except in\n * compliance with the Lic... | ShareTinkerLog.e(TAG, "installNativeLibraryPath, folder %s is illegal", folder); | {} | {
"repository": "DarrenTianYe-android_dynamic_load_so-7a70027",
"file": "lib_sillyboy/src/main/java/com/example/lib_sillyboy/tinker/TinkerLoadLibrary.java",
"task_id": "project_cc_java/954"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "lib_sillyboy/src/main/java/com/example/lib_sillyboy/tinker/TinkerLoadLibrary.java",
"groundtruth_start_lineno": 36,
"repository": "DarrenTianYe-android_dynamic_load_so-7a70027",
"right_context_start_lineno": 37,
"task_id": "project_cc_java/95... |
cross_code_eval_java::project_cc_java/975 | 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:
// lib_sillyboy/src/main/java/com/example/lib_sillyboy/elf/Elf64Header.java
// phnum = parser.read... | {
"prefix": "/**\n * Copyright 2015 - 2016 KeepSafe Software, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unles... | parser.readWord(buffer, 0x20); | {} | {
"repository": "DarrenTianYe-android_dynamic_load_so-7a70027",
"file": "lib_sillyboy/src/main/java/com/example/lib_sillyboy/elf/Elf32Header.java",
"task_id": "project_cc_java/975"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "lib_sillyboy/src/main/java/com/example/lib_sillyboy/elf/Elf32Header.java",
"groundtruth_start_lineno": 35,
"repository": "DarrenTianYe-android_dynamic_load_so-7a70027",
"right_context_start_lineno": 36,
"task_id": "project_cc_java/975"
}
} |
cross_code_eval_java::project_cc_java/957 | 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:
// lib_sillyboy/src/main/java/com/example/lib_sillyboy/tinker/ShareTinkerLog.java
// tinkerLog... | {
"prefix": "/*\n * Tencent is pleased to support the open source community by making Tinker available.\n *\n * Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved.\n *\n * Licensed under the BSD 3-Clause License (the \"License\"); you may not use this file except in\n * compliance with the Lic... | pathListField = ShareReflectUtil.findField(classLoader, "pathList"); | {} | {
"repository": "DarrenTianYe-android_dynamic_load_so-7a70027",
"file": "lib_sillyboy/src/main/java/com/example/lib_sillyboy/tinker/TinkerLoadLibrary.java",
"task_id": "project_cc_java/957"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "lib_sillyboy/src/main/java/com/example/lib_sillyboy/tinker/TinkerLoadLibrary.java",
"groundtruth_start_lineno": 102,
"repository": "DarrenTianYe-android_dynamic_load_so-7a70027",
"right_context_start_lineno": 103,
"task_id": "project_cc_java/... |
cross_code_eval_java::project_cc_java/962 | 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:
// lib_sillyboy/src/main/java/com/example/lib_sillyboy/elf/ElfParser.java
// buffer.order(header.b... | {
"prefix": "/*\n * Tencent is pleased to support the open source community by making Tinker available.\n *\n * Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved.\n *\n * Licensed under the BSD 3-Clause License (the \"License\"); you may not use this file except in\n * compliance with the Lic... | makeElements = ShareReflectUtil.findMethod(dexPathList,
"makePathElements", List.class, File.class, List.class); | {} | {
"repository": "DarrenTianYe-android_dynamic_load_so-7a70027",
"file": "lib_sillyboy/src/main/java/com/example/lib_sillyboy/tinker/TinkerLoadLibrary.java",
"task_id": "project_cc_java/962"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "lib_sillyboy/src/main/java/com/example/lib_sillyboy/tinker/TinkerLoadLibrary.java",
"groundtruth_start_lineno": 150,
"repository": "DarrenTianYe-android_dynamic_load_so-7a70027",
"right_context_start_lineno": 152,
"task_id": "project_cc_java/... |
cross_code_eval_java::project_cc_java/976 | 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:
// lib_sillyboy/src/main/java/com/example/lib_sillyboy/elf/Elf64Header.java
// phnum = parser.read... | {
"prefix": "/**\n * Copyright 2015 - 2016 KeepSafe Software, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unles... | = parser.readHalf(buffer, 0x2A); | {} | {
"repository": "DarrenTianYe-android_dynamic_load_so-7a70027",
"file": "lib_sillyboy/src/main/java/com/example/lib_sillyboy/elf/Elf32Header.java",
"task_id": "project_cc_java/976"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "lib_sillyboy/src/main/java/com/example/lib_sillyboy/elf/Elf32Header.java",
"groundtruth_start_lineno": 36,
"repository": "DarrenTianYe-android_dynamic_load_so-7a70027",
"right_context_start_lineno": 37,
"task_id": "project_cc_java/976"
}
} |
cross_code_eval_java::project_cc_java/978 | 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:
// lib_sillyboy/src/main/java/com/example/lib_sillyboy/elf/Elf64Header.java
// phnum = parser.read... | {
"prefix": "/**\n * Copyright 2015 - 2016 KeepSafe Software, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unles... | = parser.readHalf(buffer, 0x2E); | {} | {
"repository": "DarrenTianYe-android_dynamic_load_so-7a70027",
"file": "lib_sillyboy/src/main/java/com/example/lib_sillyboy/elf/Elf32Header.java",
"task_id": "project_cc_java/978"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "lib_sillyboy/src/main/java/com/example/lib_sillyboy/elf/Elf32Header.java",
"groundtruth_start_lineno": 38,
"repository": "DarrenTianYe-android_dynamic_load_so-7a70027",
"right_context_start_lineno": 39,
"task_id": "project_cc_java/978"
}
} |
cross_code_eval_java::project_cc_java/986 | 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:
// lib_sillyboy/src/main/java/com/example/lib_sillyboy/elf/Elf32Header.java
// phnum = parser.read... | {
"prefix": "/**\n * Copyright 2015 - 2016 KeepSafe Software, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unles... | parser.readLong(buffer, 0x20); | {} | {
"repository": "DarrenTianYe-android_dynamic_load_so-7a70027",
"file": "lib_sillyboy/src/main/java/com/example/lib_sillyboy/elf/Elf64Header.java",
"task_id": "project_cc_java/986"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "lib_sillyboy/src/main/java/com/example/lib_sillyboy/elf/Elf64Header.java",
"groundtruth_start_lineno": 33,
"repository": "DarrenTianYe-android_dynamic_load_so-7a70027",
"right_context_start_lineno": 34,
"task_id": "project_cc_java/986"
}
} |
cross_code_eval_java::project_cc_java/984 | 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:
// lib_sillyboy/src/main/java/com/example/lib_sillyboy/elf/Program32Header.java
// public Program32Hea... | {
"prefix": "/**\n * Copyright 2015 - 2016 KeepSafe Software, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unles... | parser.readLong(buffer, baseOffset + 0x28); | {} | {
"repository": "DarrenTianYe-android_dynamic_load_so-7a70027",
"file": "lib_sillyboy/src/main/java/com/example/lib_sillyboy/elf/Program64Header.java",
"task_id": "project_cc_java/984"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "lib_sillyboy/src/main/java/com/example/lib_sillyboy/elf/Program64Header.java",
"groundtruth_start_lineno": 32,
"repository": "DarrenTianYe-android_dynamic_load_so-7a70027",
"right_context_start_lineno": 33,
"task_id": "project_cc_java/984"
... |
cross_code_eval_java::project_cc_java/988 | 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:
// lib_sillyboy/src/main/java/com/example/lib_sillyboy/elf/Elf32Header.java
// phnum = parser.read... | {
"prefix": "/**\n * Copyright 2015 - 2016 KeepSafe Software, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unles... | = parser.readHalf(buffer, 0x36); | {} | {
"repository": "DarrenTianYe-android_dynamic_load_so-7a70027",
"file": "lib_sillyboy/src/main/java/com/example/lib_sillyboy/elf/Elf64Header.java",
"task_id": "project_cc_java/988"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "lib_sillyboy/src/main/java/com/example/lib_sillyboy/elf/Elf64Header.java",
"groundtruth_start_lineno": 35,
"repository": "DarrenTianYe-android_dynamic_load_so-7a70027",
"right_context_start_lineno": 36,
"task_id": "project_cc_java/988"
}
} |
cross_code_eval_java::project_cc_java/995 | 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:
// lib_sillyboy/src/main/java/com/example/lib_sillyboy/elf/Program64Header.java
// public Program64Hea... | {
"prefix": "/**\n * Copyright 2015 - 2016 KeepSafe Software, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unles... | parser.readWord(buffer, baseOffset + 0x8); | {} | {
"repository": "DarrenTianYe-android_dynamic_load_so-7a70027",
"file": "lib_sillyboy/src/main/java/com/example/lib_sillyboy/elf/Program32Header.java",
"task_id": "project_cc_java/995"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "lib_sillyboy/src/main/java/com/example/lib_sillyboy/elf/Program32Header.java",
"groundtruth_start_lineno": 31,
"repository": "DarrenTianYe-android_dynamic_load_so-7a70027",
"right_context_start_lineno": 32,
"task_id": "project_cc_java/995"
... |
cross_code_eval_java::project_cc_java/982 | 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:
// lib_sillyboy/src/main/java/com/example/lib_sillyboy/elf/Program32Header.java
// public Program32Hea... | {
"prefix": "/**\n * Copyright 2015 - 2016 KeepSafe Software, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unles... | offset = parser.readLong(buffer, baseOffset + 0x8); | {} | {
"repository": "DarrenTianYe-android_dynamic_load_so-7a70027",
"file": "lib_sillyboy/src/main/java/com/example/lib_sillyboy/elf/Program64Header.java",
"task_id": "project_cc_java/982"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "lib_sillyboy/src/main/java/com/example/lib_sillyboy/elf/Program64Header.java",
"groundtruth_start_lineno": 30,
"repository": "DarrenTianYe-android_dynamic_load_so-7a70027",
"right_context_start_lineno": 31,
"task_id": "project_cc_java/982"
... |
cross_code_eval_java::project_cc_java/996 | 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:
// lib_sillyboy/src/main/java/com/example/lib_sillyboy/elf/Program64Header.java
// public Program64Hea... | {
"prefix": "/**\n * Copyright 2015 - 2016 KeepSafe Software, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unles... | = parser.readWord(buffer, baseOffset + 0x14); | {} | {
"repository": "DarrenTianYe-android_dynamic_load_so-7a70027",
"file": "lib_sillyboy/src/main/java/com/example/lib_sillyboy/elf/Program32Header.java",
"task_id": "project_cc_java/996"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "lib_sillyboy/src/main/java/com/example/lib_sillyboy/elf/Program32Header.java",
"groundtruth_start_lineno": 32,
"repository": "DarrenTianYe-android_dynamic_load_so-7a70027",
"right_context_start_lineno": 33,
"task_id": "project_cc_java/996"
... |
cross_code_eval_java::project_cc_java/994 | 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:
// lib_sillyboy/src/main/java/com/example/lib_sillyboy/elf/Program64Header.java
// public Program64Hea... | {
"prefix": "/**\n * Copyright 2015 - 2016 KeepSafe Software, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unles... | offset = parser.readWord(buffer, baseOffset + 0x4); | {} | {
"repository": "DarrenTianYe-android_dynamic_load_so-7a70027",
"file": "lib_sillyboy/src/main/java/com/example/lib_sillyboy/elf/Program32Header.java",
"task_id": "project_cc_java/994"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "lib_sillyboy/src/main/java/com/example/lib_sillyboy/elf/Program32Header.java",
"groundtruth_start_lineno": 30,
"repository": "DarrenTianYe-android_dynamic_load_so-7a70027",
"right_context_start_lineno": 31,
"task_id": "project_cc_java/994"
... |
cross_code_eval_java::project_cc_java/1006 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// sdk/src/main/java/co/decodable/sdk/pipeline/testing/TestEnvironment.java
// public String name() {
... | {
"prefix": "/*\n * SPDX-License-Identifier: Apache-2.0\n *\n * Copyright Decodable, Inc.\n *\n * Licensed under the Apache Software License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0\n */\npackage co.decodable.sdk.pipeline.internal.config;\n\nimport co.decodable.sdk.pipeline.StartupMode;\ni... | = StartupMode.fromString(properties.get("scan.startup.mode")); | {} | {
"repository": "decodableco-decodable-pipeline-sdk-af78b8a",
"file": "sdk/src/main/java/co/decodable/sdk/pipeline/internal/config/StreamConfig.java",
"task_id": "project_cc_java/1006"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "sdk/src/main/java/co/decodable/sdk/pipeline/internal/config/StreamConfig.java",
"groundtruth_start_lineno": 36,
"repository": "decodableco-decodable-pipeline-sdk-af78b8a",
"right_context_start_lineno": 37,
"task_id": "project_cc_java/1006"
... |
cross_code_eval_java::project_cc_java/1020 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// sdk/src/test/java/co/decodable/sdk/pipeline/internal/config/StreamConfigMappingTest.java
// ... | {
"prefix": "/*\n * SPDX-License-Identifier: Apache-2.0\n *\n * Copyright Decodable, Inc.\n *\n * Licensed under the Apache Software License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0\n */\npackage co.decodable.sdk.pipeline.internal;\n\nimport co.decodable.sdk.pipeline.DecodableStreamSink;\n... | (streamConfig.transactionalIdPrefix())
.setKafkaProducerConfig(toProperties(streamConfig.kafkaProperties()))
.build(); | {} | {
"repository": "decodableco-decodable-pipeline-sdk-af78b8a",
"file": "sdk/src/main/java/co/decodable/sdk/pipeline/internal/DecodableStreamSinkBuilderImpl.java",
"task_id": "project_cc_java/1020"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "sdk/src/main/java/co/decodable/sdk/pipeline/internal/DecodableStreamSinkBuilderImpl.java",
"groundtruth_start_lineno": 71,
"repository": "decodableco-decodable-pipeline-sdk-af78b8a",
"right_context_start_lineno": 74,
"task_id": "project_cc_ja... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.