Dataset Viewer
Auto-converted to Parquet Duplicate
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/102
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // jagame/Arc.java // private int width; // private int height; // private int startAngle; // ...
{ "prefix": "/* GraphicsPanel class\n * @description: Graphics canvas for main windows.\n * @authors: Amun Ahmad & Jethro Lin\n * @version: 6/16/2023\n */\n\npackage jagame;\n\nimport java.awt.Color;\nimport java.awt.Graphics;\nimport java.awt.image.BufferedImage;\nimport java.util.Queue;\nimport java.util.LinkedList...
int startAngle = ((Arc) object).getStartAngle();
{}
{ "repository": "AADevelops-JaGame-fc2ae51", "file": "jagame/GraphicsPanel.java", "task_id": "project_cc_java/102" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "jagame/GraphicsPanel.java", "groundtruth_start_lineno": 48, "repository": "AADevelops-JaGame-fc2ae51", "right_context_start_lineno": 49, "task_id": "project_cc_java/102" } }
cross_code_eval_java::project_cc_java/98
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // jagame/Arc.java // private int width; // private int height; // private int startAngle; // ...
{ "prefix": "/* GraphicsPanel class\n * @description: Graphics canvas for main windows.\n * @authors: Amun Ahmad & Jethro Lin\n * @version: 6/16/2023\n */\n\npackage jagame;\n\nimport java.awt.Color;\nimport java.awt.Graphics;\nimport java.awt.image.BufferedImage;\nimport java.util.Queue;\nimport java.util.LinkedList...
((Line) object).getColor());
{}
{ "repository": "AADevelops-JaGame-fc2ae51", "file": "jagame/GraphicsPanel.java", "task_id": "project_cc_java/98" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "jagame/GraphicsPanel.java", "groundtruth_start_lineno": 57, "repository": "AADevelops-JaGame-fc2ae51", "right_context_start_lineno": 58, "task_id": "project_cc_java/98" } }
cross_code_eval_java::project_cc_java/103
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // jagame/Arc.java // private int width; // private int height; // private int startAngle; // ...
{ "prefix": "/* GraphicsPanel class\n * @description: Graphics canvas for main windows.\n * @authors: Amun Ahmad & Jethro Lin\n * @version: 6/16/2023\n */\n\npackage jagame;\n\nimport java.awt.Color;\nimport java.awt.Graphics;\nimport java.awt.image.BufferedImage;\nimport java.util.Queue;\nimport java.util.LinkedList...
(Arc) object).getStopAngle();
{}
{ "repository": "AADevelops-JaGame-fc2ae51", "file": "jagame/GraphicsPanel.java", "task_id": "project_cc_java/103" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "jagame/GraphicsPanel.java", "groundtruth_start_lineno": 49, "repository": "AADevelops-JaGame-fc2ae51", "right_context_start_lineno": 50, "task_id": "project_cc_java/103" } }
cross_code_eval_java::project_cc_java/109
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/io/github/aaronai/grpc/server/GreetingServer.java // import org.slf4j.LoggerFactory; // i...
{ "prefix": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright ownership.\n * The ASF licenses this file to You under the Apache License, Version 2.0\n * (the ...
server.blockUntilShutdown();
{}
{ "repository": "aaron-ai-rocketmq-opentelemetry-f943317", "file": "src/main/java/io/github/aaronai/ProcessB.java", "task_id": "project_cc_java/109" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/io/github/aaronai/ProcessB.java", "groundtruth_start_lineno": 27, "repository": "aaron-ai-rocketmq-opentelemetry-f943317", "right_context_start_lineno": 28, "task_id": "project_cc_java/109" } }
cross_code_eval_java::project_cc_java/111
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/io/github/aaronai/grpc/server/GreetingService.java // logger.info("Received reque...
{ "prefix": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright ownership.\n * The ASF licenses this file to You under the Apache License, Version 2.0\n * (the ...
HttpClientUtil.sendGetRequest();
{}
{ "repository": "aaron-ai-rocketmq-opentelemetry-f943317", "file": "src/main/java/io/github/aaronai/ProcessC.java", "task_id": "project_cc_java/111" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/io/github/aaronai/ProcessC.java", "groundtruth_start_lineno": 37, "repository": "aaron-ai-rocketmq-opentelemetry-f943317", "right_context_start_lineno": 38, "task_id": "project_cc_java/111" } }
cross_code_eval_java::project_cc_java/110
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/io/github/aaronai/ProcessC.java // public static void main(String[] args) throws Clie...
{ "prefix": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright ownership.\n * The ASF licenses this file to You under the Apache License, Version 2.0\n * (the ...
GreetingClient.start();
{}
{ "repository": "aaron-ai-rocketmq-opentelemetry-f943317", "file": "src/main/java/io/github/aaronai/ProcessA.java", "task_id": "project_cc_java/110" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/io/github/aaronai/ProcessA.java", "groundtruth_start_lineno": 32, "repository": "aaron-ai-rocketmq-opentelemetry-f943317", "right_context_start_lineno": 33, "task_id": "project_cc_java/110" } }
cross_code_eval_java::project_cc_java/112
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/io/github/aaronai/grpc/server/GreetingService.java // logger.info("Received reque...
{ "prefix": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright ownership.\n * The ASF licenses this file to You under the Apache License, Version 2.0\n * (the ...
RocketMqClients.CreatePushConsumer(messageView -> {
{}
{ "repository": "aaron-ai-rocketmq-opentelemetry-f943317", "file": "src/main/java/io/github/aaronai/ProcessC.java", "task_id": "project_cc_java/112" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/io/github/aaronai/ProcessC.java", "groundtruth_start_lineno": 35, "repository": "aaron-ai-rocketmq-opentelemetry-f943317", "right_context_start_lineno": 36, "task_id": "project_cc_java/112" } }
cross_code_eval_java::project_cc_java/113
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/io/github/aaronai/ProcessC.java // public static void main(String[] args) throws Clie...
{ "prefix": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright ownership.\n * The ASF licenses this file to You under the Apache License, Version 2.0\n * (the ...
Producer producer = RocketMqClients.CreateProducer();
{}
{ "repository": "aaron-ai-rocketmq-opentelemetry-f943317", "file": "src/main/java/io/github/aaronai/grpc/server/GreetingService.java", "task_id": "project_cc_java/113" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/io/github/aaronai/grpc/server/GreetingService.java", "groundtruth_start_lineno": 36, "repository": "aaron-ai-rocketmq-opentelemetry-f943317", "right_context_start_lineno": 37, "task_id": "project_cc_java/113" } }
cross_code_eval_java::project_cc_java/122
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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/es/achousa/clients/OpenAIApiClient.java // Response response = client.newCall(req...
{ "prefix": "/**\n * This class provides a service to communicate with the OpenAI API\n * and generate text based on user input. It uses a HashMap to store\n * the context of each user conversation and a whitelist to restrict\n * access to the bot. It also provides a method to reset the context\n * of a user.\n */\n\...
systemMessage.setContent(systemprompt);
{}
{ "repository": "achousa-telegram-gpt-bot-ff31db1", "file": "src/main/java/es/achousa/services/GptService.java", "task_id": "project_cc_java/122" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/es/achousa/services/GptService.java", "groundtruth_start_lineno": 133, "repository": "achousa-telegram-gpt-bot-ff31db1", "right_context_start_lineno": 134, "task_id": "project_cc_java/122" } }
cross_code_eval_java::project_cc_java/114
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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/es/achousa/services/GptService.java // } // public String resetUserContext(Update...
{ "prefix": "/**\n * This class represents a service that handles communication with a Telegram Bot. It receives messages from the bot\n * and processes them accordingly, either executing commands or generating responses using GPT technology.\n */\n\npackage es.achousa.services;\n\nimport com.pengrad.telegrambot.Tele...
"Contador de tokens: %d",gptService.getNumTokens());
{}
{ "repository": "achousa-telegram-gpt-bot-ff31db1", "file": "src/main/java/es/achousa/services/TelegramBotService.java", "task_id": "project_cc_java/114" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/es/achousa/services/TelegramBotService.java", "groundtruth_start_lineno": 158, "repository": "achousa-telegram-gpt-bot-ff31db1", "right_context_start_lineno": 159, "task_id": "project_cc_java/114" } }
cross_code_eval_java::project_cc_java/117
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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/es/achousa/clients/OpenAIApiClient.java // Response response = client.newCall(req...
{ "prefix": "/**\n * This class provides a service to communicate with the OpenAI API\n * and generate text based on user input. It uses a HashMap to store\n * the context of each user conversation and a whitelist to restrict\n * access to the bot. It also provides a method to reset the context\n * of a user.\n */\n\...
chatRequest.setMaxTokens(maxtokens);
{}
{ "repository": "achousa-telegram-gpt-bot-ff31db1", "file": "src/main/java/es/achousa/services/GptService.java", "task_id": "project_cc_java/117" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/es/achousa/services/GptService.java", "groundtruth_start_lineno": 125, "repository": "achousa-telegram-gpt-bot-ff31db1", "right_context_start_lineno": 126, "task_id": "project_cc_java/117" } }
End of preview. Expand in Data Studio

No dataset card yet

Downloads last month
35