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/2043
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // DiscordVerification/src/main/java/xyz/alonefield/discordverifier/DiscordVerifier.java // })...
{ "prefix": "package xyz.alonefield.discordverifier;\n\nimport net.dv8tion.jda.api.entities.Role;\nimport net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent;\nimport net.dv8tion.jda.api.hooks.ListenerAdapter;\nimport net.dv8tion.jda.api.interactions.commands.OptionMapping;\nimport org.bukkit....
.cc(DiscordVerifier.getInstance().getConfig().getString("messages.verification-successful-mc")));
{}
{ "repository": "flytegg-ls-projects-d0e70ee", "file": "DiscordVerification/src/main/java/xyz/alonefield/discordverifier/DiscordEvents.java", "task_id": "project_cc_java/2043" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "DiscordVerification/src/main/java/xyz/alonefield/discordverifier/DiscordEvents.java", "groundtruth_start_lineno": 104, "repository": "flytegg-ls-projects-d0e70ee", "right_context_start_lineno": 105, "task_id": "project_cc_java/2043" } }
cross_code_eval_java::project_cc_java/2031
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // DiscordVerification/src/main/java/xyz/alonefield/discordverifier/DiscordVerifier.java // ...
{ "prefix": "package xyz.alonefield.discordverifier;\n\nimport net.dv8tion.jda.api.entities.Role;\nimport net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent;\nimport net.dv8tion.jda.api.hooks.ListenerAdapter;\nimport net.dv8tion.jda.api.interactions.commands.OptionMapping;\nimport org.bukkit....
DiscordVerifier.getDiscordCodes().forEach((uuid, data) -> {
{}
{ "repository": "flytegg-ls-projects-d0e70ee", "file": "DiscordVerification/src/main/java/xyz/alonefield/discordverifier/DiscordEvents.java", "task_id": "project_cc_java/2031" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "DiscordVerification/src/main/java/xyz/alonefield/discordverifier/DiscordEvents.java", "groundtruth_start_lineno": 50, "repository": "flytegg-ls-projects-d0e70ee", "right_context_start_lineno": 51, "task_id": "project_cc_java/2031" } }
cross_code_eval_java::project_cc_java/2025
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // DiscordVerification/src/main/java/xyz/alonefield/discordverifier/DiscordEvents.java // ...
{ "prefix": "package xyz.alonefield.discordverifier;\n\nimport net.md_5.bungee.api.chat.ClickEvent;\nimport net.md_5.bungee.api.chat.ComponentBuilder;\nimport org.apache.commons.lang3.tuple.Pair;\nimport org.bukkit.command.Command;\nimport org.bukkit.command.CommandExecutor;\nimport org.bukkit.command.CommandSender;\...
String code = DiscordVerifier.getDiscordCodes().get(player.getUniqueId()).getLeft();
{}
{ "repository": "flytegg-ls-projects-d0e70ee", "file": "DiscordVerification/src/main/java/xyz/alonefield/discordverifier/MinecraftVerifyCommand.java", "task_id": "project_cc_java/2025" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "DiscordVerification/src/main/java/xyz/alonefield/discordverifier/MinecraftVerifyCommand.java", "groundtruth_start_lineno": 43, "repository": "flytegg-ls-projects-d0e70ee", "right_context_start_lineno": 44, "task_id": "project_cc_java/2025" ...
cross_code_eval_java::project_cc_java/1989
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Warps/src/main/java/me/snat/warps/commands/WarpCommand.java // return true; // } //...
{ "prefix": "package me.snat.warps.commands;\n\nimport me.snat.warps.Main;\nimport org.bukkit.ChatColor;\nimport org.bukkit.Location;\nimport org.bukkit.command.Command;\nimport org.bukkit.command.CommandExecutor;\nimport org.bukkit.command.CommandSender;\nimport org.bukkit.configuration.file.YamlConfiguration;\nimpo...
main.getWarpManager().setWarp(args[0], loc);
{}
{ "repository": "flytegg-ls-projects-d0e70ee", "file": "Warps/src/main/java/me/snat/warps/commands/SetWarpCommand.java", "task_id": "project_cc_java/1989" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Warps/src/main/java/me/snat/warps/commands/SetWarpCommand.java", "groundtruth_start_lineno": 39, "repository": "flytegg-ls-projects-d0e70ee", "right_context_start_lineno": 40, "task_id": "project_cc_java/1989" } }
cross_code_eval_java::project_cc_java/2026
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // DiscordVerification/src/main/java/xyz/alonefield/discordverifier/DiscordEvents.java // ...
{ "prefix": "package xyz.alonefield.discordverifier;\n\nimport net.md_5.bungee.api.chat.ClickEvent;\nimport net.md_5.bungee.api.chat.ComponentBuilder;\nimport org.apache.commons.lang3.tuple.Pair;\nimport org.bukkit.command.Command;\nimport org.bukkit.command.CommandExecutor;\nimport org.bukkit.command.CommandSender;\...
cc(DiscordVerifier.getInstance().getConfig().getString("messages.code-generated")) .replace("{
{}
{ "repository": "flytegg-ls-projects-d0e70ee", "file": "DiscordVerification/src/main/java/xyz/alonefield/discordverifier/MinecraftVerifyCommand.java", "task_id": "project_cc_java/2026" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "DiscordVerification/src/main/java/xyz/alonefield/discordverifier/MinecraftVerifyCommand.java", "groundtruth_start_lineno": 44, "repository": "flytegg-ls-projects-d0e70ee", "right_context_start_lineno": 46, "task_id": "project_cc_java/2026" ...
cross_code_eval_java::project_cc_java/2039
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // DiscordVerification/src/main/java/xyz/alonefield/discordverifier/api/DiscordVerifierAPI.java // ...
{ "prefix": "package xyz.alonefield.discordverifier;\n\nimport net.dv8tion.jda.api.entities.Role;\nimport net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent;\nimport net.dv8tion.jda.api.hooks.ListenerAdapter;\nimport net.dv8tion.jda.api.interactions.commands.OptionMapping;\nimport org.bukkit....
if (DiscordVerifier.getInstance().getConfig().getBoolean("discord.sync-name")){
{}
{ "repository": "flytegg-ls-projects-d0e70ee", "file": "DiscordVerification/src/main/java/xyz/alonefield/discordverifier/DiscordEvents.java", "task_id": "project_cc_java/2039" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "DiscordVerification/src/main/java/xyz/alonefield/discordverifier/DiscordEvents.java", "groundtruth_start_lineno": 87, "repository": "flytegg-ls-projects-d0e70ee", "right_context_start_lineno": 88, "task_id": "project_cc_java/2039" } }
cross_code_eval_java::project_cc_java/2023
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // DiscordVerification/src/main/java/xyz/alonefield/discordverifier/DiscordEvents.java // ...
{ "prefix": "package xyz.alonefield.discordverifier;\n\nimport net.md_5.bungee.api.chat.ClickEvent;\nimport net.md_5.bungee.api.chat.ComponentBuilder;\nimport org.apache.commons.lang3.tuple.Pair;\nimport org.bukkit.command.Command;\nimport org.bukkit.command.CommandExecutor;\nimport org.bukkit.command.CommandSender;\...
return DiscordVerifier.getDiscordCodes().get(player.getUniqueId()) != null;
{}
{ "repository": "flytegg-ls-projects-d0e70ee", "file": "DiscordVerification/src/main/java/xyz/alonefield/discordverifier/MinecraftVerifyCommand.java", "task_id": "project_cc_java/2023" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "DiscordVerification/src/main/java/xyz/alonefield/discordverifier/MinecraftVerifyCommand.java", "groundtruth_start_lineno": 38, "repository": "flytegg-ls-projects-d0e70ee", "right_context_start_lineno": 39, "task_id": "project_cc_java/2023" ...
cross_code_eval_java::project_cc_java/2008
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Particles/src/main/java/com/tqqn/particles/managers/ParticleManager.java // * @return int size // ...
{ "prefix": "package com.tqqn.particles.menus;\n\nimport com.tqqn.particles.Particles;\nimport com.tqqn.particles.utils.Color;\nimport com.tqqn.particles.particles.LobbyParticles;\nimport org.bukkit.Bukkit;\nimport org.bukkit.Material;\nimport org.bukkit.entity.Player;\nimport org.bukkit.inventory.Inventory;\nimport ...
, Color.translate("&6Particle Menu"));
{}
{ "repository": "flytegg-ls-projects-d0e70ee", "file": "Particles/src/main/java/com/tqqn/particles/menus/ParticleMenu.java", "task_id": "project_cc_java/2008" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Particles/src/main/java/com/tqqn/particles/menus/ParticleMenu.java", "groundtruth_start_lineno": 48, "repository": "flytegg-ls-projects-d0e70ee", "right_context_start_lineno": 49, "task_id": "project_cc_java/2008" } }
cross_code_eval_java::project_cc_java/2033
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // DiscordVerification/src/main/java/xyz/alonefield/discordverifier/DiscordVerifier.java // })...
{ "prefix": "package xyz.alonefield.discordverifier;\n\nimport net.dv8tion.jda.api.entities.Role;\nimport net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent;\nimport net.dv8tion.jda.api.hooks.ListenerAdapter;\nimport net.dv8tion.jda.api.interactions.commands.OptionMapping;\nimport org.bukkit....
().editOriginal(DiscordVerifier.getInstance().getConfig().getString("messages.code-invalid")).queue();
{}
{ "repository": "flytegg-ls-projects-d0e70ee", "file": "DiscordVerification/src/main/java/xyz/alonefield/discordverifier/DiscordEvents.java", "task_id": "project_cc_java/2033" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "DiscordVerification/src/main/java/xyz/alonefield/discordverifier/DiscordEvents.java", "groundtruth_start_lineno": 63, "repository": "flytegg-ls-projects-d0e70ee", "right_context_start_lineno": 64, "task_id": "project_cc_java/2033" } }
cross_code_eval_java::project_cc_java/2035
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // DiscordVerification/src/main/java/xyz/alonefield/discordverifier/MinecraftVerifyCommand.java // ...
{ "prefix": "package xyz.alonefield.discordverifier;\n\nimport net.dv8tion.jda.api.entities.Role;\nimport net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent;\nimport net.dv8tion.jda.api.hooks.ListenerAdapter;\nimport net.dv8tion.jda.api.interactions.commands.OptionMapping;\nimport org.bukkit....
DiscordVerifier.getDiscordCodes().remove(uuid);
{}
{ "repository": "flytegg-ls-projects-d0e70ee", "file": "DiscordVerification/src/main/java/xyz/alonefield/discordverifier/DiscordEvents.java", "task_id": "project_cc_java/2035" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "DiscordVerification/src/main/java/xyz/alonefield/discordverifier/DiscordEvents.java", "groundtruth_start_lineno": 70, "repository": "flytegg-ls-projects-d0e70ee", "right_context_start_lineno": 71, "task_id": "project_cc_java/2035" } }
cross_code_eval_java::project_cc_java/2040
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // FreezeWand/src/profile/Profile.java // public void sendMessage(@NotNull final String message) { // ...
{ "prefix": "package xyz.alonefield.discordverifier;\n\nimport net.dv8tion.jda.api.entities.Role;\nimport net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent;\nimport net.dv8tion.jda.api.hooks.ListenerAdapter;\nimport net.dv8tion.jda.api.interactions.commands.OptionMapping;\nimport org.bukkit....
List<String> commands = DiscordVerifier.getInstance().getConfig().getStringList("Minecraft.Command");
{}
{ "repository": "flytegg-ls-projects-d0e70ee", "file": "DiscordVerification/src/main/java/xyz/alonefield/discordverifier/DiscordEvents.java", "task_id": "project_cc_java/2040" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "DiscordVerification/src/main/java/xyz/alonefield/discordverifier/DiscordEvents.java", "groundtruth_start_lineno": 91, "repository": "flytegg-ls-projects-d0e70ee", "right_context_start_lineno": 92, "task_id": "project_cc_java/2040" } }
cross_code_eval_java::project_cc_java/2032
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // DiscordVerification/src/main/java/xyz/alonefield/discordverifier/DiscordVerifier.java // ...
{ "prefix": "package xyz.alonefield.discordverifier;\n\nimport net.dv8tion.jda.api.entities.Role;\nimport net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent;\nimport net.dv8tion.jda.api.hooks.ListenerAdapter;\nimport net.dv8tion.jda.api.interactions.commands.OptionMapping;\nimport org.bukkit....
DiscordVerifier.getInstance().getConfig().getBoolean("should-code-be-case-sensitive");
{}
{ "repository": "flytegg-ls-projects-d0e70ee", "file": "DiscordVerification/src/main/java/xyz/alonefield/discordverifier/DiscordEvents.java", "task_id": "project_cc_java/2032" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "DiscordVerification/src/main/java/xyz/alonefield/discordverifier/DiscordEvents.java", "groundtruth_start_lineno": 51, "repository": "flytegg-ls-projects-d0e70ee", "right_context_start_lineno": 52, "task_id": "project_cc_java/2032" } }
cross_code_eval_java::project_cc_java/2041
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // FreezeWand/src/profile/Profile.java // public void sendMessage(@NotNull final String message) { // ...
{ "prefix": "package xyz.alonefield.discordverifier;\n\nimport net.dv8tion.jda.api.entities.Role;\nimport net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent;\nimport net.dv8tion.jda.api.hooks.ListenerAdapter;\nimport net.dv8tion.jda.api.interactions.commands.OptionMapping;\nimport org.bukkit....
Bukkit.getScheduler().runTask(DiscordVerifier.getInstance(), () -> {
{}
{ "repository": "flytegg-ls-projects-d0e70ee", "file": "DiscordVerification/src/main/java/xyz/alonefield/discordverifier/DiscordEvents.java", "task_id": "project_cc_java/2041" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "DiscordVerification/src/main/java/xyz/alonefield/discordverifier/DiscordEvents.java", "groundtruth_start_lineno": 93, "repository": "flytegg-ls-projects-d0e70ee", "right_context_start_lineno": 94, "task_id": "project_cc_java/2041" } }
cross_code_eval_java::project_cc_java/2042
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // DiscordVerification/src/main/java/xyz/alonefield/discordverifier/MinecraftVerifyCommand.java // ...
{ "prefix": "package xyz.alonefield.discordverifier;\n\nimport net.dv8tion.jda.api.entities.Role;\nimport net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent;\nimport net.dv8tion.jda.api.hooks.ListenerAdapter;\nimport net.dv8tion.jda.api.interactions.commands.OptionMapping;\nimport org.bukkit....
Player player = DiscordVerifier.getInstance().getServer().getPlayer(uuid);
{}
{ "repository": "flytegg-ls-projects-d0e70ee", "file": "DiscordVerification/src/main/java/xyz/alonefield/discordverifier/DiscordEvents.java", "task_id": "project_cc_java/2042" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "DiscordVerification/src/main/java/xyz/alonefield/discordverifier/DiscordEvents.java", "groundtruth_start_lineno": 102, "repository": "flytegg-ls-projects-d0e70ee", "right_context_start_lineno": 103, "task_id": "project_cc_java/2042" } }
cross_code_eval_java::project_cc_java/2045
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // ProximityChat/src/main/java/cc/stormlabs/proximitychat/events/AsyncPlayerChat.java // event.set...
{ "prefix": "package cc.stormlabs.proximitychat;\n\nimport cc.stormlabs.proximitychat.commands.GiveMegaphoneCommand;\nimport cc.stormlabs.proximitychat.commands.GlobalChatCommand;\nimport cc.stormlabs.proximitychat.events.AsyncPlayerChat;\nimport cc.stormlabs.proximitychat.manager.ConfigManager;\nimport cc.stormlabs....
megaphoneMeta.setDisplayName(CustomColor.translate("&a&lMegaphone"));
{}
{ "repository": "flytegg-ls-projects-d0e70ee", "file": "ProximityChat/src/main/java/cc/stormlabs/proximitychat/ProximityChat.java", "task_id": "project_cc_java/2045" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "ProximityChat/src/main/java/cc/stormlabs/proximitychat/ProximityChat.java", "groundtruth_start_lineno": 42, "repository": "flytegg-ls-projects-d0e70ee", "right_context_start_lineno": 43, "task_id": "project_cc_java/2045" } }
cross_code_eval_java::project_cc_java/2064
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/brinquedomania/api/controllers/SaleController.java // /** // * Adici...
{ "prefix": "package com.brinquedomania.api.controllers;\n\nimport com.brinquedomania.api.dtos.CartRecordDto;\nimport com.brinquedomania.api.models.CartModel;\nimport com.brinquedomania.api.models.ProductModel;\nimport com.brinquedomania.api.repositories.CartRepository;\nimport com.brinquedomania.api.repositories.Pro...
if (newCart.get().getIdsProducts().isEmpty()){
{}
{ "repository": "Francisco-Jean-API-BRINQUEDOMANIA-0013ce2", "file": "src/main/java/com/brinquedomania/api/controllers/CartController.java", "task_id": "project_cc_java/2064" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/brinquedomania/api/controllers/CartController.java", "groundtruth_start_lineno": 130, "repository": "Francisco-Jean-API-BRINQUEDOMANIA-0013ce2", "right_context_start_lineno": 131, "task_id": "project_cc_java/2064" } }
cross_code_eval_java::project_cc_java/2038
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // DiscordVerification/src/main/java/xyz/alonefield/discordverifier/api/DiscordVerifierAPI.java // ...
{ "prefix": "package xyz.alonefield.discordverifier;\n\nimport net.dv8tion.jda.api.entities.Role;\nimport net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent;\nimport net.dv8tion.jda.api.hooks.ListenerAdapter;\nimport net.dv8tion.jda.api.interactions.commands.OptionMapping;\nimport org.bukkit....
Role removed = e.getGuild().getRoleById(DiscordVerifier.getInstance().getConfig().getString("discord.role-removed"));
{}
{ "repository": "flytegg-ls-projects-d0e70ee", "file": "DiscordVerification/src/main/java/xyz/alonefield/discordverifier/DiscordEvents.java", "task_id": "project_cc_java/2038" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "DiscordVerification/src/main/java/xyz/alonefield/discordverifier/DiscordEvents.java", "groundtruth_start_lineno": 78, "repository": "flytegg-ls-projects-d0e70ee", "right_context_start_lineno": 79, "task_id": "project_cc_java/2038" } }
cross_code_eval_java::project_cc_java/2063
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/brinquedomania/api/controllers/SaleController.java // return ResponseEnti...
{ "prefix": "package com.brinquedomania.api.controllers;\n\nimport com.brinquedomania.api.dtos.CartRecordDto;\nimport com.brinquedomania.api.models.CartModel;\nimport com.brinquedomania.api.models.ProductModel;\nimport com.brinquedomania.api.repositories.CartRepository;\nimport com.brinquedomania.api.repositories.Pro...
).getAmount() - value);
{}
{ "repository": "Francisco-Jean-API-BRINQUEDOMANIA-0013ce2", "file": "src/main/java/com/brinquedomania/api/controllers/CartController.java", "task_id": "project_cc_java/2063" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/brinquedomania/api/controllers/CartController.java", "groundtruth_start_lineno": 126, "repository": "Francisco-Jean-API-BRINQUEDOMANIA-0013ce2", "right_context_start_lineno": 127, "task_id": "project_cc_java/2063" } }
cross_code_eval_java::project_cc_java/2044
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // ProximityChat/src/main/java/cc/stormlabs/proximitychat/events/AsyncPlayerChat.java // event.set...
{ "prefix": "package cc.stormlabs.proximitychat;\n\nimport cc.stormlabs.proximitychat.commands.GiveMegaphoneCommand;\nimport cc.stormlabs.proximitychat.commands.GlobalChatCommand;\nimport cc.stormlabs.proximitychat.events.AsyncPlayerChat;\nimport cc.stormlabs.proximitychat.manager.ConfigManager;\nimport cc.stormlabs....
+ getConfigManager().getMegaphoneRange() + " &7blocks!")));
{}
{ "repository": "flytegg-ls-projects-d0e70ee", "file": "ProximityChat/src/main/java/cc/stormlabs/proximitychat/ProximityChat.java", "task_id": "project_cc_java/2044" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "ProximityChat/src/main/java/cc/stormlabs/proximitychat/ProximityChat.java", "groundtruth_start_lineno": 44, "repository": "flytegg-ls-projects-d0e70ee", "right_context_start_lineno": 46, "task_id": "project_cc_java/2044" } }
cross_code_eval_java::project_cc_java/2067
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/brinquedomania/api/repositories/CartRepository.java // public interface CartRepositor...
{ "prefix": "package com.brinquedomania.api.controllers;\n\nimport com.brinquedomania.api.dtos.CartRecordDto;\nimport com.brinquedomania.api.models.CartModel;\nimport com.brinquedomania.api.models.ProductModel;\nimport com.brinquedomania.api.repositories.CartRepository;\nimport com.brinquedomania.api.repositories.Pro...
Optional<CartModel> cart = cartRepository.findByIdClient(idClient);
{}
{ "repository": "Francisco-Jean-API-BRINQUEDOMANIA-0013ce2", "file": "src/main/java/com/brinquedomania/api/controllers/CartController.java", "task_id": "project_cc_java/2067" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/brinquedomania/api/controllers/CartController.java", "groundtruth_start_lineno": 77, "repository": "Francisco-Jean-API-BRINQUEDOMANIA-0013ce2", "right_context_start_lineno": 78, "task_id": "project_cc_java/2067" } }
cross_code_eval_java::project_cc_java/2075
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/brinquedomania/api/controllers/CartController.java // } // cartModel....
{ "prefix": "package com.brinquedomania.api.controllers;\n\nimport com.brinquedomania.api.dtos.SaleRecordDto;\nimport com.brinquedomania.api.models.SaleModel;\nimport com.brinquedomania.api.repositories.CartRepository;\nimport com.brinquedomania.api.repositories.ProductRepository;\nimport com.brinquedomania.api.repos...
saleModel.addProduct(idProduct, quantidade);
{}
{ "repository": "Francisco-Jean-API-BRINQUEDOMANIA-0013ce2", "file": "src/main/java/com/brinquedomania/api/controllers/SaleController.java", "task_id": "project_cc_java/2075" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/brinquedomania/api/controllers/SaleController.java", "groundtruth_start_lineno": 79, "repository": "Francisco-Jean-API-BRINQUEDOMANIA-0013ce2", "right_context_start_lineno": 80, "task_id": "project_cc_java/2075" } }
cross_code_eval_java::project_cc_java/2072
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/brinquedomania/api/controllers/UserController.java // /** // * Metodo/Rota r...
{ "prefix": "package com.brinquedomania.api.controllers;\n\nimport com.brinquedomania.api.dtos.SaleRecordDto;\nimport com.brinquedomania.api.models.SaleModel;\nimport com.brinquedomania.api.repositories.CartRepository;\nimport com.brinquedomania.api.repositories.ProductRepository;\nimport com.brinquedomania.api.repos...
saleModel.getIdClient());
{}
{ "repository": "Francisco-Jean-API-BRINQUEDOMANIA-0013ce2", "file": "src/main/java/com/brinquedomania/api/controllers/SaleController.java", "task_id": "project_cc_java/2072" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/brinquedomania/api/controllers/SaleController.java", "groundtruth_start_lineno": 54, "repository": "Francisco-Jean-API-BRINQUEDOMANIA-0013ce2", "right_context_start_lineno": 55, "task_id": "project_cc_java/2072" } }
cross_code_eval_java::project_cc_java/2074
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/brinquedomania/api/controllers/CartController.java // */ // @PutMapping("/ca...
{ "prefix": "package com.brinquedomania.api.controllers;\n\nimport com.brinquedomania.api.dtos.SaleRecordDto;\nimport com.brinquedomania.api.models.SaleModel;\nimport com.brinquedomania.api.repositories.CartRepository;\nimport com.brinquedomania.api.repositories.ProductRepository;\nimport com.brinquedomania.api.repos...
saleModel.setDate(java.sql.Date.valueOf(date));
{}
{ "repository": "Francisco-Jean-API-BRINQUEDOMANIA-0013ce2", "file": "src/main/java/com/brinquedomania/api/controllers/SaleController.java", "task_id": "project_cc_java/2074" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/brinquedomania/api/controllers/SaleController.java", "groundtruth_start_lineno": 69, "repository": "Francisco-Jean-API-BRINQUEDOMANIA-0013ce2", "right_context_start_lineno": 70, "task_id": "project_cc_java/2074" } }
cross_code_eval_java::project_cc_java/2070
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/brinquedomania/api/controllers/SaleController.java // */ // cart.get...
{ "prefix": "package com.brinquedomania.api.controllers;\n\nimport com.brinquedomania.api.dtos.CartRecordDto;\nimport com.brinquedomania.api.models.CartModel;\nimport com.brinquedomania.api.models.ProductModel;\nimport com.brinquedomania.api.repositories.CartRepository;\nimport com.brinquedomania.api.repositories.Pro...
productRepository.findById(idProduct).get().getValue();
{}
{ "repository": "Francisco-Jean-API-BRINQUEDOMANIA-0013ce2", "file": "src/main/java/com/brinquedomania/api/controllers/CartController.java", "task_id": "project_cc_java/2070" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/brinquedomania/api/controllers/CartController.java", "groundtruth_start_lineno": 114, "repository": "Francisco-Jean-API-BRINQUEDOMANIA-0013ce2", "right_context_start_lineno": 115, "task_id": "project_cc_java/2070" } }
cross_code_eval_java::project_cc_java/2106
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // lib/src/main/java/com/frazik/instructgpt/Agent.java // String commandName = parsedResp.get(...
{ "prefix": "package com.frazik.instructgpt.auto;\n\nimport com.frazik.instructgpt.Agent;\nimport com.frazik.instructgpt.response.Response;\nimport com.frazik.instructgpt.response.Thought;\n\nimport java.util.Scanner;\n\npublic class Cli {\n private Agent agent;\n private Scanner scanner;\n\n public Cli(Agen...
: thoughts.getPlan().split("\n")) {
{}
{ "repository": "frazik-main-AmplifyGPT-ac49c2a", "file": "lib/src/main/java/com/frazik/instructgpt/auto/Cli.java", "task_id": "project_cc_java/2106" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "lib/src/main/java/com/frazik/instructgpt/auto/Cli.java", "groundtruth_start_lineno": 30, "repository": "frazik-main-AmplifyGPT-ac49c2a", "right_context_start_lineno": 31, "task_id": "project_cc_java/2106" } }
cross_code_eval_java::project_cc_java/2096
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // lib/src/main/java/com/frazik/instructgpt/Agent.java // String commandName = parsedResp.get(...
{ "prefix": "package com.frazik.instructgpt.auto;\n\nimport com.frazik.instructgpt.Agent;\nimport com.frazik.instructgpt.response.Response;\nimport com.frazik.instructgpt.response.Thought;\n\nimport java.util.Scanner;\n\npublic class Cli {\n private Agent agent;\n private Scanner scanner;\n\n public Cli(Agen...
= agent.chat("GENERATE NEXT COMMAND JSON", true);
{}
{ "repository": "frazik-main-AmplifyGPT-ac49c2a", "file": "lib/src/main/java/com/frazik/instructgpt/auto/Cli.java", "task_id": "project_cc_java/2096" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "lib/src/main/java/com/frazik/instructgpt/auto/Cli.java", "groundtruth_start_lineno": 48, "repository": "frazik-main-AmplifyGPT-ac49c2a", "right_context_start_lineno": 49, "task_id": "project_cc_java/2096" } }
cross_code_eval_java::project_cc_java/2097
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // lib/src/main/java/com/frazik/instructgpt/Agent.java // String commandName = parsedResp.get(...
{ "prefix": "package com.frazik.instructgpt.auto;\n\nimport com.frazik.instructgpt.Agent;\nimport com.frazik.instructgpt.response.Response;\nimport com.frazik.instructgpt.response.Thought;\n\nimport java.util.Scanner;\n\npublic class Cli {\n private Agent agent;\n private Scanner scanner;\n\n public Cli(Agen...
agent.chat(feedback, false);
{}
{ "repository": "frazik-main-AmplifyGPT-ac49c2a", "file": "lib/src/main/java/com/frazik/instructgpt/auto/Cli.java", "task_id": "project_cc_java/2097" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "lib/src/main/java/com/frazik/instructgpt/auto/Cli.java", "groundtruth_start_lineno": 52, "repository": "frazik-main-AmplifyGPT-ac49c2a", "right_context_start_lineno": 53, "task_id": "project_cc_java/2097" } }
cross_code_eval_java::project_cc_java/2066
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/brinquedomania/api/controllers/SaleController.java // */ // cart.get...
{ "prefix": "package com.brinquedomania.api.controllers;\n\nimport com.brinquedomania.api.dtos.CartRecordDto;\nimport com.brinquedomania.api.models.CartModel;\nimport com.brinquedomania.api.models.ProductModel;\nimport com.brinquedomania.api.repositories.CartRepository;\nimport com.brinquedomania.api.repositories.Pro...
+= product.get().getValue() * quantidade;
{}
{ "repository": "Francisco-Jean-API-BRINQUEDOMANIA-0013ce2", "file": "src/main/java/com/brinquedomania/api/controllers/CartController.java", "task_id": "project_cc_java/2066" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/brinquedomania/api/controllers/CartController.java", "groundtruth_start_lineno": 60, "repository": "Francisco-Jean-API-BRINQUEDOMANIA-0013ce2", "right_context_start_lineno": 61, "task_id": "project_cc_java/2066" } }
cross_code_eval_java::project_cc_java/2073
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/brinquedomania/api/controllers/CartController.java // */ // @PutMapping("/ca...
{ "prefix": "package com.brinquedomania.api.controllers;\n\nimport com.brinquedomania.api.dtos.SaleRecordDto;\nimport com.brinquedomania.api.models.SaleModel;\nimport com.brinquedomania.api.repositories.CartRepository;\nimport com.brinquedomania.api.repositories.ProductRepository;\nimport com.brinquedomania.api.repos...
saleModel.setIdSeller(idSeller);
{}
{ "repository": "Francisco-Jean-API-BRINQUEDOMANIA-0013ce2", "file": "src/main/java/com/brinquedomania/api/controllers/SaleController.java", "task_id": "project_cc_java/2073" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/brinquedomania/api/controllers/SaleController.java", "groundtruth_start_lineno": 67, "repository": "Francisco-Jean-API-BRINQUEDOMANIA-0013ce2", "right_context_start_lineno": 68, "task_id": "project_cc_java/2073" } }
cross_code_eval_java::project_cc_java/2113
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // lib/src/test/java/com/frazik/instructgpt/PromptTests.java // String promptString = prompt.g...
{ "prefix": "package com.frazik.instructgpt;\n\nimport com.fasterxml.jackson.databind.JsonNode;\nimport com.fasterxml.jackson.databind.ObjectMapper;\nimport com.fasterxml.jackson.core.type.TypeReference;\nimport com.frazik.instructgpt.auto.Cli;\nimport com.frazik.instructgpt.embedding.OpenAIEmbeddingProvider;\nimport...
<String> relevantMemory = memory.get(10);
{}
{ "repository": "frazik-main-AmplifyGPT-ac49c2a", "file": "lib/src/main/java/com/frazik/instructgpt/Agent.java", "task_id": "project_cc_java/2113" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "lib/src/main/java/com/frazik/instructgpt/Agent.java", "groundtruth_start_lineno": 66, "repository": "frazik-main-AmplifyGPT-ac49c2a", "right_context_start_lineno": 67, "task_id": "project_cc_java/2113" } }
cross_code_eval_java::project_cc_java/2076
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/brinquedomania/api/repositories/SaleRepository.java // * @return Retorna todas a...
{ "prefix": "package com.brinquedomania.api.controllers;\n\nimport com.brinquedomania.api.dtos.SaleRecordDto;\nimport com.brinquedomania.api.models.SaleModel;\nimport com.brinquedomania.api.repositories.CartRepository;\nimport com.brinquedomania.api.repositories.ProductRepository;\nimport com.brinquedomania.api.repos...
(HttpStatus.OK).body(saleRepository.findByIdSeller(id));
{}
{ "repository": "Francisco-Jean-API-BRINQUEDOMANIA-0013ce2", "file": "src/main/java/com/brinquedomania/api/controllers/SaleController.java", "task_id": "project_cc_java/2076" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/brinquedomania/api/controllers/SaleController.java", "groundtruth_start_lineno": 112, "repository": "Francisco-Jean-API-BRINQUEDOMANIA-0013ce2", "right_context_start_lineno": 113, "task_id": "project_cc_java/2076" } }
cross_code_eval_java::project_cc_java/2107
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // lib/src/main/java/com/frazik/instructgpt/Agent.java // String commandName = parsedResp.get(...
{ "prefix": "package com.frazik.instructgpt.auto;\n\nimport com.frazik.instructgpt.Agent;\nimport com.frazik.instructgpt.response.Response;\nimport com.frazik.instructgpt.response.Thought;\n\nimport java.util.Scanner;\n\npublic class Cli {\n private Agent agent;\n private Scanner scanner;\n\n public Cli(Agen...
(thoughts.hasCriticism()) {
{}
{ "repository": "frazik-main-AmplifyGPT-ac49c2a", "file": "lib/src/main/java/com/frazik/instructgpt/auto/Cli.java", "task_id": "project_cc_java/2107" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "lib/src/main/java/com/frazik/instructgpt/auto/Cli.java", "groundtruth_start_lineno": 34, "repository": "frazik-main-AmplifyGPT-ac49c2a", "right_context_start_lineno": 35, "task_id": "project_cc_java/2107" } }
cross_code_eval_java::project_cc_java/2109
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // lib/src/main/java/com/frazik/instructgpt/Agent.java // String commandName = parsedResp.get(...
{ "prefix": "package com.frazik.instructgpt.auto;\n\nimport com.frazik.instructgpt.Agent;\nimport com.frazik.instructgpt.response.Response;\nimport com.frazik.instructgpt.response.Thought;\n\nimport java.util.Scanner;\n\npublic class Cli {\n private Agent agent;\n private Scanner scanner;\n\n public Cli(Agen...
thoughts.hasSpeak()) {
{}
{ "repository": "frazik-main-AmplifyGPT-ac49c2a", "file": "lib/src/main/java/com/frazik/instructgpt/auto/Cli.java", "task_id": "project_cc_java/2109" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "lib/src/main/java/com/frazik/instructgpt/auto/Cli.java", "groundtruth_start_lineno": 37, "repository": "frazik-main-AmplifyGPT-ac49c2a", "right_context_start_lineno": 38, "task_id": "project_cc_java/2109" } }
cross_code_eval_java::project_cc_java/2095
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // lib/src/main/java/com/frazik/instructgpt/Agent.java // String commandName = parsedResp.get(...
{ "prefix": "package com.frazik.instructgpt.auto;\n\nimport com.frazik.instructgpt.Agent;\nimport com.frazik.instructgpt.response.Response;\nimport com.frazik.instructgpt.response.Thought;\n\nimport java.util.Scanner;\n\npublic class Cli {\n private Agent agent;\n private Scanner scanner;\n\n public Cli(Agen...
out.println(agent.getName() + ": (voice) " + thoughts.getSpeak());
{}
{ "repository": "frazik-main-AmplifyGPT-ac49c2a", "file": "lib/src/main/java/com/frazik/instructgpt/auto/Cli.java", "task_id": "project_cc_java/2095" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "lib/src/main/java/com/frazik/instructgpt/auto/Cli.java", "groundtruth_start_lineno": 38, "repository": "frazik-main-AmplifyGPT-ac49c2a", "right_context_start_lineno": 39, "task_id": "project_cc_java/2095" } }
cross_code_eval_java::project_cc_java/2100
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // lib/src/main/java/com/frazik/instructgpt/Agent.java // String commandName = parsedResp.get(...
{ "prefix": "package com.frazik.instructgpt.auto;\n\nimport com.frazik.instructgpt.Agent;\nimport com.frazik.instructgpt.response.Response;\nimport com.frazik.instructgpt.response.Thought;\n\nimport java.util.Scanner;\n\npublic class Cli {\n private Agent agent;\n private Scanner scanner;\n\n public Cli(Agen...
resp.hasCommand()) {
{}
{ "repository": "frazik-main-AmplifyGPT-ac49c2a", "file": "lib/src/main/java/com/frazik/instructgpt/auto/Cli.java", "task_id": "project_cc_java/2100" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "lib/src/main/java/com/frazik/instructgpt/auto/Cli.java", "groundtruth_start_lineno": 41, "repository": "frazik-main-AmplifyGPT-ac49c2a", "right_context_start_lineno": 42, "task_id": "project_cc_java/2100" } }
cross_code_eval_java::project_cc_java/2089
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // lib/src/main/java/com/frazik/instructgpt/tools/Browser.java // if (this.driver != null) { /...
{ "prefix": "package com.frazik.instructgpt;\n\n/*\nAdapted from Auto-GPT (https://github.com/Significant-Gravitas/Auto-GPT)\n*/\n\nimport com.frazik.instructgpt.models.OpenAIModel;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class Summarizer {\n private String model;\n private OpenAIModel ...
return openAIModel.chat(prompts);
{}
{ "repository": "frazik-main-AmplifyGPT-ac49c2a", "file": "lib/src/main/java/com/frazik/instructgpt/Summarizer.java", "task_id": "project_cc_java/2089" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "lib/src/main/java/com/frazik/instructgpt/Summarizer.java", "groundtruth_start_lineno": 67, "repository": "frazik-main-AmplifyGPT-ac49c2a", "right_context_start_lineno": 68, "task_id": "project_cc_java/2089" } }
cross_code_eval_java::project_cc_java/2083
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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/frankv/staaaaaaaaaaaack/mixin/ItemEntityAccessor.java // int getPickupDelay...
{ "prefix": "package me.frankv.staaaaaaaaaaaack;\n\nimport me.frankv.staaaaaaaaaaaack.mixin.ItemEntityAccessor;\nimport me.frankv.staaaaaaaaaaaack.mixin.ItemStackAccessor;\nimport net.minecraft.network.syncher.EntityDataAccessor;\nimport net.minecraft.world.entity.Entity;\nimport net.minecraft.world.entity.EntityType...
consumerAccessor.setPickupDelay(Math.max(consumerAccessor.getPickupDelay(), supplierAccessor.getPickupDelay()));
{}
{ "repository": "frank89722-Staaaaaaaaaaaack-65a0402", "file": "Common/src/main/java/me/frankv/staaaaaaaaaaaack/StxckUtil.java", "task_id": "project_cc_java/2083" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Common/src/main/java/me/frankv/staaaaaaaaaaaack/StxckUtil.java", "groundtruth_start_lineno": 139, "repository": "frank89722-Staaaaaaaaaaaack-65a0402", "right_context_start_lineno": 140, "task_id": "project_cc_java/2083" } }
cross_code_eval_java::project_cc_java/2088
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // lib/src/main/java/com/frazik/instructgpt/Agent.java // Map<String, String> msg = history.ge...
{ "prefix": "package com.frazik.instructgpt.prompts;\n\nimport lombok.Getter;\nimport lombok.Setter;\n\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.Map;\n\n@Getter\n@Setter\npublic class PromptHistory {\n\n private final List<Map<String, String>> values;\n\n public PromptHistory() {\n ...
.add(PromptUtils.buildPrompts(role, content));
{}
{ "repository": "frazik-main-AmplifyGPT-ac49c2a", "file": "lib/src/main/java/com/frazik/instructgpt/prompts/PromptHistory.java", "task_id": "project_cc_java/2088" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "lib/src/main/java/com/frazik/instructgpt/prompts/PromptHistory.java", "groundtruth_start_lineno": 40, "repository": "frazik-main-AmplifyGPT-ac49c2a", "right_context_start_lineno": 41, "task_id": "project_cc_java/2088" } }
cross_code_eval_java::project_cc_java/2124
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // lib/src/test/java/com/frazik/instructgpt/PromptTests.java // String promptString = prompt.g...
{ "prefix": "package com.frazik.instructgpt;\n\nimport com.fasterxml.jackson.databind.JsonNode;\nimport com.fasterxml.jackson.databind.ObjectMapper;\nimport com.fasterxml.jackson.core.type.TypeReference;\nimport com.frazik.instructgpt.auto.Cli;\nimport com.frazik.instructgpt.embedding.OpenAIEmbeddingProvider;\nimport...
return chat(seedInput.getContent(), false);
{}
{ "repository": "frazik-main-AmplifyGPT-ac49c2a", "file": "lib/src/main/java/com/frazik/instructgpt/Agent.java", "task_id": "project_cc_java/2124" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "lib/src/main/java/com/frazik/instructgpt/Agent.java", "groundtruth_start_lineno": 133, "repository": "frazik-main-AmplifyGPT-ac49c2a", "right_context_start_lineno": 134, "task_id": "project_cc_java/2124" } }
cross_code_eval_java::project_cc_java/2081
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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/frankv/staaaaaaaaaaaack/mixin/ItemEntityAccessor.java // int getPickupDelay...
{ "prefix": "package me.frankv.staaaaaaaaaaaack;\n\nimport me.frankv.staaaaaaaaaaaack.mixin.ItemEntityAccessor;\nimport me.frankv.staaaaaaaaaaaack.mixin.ItemStackAccessor;\nimport net.minecraft.network.syncher.EntityDataAccessor;\nimport net.minecraft.world.entity.Entity;\nimport net.minecraft.world.entity.EntityType...
var age = accessor.getAge();
{}
{ "repository": "frank89722-Staaaaaaaaaaaack-65a0402", "file": "Common/src/main/java/me/frankv/staaaaaaaaaaaack/StxckUtil.java", "task_id": "project_cc_java/2081" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Common/src/main/java/me/frankv/staaaaaaaaaaaack/StxckUtil.java", "groundtruth_start_lineno": 75, "repository": "frank89722-Staaaaaaaaaaaack-65a0402", "right_context_start_lineno": 76, "task_id": "project_cc_java/2081" } }
cross_code_eval_java::project_cc_java/2087
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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/frankv/staaaaaaaaaaaack/mixin/ItemEntityMixin.java // ci.cancel(); // ...
{ "prefix": "package me.frankv.staaaaaaaaaaaack;\n\nimport me.frankv.staaaaaaaaaaaack.mixin.ItemEntityAccessor;\nimport me.frankv.staaaaaaaaaaaack.mixin.ItemStackAccessor;\nimport net.minecraft.network.syncher.EntityDataAccessor;\nimport net.minecraft.world.entity.Entity;\nimport net.minecraft.world.entity.EntityType...
|| Staaaaaaaaaaaack.getItemBlackList().contains(itemStack.getItem());
{}
{ "repository": "frank89722-Staaaaaaaaaaaack-65a0402", "file": "Common/src/main/java/me/frankv/staaaaaaaaaaaack/StxckUtil.java", "task_id": "project_cc_java/2087" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Common/src/main/java/me/frankv/staaaaaaaaaaaack/StxckUtil.java", "groundtruth_start_lineno": 155, "repository": "frank89722-Staaaaaaaaaaaack-65a0402", "right_context_start_lineno": 156, "task_id": "project_cc_java/2087" } }
cross_code_eval_java::project_cc_java/2120
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // lib/src/main/java/com/frazik/instructgpt/models/OpenAIModel.java // } // } ...
{ "prefix": "package com.frazik.instructgpt;\n\nimport com.fasterxml.jackson.databind.JsonNode;\nimport com.fasterxml.jackson.databind.ObjectMapper;\nimport com.fasterxml.jackson.core.type.TypeReference;\nimport com.frazik.instructgpt.auto.Cli;\nimport com.frazik.instructgpt.embedding.OpenAIEmbeddingProvider;\nimport...
openAIModel.getTokenLimit();
{}
{ "repository": "frazik-main-AmplifyGPT-ac49c2a", "file": "lib/src/main/java/com/frazik/instructgpt/Agent.java", "task_id": "project_cc_java/2120" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "lib/src/main/java/com/frazik/instructgpt/Agent.java", "groundtruth_start_lineno": 183, "repository": "frazik-main-AmplifyGPT-ac49c2a", "right_context_start_lineno": 184, "task_id": "project_cc_java/2120" } }
cross_code_eval_java::project_cc_java/2111
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // lib/src/main/java/com/frazik/instructgpt/Summarizer.java // int currLen = 0; // List<St...
{ "prefix": "package com.frazik.instructgpt.tools;\n\nimport com.frazik.instructgpt.Summarizer;\nimport org.jsoup.Jsoup;\nimport org.jsoup.nodes.Document;\nimport org.jsoup.nodes.Element;\nimport org.jsoup.select.Elements;\nimport org.openqa.selenium.By;\nimport org.openqa.selenium.JavascriptExecutor;\nimport org.ope...
.summarizer.summarize(extractedText, question);
{}
{ "repository": "frazik-main-AmplifyGPT-ac49c2a", "file": "lib/src/main/java/com/frazik/instructgpt/tools/Browser.java", "task_id": "project_cc_java/2111" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "lib/src/main/java/com/frazik/instructgpt/tools/Browser.java", "groundtruth_start_lineno": 152, "repository": "frazik-main-AmplifyGPT-ac49c2a", "right_context_start_lineno": 153, "task_id": "project_cc_java/2111" } }
cross_code_eval_java::project_cc_java/2084
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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/frankv/staaaaaaaaaaaack/mixin/ItemEntityAccessor.java // int getPickupDelay...
{ "prefix": "package me.frankv.staaaaaaaaaaaack;\n\nimport me.frankv.staaaaaaaaaaaack.mixin.ItemEntityAccessor;\nimport me.frankv.staaaaaaaaaaaack.mixin.ItemStackAccessor;\nimport net.minecraft.network.syncher.EntityDataAccessor;\nimport net.minecraft.world.entity.Entity;\nimport net.minecraft.world.entity.EntityType...
min(consumerAccessor.getAge(), supplierAccessor.getAge()));
{}
{ "repository": "frank89722-Staaaaaaaaaaaack-65a0402", "file": "Common/src/main/java/me/frankv/staaaaaaaaaaaack/StxckUtil.java", "task_id": "project_cc_java/2084" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Common/src/main/java/me/frankv/staaaaaaaaaaaack/StxckUtil.java", "groundtruth_start_lineno": 140, "repository": "frank89722-Staaaaaaaaaaaack-65a0402", "right_context_start_lineno": 141, "task_id": "project_cc_java/2084" } }
cross_code_eval_java::project_cc_java/2082
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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/frankv/staaaaaaaaaaaack/mixin/ItemEntityAccessor.java // int getPickupDelay...
{ "prefix": "package me.frankv.staaaaaaaaaaaack;\n\nimport me.frankv.staaaaaaaaaaaack.mixin.ItemEntityAccessor;\nimport me.frankv.staaaaaaaaaaaack.mixin.ItemStackAccessor;\nimport net.minecraft.network.syncher.EntityDataAccessor;\nimport net.minecraft.world.entity.Entity;\nimport net.minecraft.world.entity.EntityType...
(Math.max(consumerAccessor.getPickupDelay(), supplierAccessor.getPickupDelay()));
{}
{ "repository": "frank89722-Staaaaaaaaaaaack-65a0402", "file": "Common/src/main/java/me/frankv/staaaaaaaaaaaack/StxckUtil.java", "task_id": "project_cc_java/2082" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Common/src/main/java/me/frankv/staaaaaaaaaaaack/StxckUtil.java", "groundtruth_start_lineno": 139, "repository": "frank89722-Staaaaaaaaaaaack-65a0402", "right_context_start_lineno": 140, "task_id": "project_cc_java/2082" } }
cross_code_eval_java::project_cc_java/2115
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // lib/src/test/java/com/frazik/instructgpt/PromptTests.java // String promptString = prompt.g...
{ "prefix": "package com.frazik.instructgpt;\n\nimport com.fasterxml.jackson.databind.JsonNode;\nimport com.fasterxml.jackson.databind.ObjectMapper;\nimport com.fasterxml.jackson.core.type.TypeReference;\nimport com.frazik.instructgpt.auto.Cli;\nimport com.frazik.instructgpt.embedding.OpenAIEmbeddingProvider;\nimport...
= openAIModel.countTokens(updatedPrompt);
{}
{ "repository": "frazik-main-AmplifyGPT-ac49c2a", "file": "lib/src/main/java/com/frazik/instructgpt/Agent.java", "task_id": "project_cc_java/2115" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "lib/src/main/java/com/frazik/instructgpt/Agent.java", "groundtruth_start_lineno": 82, "repository": "frazik-main-AmplifyGPT-ac49c2a", "right_context_start_lineno": 83, "task_id": "project_cc_java/2115" } }
cross_code_eval_java::project_cc_java/2121
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // lib/src/main/java/com/frazik/instructgpt/tools/Browser.java // try { // doc = Jsoup...
{ "prefix": "package com.frazik.instructgpt;\n\nimport com.fasterxml.jackson.databind.JsonNode;\nimport com.fasterxml.jackson.databind.ObjectMapper;\nimport com.fasterxml.jackson.core.type.TypeReference;\nimport com.frazik.instructgpt.auto.Cli;\nimport com.frazik.instructgpt.embedding.OpenAIEmbeddingProvider;\nimport...
= openAIModel.chat(fullPrompt, tokenLimit - tokenCount);
{}
{ "repository": "frazik-main-AmplifyGPT-ac49c2a", "file": "lib/src/main/java/com/frazik/instructgpt/Agent.java", "task_id": "project_cc_java/2121" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "lib/src/main/java/com/frazik/instructgpt/Agent.java", "groundtruth_start_lineno": 184, "repository": "frazik-main-AmplifyGPT-ac49c2a", "right_context_start_lineno": 185, "task_id": "project_cc_java/2121" } }
cross_code_eval_java::project_cc_java/2125
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // lib/src/main/java/com/frazik/instructgpt/prompts/Prompt.java // try { // InputStrea...
{ "prefix": "package com.frazik.instructgpt;\n\nimport com.fasterxml.jackson.databind.JsonNode;\nimport com.fasterxml.jackson.databind.ObjectMapper;\nimport com.fasterxml.jackson.core.type.TypeReference;\nimport com.frazik.instructgpt.auto.Cli;\nimport com.frazik.instructgpt.embedding.OpenAIEmbeddingProvider;\nimport...
.memory.add(humanFeedbackPrompt.getContent());
{}
{ "repository": "frazik-main-AmplifyGPT-ac49c2a", "file": "lib/src/main/java/com/frazik/instructgpt/Agent.java", "task_id": "project_cc_java/2125" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "lib/src/main/java/com/frazik/instructgpt/Agent.java", "groundtruth_start_lineno": 165, "repository": "frazik-main-AmplifyGPT-ac49c2a", "right_context_start_lineno": 166, "task_id": "project_cc_java/2125" } }
cross_code_eval_java::project_cc_java/2116
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // lib/src/main/java/com/frazik/instructgpt/prompts/Prompt.java // } // public Builder for...
{ "prefix": "package com.frazik.instructgpt;\n\nimport com.fasterxml.jackson.databind.JsonNode;\nimport com.fasterxml.jackson.databind.ObjectMapper;\nimport com.fasterxml.jackson.core.type.TypeReference;\nimport com.frazik.instructgpt.auto.Cli;\nimport com.frazik.instructgpt.embedding.OpenAIEmbeddingProvider;\nimport...
int tokenLimit = openAIModel.getTokenLimit() - 1000;
{}
{ "repository": "frazik-main-AmplifyGPT-ac49c2a", "file": "lib/src/main/java/com/frazik/instructgpt/Agent.java", "task_id": "project_cc_java/2116" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "lib/src/main/java/com/frazik/instructgpt/Agent.java", "groundtruth_start_lineno": 117, "repository": "frazik-main-AmplifyGPT-ac49c2a", "right_context_start_lineno": 118, "task_id": "project_cc_java/2116" } }
cross_code_eval_java::project_cc_java/2133
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // lib/src/test/java/com/frazik/instructgpt/PromptTests.java // String promptString = prompt.g...
{ "prefix": "package com.frazik.instructgpt;\n\nimport com.fasterxml.jackson.databind.JsonNode;\nimport com.fasterxml.jackson.databind.ObjectMapper;\nimport com.fasterxml.jackson.core.type.TypeReference;\nimport com.frazik.instructgpt.auto.Cli;\nimport com.frazik.instructgpt.embedding.OpenAIEmbeddingProvider;\nimport...
return defaultResponsePrompt.getContent();
{}
{ "repository": "frazik-main-AmplifyGPT-ac49c2a", "file": "lib/src/main/java/com/frazik/instructgpt/Agent.java", "task_id": "project_cc_java/2133" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "lib/src/main/java/com/frazik/instructgpt/Agent.java", "groundtruth_start_lineno": 312, "repository": "frazik-main-AmplifyGPT-ac49c2a", "right_context_start_lineno": 313, "task_id": "project_cc_java/2133" } }
cross_code_eval_java::project_cc_java/2122
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // lib/src/test/java/com/frazik/instructgpt/PromptTests.java // String promptString = prompt.g...
{ "prefix": "package com.frazik.instructgpt;\n\nimport com.fasterxml.jackson.databind.JsonNode;\nimport com.fasterxml.jackson.databind.ObjectMapper;\nimport com.fasterxml.jackson.core.type.TypeReference;\nimport com.frazik.instructgpt.auto.Cli;\nimport com.frazik.instructgpt.embedding.OpenAIEmbeddingProvider;\nimport...
(currentTimePrompt.getPrompt());
{}
{ "repository": "frazik-main-AmplifyGPT-ac49c2a", "file": "lib/src/main/java/com/frazik/instructgpt/Agent.java", "task_id": "project_cc_java/2122" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "lib/src/main/java/com/frazik/instructgpt/Agent.java", "groundtruth_start_lineno": 63, "repository": "frazik-main-AmplifyGPT-ac49c2a", "right_context_start_lineno": 64, "task_id": "project_cc_java/2122" } }
cross_code_eval_java::project_cc_java/2132
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // lib/src/main/java/com/frazik/instructgpt/prompts/PromptHistory.java // String key = ent...
{ "prefix": "package com.frazik.instructgpt;\n\nimport com.fasterxml.jackson.databind.JsonNode;\nimport com.fasterxml.jackson.databind.ObjectMapper;\nimport com.fasterxml.jackson.core.type.TypeReference;\nimport com.frazik.instructgpt.auto.Cli;\nimport com.frazik.instructgpt.embedding.OpenAIEmbeddingProvider;\nimport...
Prompt.getDefaultResponse();
{}
{ "repository": "frazik-main-AmplifyGPT-ac49c2a", "file": "lib/src/main/java/com/frazik/instructgpt/Agent.java", "task_id": "project_cc_java/2132" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "lib/src/main/java/com/frazik/instructgpt/Agent.java", "groundtruth_start_lineno": 308, "repository": "frazik-main-AmplifyGPT-ac49c2a", "right_context_start_lineno": 309, "task_id": "project_cc_java/2132" } }
cross_code_eval_java::project_cc_java/2142
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/froobworld/seemore/controller/ViewDistanceUpdater.java // seenBefore.add(...
{ "prefix": "package com.froobworld.seemore.controller;\n\nimport com.froobworld.seemore.SeeMore;\nimport com.froobworld.seemore.scheduler.ScheduledTask;\nimport org.bukkit.Bukkit;\nimport org.bukkit.entity.Player;\n\nimport java.util.Map;\nimport java.util.UUID;\nimport java.util.concurrent.CompletableFuture;\nimpor...
return seeMore.getSchedulerHook().runTaskDelayed(() -> updateDistance(player, 0, attempts, distanceMap, taskMap, distanceConsumer), delay);
{}
{ "repository": "froobynooby-SeeMore-8347860", "file": "src/main/java/com/froobworld/seemore/controller/ViewDistanceController.java", "task_id": "project_cc_java/2142" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/froobworld/seemore/controller/ViewDistanceController.java", "groundtruth_start_lineno": 78, "repository": "froobynooby-SeeMore-8347860", "right_context_start_lineno": 79, "task_id": "project_cc_java/2142" } }
cross_code_eval_java::project_cc_java/2145
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/froobworld/seemore/controller/ViewDistanceController.java // delay = ...
{ "prefix": "package com.froobworld.seemore;\n\nimport com.froobworld.seemore.command.SeeMoreCommand;\nimport com.froobworld.seemore.config.SeeMoreConfig;\nimport com.froobworld.seemore.controller.ViewDistanceController;\nimport com.froobworld.seemore.metrics.SeeMoreMetrics;\nimport com.froobworld.seemore.scheduler.B...
viewDistanceController.updateAllPlayers();
{}
{ "repository": "froobynooby-SeeMore-8347860", "file": "src/main/java/com/froobworld/seemore/SeeMore.java", "task_id": "project_cc_java/2145" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/froobworld/seemore/SeeMore.java", "groundtruth_start_lineno": 62, "repository": "froobynooby-SeeMore-8347860", "right_context_start_lineno": 63, "task_id": "project_cc_java/2145" } }
cross_code_eval_java::project_cc_java/2143
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/froobworld/seemore/scheduler/RegionisedSchedulerHook.java // } // @Override /...
{ "prefix": "package com.froobworld.seemore.controller;\n\nimport com.froobworld.seemore.SeeMore;\nimport com.froobworld.seemore.scheduler.ScheduledTask;\nimport org.bukkit.Bukkit;\nimport org.bukkit.entity.Player;\n\nimport java.util.Map;\nimport java.util.UUID;\nimport java.util.concurrent.CompletableFuture;\nimpor...
updateTask = seeMore.getSchedulerHook().runEntityTaskAsap(() -> {
{}
{ "repository": "froobynooby-SeeMore-8347860", "file": "src/main/java/com/froobworld/seemore/controller/ViewDistanceController.java", "task_id": "project_cc_java/2143" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/froobworld/seemore/controller/ViewDistanceController.java", "groundtruth_start_lineno": 81, "repository": "froobynooby-SeeMore-8347860", "right_context_start_lineno": 82, "task_id": "project_cc_java/2143" } }
cross_code_eval_java::project_cc_java/2141
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/froobworld/seemore/command/AverageCommand.java // ); // sende...
{ "prefix": "package com.froobworld.seemore.controller;\n\nimport com.froobworld.seemore.SeeMore;\nimport com.froobworld.seemore.scheduler.ScheduledTask;\nimport org.bukkit.Bukkit;\nimport org.bukkit.entity.Player;\n\nimport java.util.Map;\nimport java.util.UUID;\nimport java.util.concurrent.CompletableFuture;\nimpor...
seeMore.getSeeMoreConfig().updateDelay.get();
{}
{ "repository": "froobynooby-SeeMore-8347860", "file": "src/main/java/com/froobworld/seemore/controller/ViewDistanceController.java", "task_id": "project_cc_java/2141" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/froobworld/seemore/controller/ViewDistanceController.java", "groundtruth_start_lineno": 49, "repository": "froobynooby-SeeMore-8347860", "right_context_start_lineno": 50, "task_id": "project_cc_java/2141" } }
cross_code_eval_java::project_cc_java/2168
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/george/performance/tests/impl/FileWriteTest.java // } // @Override // pub...
{ "prefix": "package dev.george.performance;\n\nimport com.google.gson.Gson;\nimport com.google.gson.GsonBuilder;\nimport com.google.gson.JsonObject;\nimport dev.george.performance.report.ParsedReport;\nimport dev.george.performance.report.PerformanceReport;\nimport dev.george.performance.result.PerformanceResults;\n...
parsedReport.getAverages().get(test.getTestName()));
{}
{ "repository": "george-java-native-obfuscation-study-76ae062", "file": "src/main/java/dev/george/performance/JavaNativePerformanceTest.java", "task_id": "project_cc_java/2168" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/dev/george/performance/JavaNativePerformanceTest.java", "groundtruth_start_lineno": 63, "repository": "george-java-native-obfuscation-study-76ae062", "right_context_start_lineno": 64, "task_id": "project_cc_java/2168" } }
cross_code_eval_java::project_cc_java/2171
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/george/performance/report/PerformanceReport.java // results.put(test.getTestN...
{ "prefix": "package dev.george.performance;\n\nimport com.google.gson.Gson;\nimport com.google.gson.GsonBuilder;\nimport com.google.gson.JsonObject;\nimport dev.george.performance.report.ParsedReport;\nimport dev.george.performance.report.PerformanceReport;\nimport dev.george.performance.result.PerformanceResults;\n...
.out.println("Successfully completed " + test.getTestName() + " in " + timeElapsed + " ms!");
{}
{ "repository": "george-java-native-obfuscation-study-76ae062", "file": "src/main/java/dev/george/performance/JavaNativePerformanceTest.java", "task_id": "project_cc_java/2171" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/dev/george/performance/JavaNativePerformanceTest.java", "groundtruth_start_lineno": 101, "repository": "george-java-native-obfuscation-study-76ae062", "right_context_start_lineno": 102, "task_id": "project_cc_java/2171" } }
cross_code_eval_java::project_cc_java/2169
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/george/performance/report/ParsedReport.java // throw new RuntimeException...
{ "prefix": "package dev.george.performance;\n\nimport com.google.gson.Gson;\nimport com.google.gson.GsonBuilder;\nimport com.google.gson.JsonObject;\nimport dev.george.performance.report.ParsedReport;\nimport dev.george.performance.report.PerformanceReport;\nimport dev.george.performance.result.PerformanceResults;\n...
"results for " + test.getTestName() + "!");
{}
{ "repository": "george-java-native-obfuscation-study-76ae062", "file": "src/main/java/dev/george/performance/JavaNativePerformanceTest.java", "task_id": "project_cc_java/2169" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/dev/george/performance/JavaNativePerformanceTest.java", "groundtruth_start_lineno": 72, "repository": "george-java-native-obfuscation-study-76ae062", "right_context_start_lineno": 73, "task_id": "project_cc_java/2169" } }
cross_code_eval_java::project_cc_java/2167
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/george/performance/report/PerformanceReport.java // results.put(test.getTestN...
{ "prefix": "package dev.george.performance;\n\nimport com.google.gson.Gson;\nimport com.google.gson.GsonBuilder;\nimport com.google.gson.JsonObject;\nimport dev.george.performance.report.ParsedReport;\nimport dev.george.performance.report.PerformanceReport;\nimport dev.george.performance.result.PerformanceResults;\n...
toJson(report.getResults()).getBytes());
{}
{ "repository": "george-java-native-obfuscation-study-76ae062", "file": "src/main/java/dev/george/performance/JavaNativePerformanceTest.java", "task_id": "project_cc_java/2167" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/dev/george/performance/JavaNativePerformanceTest.java", "groundtruth_start_lineno": 109, "repository": "george-java-native-obfuscation-study-76ae062", "right_context_start_lineno": 110, "task_id": "project_cc_java/2167" } }
cross_code_eval_java::project_cc_java/2215
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/germanosin/kafka/leader/KafkaLeaderElector.java // Thread.sleep(100); //...
{ "prefix": "package com.github.germanosin.kafka.leader.tasks;\n\nimport static com.github.germanosin.kafka.leader.tasks.TaskAssignment.CURRENT_VERSION;\nimport static com.github.germanosin.kafka.leader.tasks.TaskAssignment.NO_ERROR;\n\nimport com.github.germanosin.kafka.leader.AssignmentManager;\nimport com.github.g...
executor.awaitTermination(30, TimeUnit.SECONDS);
{}
{ "repository": "germanosin-kafka-leader-election-bfac281", "file": "src/main/java/com/github/germanosin/kafka/leader/tasks/DefaultLeaderTasksManager.java", "task_id": "project_cc_java/2215" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/github/germanosin/kafka/leader/tasks/DefaultLeaderTasksManager.java", "groundtruth_start_lineno": 178, "repository": "germanosin-kafka-leader-election-bfac281", "right_context_start_lineno": 179, "task_id": "project_cc_java/...
cross_code_eval_java::project_cc_java/2214
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/germanosin/kafka/leader/KafkaLeaderElector.java // Thread.sleep(100); //...
{ "prefix": "package com.github.germanosin.kafka.leader.tasks;\n\nimport static com.github.germanosin.kafka.leader.tasks.TaskAssignment.CURRENT_VERSION;\nimport static com.github.germanosin.kafka.leader.tasks.TaskAssignment.NO_ERROR;\n\nimport com.github.germanosin.kafka.leader.AssignmentManager;\nimport com.github.g...
executor.shutdown();
{}
{ "repository": "germanosin-kafka-leader-election-bfac281", "file": "src/main/java/com/github/germanosin/kafka/leader/tasks/DefaultLeaderTasksManager.java", "task_id": "project_cc_java/2214" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/github/germanosin/kafka/leader/tasks/DefaultLeaderTasksManager.java", "groundtruth_start_lineno": 176, "repository": "germanosin-kafka-leader-election-bfac281", "right_context_start_lineno": 177, "task_id": "project_cc_java/...
cross_code_eval_java::project_cc_java/2218
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/germanosin/kafka/leader/tasks/DefaultLeaderTasksManager.java // .build...
{ "prefix": "package com.github.germanosin.kafka.leader;\n\nimport java.io.Closeable;\nimport java.nio.ByteBuffer;\nimport java.time.Duration;\nimport java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.HashMap;\nimport java.util.List;\nimport java.util.Map;\nimport java.util.Optional;\nimport lombo...
.put(identity.getId(), entry.memberId());
{}
{ "repository": "germanosin-kafka-leader-election-bfac281", "file": "src/main/java/com/github/germanosin/kafka/leader/LeaderCoordinator.java", "task_id": "project_cc_java/2218" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/github/germanosin/kafka/leader/LeaderCoordinator.java", "groundtruth_start_lineno": 148, "repository": "germanosin-kafka-leader-election-bfac281", "right_context_start_lineno": 149, "task_id": "project_cc_java/2218" } }
cross_code_eval_java::project_cc_java/2216
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/germanosin/kafka/leader/LeaderCoordinator.java // public void poll(long time...
{ "prefix": "package com.github.germanosin.kafka.leader;\n\nimport java.net.InetSocketAddress;\nimport java.time.Duration;\nimport java.time.Instant;\nimport java.util.List;\nimport java.util.concurrent.atomic.AtomicBoolean;\nimport java.util.concurrent.atomic.AtomicInteger;\nimport java.util.concurrent.atomic.Atomic...
properties.getConsumerConfig();
{}
{ "repository": "germanosin-kafka-leader-election-bfac281", "file": "src/main/java/com/github/germanosin/kafka/leader/KafkaLeaderElector.java", "task_id": "project_cc_java/2216" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/github/germanosin/kafka/leader/KafkaLeaderElector.java", "groundtruth_start_lineno": 87, "repository": "germanosin-kafka-leader-election-bfac281", "right_context_start_lineno": 88, "task_id": "project_cc_java/2216" } }
cross_code_eval_java::project_cc_java/2219
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/germanosin/kafka/leader/tasks/DefaultLeaderTasksManager.java // @Override //...
{ "prefix": "package com.github.germanosin.kafka.leader;\n\nimport java.io.Closeable;\nimport java.nio.ByteBuffer;\nimport java.time.Duration;\nimport java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.HashMap;\nimport java.util.List;\nimport java.util.Map;\nimport java.util.Optional;\nimport lombo...
().getId());
{}
{ "repository": "germanosin-kafka-leader-election-bfac281", "file": "src/main/java/com/github/germanosin/kafka/leader/LeaderCoordinator.java", "task_id": "project_cc_java/2219" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/github/germanosin/kafka/leader/LeaderCoordinator.java", "groundtruth_start_lineno": 156, "repository": "germanosin-kafka-leader-election-bfac281", "right_context_start_lineno": 157, "task_id": "project_cc_java/2219" } }
cross_code_eval_java::project_cc_java/2217
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/germanosin/kafka/leader/LeaderCoordinator.java // public void poll(long time...
{ "prefix": "package com.github.germanosin.kafka.leader;\n\nimport java.net.InetSocketAddress;\nimport java.time.Duration;\nimport java.time.Instant;\nimport java.util.List;\nimport java.util.concurrent.atomic.AtomicBoolean;\nimport java.util.concurrent.atomic.AtomicInteger;\nimport java.util.concurrent.atomic.Atomic...
identity.getId() + "-" + BD_CLIENT_ID_SEQUENCE.getAndIncrement();
{}
{ "repository": "germanosin-kafka-leader-election-bfac281", "file": "src/main/java/com/github/germanosin/kafka/leader/KafkaLeaderElector.java", "task_id": "project_cc_java/2217" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/github/germanosin/kafka/leader/KafkaLeaderElector.java", "groundtruth_start_lineno": 80, "repository": "germanosin-kafka-leader-election-bfac281", "right_context_start_lineno": 81, "task_id": "project_cc_java/2217" } }
cross_code_eval_java::project_cc_java/2211
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/net/gerasiov/particleapi/schemes/build/rectangle/BuildRectangleScheme.java // ...
{ "prefix": "package net.gerasiov.particleapi.geometry;\n\nimport net.gerasiov.particleapi.ParticleAPI;\nimport net.gerasiov.particleapi.ParticleSpawnInjector;\nimport net.gerasiov.particleapi.events.ParticleConstructSpawnEvent;\nimport net.gerasiov.particleapi.particles.RegularParticle;\nimport net.gerasiov.particle...
[j].spawn();
{}
{ "repository": "gerasiovM-ParticleAPI-376987e", "file": "src/main/java/net/gerasiov/particleapi/geometry/ParticleMatrix.java", "task_id": "project_cc_java/2211" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/gerasiov/particleapi/geometry/ParticleMatrix.java", "groundtruth_start_lineno": 202, "repository": "gerasiovM-ParticleAPI-376987e", "right_context_start_lineno": 203, "task_id": "project_cc_java/2211" } }
cross_code_eval_java::project_cc_java/2176
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/net/gerasiov/particleapi/particles/BlockParticle.java // if (!event.isCancelled()...
{ "prefix": "package net.gerasiov.particleapi.particles;\n\nimport org.bukkit.Bukkit;\nimport org.bukkit.Location;\nimport org.bukkit.Particle;\n\nimport net.gerasiov.particleapi.events.ParticleSpawnEvent;\n\npublic class NoteParticle extends RegularParticle {\n private double note;\n\n /**\n * Creates a ne...
if (!particleSpawnEvent.isCancelled()) {
{}
{ "repository": "gerasiovM-ParticleAPI-376987e", "file": "src/main/java/net/gerasiov/particleapi/particles/NoteParticle.java", "task_id": "project_cc_java/2176" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/gerasiov/particleapi/particles/NoteParticle.java", "groundtruth_start_lineno": 55, "repository": "gerasiovM-ParticleAPI-376987e", "right_context_start_lineno": 56, "task_id": "project_cc_java/2176" } }
cross_code_eval_java::project_cc_java/2210
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/net/gerasiov/particleapi/geometry/ParticleArray.java // this.particles[i] = c...
{ "prefix": "package net.gerasiov.particleapi.geometry;\n\nimport net.gerasiov.particleapi.ParticleAPI;\nimport net.gerasiov.particleapi.ParticleSpawnInjector;\nimport net.gerasiov.particleapi.events.ParticleConstructSpawnEvent;\nimport net.gerasiov.particleapi.particles.RegularParticle;\nimport net.gerasiov.particle...
[j].clone();
{}
{ "repository": "gerasiovM-ParticleAPI-376987e", "file": "src/main/java/net/gerasiov/particleapi/geometry/ParticleMatrix.java", "task_id": "project_cc_java/2210" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/gerasiov/particleapi/geometry/ParticleMatrix.java", "groundtruth_start_lineno": 156, "repository": "gerasiovM-ParticleAPI-376987e", "right_context_start_lineno": 157, "task_id": "project_cc_java/2210" } }
cross_code_eval_java::project_cc_java/2148
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // fabric/src/main/java/fr/fyustorm/minetiface/mixin/ClientPlayerEntityMixins.java // private void pla...
{ "prefix": "package fr.fyustorm.minetiface.commons.intiface;\n\nimport fr.fyustorm.minetiface.commons.config.MinetifaceConfig;\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class MinetifaceController {\n\n\tprivate static final Logger LOGG...
ToyController.instance().setScalarLevel(intensity);
{}
{ "repository": "Fyustorm-mInetiface-6a598f5", "file": "commons/src/main/java/fr/fyustorm/minetiface/commons/intiface/MinetifaceController.java", "task_id": "project_cc_java/2148" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "commons/src/main/java/fr/fyustorm/minetiface/commons/intiface/MinetifaceController.java", "groundtruth_start_lineno": 102, "repository": "Fyustorm-mInetiface-6a598f5", "right_context_start_lineno": 103, "task_id": "project_cc_java/2148" } }
cross_code_eval_java::project_cc_java/2150
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // fabric/src/main/java/fr/fyustorm/minetiface/mixin/ClientPlayerEntityMixins.java // private void pla...
{ "prefix": "package fr.fyustorm.minetiface.commons.intiface;\n\nimport fr.fyustorm.minetiface.commons.config.MinetifaceConfig;\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class MinetifaceController {\n\n\tprivate static final Logger LOGG...
ToyController.instance().setScalarLevel(0);
{}
{ "repository": "Fyustorm-mInetiface-6a598f5", "file": "commons/src/main/java/fr/fyustorm/minetiface/commons/intiface/MinetifaceController.java", "task_id": "project_cc_java/2150" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "commons/src/main/java/fr/fyustorm/minetiface/commons/intiface/MinetifaceController.java", "groundtruth_start_lineno": 144, "repository": "Fyustorm-mInetiface-6a598f5", "right_context_start_lineno": 145, "task_id": "project_cc_java/2150" } }
cross_code_eval_java::project_cc_java/2152
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // fabric/src/main/java/fr/fyustorm/minetiface/mixin/LivingEntityMixins.java // } // // On...
{ "prefix": "package fr.fyustorm.minetiface.commons.intiface;\n\nimport fr.fyustorm.minetiface.commons.config.MinetifaceConfig;\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class MinetifaceController {\n\n\tprivate static final Logger LOGG...
masochistPointsCounter.onHurt(amount);
{}
{ "repository": "Fyustorm-mInetiface-6a598f5", "file": "commons/src/main/java/fr/fyustorm/minetiface/commons/intiface/MinetifaceController.java", "task_id": "project_cc_java/2152" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "commons/src/main/java/fr/fyustorm/minetiface/commons/intiface/MinetifaceController.java", "groundtruth_start_lineno": 116, "repository": "Fyustorm-mInetiface-6a598f5", "right_context_start_lineno": 117, "task_id": "project_cc_java/2152" } }
cross_code_eval_java::project_cc_java/2154
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // commons/src/main/java/fr/fyustorm/minetiface/commons/intiface/AbstractPointsCounter.java // } // prot...
{ "prefix": "package fr.fyustorm.minetiface.commons.intiface;\n\nimport fr.fyustorm.minetiface.commons.config.MinetifaceConfig;\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class MinetifaceController {\n\n\tprivate static final Logger LOGG...
abstractPointsCounter.getInstantPoints(), instanPoints);
{}
{ "repository": "Fyustorm-mInetiface-6a598f5", "file": "commons/src/main/java/fr/fyustorm/minetiface/commons/intiface/MinetifaceController.java", "task_id": "project_cc_java/2154" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "commons/src/main/java/fr/fyustorm/minetiface/commons/intiface/MinetifaceController.java", "groundtruth_start_lineno": 64, "repository": "Fyustorm-mInetiface-6a598f5", "right_context_start_lineno": 65, "task_id": "project_cc_java/2154" } }
cross_code_eval_java::project_cc_java/2156
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // commons/src/main/java/fr/fyustorm/minetiface/commons/intiface/AbstractPointsCounter.java // } // /** ...
{ "prefix": "package fr.fyustorm.minetiface.commons.intiface;\n\nimport fr.fyustorm.minetiface.commons.config.MinetifaceConfig;\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class MinetifaceController {\n\n\tprivate static final Logger LOGG...
skipDownTick += abstractPointsCounter.getSkipDownTicks();
{}
{ "repository": "Fyustorm-mInetiface-6a598f5", "file": "commons/src/main/java/fr/fyustorm/minetiface/commons/intiface/MinetifaceController.java", "task_id": "project_cc_java/2156" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "commons/src/main/java/fr/fyustorm/minetiface/commons/intiface/MinetifaceController.java", "groundtruth_start_lineno": 80, "repository": "Fyustorm-mInetiface-6a598f5", "right_context_start_lineno": 81, "task_id": "project_cc_java/2156" } }
cross_code_eval_java::project_cc_java/2155
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // commons/src/main/java/fr/fyustorm/minetiface/commons/intiface/AbstractPointsCounter.java // } // /** ...
{ "prefix": "package fr.fyustorm.minetiface.commons.intiface;\n\nimport fr.fyustorm.minetiface.commons.config.MinetifaceConfig;\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class MinetifaceController {\n\n\tprivate static final Logger LOGG...
= Math.max(abstractPointsCounter.getPoints(), points);
{}
{ "repository": "Fyustorm-mInetiface-6a598f5", "file": "commons/src/main/java/fr/fyustorm/minetiface/commons/intiface/MinetifaceController.java", "task_id": "project_cc_java/2155" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "commons/src/main/java/fr/fyustorm/minetiface/commons/intiface/MinetifaceController.java", "groundtruth_start_lineno": 72, "repository": "Fyustorm-mInetiface-6a598f5", "right_context_start_lineno": 73, "task_id": "project_cc_java/2155" } }
cross_code_eval_java::project_cc_java/2149
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // fabric/src/main/java/fr/fyustorm/minetiface/mixin/ClientPlayerEntityMixins.java // private void pla...
{ "prefix": "package fr.fyustorm.minetiface.commons.intiface;\n\nimport fr.fyustorm.minetiface.commons.config.MinetifaceConfig;\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class MinetifaceController {\n\n\tprivate static final Logger LOGG...
ToyController.instance().setLinearLevel(intensity);
{}
{ "repository": "Fyustorm-mInetiface-6a598f5", "file": "commons/src/main/java/fr/fyustorm/minetiface/commons/intiface/MinetifaceController.java", "task_id": "project_cc_java/2149" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "commons/src/main/java/fr/fyustorm/minetiface/commons/intiface/MinetifaceController.java", "groundtruth_start_lineno": 105, "repository": "Fyustorm-mInetiface-6a598f5", "right_context_start_lineno": 106, "task_id": "project_cc_java/2149" } }
cross_code_eval_java::project_cc_java/2158
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // commons/src/main/java/fr/fyustorm/minetiface/commons/intiface/AbstractPointsCounter.java // return po...
{ "prefix": "package fr.fyustorm.minetiface.commons.intiface;\n\nimport fr.fyustorm.minetiface.commons.config.MinetifaceConfig;\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class MinetifaceController {\n\n\tprivate static final Logger LOGG...
abstractPointsCounter.onTick();
{}
{ "repository": "Fyustorm-mInetiface-6a598f5", "file": "commons/src/main/java/fr/fyustorm/minetiface/commons/intiface/MinetifaceController.java", "task_id": "project_cc_java/2158" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "commons/src/main/java/fr/fyustorm/minetiface/commons/intiface/MinetifaceController.java", "groundtruth_start_lineno": 98, "repository": "Fyustorm-mInetiface-6a598f5", "right_context_start_lineno": 99, "task_id": "project_cc_java/2158" } }
cross_code_eval_java::project_cc_java/2153
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // fabric/src/main/java/fr/fyustorm/minetiface/mixin/LivingEntityMixins.java // } // // On...
{ "prefix": "package fr.fyustorm.minetiface.commons.intiface;\n\nimport fr.fyustorm.minetiface.commons.config.MinetifaceConfig;\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class MinetifaceController {\n\n\tprivate static final Logger LOGG...
masochistPointsCounter.onDeath();
{}
{ "repository": "Fyustorm-mInetiface-6a598f5", "file": "commons/src/main/java/fr/fyustorm/minetiface/commons/intiface/MinetifaceController.java", "task_id": "project_cc_java/2153" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "commons/src/main/java/fr/fyustorm/minetiface/commons/intiface/MinetifaceController.java", "groundtruth_start_lineno": 122, "repository": "Fyustorm-mInetiface-6a598f5", "right_context_start_lineno": 123, "task_id": "project_cc_java/2153" } }
cross_code_eval_java::project_cc_java/2234
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // api/src/main/java/com/googlecodesamples/cloud/jss/lds/controller/FileController.java // } // /** //...
{ "prefix": "/*\n * Copyright 2023 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 applica...
, file.genThumbnailPath());
{}
{ "repository": "GoogleCloudPlatform-app-large-data-sharing-java-fd21141", "file": "api/src/main/java/com/googlecodesamples/cloud/jss/lds/service/FileService.java", "task_id": "project_cc_java/2234" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "api/src/main/java/com/googlecodesamples/cloud/jss/lds/service/FileService.java", "groundtruth_start_lineno": 88, "repository": "GoogleCloudPlatform-app-large-data-sharing-java-fd21141", "right_context_start_lineno": 89, "task_id": "project_cc...
cross_code_eval_java::project_cc_java/2240
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // api/src/main/java/com/googlecodesamples/cloud/jss/lds/service/StorageService.java // BlobInfo blobI...
{ "prefix": "/*\n * Copyright 2023 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 applica...
= LdsUtil.getFileBucketPath(basePath, newFileId);
{}
{ "repository": "GoogleCloudPlatform-app-large-data-sharing-java-fd21141", "file": "api/src/main/java/com/googlecodesamples/cloud/jss/lds/service/FileService.java", "task_id": "project_cc_java/2240" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "api/src/main/java/com/googlecodesamples/cloud/jss/lds/service/FileService.java", "groundtruth_start_lineno": 172, "repository": "GoogleCloudPlatform-app-large-data-sharing-java-fd21141", "right_context_start_lineno": 173, "task_id": "project_...
cross_code_eval_java::project_cc_java/2236
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // api/src/main/java/com/googlecodesamples/cloud/jss/lds/controller/FileController.java // } // /** //...
{ "prefix": "/*\n * Copyright 2023 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 applica...
(newFile.checkImageFileType()) {
{}
{ "repository": "GoogleCloudPlatform-app-large-data-sharing-java-fd21141", "file": "api/src/main/java/com/googlecodesamples/cloud/jss/lds/service/FileService.java", "task_id": "project_cc_java/2236" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "api/src/main/java/com/googlecodesamples/cloud/jss/lds/service/FileService.java", "groundtruth_start_lineno": 153, "repository": "GoogleCloudPlatform-app-large-data-sharing-java-fd21141", "right_context_start_lineno": 154, "task_id": "project_...
cross_code_eval_java::project_cc_java/2237
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // api/src/main/java/com/googlecodesamples/cloud/jss/lds/controller/FileController.java // } // /** //...
{ "prefix": "/*\n * Copyright 2023 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 applica...
newFile.genThumbnailPath());
{}
{ "repository": "GoogleCloudPlatform-app-large-data-sharing-java-fd21141", "file": "api/src/main/java/com/googlecodesamples/cloud/jss/lds/service/FileService.java", "task_id": "project_cc_java/2237" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "api/src/main/java/com/googlecodesamples/cloud/jss/lds/service/FileService.java", "groundtruth_start_lineno": 154, "repository": "GoogleCloudPlatform-app-large-data-sharing-java-fd21141", "right_context_start_lineno": 155, "task_id": "project_...
cross_code_eval_java::project_cc_java/2233
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // api/src/main/java/com/googlecodesamples/cloud/jss/lds/service/FileService.java // firestoreService....
{ "prefix": "/*\n * Copyright 2023 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 applica...
.orderNo = System.currentTimeMillis() + "-" + LdsUtil.getPathId(path);
{}
{ "repository": "GoogleCloudPlatform-app-large-data-sharing-java-fd21141", "file": "api/src/main/java/com/googlecodesamples/cloud/jss/lds/model/FileMeta.java", "task_id": "project_cc_java/2233" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "api/src/main/java/com/googlecodesamples/cloud/jss/lds/model/FileMeta.java", "groundtruth_start_lineno": 41, "repository": "GoogleCloudPlatform-app-large-data-sharing-java-fd21141", "right_context_start_lineno": 42, "task_id": "project_cc_java...
cross_code_eval_java::project_cc_java/2244
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // api/src/main/java/com/googlecodesamples/cloud/jss/lds/controller/FileController.java // }); // } ...
{ "prefix": "/*\n * Copyright 2023 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 applica...
storageService.batchDelete(bucketName);
{}
{ "repository": "GoogleCloudPlatform-app-large-data-sharing-java-fd21141", "file": "api/src/main/java/com/googlecodesamples/cloud/jss/lds/service/FileService.java", "task_id": "project_cc_java/2244" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "api/src/main/java/com/googlecodesamples/cloud/jss/lds/service/FileService.java", "groundtruth_start_lineno": 134, "repository": "GoogleCloudPlatform-app-large-data-sharing-java-fd21141", "right_context_start_lineno": 135, "task_id": "project_...
cross_code_eval_java::project_cc_java/2246
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // api/src/main/java/com/googlecodesamples/cloud/jss/lds/service/FileService.java // log.info("enterin...
{ "prefix": "/*\n * Copyright 2023 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 applica...
resourceBasePath = LdsUtil.getResourceBasePath(basePath);
{}
{ "repository": "GoogleCloudPlatform-app-large-data-sharing-java-fd21141", "file": "api/src/main/java/com/googlecodesamples/cloud/jss/lds/service/FirestoreService.java", "task_id": "project_cc_java/2246" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "api/src/main/java/com/googlecodesamples/cloud/jss/lds/service/FirestoreService.java", "groundtruth_start_lineno": 126, "repository": "GoogleCloudPlatform-app-large-data-sharing-java-fd21141", "right_context_start_lineno": 127, "task_id": "pro...
cross_code_eval_java::project_cc_java/2248
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // api/src/main/java/com/googlecodesamples/cloud/jss/lds/service/FileService.java // storageService.de...
{ "prefix": "/*\n * Copyright 2023 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 applica...
BaseFile oldFile = fileService.getFileById(fileId);
{}
{ "repository": "GoogleCloudPlatform-app-large-data-sharing-java-fd21141", "file": "api/src/main/java/com/googlecodesamples/cloud/jss/lds/controller/FileController.java", "task_id": "project_cc_java/2248" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "api/src/main/java/com/googlecodesamples/cloud/jss/lds/controller/FileController.java", "groundtruth_start_lineno": 121, "repository": "GoogleCloudPlatform-app-large-data-sharing-java-fd21141", "right_context_start_lineno": 122, "task_id": "pr...
cross_code_eval_java::project_cc_java/2260
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/google/fhir/cql/beam/KeyForContextFn.java // } // /** // * Returns a map from ...
{ "prefix": "/*\n * Copyright (C) 2023 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not\n * use this file except in compliance with the License. You may obtain a copy of\n * the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by a...
(contextValue.getType(), contextValue.getId());
{}
{ "repository": "google-cql-on-beam-82f1c68", "file": "src/main/java/com/google/fhir/cql/beam/EvaluateCqlForContextFn.java", "task_id": "project_cc_java/2260" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/google/fhir/cql/beam/EvaluateCqlForContextFn.java", "groundtruth_start_lineno": 86, "repository": "google-cql-on-beam-82f1c68", "right_context_start_lineno": 87, "task_id": "project_cc_java/2260" } }
cross_code_eval_java::project_cc_java/2262
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/google/fhir/cql/beam/KeyForContextFn.java // } // /** // * Returns a map from ...
{ "prefix": "/*\n * Copyright (C) 2023 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not\n * use this file except in compliance with the License. You may obtain a copy of\n * the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by a...
enterContext(contextValue.getType());
{}
{ "repository": "google-cql-on-beam-82f1c68", "file": "src/main/java/com/google/fhir/cql/beam/EvaluateCqlForContextFn.java", "task_id": "project_cc_java/2262" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/google/fhir/cql/beam/EvaluateCqlForContextFn.java", "groundtruth_start_lineno": 87, "repository": "google-cql-on-beam-82f1c68", "right_context_start_lineno": 88, "task_id": "project_cc_java/2262" } }
cross_code_eval_java::project_cc_java/2261
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/google/fhir/cql/beam/KeyForContextFn.java // } // /** // * Returns a map from ...
{ "prefix": "/*\n * Copyright (C) 2023 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not\n * use this file except in compliance with the License. You may obtain a copy of\n * the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by a...
contextValue.getId());
{}
{ "repository": "google-cql-on-beam-82f1c68", "file": "src/main/java/com/google/fhir/cql/beam/EvaluateCqlForContextFn.java", "task_id": "project_cc_java/2261" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/google/fhir/cql/beam/EvaluateCqlForContextFn.java", "groundtruth_start_lineno": 86, "repository": "google-cql-on-beam-82f1c68", "right_context_start_lineno": 87, "task_id": "project_cc_java/2261" } }
cross_code_eval_java::project_cc_java/2299
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/dice/DTO/ResultadoSwDTO.java // } // public void setSucessos(final int sucess...
{ "prefix": "package com.dice.service;\n\nimport com.dice.DTO.DiceSwDTO;\nimport com.dice.DTO.ResultadoSwDTO;\nimport com.dice.DTO.ResultadoSwForceDTO;\nimport com.dice.model.Dice;\nimport org.springframework.stereotype.Service;\n\n@Service\npublic class StarWarsService {\n\n public StarWarsService() {}\n\n pub...
diceResult.setAmeacas(0);
{}
{ "repository": "grcreutzberg-dice-api-d58bb3d", "file": "src/main/java/com/dice/service/StarWarsService.java", "task_id": "project_cc_java/2299" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/dice/service/StarWarsService.java", "groundtruth_start_lineno": 157, "repository": "grcreutzberg-dice-api-d58bb3d", "right_context_start_lineno": 158, "task_id": "project_cc_java/2299" } }
cross_code_eval_java::project_cc_java/2259
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/google/fhir/cql/beam/EvaluateCqlForContextFn.java // .map(SerializableLib...
{ "prefix": "/*\n * Copyright (C) 2023 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not\n * use this file except in compliance with the License. You may obtain a copy of\n * the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by a...
(libraryIds.getVersion()), new CqlTranslatorOptions(TRANSLATOR_OPTIONS), errors);
{}
{ "repository": "google-cql-on-beam-82f1c68", "file": "src/main/java/com/google/fhir/cql/beam/EvaluateCql.java", "task_id": "project_cc_java/2259" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/google/fhir/cql/beam/EvaluateCql.java", "groundtruth_start_lineno": 157, "repository": "google-cql-on-beam-82f1c68", "right_context_start_lineno": 160, "task_id": "project_cc_java/2259" } }
cross_code_eval_java::project_cc_java/2293
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/dice/DTO/ResultadoSwDTO.java // } // public void setSucessos(final int sucess...
{ "prefix": "package com.dice.service;\n\nimport com.dice.DTO.DiceSwDTO;\nimport com.dice.DTO.ResultadoSwDTO;\nimport com.dice.DTO.ResultadoSwForceDTO;\nimport com.dice.model.Dice;\nimport org.springframework.stereotype.Service;\n\n@Service\npublic class StarWarsService {\n\n public StarWarsService() {}\n\n pub...
diceResult.setFracassos(0);
{}
{ "repository": "grcreutzberg-dice-api-d58bb3d", "file": "src/main/java/com/dice/service/StarWarsService.java", "task_id": "project_cc_java/2293" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/dice/service/StarWarsService.java", "groundtruth_start_lineno": 146, "repository": "grcreutzberg-dice-api-d58bb3d", "right_context_start_lineno": 147, "task_id": "project_cc_java/2293" } }
cross_code_eval_java::project_cc_java/2257
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/google/fhir/cql/beam/ForwardingModelResolver.java // public Boolean is(Object value...
{ "prefix": "/*\n * Copyright (C) 2023 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not\n * use this file except in compliance with the License. You may obtain a copy of\n * the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by a...
super.resolveType(value);
{}
{ "repository": "google-cql-on-beam-82f1c68", "file": "src/main/java/com/google/fhir/cql/beam/CachingModelResolver.java", "task_id": "project_cc_java/2257" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/google/fhir/cql/beam/CachingModelResolver.java", "groundtruth_start_lineno": 41, "repository": "google-cql-on-beam-82f1c68", "right_context_start_lineno": 42, "task_id": "project_cc_java/2257" } }
cross_code_eval_java::project_cc_java/2295
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/dice/DTO/ResultadoSwDTO.java // } // public void setSucessos(final int sucess...
{ "prefix": "package com.dice.service;\n\nimport com.dice.DTO.DiceSwDTO;\nimport com.dice.DTO.ResultadoSwDTO;\nimport com.dice.DTO.ResultadoSwForceDTO;\nimport com.dice.model.Dice;\nimport org.springframework.stereotype.Service;\n\n@Service\npublic class StarWarsService {\n\n public StarWarsService() {}\n\n pub...
diceResult.setFracassos(failure - success);
{}
{ "repository": "grcreutzberg-dice-api-d58bb3d", "file": "src/main/java/com/dice/service/StarWarsService.java", "task_id": "project_cc_java/2295" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/dice/service/StarWarsService.java", "groundtruth_start_lineno": 149, "repository": "grcreutzberg-dice-api-d58bb3d", "right_context_start_lineno": 150, "task_id": "project_cc_java/2295" } }
cross_code_eval_java::project_cc_java/2258
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/google/fhir/cql/beam/EvaluateCqlForContextFn.java // import org.opencds.cqf.cql.engin...
{ "prefix": "/*\n * Copyright (C) 2023 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not\n * use this file except in compliance with the License. You may obtain a copy of\n * the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by a...
withId(libraryIds.getName()) .withVersion(libraryIds.getVersion()), new CqlTranslatorOptions(TRANSLATOR_OPTIONS), errors);
{}
{ "repository": "google-cql-on-beam-82f1c68", "file": "src/main/java/com/google/fhir/cql/beam/EvaluateCql.java", "task_id": "project_cc_java/2258" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/google/fhir/cql/beam/EvaluateCql.java", "groundtruth_start_lineno": 156, "repository": "google-cql-on-beam-82f1c68", "right_context_start_lineno": 160, "task_id": "project_cc_java/2258" } }
cross_code_eval_java::project_cc_java/2292
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/dice/DTO/ResultadoSwDTO.java // } // public void setSucessos(final int sucess...
{ "prefix": "package com.dice.service;\n\nimport com.dice.DTO.DiceSwDTO;\nimport com.dice.DTO.ResultadoSwDTO;\nimport com.dice.DTO.ResultadoSwForceDTO;\nimport com.dice.model.Dice;\nimport org.springframework.stereotype.Service;\n\n@Service\npublic class StarWarsService {\n\n public StarWarsService() {}\n\n pub...
diceResult.setSucessos(success - failure);
{}
{ "repository": "grcreutzberg-dice-api-d58bb3d", "file": "src/main/java/com/dice/service/StarWarsService.java", "task_id": "project_cc_java/2292" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/dice/service/StarWarsService.java", "groundtruth_start_lineno": 145, "repository": "grcreutzberg-dice-api-d58bb3d", "right_context_start_lineno": 146, "task_id": "project_cc_java/2292" } }
cross_code_eval_java::project_cc_java/2283
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/dice/controller/StarWarsController.java // } // @PostMapping("/roll") // ...
{ "prefix": "package com.dice.controller;\n\nimport com.dice.service.DiceRollService;\nimport org.springframework.web.bind.annotation.GetMapping;\nimport org.springframework.web.bind.annotation.RequestMapping;\nimport org.springframework.web.bind.annotation.RequestParam;\nimport org.springframework.web.bind.annotatio...
service.rollDisVantage("Advantage", dice);
{}
{ "repository": "grcreutzberg-dice-api-d58bb3d", "file": "src/main/java/com/dice/controller/DiceRollController.java", "task_id": "project_cc_java/2283" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/dice/controller/DiceRollController.java", "groundtruth_start_lineno": 28, "repository": "grcreutzberg-dice-api-d58bb3d", "right_context_start_lineno": 29, "task_id": "project_cc_java/2283" } }
cross_code_eval_java::project_cc_java/2298
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/dice/DTO/ResultadoSwDTO.java // } // public void setSucessos(final int sucess...
{ "prefix": "package com.dice.service;\n\nimport com.dice.DTO.DiceSwDTO;\nimport com.dice.DTO.ResultadoSwDTO;\nimport com.dice.DTO.ResultadoSwForceDTO;\nimport com.dice.model.Dice;\nimport org.springframework.stereotype.Service;\n\n@Service\npublic class StarWarsService {\n\n public StarWarsService() {}\n\n pub...
diceResult.setVantagens(advantage - threat);
{}
{ "repository": "grcreutzberg-dice-api-d58bb3d", "file": "src/main/java/com/dice/service/StarWarsService.java", "task_id": "project_cc_java/2298" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/dice/service/StarWarsService.java", "groundtruth_start_lineno": 156, "repository": "grcreutzberg-dice-api-d58bb3d", "right_context_start_lineno": 157, "task_id": "project_cc_java/2298" } }
cross_code_eval_java::project_cc_java/2251
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // api/src/test/java/com/googlecodesamples/cloud/jss/lds/controller/FileControllerTest.java // ...
{ "prefix": "/*\n * Copyright 2023 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 applica...
return openTelemetryService.spanScope(this.getClass().getName(), "healthCheck", () -> {
{}
{ "repository": "GoogleCloudPlatform-app-large-data-sharing-java-fd21141", "file": "api/src/main/java/com/googlecodesamples/cloud/jss/lds/controller/FileController.java", "task_id": "project_cc_java/2251" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "api/src/main/java/com/googlecodesamples/cloud/jss/lds/controller/FileController.java", "groundtruth_start_lineno": 58, "repository": "GoogleCloudPlatform-app-large-data-sharing-java-fd21141", "right_context_start_lineno": 59, "task_id": "proj...
cross_code_eval_java::project_cc_java/2305
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/dice/DTO/ResultadoSwDTO.java // } // public void setSucessos(final int sucess...
{ "prefix": "package com.dice.service;\n\nimport com.dice.DTO.DiceSwDTO;\nimport com.dice.DTO.ResultadoSwDTO;\nimport com.dice.DTO.ResultadoSwForceDTO;\nimport com.dice.model.Dice;\nimport org.springframework.stereotype.Service;\n\n@Service\npublic class StarWarsService {\n\n public StarWarsService() {}\n\n pub...
diceResult.setDesesperos(0);
{}
{ "repository": "grcreutzberg-dice-api-d58bb3d", "file": "src/main/java/com/dice/service/StarWarsService.java", "task_id": "project_cc_java/2305" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/dice/service/StarWarsService.java", "groundtruth_start_lineno": 168, "repository": "grcreutzberg-dice-api-d58bb3d", "right_context_start_lineno": 169, "task_id": "project_cc_java/2305" } }