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"
}
} |
cross_code_eval_java::project_cc_java/115 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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.setModel(model); | {} | {
"repository": "achousa-telegram-gpt-bot-ff31db1",
"file": "src/main/java/es/achousa/services/GptService.java",
"task_id": "project_cc_java/115"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/es/achousa/services/GptService.java",
"groundtruth_start_lineno": 123,
"repository": "achousa-telegram-gpt-bot-ff31db1",
"right_context_start_lineno": 124,
"task_id": "project_cc_java/115"
}
} |
cross_code_eval_java::project_cc_java/121 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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.setRole("system"); | {} | {
"repository": "achousa-telegram-gpt-bot-ff31db1",
"file": "src/main/java/es/achousa/services/GptService.java",
"task_id": "project_cc_java/121"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/es/achousa/services/GptService.java",
"groundtruth_start_lineno": 132,
"repository": "achousa-telegram-gpt-bot-ff31db1",
"right_context_start_lineno": 133,
"task_id": "project_cc_java/121"
}
} |
cross_code_eval_java::project_cc_java/131 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/model/request/ChatRequest.java
// private Map<String, Object> additionalPr... | {
"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\... | userMessage.setContent(this.presentation); | {} | {
"repository": "achousa-telegram-gpt-bot-ff31db1",
"file": "src/main/java/es/achousa/services/GptService.java",
"task_id": "project_cc_java/131"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/es/achousa/services/GptService.java",
"groundtruth_start_lineno": 285,
"repository": "achousa-telegram-gpt-bot-ff31db1",
"right_context_start_lineno": 286,
"task_id": "project_cc_java/131"
}
} |
cross_code_eval_java::project_cc_java/126 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/model/request/ChatRequest.java
// private Map<String, Object> additionalPr... | {
"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\... | exampleMessage.setRole(role.toLowerCase()); | {} | {
"repository": "achousa-telegram-gpt-bot-ff31db1",
"file": "src/main/java/es/achousa/services/GptService.java",
"task_id": "project_cc_java/126"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/es/achousa/services/GptService.java",
"groundtruth_start_lineno": 206,
"repository": "achousa-telegram-gpt-bot-ff31db1",
"right_context_start_lineno": 207,
"task_id": "project_cc_java/126"
}
} |
cross_code_eval_java::project_cc_java/0 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// app/src/main/java/com/linsheng/FATJS/utils/TimeUtil.java
// return 2;
// }
// ... | {
"prefix": "package com.linsheng.FATJS.rpa.TaskFactory;\n\nimport com.linsheng.FATJS.AccUtils;\n\nimport java.util.Date;\nimport java.util.regex.Matcher;\nimport java.util.regex.Pattern;\n\n\npublic class TaskBasic {\n private static final String TAG = \"FATJS\";\n\n public TaskBasic(String NAME) {\n th... | AccUtils.printLogMsg("提取到的第一个整数是:" + i); | {} | {
"repository": "1754048656-FATJS-4b1e065",
"file": "app/src/main/java/com/linsheng/FATJS/rpa/TaskFactory/TaskBasic.java",
"task_id": "project_cc_java/0"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "app/src/main/java/com/linsheng/FATJS/rpa/TaskFactory/TaskBasic.java",
"groundtruth_start_lineno": 38,
"repository": "1754048656-FATJS-4b1e065",
"right_context_start_lineno": 39,
"task_id": "project_cc_java/0"
}
} |
cross_code_eval_java::project_cc_java/30 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// app/src/main/java/com/linsheng/FATJS/rpa/dyService/DyTaskService.java
// // AccUtils.timeSleep(w... | {
"prefix": "package com.linsheng.FATJS.rpa.dingdingService;\nimport android.graphics.Rect;\nimport android.util.Log;\nimport android.view.accessibility.AccessibilityNodeInfo;\n\nimport androidx.annotation.RequiresApi;\n\nimport com.linsheng.FATJS.AccUtils;\nimport com.linsheng.FATJS.bean.Variable;\nimport com.linshe... | AccUtils.printLogMsg("点击工作台"); | {} | {
"repository": "1754048656-FATJS-4b1e065",
"file": "app/src/main/java/com/linsheng/FATJS/rpa/dingdingService/DingDingService.java",
"task_id": "project_cc_java/30"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "app/src/main/java/com/linsheng/FATJS/rpa/dingdingService/DingDingService.java",
"groundtruth_start_lineno": 59,
"repository": "1754048656-FATJS-4b1e065",
"right_context_start_lineno": 60,
"task_id": "project_cc_java/30"
}
} |
cross_code_eval_java::project_cc_java/33 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// app/src/main/java/com/linsheng/FATJS/rpa/dyService/DyTaskService.java
// // AccUtils.timeSleep(w... | {
"prefix": "package com.linsheng.FATJS.rpa.dingdingService;\nimport android.graphics.Rect;\nimport android.util.Log;\nimport android.view.accessibility.AccessibilityNodeInfo;\n\nimport androidx.annotation.RequiresApi;\n\nimport com.linsheng.FATJS.AccUtils;\nimport com.linsheng.FATJS.bean.Variable;\nimport com.linshe... | AccUtils.printLogMsg("点击考勤打开"); | {} | {
"repository": "1754048656-FATJS-4b1e065",
"file": "app/src/main/java/com/linsheng/FATJS/rpa/dingdingService/DingDingService.java",
"task_id": "project_cc_java/33"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "app/src/main/java/com/linsheng/FATJS/rpa/dingdingService/DingDingService.java",
"groundtruth_start_lineno": 63,
"repository": "1754048656-FATJS-4b1e065",
"right_context_start_lineno": 64,
"task_id": "project_cc_java/33"
}
} |
cross_code_eval_java::project_cc_java/19 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// app/src/main/java/com/linsheng/FATJS/rpa/dyService/DyTaskService.java
// }
// @RequiresApi(24)
... | {
"prefix": "package com.linsheng.FATJS.rpa.dingdingService;\nimport android.graphics.Rect;\nimport android.util.Log;\nimport android.view.accessibility.AccessibilityNodeInfo;\n\nimport androidx.annotation.RequiresApi;\n\nimport com.linsheng.FATJS.AccUtils;\nimport com.linsheng.FATJS.bean.Variable;\nimport com.linshe... | AccUtils.printLogMsg("打开钉钉"); | {} | {
"repository": "1754048656-FATJS-4b1e065",
"file": "app/src/main/java/com/linsheng/FATJS/rpa/dingdingService/DingDingService.java",
"task_id": "project_cc_java/19"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "app/src/main/java/com/linsheng/FATJS/rpa/dingdingService/DingDingService.java",
"groundtruth_start_lineno": 41,
"repository": "1754048656-FATJS-4b1e065",
"right_context_start_lineno": 42,
"task_id": "project_cc_java/19"
}
} |
cross_code_eval_java::project_cc_java/42 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// app/src/main/java/com/linsheng/FATJS/rpa/dyService/DyTaskService.java
// // AccessibilityNodeInf... | {
"prefix": "package com.linsheng.FATJS.rpa.dingdingService;\nimport android.graphics.Rect;\nimport android.util.Log;\nimport android.view.accessibility.AccessibilityNodeInfo;\n\nimport androidx.annotation.RequiresApi;\n\nimport com.linsheng.FATJS.AccUtils;\nimport com.linsheng.FATJS.bean.Variable;\nimport com.linshe... | AccUtils.printLogMsg("点击打卡"); | {} | {
"repository": "1754048656-FATJS-4b1e065",
"file": "app/src/main/java/com/linsheng/FATJS/rpa/dingdingService/DingDingService.java",
"task_id": "project_cc_java/42"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "app/src/main/java/com/linsheng/FATJS/rpa/dingdingService/DingDingService.java",
"groundtruth_start_lineno": 76,
"repository": "1754048656-FATJS-4b1e065",
"right_context_start_lineno": 77,
"task_id": "project_cc_java/42"
}
} |
cross_code_eval_java::project_cc_java/39 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// app/src/main/java/com/linsheng/FATJS/rpa/dyService/DyTaskService.java
// // AccessibilityNodeInf... | {
"prefix": "package com.linsheng.FATJS.rpa.dingdingService;\nimport android.graphics.Rect;\nimport android.util.Log;\nimport android.view.accessibility.AccessibilityNodeInfo;\n\nimport androidx.annotation.RequiresApi;\n\nimport com.linsheng.FATJS.AccUtils;\nimport com.linsheng.FATJS.bean.Variable;\nimport com.linshe... | AccUtils.printLogMsg("点击暂时不"); | {} | {
"repository": "1754048656-FATJS-4b1e065",
"file": "app/src/main/java/com/linsheng/FATJS/rpa/dingdingService/DingDingService.java",
"task_id": "project_cc_java/39"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "app/src/main/java/com/linsheng/FATJS/rpa/dingdingService/DingDingService.java",
"groundtruth_start_lineno": 71,
"repository": "1754048656-FATJS-4b1e065",
"right_context_start_lineno": 72,
"task_id": "project_cc_java/39"
}
} |
cross_code_eval_java::project_cc_java/13 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// app/src/main/java/com/linsheng/FATJS/rpa/dingdingService/DingDingService.java
// AccUtils.click... | {
"prefix": "package com.linsheng.FATJS.rpa.dyService;\nimport android.graphics.Rect;\nimport android.util.Log;\nimport android.view.accessibility.AccessibilityNodeInfo;\n\nimport androidx.annotation.RequiresApi;\n\nimport com.linsheng.FATJS.AccUtils;\nimport com.linsheng.FATJS.bean.Variable;\nimport com.linsheng.FAT... | AccUtils.printLogMsg("标题 => " + videoDesc); | {} | {
"repository": "1754048656-FATJS-4b1e065",
"file": "app/src/main/java/com/linsheng/FATJS/rpa/dyService/DyTaskService.java",
"task_id": "project_cc_java/13"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "app/src/main/java/com/linsheng/FATJS/rpa/dyService/DyTaskService.java",
"groundtruth_start_lineno": 65,
"repository": "1754048656-FATJS-4b1e065",
"right_context_start_lineno": 66,
"task_id": "project_cc_java/13"
}
} |
cross_code_eval_java::project_cc_java/21 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// app/src/main/java/com/linsheng/FATJS/rpa/dyService/DyTaskService.java
// }
// @RequiresApi(24)
... | {
"prefix": "package com.linsheng.FATJS.rpa.dingdingService;\nimport android.graphics.Rect;\nimport android.util.Log;\nimport android.view.accessibility.AccessibilityNodeInfo;\n\nimport androidx.annotation.RequiresApi;\n\nimport com.linsheng.FATJS.AccUtils;\nimport com.linsheng.FATJS.bean.Variable;\nimport com.linshe... | AccUtils.printLogMsg("返回到初始状态"); | {} | {
"repository": "1754048656-FATJS-4b1e065",
"file": "app/src/main/java/com/linsheng/FATJS/rpa/dingdingService/DingDingService.java",
"task_id": "project_cc_java/21"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "app/src/main/java/com/linsheng/FATJS/rpa/dingdingService/DingDingService.java",
"groundtruth_start_lineno": 45,
"repository": "1754048656-FATJS-4b1e065",
"right_context_start_lineno": 46,
"task_id": "project_cc_java/21"
}
} |
cross_code_eval_java::project_cc_java/31 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// app/src/main/java/com/linsheng/FATJS/rpa/dyService/DyTaskService.java
// // AccUtils.timeSleep(w... | {
"prefix": "package com.linsheng.FATJS.rpa.dingdingService;\nimport android.graphics.Rect;\nimport android.util.Log;\nimport android.view.accessibility.AccessibilityNodeInfo;\n\nimport androidx.annotation.RequiresApi;\n\nimport com.linsheng.FATJS.AccUtils;\nimport com.linsheng.FATJS.bean.Variable;\nimport com.linshe... | AccUtils.clickParentCanClick(AccUtils.findElementByText("工作台")); | {} | {
"repository": "1754048656-FATJS-4b1e065",
"file": "app/src/main/java/com/linsheng/FATJS/rpa/dingdingService/DingDingService.java",
"task_id": "project_cc_java/31"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "app/src/main/java/com/linsheng/FATJS/rpa/dingdingService/DingDingService.java",
"groundtruth_start_lineno": 60,
"repository": "1754048656-FATJS-4b1e065",
"right_context_start_lineno": 61,
"task_id": "project_cc_java/31"
}
} |
cross_code_eval_java::project_cc_java/36 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// app/src/main/java/com/linsheng/FATJS/rpa/dyService/DyTaskService.java
// // int[] x = ScreenLib.... | {
"prefix": "package com.linsheng.FATJS.rpa.dingdingService;\nimport android.graphics.Rect;\nimport android.util.Log;\nimport android.view.accessibility.AccessibilityNodeInfo;\n\nimport androidx.annotation.RequiresApi;\n\nimport com.linsheng.FATJS.AccUtils;\nimport com.linsheng.FATJS.bean.Variable;\nimport com.linshe... | AccUtils.printLogMsg("点击好的"); | {} | {
"repository": "1754048656-FATJS-4b1e065",
"file": "app/src/main/java/com/linsheng/FATJS/rpa/dingdingService/DingDingService.java",
"task_id": "project_cc_java/36"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "app/src/main/java/com/linsheng/FATJS/rpa/dingdingService/DingDingService.java",
"groundtruth_start_lineno": 67,
"repository": "1754048656-FATJS-4b1e065",
"right_context_start_lineno": 68,
"task_id": "project_cc_java/36"
}
} |
cross_code_eval_java::project_cc_java/56 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// app/src/main/java/com/linsheng/FATJS/activitys/FloatingButton.java
// // 测试方法
// ... | {
"prefix": "package com.linsheng.FATJS.activitys;\n\nimport android.Manifest;\nimport android.annotation.SuppressLint;\nimport android.app.Activity;\nimport android.content.BroadcastReceiver;\nimport android.content.Context;\nimport android.content.Intent;\nimport android.content.IntentFilter;\nimport android.conten... | dyTaskService.main(); | {} | {
"repository": "1754048656-FATJS-4b1e065",
"file": "app/src/main/java/com/linsheng/FATJS/activitys/MainActivity.java",
"task_id": "project_cc_java/56"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "app/src/main/java/com/linsheng/FATJS/activitys/MainActivity.java",
"groundtruth_start_lineno": 96,
"repository": "1754048656-FATJS-4b1e065",
"right_context_start_lineno": 97,
"task_id": "project_cc_java/56"
}
} |
cross_code_eval_java::project_cc_java/14 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// app/src/main/java/com/linsheng/FATJS/rpa/dingdingService/DingDingService.java
// AccUtils.click... | {
"prefix": "package com.linsheng.FATJS.rpa.dyService;\nimport android.graphics.Rect;\nimport android.util.Log;\nimport android.view.accessibility.AccessibilityNodeInfo;\n\nimport androidx.annotation.RequiresApi;\n\nimport com.linsheng.FATJS.AccUtils;\nimport com.linsheng.FATJS.bean.Variable;\nimport com.linsheng.FAT... | AccUtils.printLogMsg("向下滑动"); | {} | {
"repository": "1754048656-FATJS-4b1e065",
"file": "app/src/main/java/com/linsheng/FATJS/rpa/dyService/DyTaskService.java",
"task_id": "project_cc_java/14"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "app/src/main/java/com/linsheng/FATJS/rpa/dyService/DyTaskService.java",
"groundtruth_start_lineno": 68,
"repository": "1754048656-FATJS-4b1e065",
"right_context_start_lineno": 69,
"task_id": "project_cc_java/14"
}
} |
cross_code_eval_java::project_cc_java/43 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// app/src/main/java/com/linsheng/FATJS/rpa/dyService/DyTaskService.java
// // AccessibilityNodeInf... | {
"prefix": "package com.linsheng.FATJS.rpa.dingdingService;\nimport android.graphics.Rect;\nimport android.util.Log;\nimport android.view.accessibility.AccessibilityNodeInfo;\n\nimport androidx.annotation.RequiresApi;\n\nimport com.linsheng.FATJS.AccUtils;\nimport com.linsheng.FATJS.bean.Variable;\nimport com.linshe... | = AccUtils.findElementListByContainText("打卡"); | {} | {
"repository": "1754048656-FATJS-4b1e065",
"file": "app/src/main/java/com/linsheng/FATJS/rpa/dingdingService/DingDingService.java",
"task_id": "project_cc_java/43"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "app/src/main/java/com/linsheng/FATJS/rpa/dingdingService/DingDingService.java",
"groundtruth_start_lineno": 77,
"repository": "1754048656-FATJS-4b1e065",
"right_context_start_lineno": 78,
"task_id": "project_cc_java/43"
}
} |
cross_code_eval_java::project_cc_java/51 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// app/src/main/java/com/linsheng/FATJS/rpa/dyService/DyTaskService.java
// // AccUtils.timeSleep(w... | {
"prefix": "package com.linsheng.FATJS.rpa.dingdingService;\nimport android.graphics.Rect;\nimport android.util.Log;\nimport android.view.accessibility.AccessibilityNodeInfo;\n\nimport androidx.annotation.RequiresApi;\n\nimport com.linsheng.FATJS.AccUtils;\nimport com.linsheng.FATJS.bean.Variable;\nimport com.linshe... | AccUtils.printLogMsg("打卡完成,返回桌面"); | {} | {
"repository": "1754048656-FATJS-4b1e065",
"file": "app/src/main/java/com/linsheng/FATJS/rpa/dingdingService/DingDingService.java",
"task_id": "project_cc_java/51"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "app/src/main/java/com/linsheng/FATJS/rpa/dingdingService/DingDingService.java",
"groundtruth_start_lineno": 110,
"repository": "1754048656-FATJS-4b1e065",
"right_context_start_lineno": 111,
"task_id": "project_cc_java/51"
}
} |
cross_code_eval_java::project_cc_java/4 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// app/src/main/java/com/linsheng/FATJS/reporter/SampleApplication.java
// }
// @Override
// 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... | TinkerManager.setUpgradeRetryEnable(true); | {} | {
"repository": "1754048656-FATJS-4b1e065",
"file": "app/src/main/java/com/linsheng/FATJS/reporter/SampleApplicationLike.java",
"task_id": "project_cc_java/4"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "app/src/main/java/com/linsheng/FATJS/reporter/SampleApplicationLike.java",
"groundtruth_start_lineno": 64,
"repository": "1754048656-FATJS-4b1e065",
"right_context_start_lineno": 65,
"task_id": "project_cc_java/4"
}
} |
cross_code_eval_java::project_cc_java/34 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// app/src/main/java/com/linsheng/FATJS/rpa/dyService/DyTaskService.java
// // int[] x = ScreenLib.... | {
"prefix": "package com.linsheng.FATJS.rpa.dingdingService;\nimport android.graphics.Rect;\nimport android.util.Log;\nimport android.view.accessibility.AccessibilityNodeInfo;\n\nimport androidx.annotation.RequiresApi;\n\nimport com.linsheng.FATJS.AccUtils;\nimport com.linsheng.FATJS.bean.Variable;\nimport com.linshe... | AccUtils.findElementByText("考勤打卡")); | {} | {
"repository": "1754048656-FATJS-4b1e065",
"file": "app/src/main/java/com/linsheng/FATJS/rpa/dingdingService/DingDingService.java",
"task_id": "project_cc_java/34"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "app/src/main/java/com/linsheng/FATJS/rpa/dingdingService/DingDingService.java",
"groundtruth_start_lineno": 64,
"repository": "1754048656-FATJS-4b1e065",
"right_context_start_lineno": 65,
"task_id": "project_cc_java/34"
}
} |
cross_code_eval_java::project_cc_java/5 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// app/src/main/java/com/linsheng/FATJS/reporter/SampleApplication.java
// }
// @Override
// 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... | TinkerManager.installTinker(this); | {} | {
"repository": "1754048656-FATJS-4b1e065",
"file": "app/src/main/java/com/linsheng/FATJS/reporter/SampleApplicationLike.java",
"task_id": "project_cc_java/5"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "app/src/main/java/com/linsheng/FATJS/reporter/SampleApplicationLike.java",
"groundtruth_start_lineno": 65,
"repository": "1754048656-FATJS-4b1e065",
"right_context_start_lineno": 66,
"task_id": "project_cc_java/5"
}
} |
cross_code_eval_java::project_cc_java/10 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// app/src/main/java/com/linsheng/FATJS/rpa/dingdingService/DingDingService.java
// AccUtils.timeS... | {
"prefix": "package com.linsheng.FATJS.rpa.dyService;\nimport android.graphics.Rect;\nimport android.util.Log;\nimport android.view.accessibility.AccessibilityNodeInfo;\n\nimport androidx.annotation.RequiresApi;\n\nimport com.linsheng.FATJS.AccUtils;\nimport com.linsheng.FATJS.bean.Variable;\nimport com.linsheng.FAT... | = AccUtils.findElementByText("我知道了"); | {} | {
"repository": "1754048656-FATJS-4b1e065",
"file": "app/src/main/java/com/linsheng/FATJS/rpa/dyService/DyTaskService.java",
"task_id": "project_cc_java/10"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "app/src/main/java/com/linsheng/FATJS/rpa/dyService/DyTaskService.java",
"groundtruth_start_lineno": 48,
"repository": "1754048656-FATJS-4b1e065",
"right_context_start_lineno": 49,
"task_id": "project_cc_java/10"
}
} |
cross_code_eval_java::project_cc_java/11 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// app/src/main/java/com/linsheng/FATJS/rpa/dingdingService/DingDingService.java
// AccUtils.click... | {
"prefix": "package com.linsheng.FATJS.rpa.dyService;\nimport android.graphics.Rect;\nimport android.util.Log;\nimport android.view.accessibility.AccessibilityNodeInfo;\n\nimport androidx.annotation.RequiresApi;\n\nimport com.linsheng.FATJS.AccUtils;\nimport com.linsheng.FATJS.bean.Variable;\nimport com.linsheng.FAT... | element = AccUtils.findElementByText("以后再说"); | {} | {
"repository": "1754048656-FATJS-4b1e065",
"file": "app/src/main/java/com/linsheng/FATJS/rpa/dyService/DyTaskService.java",
"task_id": "project_cc_java/11"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "app/src/main/java/com/linsheng/FATJS/rpa/dyService/DyTaskService.java",
"groundtruth_start_lineno": 53,
"repository": "1754048656-FATJS-4b1e065",
"right_context_start_lineno": 54,
"task_id": "project_cc_java/11"
}
} |
cross_code_eval_java::project_cc_java/8 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// app/src/main/java/com/linsheng/FATJS/rpa/dingdingService/DingDingService.java
// @RequiresApi(24)
/... | {
"prefix": "package com.linsheng.FATJS.rpa.dyService;\nimport android.graphics.Rect;\nimport android.util.Log;\nimport android.view.accessibility.AccessibilityNodeInfo;\n\nimport androidx.annotation.RequiresApi;\n\nimport com.linsheng.FATJS.AccUtils;\nimport com.linsheng.FATJS.bean.Variable;\nimport com.linsheng.FAT... | AccUtils.printLogMsg("open dy App"); | {} | {
"repository": "1754048656-FATJS-4b1e065",
"file": "app/src/main/java/com/linsheng/FATJS/rpa/dyService/DyTaskService.java",
"task_id": "project_cc_java/8"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "app/src/main/java/com/linsheng/FATJS/rpa/dyService/DyTaskService.java",
"groundtruth_start_lineno": 41,
"repository": "1754048656-FATJS-4b1e065",
"right_context_start_lineno": 42,
"task_id": "project_cc_java/8"
}
} |
cross_code_eval_java::project_cc_java/9 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// app/src/main/java/com/linsheng/FATJS/rpa/dingdingService/DingDingService.java
// @RequiresApi(24)
/... | {
"prefix": "package com.linsheng.FATJS.rpa.dyService;\nimport android.graphics.Rect;\nimport android.util.Log;\nimport android.view.accessibility.AccessibilityNodeInfo;\n\nimport androidx.annotation.RequiresApi;\n\nimport com.linsheng.FATJS.AccUtils;\nimport com.linsheng.FATJS.bean.Variable;\nimport com.linsheng.FAT... | AccUtils.openApp("抖音"); | {} | {
"repository": "1754048656-FATJS-4b1e065",
"file": "app/src/main/java/com/linsheng/FATJS/rpa/dyService/DyTaskService.java",
"task_id": "project_cc_java/9"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "app/src/main/java/com/linsheng/FATJS/rpa/dyService/DyTaskService.java",
"groundtruth_start_lineno": 42,
"repository": "1754048656-FATJS-4b1e065",
"right_context_start_lineno": 43,
"task_id": "project_cc_java/9"
}
} |
cross_code_eval_java::project_cc_java/3 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// app/src/main/java/com/linsheng/FATJS/reporter/SampleApplication.java
// }
// @Override
// 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... | TinkerManager.setTinkerApplicationLike(this); | {} | {
"repository": "1754048656-FATJS-4b1e065",
"file": "app/src/main/java/com/linsheng/FATJS/reporter/SampleApplicationLike.java",
"task_id": "project_cc_java/3"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "app/src/main/java/com/linsheng/FATJS/reporter/SampleApplicationLike.java",
"groundtruth_start_lineno": 63,
"repository": "1754048656-FATJS-4b1e065",
"right_context_start_lineno": 64,
"task_id": "project_cc_java/3"
}
} |
cross_code_eval_java::project_cc_java/2 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// app/src/main/java/com/linsheng/FATJS/reporter/TinkerManager.java
// SampleResultService... | {
"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... | Utils.isBackground()) { | {} | {
"repository": "1754048656-FATJS-4b1e065",
"file": "app/src/main/java/com/linsheng/FATJS/reporter/SampleResultService.java",
"task_id": "project_cc_java/2"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "app/src/main/java/com/linsheng/FATJS/reporter/SampleResultService.java",
"groundtruth_start_lineno": 62,
"repository": "1754048656-FATJS-4b1e065",
"right_context_start_lineno": 63,
"task_id": "project_cc_java/2"
}
} |
cross_code_eval_java::project_cc_java/1 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// app/src/main/java/com/linsheng/FATJS/utils/TimeUtil.java
// return 2;
// }
// ... | {
"prefix": "package com.linsheng.FATJS.rpa.TaskFactory;\n\nimport com.linsheng.FATJS.AccUtils;\n\nimport java.util.Date;\nimport java.util.regex.Matcher;\nimport java.util.regex.Pattern;\n\n\npublic class TaskBasic {\n private static final String TAG = \"FATJS\";\n\n public TaskBasic(String NAME) {\n th... | AccUtils.printLogMsg("在字符串中没有找到整数!"); | {} | {
"repository": "1754048656-FATJS-4b1e065",
"file": "app/src/main/java/com/linsheng/FATJS/rpa/TaskFactory/TaskBasic.java",
"task_id": "project_cc_java/1"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "app/src/main/java/com/linsheng/FATJS/rpa/TaskFactory/TaskBasic.java",
"groundtruth_start_lineno": 40,
"repository": "1754048656-FATJS-4b1e065",
"right_context_start_lineno": 41,
"task_id": "project_cc_java/1"
}
} |
cross_code_eval_java::project_cc_java/54 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// app/src/main/java/com/linsheng/FATJS/reporter/XiuFuActivity.java
// // textView.setText("补丁信息2")... | {
"prefix": "package com.linsheng.FATJS.activitys;\n\nimport android.Manifest;\nimport android.annotation.SuppressLint;\nimport android.app.Activity;\nimport android.content.BroadcastReceiver;\nimport android.content.Context;\nimport android.content.Intent;\nimport android.content.IntentFilter;\nimport android.conten... | WindowPermissionCheck.checkPermission(this); | {} | {
"repository": "1754048656-FATJS-4b1e065",
"file": "app/src/main/java/com/linsheng/FATJS/activitys/MainActivity.java",
"task_id": "project_cc_java/54"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "app/src/main/java/com/linsheng/FATJS/activitys/MainActivity.java",
"groundtruth_start_lineno": 73,
"repository": "1754048656-FATJS-4b1e065",
"right_context_start_lineno": 74,
"task_id": "project_cc_java/54"
}
} |
cross_code_eval_java::project_cc_java/32 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// app/src/main/java/com/linsheng/FATJS/rpa/dyService/DyTaskService.java
// // AccUtils.timeSleep(w... | {
"prefix": "package com.linsheng.FATJS.rpa.dingdingService;\nimport android.graphics.Rect;\nimport android.util.Log;\nimport android.view.accessibility.AccessibilityNodeInfo;\n\nimport androidx.annotation.RequiresApi;\n\nimport com.linsheng.FATJS.AccUtils;\nimport com.linsheng.FATJS.bean.Variable;\nimport com.linshe... | AccUtils.timeSleep(3000); | {} | {
"repository": "1754048656-FATJS-4b1e065",
"file": "app/src/main/java/com/linsheng/FATJS/rpa/dingdingService/DingDingService.java",
"task_id": "project_cc_java/32"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "app/src/main/java/com/linsheng/FATJS/rpa/dingdingService/DingDingService.java",
"groundtruth_start_lineno": 61,
"repository": "1754048656-FATJS-4b1e065",
"right_context_start_lineno": 62,
"task_id": "project_cc_java/32"
}
} |
cross_code_eval_java::project_cc_java/132 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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
// */
// public ChatResponse getCompleti... | {
"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\... | ntokens = ntokens + response.getUsage().getTotalTokens(); | {} | {
"repository": "achousa-telegram-gpt-bot-ff31db1",
"file": "src/main/java/es/achousa/services/GptService.java",
"task_id": "project_cc_java/132"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/es/achousa/services/GptService.java",
"groundtruth_start_lineno": 173,
"repository": "achousa-telegram-gpt-bot-ff31db1",
"right_context_start_lineno": 174,
"task_id": "project_cc_java/132"
}
} |
cross_code_eval_java::project_cc_java/35 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// app/src/main/java/com/linsheng/FATJS/rpa/dyService/DyTaskService.java
// // AccessibilityNodeInf... | {
"prefix": "package com.linsheng.FATJS.rpa.dingdingService;\nimport android.graphics.Rect;\nimport android.util.Log;\nimport android.view.accessibility.AccessibilityNodeInfo;\n\nimport androidx.annotation.RequiresApi;\n\nimport com.linsheng.FATJS.AccUtils;\nimport com.linsheng.FATJS.bean.Variable;\nimport com.linshe... | AccUtils.timeSleep(6000); | {} | {
"repository": "1754048656-FATJS-4b1e065",
"file": "app/src/main/java/com/linsheng/FATJS/rpa/dingdingService/DingDingService.java",
"task_id": "project_cc_java/35"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "app/src/main/java/com/linsheng/FATJS/rpa/dingdingService/DingDingService.java",
"groundtruth_start_lineno": 65,
"repository": "1754048656-FATJS-4b1e065",
"right_context_start_lineno": 66,
"task_id": "project_cc_java/35"
}
} |
cross_code_eval_java::project_cc_java/58 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// posts/code/modelagemDVD/Filme.java
// this.categoria = categoria;
// this.duracao = dur... | {
"prefix": "package modelagemDVD;\n\n/*\nUtilizando os conhecimentos de O.O. construa um programa utilizando as informações abaixo. As características de um DVD devem ser definidas de acordo com as informações a seguir. Ao ser criado o DVD inicialmente está desligado. Seu volume pode alterar de 1 a 5 sendo que o nív... | out.println(filme.getNome()+" - "+filme.getDuracao()); | {} | {
"repository": "20231-ifba-saj-ads-poo-blog-material-aula-7ef4df7",
"file": "posts/code/modelagemDVD/DVD.java",
"task_id": "project_cc_java/58"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "posts/code/modelagemDVD/DVD.java",
"groundtruth_start_lineno": 86,
"repository": "20231-ifba-saj-ads-poo-blog-material-aula-7ef4df7",
"right_context_start_lineno": 87,
"task_id": "project_cc_java/58"
}
} |
cross_code_eval_java::project_cc_java/133 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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
// */
// public ChatResponse getCompleti... | {
"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\... | .setContent(response.getChoices().get(0).getMessage().getContent()); | {} | {
"repository": "achousa-telegram-gpt-bot-ff31db1",
"file": "src/main/java/es/achousa/services/GptService.java",
"task_id": "project_cc_java/133"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/es/achousa/services/GptService.java",
"groundtruth_start_lineno": 179,
"repository": "achousa-telegram-gpt-bot-ff31db1",
"right_context_start_lineno": 180,
"task_id": "project_cc_java/133"
}
} |
cross_code_eval_java::project_cc_java/23 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// app/src/main/java/com/linsheng/FATJS/rpa/dyService/DyTaskService.java
// if (elementByText ... | {
"prefix": "package com.linsheng.FATJS.rpa.dingdingService;\nimport android.graphics.Rect;\nimport android.util.Log;\nimport android.view.accessibility.AccessibilityNodeInfo;\n\nimport androidx.annotation.RequiresApi;\n\nimport com.linsheng.FATJS.AccUtils;\nimport com.linsheng.FATJS.bean.Variable;\nimport com.linshe... | AccUtils.timeSleep(2000); | {} | {
"repository": "1754048656-FATJS-4b1e065",
"file": "app/src/main/java/com/linsheng/FATJS/rpa/dingdingService/DingDingService.java",
"task_id": "project_cc_java/23"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "app/src/main/java/com/linsheng/FATJS/rpa/dingdingService/DingDingService.java",
"groundtruth_start_lineno": 47,
"repository": "1754048656-FATJS-4b1e065",
"right_context_start_lineno": 48,
"task_id": "project_cc_java/23"
}
} |
cross_code_eval_java::project_cc_java/94 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// posts/code/freetime/Lanchonete.java
// pedidos.add(pedido);
// cliente.addPedido(pedido... | {
"prefix": "package br.edu.ifba.saj.ads.poo;\n\nimport java.util.ArrayList;\n\npublic class Pedido {\n private Cliente cliente;\n private ArrayList<Item> itens;\n private Boolean pago = false;\n private int codigo;\n\n public Pedido(int codigo, Cliente cliente) {\n this.codigo = codigo;\n ... | itempedido.getPreco(); | {} | {
"repository": "20231-ifba-saj-ads-poo-blog-material-aula-7ef4df7",
"file": "posts/code/freetime/Pedido.java",
"task_id": "project_cc_java/94"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "posts/code/freetime/Pedido.java",
"groundtruth_start_lineno": 52,
"repository": "20231-ifba-saj-ads-poo-blog-material-aula-7ef4df7",
"right_context_start_lineno": 53,
"task_id": "project_cc_java/94"
}
} |
cross_code_eval_java::project_cc_java/20 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// app/src/main/java/com/linsheng/FATJS/rpa/dyService/DyTaskService.java
// }
// @RequiresApi(24)
... | {
"prefix": "package com.linsheng.FATJS.rpa.dingdingService;\nimport android.graphics.Rect;\nimport android.util.Log;\nimport android.view.accessibility.AccessibilityNodeInfo;\n\nimport androidx.annotation.RequiresApi;\n\nimport com.linsheng.FATJS.AccUtils;\nimport com.linsheng.FATJS.bean.Variable;\nimport com.linshe... | AccUtils.timeSleep(7000); | {} | {
"repository": "1754048656-FATJS-4b1e065",
"file": "app/src/main/java/com/linsheng/FATJS/rpa/dingdingService/DingDingService.java",
"task_id": "project_cc_java/20"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "app/src/main/java/com/linsheng/FATJS/rpa/dingdingService/DingDingService.java",
"groundtruth_start_lineno": 43,
"repository": "1754048656-FATJS-4b1e065",
"right_context_start_lineno": 44,
"task_id": "project_cc_java/20"
}
} |
cross_code_eval_java::project_cc_java/79 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// posts/code/modelagemDVD/DVD.java
// public int getVolume() {
// return volume;
// }
// ... | {
"prefix": "package modelagemDVD;\n\npublic class Mesa {\n public static void main(String[] args) {\n DVD meuDVD = new DVD();\n \n Filme filme1 = new Filme(\"It\", \"Terror\", 600);\n Filme filme2 = new Filme(\"It 2\", \"Terror\", 800);\n System.out.println(meuDVD.toString());\n... | = meuDVD.removerFilme(); | {} | {
"repository": "20231-ifba-saj-ads-poo-blog-material-aula-7ef4df7",
"file": "posts/code/modelagemDVD/Mesa.java",
"task_id": "project_cc_java/79"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "posts/code/modelagemDVD/Mesa.java",
"groundtruth_start_lineno": 34,
"repository": "20231-ifba-saj-ads-poo-blog-material-aula-7ef4df7",
"right_context_start_lineno": 35,
"task_id": "project_cc_java/79"
}
} |
cross_code_eval_java::project_cc_java/6 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// app/src/main/java/com/linsheng/FATJS/reporter/SampleLoadReporter.java
// super.onLoadFileNotFou... | {
"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... | returnCode = Utils.checkForPatchRecover(NEW_PATCH_RESTRICTION_SPACE_SIZE_MIN, maxMemory); | {} | {
"repository": "1754048656-FATJS-4b1e065",
"file": "app/src/main/java/com/linsheng/FATJS/reporter/SamplePatchListener.java",
"task_id": "project_cc_java/6"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "app/src/main/java/com/linsheng/FATJS/reporter/SamplePatchListener.java",
"groundtruth_start_lineno": 59,
"repository": "1754048656-FATJS-4b1e065",
"right_context_start_lineno": 60,
"task_id": "project_cc_java/6"
}
} |
cross_code_eval_java::project_cc_java/68 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// posts/code/modelagemDVD/DVD.java
// }
// }
// }
// //Seu volume pode altera... | {
"prefix": "package modelagemDVD;\n\npublic class Mesa {\n public static void main(String[] args) {\n DVD meuDVD = new DVD();\n \n Filme filme1 = new Filme(\"It\", \"Terror\", 600);\n Filme filme2 = new Filme(\"It 2\", \"Terror\", 800);\n System.out.println(meuDVD.toString());\n... | meuDVD.aumentarVolume(); | {} | {
"repository": "20231-ifba-saj-ads-poo-blog-material-aula-7ef4df7",
"file": "posts/code/modelagemDVD/Mesa.java",
"task_id": "project_cc_java/68"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "posts/code/modelagemDVD/Mesa.java",
"groundtruth_start_lineno": 22,
"repository": "20231-ifba-saj-ads-poo-blog-material-aula-7ef4df7",
"right_context_start_lineno": 23,
"task_id": "project_cc_java/68"
}
} |
cross_code_eval_java::project_cc_java/57 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// posts/code/modelagemDVD/Filme.java
// this.categoria = categoria;
// this.duracao = dur... | {
"prefix": "package modelagemDVD;\n\n/*\nUtilizando os conhecimentos de O.O. construa um programa utilizando as informações abaixo. As características de um DVD devem ser definidas de acordo com as informações a seguir. Ao ser criado o DVD inicialmente está desligado. Seu volume pode alterar de 1 a 5 sendo que o nív... | (filme.getNome()+" - "+filme.getDuracao()); | {} | {
"repository": "20231-ifba-saj-ads-poo-blog-material-aula-7ef4df7",
"file": "posts/code/modelagemDVD/DVD.java",
"task_id": "project_cc_java/57"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "posts/code/modelagemDVD/DVD.java",
"groundtruth_start_lineno": 86,
"repository": "20231-ifba-saj-ads-poo-blog-material-aula-7ef4df7",
"right_context_start_lineno": 87,
"task_id": "project_cc_java/57"
}
} |
cross_code_eval_java::project_cc_java/69 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// posts/code/modelagemDVD/DVD.java
// }
// }
// }
// //Seu volume pode altera... | {
"prefix": "package modelagemDVD;\n\npublic class Mesa {\n public static void main(String[] args) {\n DVD meuDVD = new DVD();\n \n Filme filme1 = new Filme(\"It\", \"Terror\", 600);\n Filme filme2 = new Filme(\"It 2\", \"Terror\", 800);\n System.out.println(meuDVD.toString());\n... | meuDVD.diminuirVolume(); | {} | {
"repository": "20231-ifba-saj-ads-poo-blog-material-aula-7ef4df7",
"file": "posts/code/modelagemDVD/Mesa.java",
"task_id": "project_cc_java/69"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "posts/code/modelagemDVD/Mesa.java",
"groundtruth_start_lineno": 23,
"repository": "20231-ifba-saj-ads-poo-blog-material-aula-7ef4df7",
"right_context_start_lineno": 24,
"task_id": "project_cc_java/69"
}
} |
cross_code_eval_java::project_cc_java/80 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// posts/code/modelagemDVD/DVD.java
// public int getVolume() {
// return volume;
// }
// ... | {
"prefix": "package modelagemDVD;\n\npublic class Mesa {\n public static void main(String[] args) {\n DVD meuDVD = new DVD();\n \n Filme filme1 = new Filme(\"It\", \"Terror\", 600);\n Filme filme2 = new Filme(\"It 2\", \"Terror\", 800);\n System.out.println(meuDVD.toString());\n... | meuDVD.play(); | {} | {
"repository": "20231-ifba-saj-ads-poo-blog-material-aula-7ef4df7",
"file": "posts/code/modelagemDVD/Mesa.java",
"task_id": "project_cc_java/80"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "posts/code/modelagemDVD/Mesa.java",
"groundtruth_start_lineno": 36,
"repository": "20231-ifba-saj-ads-poo-blog-material-aula-7ef4df7",
"right_context_start_lineno": 37,
"task_id": "project_cc_java/80"
}
} |
cross_code_eval_java::project_cc_java/179 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/adryd/sneaky/Config.java
// return hideServerPingData;
// }
// public... | {
"prefix": "package com.adryd.sneaky;\n\nimport java.io.File;\nimport java.io.IOException;\nimport java.net.SocketAddress;\nimport java.nio.file.Files;\nimport java.nio.file.NoSuchFileException;\nimport java.nio.file.Paths;\nimport java.util.HashMap;\nimport java.util.Map;\n\npublic class IPList {\n public static... | this.ipList.put(Sneaky.stringifyAddress(address), System.currentTimeMillis()); | {} | {
"repository": "adryd325-sneaky-df32bca",
"file": "src/main/java/com/adryd/sneaky/IPList.java",
"task_id": "project_cc_java/179"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/adryd/sneaky/IPList.java",
"groundtruth_start_lineno": 92,
"repository": "adryd325-sneaky-df32bca",
"right_context_start_lineno": 93,
"task_id": "project_cc_java/179"
}
} |
cross_code_eval_java::project_cc_java/181 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/api/bard/model/Answer.java
// String markdownAnswer = this.answer;
// ... | {
"prefix": "package com.api.bard;\n\nimport com.api.bard.exception.BardApiException;\nimport com.api.bard.model.Answer;\nimport com.api.bard.model.Question;\nimport com.api.bard.translator.IBardTranslator;\nimport com.google.gson.Gson;\nimport com.google.gson.JsonArray;\nimport com.google.gson.JsonElement;\nimport l... | = translator.detectLanguage(questionInput); | {} | {
"repository": "akang943578-java-bard-api-7352c25",
"file": "src/main/java/com/api/bard/BardClient.java",
"task_id": "project_cc_java/181"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/api/bard/BardClient.java",
"groundtruth_start_lineno": 148,
"repository": "akang943578-java-bard-api-7352c25",
"right_context_start_lineno": 149,
"task_id": "project_cc_java/181"
}
} |
cross_code_eval_java::project_cc_java/183 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/api/bard/translator/GoogleTranslatorAdaptor.java
// public String translate(Strin... | {
"prefix": "package com.api.bard;\n\nimport com.api.bard.exception.BardApiException;\nimport com.api.bard.model.Answer;\nimport com.api.bard.model.Question;\nimport com.api.bard.translator.IBardTranslator;\nimport com.google.gson.Gson;\nimport com.google.gson.JsonArray;\nimport com.google.gson.JsonElement;\nimport l... | = translator.translate(translator.middleLanguage(), sourceLang, answerOutput); | {} | {
"repository": "akang943578-java-bard-api-7352c25",
"file": "src/main/java/com/api/bard/BardClient.java",
"task_id": "project_cc_java/183"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/api/bard/BardClient.java",
"groundtruth_start_lineno": 181,
"repository": "akang943578-java-bard-api-7352c25",
"right_context_start_lineno": 182,
"task_id": "project_cc_java/183"
}
} |
cross_code_eval_java::project_cc_java/182 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/api/bard/translator/IBardTranslator.java
// package com.api.bard.translator;
// impor... | {
"prefix": "package com.api.bard;\n\nimport com.api.bard.exception.BardApiException;\nimport com.api.bard.model.Answer;\nimport com.api.bard.model.Question;\nimport com.api.bard.translator.IBardTranslator;\nimport com.google.gson.Gson;\nimport com.google.gson.JsonArray;\nimport com.google.gson.JsonElement;\nimport l... | = translator.translate(sourceLang, translator.middleLanguage(), questionInput); | {} | {
"repository": "akang943578-java-bard-api-7352c25",
"file": "src/main/java/com/api/bard/BardClient.java",
"task_id": "project_cc_java/182"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/api/bard/BardClient.java",
"groundtruth_start_lineno": 151,
"repository": "akang943578-java-bard-api-7352c25",
"right_context_start_lineno": 152,
"task_id": "project_cc_java/182"
}
} |
cross_code_eval_java::project_cc_java/190 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/test/java/stepdefinitions/LoginSteps.java
// loginPage.enterPassword(password);
// }
//... | {
"prefix": "package pages;\n\nimport com.microsoft.playwright.Locator;\nimport com.microsoft.playwright.Page;\nimport utils.WebActions;\n\npublic class LoginPage {\n private Page page;\n private final Locator USERNAME_EDITBOX;\n private final Locator PASSWORD_EDITBOX;\n private final Locator LOGIN_BUTTON... | fill(WebActions.decrypt(password)); | {} | {
"repository": "akshayp7-playwright-java-cucumber-f722d27",
"file": "src/main/java/pages/LoginPage.java",
"task_id": "project_cc_java/190"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/pages/LoginPage.java",
"groundtruth_start_lineno": 30,
"repository": "akshayp7-playwright-java-cucumber-f722d27",
"right_context_start_lineno": 31,
"task_id": "project_cc_java/190"
}
} |
cross_code_eval_java::project_cc_java/195 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/jenkins/plugins/alibabacloud/pkg/deployment/OssUploadAndOosExecStep.java
// ... | {
"prefix": "package io.jenkins.plugins.alibabacloud.pkg.deployment.utils;\n\nimport com.aliyun.oss.OSS;\nimport com.aliyun.oss.OSSClientBuilder;\nimport com.aliyuncs.DefaultAcsClient;\nimport com.aliyuncs.IAcsClient;\nimport com.aliyuncs.profile.DefaultProfile;\nimport io.jenkins.plugins.alibabacloud.pkg.deployment.... | = PluginImpl.getInstance().getAccessKeyId(); | {} | {
"repository": "aliyun-alibabacloud-package-deployment-plugin-af7d0f8",
"file": "src/main/java/io/jenkins/plugins/alibabacloud/pkg/deployment/utils/AliyunClientFactory.java",
"task_id": "project_cc_java/195"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/io/jenkins/plugins/alibabacloud/pkg/deployment/utils/AliyunClientFactory.java",
"groundtruth_start_lineno": 35,
"repository": "aliyun-alibabacloud-package-deployment-plugin-af7d0f8",
"right_context_start_lineno": 36,
"task_id": ... |
cross_code_eval_java::project_cc_java/208 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/jenkins/plugins/alibabacloud/pkg/deployment/OssUploadAndOosExecStep.java
// ... | {
"prefix": "package io.jenkins.plugins.alibabacloud.pkg.deployment;\n\nimport com.alibaba.fastjson.JSON;\nimport com.aliyun.oss.model.*;\nimport com.aliyuncs.exceptions.ClientException;\nimport com.aliyuncs.oos.model.v20190601.ListExecutionsRequest;\nimport com.aliyuncs.oos.model.v20190601.StartExecutionRequest;\nim... | instance.getOosClient().getAcsResponse(request); | {} | {
"repository": "aliyun-alibabacloud-package-deployment-plugin-af7d0f8",
"file": "src/main/java/io/jenkins/plugins/alibabacloud/pkg/deployment/AliyunEcsOpsByOssFilePublisher.java",
"task_id": "project_cc_java/208"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/io/jenkins/plugins/alibabacloud/pkg/deployment/AliyunEcsOpsByOssFilePublisher.java",
"groundtruth_start_lineno": 226,
"repository": "aliyun-alibabacloud-package-deployment-plugin-af7d0f8",
"right_context_start_lineno": 227,
"tas... |
cross_code_eval_java::project_cc_java/211 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/jenkins/plugins/alibabacloud/pkg/deployment/OssUploadAndOosExecStep.java
// ... | {
"prefix": "package io.jenkins.plugins.alibabacloud.pkg.deployment;\n\nimport com.alibaba.fastjson.JSON;\nimport com.aliyun.oss.model.*;\nimport com.aliyuncs.exceptions.ClientException;\nimport com.aliyuncs.oos.model.v20190601.ListExecutionsRequest;\nimport com.aliyuncs.oos.model.v20190601.StartExecutionRequest;\nim... | uploadPartResult = instance.getOssClient().uploadPart(uploadPartRequest); | {} | {
"repository": "aliyun-alibabacloud-package-deployment-plugin-af7d0f8",
"file": "src/main/java/io/jenkins/plugins/alibabacloud/pkg/deployment/AliyunEcsOpsByOssFilePublisher.java",
"task_id": "project_cc_java/211"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/io/jenkins/plugins/alibabacloud/pkg/deployment/AliyunEcsOpsByOssFilePublisher.java",
"groundtruth_start_lineno": 381,
"repository": "aliyun-alibabacloud-package-deployment-plugin-af7d0f8",
"right_context_start_lineno": 382,
"tas... |
cross_code_eval_java::project_cc_java/206 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/jenkins/plugins/alibabacloud/pkg/deployment/OssUploadAndOosExecStep.java
// ... | {
"prefix": "package io.jenkins.plugins.alibabacloud.pkg.deployment;\n\nimport com.alibaba.fastjson.JSON;\nimport com.aliyun.oss.model.*;\nimport com.aliyuncs.exceptions.ClientException;\nimport com.aliyuncs.oos.model.v20190601.ListExecutionsRequest;\nimport com.aliyuncs.oos.model.v20190601.StartExecutionRequest;\nim... | instance.build(this.region); | {} | {
"repository": "aliyun-alibabacloud-package-deployment-plugin-af7d0f8",
"file": "src/main/java/io/jenkins/plugins/alibabacloud/pkg/deployment/AliyunEcsOpsByOssFilePublisher.java",
"task_id": "project_cc_java/206"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/io/jenkins/plugins/alibabacloud/pkg/deployment/AliyunEcsOpsByOssFilePublisher.java",
"groundtruth_start_lineno": 149,
"repository": "aliyun-alibabacloud-package-deployment-plugin-af7d0f8",
"right_context_start_lineno": 150,
"tas... |
cross_code_eval_java::project_cc_java/213 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/jenkins/plugins/alibabacloud/pkg/deployment/OssUploadAndOosExecStep.java
// ... | {
"prefix": "package io.jenkins.plugins.alibabacloud.pkg.deployment;\n\nimport com.alibaba.fastjson.JSON;\nimport com.aliyun.oss.model.*;\nimport com.aliyuncs.exceptions.ClientException;\nimport com.aliyuncs.oos.model.v20190601.ListExecutionsRequest;\nimport com.aliyuncs.oos.model.v20190601.StartExecutionRequest;\nim... | (instance.getOssClient() != null) { | {} | {
"repository": "aliyun-alibabacloud-package-deployment-plugin-af7d0f8",
"file": "src/main/java/io/jenkins/plugins/alibabacloud/pkg/deployment/AliyunEcsOpsByOssFilePublisher.java",
"task_id": "project_cc_java/213"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/io/jenkins/plugins/alibabacloud/pkg/deployment/AliyunEcsOpsByOssFilePublisher.java",
"groundtruth_start_lineno": 395,
"repository": "aliyun-alibabacloud-package-deployment-plugin-af7d0f8",
"right_context_start_lineno": 396,
"tas... |
cross_code_eval_java::project_cc_java/210 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/jenkins/plugins/alibabacloud/pkg/deployment/OssUploadAndOosExecStep.java
// ... | {
"prefix": "package io.jenkins.plugins.alibabacloud.pkg.deployment;\n\nimport com.alibaba.fastjson.JSON;\nimport com.aliyun.oss.model.*;\nimport com.aliyuncs.exceptions.ClientException;\nimport com.aliyuncs.oos.model.v20190601.ListExecutionsRequest;\nimport com.aliyuncs.oos.model.v20190601.StartExecutionRequest;\nim... | upresult = instance.getOssClient().initiateMultipartUpload(request); | {} | {
"repository": "aliyun-alibabacloud-package-deployment-plugin-af7d0f8",
"file": "src/main/java/io/jenkins/plugins/alibabacloud/pkg/deployment/AliyunEcsOpsByOssFilePublisher.java",
"task_id": "project_cc_java/210"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/io/jenkins/plugins/alibabacloud/pkg/deployment/AliyunEcsOpsByOssFilePublisher.java",
"groundtruth_start_lineno": 360,
"repository": "aliyun-alibabacloud-package-deployment-plugin-af7d0f8",
"right_context_start_lineno": 361,
"tas... |
cross_code_eval_java::project_cc_java/207 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/jenkins/plugins/alibabacloud/pkg/deployment/OssUploadAndOosExecStep.java
// ... | {
"prefix": "package io.jenkins.plugins.alibabacloud.pkg.deployment;\n\nimport com.alibaba.fastjson.JSON;\nimport com.aliyun.oss.model.*;\nimport com.aliyuncs.exceptions.ClientException;\nimport com.aliyuncs.oos.model.v20190601.ListExecutionsRequest;\nimport com.aliyuncs.oos.model.v20190601.StartExecutionRequest;\nim... | instance.getOosClient().getAcsResponse(executionsRequest).getExecutions().get(0).getStatus(); | {} | {
"repository": "aliyun-alibabacloud-package-deployment-plugin-af7d0f8",
"file": "src/main/java/io/jenkins/plugins/alibabacloud/pkg/deployment/AliyunEcsOpsByOssFilePublisher.java",
"task_id": "project_cc_java/207"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/io/jenkins/plugins/alibabacloud/pkg/deployment/AliyunEcsOpsByOssFilePublisher.java",
"groundtruth_start_lineno": 173,
"repository": "aliyun-alibabacloud-package-deployment-plugin-af7d0f8",
"right_context_start_lineno": 174,
"tas... |
cross_code_eval_java::project_cc_java/138 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/acikek/hdiamond/entity/PanelEntity.java
// stack.decrement(1);
// ... | {
"prefix": "package com.acikek.hdiamond.api.block;\n\nimport com.acikek.hdiamond.api.HazardDiamondAPI;\nimport com.acikek.hdiamond.api.util.HazardDataHolder;\nimport com.acikek.hdiamond.core.HazardData;\nimport net.minecraft.block.Block;\nimport net.minecraft.block.BlockState;\nimport net.minecraft.entity.player.Pla... | HazardDiamondAPI.open(this); | {} | {
"repository": "acikek-hazard-diamond-faf1ee8",
"file": "src/main/java/com/acikek/hdiamond/api/block/BlockWithHazardData.java",
"task_id": "project_cc_java/138"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/acikek/hdiamond/api/block/BlockWithHazardData.java",
"groundtruth_start_lineno": 39,
"repository": "acikek-hazard-diamond-faf1ee8",
"right_context_start_lineno": 40,
"task_id": "project_cc_java/138"
}
} |
cross_code_eval_java::project_cc_java/151 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/acikek/hdiamond/api/event/HazardScreenEdited.java
// * @param player the client ... | {
"prefix": "package com.acikek.hdiamond.api;\n\nimport com.acikek.hdiamond.api.block.BlockWithHazardData;\nimport com.acikek.hdiamond.api.event.HazardScreenEdited;\nimport com.acikek.hdiamond.api.impl.HazardDiamondAPIImpl;\nimport com.acikek.hdiamond.api.util.HazardDataHolder;\nimport com.acikek.hdiamond.client.scre... | setScreen(new HazardScreen(holder.getHazardData())); | {} | {
"repository": "acikek-hazard-diamond-faf1ee8",
"file": "src/main/java/com/acikek/hdiamond/api/HazardDiamondAPI.java",
"task_id": "project_cc_java/151"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/acikek/hdiamond/api/HazardDiamondAPI.java",
"groundtruth_start_lineno": 124,
"repository": "acikek-hazard-diamond-faf1ee8",
"right_context_start_lineno": 125,
"task_id": "project_cc_java/151"
}
} |
cross_code_eval_java::project_cc_java/145 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/acikek/hdiamond/entity/PanelEntity.java
// nbt.putByte("Facing", (byte) facin... | {
"prefix": "package com.acikek.hdiamond.item;\n\nimport com.acikek.hdiamond.HDiamond;\nimport com.acikek.hdiamond.core.HazardData;\nimport com.acikek.hdiamond.core.quadrant.SpecificHazard;\nimport com.acikek.hdiamond.entity.PanelEntity;\nimport net.fabricmc.fabric.api.item.v1.FabricItemSettings;\nimport net.minecraf... | .register(Registry.ITEM, HDiamond.id("panel_item"), INSTANCE); | {} | {
"repository": "acikek-hazard-diamond-faf1ee8",
"file": "src/main/java/com/acikek/hdiamond/item/PanelItem.java",
"task_id": "project_cc_java/145"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/acikek/hdiamond/item/PanelItem.java",
"groundtruth_start_lineno": 83,
"repository": "acikek-hazard-diamond-faf1ee8",
"right_context_start_lineno": 84,
"task_id": "project_cc_java/145"
}
} |
cross_code_eval_java::project_cc_java/218 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// android/src/main/java/com/aliyun/ams/push/AliyunPushLog.java
// if (sLogEnabled) {
// Lo... | {
"prefix": "package com.aliyun.ams.push;\n\nimport java.util.HashMap;\nimport java.util.Map;\nimport java.util.Map.Entry;\n\nimport com.alibaba.sdk.android.push.MessageReceiver;\nimport com.alibaba.sdk.android.push.notification.CPushMessage;\nimport com.alibaba.sdk.android.push.notification.NotificationConfigure;\ni... | AliyunPushLog.e(REC_TAG, "key " + entry.getKey() + " value " + entry.getValue()); | {} | {
"repository": "aliyun-alibabacloud-push-reactnative-plugin-bf5b821",
"file": "android/src/main/java/com/aliyun/ams/push/AliyunPushMessageReceiver.java",
"task_id": "project_cc_java/218"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "android/src/main/java/com/aliyun/ams/push/AliyunPushMessageReceiver.java",
"groundtruth_start_lineno": 52,
"repository": "aliyun-alibabacloud-push-reactnative-plugin-bf5b821",
"right_context_start_lineno": 53,
"task_id": "project_cc_java/218"... |
cross_code_eval_java::project_cc_java/153 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/acikek/hdiamond/core/HazardDiamond.java
// );
// }
// public static H... | {
"prefix": "package com.acikek.hdiamond.api;\n\nimport com.acikek.hdiamond.api.block.BlockWithHazardData;\nimport com.acikek.hdiamond.api.event.HazardScreenEdited;\nimport com.acikek.hdiamond.api.impl.HazardDiamondAPIImpl;\nimport com.acikek.hdiamond.api.util.HazardDataHolder;\nimport com.acikek.hdiamond.client.scre... | = holder.getHazardData().getTooltip().stream()
.map(Text.Serializer::toJson)
.toList(); | {} | {
"repository": "acikek-hazard-diamond-faf1ee8",
"file": "src/main/java/com/acikek/hdiamond/api/HazardDiamondAPI.java",
"task_id": "project_cc_java/153"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/acikek/hdiamond/api/HazardDiamondAPI.java",
"groundtruth_start_lineno": 213,
"repository": "acikek-hazard-diamond-faf1ee8",
"right_context_start_lineno": 216,
"task_id": "project_cc_java/153"
}
} |
cross_code_eval_java::project_cc_java/176 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/dhx/template/model/DO/UserEntity.java
// sb.append(", serialVersionUID=").app... | {
"prefix": "package com.dhx.template.aop;\n\nimport com.dhx.template.common.BaseResponse;\nimport com.dhx.template.common.ErrorCode;\nimport com.dhx.template.common.exception.BusinessException;\nimport com.dhx.template.utils.ResultUtil;\nimport lombok.extern.slf4j.Slf4j;\nimport org.springframework.core.convert.Conv... | ResultUtil.error(); | {} | {
"repository": "adorabled4-springboot-template-c06b07d",
"file": "src/main/java/com/dhx/template/aop/GlobalExceptionHandler.java",
"task_id": "project_cc_java/176"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/dhx/template/aop/GlobalExceptionHandler.java",
"groundtruth_start_lineno": 91,
"repository": "adorabled4-springboot-template-c06b07d",
"right_context_start_lineno": 92,
"task_id": "project_cc_java/176"
}
} |
cross_code_eval_java::project_cc_java/177 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/dhx/template/aop/AuthCheckAOP.java
// String mustRole = authCheck.mustRole();... | {
"prefix": "package com.dhx.template.aop;\nimport com.dhx.template.common.annotation.SysLog;\nimport com.dhx.template.common.BaseResponse;\nimport com.dhx.template.model.DTO.user.UserDTO;\nimport com.dhx.template.utils.AopUtil;\nimport com.dhx.template.utils.UserHolder;\nimport lombok.Data;\nimport lombok.extern.slf... | target = (Annotation) AopUtil.getTarget(annotation); | {} | {
"repository": "adorabled4-springboot-template-c06b07d",
"file": "src/main/java/com/dhx/template/aop/SysLogAOP.java",
"task_id": "project_cc_java/177"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/dhx/template/aop/SysLogAOP.java",
"groundtruth_start_lineno": 121,
"repository": "adorabled4-springboot-template-c06b07d",
"right_context_start_lineno": 122,
"task_id": "project_cc_java/177"
}
} |
cross_code_eval_java::project_cc_java/174 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/dhx/template/service/impl/JwtTokensServiceImpl.java
// @Override
// public St... | {
"prefix": "package com.dhx.template.utils;\n\nimport cn.hutool.core.util.RandomUtil;\nimport com.alibaba.fastjson.JSONObject;\nimport com.aliyun.dysmsapi20170525.Client;\nimport com.aliyun.dysmsapi20170525.models.SendSmsRequest;\nimport com.aliyun.dysmsapi20170525.models.SendSmsResponse;\nimport com.aliyun.teaopena... | .info("阿里云短信发送失败!手机号:【{ | {} | {
"repository": "adorabled4-springboot-template-c06b07d",
"file": "src/main/java/com/dhx/template/utils/SMSUtil.java",
"task_id": "project_cc_java/174"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/dhx/template/utils/SMSUtil.java",
"groundtruth_start_lineno": 50,
"repository": "adorabled4-springboot-template-c06b07d",
"right_context_start_lineno": 51,
"task_id": "project_cc_java/174"
}
} |
cross_code_eval_java::project_cc_java/175 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/dhx/template/aop/SysLogAOP.java
// // 执行成功
// log.inf... | {
"prefix": "package com.dhx.template.aop;\n\nimport com.dhx.template.common.ErrorCode;\nimport com.dhx.template.common.annotation.AuthCheck;\nimport com.dhx.template.common.exception.BusinessException;\nimport com.dhx.template.model.DTO.user.UserDTO;\nimport com.dhx.template.model.enums.UserRoleEnum;\nimport com.dhx... | = UserRoleEnum.getEnumByValue(mustRole); | {} | {
"repository": "adorabled4-springboot-template-c06b07d",
"file": "src/main/java/com/dhx/template/aop/AuthCheckAOP.java",
"task_id": "project_cc_java/175"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/dhx/template/aop/AuthCheckAOP.java",
"groundtruth_start_lineno": 48,
"repository": "adorabled4-springboot-template-c06b07d",
"right_context_start_lineno": 49,
"task_id": "project_cc_java/175"
}
} |
cross_code_eval_java::project_cc_java/192 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// cities/src/main/java/com/kuehnenagel/cities/security/JwtTokenProvider.java
// }
// // validate Jwt ... | {
"prefix": "package com.kuehnenagel.cities.security;\n\nimport jakarta.servlet.FilterChain;\nimport jakarta.servlet.ServletException;\nimport jakarta.servlet.http.HttpServletRequest;\nimport jakarta.servlet.http.HttpServletResponse;\nimport org.springframework.security.authentication.UsernamePasswordAuthenticationTo... | username = jwtTokenProvider.getUsername(token); | {} | {
"repository": "aliturgutbozkurt-city-application-23ee1fb",
"file": "cities/src/main/java/com/kuehnenagel/cities/security/JwtAuthenticationFilter.java",
"task_id": "project_cc_java/192"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "cities/src/main/java/com/kuehnenagel/cities/security/JwtAuthenticationFilter.java",
"groundtruth_start_lineno": 42,
"repository": "aliturgutbozkurt-city-application-23ee1fb",
"right_context_start_lineno": 43,
"task_id": "project_cc_java/192"
... |
cross_code_eval_java::project_cc_java/165 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/dhx/template/common/BaseResponse.java
// this(errorCode.getCode(), null, erro... | {
"prefix": "package com.dhx.template.common.exception;\n\nimport com.dhx.template.common.ErrorCode;\nimport lombok.Data;\n\nimport java.io.Serializable;\n\n/**\n * @author <a href=\"https://blog.dhx.icu/\"> adorabled4 </a>\n * @className BusinessException\n * @date : 2023/01/07/ 14:28\n **/\n@Data\npublic class Busi... | (errorCode.getMsg()); | {} | {
"repository": "adorabled4-springboot-template-c06b07d",
"file": "src/main/java/com/dhx/template/common/exception/BusinessException.java",
"task_id": "project_cc_java/165"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/dhx/template/common/exception/BusinessException.java",
"groundtruth_start_lineno": 35,
"repository": "adorabled4-springboot-template-c06b07d",
"right_context_start_lineno": 36,
"task_id": "project_cc_java/165"
}
} |
cross_code_eval_java::project_cc_java/194 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// cities/src/main/java/com/kuehnenagel/cities/service/impl/CityServiceImpl.java
// City city = ci... | {
"prefix": "package com.kuehnenagel.cities.controller;\n\nimport com.kuehnenagel.cities.dto.CityDto;\nimport com.kuehnenagel.cities.service.CityService;\nimport com.kuehnenagel.cities.utils.AppConstants;\nimport lombok.RequiredArgsConstructor;\nimport org.springframework.data.domain.Page;\nimport org.springframework... | (cityService.findCitiesByName(pageNo, pageSize, sortBy, sortDir,name)); | {} | {
"repository": "aliturgutbozkurt-city-application-23ee1fb",
"file": "cities/src/main/java/com/kuehnenagel/cities/controller/CityController.java",
"task_id": "project_cc_java/194"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "cities/src/main/java/com/kuehnenagel/cities/controller/CityController.java",
"groundtruth_start_lineno": 60,
"repository": "aliturgutbozkurt-city-application-23ee1fb",
"right_context_start_lineno": 61,
"task_id": "project_cc_java/194"
}
} |
cross_code_eval_java::project_cc_java/173 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/dhx/template/controller/UserController.java
// String oldCode = stringRedisTe... | {
"prefix": "package com.dhx.template.utils;\n\nimport cn.hutool.core.util.RandomUtil;\nimport com.alibaba.fastjson.JSONObject;\nimport com.aliyun.dysmsapi20170525.Client;\nimport com.aliyun.dysmsapi20170525.models.SendSmsRequest;\nimport com.aliyun.dysmsapi20170525.models.SendSmsResponse;\nimport com.aliyun.teaopena... | ("阿里云短信发送成功!手机号:【{ | {} | {
"repository": "adorabled4-springboot-template-c06b07d",
"file": "src/main/java/com/dhx/template/utils/SMSUtil.java",
"task_id": "project_cc_java/173"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/dhx/template/utils/SMSUtil.java",
"groundtruth_start_lineno": 43,
"repository": "adorabled4-springboot-template-c06b07d",
"right_context_start_lineno": 44,
"task_id": "project_cc_java/173"
}
} |
cross_code_eval_java::project_cc_java/156 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// admin4j-json/src/main/java/com/admin4j/json/JSONConvertor.java
// * 解析/发序列化成对象
// */
// <... | {
"prefix": "package com.admin4j.json;\n\nimport com.admin4j.json.mapper.JSONMapper;\n\nimport java.io.InputStream;\nimport java.nio.charset.Charset;\nimport java.nio.charset.StandardCharsets;\nimport java.util.List;\nimport java.util.Map;\nimport java.util.ServiceLoader;\nimport java.util.stream.StreamSupport;\n\n/*... | return JSON_CONVERTOR.parseObject(input, clazz); | {} | {
"repository": "admin4j-admin4j-json-dedd7eb",
"file": "admin4j-json/src/main/java/com/admin4j/json/JSONUtil.java",
"task_id": "project_cc_java/156"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "admin4j-json/src/main/java/com/admin4j/json/JSONUtil.java",
"groundtruth_start_lineno": 66,
"repository": "admin4j-admin4j-json-dedd7eb",
"right_context_start_lineno": 67,
"task_id": "project_cc_java/156"
}
} |
cross_code_eval_java::project_cc_java/221 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// ps-cli/src/main/java/com/alipay/antchain/bridge/pluginserver/cli/shell/PromptCompleter.java
// ... | {
"prefix": "/*\n * Copyright 2023 Ant Group\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by appl... | .append(commandNamespace.name()); | {} | {
"repository": "AntChainOpenLab-AntChainBridgePluginServer-c6acccc",
"file": "ps-cli/src/main/java/com/alipay/antchain/bridge/pluginserver/cli/command/NamespaceManagerImpl.java",
"task_id": "project_cc_java/221"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "ps-cli/src/main/java/com/alipay/antchain/bridge/pluginserver/cli/command/NamespaceManagerImpl.java",
"groundtruth_start_lineno": 44,
"repository": "AntChainOpenLab-AntChainBridgePluginServer-c6acccc",
"right_context_start_lineno": 45,
"task_i... |
cross_code_eval_java::project_cc_java/220 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// ps-cli/src/main/java/com/alipay/antchain/bridge/pluginserver/cli/shell/Shell.java
// reader.set... | {
"prefix": "/*\n * Copyright 2023 Ant Group\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by appl... | .namespaceManager.getCommandNamespaces().forEach(namespace -> { | {} | {
"repository": "AntChainOpenLab-AntChainBridgePluginServer-c6acccc",
"file": "ps-cli/src/main/java/com/alipay/antchain/bridge/pluginserver/cli/shell/GroovyShellProvider.java",
"task_id": "project_cc_java/220"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "ps-cli/src/main/java/com/alipay/antchain/bridge/pluginserver/cli/shell/GroovyShellProvider.java",
"groundtruth_start_lineno": 34,
"repository": "AntChainOpenLab-AntChainBridgePluginServer-c6acccc",
"right_context_start_lineno": 35,
"task_id":... |
cross_code_eval_java::project_cc_java/227 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// ps-cli/src/main/java/com/alipay/antchain/bridge/pluginserver/cli/shell/GroovyScriptCommandNamespace.jav... | {
"prefix": "/*\n * Copyright 2023 Ant Group\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by appl... | .print(namespaceManager.dump()); | {} | {
"repository": "AntChainOpenLab-AntChainBridgePluginServer-c6acccc",
"file": "ps-cli/src/main/java/com/alipay/antchain/bridge/pluginserver/cli/shell/Shell.java",
"task_id": "project_cc_java/227"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "ps-cli/src/main/java/com/alipay/antchain/bridge/pluginserver/cli/shell/Shell.java",
"groundtruth_start_lineno": 179,
"repository": "AntChainOpenLab-AntChainBridgePluginServer-c6acccc",
"right_context_start_lineno": 180,
"task_id": "project_cc... |
cross_code_eval_java::project_cc_java/226 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// ps-cli/src/main/java/com/alipay/antchain/bridge/pluginserver/cli/shell/GlLineReader.java
// // ... | {
"prefix": "/*\n * Copyright 2023 Ant Group\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by appl... | shell.start(); | {} | {
"repository": "AntChainOpenLab-AntChainBridgePluginServer-c6acccc",
"file": "ps-cli/src/main/java/com/alipay/antchain/bridge/pluginserver/cli/shell/Launcher.java",
"task_id": "project_cc_java/226"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "ps-cli/src/main/java/com/alipay/antchain/bridge/pluginserver/cli/shell/Launcher.java",
"groundtruth_start_lineno": 140,
"repository": "AntChainOpenLab-AntChainBridgePluginServer-c6acccc",
"right_context_start_lineno": 141,
"task_id": "project... |
cross_code_eval_java::project_cc_java/222 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// ps-cli/src/main/java/com/alipay/antchain/bridge/pluginserver/cli/command/NamespaceManager.java
// /... | {
"prefix": "/*\n * Copyright 2023 Ant Group\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by appl... | commandNamespace.getCommands().forEach(
(cmdName, cmd) -> { | {} | {
"repository": "AntChainOpenLab-AntChainBridgePluginServer-c6acccc",
"file": "ps-cli/src/main/java/com/alipay/antchain/bridge/pluginserver/cli/command/NamespaceManagerImpl.java",
"task_id": "project_cc_java/222"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "ps-cli/src/main/java/com/alipay/antchain/bridge/pluginserver/cli/command/NamespaceManagerImpl.java",
"groundtruth_start_lineno": 45,
"repository": "AntChainOpenLab-AntChainBridgePluginServer-c6acccc",
"right_context_start_lineno": 47,
"task_i... |
cross_code_eval_java::project_cc_java/225 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// ps-cli/src/main/java/com/alipay/antchain/bridge/pluginserver/cli/shell/Shell.java
// ... | {
"prefix": "/*\n * Copyright 2023 Ant Group\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by appl... | String result = shell.execute(command); | {} | {
"repository": "AntChainOpenLab-AntChainBridgePluginServer-c6acccc",
"file": "ps-cli/src/main/java/com/alipay/antchain/bridge/pluginserver/cli/shell/Launcher.java",
"task_id": "project_cc_java/225"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "ps-cli/src/main/java/com/alipay/antchain/bridge/pluginserver/cli/shell/Launcher.java",
"groundtruth_start_lineno": 117,
"repository": "AntChainOpenLab-AntChainBridgePluginServer-c6acccc",
"right_context_start_lineno": 118,
"task_id": "project... |
cross_code_eval_java::project_cc_java/223 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// ps-cli/src/main/java/com/alipay/antchain/bridge/pluginserver/cli/core/ManagementGrpcClient.java
// ... | {
"prefix": "/*\n * Copyright 2023 Ant Group\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by appl... | !grpcClient.checkServerStatus()) { | {} | {
"repository": "AntChainOpenLab-AntChainBridgePluginServer-c6acccc",
"file": "ps-cli/src/main/java/com/alipay/antchain/bridge/pluginserver/cli/shell/Launcher.java",
"task_id": "project_cc_java/223"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "ps-cli/src/main/java/com/alipay/antchain/bridge/pluginserver/cli/shell/Launcher.java",
"groundtruth_start_lineno": 86,
"repository": "AntChainOpenLab-AntChainBridgePluginServer-c6acccc",
"right_context_start_lineno": 87,
"task_id": "project_c... |
cross_code_eval_java::project_cc_java/228 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// ps-cli/src/main/java/com/alipay/antchain/bridge/pluginserver/cli/shell/ShellProvider.java
// * @pa... | {
"prefix": "/*\n * Copyright 2023 Ant Group\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by appl... | getGrpcClient().shutdown(); | {} | {
"repository": "AntChainOpenLab-AntChainBridgePluginServer-c6acccc",
"file": "ps-cli/src/main/java/com/alipay/antchain/bridge/pluginserver/cli/shell/Shell.java",
"task_id": "project_cc_java/228"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "ps-cli/src/main/java/com/alipay/antchain/bridge/pluginserver/cli/shell/Shell.java",
"groundtruth_start_lineno": 162,
"repository": "AntChainOpenLab-AntChainBridgePluginServer-c6acccc",
"right_context_start_lineno": 163,
"task_id": "project_cc... |
cross_code_eval_java::project_cc_java/231 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// ps-cli/src/main/java/com/alipay/antchain/bridge/pluginserver/cli/shell/GroovyScriptCommandNamespace.jav... | {
"prefix": "/*\n * Copyright 2023 Ant Group\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by appl... | " PLUGIN SERVER CLI " + Launcher.getVersion()
); | {} | {
"repository": "AntChainOpenLab-AntChainBridgePluginServer-c6acccc",
"file": "ps-cli/src/main/java/com/alipay/antchain/bridge/pluginserver/cli/shell/Shell.java",
"task_id": "project_cc_java/231"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "ps-cli/src/main/java/com/alipay/antchain/bridge/pluginserver/cli/shell/Shell.java",
"groundtruth_start_lineno": 190,
"repository": "AntChainOpenLab-AntChainBridgePluginServer-c6acccc",
"right_context_start_lineno": 192,
"task_id": "project_cc... |
cross_code_eval_java::project_cc_java/230 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// ps-cli/src/main/java/com/alipay/antchain/bridge/pluginserver/cli/shell/GroovyScriptCommandNamespace.jav... | {
"prefix": "/*\n * Copyright 2023 Ant Group\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by appl... | ).execute(); | {} | {
"repository": "AntChainOpenLab-AntChainBridgePluginServer-c6acccc",
"file": "ps-cli/src/main/java/com/alipay/antchain/bridge/pluginserver/cli/shell/Shell.java",
"task_id": "project_cc_java/230"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "ps-cli/src/main/java/com/alipay/antchain/bridge/pluginserver/cli/shell/Shell.java",
"groundtruth_start_lineno": 128,
"repository": "AntChainOpenLab-AntChainBridgePluginServer-c6acccc",
"right_context_start_lineno": 129,
"task_id": "project_cc... |
cross_code_eval_java::project_cc_java/229 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// ps-cli/src/main/java/com/alipay/antchain/bridge/pluginserver/cli/shell/Launcher.java
// } c... | {
"prefix": "/*\n * Copyright 2023 Ant Group\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by appl... | ().println(JsonUtil.format(result)); | {} | {
"repository": "AntChainOpenLab-AntChainBridgePluginServer-c6acccc",
"file": "ps-cli/src/main/java/com/alipay/antchain/bridge/pluginserver/cli/shell/Shell.java",
"task_id": "project_cc_java/229"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "ps-cli/src/main/java/com/alipay/antchain/bridge/pluginserver/cli/shell/Shell.java",
"groundtruth_start_lineno": 135,
"repository": "AntChainOpenLab-AntChainBridgePluginServer-c6acccc",
"right_context_start_lineno": 136,
"task_id": "project_cc... |
cross_code_eval_java::project_cc_java/233 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// ps-cli/src/main/java/com/alipay/antchain/bridge/pluginserver/cli/shell/Shell.java
// ... | {
"prefix": "/*\n * Copyright 2023 Ant Group\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by appl... | (!buffer.isEmpty() && !namespace.name().startsWith(buffer)) { | {} | {
"repository": "AntChainOpenLab-AntChainBridgePluginServer-c6acccc",
"file": "ps-cli/src/main/java/com/alipay/antchain/bridge/pluginserver/cli/shell/PromptCompleter.java",
"task_id": "project_cc_java/233"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "ps-cli/src/main/java/com/alipay/antchain/bridge/pluginserver/cli/shell/PromptCompleter.java",
"groundtruth_start_lineno": 75,
"repository": "AntChainOpenLab-AntChainBridgePluginServer-c6acccc",
"right_context_start_lineno": 76,
"task_id": "pr... |
cross_code_eval_java::project_cc_java/234 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// ps-cli/src/main/java/com/alipay/antchain/bridge/pluginserver/cli/shell/Shell.java
// ... | {
"prefix": "/*\n * Copyright 2023 Ant Group\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by appl... | new StringBuilder(namespace.name()); | {} | {
"repository": "AntChainOpenLab-AntChainBridgePluginServer-c6acccc",
"file": "ps-cli/src/main/java/com/alipay/antchain/bridge/pluginserver/cli/shell/PromptCompleter.java",
"task_id": "project_cc_java/234"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "ps-cli/src/main/java/com/alipay/antchain/bridge/pluginserver/cli/shell/PromptCompleter.java",
"groundtruth_start_lineno": 79,
"repository": "AntChainOpenLab-AntChainBridgePluginServer-c6acccc",
"right_context_start_lineno": 80,
"task_id": "pr... |
cross_code_eval_java::project_cc_java/235 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// ps-cli/src/main/java/com/alipay/antchain/bridge/pluginserver/cli/shell/Shell.java
// ... | {
"prefix": "/*\n * Copyright 2023 Ant Group\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by appl... | namespace.getCommands().forEach((cmdName, cmd) -> { | {} | {
"repository": "AntChainOpenLab-AntChainBridgePluginServer-c6acccc",
"file": "ps-cli/src/main/java/com/alipay/antchain/bridge/pluginserver/cli/shell/PromptCompleter.java",
"task_id": "project_cc_java/235"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "ps-cli/src/main/java/com/alipay/antchain/bridge/pluginserver/cli/shell/PromptCompleter.java",
"groundtruth_start_lineno": 80,
"repository": "AntChainOpenLab-AntChainBridgePluginServer-c6acccc",
"right_context_start_lineno": 81,
"task_id": "pr... |
cross_code_eval_java::project_cc_java/238 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// ps-cli/src/main/java/com/alipay/antchain/bridge/pluginserver/cli/shell/GlLineReader.java
// ... | {
"prefix": "/*\n * Copyright 2023 Ant Group\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by appl... | !namespace.name().equals(buf[0])) { | {} | {
"repository": "AntChainOpenLab-AntChainBridgePluginServer-c6acccc",
"file": "ps-cli/src/main/java/com/alipay/antchain/bridge/pluginserver/cli/shell/PromptCompleter.java",
"task_id": "project_cc_java/238"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "ps-cli/src/main/java/com/alipay/antchain/bridge/pluginserver/cli/shell/PromptCompleter.java",
"groundtruth_start_lineno": 104,
"repository": "AntChainOpenLab-AntChainBridgePluginServer-c6acccc",
"right_context_start_lineno": 105,
"task_id": "... |
cross_code_eval_java::project_cc_java/252 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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
// if (!intent.getAction().equals(I... | {
"prefix": "/*\n * Copyright (C) 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 * Unless... | mThermalUtils.setDefaultThermalProfile(); | {} | {
"repository": "AOSPA-android_device_xiaomi_sm6225-common-0a9c912",
"file": "parts/src/org/lineageos/settings/thermal/ThermalService.java",
"task_id": "project_cc_java/252"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "parts/src/org/lineageos/settings/thermal/ThermalService.java",
"groundtruth_start_lineno": 67,
"repository": "AOSPA-android_device_xiaomi_sm6225-common-0a9c912",
"right_context_start_lineno": 68,
"task_id": "project_cc_java/252"
}
} |
cross_code_eval_java::project_cc_java/236 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// ps-cli/src/main/java/com/alipay/antchain/bridge/pluginserver/cli/command/NamespaceManagerImpl.java
// ... | {
"prefix": "/*\n * Copyright 2023 Ant Group\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by appl... | Candidate(namespace.name() + ".", namespace.name(), null, null, null, null, true)); | {} | {
"repository": "AntChainOpenLab-AntChainBridgePluginServer-c6acccc",
"file": "ps-cli/src/main/java/com/alipay/antchain/bridge/pluginserver/cli/shell/PromptCompleter.java",
"task_id": "project_cc_java/236"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "ps-cli/src/main/java/com/alipay/antchain/bridge/pluginserver/cli/shell/PromptCompleter.java",
"groundtruth_start_lineno": 96,
"repository": "AntChainOpenLab-AntChainBridgePluginServer-c6acccc",
"right_context_start_lineno": 97,
"task_id": "pr... |
cross_code_eval_java::project_cc_java/251 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/thermal/ThermalSettingsFragment.java
// !TextUtils... | {
"prefix": "/*\n * Copyright (C) 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 * Unless... | mThermalUtils.setThermalProfile(foregroundApp); | {} | {
"repository": "AOSPA-android_device_xiaomi_sm6225-common-0a9c912",
"file": "parts/src/org/lineageos/settings/thermal/ThermalService.java",
"task_id": "project_cc_java/251"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "parts/src/org/lineageos/settings/thermal/ThermalService.java",
"groundtruth_start_lineno": 55,
"repository": "AOSPA-android_device_xiaomi_sm6225-common-0a9c912",
"right_context_start_lineno": 56,
"task_id": "project_cc_java/251"
}
} |
cross_code_eval_java::project_cc_java/232 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// ps-cli/src/main/java/com/alipay/antchain/bridge/pluginserver/cli/shell/Shell.java
// ... | {
"prefix": "/*\n * Copyright 2023 Ant Group\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by appl... | cmd.addArgs(argName, param.getType().getSimpleName(), constraints); | {} | {
"repository": "AntChainOpenLab-AntChainBridgePluginServer-c6acccc",
"file": "ps-cli/src/main/java/com/alipay/antchain/bridge/pluginserver/cli/shell/GroovyScriptCommandNamespace.java",
"task_id": "project_cc_java/232"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "ps-cli/src/main/java/com/alipay/antchain/bridge/pluginserver/cli/shell/GroovyScriptCommandNamespace.java",
"groundtruth_start_lineno": 82,
"repository": "AntChainOpenLab-AntChainBridgePluginServer-c6acccc",
"right_context_start_lineno": 83,
"... |
cross_code_eval_java::project_cc_java/247 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// ps-cli/src/main/java/com/alipay/antchain/bridge/pluginserver/cli/command/NamespaceManagerImpl.java
// ... | {
"prefix": "/*\n * Copyright 2023 Ant Group\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by appl... | (namespaceManager.getCommandNamespaces()); | {} | {
"repository": "AntChainOpenLab-AntChainBridgePluginServer-c6acccc",
"file": "ps-cli/src/main/java/com/alipay/antchain/bridge/pluginserver/cli/shell/PromptCompleter.java",
"task_id": "project_cc_java/247"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "ps-cli/src/main/java/com/alipay/antchain/bridge/pluginserver/cli/shell/PromptCompleter.java",
"groundtruth_start_lineno": 41,
"repository": "AntChainOpenLab-AntChainBridgePluginServer-c6acccc",
"right_context_start_lineno": 42,
"task_id": "pr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.