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/2674 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/kasun/discordleaderboards/Configs/MainConfig.java
// config.set("storage-meth... | {
"prefix": "package org.kasun.discordleaderboards.Leaderboard;\n\nimport org.bukkit.configuration.file.FileConfiguration;\nimport org.kasun.discordleaderboards.Configs.MainConfig;\nimport org.kasun.discordleaderboards.DiscordLeaderboards;\nimport org.kasun.discordleaderboards.Configs.CustomConfig;\n\n\nimport java.u... | customConfig.reload(); | {} | {
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"file": "src/main/java/org/kasun/discordleaderboards/Leaderboard/LeaderboardConfig.java",
"task_id": "project_cc_java/2674"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/kasun/discordleaderboards/Leaderboard/LeaderboardConfig.java",
"groundtruth_start_lineno": 98,
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"right_context_start_lineno": 99,
"task_id": "project_cc_java/2674"
}
} |
cross_code_eval_java::project_cc_java/2534 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// core/src/main/java/work/noice/core/beans/Data.java
// }
// public void setDataAttributes(Map<St... | {
"prefix": "package work.noice.core.servlets;\n\nimport com.fasterxml.jackson.databind.ObjectMapper;\nimport com.google.gson.Gson;\nimport com.google.gson.JsonObject;\nimport org.apache.commons.io.IOUtils;\nimport org.apache.commons.lang3.StringUtils;\nimport org.apache.commons.text.StringEscapeUtils;\nimport org.ap... | info = jsonData.getDataAttributes().get("info"); | {} | {
"repository": "jaketracey-opax-44a71f1",
"file": "core/src/main/java/work/noice/core/servlets/OpaxServlet.java",
"task_id": "project_cc_java/2534"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "core/src/main/java/work/noice/core/servlets/OpaxServlet.java",
"groundtruth_start_lineno": 141,
"repository": "jaketracey-opax-44a71f1",
"right_context_start_lineno": 142,
"task_id": "project_cc_java/2534"
}
} |
cross_code_eval_java::project_cc_java/2694 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/kasun/discordleaderboards/Database/UserData.java
// List<String> leaderboardn... | {
"prefix": "package org.kasun.discordleaderboards.DiscordSRV;\nimport org.kasun.discordleaderboards.Configs.MainConfig;\nimport org.kasun.discordleaderboards.Leaderboard.DescriptionGenerator;\nimport org.kasun.discordleaderboards.Leaderboard.Leaderboard;\nimport org.kasun.discordleaderboards.Leaderboard.TopList;\n\n... | discordsrvEmbed.setEmbedImage(image); | {} | {
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"file": "src/main/java/org/kasun/discordleaderboards/DiscordSRV/LeaderboardDiscordSrvEmbed.java",
"task_id": "project_cc_java/2694"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/kasun/discordleaderboards/DiscordSRV/LeaderboardDiscordSrvEmbed.java",
"groundtruth_start_lineno": 35,
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"right_context_start_lineno": 36,
"task_id": "project_cc_java/2694"
... |
cross_code_eval_java::project_cc_java/2545 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// core/src/main/java/work/noice/core/beans/Data.java
// }
// public void setDataAttributes(Map<St... | {
"prefix": "package work.noice.core.servlets;\n\nimport com.fasterxml.jackson.databind.ObjectMapper;\nimport com.google.gson.Gson;\nimport com.google.gson.JsonObject;\nimport org.apache.commons.io.IOUtils;\nimport org.apache.commons.lang3.StringUtils;\nimport org.apache.commons.text.StringEscapeUtils;\nimport org.ap... | sentence = jsonData.getDataAttributes().get("sentence"); | {} | {
"repository": "jaketracey-opax-44a71f1",
"file": "core/src/main/java/work/noice/core/servlets/OpaxServlet.java",
"task_id": "project_cc_java/2545"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "core/src/main/java/work/noice/core/servlets/OpaxServlet.java",
"groundtruth_start_lineno": 152,
"repository": "jaketracey-opax-44a71f1",
"right_context_start_lineno": 153,
"task_id": "project_cc_java/2545"
}
} |
cross_code_eval_java::project_cc_java/2701 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/kasun/discordleaderboards/Leaderboard/DescriptionGenerator.java
// de... | {
"prefix": "package org.kasun.discordleaderboards.Schedules;\n\nimport org.kasun.discordleaderboards.Database.Cache;\nimport org.kasun.discordleaderboards.Leaderboard.Leaderboard;\nimport org.kasun.discordleaderboards.Utils.SqlUtils;\nimport org.kasun.discordleaderboards.Utils.TimeUtils;\n\nimport java.sql.Timestamp... | cache.setCache(); | {} | {
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"file": "src/main/java/org/kasun/discordleaderboards/Schedules/Schedule.java",
"task_id": "project_cc_java/2701"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/kasun/discordleaderboards/Schedules/Schedule.java",
"groundtruth_start_lineno": 36,
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"right_context_start_lineno": 37,
"task_id": "project_cc_java/2701"
}
} |
cross_code_eval_java::project_cc_java/2523 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// it.tests/src/main/java/work/noice/it/tests/GetPageIT.java
// /**
// * Verifies that the homepa... | {
"prefix": "/*\n * Copyright 2020 Adobe Systems Incorporated\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 * ... | adminPublish.close(); | {} | {
"repository": "jaketracey-opax-44a71f1",
"file": "it.tests/src/main/java/work/noice/it/tests/PublishPageValidationIT.java",
"task_id": "project_cc_java/2523"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "it.tests/src/main/java/work/noice/it/tests/PublishPageValidationIT.java",
"groundtruth_start_lineno": 85,
"repository": "jaketracey-opax-44a71f1",
"right_context_start_lineno": 86,
"task_id": "project_cc_java/2523"
}
} |
cross_code_eval_java::project_cc_java/2547 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// core/src/main/java/work/noice/core/beans/Data.java
// }
// public void setDataAttributes(Map<St... | {
"prefix": "package work.noice.core.servlets;\n\nimport com.fasterxml.jackson.databind.ObjectMapper;\nimport com.google.gson.Gson;\nimport com.google.gson.JsonObject;\nimport org.apache.commons.io.IOUtils;\nimport org.apache.commons.lang3.StringUtils;\nimport org.apache.commons.text.StringEscapeUtils;\nimport org.ap... | jsonData.getTemplateId()) { | {} | {
"repository": "jaketracey-opax-44a71f1",
"file": "core/src/main/java/work/noice/core/servlets/OpaxServlet.java",
"task_id": "project_cc_java/2547"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "core/src/main/java/work/noice/core/servlets/OpaxServlet.java",
"groundtruth_start_lineno": 157,
"repository": "jaketracey-opax-44a71f1",
"right_context_start_lineno": 158,
"task_id": "project_cc_java/2547"
}
} |
cross_code_eval_java::project_cc_java/2538 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// core/src/main/java/work/noice/core/beans/Data.java
// }
// public void setDataAttributes(Map<St... | {
"prefix": "package work.noice.core.servlets;\n\nimport com.fasterxml.jackson.databind.ObjectMapper;\nimport com.google.gson.Gson;\nimport com.google.gson.JsonObject;\nimport org.apache.commons.io.IOUtils;\nimport org.apache.commons.lang3.StringUtils;\nimport org.apache.commons.text.StringEscapeUtils;\nimport org.ap... | String topic = jsonData.getDataAttributes().get("topic"); | {} | {
"repository": "jaketracey-opax-44a71f1",
"file": "core/src/main/java/work/noice/core/servlets/OpaxServlet.java",
"task_id": "project_cc_java/2538"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "core/src/main/java/work/noice/core/servlets/OpaxServlet.java",
"groundtruth_start_lineno": 145,
"repository": "jaketracey-opax-44a71f1",
"right_context_start_lineno": 146,
"task_id": "project_cc_java/2538"
}
} |
cross_code_eval_java::project_cc_java/2542 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// core/src/main/java/work/noice/core/beans/Data.java
// }
// public void setDataAttributes(Map<St... | {
"prefix": "package work.noice.core.servlets;\n\nimport com.fasterxml.jackson.databind.ObjectMapper;\nimport com.google.gson.Gson;\nimport com.google.gson.JsonObject;\nimport org.apache.commons.io.IOUtils;\nimport org.apache.commons.lang3.StringUtils;\nimport org.apache.commons.text.StringEscapeUtils;\nimport org.ap... | customerAvatar = jsonData.getDataAttributes().get("customerAvatar"); | {} | {
"repository": "jaketracey-opax-44a71f1",
"file": "core/src/main/java/work/noice/core/servlets/OpaxServlet.java",
"task_id": "project_cc_java/2542"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "core/src/main/java/work/noice/core/servlets/OpaxServlet.java",
"groundtruth_start_lineno": 149,
"repository": "jaketracey-opax-44a71f1",
"right_context_start_lineno": 150,
"task_id": "project_cc_java/2542"
}
} |
cross_code_eval_java::project_cc_java/2549 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// core/src/test/java/work/noice/core/filters/LoggingFilterTest.java
// fixture.init(mock(FilterCo... | {
"prefix": "package work.noice.core.servlets;\n\nimport com.fasterxml.jackson.databind.ObjectMapper;\nimport com.google.gson.Gson;\nimport com.google.gson.JsonObject;\nimport org.apache.commons.io.IOUtils;\nimport org.apache.commons.lang3.StringUtils;\nimport org.apache.commons.text.StringEscapeUtils;\nimport org.ap... | .addHeader("Authorization", "Bearer" + " " + config.getOpenAIAPIKey()); | {} | {
"repository": "jaketracey-opax-44a71f1",
"file": "core/src/main/java/work/noice/core/servlets/OpaxServlet.java",
"task_id": "project_cc_java/2549"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "core/src/main/java/work/noice/core/servlets/OpaxServlet.java",
"groundtruth_start_lineno": 115,
"repository": "jaketracey-opax-44a71f1",
"right_context_start_lineno": 116,
"task_id": "project_cc_java/2549"
}
} |
cross_code_eval_java::project_cc_java/2543 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// core/src/main/java/work/noice/core/beans/Data.java
// }
// public void setDataAttributes(Map<St... | {
"prefix": "package work.noice.core.servlets;\n\nimport com.fasterxml.jackson.databind.ObjectMapper;\nimport com.google.gson.Gson;\nimport com.google.gson.JsonObject;\nimport org.apache.commons.io.IOUtils;\nimport org.apache.commons.lang3.StringUtils;\nimport org.apache.commons.text.StringEscapeUtils;\nimport org.ap... | customerProblem = jsonData.getDataAttributes().get("customerProblem"); | {} | {
"repository": "jaketracey-opax-44a71f1",
"file": "core/src/main/java/work/noice/core/servlets/OpaxServlet.java",
"task_id": "project_cc_java/2543"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "core/src/main/java/work/noice/core/servlets/OpaxServlet.java",
"groundtruth_start_lineno": 150,
"repository": "jaketracey-opax-44a71f1",
"right_context_start_lineno": 151,
"task_id": "project_cc_java/2543"
}
} |
cross_code_eval_java::project_cc_java/2532 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// core/src/main/java/work/noice/core/beans/Data.java
// }
// public void setDataAttributes(Map<St... | {
"prefix": "package work.noice.core.servlets;\n\nimport com.fasterxml.jackson.databind.ObjectMapper;\nimport com.google.gson.Gson;\nimport com.google.gson.JsonObject;\nimport org.apache.commons.io.IOUtils;\nimport org.apache.commons.lang3.StringUtils;\nimport org.apache.commons.text.StringEscapeUtils;\nimport org.ap... | audience = jsonData.getDataAttributes().get("audience"); | {} | {
"repository": "jaketracey-opax-44a71f1",
"file": "core/src/main/java/work/noice/core/servlets/OpaxServlet.java",
"task_id": "project_cc_java/2532"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "core/src/main/java/work/noice/core/servlets/OpaxServlet.java",
"groundtruth_start_lineno": 139,
"repository": "jaketracey-opax-44a71f1",
"right_context_start_lineno": 140,
"task_id": "project_cc_java/2532"
}
} |
cross_code_eval_java::project_cc_java/2526 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// it.tests/src/main/java/work/noice/it/tests/PublishPageValidationIT.java
// if (isSameOrigin... | {
"prefix": "package work.noice.core.servlets;\n\nimport com.fasterxml.jackson.databind.ObjectMapper;\nimport com.google.gson.Gson;\nimport com.google.gson.JsonObject;\nimport org.apache.commons.io.IOUtils;\nimport org.apache.commons.lang3.StringUtils;\nimport org.apache.commons.text.StringEscapeUtils;\nimport org.ap... | String tone = jsonData.getDataAttributes().get("tone"); | {} | {
"repository": "jaketracey-opax-44a71f1",
"file": "core/src/main/java/work/noice/core/servlets/OpaxServlet.java",
"task_id": "project_cc_java/2526"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "core/src/main/java/work/noice/core/servlets/OpaxServlet.java",
"groundtruth_start_lineno": 133,
"repository": "jaketracey-opax-44a71f1",
"right_context_start_lineno": 134,
"task_id": "project_cc_java/2526"
}
} |
cross_code_eval_java::project_cc_java/2528 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// core/src/main/java/work/noice/core/beans/Data.java
// }
// public void setDataAttributes(Map<St... | {
"prefix": "package work.noice.core.servlets;\n\nimport com.fasterxml.jackson.databind.ObjectMapper;\nimport com.google.gson.Gson;\nimport com.google.gson.JsonObject;\nimport org.apache.commons.io.IOUtils;\nimport org.apache.commons.lang3.StringUtils;\nimport org.apache.commons.text.StringEscapeUtils;\nimport org.ap... | String product = jsonData.getDataAttributes().get("product"); | {} | {
"repository": "jaketracey-opax-44a71f1",
"file": "core/src/main/java/work/noice/core/servlets/OpaxServlet.java",
"task_id": "project_cc_java/2528"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "core/src/main/java/work/noice/core/servlets/OpaxServlet.java",
"groundtruth_start_lineno": 135,
"repository": "jaketracey-opax-44a71f1",
"right_context_start_lineno": 136,
"task_id": "project_cc_java/2528"
}
} |
cross_code_eval_java::project_cc_java/2524 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// it.tests/src/main/java/work/noice/it/tests/HtmlUnitClient.java
// HtmlPage page = getPage(path,... | {
"prefix": "/*\n * Copyright 2020 Adobe Systems Incorporated\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 * ... | client.getResourceRefs(path); | {} | {
"repository": "jaketracey-opax-44a71f1",
"file": "it.tests/src/main/java/work/noice/it/tests/PublishPageValidationIT.java",
"task_id": "project_cc_java/2524"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "it.tests/src/main/java/work/noice/it/tests/PublishPageValidationIT.java",
"groundtruth_start_lineno": 112,
"repository": "jaketracey-opax-44a71f1",
"right_context_start_lineno": 113,
"task_id": "project_cc_java/2524"
}
} |
cross_code_eval_java::project_cc_java/2535 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// core/src/main/java/work/noice/core/beans/Data.java
// }
// public void setDataAttributes(Map<St... | {
"prefix": "package work.noice.core.servlets;\n\nimport com.fasterxml.jackson.databind.ObjectMapper;\nimport com.google.gson.Gson;\nimport com.google.gson.JsonObject;\nimport org.apache.commons.io.IOUtils;\nimport org.apache.commons.lang3.StringUtils;\nimport org.apache.commons.text.StringEscapeUtils;\nimport org.ap... | String gradeLevel = jsonData.getDataAttributes().get("gradeLevel"); | {} | {
"repository": "jaketracey-opax-44a71f1",
"file": "core/src/main/java/work/noice/core/servlets/OpaxServlet.java",
"task_id": "project_cc_java/2535"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "core/src/main/java/work/noice/core/servlets/OpaxServlet.java",
"groundtruth_start_lineno": 142,
"repository": "jaketracey-opax-44a71f1",
"right_context_start_lineno": 143,
"task_id": "project_cc_java/2535"
}
} |
cross_code_eval_java::project_cc_java/2715 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/kasun/discordleaderboards/Database/Cache.java
// if (cache == null) {
// ... | {
"prefix": "package org.kasun.discordleaderboards.Schedules;\n\nimport org.kasun.discordleaderboards.Database.Cache;\nimport org.kasun.discordleaderboards.Leaderboard.Leaderboard;\nimport org.kasun.discordleaderboards.Utils.SqlUtils;\nimport org.kasun.discordleaderboards.Utils.TimeUtils;\n\nimport java.sql.Timestamp... | SqlUtils.setScheduleLastSent(leaderboardname, currenttimestamp); | {} | {
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"file": "src/main/java/org/kasun/discordleaderboards/Schedules/Schedule.java",
"task_id": "project_cc_java/2715"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/kasun/discordleaderboards/Schedules/Schedule.java",
"groundtruth_start_lineno": 79,
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"right_context_start_lineno": 80,
"task_id": "project_cc_java/2715"
}
} |
cross_code_eval_java::project_cc_java/2712 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/kasun/discordleaderboards/Database/Cache.java
// if (cache == null) {
// ... | {
"prefix": "package org.kasun.discordleaderboards.Schedules;\n\nimport org.kasun.discordleaderboards.Database.Cache;\nimport org.kasun.discordleaderboards.Leaderboard.Leaderboard;\nimport org.kasun.discordleaderboards.Utils.SqlUtils;\nimport org.kasun.discordleaderboards.Utils.TimeUtils;\n\nimport java.sql.Timestamp... | boolean isrefreshonsent = leaderboard.getConfig().isRefreshOnSent(); | {} | {
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"file": "src/main/java/org/kasun/discordleaderboards/Schedules/Schedule.java",
"task_id": "project_cc_java/2712"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/kasun/discordleaderboards/Schedules/Schedule.java",
"groundtruth_start_lineno": 95,
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"right_context_start_lineno": 96,
"task_id": "project_cc_java/2712"
}
} |
cross_code_eval_java::project_cc_java/2717 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/kasun/discordleaderboards/Database/Cache.java
// if (cache == null) {
// ... | {
"prefix": "package org.kasun.discordleaderboards.Schedules;\n\nimport org.kasun.discordleaderboards.Database.Cache;\nimport org.kasun.discordleaderboards.Leaderboard.Leaderboard;\nimport org.kasun.discordleaderboards.Utils.SqlUtils;\nimport org.kasun.discordleaderboards.Utils.TimeUtils;\n\nimport java.sql.Timestamp... | SqlUtils.isScheduleAlredySent(leaderboardname); | {} | {
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"file": "src/main/java/org/kasun/discordleaderboards/Schedules/Schedule.java",
"task_id": "project_cc_java/2717"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/kasun/discordleaderboards/Schedules/Schedule.java",
"groundtruth_start_lineno": 90,
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"right_context_start_lineno": 91,
"task_id": "project_cc_java/2717"
}
} |
cross_code_eval_java::project_cc_java/2718 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/kasun/discordleaderboards/Database/Cache.java
// if (cache == null) {
// ... | {
"prefix": "package org.kasun.discordleaderboards.Schedules;\n\nimport org.kasun.discordleaderboards.Database.Cache;\nimport org.kasun.discordleaderboards.Leaderboard.Leaderboard;\nimport org.kasun.discordleaderboards.Utils.SqlUtils;\nimport org.kasun.discordleaderboards.Utils.TimeUtils;\n\nimport java.sql.Timestamp... | SqlUtils.deleteAllValues(tablename, ColumnName); | {} | {
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"file": "src/main/java/org/kasun/discordleaderboards/Schedules/Schedule.java",
"task_id": "project_cc_java/2718"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/kasun/discordleaderboards/Schedules/Schedule.java",
"groundtruth_start_lineno": 99,
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"right_context_start_lineno": 100,
"task_id": "project_cc_java/2718"
}
} |
cross_code_eval_java::project_cc_java/2720 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/kasun/discordleaderboards/Leaderboard/DescriptionGenerator.java
// de... | {
"prefix": "package org.kasun.discordleaderboards.Schedules;\n\nimport org.kasun.discordleaderboards.Database.Cache;\nimport org.kasun.discordleaderboards.Leaderboard.Leaderboard;\nimport org.kasun.discordleaderboards.Utils.SqlUtils;\nimport org.kasun.discordleaderboards.Utils.TimeUtils;\n\nimport java.sql.Timestamp... | (TimeUtils.getTimestampDifference(currentTime, lastsent) >= SECSFORHOUR){ | {} | {
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"file": "src/main/java/org/kasun/discordleaderboards/Schedules/Schedule.java",
"task_id": "project_cc_java/2720"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/kasun/discordleaderboards/Schedules/Schedule.java",
"groundtruth_start_lineno": 40,
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"right_context_start_lineno": 41,
"task_id": "project_cc_java/2720"
}
} |
cross_code_eval_java::project_cc_java/2741 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/kasun/discordleaderboards/Leaderboard/DescriptionGenerator.java
// }
// ... | {
"prefix": "package org.kasun.discordleaderboards.Leaderboard;\n\nimport org.bukkit.Bukkit;\nimport org.bukkit.ChatColor;\nimport org.kasun.discordleaderboards.DiscordLeaderboards;\nimport org.kasun.discordleaderboards.Utils.DiscordWebhook;\nimport org.kasun.discordleaderboards.Configs.MainConfig;\n\nimport java.awt... | webhook.execute(); | {} | {
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"file": "src/main/java/org/kasun/discordleaderboards/Leaderboard/Leaderboard.java",
"task_id": "project_cc_java/2741"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/kasun/discordleaderboards/Leaderboard/Leaderboard.java",
"groundtruth_start_lineno": 139,
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"right_context_start_lineno": 140,
"task_id": "project_cc_java/2741"
}
} |
cross_code_eval_java::project_cc_java/2745 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/kasun/discordleaderboards/Leaderboard/TopList.java
// }
// public Map<String,... | {
"prefix": "package org.kasun.discordleaderboards.Leaderboard;\n\nimport org.bukkit.Bukkit;\nimport org.bukkit.ChatColor;\nimport org.kasun.discordleaderboards.DiscordLeaderboards;\nimport org.kasun.discordleaderboards.Utils.DiscordWebhook;\nimport org.kasun.discordleaderboards.Configs.MainConfig;\n\nimport java.awt... | = mainConfig.getDembedTitle(); | {} | {
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"file": "src/main/java/org/kasun/discordleaderboards/Leaderboard/Leaderboard.java",
"task_id": "project_cc_java/2745"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/kasun/discordleaderboards/Leaderboard/Leaderboard.java",
"groundtruth_start_lineno": 51,
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"right_context_start_lineno": 52,
"task_id": "project_cc_java/2745"
}
} |
cross_code_eval_java::project_cc_java/2739 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/kasun/discordleaderboards/Leaderboard/LeaderboardConfig.java
// this.leaderbo... | {
"prefix": "package org.kasun.discordleaderboards.Leaderboard;\n\nimport org.bukkit.Bukkit;\nimport org.bukkit.ChatColor;\nimport org.kasun.discordleaderboards.DiscordLeaderboards;\nimport org.kasun.discordleaderboards.Utils.DiscordWebhook;\nimport org.kasun.discordleaderboards.Configs.MainConfig;\n\nimport java.awt... | webhook.setAvatarUrl(webhookAvatarUrl); | {} | {
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"file": "src/main/java/org/kasun/discordleaderboards/Leaderboard/Leaderboard.java",
"task_id": "project_cc_java/2739"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/kasun/discordleaderboards/Leaderboard/Leaderboard.java",
"groundtruth_start_lineno": 92,
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"right_context_start_lineno": 93,
"task_id": "project_cc_java/2739"
}
} |
cross_code_eval_java::project_cc_java/2747 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/kasun/discordleaderboards/Leaderboard/TopList.java
// }
// public Map<String,... | {
"prefix": "package org.kasun.discordleaderboards.Leaderboard;\n\nimport org.bukkit.Bukkit;\nimport org.bukkit.ChatColor;\nimport org.kasun.discordleaderboards.DiscordLeaderboards;\nimport org.kasun.discordleaderboards.Utils.DiscordWebhook;\nimport org.kasun.discordleaderboards.Configs.MainConfig;\n\nimport java.awt... | dwebhookAvatarUrl = mainConfig.getDwebhookAvatarUrl(); | {} | {
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"file": "src/main/java/org/kasun/discordleaderboards/Leaderboard/Leaderboard.java",
"task_id": "project_cc_java/2747"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/kasun/discordleaderboards/Leaderboard/Leaderboard.java",
"groundtruth_start_lineno": 53,
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"right_context_start_lineno": 54,
"task_id": "project_cc_java/2747"
}
} |
cross_code_eval_java::project_cc_java/2752 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/kasun/discordleaderboards/DiscordSRV/LeaderboardDiscordSrvEmbed.java
// Strin... | {
"prefix": "package org.kasun.discordleaderboards.Leaderboard;\n\nimport org.bukkit.Bukkit;\nimport org.bukkit.ChatColor;\nimport org.kasun.discordleaderboards.DiscordLeaderboards;\nimport org.kasun.discordleaderboards.Utils.DiscordWebhook;\nimport org.kasun.discordleaderboards.Configs.MainConfig;\n\nimport java.awt... | dembedImage = mainConfig.getDembedImage(); | {} | {
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"file": "src/main/java/org/kasun/discordleaderboards/Leaderboard/Leaderboard.java",
"task_id": "project_cc_java/2752"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/kasun/discordleaderboards/Leaderboard/Leaderboard.java",
"groundtruth_start_lineno": 58,
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"right_context_start_lineno": 59,
"task_id": "project_cc_java/2752"
}
} |
cross_code_eval_java::project_cc_java/2754 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/kasun/discordleaderboards/DiscordSRV/DiscordsrvEmbed.java
// embedBuilder... | {
"prefix": "package org.kasun.discordleaderboards.Leaderboard;\n\nimport org.bukkit.Bukkit;\nimport org.bukkit.ChatColor;\nimport org.kasun.discordleaderboards.DiscordLeaderboards;\nimport org.kasun.discordleaderboards.Utils.DiscordWebhook;\nimport org.kasun.discordleaderboards.Configs.MainConfig;\n\nimport java.awt... | String description = descriptionGenerator.getDescription(true); | {} | {
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"file": "src/main/java/org/kasun/discordleaderboards/Leaderboard/Leaderboard.java",
"task_id": "project_cc_java/2754"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/kasun/discordleaderboards/Leaderboard/Leaderboard.java",
"groundtruth_start_lineno": 129,
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"right_context_start_lineno": 130,
"task_id": "project_cc_java/2754"
}
} |
cross_code_eval_java::project_cc_java/2759 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/kasun/discordleaderboards/Configs/MainConfig.java
// public String getStorageType... | {
"prefix": "package org.kasun.discordleaderboards.Leaderboard;\n\nimport org.bukkit.Bukkit;\nimport org.bukkit.ChatColor;\nimport org.kasun.discordleaderboards.DiscordLeaderboards;\nimport org.kasun.discordleaderboards.Utils.DiscordWebhook;\nimport org.kasun.discordleaderboards.Configs.MainConfig;\n\nimport java.awt... | String delay = leaderboardConfig.getDelay(); | {} | {
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"file": "src/main/java/org/kasun/discordleaderboards/Leaderboard/Leaderboard.java",
"task_id": "project_cc_java/2759"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/kasun/discordleaderboards/Leaderboard/Leaderboard.java",
"groundtruth_start_lineno": 66,
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"right_context_start_lineno": 67,
"task_id": "project_cc_java/2759"
}
} |
cross_code_eval_java::project_cc_java/2755 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/kasun/discordleaderboards/Leaderboard/LeaderboardConfig.java
// this.name = n... | {
"prefix": "package org.kasun.discordleaderboards.Leaderboard;\n\nimport org.bukkit.Bukkit;\nimport org.bukkit.ChatColor;\nimport org.kasun.discordleaderboards.DiscordLeaderboards;\nimport org.kasun.discordleaderboards.Utils.DiscordWebhook;\nimport org.kasun.discordleaderboards.Configs.MainConfig;\n\nimport java.awt... | String placeholder = leaderboardConfig.getPlaceholder(); | {} | {
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"file": "src/main/java/org/kasun/discordleaderboards/Leaderboard/Leaderboard.java",
"task_id": "project_cc_java/2755"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/kasun/discordleaderboards/Leaderboard/Leaderboard.java",
"groundtruth_start_lineno": 41,
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"right_context_start_lineno": 42,
"task_id": "project_cc_java/2755"
}
} |
cross_code_eval_java::project_cc_java/2751 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/kasun/discordleaderboards/Configs/MainConfig.java
// }
// public String getDe... | {
"prefix": "package org.kasun.discordleaderboards.Leaderboard;\n\nimport org.bukkit.Bukkit;\nimport org.bukkit.ChatColor;\nimport org.kasun.discordleaderboards.DiscordLeaderboards;\nimport org.kasun.discordleaderboards.Utils.DiscordWebhook;\nimport org.kasun.discordleaderboards.Configs.MainConfig;\n\nimport java.awt... | String dembedFooter = mainConfig.getDembedFooter(); | {} | {
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"file": "src/main/java/org/kasun/discordleaderboards/Leaderboard/Leaderboard.java",
"task_id": "project_cc_java/2751"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/kasun/discordleaderboards/Leaderboard/Leaderboard.java",
"groundtruth_start_lineno": 57,
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"right_context_start_lineno": 58,
"task_id": "project_cc_java/2751"
}
} |
cross_code_eval_java::project_cc_java/2763 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/kasun/discordleaderboards/Leaderboard/TopList.java
// }
// public Map<String,... | {
"prefix": "package org.kasun.discordleaderboards.Leaderboard;\n\nimport org.bukkit.Bukkit;\nimport org.bukkit.ChatColor;\nimport org.kasun.discordleaderboards.DiscordLeaderboards;\nimport org.kasun.discordleaderboards.Utils.DiscordWebhook;\nimport org.kasun.discordleaderboards.Configs.MainConfig;\n\nimport java.awt... | embedTitle = leaderboardConfig.getEmbedTitle(); | {} | {
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"file": "src/main/java/org/kasun/discordleaderboards/Leaderboard/Leaderboard.java",
"task_id": "project_cc_java/2763"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/kasun/discordleaderboards/Leaderboard/Leaderboard.java",
"groundtruth_start_lineno": 70,
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"right_context_start_lineno": 71,
"task_id": "project_cc_java/2763"
}
} |
cross_code_eval_java::project_cc_java/2799 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/kasun/discordleaderboards/Database/Database.java
// largetextsqltype = "L... | {
"prefix": "package org.kasun.discordleaderboards.Utils;\n\nimport org.bukkit.Bukkit;\nimport org.bukkit.ChatColor;\nimport org.kasun.discordleaderboards.Configs.MainConfig;\nimport org.kasun.discordleaderboards.Database.Database;\nimport org.kasun.discordleaderboards.Leaderboard.LeaderboardConfig;\n\nimport java.io... | database.getConnection().prepareStatement(
"DELETE FROM " + tableName + " WHERE " + columnName + " IS NOT NULL"
); | {} | {
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"file": "src/main/java/org/kasun/discordleaderboards/Utils/SqlUtils.java",
"task_id": "project_cc_java/2799"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/kasun/discordleaderboards/Utils/SqlUtils.java",
"groundtruth_start_lineno": 295,
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"right_context_start_lineno": 298,
"task_id": "project_cc_java/2799"
}
} |
cross_code_eval_java::project_cc_java/2793 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/kasun/discordleaderboards/Database/Database.java
// preparedStatement.exe... | {
"prefix": "package org.kasun.discordleaderboards.Utils;\n\nimport org.bukkit.Bukkit;\nimport org.bukkit.ChatColor;\nimport org.kasun.discordleaderboards.Configs.MainConfig;\nimport org.kasun.discordleaderboards.Database.Database;\nimport org.kasun.discordleaderboards.Leaderboard.LeaderboardConfig;\n\nimport java.io... | database.getConnection().prepareStatement(
"REPLACE INTO Schedule (Leaderboard, LastSent) VALUES (?, ?)"
); | {} | {
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"file": "src/main/java/org/kasun/discordleaderboards/Utils/SqlUtils.java",
"task_id": "project_cc_java/2793"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/kasun/discordleaderboards/Utils/SqlUtils.java",
"groundtruth_start_lineno": 156,
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"right_context_start_lineno": 159,
"task_id": "project_cc_java/2793"
}
} |
cross_code_eval_java::project_cc_java/2776 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/kasun/discordleaderboards/Commands/DLCommand.java
// p.sendMessage(Ch... | {
"prefix": "package org.kasun.discordleaderboards.Database;\n\nimport me.clip.placeholderapi.PlaceholderAPI;\nimport org.bukkit.OfflinePlayer;\nimport org.bukkit.entity.Player;\nimport org.kasun.discordleaderboards.Configs.MainConfig;\nimport org.kasun.discordleaderboards.Leaderboard.Leaderboard;\nimport org.kasun.d... | SqlUtils.addUserDataToDatabase(placeholderColumnName, uuid, username, value); | {} | {
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"file": "src/main/java/org/kasun/discordleaderboards/Database/UserData.java",
"task_id": "project_cc_java/2776"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/kasun/discordleaderboards/Database/UserData.java",
"groundtruth_start_lineno": 55,
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"right_context_start_lineno": 56,
"task_id": "project_cc_java/2776"
}
} |
cross_code_eval_java::project_cc_java/2765 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/kasun/discordleaderboards/Leaderboard/TopList.java
// }
// public Map<String,... | {
"prefix": "package org.kasun.discordleaderboards.Leaderboard;\n\nimport org.bukkit.Bukkit;\nimport org.bukkit.ChatColor;\nimport org.kasun.discordleaderboards.DiscordLeaderboards;\nimport org.kasun.discordleaderboards.Utils.DiscordWebhook;\nimport org.kasun.discordleaderboards.Configs.MainConfig;\n\nimport java.awt... | String embedColour = leaderboardConfig.getEmbedColour(); | {} | {
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"file": "src/main/java/org/kasun/discordleaderboards/Leaderboard/Leaderboard.java",
"task_id": "project_cc_java/2765"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/kasun/discordleaderboards/Leaderboard/Leaderboard.java",
"groundtruth_start_lineno": 72,
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"right_context_start_lineno": 73,
"task_id": "project_cc_java/2765"
}
} |
cross_code_eval_java::project_cc_java/2761 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/kasun/discordleaderboards/Leaderboard/TopList.java
// }
// public Map<String,... | {
"prefix": "package org.kasun.discordleaderboards.Leaderboard;\n\nimport org.bukkit.Bukkit;\nimport org.bukkit.ChatColor;\nimport org.kasun.discordleaderboards.DiscordLeaderboards;\nimport org.kasun.discordleaderboards.Utils.DiscordWebhook;\nimport org.kasun.discordleaderboards.Configs.MainConfig;\n\nimport java.awt... | String webhookAvatarUrl = leaderboardConfig.getWebhookAvatarUrl(); | {} | {
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"file": "src/main/java/org/kasun/discordleaderboards/Leaderboard/Leaderboard.java",
"task_id": "project_cc_java/2761"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/kasun/discordleaderboards/Leaderboard/Leaderboard.java",
"groundtruth_start_lineno": 68,
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"right_context_start_lineno": 69,
"task_id": "project_cc_java/2761"
}
} |
cross_code_eval_java::project_cc_java/2786 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/kasun/discordleaderboards/Database/Database.java
// preparedStatement.exe... | {
"prefix": "package org.kasun.discordleaderboards.Utils;\n\nimport org.bukkit.Bukkit;\nimport org.bukkit.ChatColor;\nimport org.kasun.discordleaderboards.Configs.MainConfig;\nimport org.kasun.discordleaderboards.Database.Database;\nimport org.kasun.discordleaderboards.Leaderboard.LeaderboardConfig;\n\nimport java.io... | UnsupportedOperationException("Unsupported storage type: " + mainConfig.getStorageType()); | {} | {
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"file": "src/main/java/org/kasun/discordleaderboards/Utils/SqlUtils.java",
"task_id": "project_cc_java/2786"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/kasun/discordleaderboards/Utils/SqlUtils.java",
"groundtruth_start_lineno": 303,
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"right_context_start_lineno": 304,
"task_id": "project_cc_java/2786"
}
} |
cross_code_eval_java::project_cc_java/2794 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/kasun/discordleaderboards/Utils/StartMessage.java
// Bukkit.getServer().getCo... | {
"prefix": "package org.kasun.discordleaderboards.Utils;\n\nimport org.bukkit.Bukkit;\nimport org.bukkit.ChatColor;\nimport org.kasun.discordleaderboards.Configs.MainConfig;\nimport org.kasun.discordleaderboards.Database.Database;\nimport org.kasun.discordleaderboards.Leaderboard.LeaderboardConfig;\n\nimport java.io... | preparedStatement = database.getConnection().prepareStatement("SELECT COUNT(*) AS count FROM Schedule WHERE Leaderboard = ?"); | {} | {
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"file": "src/main/java/org/kasun/discordleaderboards/Utils/SqlUtils.java",
"task_id": "project_cc_java/2794"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/kasun/discordleaderboards/Utils/SqlUtils.java",
"groundtruth_start_lineno": 176,
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"right_context_start_lineno": 177,
"task_id": "project_cc_java/2794"
}
} |
cross_code_eval_java::project_cc_java/2800 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/kasun/discordleaderboards/Database/Database.java
// largetextsqltype = "L... | {
"prefix": "package org.kasun.discordleaderboards.Utils;\n\nimport org.bukkit.Bukkit;\nimport org.bukkit.ChatColor;\nimport org.kasun.discordleaderboards.Configs.MainConfig;\nimport org.kasun.discordleaderboards.Database.Database;\nimport org.kasun.discordleaderboards.Leaderboard.LeaderboardConfig;\n\nimport java.io... | preparedStatement = database.getConnection().prepareStatement(
"UPDATE " + tableName + " SET " + columnName + " = NULL"
); | {} | {
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"file": "src/main/java/org/kasun/discordleaderboards/Utils/SqlUtils.java",
"task_id": "project_cc_java/2800"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/kasun/discordleaderboards/Utils/SqlUtils.java",
"groundtruth_start_lineno": 299,
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"right_context_start_lineno": 302,
"task_id": "project_cc_java/2800"
}
} |
cross_code_eval_java::project_cc_java/2809 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/me/robot9/shared/QuadRenderer.java
// public void release() {
// int[] fr... | {
"prefix": "/*\n * SharedTexture\n * @author \t: keith@robot9.me\n *\n */\n\npackage me.robot9.shared;\n\nimport android.app.Service;\nimport android.content.Intent;\nimport android.hardware.HardwareBuffer;\nimport android.opengl.EGL14;\nimport android.opengl.EGLSurface;\nimport android.opengl.GLES20;\nimport androi... | outputEGLSurface = outputEglCore.createOffsetScreenSurface(renderWidth, renderHeight); | {} | {
"repository": "keith2018-SharedTexture-1995d41",
"file": "app/src/main/java/me/robot9/shared/OffscreenService.java",
"task_id": "project_cc_java/2809"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "app/src/main/java/me/robot9/shared/OffscreenService.java",
"groundtruth_start_lineno": 115,
"repository": "keith2018-SharedTexture-1995d41",
"right_context_start_lineno": 116,
"task_id": "project_cc_java/2809"
}
} |
cross_code_eval_java::project_cc_java/2795 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/kasun/discordleaderboards/Schedules/Schedule.java
// }
// public void deleteD... | {
"prefix": "package org.kasun.discordleaderboards.Utils;\n\nimport org.bukkit.Bukkit;\nimport org.bukkit.ChatColor;\nimport org.kasun.discordleaderboards.Configs.MainConfig;\nimport org.kasun.discordleaderboards.Database.Database;\nimport org.kasun.discordleaderboards.Leaderboard.LeaderboardConfig;\n\nimport java.io... | database.getConnection().prepareStatement("SELECT " + "LastSent" + " FROM Schedule WHERE Leaderboard = ?"); | {} | {
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"file": "src/main/java/org/kasun/discordleaderboards/Utils/SqlUtils.java",
"task_id": "project_cc_java/2795"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/kasun/discordleaderboards/Utils/SqlUtils.java",
"groundtruth_start_lineno": 196,
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"right_context_start_lineno": 197,
"task_id": "project_cc_java/2795"
}
} |
cross_code_eval_java::project_cc_java/2811 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/me/robot9/shared/OffscreenService.java
// public void destroy() throws Re... | {
"prefix": "/*\n * SharedTexture\n * @author \t: keith@robot9.me\n *\n */\n\npackage me.robot9.shared;\n\nimport android.content.ComponentName;\nimport android.content.Intent;\nimport android.content.ServiceConnection;\nimport android.opengl.GLES20;\nimport android.os.Bundle;\nimport android.os.IBinder;\nimport andr... | quadRenderer.drawTexture(texId, renderWidth, renderHeight); | {} | {
"repository": "keith2018-SharedTexture-1995d41",
"file": "app/src/main/java/me/robot9/shared/MainActivity.java",
"task_id": "project_cc_java/2811"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "app/src/main/java/me/robot9/shared/MainActivity.java",
"groundtruth_start_lineno": 103,
"repository": "keith2018-SharedTexture-1995d41",
"right_context_start_lineno": 104,
"task_id": "project_cc_java/2811"
}
} |
cross_code_eval_java::project_cc_java/2771 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/kasun/discordleaderboards/Listeners/PlayerQuit.java
// UserData userData = ne... | {
"prefix": "package org.kasun.discordleaderboards.Database;\n\nimport me.clip.placeholderapi.PlaceholderAPI;\nimport org.bukkit.OfflinePlayer;\nimport org.bukkit.entity.Player;\nimport org.kasun.discordleaderboards.Configs.MainConfig;\nimport org.kasun.discordleaderboards.Leaderboard.Leaderboard;\nimport org.kasun.d... | , leaderboard.getConfig().getPlaceholder()); | {} | {
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"file": "src/main/java/org/kasun/discordleaderboards/Database/UserData.java",
"task_id": "project_cc_java/2771"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/kasun/discordleaderboards/Database/UserData.java",
"groundtruth_start_lineno": 93,
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"right_context_start_lineno": 94,
"task_id": "project_cc_java/2771"
}
} |
cross_code_eval_java::project_cc_java/2792 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/kasun/discordleaderboards/Database/Database.java
// largetextsqltype = "L... | {
"prefix": "package org.kasun.discordleaderboards.Utils;\n\nimport org.bukkit.Bukkit;\nimport org.bukkit.ChatColor;\nimport org.kasun.discordleaderboards.Configs.MainConfig;\nimport org.kasun.discordleaderboards.Database.Database;\nimport org.kasun.discordleaderboards.Leaderboard.LeaderboardConfig;\n\nimport java.io... | database.getConnection().prepareStatement("MERGE INTO Schedule s USING (VALUES (?, ?)) data (Leaderboard, LastSent) ON s.Leaderboard = data.Leaderboard WHEN MATCHED THEN UPDATE SET s.LastSent = data.LastSent WHEN NOT MATCHED THEN INSERT (Leaderboard, LastSent) VALUES (data.Leaderboard, data.LastSent); | {} | {
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"file": "src/main/java/org/kasun/discordleaderboards/Utils/SqlUtils.java",
"task_id": "project_cc_java/2792"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/kasun/discordleaderboards/Utils/SqlUtils.java",
"groundtruth_start_lineno": 146,
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"right_context_start_lineno": 147,
"task_id": "project_cc_java/2792"
}
} |
cross_code_eval_java::project_cc_java/2814 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// Common/src/main/java/me/khajiitos/servercountryflags/common/util/LocationInfo.java
// this.... | {
"prefix": "package me.khajiitos.servercountryflags.common.config;\n\nimport me.khajiitos.servercountryflags.common.ServerCountryFlags;\nimport net.minecraft.client.Minecraft;\nimport net.minecraft.client.gui.screens.Screen;\nimport net.minecraft.client.gui.screens.multiplayer.JoinMultiplayerScreen;\nimport net.mine... | ServerCountryFlags.updateAPILanguage(null); | {} | {
"repository": "Khajiitos-ServerCountryFlags-e056c80",
"file": "Common/src/main/java/me/khajiitos/servercountryflags/common/config/Config.java",
"task_id": "project_cc_java/2814"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "Common/src/main/java/me/khajiitos/servercountryflags/common/config/Config.java",
"groundtruth_start_lineno": 161,
"repository": "Khajiitos-ServerCountryFlags-e056c80",
"right_context_start_lineno": 162,
"task_id": "project_cc_java/2814"
}
} |
cross_code_eval_java::project_cc_java/2779 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/kasun/discordleaderboards/Leaderboard/TopList.java
// for (Map.Entry<String, ... | {
"prefix": "package org.kasun.discordleaderboards.Utils;\n\nimport org.bukkit.Bukkit;\nimport org.bukkit.ChatColor;\nimport org.kasun.discordleaderboards.Configs.MainConfig;\nimport org.kasun.discordleaderboards.Database.Database;\nimport org.kasun.discordleaderboards.Leaderboard.LeaderboardConfig;\n\nimport java.io... | String databaseName = mainConfig.getStorageType(); | {} | {
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"file": "src/main/java/org/kasun/discordleaderboards/Utils/SqlUtils.java",
"task_id": "project_cc_java/2779"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/kasun/discordleaderboards/Utils/SqlUtils.java",
"groundtruth_start_lineno": 95,
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"right_context_start_lineno": 96,
"task_id": "project_cc_java/2779"
}
} |
cross_code_eval_java::project_cc_java/2824 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// Common/src/main/java/me/khajiitos/servercountryflags/common/APITimeoutManager.java
// }
// publ... | {
"prefix": "package me.khajiitos.servercountryflags.common;\n\nimport com.google.gson.JsonElement;\nimport com.google.gson.JsonObject;\nimport com.google.gson.JsonParser;\nimport com.mojang.blaze3d.platform.NativeImage;\nimport me.khajiitos.servercountryflags.common.config.Config;\nimport me.khajiitos.servercountryf... | .setRequestsLeft(requestsLeft - APITimeoutManager.getRequestsSent()); | {} | {
"repository": "Khajiitos-ServerCountryFlags-e056c80",
"file": "Common/src/main/java/me/khajiitos/servercountryflags/common/ServerCountryFlags.java",
"task_id": "project_cc_java/2824"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "Common/src/main/java/me/khajiitos/servercountryflags/common/ServerCountryFlags.java",
"groundtruth_start_lineno": 137,
"repository": "Khajiitos-ServerCountryFlags-e056c80",
"right_context_start_lineno": 138,
"task_id": "project_cc_java/2824"
... |
cross_code_eval_java::project_cc_java/2802 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/kasun/discordleaderboards/Utils/SqlUtils.java
// Database database = new ... | {
"prefix": "package org.kasun.discordleaderboards.Commands;\n\nimport me.clip.placeholderapi.PlaceholderAPI;\nimport org.bukkit.Bukkit;\nimport org.bukkit.ChatColor;\nimport org.bukkit.OfflinePlayer;\nimport org.bukkit.command.Command;\nimport org.bukkit.command.CommandSender;\nimport org.bukkit.command.TabExecutor;... | userData.addUserDataToDBAllPlayersThisPlaceholder(); | {} | {
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"file": "src/main/java/org/kasun/discordleaderboards/Commands/DLCommand.java",
"task_id": "project_cc_java/2802"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/kasun/discordleaderboards/Commands/DLCommand.java",
"groundtruth_start_lineno": 108,
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"right_context_start_lineno": 109,
"task_id": "project_cc_java/2802"
}
} |
cross_code_eval_java::project_cc_java/2825 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// Common/src/main/java/me/khajiitos/servercountryflags/common/APITimeoutManager.java
// }
// publ... | {
"prefix": "package me.khajiitos.servercountryflags.common;\n\nimport com.google.gson.JsonElement;\nimport com.google.gson.JsonObject;\nimport com.google.gson.JsonParser;\nimport com.mojang.blaze3d.platform.NativeImage;\nimport me.khajiitos.servercountryflags.common.config.Config;\nimport me.khajiitos.servercountryf... | APITimeoutManager.setSecondsLeftUntilReset(secondsLeft); | {} | {
"repository": "Khajiitos-ServerCountryFlags-e056c80",
"file": "Common/src/main/java/me/khajiitos/servercountryflags/common/ServerCountryFlags.java",
"task_id": "project_cc_java/2825"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "Common/src/main/java/me/khajiitos/servercountryflags/common/ServerCountryFlags.java",
"groundtruth_start_lineno": 138,
"repository": "Khajiitos-ServerCountryFlags-e056c80",
"right_context_start_lineno": 139,
"task_id": "project_cc_java/2825"
... |
cross_code_eval_java::project_cc_java/2821 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// Common/src/main/java/me/khajiitos/servercountryflags/common/screen/ServerMapScreen.java
// ... | {
"prefix": "package me.khajiitos.servercountryflags.common;\n\nimport com.google.gson.JsonElement;\nimport com.google.gson.JsonObject;\nimport com.google.gson.JsonParser;\nimport com.mojang.blaze3d.platform.NativeImage;\nimport me.khajiitos.servercountryflags.common.config.Config;\nimport me.khajiitos.servercountryf... | (APITimeoutManager.isOnCooldown()) { | {} | {
"repository": "Khajiitos-ServerCountryFlags-e056c80",
"file": "Common/src/main/java/me/khajiitos/servercountryflags/common/ServerCountryFlags.java",
"task_id": "project_cc_java/2821"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "Common/src/main/java/me/khajiitos/servercountryflags/common/ServerCountryFlags.java",
"groundtruth_start_lineno": 117,
"repository": "Khajiitos-ServerCountryFlags-e056c80",
"right_context_start_lineno": 118,
"task_id": "project_cc_java/2821"
... |
cross_code_eval_java::project_cc_java/2823 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// Common/src/main/java/me/khajiitos/servercountryflags/common/APITimeoutManager.java
// }
// publ... | {
"prefix": "package me.khajiitos.servercountryflags.common;\n\nimport com.google.gson.JsonElement;\nimport com.google.gson.JsonObject;\nimport com.google.gson.JsonParser;\nimport com.mojang.blaze3d.platform.NativeImage;\nimport me.khajiitos.servercountryflags.common.config.Config;\nimport me.khajiitos.servercountryf... | APITimeoutManager.decrementRequestsSent(); | {} | {
"repository": "Khajiitos-ServerCountryFlags-e056c80",
"file": "Common/src/main/java/me/khajiitos/servercountryflags/common/ServerCountryFlags.java",
"task_id": "project_cc_java/2823"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "Common/src/main/java/me/khajiitos/servercountryflags/common/ServerCountryFlags.java",
"groundtruth_start_lineno": 134,
"repository": "Khajiitos-ServerCountryFlags-e056c80",
"right_context_start_lineno": 135,
"task_id": "project_cc_java/2823"
... |
cross_code_eval_java::project_cc_java/2822 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// Common/src/main/java/me/khajiitos/servercountryflags/common/util/APIResponse.java
// UNKNOWN,
/... | {
"prefix": "package me.khajiitos.servercountryflags.common;\n\nimport com.google.gson.JsonElement;\nimport com.google.gson.JsonObject;\nimport com.google.gson.JsonParser;\nimport com.mojang.blaze3d.platform.NativeImage;\nimport me.khajiitos.servercountryflags.common.config.Config;\nimport me.khajiitos.servercountryf... | APITimeoutManager.incrementRequestsSent(); | {} | {
"repository": "Khajiitos-ServerCountryFlags-e056c80",
"file": "Common/src/main/java/me/khajiitos/servercountryflags/common/ServerCountryFlags.java",
"task_id": "project_cc_java/2822"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "Common/src/main/java/me/khajiitos/servercountryflags/common/ServerCountryFlags.java",
"groundtruth_start_lineno": 126,
"repository": "Khajiitos-ServerCountryFlags-e056c80",
"right_context_start_lineno": 127,
"task_id": "project_cc_java/2822"
... |
cross_code_eval_java::project_cc_java/2893 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/com/konloch/TestHTTPServer.java
// catch (IOException e)
// {
// e.pri... | {
"prefix": "package com.konloch.http.webserver;\n\nimport com.konloch.disklib.DiskReader;\nimport com.konloch.http.request.Request;\nimport com.konloch.http.request.RequestListener;\n\nimport java.io.File;\nimport java.io.IOException;\nimport java.nio.charset.StandardCharsets;\n\n/**\n * The web server is a higher l... | request.setReturnCode(500); | {} | {
"repository": "Konloch-HTTPdLib-b7a1e2e",
"file": "src/main/java/com/konloch/http/webserver/WebServer.java",
"task_id": "project_cc_java/2893"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/konloch/http/webserver/WebServer.java",
"groundtruth_start_lineno": 51,
"repository": "Konloch-HTTPdLib-b7a1e2e",
"right_context_start_lineno": 52,
"task_id": "project_cc_java/2893"
}
} |
cross_code_eval_java::project_cc_java/2898 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/konloch/http/client/ClientBuffer.java
// if(returnCarriage)
// {
// if (... | {
"prefix": "package com.konloch.http.protocol.decoder;\n\nimport com.konloch.http.HTTPdLib;\n\nimport java.util.HashMap;\n\n/**\n * @author Konloch\n * @since 3/1/2023\n */\npublic class RequestDecoder\n{\n\tprivate final HTTPdLib server;\n\t\n\tpublic RequestDecoder(HTTPdLib server)\n\t{\n\t\tthis.server = server;\... | >= server.getMaximumHeaderParameterCount())
return parameters; | {} | {
"repository": "Konloch-HTTPdLib-b7a1e2e",
"file": "src/main/java/com/konloch/http/protocol/decoder/RequestDecoder.java",
"task_id": "project_cc_java/2898"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/konloch/http/protocol/decoder/RequestDecoder.java",
"groundtruth_start_lineno": 54,
"repository": "Konloch-HTTPdLib-b7a1e2e",
"right_context_start_lineno": 56,
"task_id": "project_cc_java/2898"
}
} |
cross_code_eval_java::project_cc_java/2897 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/konloch/http/protocol/decoder/RequestDecoder.java
// public HashMap<String, String> ... | {
"prefix": "package com.konloch.http.protocol.encoder;\n\nimport com.konloch.http.HTTPdLib;\nimport com.konloch.http.request.Request;\n\nimport java.io.ByteArrayOutputStream;\nimport java.nio.charset.StandardCharsets;\nimport java.time.ZonedDateTime;\nimport java.time.format.DateTimeFormatter;\nimport java.util.Hash... | request.getContentType()); | {} | {
"repository": "Konloch-HTTPdLib-b7a1e2e",
"file": "src/main/java/com/konloch/http/protocol/encoder/RequestEncoder.java",
"task_id": "project_cc_java/2897"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/konloch/http/protocol/encoder/RequestEncoder.java",
"groundtruth_start_lineno": 37,
"repository": "Konloch-HTTPdLib-b7a1e2e",
"right_context_start_lineno": 38,
"task_id": "project_cc_java/2897"
}
} |
cross_code_eval_java::project_cc_java/2902 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/konloch/http/protocol/encoder/RequestEncoder.java
// headers.put("Content-Type", r... | {
"prefix": "package com.konloch.http.protocol.decoder;\n\nimport com.konloch.http.HTTPdLib;\n\nimport java.util.HashMap;\n\n/**\n * @author Konloch\n * @since 3/1/2023\n */\npublic class RequestDecoder\n{\n\tprivate final HTTPdLib server;\n\t\n\tpublic RequestDecoder(HTTPdLib server)\n\t{\n\t\tthis.server = server;\... | if(cookies.size() >= server.getMaximumCookieCount())
break; | {} | {
"repository": "Konloch-HTTPdLib-b7a1e2e",
"file": "src/main/java/com/konloch/http/protocol/decoder/RequestDecoder.java",
"task_id": "project_cc_java/2902"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/konloch/http/protocol/decoder/RequestDecoder.java",
"groundtruth_start_lineno": 185,
"repository": "Konloch-HTTPdLib-b7a1e2e",
"right_context_start_lineno": 187,
"task_id": "project_cc_java/2902"
}
} |
cross_code_eval_java::project_cc_java/2900 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/konloch/http/request/RequestBuilder.java
// String path = headerParams[1];
// S... | {
"prefix": "package com.konloch.http.protocol.decoder;\n\nimport com.konloch.http.HTTPdLib;\n\nimport java.util.HashMap;\n\n/**\n * @author Konloch\n * @since 3/1/2023\n */\npublic class RequestDecoder\n{\n\tprivate final HTTPdLib server;\n\t\n\tpublic RequestDecoder(HTTPdLib server)\n\t{\n\t\tthis.server = server;\... | size() >= server.getMaximumHeaderParameterSize())
break; | {} | {
"repository": "Konloch-HTTPdLib-b7a1e2e",
"file": "src/main/java/com/konloch/http/protocol/decoder/RequestDecoder.java",
"task_id": "project_cc_java/2900"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/konloch/http/protocol/decoder/RequestDecoder.java",
"groundtruth_start_lineno": 121,
"repository": "Konloch-HTTPdLib-b7a1e2e",
"right_context_start_lineno": 123,
"task_id": "project_cc_java/2900"
}
} |
cross_code_eval_java::project_cc_java/2899 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/konloch/http/protocol/encoder/RequestEncoder.java
// headers.put("Content-Type", r... | {
"prefix": "package com.konloch.http.protocol.decoder;\n\nimport com.konloch.http.HTTPdLib;\n\nimport java.util.HashMap;\n\n/**\n * @author Konloch\n * @since 3/1/2023\n */\npublic class RequestDecoder\n{\n\tprivate final HTTPdLib server;\n\t\n\tpublic RequestDecoder(HTTPdLib server)\n\t{\n\t\tthis.server = server;\... | if(value.length() < server.getMaximumHeaderParameterSize())
value.append(c); | {} | {
"repository": "Konloch-HTTPdLib-b7a1e2e",
"file": "src/main/java/com/konloch/http/protocol/decoder/RequestDecoder.java",
"task_id": "project_cc_java/2899"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/konloch/http/protocol/decoder/RequestDecoder.java",
"groundtruth_start_lineno": 66,
"repository": "Konloch-HTTPdLib-b7a1e2e",
"right_context_start_lineno": 68,
"task_id": "project_cc_java/2899"
}
} |
cross_code_eval_java::project_cc_java/2905 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/konloch/http/client/ClientBuffer.java
// if(!hasReachedEOL)
// getEOL(headerBu... | {
"prefix": "package com.konloch.http;\n\nimport com.konloch.http.client.ClientBuffer;\nimport com.konloch.http.request.Request;\nimport com.konloch.http.request.RequestBuilder;\nimport com.konloch.http.request.RequestListener;\nimport com.konloch.socket.SocketClient;\nimport com.konloch.socket.SocketServer;\n\nimpor... | buffer.writeBody(bytes); | {} | {
"repository": "Konloch-HTTPdLib-b7a1e2e",
"file": "src/main/java/com/konloch/http/HTTPdLib.java",
"task_id": "project_cc_java/2905"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/konloch/http/HTTPdLib.java",
"groundtruth_start_lineno": 145,
"repository": "Konloch-HTTPdLib-b7a1e2e",
"right_context_start_lineno": 146,
"task_id": "project_cc_java/2905"
}
} |
cross_code_eval_java::project_cc_java/2904 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/konloch/http/client/ClientBuffer.java
// if(!hasReachedEOL)
// getEOL(headerBu... | {
"prefix": "package com.konloch.http;\n\nimport com.konloch.http.client.ClientBuffer;\nimport com.konloch.http.request.Request;\nimport com.konloch.http.request.RequestBuilder;\nimport com.konloch.http.request.RequestListener;\nimport com.konloch.socket.SocketClient;\nimport com.konloch.socket.SocketServer;\n\nimpor... | buffer.writeHeader(bytes); | {} | {
"repository": "Konloch-HTTPdLib-b7a1e2e",
"file": "src/main/java/com/konloch/http/HTTPdLib.java",
"task_id": "project_cc_java/2904"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/konloch/http/HTTPdLib.java",
"groundtruth_start_lineno": 93,
"repository": "Konloch-HTTPdLib-b7a1e2e",
"right_context_start_lineno": 94,
"task_id": "project_cc_java/2904"
}
} |
cross_code_eval_java::project_cc_java/2910 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/konloch/http/request/Request.java
// public String getRemoteIP()
// {
// return r... | {
"prefix": "package com.konloch.http.request;\n\nimport com.konloch.http.HTTPdLib;\nimport com.konloch.http.client.ClientBuffer;\nimport com.konloch.http.protocol.encoder.RequestEncoder;\nimport com.konloch.http.protocol.decoder.RequestDecoder;\nimport com.konloch.socket.SocketClient;\nimport com.konloch.util.FastSt... | = decoder.decodeParameters(new String(buffer.bodyBuffer.toByteArray(), StandardCharsets.UTF_8)); | {} | {
"repository": "Konloch-HTTPdLib-b7a1e2e",
"file": "src/main/java/com/konloch/http/request/RequestBuilder.java",
"task_id": "project_cc_java/2910"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/konloch/http/request/RequestBuilder.java",
"groundtruth_start_lineno": 68,
"repository": "Konloch-HTTPdLib-b7a1e2e",
"right_context_start_lineno": 69,
"task_id": "project_cc_java/2910"
}
} |
cross_code_eval_java::project_cc_java/2906 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/konloch/http/request/RequestBuilder.java
// final String header = parameters.get(":... | {
"prefix": "package com.konloch.http;\n\nimport com.konloch.http.client.ClientBuffer;\nimport com.konloch.http.request.Request;\nimport com.konloch.http.request.RequestBuilder;\nimport com.konloch.http.request.RequestListener;\nimport com.konloch.socket.SocketClient;\nimport com.konloch.socket.SocketServer;\n\nimpor... | client.setOutputBufferCache(requestBuilder.getEncoder().generateResponse(buffer.request, requestListener.request(buffer.request))); | {} | {
"repository": "Konloch-HTTPdLib-b7a1e2e",
"file": "src/main/java/com/konloch/http/HTTPdLib.java",
"task_id": "project_cc_java/2906"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/konloch/http/HTTPdLib.java",
"groundtruth_start_lineno": 123,
"repository": "Konloch-HTTPdLib-b7a1e2e",
"right_context_start_lineno": 124,
"task_id": "project_cc_java/2906"
}
} |
cross_code_eval_java::project_cc_java/2907 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/com/konloch/LocalHTTPStressTest.java
// }
// }
// });
// thread.start();
/... | {
"prefix": "package com.konloch.http;\n\nimport com.konloch.http.client.ClientBuffer;\nimport com.konloch.http.request.Request;\nimport com.konloch.http.request.RequestBuilder;\nimport com.konloch.http.request.RequestListener;\nimport com.konloch.socket.SocketClient;\nimport com.konloch.socket.SocketServer;\n\nimpor... | setOutputBufferCache(requestBuilder.getEncoder().generateResponse(buffer.request,
requestListener.request(buffer.request))); | {} | {
"repository": "Konloch-HTTPdLib-b7a1e2e",
"file": "src/main/java/com/konloch/http/HTTPdLib.java",
"task_id": "project_cc_java/2907"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/konloch/http/HTTPdLib.java",
"groundtruth_start_lineno": 157,
"repository": "Konloch-HTTPdLib-b7a1e2e",
"right_context_start_lineno": 159,
"task_id": "project_cc_java/2907"
}
} |
cross_code_eval_java::project_cc_java/2911 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/konloch/http/request/Request.java
// public String getRemoteIP()
// {
// return r... | {
"prefix": "package com.konloch.http.request;\n\nimport com.konloch.http.HTTPdLib;\nimport com.konloch.http.client.ClientBuffer;\nimport com.konloch.http.protocol.encoder.RequestEncoder;\nimport com.konloch.http.protocol.decoder.RequestDecoder;\nimport com.konloch.socket.SocketClient;\nimport com.konloch.util.FastSt... | cookies = decoder.decodeCookies(parameters.get("Cookie")); | {} | {
"repository": "Konloch-HTTPdLib-b7a1e2e",
"file": "src/main/java/com/konloch/http/request/RequestBuilder.java",
"task_id": "project_cc_java/2911"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/konloch/http/request/RequestBuilder.java",
"groundtruth_start_lineno": 74,
"repository": "Konloch-HTTPdLib-b7a1e2e",
"right_context_start_lineno": 75,
"task_id": "project_cc_java/2911"
}
} |
cross_code_eval_java::project_cc_java/2839 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/github/kingschan1204/easycrawl/plugs/freemarker/FreemarkParser.java
// config... | {
"prefix": "package com.github.kingschan1204.easycrawl.core.variable;\n\nimport com.github.kingschan1204.easycrawl.core.variable.impl.TimeStampExpression;\nimport com.github.kingschan1204.easycrawl.helper.regex.RegexHelper;\nimport com.github.kingschan1204.easycrawl.helper.collections.MapUtil;\n\nimport java.util.Ha... | List<String> exps = RegexHelper.find(text, "\\$\\{ | {} | {
"repository": "kingschan1204-easycrawl-a5aade8",
"file": "src/main/java/com/github/kingschan1204/easycrawl/core/variable/ScanVariable.java",
"task_id": "project_cc_java/2839"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/github/kingschan1204/easycrawl/core/variable/ScanVariable.java",
"groundtruth_start_lineno": 33,
"repository": "kingschan1204-easycrawl-a5aade8",
"right_context_start_lineno": 34,
"task_id": "project_cc_java/2839"
}
} |
cross_code_eval_java::project_cc_java/2845 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/com/github/kingschan1204/easycrawl/SzseTest.java
// cf.thenAccept(System.out:... | {
"prefix": "package com.github.kingschan1204.easycrawl.task;\n\nimport com.github.kingschan1204.easycrawl.core.agent.WebAgent;\nimport com.github.kingschan1204.easycrawl.helper.http.UrlHelper;\nimport com.github.kingschan1204.easycrawl.helper.json.JsonHelper;\nimport com.github.kingschan1204.easycrawl.helper.validat... | webAgent.url(url).execute(map); | {} | {
"repository": "kingschan1204-easycrawl-a5aade8",
"file": "src/main/java/com/github/kingschan1204/easycrawl/task/EasyCrawl.java",
"task_id": "project_cc_java/2845"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/github/kingschan1204/easycrawl/task/EasyCrawl.java",
"groundtruth_start_lineno": 88,
"repository": "kingschan1204-easycrawl-a5aade8",
"right_context_start_lineno": 89,
"task_id": "project_cc_java/2845"
}
} |
cross_code_eval_java::project_cc_java/2842 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/github/kingschan1204/easycrawl/core/variable/ScanVariable.java
// Str... | {
"prefix": "package com.github.kingschan1204.easycrawl.task;\n\nimport com.github.kingschan1204.easycrawl.core.agent.WebAgent;\nimport com.github.kingschan1204.easycrawl.helper.http.UrlHelper;\nimport com.github.kingschan1204.easycrawl.helper.json.JsonHelper;\nimport com.github.kingschan1204.easycrawl.helper.validat... | data = webAgent.execute(map); | {} | {
"repository": "kingschan1204-easycrawl-a5aade8",
"file": "src/main/java/com/github/kingschan1204/easycrawl/task/EasyCrawl.java",
"task_id": "project_cc_java/2842"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/github/kingschan1204/easycrawl/task/EasyCrawl.java",
"groundtruth_start_lineno": 67,
"repository": "kingschan1204-easycrawl-a5aade8",
"right_context_start_lineno": 68,
"task_id": "project_cc_java/2842"
}
} |
cross_code_eval_java::project_cc_java/2832 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/github/kingschan1204/easycrawl/core/agent/interceptor/impl/StatusPrintInterceptorImpl... | {
"prefix": "package com.github.kingschan1204.easycrawl.helper.http;\n\nimport com.github.kingschan1204.easycrawl.core.agent.AgentResult;\nimport lombok.extern.slf4j.Slf4j;\n\n/**\n * @author kingschan\n */\n@Slf4j\npublic class ResponseAssertHelper {\n\n private AgentResult result;\n\n public ResponseAssertHel... | !result.getStatusCode().equals(200)) { | {} | {
"repository": "kingschan1204-easycrawl-a5aade8",
"file": "src/main/java/com/github/kingschan1204/easycrawl/helper/http/ResponseAssertHelper.java",
"task_id": "project_cc_java/2832"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/github/kingschan1204/easycrawl/helper/http/ResponseAssertHelper.java",
"groundtruth_start_lineno": 28,
"repository": "kingschan1204-easycrawl-a5aade8",
"right_context_start_lineno": 29,
"task_id": "project_cc_java/2832"
}
... |
cross_code_eval_java::project_cc_java/2828 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/com/github/kingschan1204/threads/QueueTest.java
// e.printStackTrace();
/... | {
"prefix": "package com.github.kingschan1204.easycrawl.helper.datetime;\n\n\nimport com.github.kingschan1204.easycrawl.helper.validation.Assert;\nimport lombok.extern.slf4j.Slf4j;\n\nimport java.time.LocalDateTime;\nimport java.time.ZoneId;\nimport java.time.ZoneOffset;\nimport java.time.format.DateTimeFormatter;\n\... | Assert.notNull(timeStamp, "时间戳不能为空!"); | {} | {
"repository": "kingschan1204-easycrawl-a5aade8",
"file": "src/main/java/com/github/kingschan1204/easycrawl/helper/datetime/DateHelper.java",
"task_id": "project_cc_java/2828"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/github/kingschan1204/easycrawl/helper/datetime/DateHelper.java",
"groundtruth_start_lineno": 42,
"repository": "kingschan1204-easycrawl-a5aade8",
"right_context_start_lineno": 43,
"task_id": "project_cc_java/2828"
}
} |
cross_code_eval_java::project_cc_java/2840 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/github/kingschan1204/easycrawl/helper/sql/SqlHelper.java
// }
// retu... | {
"prefix": "package com.github.kingschan1204.easycrawl.core.variable;\n\nimport com.github.kingschan1204.easycrawl.core.variable.impl.TimeStampExpression;\nimport com.github.kingschan1204.easycrawl.helper.regex.RegexHelper;\nimport com.github.kingschan1204.easycrawl.helper.collections.MapUtil;\n\nimport java.util.Ha... | text = text.replace(el, elMap.get(tag).execute(argsMap)); | {} | {
"repository": "kingschan1204-easycrawl-a5aade8",
"file": "src/main/java/com/github/kingschan1204/easycrawl/core/variable/ScanVariable.java",
"task_id": "project_cc_java/2840"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/github/kingschan1204/easycrawl/core/variable/ScanVariable.java",
"groundtruth_start_lineno": 46,
"repository": "kingschan1204-easycrawl-a5aade8",
"right_context_start_lineno": 47,
"task_id": "project_cc_java/2840"
}
} |
cross_code_eval_java::project_cc_java/2885 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/dev/klepto/unreflect/reflection/ReflectionClassAccess.java
// return UnreflectTyp... | {
"prefix": "package dev.klepto.unreflect.reflection;\n\nimport dev.klepto.unreflect.bytecode.asm.AccessorGenerator;\nimport dev.klepto.unreflect.property.Reflectable;\nimport dev.klepto.unreflect.bytecode.BytecodeContructorAccess;\nimport dev.klepto.unreflect.UnreflectType;\nimport dev.klepto.unreflect.ConstructorAc... | return parent.type(); | {} | {
"repository": "klepto-unreflect-a818c39",
"file": "src/main/java/dev/klepto/unreflect/reflection/ReflectionConstructorAccess.java",
"task_id": "project_cc_java/2885"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/dev/klepto/unreflect/reflection/ReflectionConstructorAccess.java",
"groundtruth_start_lineno": 85,
"repository": "klepto-unreflect-a818c39",
"right_context_start_lineno": 86,
"task_id": "project_cc_java/2885"
}
} |
cross_code_eval_java::project_cc_java/2887 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/dev/klepto/unreflect/reflection/ReflectionConstructorAccess.java
// return parent... | {
"prefix": "package dev.klepto.unreflect.reflection;\n\nimport dev.klepto.unreflect.bytecode.asm.AccessorGenerator;\nimport dev.klepto.unreflect.property.Reflectable;\nimport dev.klepto.unreflect.bytecode.BytecodeMethodAccess;\nimport dev.klepto.unreflect.UnreflectType;\nimport dev.klepto.unreflect.MethodAccess;\nim... | UnreflectType.of(source.getGenericReturnType()); | {} | {
"repository": "klepto-unreflect-a818c39",
"file": "src/main/java/dev/klepto/unreflect/reflection/ReflectionMethodAccess.java",
"task_id": "project_cc_java/2887"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/dev/klepto/unreflect/reflection/ReflectionMethodAccess.java",
"groundtruth_start_lineno": 77,
"repository": "klepto-unreflect-a818c39",
"right_context_start_lineno": 78,
"task_id": "project_cc_java/2887"
}
} |
cross_code_eval_java::project_cc_java/2836 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/github/kingschan1204/easycrawl/core/agent/interceptor/impl/TranscodingInterceptorImpl... | {
"prefix": "package com.github.kingschan1204.easycrawl.helper.http;\n\nimport com.github.kingschan1204.easycrawl.core.agent.AgentResult;\nimport lombok.extern.slf4j.Slf4j;\n\n/**\n * @author kingschan\n */\n@Slf4j\npublic class ResponseAssertHelper {\n\n private AgentResult result;\n\n public ResponseAssertHel... | if (result.getStatusCode() == 400) { | {} | {
"repository": "kingschan1204-easycrawl-a5aade8",
"file": "src/main/java/com/github/kingschan1204/easycrawl/helper/http/ResponseAssertHelper.java",
"task_id": "project_cc_java/2836"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/github/kingschan1204/easycrawl/helper/http/ResponseAssertHelper.java",
"groundtruth_start_lineno": 35,
"repository": "kingschan1204-easycrawl-a5aade8",
"right_context_start_lineno": 36,
"task_id": "project_cc_java/2836"
}
... |
cross_code_eval_java::project_cc_java/2878 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/dev/klepto/unreflect/bytecode/BytecodeMethodAccess.java
// void reflect();
// ... | {
"prefix": "package dev.klepto.unreflect.bytecode;\n\nimport dev.klepto.unreflect.ConstructorAccess;\nimport dev.klepto.unreflect.bytecode.asm.InvokableAccessor;\nimport dev.klepto.unreflect.reflection.ReflectionConstructorAccess;\nimport lombok.RequiredArgsConstructor;\nimport lombok.experimental.Delegate;\n\n/**\n... | (T) accessor.invoke(null, args); | {} | {
"repository": "klepto-unreflect-a818c39",
"file": "src/main/java/dev/klepto/unreflect/bytecode/BytecodeContructorAccess.java",
"task_id": "project_cc_java/2878"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/dev/klepto/unreflect/bytecode/BytecodeContructorAccess.java",
"groundtruth_start_lineno": 33,
"repository": "klepto-unreflect-a818c39",
"right_context_start_lineno": 34,
"task_id": "project_cc_java/2878"
}
} |
cross_code_eval_java::project_cc_java/2882 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/dev/klepto/unreflect/reflection/ReflectionConstructorAccess.java
// return parent... | {
"prefix": "package dev.klepto.unreflect.reflection;\n\nimport dev.klepto.unreflect.property.Reflectable;\nimport dev.klepto.unreflect.UnreflectType;\nimport dev.klepto.unreflect.ClassAccess;\nimport dev.klepto.unreflect.ConstructorAccess;\nimport dev.klepto.unreflect.FieldAccess;\nimport dev.klepto.unreflect.Method... | UnreflectType.of(source); | {} | {
"repository": "klepto-unreflect-a818c39",
"file": "src/main/java/dev/klepto/unreflect/reflection/ReflectionClassAccess.java",
"task_id": "project_cc_java/2882"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/dev/klepto/unreflect/reflection/ReflectionClassAccess.java",
"groundtruth_start_lineno": 61,
"repository": "klepto-unreflect-a818c39",
"right_context_start_lineno": 62,
"task_id": "project_cc_java/2882"
}
} |
cross_code_eval_java::project_cc_java/2889 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/dev/klepto/unreflect/util/JdkInternals.java
// /**
// * Defines a class in the t... | {
"prefix": "package dev.klepto.unreflect;\n\nimport com.google.common.reflect.TypeToken;\nimport dev.klepto.unreflect.property.Named;\nimport dev.klepto.unreflect.util.JdkInternals;\nimport lombok.val;\nimport one.util.streamex.StreamEx;\n\nimport javax.annotation.Nullable;\nimport java.lang.reflect.ParameterizedTyp... | return (T) JdkInternals.allocateInstance(toClass()); | {} | {
"repository": "klepto-unreflect-a818c39",
"file": "src/main/java/dev/klepto/unreflect/UnreflectType.java",
"task_id": "project_cc_java/2889"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/dev/klepto/unreflect/UnreflectType.java",
"groundtruth_start_lineno": 53,
"repository": "klepto-unreflect-a818c39",
"right_context_start_lineno": 54,
"task_id": "project_cc_java/2889"
}
} |
cross_code_eval_java::project_cc_java/2880 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/dev/klepto/unreflect/reflection/ReflectionFieldAccess.java
// }
// @Override
// ... | {
"prefix": "package dev.klepto.unreflect.bytecode;\n\nimport dev.klepto.unreflect.FieldAccess;\nimport dev.klepto.unreflect.bytecode.asm.MutableAccessor;\nimport dev.klepto.unreflect.reflection.ReflectionFieldAccess;\nimport lombok.RequiredArgsConstructor;\nimport lombok.experimental.Delegate;\n\n/**\n * Bytecode ac... | return new BytecodeFieldAccess((ReflectionFieldAccess) delegate.bind(object), accessor); | {} | {
"repository": "klepto-unreflect-a818c39",
"file": "src/main/java/dev/klepto/unreflect/bytecode/BytecodeFieldAccess.java",
"task_id": "project_cc_java/2880"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/dev/klepto/unreflect/bytecode/BytecodeFieldAccess.java",
"groundtruth_start_lineno": 33,
"repository": "klepto-unreflect-a818c39",
"right_context_start_lineno": 34,
"task_id": "project_cc_java/2880"
}
} |
cross_code_eval_java::project_cc_java/2881 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/dev/klepto/unreflect/reflection/ReflectionClassAccess.java
// return UnreflectTyp... | {
"prefix": "package dev.klepto.unreflect.reflection;\n\nimport dev.klepto.unreflect.bytecode.asm.AccessorGenerator;\nimport dev.klepto.unreflect.property.Reflectable;\nimport dev.klepto.unreflect.bytecode.BytecodeFieldAccess;\nimport dev.klepto.unreflect.UnreflectType;\nimport dev.klepto.unreflect.FieldAccess;\nimpo... | return UnreflectType.of(source.getGenericType()); | {} | {
"repository": "klepto-unreflect-a818c39",
"file": "src/main/java/dev/klepto/unreflect/reflection/ReflectionFieldAccess.java",
"task_id": "project_cc_java/2881"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/dev/klepto/unreflect/reflection/ReflectionFieldAccess.java",
"groundtruth_start_lineno": 74,
"repository": "klepto-unreflect-a818c39",
"right_context_start_lineno": 75,
"task_id": "project_cc_java/2881"
}
} |
cross_code_eval_java::project_cc_java/2844 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/com/github/kingschan1204/easycrawl/SzseTest.java
// cf.thenAccept(System.out:... | {
"prefix": "package com.github.kingschan1204.easycrawl.task;\n\nimport com.github.kingschan1204.easycrawl.core.agent.WebAgent;\nimport com.github.kingschan1204.easycrawl.helper.http.UrlHelper;\nimport com.github.kingschan1204.easycrawl.helper.json.JsonHelper;\nimport com.github.kingschan1204.easycrawl.helper.validat... | webAgent.getConfig().getUrl()).set(pageIndexKey, String.valueOf(i)).getUrl(); | {} | {
"repository": "kingschan1204-easycrawl-a5aade8",
"file": "src/main/java/com/github/kingschan1204/easycrawl/task/EasyCrawl.java",
"task_id": "project_cc_java/2844"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/github/kingschan1204/easycrawl/task/EasyCrawl.java",
"groundtruth_start_lineno": 85,
"repository": "kingschan1204-easycrawl-a5aade8",
"right_context_start_lineno": 86,
"task_id": "project_cc_java/2844"
}
} |
cross_code_eval_java::project_cc_java/2886 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/dev/klepto/unreflect/reflection/ReflectionClassAccess.java
// return UnreflectTyp... | {
"prefix": "package dev.klepto.unreflect.reflection;\n\nimport dev.klepto.unreflect.bytecode.asm.AccessorGenerator;\nimport dev.klepto.unreflect.property.Reflectable;\nimport dev.klepto.unreflect.bytecode.BytecodeContructorAccess;\nimport dev.klepto.unreflect.UnreflectType;\nimport dev.klepto.unreflect.ConstructorAc... | ().toClass().getSimpleName() + Parameters.toString(parameters().toList()); | {} | {
"repository": "klepto-unreflect-a818c39",
"file": "src/main/java/dev/klepto/unreflect/reflection/ReflectionConstructorAccess.java",
"task_id": "project_cc_java/2886"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/dev/klepto/unreflect/reflection/ReflectionConstructorAccess.java",
"groundtruth_start_lineno": 90,
"repository": "klepto-unreflect-a818c39",
"right_context_start_lineno": 91,
"task_id": "project_cc_java/2886"
}
} |
cross_code_eval_java::project_cc_java/2846 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/github/kingschan1204/easycrawl/core/variable/ScanVariable.java
// Str... | {
"prefix": "package com.github.kingschan1204.easycrawl.task;\n\nimport com.github.kingschan1204.easycrawl.core.agent.WebAgent;\nimport com.github.kingschan1204.easycrawl.helper.http.UrlHelper;\nimport com.github.kingschan1204.easycrawl.helper.json.JsonHelper;\nimport com.github.kingschan1204.easycrawl.helper.validat... | int totalRows = json.get(totalKey, Integer.class); | {} | {
"repository": "kingschan1204-easycrawl-a5aade8",
"file": "src/main/java/com/github/kingschan1204/easycrawl/task/EasyCrawl.java",
"task_id": "project_cc_java/2846"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/github/kingschan1204/easycrawl/task/EasyCrawl.java",
"groundtruth_start_lineno": 69,
"repository": "kingschan1204-easycrawl-a5aade8",
"right_context_start_lineno": 70,
"task_id": "project_cc_java/2846"
}
} |
cross_code_eval_java::project_cc_java/2835 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/github/kingschan1204/easycrawl/core/agent/interceptor/impl/TranscodingInterceptorImpl... | {
"prefix": "package com.github.kingschan1204.easycrawl.helper.http;\n\nimport com.github.kingschan1204.easycrawl.core.agent.AgentResult;\nimport lombok.extern.slf4j.Slf4j;\n\n/**\n * @author kingschan\n */\n@Slf4j\npublic class ResponseAssertHelper {\n\n private AgentResult result;\n\n public ResponseAssertHel... | (result.getStatusCode() == 401) { | {} | {
"repository": "kingschan1204-easycrawl-a5aade8",
"file": "src/main/java/com/github/kingschan1204/easycrawl/helper/http/ResponseAssertHelper.java",
"task_id": "project_cc_java/2835"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/github/kingschan1204/easycrawl/helper/http/ResponseAssertHelper.java",
"groundtruth_start_lineno": 33,
"repository": "kingschan1204-easycrawl-a5aade8",
"right_context_start_lineno": 34,
"task_id": "project_cc_java/2835"
}
... |
cross_code_eval_java::project_cc_java/2837 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/github/kingschan1204/easycrawl/core/agent/interceptor/impl/TranscodingInterceptorImpl... | {
"prefix": "package com.github.kingschan1204.easycrawl.helper.http;\n\nimport com.github.kingschan1204.easycrawl.core.agent.AgentResult;\nimport lombok.extern.slf4j.Slf4j;\n\n/**\n * @author kingschan\n */\n@Slf4j\npublic class ResponseAssertHelper {\n\n private AgentResult result;\n\n public ResponseAssertHel... | .warn("未支持的状态码: { | {} | {
"repository": "kingschan1204-easycrawl-a5aade8",
"file": "src/main/java/com/github/kingschan1204/easycrawl/helper/http/ResponseAssertHelper.java",
"task_id": "project_cc_java/2837"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/github/kingschan1204/easycrawl/helper/http/ResponseAssertHelper.java",
"groundtruth_start_lineno": 38,
"repository": "kingschan1204-easycrawl-a5aade8",
"right_context_start_lineno": 39,
"task_id": "project_cc_java/2837"
}
... |
cross_code_eval_java::project_cc_java/2830 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/github/kingschan1204/easycrawl/helper/http/UrlHelper.java
// }
// public Stri... | {
"prefix": "package com.github.kingschan1204.easycrawl.helper.sql;\n\nimport com.alibaba.fastjson.JSONArray;\nimport com.alibaba.fastjson.JSONObject;\nimport com.github.kingschan1204.easycrawl.helper.regex.RegexHelper;\nimport com.github.kingschan1204.easycrawl.helper.validation.Assert;\nimport lombok.extern.slf4j.S... | Assert.isTrue(data.get(0) instanceof JSONArray, "数据格式不匹配!"); | {} | {
"repository": "kingschan1204-easycrawl-a5aade8",
"file": "src/main/java/com/github/kingschan1204/easycrawl/helper/sql/SqlHelper.java",
"task_id": "project_cc_java/2830"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/github/kingschan1204/easycrawl/helper/sql/SqlHelper.java",
"groundtruth_start_lineno": 67,
"repository": "kingschan1204-easycrawl-a5aade8",
"right_context_start_lineno": 68,
"task_id": "project_cc_java/2830"
}
} |
cross_code_eval_java::project_cc_java/2838 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/github/kingschan1204/easycrawl/core/agent/interceptor/impl/TranscodingInterceptorImpl... | {
"prefix": "package com.github.kingschan1204.easycrawl.helper.http;\n\nimport com.github.kingschan1204.easycrawl.core.agent.AgentResult;\nimport lombok.extern.slf4j.Slf4j;\n\n/**\n * @author kingschan\n */\n@Slf4j\npublic class ResponseAssertHelper {\n\n private AgentResult result;\n\n public ResponseAssertHel... | String type = result.getContentType(); | {} | {
"repository": "kingschan1204-easycrawl-a5aade8",
"file": "src/main/java/com/github/kingschan1204/easycrawl/helper/http/ResponseAssertHelper.java",
"task_id": "project_cc_java/2838"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/github/kingschan1204/easycrawl/helper/http/ResponseAssertHelper.java",
"groundtruth_start_lineno": 44,
"repository": "kingschan1204-easycrawl-a5aade8",
"right_context_start_lineno": 45,
"task_id": "project_cc_java/2838"
}
... |
cross_code_eval_java::project_cc_java/2841 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/github/kingschan1204/easycrawl/helper/json/JsonHelper.java
// return this;
//... | {
"prefix": "package com.github.kingschan1204.easycrawl.task;\n\nimport com.github.kingschan1204.easycrawl.core.agent.WebAgent;\nimport com.github.kingschan1204.easycrawl.helper.http.UrlHelper;\nimport com.github.kingschan1204.easycrawl.helper.json.JsonHelper;\nimport com.github.kingschan1204.easycrawl.helper.validat... | return webAgent.execute(map); | {} | {
"repository": "kingschan1204-easycrawl-a5aade8",
"file": "src/main/java/com/github/kingschan1204/easycrawl/task/EasyCrawl.java",
"task_id": "project_cc_java/2841"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/github/kingschan1204/easycrawl/task/EasyCrawl.java",
"groundtruth_start_lineno": 43,
"repository": "kingschan1204-easycrawl-a5aade8",
"right_context_start_lineno": 44,
"task_id": "project_cc_java/2841"
}
} |
cross_code_eval_java::project_cc_java/2833 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/github/kingschan1204/easycrawl/core/agent/interceptor/impl/StatusPrintInterceptorImpl... | {
"prefix": "package com.github.kingschan1204.easycrawl.helper.http;\n\nimport com.github.kingschan1204.easycrawl.core.agent.AgentResult;\nimport lombok.extern.slf4j.Slf4j;\n\n/**\n * @author kingschan\n */\n@Slf4j\npublic class ResponseAssertHelper {\n\n private AgentResult result;\n\n public ResponseAssertHel... | if (result.getStatusCode() >= 500) { | {} | {
"repository": "kingschan1204-easycrawl-a5aade8",
"file": "src/main/java/com/github/kingschan1204/easycrawl/helper/http/ResponseAssertHelper.java",
"task_id": "project_cc_java/2833"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/github/kingschan1204/easycrawl/helper/http/ResponseAssertHelper.java",
"groundtruth_start_lineno": 29,
"repository": "kingschan1204-easycrawl-a5aade8",
"right_context_start_lineno": 30,
"task_id": "project_cc_java/2833"
}
... |
cross_code_eval_java::project_cc_java/2843 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/github/kingschan1204/easycrawl/core/variable/ScanVariable.java
// Str... | {
"prefix": "package com.github.kingschan1204.easycrawl.task;\n\nimport com.github.kingschan1204.easycrawl.core.agent.WebAgent;\nimport com.github.kingschan1204.easycrawl.helper.http.UrlHelper;\nimport com.github.kingschan1204.easycrawl.helper.json.JsonHelper;\nimport com.github.kingschan1204.easycrawl.helper.validat... | JsonHelper json = data.getJson(); | {} | {
"repository": "kingschan1204-easycrawl-a5aade8",
"file": "src/main/java/com/github/kingschan1204/easycrawl/task/EasyCrawl.java",
"task_id": "project_cc_java/2843"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/github/kingschan1204/easycrawl/task/EasyCrawl.java",
"groundtruth_start_lineno": 68,
"repository": "kingschan1204-easycrawl-a5aade8",
"right_context_start_lineno": 69,
"task_id": "project_cc_java/2843"
}
} |
cross_code_eval_java::project_cc_java/2875 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/github/kingschan1204/easycrawl/core/agent/GenericHttp1AgentProxy.java
// @Overrid... | {
"prefix": "package com.github.kingschan1204.easycrawl.core.agent;\n\nimport com.github.kingschan1204.easycrawl.core.agent.utils.JsoupHelper;\nimport com.github.kingschan1204.easycrawl.core.variable.ScanVariable;\nimport com.github.kingschan1204.easycrawl.helper.http.ResponseHeadHelper;\nimport com.github.kingschan1... | isTrue(headHelper.fileContent(), "非文件流请求,无法输出文件!"); | {} | {
"repository": "kingschan1204-easycrawl-a5aade8",
"file": "src/main/java/com/github/kingschan1204/easycrawl/core/agent/GenericHttp1Agent.java",
"task_id": "project_cc_java/2875"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/github/kingschan1204/easycrawl/core/agent/GenericHttp1Agent.java",
"groundtruth_start_lineno": 146,
"repository": "kingschan1204-easycrawl-a5aade8",
"right_context_start_lineno": 147,
"task_id": "project_cc_java/2875"
}
} |
cross_code_eval_java::project_cc_java/2849 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/com/github/kingschan1204/text/RegexTest.java
// String content = "\t<meta http-eq... | {
"prefix": "package com.github.kingschan1204.easycrawl.core.agent.interceptor.impl;\n\nimport com.github.kingschan1204.easycrawl.core.agent.AgentResult;\nimport com.github.kingschan1204.easycrawl.core.agent.WebAgent;\nimport com.github.kingschan1204.easycrawl.core.agent.interceptor.AfterInterceptor;\nimport com.gith... | setBody(transcoding(result.getBodyAsByes(), charset)); | {} | {
"repository": "kingschan1204-easycrawl-a5aade8",
"file": "src/main/java/com/github/kingschan1204/easycrawl/core/agent/interceptor/impl/TranscodingInterceptorImpl.java",
"task_id": "project_cc_java/2849"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/github/kingschan1204/easycrawl/core/agent/interceptor/impl/TranscodingInterceptorImpl.java",
"groundtruth_start_lineno": 28,
"repository": "kingschan1204-easycrawl-a5aade8",
"right_context_start_lineno": 29,
"task_id": "proj... |
cross_code_eval_java::project_cc_java/2870 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/github/kingschan1204/easycrawl/core/agent/GenericHttp1Agent.java
// t... | {
"prefix": "package com.github.kingschan1204.easycrawl.core.agent;\n\nimport com.github.kingschan1204.easycrawl.core.agent.interceptor.AfterInterceptor;\nimport com.github.kingschan1204.easycrawl.helper.json.JsonHelper;\nimport lombok.extern.slf4j.Slf4j;\n\nimport java.io.File;\nimport java.net.Proxy;\nimport java.u... | wa = this.webAgent.execute(data); | {} | {
"repository": "kingschan1204-easycrawl-a5aade8",
"file": "src/main/java/com/github/kingschan1204/easycrawl/core/agent/GenericHttp1AgentProxy.java",
"task_id": "project_cc_java/2870"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/github/kingschan1204/easycrawl/core/agent/GenericHttp1AgentProxy.java",
"groundtruth_start_lineno": 103,
"repository": "kingschan1204-easycrawl-a5aade8",
"right_context_start_lineno": 104,
"task_id": "project_cc_java/2870"
... |
cross_code_eval_java::project_cc_java/2913 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// m3color/src/main/java/com/kyant/m3color/temperature/TemperatureCache.java
// /**
// * Create a cac... | {
"prefix": "/*\n * Copyright 2022 Google LLC\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 ap... | hct.getHue()) >= 90.0 && Math.round(hct.getHue()) <= 111.0; | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/dislike/DislikeAnalyzer.java",
"task_id": "project_cc_java/2913"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/dislike/DislikeAnalyzer.java",
"groundtruth_start_lineno": 41,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 42,
"task_id": "project_cc_java/2913"
}
} |
cross_code_eval_java::project_cc_java/2928 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// m3color/src/main/java/com/kyant/m3color/hct/Hct.java
// }
// public double getTone() {
// retur... | {
"prefix": "/*\n * Copyright 2021 Google LLC\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 ap... | this.a2 = TonalPalette.fromHueAndChroma(hue, chroma / 3.); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/palettes/CorePalette.java",
"task_id": "project_cc_java/2928"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/palettes/CorePalette.java",
"groundtruth_start_lineno": 59,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 60,
"task_id": "project_cc_java/2928"
}
} |
cross_code_eval_java::project_cc_java/2920 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// m3color/src/main/java/com/kyant/m3color/dynamiccolor/DynamicColor.java
// //
// // This was... | {
"prefix": "/*\n * Copyright 2022 Google LLC\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 ap... | ColorUtils.yFromLstar(tone); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/contrast/Contrast.java",
"task_id": "project_cc_java/2920"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/contrast/Contrast.java",
"groundtruth_start_lineno": 129,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 130,
"task_id": "project_cc_java/2920"
}
} |
cross_code_eval_java::project_cc_java/2918 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// m3color/src/main/java/com/kyant/m3color/hct/Hct.java
// /**
// * HCT, hue, chroma, and tone. A color s... | {
"prefix": "/*\n * Copyright 2022 Google LLC\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 ap... | ratioOfYs(ColorUtils.yFromLstar(t1), ColorUtils.yFromLstar(t2)); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/contrast/Contrast.java",
"task_id": "project_cc_java/2918"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/contrast/Contrast.java",
"groundtruth_start_lineno": 114,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 115,
"task_id": "project_cc_java/2918"
}
} |
cross_code_eval_java::project_cc_java/2912 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// m3color/src/main/java/com/kyant/m3color/temperature/TemperatureCache.java
// /**
// * Create a cac... | {
"prefix": "/*\n * Copyright 2022 Google LLC\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 ap... | Math.round(hct.getHue()) >= 90.0 && Math.round(hct.getHue()) <= 111.0; | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/dislike/DislikeAnalyzer.java",
"task_id": "project_cc_java/2912"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/dislike/DislikeAnalyzer.java",
"groundtruth_start_lineno": 41,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 42,
"task_id": "project_cc_java/2912"
}
} |
cross_code_eval_java::project_cc_java/2916 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// m3color/src/main/java/com/kyant/m3color/score/Score.java
// hct.getChroma() < TARGET_CHROMA ?... | {
"prefix": "/*\n * Copyright 2022 Google LLC\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 ap... | .from(hct.getHue(), hct.getChroma(), 70.0); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/dislike/DislikeAnalyzer.java",
"task_id": "project_cc_java/2916"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/dislike/DislikeAnalyzer.java",
"groundtruth_start_lineno": 51,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 52,
"task_id": "project_cc_java/2916"
}
} |
cross_code_eval_java::project_cc_java/2914 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// m3color/src/main/java/com/kyant/m3color/score/Score.java
// hct.getChroma() < TARGET_CHROMA ?... | {
"prefix": "/*\n * Copyright 2022 Google LLC\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 ap... | round(hct.getChroma()) > 16.0; | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/dislike/DislikeAnalyzer.java",
"task_id": "project_cc_java/2914"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/dislike/DislikeAnalyzer.java",
"groundtruth_start_lineno": 42,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 43,
"task_id": "project_cc_java/2914"
}
} |
cross_code_eval_java::project_cc_java/2926 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// m3color/src/main/java/com/kyant/m3color/scheme/Scheme.java
// private static Scheme lightFromCorePale... | {
"prefix": "/*\n * Copyright 2021 Google LLC\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 ap... | hct.getChroma(); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/palettes/CorePalette.java",
"task_id": "project_cc_java/2926"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/palettes/CorePalette.java",
"groundtruth_start_lineno": 56,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 57,
"task_id": "project_cc_java/2926"
}
} |
cross_code_eval_java::project_cc_java/2927 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// m3color/src/main/java/com/kyant/m3color/scheme/Scheme.java
// private static Scheme lightFromCorePale... | {
"prefix": "/*\n * Copyright 2021 Google LLC\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 ap... | a1 = TonalPalette.fromHueAndChroma(hue, chroma); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/palettes/CorePalette.java",
"task_id": "project_cc_java/2927"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/palettes/CorePalette.java",
"groundtruth_start_lineno": 58,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 59,
"task_id": "project_cc_java/2927"
}
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.