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/2220 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// shared/src/main/java/org/geysermc/hydraulic/block/Materials.java
// /**
// * Gets all the mate... | {
"prefix": "package org.geysermc.hydraulic.mixin.ext;\n\nimport com.github.steveice10.opennbt.tag.builtin.CompoundTag;\nimport com.github.steveice10.opennbt.tag.builtin.ListTag;\nimport com.github.steveice10.opennbt.tag.builtin.StringTag;\nimport org.cloudburstmc.protocol.bedrock.data.inventory.ItemData;\nimport org... | = HydraulicImpl.instance().mod(modId); | {} | {
"repository": "GeyserMC-Hydraulic-80cb8ab",
"file": "shared/src/main/java/org/geysermc/hydraulic/mixin/ext/ItemTranslatorMixin.java",
"task_id": "project_cc_java/2220"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "shared/src/main/java/org/geysermc/hydraulic/mixin/ext/ItemTranslatorMixin.java",
"groundtruth_start_lineno": 50,
"repository": "GeyserMC-Hydraulic-80cb8ab",
"right_context_start_lineno": 51,
"task_id": "project_cc_java/2220"
}
} |
cross_code_eval_java::project_cc_java/2221 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// shared/src/main/java/org/geysermc/hydraulic/HydraulicImpl.java
// * Loads Hydraulic.
// *
// ... | {
"prefix": "package org.geysermc.hydraulic.storage;\n\nimport com.mojang.logging.LogUtils;\nimport org.geysermc.hydraulic.Constants;\nimport org.geysermc.hydraulic.HydraulicImpl;\nimport org.geysermc.hydraulic.block.Materials;\nimport org.geysermc.hydraulic.platform.mod.ModInfo;\nimport org.jetbrains.annotations.Not... | return HydraulicImpl.instance().dataFolder(Constants.MOD_ID)
.resolve("storage")
.resolve(mod.id()); | {} | {
"repository": "GeyserMC-Hydraulic-80cb8ab",
"file": "shared/src/main/java/org/geysermc/hydraulic/storage/ModStorage.java",
"task_id": "project_cc_java/2221"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "shared/src/main/java/org/geysermc/hydraulic/storage/ModStorage.java",
"groundtruth_start_lineno": 91,
"repository": "GeyserMC-Hydraulic-80cb8ab",
"right_context_start_lineno": 94,
"task_id": "project_cc_java/2221"
}
} |
cross_code_eval_java::project_cc_java/2310 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/model/Dice.java
// return (int) (Math.random() * nFaces) + 1;
// }
/... | {
"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... | forceResult.setLuz(light); | {} | {
"repository": "grcreutzberg-dice-api-d58bb3d",
"file": "src/main/java/com/dice/service/StarWarsService.java",
"task_id": "project_cc_java/2310"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/dice/service/StarWarsService.java",
"groundtruth_start_lineno": 198,
"repository": "grcreutzberg-dice-api-d58bb3d",
"right_context_start_lineno": 199,
"task_id": "project_cc_java/2310"
}
} |
cross_code_eval_java::project_cc_java/2222 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// shared/src/main/java/org/geysermc/hydraulic/pack/context/PackEventContext.java
// * @return the ev... | {
"prefix": "package org.geysermc.hydraulic.pack.context;\n\nimport net.minecraft.core.Registry;\nimport net.minecraft.resources.ResourceKey;\nimport org.geysermc.hydraulic.HydraulicImpl;\nimport org.geysermc.hydraulic.pack.PackModule;\nimport org.geysermc.hydraulic.platform.mod.ModInfo;\nimport org.geysermc.hydrauli... | this.hydraulic.server().registryAccess().registryOrThrow(key); | {} | {
"repository": "GeyserMC-Hydraulic-80cb8ab",
"file": "shared/src/main/java/org/geysermc/hydraulic/pack/context/PackContext.java",
"task_id": "project_cc_java/2222"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "shared/src/main/java/org/geysermc/hydraulic/pack/context/PackContext.java",
"groundtruth_start_lineno": 70,
"repository": "GeyserMC-Hydraulic-80cb8ab",
"right_context_start_lineno": 71,
"task_id": "project_cc_java/2222"
}
} |
cross_code_eval_java::project_cc_java/2311 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/model/Dice.java
// return (int) (Math.random() * nFaces) + 1;
// }
/... | {
"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... | forceResult.setNegro(dark); | {} | {
"repository": "grcreutzberg-dice-api-d58bb3d",
"file": "src/main/java/com/dice/service/StarWarsService.java",
"task_id": "project_cc_java/2311"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/dice/service/StarWarsService.java",
"groundtruth_start_lineno": 199,
"repository": "grcreutzberg-dice-api-d58bb3d",
"right_context_start_lineno": 200,
"task_id": "project_cc_java/2311"
}
} |
cross_code_eval_java::project_cc_java/2224 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// shared/src/main/java/org/geysermc/hydraulic/pack/PackManager.java
// "floodgate",
// ... | {
"prefix": "package org.geysermc.hydraulic;\n\nimport net.minecraft.server.MinecraftServer;\nimport org.geysermc.geyser.api.event.EventRegistrar;\nimport org.geysermc.hydraulic.pack.PackManager;\nimport org.geysermc.hydraulic.platform.HydraulicBootstrap;\nimport org.geysermc.hydraulic.platform.HydraulicPlatform;\nim... | .packManager.initialize(); | {} | {
"repository": "GeyserMC-Hydraulic-80cb8ab",
"file": "shared/src/main/java/org/geysermc/hydraulic/HydraulicImpl.java",
"task_id": "project_cc_java/2224"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "shared/src/main/java/org/geysermc/hydraulic/HydraulicImpl.java",
"groundtruth_start_lineno": 51,
"repository": "GeyserMC-Hydraulic-80cb8ab",
"right_context_start_lineno": 52,
"task_id": "project_cc_java/2224"
}
} |
cross_code_eval_java::project_cc_java/2312 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/service/DiceRollService.java
// }
// int diceX = new Dice(dice).... | {
"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... | result = boostDice.roll(); | {} | {
"repository": "grcreutzberg-dice-api-d58bb3d",
"file": "src/main/java/com/dice/service/StarWarsService.java",
"task_id": "project_cc_java/2312"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/dice/service/StarWarsService.java",
"groundtruth_start_lineno": 32,
"repository": "grcreutzberg-dice-api-d58bb3d",
"right_context_start_lineno": 33,
"task_id": "project_cc_java/2312"
}
} |
cross_code_eval_java::project_cc_java/2225 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// shared/src/main/java/org/geysermc/hydraulic/platform/HydraulicBootstrap.java
// * @param modName t... | {
"prefix": "package org.geysermc.hydraulic;\n\nimport net.minecraft.server.MinecraftServer;\nimport org.geysermc.geyser.api.event.EventRegistrar;\nimport org.geysermc.hydraulic.pack.PackManager;\nimport org.geysermc.hydraulic.platform.HydraulicBootstrap;\nimport org.geysermc.hydraulic.platform.HydraulicPlatform;\nim... | this.bootstrap.mods(); | {} | {
"repository": "GeyserMC-Hydraulic-80cb8ab",
"file": "shared/src/main/java/org/geysermc/hydraulic/HydraulicImpl.java",
"task_id": "project_cc_java/2225"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "shared/src/main/java/org/geysermc/hydraulic/HydraulicImpl.java",
"groundtruth_start_lineno": 61,
"repository": "GeyserMC-Hydraulic-80cb8ab",
"right_context_start_lineno": 62,
"task_id": "project_cc_java/2225"
}
} |
cross_code_eval_java::project_cc_java/2333 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/io/github/heartalborada_del/newBingAPI/Chat.java
// @Override
// ... | {
"prefix": "package io.github.heartalborada_del.newBingAPI.utils;\n\nimport com.google.gson.GsonBuilder;\nimport com.google.gson.JsonObject;\nimport com.google.gson.JsonParser;\nimport io.github.heartalborada_del.newBingAPI.interfaces.Callback;\nimport io.github.heartalborada_del.newBingAPI.interfaces.Logger;\nimpor... | logger.Info(String.format("[%s] [%s] websocket is closed", conversationSignature, question)); | {} | {
"repository": "heartalborada-del-newbingAPI-1102bfb",
"file": "src/main/java/io/github/heartalborada_del/newBingAPI/utils/ConversationWebsocket.java",
"task_id": "project_cc_java/2333"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/io/github/heartalborada_del/newBingAPI/utils/ConversationWebsocket.java",
"groundtruth_start_lineno": 43,
"repository": "heartalborada-del-newbingAPI-1102bfb",
"right_context_start_lineno": 44,
"task_id": "project_cc_java/2333"
... |
cross_code_eval_java::project_cc_java/2336 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/io/github/heartalborada_del/newBingAPI/utils/DefaultClient.java
// Request.Bu... | {
"prefix": "package io.github.heartalborada_del.newBingAPI.utils;\n\nimport com.google.gson.GsonBuilder;\nimport com.google.gson.JsonObject;\nimport com.google.gson.JsonParser;\nimport io.github.heartalborada_del.newBingAPI.interfaces.Callback;\nimport io.github.heartalborada_del.newBingAPI.interfaces.Logger;\nimpor... | logger.Debug(String.format("[%s] [%s] client send message [%s]", conversationSignature, question, data)); | {} | {
"repository": "heartalborada-del-newbingAPI-1102bfb",
"file": "src/main/java/io/github/heartalborada_del/newBingAPI/utils/ConversationWebsocket.java",
"task_id": "project_cc_java/2336"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/io/github/heartalborada_del/newBingAPI/utils/ConversationWebsocket.java",
"groundtruth_start_lineno": 124,
"repository": "heartalborada-del-newbingAPI-1102bfb",
"right_context_start_lineno": 125,
"task_id": "project_cc_java/2336... |
cross_code_eval_java::project_cc_java/2335 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/io/github/heartalborada_del/newBingAPI/instances/ChatInstance.java
// client.newW... | {
"prefix": "package io.github.heartalborada_del.newBingAPI.utils;\n\nimport com.google.gson.GsonBuilder;\nimport com.google.gson.JsonObject;\nimport com.google.gson.JsonParser;\nimport io.github.heartalborada_del.newBingAPI.interfaces.Callback;\nimport io.github.heartalborada_del.newBingAPI.interfaces.Logger;\nimpor... | logger.Debug(String.format("[%s] [%s] websocket is received new message [%s]", conversationSignature, question, textSpited)); | {} | {
"repository": "heartalborada-del-newbingAPI-1102bfb",
"file": "src/main/java/io/github/heartalborada_del/newBingAPI/utils/ConversationWebsocket.java",
"task_id": "project_cc_java/2335"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/io/github/heartalborada_del/newBingAPI/utils/ConversationWebsocket.java",
"groundtruth_start_lineno": 63,
"repository": "heartalborada-del-newbingAPI-1102bfb",
"right_context_start_lineno": 64,
"task_id": "project_cc_java/2335"
... |
cross_code_eval_java::project_cc_java/2325 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// android/src/main/java/com/phonenumberinput/CountryPickerListItem.java
// itemView.setOnClickListene... | {
"prefix": "package com.phonenumberinput;\n\nimport android.annotation.SuppressLint;\nimport android.content.Context;\nimport android.graphics.Color;\nimport android.os.Build;\nimport android.view.LayoutInflater;\nimport android.view.View;\nimport android.view.ViewGroup;\n\nimport androidx.annotation.NonNull;\nimpor... | (String.format("%s %s", country.getEmoji(), country.getName())); | {} | {
"repository": "gtomitsuka-rn-phone-number-input-2f2e43b",
"file": "android/src/main/java/com/phonenumberinput/CountryPickerAdapter.java",
"task_id": "project_cc_java/2325"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "android/src/main/java/com/phonenumberinput/CountryPickerAdapter.java",
"groundtruth_start_lineno": 85,
"repository": "gtomitsuka-rn-phone-number-input-2f2e43b",
"right_context_start_lineno": 86,
"task_id": "project_cc_java/2325"
}
} |
cross_code_eval_java::project_cc_java/2326 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// android/src/main/java/com/phonenumberinput/CountryPickerListItem.java
// itemView.setOnClickListene... | {
"prefix": "package com.phonenumberinput;\n\nimport android.annotation.SuppressLint;\nimport android.content.Context;\nimport android.graphics.Color;\nimport android.os.Build;\nimport android.view.LayoutInflater;\nimport android.view.View;\nimport android.view.ViewGroup;\n\nimport androidx.annotation.NonNull;\nimpor... | setText(String.format("%s %s", country.getEmoji(), country.getName())); | {} | {
"repository": "gtomitsuka-rn-phone-number-input-2f2e43b",
"file": "android/src/main/java/com/phonenumberinput/CountryPickerAdapter.java",
"task_id": "project_cc_java/2326"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "android/src/main/java/com/phonenumberinput/CountryPickerAdapter.java",
"groundtruth_start_lineno": 85,
"repository": "gtomitsuka-rn-phone-number-input-2f2e43b",
"right_context_start_lineno": 86,
"task_id": "project_cc_java/2326"
}
} |
cross_code_eval_java::project_cc_java/2327 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// android/src/main/java/com/phonenumberinput/CountryPickerListItem.java
// // Bind the country data t... | {
"prefix": "package com.phonenumberinput;\n\nimport android.annotation.SuppressLint;\nimport android.content.Context;\nimport android.graphics.Color;\nimport android.os.Build;\nimport android.view.LayoutInflater;\nimport android.view.View;\nimport android.view.ViewGroup;\n\nimport androidx.annotation.NonNull;\nimpor... | (country.getCallingCode()); | {} | {
"repository": "gtomitsuka-rn-phone-number-input-2f2e43b",
"file": "android/src/main/java/com/phonenumberinput/CountryPickerAdapter.java",
"task_id": "project_cc_java/2327"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "android/src/main/java/com/phonenumberinput/CountryPickerAdapter.java",
"groundtruth_start_lineno": 86,
"repository": "gtomitsuka-rn-phone-number-input-2f2e43b",
"right_context_start_lineno": 87,
"task_id": "project_cc_java/2327"
}
} |
cross_code_eval_java::project_cc_java/2322 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// android/src/main/java/com/phonenumberinput/CountryKeyProvider.java
// if (countries.get(i).getCod... | {
"prefix": "package com.phonenumberinput;\n\nimport android.graphics.Color;\nimport android.os.Build;\nimport android.view.View;\nimport android.widget.TextView;\n\nimport androidx.annotation.NonNull;\nimport androidx.annotation.Nullable;\nimport androidx.annotation.RequiresApi;\nimport androidx.recyclerview.selecti... | country.getCode(); | {} | {
"repository": "gtomitsuka-rn-phone-number-input-2f2e43b",
"file": "android/src/main/java/com/phonenumberinput/CountryPickerListItem.java",
"task_id": "project_cc_java/2322"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "android/src/main/java/com/phonenumberinput/CountryPickerListItem.java",
"groundtruth_start_lineno": 62,
"repository": "gtomitsuka-rn-phone-number-input-2f2e43b",
"right_context_start_lineno": 63,
"task_id": "project_cc_java/2322"
}
} |
cross_code_eval_java::project_cc_java/2279 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/com/android/traceur/Receiver.java
// public static Set<String> getDefaultTagList() {
// ... | {
"prefix": "/*\n * Copyright (C) 2015 The Android Open Source Project\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\... | , String> available = TraceUtils.listCategories(); | {} | {
"repository": "GrapheneOS-Archive-platform_packages_apps_Traceur-2e6c52a",
"file": "src/com/android/traceur/MainFragment.java",
"task_id": "project_cc_java/2279"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/com/android/traceur/MainFragment.java",
"groundtruth_start_lineno": 112,
"repository": "GrapheneOS-Archive-platform_packages_apps_Traceur-2e6c52a",
"right_context_start_lineno": 113,
"task_id": "project_cc_java/2279"
}
} |
cross_code_eval_java::project_cc_java/2277 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/com/android/traceur/TraceUtils.java
// Process rm = exec(cmd);
// if (rm.wa... | {
"prefix": "/*\n * Copyright (C) 2015 The Android Open Source Project\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\... | Process perfetto = TraceUtils.exec(cmd, null, false); | {} | {
"repository": "GrapheneOS-Archive-platform_packages_apps_Traceur-2e6c52a",
"file": "src/com/android/traceur/PerfettoUtils.java",
"task_id": "project_cc_java/2277"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/com/android/traceur/PerfettoUtils.java",
"groundtruth_start_lineno": 379,
"repository": "GrapheneOS-Archive-platform_packages_apps_Traceur-2e6c52a",
"right_context_start_lineno": 380,
"task_id": "project_cc_java/2277"
}
} |
cross_code_eval_java::project_cc_java/2269 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/com/android/traceur/StopTraceService.java
// false).commit();
// co... | {
"prefix": "/*\n * Copyright (C) 2015 The Android Open Source Project\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\... | TraceUtils.traceStop(); | {} | {
"repository": "GrapheneOS-Archive-platform_packages_apps_Traceur-2e6c52a",
"file": "src/com/android/traceur/TraceService.java",
"task_id": "project_cc_java/2269"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/com/android/traceur/TraceService.java",
"groundtruth_start_lineno": 96,
"repository": "GrapheneOS-Archive-platform_packages_apps_Traceur-2e6c52a",
"right_context_start_lineno": 97,
"task_id": "project_cc_java/2269"
}
} |
cross_code_eval_java::project_cc_java/2278 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/com/android/traceur/QsService.java
// * If tracing is being turned off, dump and offer to sha... | {
"prefix": "/*\n * Copyright (C) 2015 The Android Open Source Project\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\... | false : TraceUtils.isTracingOn(); | {} | {
"repository": "GrapheneOS-Archive-platform_packages_apps_Traceur-2e6c52a",
"file": "src/com/android/traceur/Receiver.java",
"task_id": "project_cc_java/2278"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/com/android/traceur/Receiver.java",
"groundtruth_start_lineno": 132,
"repository": "GrapheneOS-Archive-platform_packages_apps_Traceur-2e6c52a",
"right_context_start_lineno": 133,
"task_id": "project_cc_java/2278"
}
} |
cross_code_eval_java::project_cc_java/2272 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/com/android/traceur/Receiver.java
// .notify(Receiver.class.getName(), 0, builder.build... | {
"prefix": "/*\n * Copyright (C) 2015 The Android Open Source Project\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\... | (TraceUtils.traceStart(tags, bufferSizeKb, appTracing,
longTrace, attachToBugreport, maxLongTraceSizeMb, maxLongTraceDurationMinutes)) { | {} | {
"repository": "GrapheneOS-Archive-platform_packages_apps_Traceur-2e6c52a",
"file": "src/com/android/traceur/TraceService.java",
"task_id": "project_cc_java/2272"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/com/android/traceur/TraceService.java",
"groundtruth_start_lineno": 181,
"repository": "GrapheneOS-Archive-platform_packages_apps_Traceur-2e6c52a",
"right_context_start_lineno": 183,
"task_id": "project_cc_java/2272"
}
} |
cross_code_eval_java::project_cc_java/2276 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/com/android/traceur/AtraceUtils.java
// TraceProperties.user_initiated().orElse(false);... | {
"prefix": "/*\n * Copyright (C) 2015 The Android Open Source Project\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\... | Process process = TraceUtils.exec(cmd); | {} | {
"repository": "GrapheneOS-Archive-platform_packages_apps_Traceur-2e6c52a",
"file": "src/com/android/traceur/PerfettoUtils.java",
"task_id": "project_cc_java/2276"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/com/android/traceur/PerfettoUtils.java",
"groundtruth_start_lineno": 351,
"repository": "GrapheneOS-Archive-platform_packages_apps_Traceur-2e6c52a",
"right_context_start_lineno": 352,
"task_id": "project_cc_java/2276"
}
} |
cross_code_eval_java::project_cc_java/2270 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/com/android/traceur/Receiver.java
// prefs.getString(context.getString(R.string... | {
"prefix": "/*\n * Copyright (C) 2015 The Android Open Source Project\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\... | (TraceUtils.getOutputFilename(), false, false); | {} | {
"repository": "GrapheneOS-Archive-platform_packages_apps_Traceur-2e6c52a",
"file": "src/com/android/traceur/TraceService.java",
"task_id": "project_cc_java/2270"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/com/android/traceur/TraceService.java",
"groundtruth_start_lineno": 139,
"repository": "GrapheneOS-Archive-platform_packages_apps_Traceur-2e6c52a",
"right_context_start_lineno": 140,
"task_id": "project_cc_java/2270"
}
} |
cross_code_eval_java::project_cc_java/2274 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/com/android/traceur/AtraceUtils.java
// Log.e(TAG, "atraceDump failed with: " + atr... | {
"prefix": "/*\n * Copyright (C) 2015 The Android Open Source Project\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\... | = TraceUtils.execWithTimeout(cmd, TEMP_DIR, STARTUP_TIMEOUT_MS); | {} | {
"repository": "GrapheneOS-Archive-platform_packages_apps_Traceur-2e6c52a",
"file": "src/com/android/traceur/PerfettoUtils.java",
"task_id": "project_cc_java/2274"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/com/android/traceur/PerfettoUtils.java",
"groundtruth_start_lineno": 286,
"repository": "GrapheneOS-Archive-platform_packages_apps_Traceur-2e6c52a",
"right_context_start_lineno": 287,
"task_id": "project_cc_java/2274"
}
} |
cross_code_eval_java::project_cc_java/2267 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/com/android/traceur/PerfettoUtils.java
// traceStop();
// // Short-circuit if a tra... | {
"prefix": "/*\n * Copyright (C) 2015 The Android Open Source Project\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\... | ps = TraceUtils.exec("ps -AT", null, false); | {} | {
"repository": "GrapheneOS-Archive-platform_packages_apps_Traceur-2e6c52a",
"file": "src/com/android/traceur/AtraceUtils.java",
"task_id": "project_cc_java/2267"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/com/android/traceur/AtraceUtils.java",
"groundtruth_start_lineno": 102,
"repository": "GrapheneOS-Archive-platform_packages_apps_Traceur-2e6c52a",
"right_context_start_lineno": 103,
"task_id": "project_cc_java/2267"
}
} |
cross_code_eval_java::project_cc_java/2268 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/com/android/traceur/QsService.java
// * If tracing is being turned off, dump and offer to sha... | {
"prefix": "/*\n * Copyright (C) 2015 The Android Open Source Project\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\... | prefsTracingOn && !TraceUtils.isTracingOn()) { | {} | {
"repository": "GrapheneOS-Archive-platform_packages_apps_Traceur-2e6c52a",
"file": "src/com/android/traceur/StopTraceService.java",
"task_id": "project_cc_java/2268"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/com/android/traceur/StopTraceService.java",
"groundtruth_start_lineno": 72,
"repository": "GrapheneOS-Archive-platform_packages_apps_Traceur-2e6c52a",
"right_context_start_lineno": 73,
"task_id": "project_cc_java/2268"
}
} |
cross_code_eval_java::project_cc_java/2280 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/com/android/traceur/UserConsentActivityDialog.java
// if (mDontShowAgain.isChecked()) {... | {
"prefix": "/*\n * Copyright (C) 2015 The Android Open Source Project\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\... | TraceUtils.clearSavedTraces(); | {} | {
"repository": "GrapheneOS-Archive-platform_packages_apps_Traceur-2e6c52a",
"file": "src/com/android/traceur/MainFragment.java",
"task_id": "project_cc_java/2280"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/com/android/traceur/MainFragment.java",
"groundtruth_start_lineno": 158,
"repository": "GrapheneOS-Archive-platform_packages_apps_Traceur-2e6c52a",
"right_context_start_lineno": 159,
"task_id": "project_cc_java/2280"
}
} |
cross_code_eval_java::project_cc_java/2275 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/com/android/traceur/AtraceUtils.java
// } catch (Exception e) {
// throw new Ru... | {
"prefix": "/*\n * Copyright (C) 2015 The Android Open Source Project\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\... | process = TraceUtils.execWithTimeout(cmd, null, STOP_TIMEOUT_MS); | {} | {
"repository": "GrapheneOS-Archive-platform_packages_apps_Traceur-2e6c52a",
"file": "src/com/android/traceur/PerfettoUtils.java",
"task_id": "project_cc_java/2275"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/com/android/traceur/PerfettoUtils.java",
"groundtruth_start_lineno": 310,
"repository": "GrapheneOS-Archive-platform_packages_apps_Traceur-2e6c52a",
"right_context_start_lineno": 311,
"task_id": "project_cc_java/2275"
}
} |
cross_code_eval_java::project_cc_java/2413 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/ho/artisan/lib/recipe/mixin/ShapelessRecipeSerializerMixin.java
// import ho.artisan.lib.... | {
"prefix": "/*\n * Copyright 2022 QuiltMC\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 applic... | ), accessor.getAddition(), recipe.getOutput().getItem(),
null, null
).toJson(); | {} | {
"repository": "HO-Artisan-RecipeInProgramming-09cc072",
"file": "src/main/java/ho/artisan/lib/recipe/mixin/SmithingRecipeSerializerMixin.java",
"task_id": "project_cc_java/2413"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/ho/artisan/lib/recipe/mixin/SmithingRecipeSerializerMixin.java",
"groundtruth_start_lineno": 36,
"repository": "HO-Artisan-RecipeInProgramming-09cc072",
"right_context_start_lineno": 39,
"task_id": "project_cc_java/2413"
}
} |
cross_code_eval_java::project_cc_java/2387 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// lint-rpc-support/lint-rpc-support-common/src/main/java/com/lint/rpc/common/transport/ServerChannelHandl... | {
"prefix": "package com.lint.rpc.common.transport;\n\nimport com.lint.rpc.common.protocol.RequestBody;\nimport com.lint.rpc.common.protocol.RequestContent;\nimport com.lint.rpc.common.protocol.RequestHeader;\nimport io.netty.buffer.ByteBuf;\nimport io.netty.channel.ChannelHandlerContext;\nimport io.netty.channel.Com... | innerMsg.free(); | {} | {
"repository": "hiparker-lint-rpc-framework-e64aac0",
"file": "lint-rpc-support/lint-rpc-support-common/src/main/java/com/lint/rpc/common/transport/InternalServerMsgCodec.java",
"task_id": "project_cc_java/2387"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "lint-rpc-support/lint-rpc-support-common/src/main/java/com/lint/rpc/common/transport/InternalServerMsgCodec.java",
"groundtruth_start_lineno": 108,
"repository": "hiparker-lint-rpc-framework-e64aac0",
"right_context_start_lineno": 109,
"task_... |
cross_code_eval_java::project_cc_java/2404 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/HiWord9/RPRenames/configGeneration/CEMConfig.java
// ... | {
"prefix": "package com.HiWord9.RPRenames.configGeneration;\n\nimport com.HiWord9.RPRenames.RPRenames;\nimport com.HiWord9.RPRenames.Rename;\nimport com.google.gson.Gson;\n\nimport java.io.File;\nimport java.io.FileWriter;\nimport java.io.IOException;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport ja... | ).contains(ConfigManager.getFirstName(p.getProperty("nbt.display.Name")))) { | {} | {
"repository": "HiWord9-RPRenames-fabric-046f2f8",
"file": "src/main/java/com/HiWord9/RPRenames/configGeneration/CITConfig.java",
"task_id": "project_cc_java/2404"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/HiWord9/RPRenames/configGeneration/CITConfig.java",
"groundtruth_start_lineno": 49,
"repository": "HiWord9-RPRenames-fabric-046f2f8",
"right_context_start_lineno": 50,
"task_id": "project_cc_java/2404"
}
} |
cross_code_eval_java::project_cc_java/2376 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// lint-rpc-support/lint-rpc-support-common/src/main/java/com/lint/rpc/common/transport/NettyServer.java
/... | {
"prefix": "package com.lint.rpc.common.transport;\n\nimport io.netty.bootstrap.Bootstrap;\nimport io.netty.channel.ChannelFuture;\nimport io.netty.channel.ChannelInitializer;\nimport io.netty.channel.ChannelPipeline;\nimport io.netty.channel.nio.NioEventLoopGroup;\nimport io.netty.channel.socket.nio.NioSocketChanne... | System.out.println(">>> 连接到业务服务器成功! "+conf.getAddress()+" <<<"); | {} | {
"repository": "hiparker-lint-rpc-framework-e64aac0",
"file": "lint-rpc-support/lint-rpc-support-common/src/main/java/com/lint/rpc/common/transport/NettyClient.java",
"task_id": "project_cc_java/2376"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "lint-rpc-support/lint-rpc-support-common/src/main/java/com/lint/rpc/common/transport/NettyClient.java",
"groundtruth_start_lineno": 81,
"repository": "hiparker-lint-rpc-framework-e64aac0",
"right_context_start_lineno": 82,
"task_id": "project... |
cross_code_eval_java::project_cc_java/2394 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// lint-rpc-support/lint-rpc-support-common/src/main/java/com/lint/rpc/common/transport/NettyConf.java
// ... | {
"prefix": "package com.lint.rpc.common.pool;\n\nimport com.lint.rpc.common.LintConf;\nimport com.lint.rpc.common.balance.ILoadBalancePolicy;\nimport com.lint.rpc.common.service.ProvideSpi;\nimport com.lint.rpc.common.transport.ClientFactory;\nimport com.lint.rpc.common.transport.NettyClient;\nimport com.lint.rpc.co... | chIndex = loadBalancePolicy.getClientIndex(groupNameSet.size()); | {} | {
"repository": "hiparker-lint-rpc-framework-e64aac0",
"file": "lint-rpc-support/lint-rpc-support-common/src/main/java/com/lint/rpc/common/pool/ClientPool.java",
"task_id": "project_cc_java/2394"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "lint-rpc-support/lint-rpc-support-common/src/main/java/com/lint/rpc/common/pool/ClientPool.java",
"groundtruth_start_lineno": 105,
"repository": "hiparker-lint-rpc-framework-e64aac0",
"right_context_start_lineno": 106,
"task_id": "project_cc_... |
cross_code_eval_java::project_cc_java/2377 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// lint-rpc-support/lint-rpc-support-common/src/main/java/com/lint/rpc/common/transport/NettyServer.java
/... | {
"prefix": "package com.lint.rpc.common.transport;\n\nimport io.netty.bootstrap.Bootstrap;\nimport io.netty.channel.ChannelFuture;\nimport io.netty.channel.ChannelInitializer;\nimport io.netty.channel.ChannelPipeline;\nimport io.netty.channel.nio.NioEventLoopGroup;\nimport io.netty.channel.socket.nio.NioSocketChanne... | ("系统通知 - 注意: 服务器连接关闭! >>> " + conf.getAddress()); | {} | {
"repository": "hiparker-lint-rpc-framework-e64aac0",
"file": "lint-rpc-support/lint-rpc-support-common/src/main/java/com/lint/rpc/common/transport/NettyClient.java",
"task_id": "project_cc_java/2377"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "lint-rpc-support/lint-rpc-support-common/src/main/java/com/lint/rpc/common/transport/NettyClient.java",
"groundtruth_start_lineno": 93,
"repository": "hiparker-lint-rpc-framework-e64aac0",
"right_context_start_lineno": 94,
"task_id": "project... |
cross_code_eval_java::project_cc_java/2390 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// lint-rpc-support/lint-rpc-support-common/src/main/java/com/lint/rpc/common/balance/RoundLoadBalance.jav... | {
"prefix": "package com.lint.rpc.common.pool;\n\nimport com.lint.rpc.common.LintConf;\nimport com.lint.rpc.common.balance.ILoadBalancePolicy;\nimport com.lint.rpc.common.service.ProvideSpi;\nimport com.lint.rpc.common.transport.ClientFactory;\nimport com.lint.rpc.common.transport.NettyClient;\nimport com.lint.rpc.co... | () < lintConf.getClientMaxConnCount()){ | {} | {
"repository": "hiparker-lint-rpc-framework-e64aac0",
"file": "lint-rpc-support/lint-rpc-support-common/src/main/java/com/lint/rpc/common/pool/ClientPool.java",
"task_id": "project_cc_java/2390"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "lint-rpc-support/lint-rpc-support-common/src/main/java/com/lint/rpc/common/pool/ClientPool.java",
"groundtruth_start_lineno": 91,
"repository": "hiparker-lint-rpc-framework-e64aac0",
"right_context_start_lineno": 92,
"task_id": "project_cc_ja... |
cross_code_eval_java::project_cc_java/2374 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// lint-rpc-support/lint-rpc-support-common/src/main/java/com/lint/rpc/common/util/ByteUtil.java
// ... | {
"prefix": "package com.lint.rpc.common.transport;\n\nimport io.netty.bootstrap.Bootstrap;\nimport io.netty.channel.ChannelFuture;\nimport io.netty.channel.ChannelInitializer;\nimport io.netty.channel.ChannelPipeline;\nimport io.netty.channel.nio.NioEventLoopGroup;\nimport io.netty.channel.socket.nio.NioSocketChanne... | if(null == conf.getAddress()){ | {} | {
"repository": "hiparker-lint-rpc-framework-e64aac0",
"file": "lint-rpc-support/lint-rpc-support-common/src/main/java/com/lint/rpc/common/transport/NettyClient.java",
"task_id": "project_cc_java/2374"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "lint-rpc-support/lint-rpc-support-common/src/main/java/com/lint/rpc/common/transport/NettyClient.java",
"groundtruth_start_lineno": 57,
"repository": "hiparker-lint-rpc-framework-e64aac0",
"right_context_start_lineno": 58,
"task_id": "project... |
cross_code_eval_java::project_cc_java/2385 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// lint-rpc-support/lint-rpc-support-common/src/main/java/com/lint/rpc/common/transport/ServerChannelHandl... | {
"prefix": "package com.lint.rpc.common.transport;\n\nimport com.lint.rpc.common.protocol.RequestBody;\nimport com.lint.rpc.common.protocol.RequestContent;\nimport com.lint.rpc.common.protocol.RequestHeader;\nimport io.netty.buffer.ByteBuf;\nimport io.netty.channel.ChannelHandlerContext;\nimport io.netty.channel.Com... | .writeBytes(innerMsg.getRequestHeader().toBytesArray()); | {} | {
"repository": "hiparker-lint-rpc-framework-e64aac0",
"file": "lint-rpc-support/lint-rpc-support-common/src/main/java/com/lint/rpc/common/transport/InternalServerMsgCodec.java",
"task_id": "project_cc_java/2385"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "lint-rpc-support/lint-rpc-support-common/src/main/java/com/lint/rpc/common/transport/InternalServerMsgCodec.java",
"groundtruth_start_lineno": 104,
"repository": "hiparker-lint-rpc-framework-e64aac0",
"right_context_start_lineno": 105,
"task_... |
cross_code_eval_java::project_cc_java/2368 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// lint-rpc-support/lint-rpc-support-common/src/main/java/com/lint/rpc/common/proxy/RpcInvocationHandler.j... | {
"prefix": "package com.lint.rpc.common.transport;\n\nimport com.lint.rpc.common.protocol.RequestBody;\nimport com.lint.rpc.common.protocol.RequestContent;\nimport com.lint.rpc.common.protocol.RequestHeader;\nimport com.lint.rpc.common.service.ProvideServiceSpi;\nimport com.lint.rpc.common.spi.LintService;\nimport c... | requestBody.setRes(res); | {} | {
"repository": "hiparker-lint-rpc-framework-e64aac0",
"file": "lint-rpc-support/lint-rpc-support-common/src/main/java/com/lint/rpc/common/transport/ServerChannelHandler.java",
"task_id": "project_cc_java/2368"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "lint-rpc-support/lint-rpc-support-common/src/main/java/com/lint/rpc/common/transport/ServerChannelHandler.java",
"groundtruth_start_lineno": 37,
"repository": "hiparker-lint-rpc-framework-e64aac0",
"right_context_start_lineno": 38,
"task_id":... |
cross_code_eval_java::project_cc_java/2378 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// lint-rpc-support/lint-rpc-support-common/src/main/java/com/lint/rpc/common/transport/NettyServer.java
/... | {
"prefix": "package com.lint.rpc.common.transport;\n\nimport io.netty.bootstrap.Bootstrap;\nimport io.netty.channel.ChannelFuture;\nimport io.netty.channel.ChannelInitializer;\nimport io.netty.channel.ChannelPipeline;\nimport io.netty.channel.nio.NioEventLoopGroup;\nimport io.netty.channel.socket.nio.NioSocketChanne... | NettyClient> closeCallback = conf.getCloseCallback(); | {} | {
"repository": "hiparker-lint-rpc-framework-e64aac0",
"file": "lint-rpc-support/lint-rpc-support-common/src/main/java/com/lint/rpc/common/transport/NettyClient.java",
"task_id": "project_cc_java/2378"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "lint-rpc-support/lint-rpc-support-common/src/main/java/com/lint/rpc/common/transport/NettyClient.java",
"groundtruth_start_lineno": 95,
"repository": "hiparker-lint-rpc-framework-e64aac0",
"right_context_start_lineno": 96,
"task_id": "project... |
cross_code_eval_java::project_cc_java/2375 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// lint-rpc-support/lint-rpc-support-common/src/main/java/com/lint/rpc/common/transport/NettyServer.java
/... | {
"prefix": "package com.lint.rpc.common.transport;\n\nimport io.netty.bootstrap.Bootstrap;\nimport io.netty.channel.ChannelFuture;\nimport io.netty.channel.ChannelInitializer;\nimport io.netty.channel.ChannelPipeline;\nimport io.netty.channel.nio.NioEventLoopGroup;\nimport io.netty.channel.socket.nio.NioSocketChanne... | bs.connect(conf.getAddress()).sync(); | {} | {
"repository": "hiparker-lint-rpc-framework-e64aac0",
"file": "lint-rpc-support/lint-rpc-support-common/src/main/java/com/lint/rpc/common/transport/NettyClient.java",
"task_id": "project_cc_java/2375"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "lint-rpc-support/lint-rpc-support-common/src/main/java/com/lint/rpc/common/transport/NettyClient.java",
"groundtruth_start_lineno": 73,
"repository": "hiparker-lint-rpc-framework-e64aac0",
"right_context_start_lineno": 74,
"task_id": "project... |
cross_code_eval_java::project_cc_java/2369 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// lint-rpc-support/lint-rpc-support-common/src/main/java/com/lint/rpc/common/proxy/RpcInvocationHandler.j... | {
"prefix": "package com.lint.rpc.common.transport;\n\nimport com.lint.rpc.common.protocol.RequestBody;\nimport com.lint.rpc.common.protocol.RequestContent;\nimport com.lint.rpc.common.protocol.RequestHeader;\nimport com.lint.rpc.common.service.ProvideServiceSpi;\nimport com.lint.rpc.common.spi.LintService;\nimport c... | .setLength(requestBody.toBytesArray().length); | {} | {
"repository": "hiparker-lint-rpc-framework-e64aac0",
"file": "lint-rpc-support/lint-rpc-support-common/src/main/java/com/lint/rpc/common/transport/ServerChannelHandler.java",
"task_id": "project_cc_java/2369"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "lint-rpc-support/lint-rpc-support-common/src/main/java/com/lint/rpc/common/transport/ServerChannelHandler.java",
"groundtruth_start_lineno": 42,
"repository": "hiparker-lint-rpc-framework-e64aac0",
"right_context_start_lineno": 43,
"task_id":... |
cross_code_eval_java::project_cc_java/2379 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// lint-rpc-support/lint-rpc-support-common/src/main/java/com/lint/rpc/common/transport/NettyConf.java
// ... | {
"prefix": "package com.lint.rpc.common.transport;\n\nimport io.netty.bootstrap.Bootstrap;\nimport io.netty.channel.ChannelFuture;\nimport io.netty.channel.ChannelInitializer;\nimport io.netty.channel.ChannelPipeline;\nimport io.netty.channel.nio.NioEventLoopGroup;\nimport io.netty.channel.socket.nio.NioSocketChanne... | Objects.hash(conf.getAddress().getHostName(), conf.getAddress().getPort()); | {} | {
"repository": "hiparker-lint-rpc-framework-e64aac0",
"file": "lint-rpc-support/lint-rpc-support-common/src/main/java/com/lint/rpc/common/transport/NettyClient.java",
"task_id": "project_cc_java/2379"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "lint-rpc-support/lint-rpc-support-common/src/main/java/com/lint/rpc/common/transport/NettyClient.java",
"groundtruth_start_lineno": 103,
"repository": "hiparker-lint-rpc-framework-e64aac0",
"right_context_start_lineno": 104,
"task_id": "proje... |
cross_code_eval_java::project_cc_java/2392 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// lint-rpc-support/lint-rpc-support-common/src/main/java/com/lint/rpc/common/balance/LoadBalancePolicyFac... | {
"prefix": "package com.lint.rpc.common.pool;\n\nimport com.lint.rpc.common.LintConf;\nimport com.lint.rpc.common.balance.ILoadBalancePolicy;\nimport com.lint.rpc.common.service.ProvideSpi;\nimport com.lint.rpc.common.transport.ClientFactory;\nimport com.lint.rpc.common.transport.NettyClient;\nimport com.lint.rpc.co... | loadBalancePolicy.getClientIndex(addressSet.size()); | {} | {
"repository": "hiparker-lint-rpc-framework-e64aac0",
"file": "lint-rpc-support/lint-rpc-support-common/src/main/java/com/lint/rpc/common/pool/ClientPool.java",
"task_id": "project_cc_java/2392"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "lint-rpc-support/lint-rpc-support-common/src/main/java/com/lint/rpc/common/pool/ClientPool.java",
"groundtruth_start_lineno": 44,
"repository": "hiparker-lint-rpc-framework-e64aac0",
"right_context_start_lineno": 45,
"task_id": "project_cc_ja... |
cross_code_eval_java::project_cc_java/2397 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// lint-rpc-support/lint-rpc-support-common/src/main/java/com/lint/rpc/common/pool/MsgPool.java
// pub... | {
"prefix": "package com.lint.rpc.common.pool;\n\nimport com.lint.rpc.common.LintConf;\nimport com.lint.rpc.common.balance.ILoadBalancePolicy;\nimport com.lint.rpc.common.service.ProvideSpi;\nimport com.lint.rpc.common.transport.ClientFactory;\nimport com.lint.rpc.common.transport.NettyClient;\nimport com.lint.rpc.co... | factory = ClientFactory.getInstance(); | {} | {
"repository": "hiparker-lint-rpc-framework-e64aac0",
"file": "lint-rpc-support/lint-rpc-support-common/src/main/java/com/lint/rpc/common/pool/ClientPool.java",
"task_id": "project_cc_java/2397"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "lint-rpc-support/lint-rpc-support-common/src/main/java/com/lint/rpc/common/pool/ClientPool.java",
"groundtruth_start_lineno": 174,
"repository": "hiparker-lint-rpc-framework-e64aac0",
"right_context_start_lineno": 175,
"task_id": "project_cc_... |
cross_code_eval_java::project_cc_java/2393 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// lint-rpc-support/lint-rpc-support-common/src/main/java/com/lint/rpc/common/transport/NettyClient.java
/... | {
"prefix": "package com.lint.rpc.common.pool;\n\nimport com.lint.rpc.common.LintConf;\nimport com.lint.rpc.common.balance.ILoadBalancePolicy;\nimport com.lint.rpc.common.service.ProvideSpi;\nimport com.lint.rpc.common.transport.ClientFactory;\nimport com.lint.rpc.common.transport.NettyClient;\nimport com.lint.rpc.co... | groupIndex = loadBalancePolicy.getClientIndex(groupNameSet.size()); | {} | {
"repository": "hiparker-lint-rpc-framework-e64aac0",
"file": "lint-rpc-support/lint-rpc-support-common/src/main/java/com/lint/rpc/common/pool/ClientPool.java",
"task_id": "project_cc_java/2393"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "lint-rpc-support/lint-rpc-support-common/src/main/java/com/lint/rpc/common/pool/ClientPool.java",
"groundtruth_start_lineno": 86,
"repository": "hiparker-lint-rpc-framework-e64aac0",
"right_context_start_lineno": 87,
"task_id": "project_cc_ja... |
cross_code_eval_java::project_cc_java/2337 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// lint-rpc-support/lint-rpc-support-common/src/main/java/com/lint/rpc/common/enums/RpcMsg.java
// @Ov... | {
"prefix": "package com.lint.rpc.common.exception;\n\n\nimport com.lint.rpc.common.enums.BaseMsg;\n\n/**\n * 框架服务异常\n *\n * @author Parker\n * @date 2020-09-13 19:41\n */\npublic class RpcException extends RuntimeException{\n\n private Integer code;\n\n private String errorMessage;\n\n public RpcException(I... | msg.getMessage()); | {} | {
"repository": "hiparker-lint-rpc-framework-e64aac0",
"file": "lint-rpc-support/lint-rpc-support-common/src/main/java/com/lint/rpc/common/exception/RpcException.java",
"task_id": "project_cc_java/2337"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "lint-rpc-support/lint-rpc-support-common/src/main/java/com/lint/rpc/common/exception/RpcException.java",
"groundtruth_start_lineno": 30,
"repository": "hiparker-lint-rpc-framework-e64aac0",
"right_context_start_lineno": 31,
"task_id": "projec... |
cross_code_eval_java::project_cc_java/2388 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// lint-rpc-demo/lint-rpc-demo-consumer/src/main/java/com/lint/rpc/demo/consumer/ConsumerApplication.java
... | {
"prefix": "package com.lint.rpc.common.transport;\n\nimport com.lint.rpc.common.protocol.RequestBody;\nimport com.lint.rpc.common.protocol.RequestContent;\nimport com.lint.rpc.common.protocol.RequestHeader;\nimport io.netty.buffer.ByteBuf;\nimport io.netty.channel.ChannelHandlerContext;\nimport io.netty.channel.Com... | requestHeader.getLength()){ | {} | {
"repository": "hiparker-lint-rpc-framework-e64aac0",
"file": "lint-rpc-support/lint-rpc-support-common/src/main/java/com/lint/rpc/common/transport/InternalServerMsgCodec.java",
"task_id": "project_cc_java/2388"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "lint-rpc-support/lint-rpc-support-common/src/main/java/com/lint/rpc/common/transport/InternalServerMsgCodec.java",
"groundtruth_start_lineno": 63,
"repository": "hiparker-lint-rpc-framework-e64aac0",
"right_context_start_lineno": 64,
"task_id... |
cross_code_eval_java::project_cc_java/2511 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// libasynDiscordWebHook-API/src/main/java/com/ialdrich23xx/libasynwebhook/api/discord/body/embed/base/Str... | {
"prefix": "package com.ialdrich23xx.libasynwebhook.api.discord;\n\nimport com.ialdrich23xx.libasynwebhook.api.Loader;\nimport com.ialdrich23xx.libasynwebhook.api.discord.body.Base;\nimport com.ialdrich23xx.libasynwebhook.api.discord.body.embed.base.BodyException;\n\nimport javax.net.ssl.HttpsURLConnection;\nimport ... | ()) && this.getBody().build()) { | {} | {
"repository": "iAldrich23xX-libasynWebhook-52a1773",
"file": "libasynDiscordWebHook-API/src/main/java/com/ialdrich23xx/libasynwebhook/api/discord/WebHook.java",
"task_id": "project_cc_java/2511"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "libasynDiscordWebHook-API/src/main/java/com/ialdrich23xx/libasynwebhook/api/discord/WebHook.java",
"groundtruth_start_lineno": 42,
"repository": "iAldrich23xX-libasynWebhook-52a1773",
"right_context_start_lineno": 43,
"task_id": "project_cc_j... |
cross_code_eval_java::project_cc_java/2399 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// lint-rpc-support/lint-rpc-support-common/src/main/java/com/lint/rpc/common/service/ProvideSpi.java
// ... | {
"prefix": "package com.lint.rpc.common.proxy;\n\nimport com.lint.rpc.common.LintConf;\nimport com.lint.rpc.common.annotation.RpcClient;\nimport com.lint.rpc.common.pool.ConfPool;\nimport com.lint.rpc.common.pool.CountDownLatchPool;\nimport com.lint.rpc.common.pool.MsgPool;\nimport com.lint.rpc.common.enums.RpcMsg;\... | .getRequestId(), lintConf.getRequestWaitTimeBySeconds()); | {} | {
"repository": "hiparker-lint-rpc-framework-e64aac0",
"file": "lint-rpc-support/lint-rpc-support-common/src/main/java/com/lint/rpc/common/proxy/RpcInvocationHandler.java",
"task_id": "project_cc_java/2399"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "lint-rpc-support/lint-rpc-support-common/src/main/java/com/lint/rpc/common/proxy/RpcInvocationHandler.java",
"groundtruth_start_lineno": 75,
"repository": "hiparker-lint-rpc-framework-e64aac0",
"right_context_start_lineno": 76,
"task_id": "pr... |
cross_code_eval_java::project_cc_java/2512 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// libasynDiscordWebHook-API/src/main/java/com/ialdrich23xx/libasynwebhook/api/discord/body/embed/base/Str... | {
"prefix": "package com.ialdrich23xx.libasynwebhook.api.discord;\n\nimport com.ialdrich23xx.libasynwebhook.api.Loader;\nimport com.ialdrich23xx.libasynwebhook.api.discord.body.Base;\nimport com.ialdrich23xx.libasynwebhook.api.discord.body.embed.base.BodyException;\n\nimport javax.net.ssl.HttpsURLConnection;\nimport ... | .getBody().toJson().getBytes()); | {} | {
"repository": "iAldrich23xX-libasynWebhook-52a1773",
"file": "libasynDiscordWebHook-API/src/main/java/com/ialdrich23xx/libasynwebhook/api/discord/WebHook.java",
"task_id": "project_cc_java/2512"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "libasynDiscordWebHook-API/src/main/java/com/ialdrich23xx/libasynwebhook/api/discord/WebHook.java",
"groundtruth_start_lineno": 54,
"repository": "iAldrich23xX-libasynWebhook-52a1773",
"right_context_start_lineno": 55,
"task_id": "project_cc_j... |
cross_code_eval_java::project_cc_java/2513 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// libasynDiscordWebHook-API/src/main/java/com/ialdrich23xx/libasynwebhook/api/discord/body/embed/EmbedMan... | {
"prefix": "package com.ialdrich23xx.libasynwebhook.api.discord.body;\n\nimport com.ialdrich23xx.libasynwebhook.api.Loader;\nimport com.ialdrich23xx.libasynwebhook.api.discord.body.embed.EmbedManager;\nimport com.ialdrich23xx.libasynwebhook.api.discord.body.embed.base.Structure;\n\nimport java.util.*;\n\npublic clas... | (embed.toArray().entrySet()))); | {} | {
"repository": "iAldrich23xX-libasynWebhook-52a1773",
"file": "libasynDiscordWebHook-API/src/main/java/com/ialdrich23xx/libasynwebhook/api/discord/body/Base.java",
"task_id": "project_cc_java/2513"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "libasynDiscordWebHook-API/src/main/java/com/ialdrich23xx/libasynwebhook/api/discord/body/Base.java",
"groundtruth_start_lineno": 117,
"repository": "iAldrich23xX-libasynWebhook-52a1773",
"right_context_start_lineno": 118,
"task_id": "project_... |
cross_code_eval_java::project_cc_java/2430 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/utils/InteractionApi/InventoryInteraction.java
// {
// MousePackets.queueClickPa... | {
"prefix": "package com.utils.InteractionApi;\n\nimport com.utils.HypsApiPlugin.NPCs;\nimport com.utils.Packets.MousePackets;\nimport com.utils.Packets.NPCPackets;\nimport net.runelite.api.NPC;\n\nimport java.util.Optional;\nimport java.util.function.Predicate;\n\npublic class NPCInteraction\n{\n\tpublic static bool... | NPCs.search().indexIs(index).first().flatMap(npc ->
{ | {} | {
"repository": "Hypsster-hUtils-d265b4f",
"file": "src/main/java/com/utils/InteractionApi/NPCInteraction.java",
"task_id": "project_cc_java/2430"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/utils/InteractionApi/NPCInteraction.java",
"groundtruth_start_lineno": 44,
"repository": "Hypsster-hUtils-d265b4f",
"right_context_start_lineno": 46,
"task_id": "project_cc_java/2430"
}
} |
cross_code_eval_java::project_cc_java/2464 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/utils/InteractionApi/InventoryInteraction.java
// MousePackets.queueClickPacket();... | {
"prefix": "package com.utils.InteractionApi;\n\nimport com.utils.HypsApiPlugin.Bank;\nimport com.utils.Packets.MousePackets;\nimport com.utils.Packets.WidgetPackets;\nimport net.runelite.api.widgets.Widget;\n\nimport java.util.Optional;\nimport java.util.function.Predicate;\n\npublic class BankInteraction\n{\n\tpub... | return Bank.search().indexIs(index).first().flatMap(item ->
{ | {} | {
"repository": "Hypsster-hUtils-d265b4f",
"file": "src/main/java/com/utils/InteractionApi/BankInteraction.java",
"task_id": "project_cc_java/2464"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/utils/InteractionApi/BankInteraction.java",
"groundtruth_start_lineno": 44,
"repository": "Hypsster-hUtils-d265b4f",
"right_context_start_lineno": 46,
"task_id": "project_cc_java/2464"
}
} |
cross_code_eval_java::project_cc_java/2553 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/easycontactforms/core/repositories/ContactFormRepository.java
// package org.easycont... | {
"prefix": "package org.easycontactforms.core.services;\n\nimport org.easycontactforms.core.dtos.ContactFormDto;\nimport org.easycontactforms.core.models.ContactForm;\nimport org.easycontactforms.core.repositories.ContactFormRepository;\nimport lombok.extern.slf4j.Slf4j;\nimport org.springframework.beans.factory.ann... | return repository.findByEmailSent(false); | {} | {
"repository": "Jan222333444-EasyContactForms-a2cf723",
"file": "src/main/java/org/easycontactforms/core/services/ContactFormService.java",
"task_id": "project_cc_java/2553"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/easycontactforms/core/services/ContactFormService.java",
"groundtruth_start_lineno": 63,
"repository": "Jan222333444-EasyContactForms-a2cf723",
"right_context_start_lineno": 64,
"task_id": "project_cc_java/2553"
}
} |
cross_code_eval_java::project_cc_java/2443 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/utils/InteractionApi/NPCInteraction.java
// {
// MousePackets.queueClickPacket()... | {
"prefix": "package com.utils.InteractionApi;\n\nimport com.utils.HypsApiPlugin.Players;\nimport com.utils.Packets.MousePackets;\nimport com.utils.Packets.PlayerPackets;\nimport net.runelite.api.Player;\n\nimport java.util.Optional;\nimport java.util.function.Predicate;\n\npublic class PlayerInteractionHelper\n{\n\t... | Players.search().filter(predicate).first().flatMap(Player ->
{ | {} | {
"repository": "Hypsster-hUtils-d265b4f",
"file": "src/main/java/com/utils/InteractionApi/PlayerInteractionHelper.java",
"task_id": "project_cc_java/2443"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/utils/InteractionApi/PlayerInteractionHelper.java",
"groundtruth_start_lineno": 35,
"repository": "Hypsster-hUtils-d265b4f",
"right_context_start_lineno": 37,
"task_id": "project_cc_java/2443"
}
} |
cross_code_eval_java::project_cc_java/2555 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/easycontactforms/core/commandhandler/CommandHandler.java
// //Executes on loa... | {
"prefix": "package org.easycontactforms.core;\n\nimport jakarta.annotation.PreDestroy;\nimport lombok.extern.slf4j.Slf4j;\nimport org.easycontactforms.api.PluginFactory;\nimport org.easycontactforms.core.commandhandler.CommandHandlerThread;\nimport org.easycontactforms.core.pluginloader.PluginLoader;\nimport org.ea... | = pluginLoader.getPluginFactories(); | {} | {
"repository": "Jan222333444-EasyContactForms-a2cf723",
"file": "src/main/java/org/easycontactforms/core/EasyContactFormsApplication.java",
"task_id": "project_cc_java/2555"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/easycontactforms/core/EasyContactFormsApplication.java",
"groundtruth_start_lineno": 50,
"repository": "Jan222333444-EasyContactForms-a2cf723",
"right_context_start_lineno": 51,
"task_id": "project_cc_java/2555"
}
} |
cross_code_eval_java::project_cc_java/2450 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/utils/InteractionApi/InventoryInteraction.java
// MousePackets.queueClickPacket();... | {
"prefix": "package com.utils.InteractionApi;\n\nimport com.utils.HypsApiPlugin.BankInventory;\nimport com.utils.Packets.MousePackets;\nimport com.utils.Packets.WidgetPackets;\nimport net.runelite.api.widgets.Widget;\n\nimport java.util.Optional;\nimport java.util.function.Predicate;\n\npublic class BankInventoryInt... | BankInventory.search().indexIs(index).first().flatMap(item ->
{ | {} | {
"repository": "Hypsster-hUtils-d265b4f",
"file": "src/main/java/com/utils/InteractionApi/BankInventoryInteraction.java",
"task_id": "project_cc_java/2450"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/utils/InteractionApi/BankInventoryInteraction.java",
"groundtruth_start_lineno": 44,
"repository": "Hypsster-hUtils-d265b4f",
"right_context_start_lineno": 46,
"task_id": "project_cc_java/2450"
}
} |
cross_code_eval_java::project_cc_java/2550 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/test/java/org/easycontactforms/unittests/CommandHandlerTest.java
// @Test
// public void te... | {
"prefix": "package org.easycontactforms.core.commandhandler;\n\nimport lombok.extern.slf4j.Slf4j;\nimport org.springframework.context.ApplicationContext;\n\nimport java.io.InputStream;\nimport java.util.Scanner;\n\n/**\n * Thread for processing command line inputs\n */\n@Slf4j\npublic class CommandHandlerThread ext... | handler.onCommand(command, arguments); | {} | {
"repository": "Jan222333444-EasyContactForms-a2cf723",
"file": "src/main/java/org/easycontactforms/core/commandhandler/CommandHandlerThread.java",
"task_id": "project_cc_java/2550"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/easycontactforms/core/commandhandler/CommandHandlerThread.java",
"groundtruth_start_lineno": 34,
"repository": "Jan222333444-EasyContactForms-a2cf723",
"right_context_start_lineno": 35,
"task_id": "project_cc_java/2550"
}
... |
cross_code_eval_java::project_cc_java/2429 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/utils/InteractionApi/InventoryInteraction.java
// {
// MousePackets.queueClickPa... | {
"prefix": "package com.utils.InteractionApi;\n\nimport com.utils.HypsApiPlugin.NPCs;\nimport com.utils.Packets.MousePackets;\nimport com.utils.Packets.NPCPackets;\nimport net.runelite.api.NPC;\n\nimport java.util.Optional;\nimport java.util.function.Predicate;\n\npublic class NPCInteraction\n{\n\tpublic static bool... | NPCs.search().filter(predicate).first().flatMap(npc ->
{ | {} | {
"repository": "Hypsster-hUtils-d265b4f",
"file": "src/main/java/com/utils/InteractionApi/NPCInteraction.java",
"task_id": "project_cc_java/2429"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/utils/InteractionApi/NPCInteraction.java",
"groundtruth_start_lineno": 34,
"repository": "Hypsster-hUtils-d265b4f",
"right_context_start_lineno": 36,
"task_id": "project_cc_java/2429"
}
} |
cross_code_eval_java::project_cc_java/2551 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/easycontactforms/core/EasyContactFormsApplication.java
// ApplicationContext ... | {
"prefix": "package org.easycontactforms.core.commandhandler;\n\nimport lombok.extern.slf4j.Slf4j;\nimport org.easycontactforms.api.Plugin;\nimport org.easycontactforms.core.EasyContactFormsApplication;\nimport org.easycontactforms.core.pluginloader.PluginStore;\nimport org.springframework.boot.SpringApplication;\ni... | EasyContactFormsApplication.loadPlugins(pluginsPath); | {} | {
"repository": "Jan222333444-EasyContactForms-a2cf723",
"file": "src/main/java/org/easycontactforms/core/commandhandler/CommandHandler.java",
"task_id": "project_cc_java/2551"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/easycontactforms/core/commandhandler/CommandHandler.java",
"groundtruth_start_lineno": 118,
"repository": "Jan222333444-EasyContactForms-a2cf723",
"right_context_start_lineno": 119,
"task_id": "project_cc_java/2551"
}
} |
cross_code_eval_java::project_cc_java/2480 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/utils/Packets/BufferMethods.java
// Field arrayField = bufferInstance.getClass().ge... | {
"prefix": "package com.utils;\n\nimport com.utils.PacketType;\nimport com.utils.Packets.BufferMethods;\nimport lombok.SneakyThrows;\nimport lombok.extern.slf4j.Slf4j;\nimport net.runelite.api.Client;\n\nimport javax.inject.Inject;\nimport java.lang.reflect.Field;\nimport java.lang.reflect.Method;\nimport java.util.... | BufferMethods.du(buffer, (Integer) input); | {} | {
"repository": "Hypsster-hUtils-d265b4f",
"file": "src/main/java/com/utils/PacketReflection.java",
"task_id": "project_cc_java/2480"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/utils/PacketReflection.java",
"groundtruth_start_lineno": 72,
"repository": "Hypsster-hUtils-d265b4f",
"right_context_start_lineno": 73,
"task_id": "project_cc_java/2480"
}
} |
cross_code_eval_java::project_cc_java/2552 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/easycontactforms/core/services/MailSendThread.java
// for (String key : Plugi... | {
"prefix": "package org.easycontactforms.core.services;\n\nimport org.easycontactforms.core.models.ContactForm;\nimport lombok.extern.slf4j.Slf4j;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.beans.factory.annotation.Value;\nimport org.springframework.stereotype.Service... | <ContactForm> forms = contactFormService.getContactForms(true); | {} | {
"repository": "Jan222333444-EasyContactForms-a2cf723",
"file": "src/main/java/org/easycontactforms/core/services/MailingService.java",
"task_id": "project_cc_java/2552"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/easycontactforms/core/services/MailingService.java",
"groundtruth_start_lineno": 131,
"repository": "Jan222333444-EasyContactForms-a2cf723",
"right_context_start_lineno": 132,
"task_id": "project_cc_java/2552"
}
} |
cross_code_eval_java::project_cc_java/2562 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/com/blamejared/searchables/api/formatter/FormattingVisitor.java
// /**
// ... | {
"prefix": "package com.blamejared.searchables.api.autcomplete;\n\nimport com.blamejared.searchables.api.TokenRange;\nimport com.blamejared.searchables.lang.StringSearcher;\nimport com.blamejared.searchables.lang.expression.type.*;\nimport com.blamejared.searchables.lang.expression.visitor.Visitor;\n\nimport java.ut... | lastRange.covers(previous)) { | {} | {
"repository": "jaredlll08-searchables-2cb19ff",
"file": "common/src/main/java/com/blamejared/searchables/api/autcomplete/CompletionVisitor.java",
"task_id": "project_cc_java/2562"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "common/src/main/java/com/blamejared/searchables/api/autcomplete/CompletionVisitor.java",
"groundtruth_start_lineno": 45,
"repository": "jaredlll08-searchables-2cb19ff",
"right_context_start_lineno": 46,
"task_id": "project_cc_java/2562"
}
} |
cross_code_eval_java::project_cc_java/2497 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/utils/AutoTele/AutoTele.java
// if (teleportedFromSkulledPlayer)
// {
// ... | {
"prefix": "package com.utils.gauntletFlicker;\n\nimport com.utils.HypsApiPlugin.HypsApiPlugin;\nimport com.utils.HypsApiPlugin.QuickPrayer;\nimport com.utils.InteractionApi.InteractionHelper;\nimport com.utils.PacketUtilsPlugin;\nimport com.utils.Packets.MousePackets;\nimport com.utils.Packets.WidgetPackets;\nimpor... | Widget bow = HypsApiPlugin.getItem("*bow*"); | {} | {
"repository": "Hypsster-hUtils-d265b4f",
"file": "src/main/java/com/utils/gauntletFlicker/gauntletFlicker.java",
"task_id": "project_cc_java/2497"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/utils/gauntletFlicker/gauntletFlicker.java",
"groundtruth_start_lineno": 122,
"repository": "Hypsster-hUtils-d265b4f",
"right_context_start_lineno": 123,
"task_id": "project_cc_java/2497"
}
} |
cross_code_eval_java::project_cc_java/2563 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/com/blamejared/searchables/api/formatter/FormattingVisitor.java
// }
// @O... | {
"prefix": "package com.blamejared.searchables.api.autcomplete;\n\nimport com.blamejared.searchables.api.TokenRange;\nimport com.blamejared.searchables.lang.StringSearcher;\nimport com.blamejared.searchables.lang.expression.type.*;\nimport com.blamejared.searchables.lang.expression.visitor.Visitor;\n\nimport java.ut... | lastRange.addRange(previous); | {} | {
"repository": "jaredlll08-searchables-2cb19ff",
"file": "common/src/main/java/com/blamejared/searchables/api/autcomplete/CompletionVisitor.java",
"task_id": "project_cc_java/2563"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "common/src/main/java/com/blamejared/searchables/api/autcomplete/CompletionVisitor.java",
"groundtruth_start_lineno": 46,
"repository": "jaredlll08-searchables-2cb19ff",
"right_context_start_lineno": 47,
"task_id": "project_cc_java/2563"
}
} |
cross_code_eval_java::project_cc_java/2492 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/utils/TestPlugin/Tester.java
// {
// Optional<Widget> fish = Inventory.search().id... | {
"prefix": "package com.utils.AutoTele;\n\nimport com.utils.HypsApiPlugin.HypsApiPlugin;\nimport com.utils.HypsApiPlugin.Inventory;\nimport com.utils.InteractionApi.InventoryInteraction;\nimport com.utils.PacketUtilsPlugin;\nimport com.utils.Packets.MousePackets;\nimport com.utils.Packets.WidgetPackets;\nimport com.... | <Widget> ring_of_wealth = Inventory.search().nameContains("Ring of wealth (").first(); | {} | {
"repository": "Hypsster-hUtils-d265b4f",
"file": "src/main/java/com/utils/AutoTele/AutoTele.java",
"task_id": "project_cc_java/2492"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/utils/AutoTele/AutoTele.java",
"groundtruth_start_lineno": 108,
"repository": "Hypsster-hUtils-d265b4f",
"right_context_start_lineno": 109,
"task_id": "project_cc_java/2492"
}
} |
cross_code_eval_java::project_cc_java/2568 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/com/blamejared/searchables/api/formatter/FormattingVisitor.java
// public Toke... | {
"prefix": "package com.blamejared.searchables.api.autcomplete;\n\nimport com.blamejared.searchables.api.TokenRange;\nimport com.blamejared.searchables.lang.StringSearcher;\nimport com.blamejared.searchables.lang.expression.type.*;\nimport com.blamejared.searchables.lang.expression.visitor.Visitor;\n\nimport java.ut... | tokens.add(range.recalculate()); | {} | {
"repository": "jaredlll08-searchables-2cb19ff",
"file": "common/src/main/java/com/blamejared/searchables/api/autcomplete/CompletionVisitor.java",
"task_id": "project_cc_java/2568"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "common/src/main/java/com/blamejared/searchables/api/autcomplete/CompletionVisitor.java",
"groundtruth_start_lineno": 125,
"repository": "jaredlll08-searchables-2cb19ff",
"right_context_start_lineno": 126,
"task_id": "project_cc_java/2568"
}... |
cross_code_eval_java::project_cc_java/2491 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/utils/gauntletFlicker/gauntletFlicker.java
// {
// MousePackets.queueClickPa... | {
"prefix": "package com.utils.AutoTele;\n\nimport com.utils.HypsApiPlugin.HypsApiPlugin;\nimport com.utils.HypsApiPlugin.Inventory;\nimport com.utils.InteractionApi.InventoryInteraction;\nimport com.utils.PacketUtilsPlugin;\nimport com.utils.Packets.MousePackets;\nimport com.utils.Packets.WidgetPackets;\nimport com.... | > royal_seed_pod = Inventory.search().withId(ItemID.ROYAL_SEED_POD).first(); | {} | {
"repository": "Hypsster-hUtils-d265b4f",
"file": "src/main/java/com/utils/AutoTele/AutoTele.java",
"task_id": "project_cc_java/2491"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/utils/AutoTele/AutoTele.java",
"groundtruth_start_lineno": 107,
"repository": "Hypsster-hUtils-d265b4f",
"right_context_start_lineno": 108,
"task_id": "project_cc_java/2491"
}
} |
cross_code_eval_java::project_cc_java/2573 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/com/blamejared/searchables/api/formatter/FormattingVisitor.java
// }
// @O... | {
"prefix": "package com.blamejared.searchables.api.autcomplete;\n\nimport com.blamejared.searchables.api.TokenRange;\nimport com.blamejared.searchables.lang.StringSearcher;\nimport com.blamejared.searchables.lang.expression.type.*;\nimport com.blamejared.searchables.lang.expression.visitor.Visitor;\n\nimport java.ut... | StringSearcher.search(search, this); | {} | {
"repository": "jaredlll08-searchables-2cb19ff",
"file": "common/src/main/java/com/blamejared/searchables/api/autcomplete/CompletionVisitor.java",
"task_id": "project_cc_java/2573"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "common/src/main/java/com/blamejared/searchables/api/autcomplete/CompletionVisitor.java",
"groundtruth_start_lineno": 150,
"repository": "jaredlll08-searchables-2cb19ff",
"right_context_start_lineno": 151,
"task_id": "project_cc_java/2573"
}... |
cross_code_eval_java::project_cc_java/2493 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/utils/InteractionApi/InventoryInteraction.java
// }
// MousePackets.queueClickPac... | {
"prefix": "package com.utils.AutoTele;\n\nimport com.utils.HypsApiPlugin.HypsApiPlugin;\nimport com.utils.HypsApiPlugin.Inventory;\nimport com.utils.InteractionApi.InventoryInteraction;\nimport com.utils.PacketUtilsPlugin;\nimport com.utils.Packets.MousePackets;\nimport com.utils.Packets.WidgetPackets;\nimport com.... | > widget = Inventory.search().withId(ItemID.ROYAL_SEED_POD).first(); | {} | {
"repository": "Hypsster-hUtils-d265b4f",
"file": "src/main/java/com/utils/AutoTele/AutoTele.java",
"task_id": "project_cc_java/2493"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/utils/AutoTele/AutoTele.java",
"groundtruth_start_lineno": 193,
"repository": "Hypsster-hUtils-d265b4f",
"right_context_start_lineno": 194,
"task_id": "project_cc_java/2493"
}
} |
cross_code_eval_java::project_cc_java/2602 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/jessetzh/handler/SdResHandler.java
// throw new StableDiffusionExcept... | {
"prefix": "package com.jessetzh.handler;\n\nimport com.jessetzh.parameters.BasicParameter;\nimport org.apache.http.HttpHost;\nimport org.apache.http.auth.AuthScope;\nimport org.apache.http.auth.UsernamePasswordCredentials;\nimport org.apache.http.client.CredentialsProvider;\nimport org.apache.http.impl.client.Basic... | basicParameter.getApiUrl() == null) { | {} | {
"repository": "JesseTzh-stable-diffusion-java-20f5a07",
"file": "src/main/java/com/jessetzh/handler/BasicParameterHandler.java",
"task_id": "project_cc_java/2602"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/jessetzh/handler/BasicParameterHandler.java",
"groundtruth_start_lineno": 36,
"repository": "JesseTzh-stable-diffusion-java-20f5a07",
"right_context_start_lineno": 37,
"task_id": "project_cc_java/2602"
}
} |
cross_code_eval_java::project_cc_java/2578 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// dagger-java-sdk/src/test/java/org/chelonix/dagger/client/engineconn/ConnectionTest.java
// envi... | {
"prefix": "package org.chelonix.dagger.client.engineconn;\n\nimport io.smallrye.graphql.client.dynamic.api.DynamicGraphQLClient;\nimport io.smallrye.graphql.client.vertx.dynamic.VertxDynamicGraphQLClientBuilder;\nimport io.vertx.core.Vertx;\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\n\nimport java.i... | cliRunner.start(); | {} | {
"repository": "jcsirot-dagger-java-sdk-366c947",
"file": "dagger-java-sdk/src/main/java/org/chelonix/dagger/client/engineconn/Connection.java",
"task_id": "project_cc_java/2578"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "dagger-java-sdk/src/main/java/org/chelonix/dagger/client/engineconn/Connection.java",
"groundtruth_start_lineno": 59,
"repository": "jcsirot-dagger-java-sdk-366c947",
"right_context_start_lineno": 60,
"task_id": "project_cc_java/2578"
}
} |
cross_code_eval_java::project_cc_java/2494 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/utils/InteractionApi/InventoryInteraction.java
// {
// MousePackets.queueClickPa... | {
"prefix": "package com.utils.AutoTele;\n\nimport com.utils.HypsApiPlugin.HypsApiPlugin;\nimport com.utils.HypsApiPlugin.Inventory;\nimport com.utils.InteractionApi.InventoryInteraction;\nimport com.utils.PacketUtilsPlugin;\nimport com.utils.Packets.MousePackets;\nimport com.utils.Packets.WidgetPackets;\nimport com.... | Widget> row = Inventory.search().nameContains("Ring of wealth (").first(); | {} | {
"repository": "Hypsster-hUtils-d265b4f",
"file": "src/main/java/com/utils/AutoTele/AutoTele.java",
"task_id": "project_cc_java/2494"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/utils/AutoTele/AutoTele.java",
"groundtruth_start_lineno": 199,
"repository": "Hypsster-hUtils-d265b4f",
"right_context_start_lineno": 200,
"task_id": "project_cc_java/2494"
}
} |
cross_code_eval_java::project_cc_java/2579 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// dagger-java-sdk/src/test/java/org/chelonix/dagger/client/engineconn/ConnectionTest.java
// envi... | {
"prefix": "package org.chelonix.dagger.client.engineconn;\n\nimport io.smallrye.graphql.client.dynamic.api.DynamicGraphQLClient;\nimport io.smallrye.graphql.client.vertx.dynamic.VertxDynamicGraphQLClientBuilder;\nimport io.vertx.core.Vertx;\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\n\nimport java.i... | connectParams = cliRunner.getConnectionParams(); | {} | {
"repository": "jcsirot-dagger-java-sdk-366c947",
"file": "dagger-java-sdk/src/main/java/org/chelonix/dagger/client/engineconn/Connection.java",
"task_id": "project_cc_java/2579"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "dagger-java-sdk/src/main/java/org/chelonix/dagger/client/engineconn/Connection.java",
"groundtruth_start_lineno": 60,
"repository": "jcsirot-dagger-java-sdk-366c947",
"right_context_start_lineno": 61,
"task_id": "project_cc_java/2579"
}
} |
cross_code_eval_java::project_cc_java/2576 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// dagger-codegen-maven-plugin/src/main/java/org/chelonix/dagger/codegen/DaggerCodegenMojo.java
// ... | {
"prefix": "package org.chelonix.dagger.client.engineconn;\n\nimport org.apache.commons.compress.archivers.ArchiveEntry;\nimport org.apache.commons.compress.archivers.ArchiveInputStream;\nimport org.apache.commons.compress.archivers.tar.TarArchiveInputStream;\nimport org.apache.commons.compress.archivers.zip.ZipArch... | (BufferedInputStream in = new BufferedInputStream(fetcher.fetch(checksumMapURL))) { | {} | {
"repository": "jcsirot-dagger-java-sdk-366c947",
"file": "dagger-java-sdk/src/main/java/org/chelonix/dagger/client/engineconn/CLIDownloader.java",
"task_id": "project_cc_java/2576"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "dagger-java-sdk/src/main/java/org/chelonix/dagger/client/engineconn/CLIDownloader.java",
"groundtruth_start_lineno": 100,
"repository": "jcsirot-dagger-java-sdk-366c947",
"right_context_start_lineno": 101,
"task_id": "project_cc_java/2576"
... |
cross_code_eval_java::project_cc_java/2604 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/jessetzh/request/Text2Img.java
// public class Text2Img {
// private static final St... | {
"prefix": "package com.jessetzh.test;\n\n\nimport com.jessetzh.parameters.Img2ImgParameter;\nimport com.jessetzh.parameters.SamplerEnums;\nimport com.jessetzh.parameters.Text2ImgParameter;\nimport com.jessetzh.request.Img2Img;\nimport com.jessetzh.request.Text2Img;\nimport com.jessetzh.res.SdResponses;\n\nimport ja... | parameter.setInit_images(new String[]{ | {} | {
"repository": "JesseTzh-stable-diffusion-java-20f5a07",
"file": "src/main/java/com/jessetzh/test/GeneratorTest.java",
"task_id": "project_cc_java/2604"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/jessetzh/test/GeneratorTest.java",
"groundtruth_start_lineno": 63,
"repository": "JesseTzh-stable-diffusion-java-20f5a07",
"right_context_start_lineno": 64,
"task_id": "project_cc_java/2604"
}
} |
cross_code_eval_java::project_cc_java/2603 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/jessetzh/request/Img2Img.java
// public class Img2Img {
// private static final Stri... | {
"prefix": "package com.jessetzh.test;\n\n\nimport com.jessetzh.parameters.Img2ImgParameter;\nimport com.jessetzh.parameters.SamplerEnums;\nimport com.jessetzh.parameters.Text2ImgParameter;\nimport com.jessetzh.request.Img2Img;\nimport com.jessetzh.request.Text2Img;\nimport com.jessetzh.res.SdResponses;\n\nimport ja... | parameter.setDenoisingStrength(new BigDecimal("0.55")); | {} | {
"repository": "JesseTzh-stable-diffusion-java-20f5a07",
"file": "src/main/java/com/jessetzh/test/GeneratorTest.java",
"task_id": "project_cc_java/2603"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/jessetzh/test/GeneratorTest.java",
"groundtruth_start_lineno": 52,
"repository": "JesseTzh-stable-diffusion-java-20f5a07",
"right_context_start_lineno": 53,
"task_id": "project_cc_java/2603"
}
} |
cross_code_eval_java::project_cc_java/2580 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// dagger-java-sdk/src/test/java/org/chelonix/dagger/client/engineconn/ConnectionTest.java
// when... | {
"prefix": "package org.chelonix.dagger.client.engineconn;\n\nimport io.smallrye.graphql.client.dynamic.api.DynamicGraphQLClient;\nimport io.smallrye.graphql.client.vertx.dynamic.VertxDynamicGraphQLClientBuilder;\nimport io.vertx.core.Vertx;\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\n\nimport java.i... | cliRunner.shutdown(); | {} | {
"repository": "jcsirot-dagger-java-sdk-366c947",
"file": "dagger-java-sdk/src/main/java/org/chelonix/dagger/client/engineconn/Connection.java",
"task_id": "project_cc_java/2580"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "dagger-java-sdk/src/main/java/org/chelonix/dagger/client/engineconn/Connection.java",
"groundtruth_start_lineno": 63,
"repository": "jcsirot-dagger-java-sdk-366c947",
"right_context_start_lineno": 64,
"task_id": "project_cc_java/2580"
}
} |
cross_code_eval_java::project_cc_java/2577 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// dagger-codegen-maven-plugin/src/main/java/org/chelonix/dagger/codegen/DaggerCodegenMojo.java
// ... | {
"prefix": "package org.chelonix.dagger.client.engineconn;\n\nimport org.apache.commons.compress.archivers.ArchiveEntry;\nimport org.apache.commons.compress.archivers.ArchiveInputStream;\nimport org.apache.commons.compress.archivers.tar.TarArchiveInputStream;\nimport org.apache.commons.compress.archivers.zip.ZipArch... | new BufferedInputStream(new DigestInputStream(fetcher.fetch(cliArchiveURL), sha256))) { | {} | {
"repository": "jcsirot-dagger-java-sdk-366c947",
"file": "dagger-java-sdk/src/main/java/org/chelonix/dagger/client/engineconn/CLIDownloader.java",
"task_id": "project_cc_java/2577"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "dagger-java-sdk/src/main/java/org/chelonix/dagger/client/engineconn/CLIDownloader.java",
"groundtruth_start_lineno": 127,
"repository": "jcsirot-dagger-java-sdk-366c947",
"right_context_start_lineno": 128,
"task_id": "project_cc_java/2577"
... |
cross_code_eval_java::project_cc_java/2521 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// dhizuku-api-impl/src/main/java/com/rosan/dhizuku/api/DhizukuServiceConnection.java
// }
// bool... | {
"prefix": "package com.rosan.dhizuku.api;\n\nimport android.content.ComponentName;\nimport android.content.ServiceConnection;\nimport android.os.Bundle;\nimport android.os.IBinder;\nimport android.os.RemoteException;\n\nimport androidx.annotation.NonNull;\n\nimport com.rosan.dhizuku.aidl.IDhizuku;\nimport com.rosan... | (serviceConnection.isEmpty()) tokens.add(token); | {} | {
"repository": "iamr0s-Dhizuku-API-009d517",
"file": "dhizuku-api-impl/src/main/java/com/rosan/dhizuku/api/DhizukuServiceConnections.java",
"task_id": "project_cc_java/2521"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "dhizuku-api-impl/src/main/java/com/rosan/dhizuku/api/DhizukuServiceConnections.java",
"groundtruth_start_lineno": 92,
"repository": "iamr0s-Dhizuku-API-009d517",
"right_context_start_lineno": 93,
"task_id": "project_cc_java/2521"
}
} |
cross_code_eval_java::project_cc_java/2518 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// dhizuku-api-impl/src/main/java/com/rosan/dhizuku/api/Dhizuku.java
// e.printStackTrace();
/... | {
"prefix": "package com.rosan.dhizuku.api;\n\nimport android.content.ComponentName;\nimport android.content.ServiceConnection;\nimport android.os.Bundle;\nimport android.os.IBinder;\nimport android.os.RemoteException;\n\nimport androidx.annotation.NonNull;\n\nimport com.rosan.dhizuku.aidl.IDhizuku;\nimport com.rosan... | args.build()); | {} | {
"repository": "iamr0s-Dhizuku-API-009d517",
"file": "dhizuku-api-impl/src/main/java/com/rosan/dhizuku/api/DhizukuServiceConnections.java",
"task_id": "project_cc_java/2518"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "dhizuku-api-impl/src/main/java/com/rosan/dhizuku/api/DhizukuServiceConnections.java",
"groundtruth_start_lineno": 65,
"repository": "iamr0s-Dhizuku-API-009d517",
"right_context_start_lineno": 66,
"task_id": "project_cc_java/2518"
}
} |
cross_code_eval_java::project_cc_java/2616 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/model/Reservation.java
// public Reservation(int id, int anzahlPlätze, int anzahlEinh... | {
"prefix": "package com.example.controllsdemo;\n\nimport javafx.event.ActionEvent;\nimport javafx.scene.control.Button;\nimport javafx.scene.control.TextField;\nimport javafx.stage.Stage;\nimport model.Reservation;\nimport model.ReservationDAO;\nimport model.SharedDataModel;\n\n\npublic class Paymenu\n{\n @javafx... | .update(SharedDataModel.getReservation()); | {} | {
"repository": "k0hlii-reservationsystem-cf95137",
"file": "src/main/java/com/example/controllsdemo/Paymenu.java",
"task_id": "project_cc_java/2616"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/example/controllsdemo/Paymenu.java",
"groundtruth_start_lineno": 44,
"repository": "k0hlii-reservationsystem-cf95137",
"right_context_start_lineno": 45,
"task_id": "project_cc_java/2616"
}
} |
cross_code_eval_java::project_cc_java/2517 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// dhizuku-api-impl/src/main/java/com/rosan/dhizuku/api/DhizukuServiceConnection.java
// for (... | {
"prefix": "package com.rosan.dhizuku.api;\n\nimport android.content.ComponentName;\nimport android.content.ServiceConnection;\nimport android.os.Bundle;\nimport android.os.IBinder;\nimport android.os.RemoteException;\n\nimport androidx.annotation.NonNull;\n\nimport com.rosan.dhizuku.aidl.IDhizuku;\nimport com.rosan... | == null) dhizuku.bindUserService(iDhizukuUserServiceConnection, args.build()); | {} | {
"repository": "iamr0s-Dhizuku-API-009d517",
"file": "dhizuku-api-impl/src/main/java/com/rosan/dhizuku/api/DhizukuServiceConnections.java",
"task_id": "project_cc_java/2517"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "dhizuku-api-impl/src/main/java/com/rosan/dhizuku/api/DhizukuServiceConnections.java",
"groundtruth_start_lineno": 61,
"repository": "iamr0s-Dhizuku-API-009d517",
"right_context_start_lineno": 62,
"task_id": "project_cc_java/2517"
}
} |
cross_code_eval_java::project_cc_java/2615 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/model/Reservation.java
// public Reservation(int id, int anzahlPlätze, int anzahlEinh... | {
"prefix": "package com.example.controllsdemo;\n\nimport javafx.event.ActionEvent;\nimport javafx.scene.control.Button;\nimport javafx.scene.control.TextField;\nimport javafx.stage.Stage;\nimport model.Reservation;\nimport model.ReservationDAO;\nimport model.SharedDataModel;\n\n\npublic class Paymenu\n{\n @javafx... | SharedDataModel.getReservation().state = "paid"; | {} | {
"repository": "k0hlii-reservationsystem-cf95137",
"file": "src/main/java/com/example/controllsdemo/Paymenu.java",
"task_id": "project_cc_java/2615"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/example/controllsdemo/Paymenu.java",
"groundtruth_start_lineno": 43,
"repository": "k0hlii-reservationsystem-cf95137",
"right_context_start_lineno": 44,
"task_id": "project_cc_java/2615"
}
} |
cross_code_eval_java::project_cc_java/2606 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/model/Customer.java
// public Customer(String firstname, String lastname, String phon... | {
"prefix": "package model;\n\nimport java.sql.Time;\nimport java.util.Date;\n\npublic class Reservation {\n\n public int court;\n public int court_count;\n public int sessions;\n public Customer customer;\n public java.util.Date date;\n int id;\n float price;\n int cusomerID;\n public Stri... | customer = CustomerDAO.getCustomerbyID(kundenID); | {} | {
"repository": "k0hlii-reservationsystem-cf95137",
"file": "src/main/java/model/Reservation.java",
"task_id": "project_cc_java/2606"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/model/Reservation.java",
"groundtruth_start_lineno": 33,
"repository": "k0hlii-reservationsystem-cf95137",
"right_context_start_lineno": 34,
"task_id": "project_cc_java/2606"
}
} |
cross_code_eval_java::project_cc_java/2582 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// dagger-java-sdk/src/test/java/org/chelonix/dagger/client/engineconn/ConnectionTest.java
// when... | {
"prefix": "package org.chelonix.dagger.client.engineconn;\n\nimport io.smallrye.graphql.client.dynamic.api.DynamicGraphQLClient;\nimport io.smallrye.graphql.client.vertx.dynamic.VertxDynamicGraphQLClientBuilder;\nimport io.vertx.core.Vertx;\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\n\nimport java.i... | (), connectParams.getSessionToken(), Optional.of(cliRunner)); | {} | {
"repository": "jcsirot-dagger-java-sdk-366c947",
"file": "dagger-java-sdk/src/main/java/org/chelonix/dagger/client/engineconn/Connection.java",
"task_id": "project_cc_java/2582"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "dagger-java-sdk/src/main/java/org/chelonix/dagger/client/engineconn/Connection.java",
"groundtruth_start_lineno": 61,
"repository": "jcsirot-dagger-java-sdk-366c947",
"right_context_start_lineno": 62,
"task_id": "project_cc_java/2582"
}
} |
cross_code_eval_java::project_cc_java/2583 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// dagger-java-sdk/src/main/java/org/chelonix/dagger/client/engineconn/CLIDownloader.java
// }
// ... | {
"prefix": "package org.chelonix.dagger.codegen;\n\nimport com.ongres.process.FluentProcess;\nimport org.apache.maven.plugin.AbstractMojo;\nimport org.apache.maven.plugin.MojoExecutionException;\nimport org.apache.maven.plugin.MojoFailureException;\nimport org.apache.maven.plugins.annotations.LifecyclePhase;\nimport... | Schema.initialize(in); | {} | {
"repository": "jcsirot-dagger-java-sdk-366c947",
"file": "dagger-codegen-maven-plugin/src/main/java/org/chelonix/dagger/codegen/DaggerCodegenMojo.java",
"task_id": "project_cc_java/2583"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "dagger-codegen-maven-plugin/src/main/java/org/chelonix/dagger/codegen/DaggerCodegenMojo.java",
"groundtruth_start_lineno": 78,
"repository": "jcsirot-dagger-java-sdk-366c947",
"right_context_start_lineno": 79,
"task_id": "project_cc_java/2583... |
cross_code_eval_java::project_cc_java/2584 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// dagger-codegen-maven-plugin/src/main/java/org/chelonix/dagger/codegen/introspection/Schema.java
// ... | {
"prefix": "package org.chelonix.dagger.codegen;\n\nimport com.ongres.process.FluentProcess;\nimport org.apache.maven.plugin.AbstractMojo;\nimport org.apache.maven.plugin.MojoExecutionException;\nimport org.apache.maven.plugin.MojoFailureException;\nimport org.apache.maven.plugins.annotations.LifecyclePhase;\nimport... | ().info(String.format("Generating scala %s", type.getName())); | {} | {
"repository": "jcsirot-dagger-java-sdk-366c947",
"file": "dagger-codegen-maven-plugin/src/main/java/org/chelonix/dagger/codegen/DaggerCodegenMojo.java",
"task_id": "project_cc_java/2584"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "dagger-codegen-maven-plugin/src/main/java/org/chelonix/dagger/codegen/DaggerCodegenMojo.java",
"groundtruth_start_lineno": 83,
"repository": "jcsirot-dagger-java-sdk-366c947",
"right_context_start_lineno": 84,
"task_id": "project_cc_java/2584... |
cross_code_eval_java::project_cc_java/2654 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/kasun/discordleaderboards/Database/Cache.java
// if (cache == null) {
// ... | {
"prefix": "package org.kasun.discordleaderboards.Leaderboard;\n\nimport me.clip.placeholderapi.PlaceholderAPI;\nimport org.kasun.discordleaderboards.Utils.TimeUtils;\n\nimport java.math.BigDecimal;\nimport java.math.RoundingMode;\nimport java.util.Comparator;\nimport java.util.List;\nimport java.util.Map;\nimport j... | = "```" + (isForWebhook ? topList.getTopListAsString(true) : topList.getTopListAsString(false)) + "```"; | {} | {
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"file": "src/main/java/org/kasun/discordleaderboards/Leaderboard/DescriptionGenerator.java",
"task_id": "project_cc_java/2654"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/kasun/discordleaderboards/Leaderboard/DescriptionGenerator.java",
"groundtruth_start_lineno": 42,
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"right_context_start_lineno": 43,
"task_id": "project_cc_java/2654"
}
} |
cross_code_eval_java::project_cc_java/2634 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/kasun/discordleaderboards/Leaderboard/DescriptionGenerator.java
// }
// ... | {
"prefix": "package org.kasun.discordleaderboards.Leaderboard;\n\n\nimport org.kasun.discordleaderboards.Utils.SqlUtils;\n\n\nimport java.math.BigDecimal;\nimport java.math.RoundingMode;\nimport java.text.DecimalFormat;\nimport java.util.Map;\n\n\npublic class TopList {\n private final int top;\n private final... | maxNameLength + 3) + "s %d%s\n", i++, name, intValue, leaderboardConfig.getMetric()); | {} | {
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"file": "src/main/java/org/kasun/discordleaderboards/Leaderboard/TopList.java",
"task_id": "project_cc_java/2634"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/kasun/discordleaderboards/Leaderboard/TopList.java",
"groundtruth_start_lineno": 50,
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"right_context_start_lineno": 51,
"task_id": "project_cc_java/2634"
}
} |
cross_code_eval_java::project_cc_java/2655 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/kasun/discordleaderboards/Database/Cache.java
// if (cache == null) {
// ... | {
"prefix": "package org.kasun.discordleaderboards.Leaderboard;\n\nimport me.clip.placeholderapi.PlaceholderAPI;\nimport org.kasun.discordleaderboards.Utils.TimeUtils;\n\nimport java.math.BigDecimal;\nimport java.math.RoundingMode;\nimport java.util.Comparator;\nimport java.util.List;\nimport java.util.Map;\nimport j... | (isForWebhook ? topList.getTopListAsString(true) : topList.getTopListAsString(false)) + "```"; | {} | {
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"file": "src/main/java/org/kasun/discordleaderboards/Leaderboard/DescriptionGenerator.java",
"task_id": "project_cc_java/2655"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/kasun/discordleaderboards/Leaderboard/DescriptionGenerator.java",
"groundtruth_start_lineno": 42,
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"right_context_start_lineno": 43,
"task_id": "project_cc_java/2655"
}
} |
cross_code_eval_java::project_cc_java/2633 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/kasun/discordleaderboards/Leaderboard/DescriptionGenerator.java
// }
// ... | {
"prefix": "package org.kasun.discordleaderboards.Leaderboard;\n\n\nimport org.kasun.discordleaderboards.Utils.SqlUtils;\n\n\nimport java.math.BigDecimal;\nimport java.math.RoundingMode;\nimport java.text.DecimalFormat;\nimport java.util.Map;\n\n\npublic class TopList {\n private final int top;\n private final... | ) + "s %d%s\\u000A", i++, name, intValue, leaderboardConfig.getMetric()); | {} | {
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"file": "src/main/java/org/kasun/discordleaderboards/Leaderboard/TopList.java",
"task_id": "project_cc_java/2633"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/kasun/discordleaderboards/Leaderboard/TopList.java",
"groundtruth_start_lineno": 48,
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"right_context_start_lineno": 49,
"task_id": "project_cc_java/2633"
}
} |
cross_code_eval_java::project_cc_java/2652 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/kasun/discordleaderboards/Leaderboard/TopList.java
// double roundedS... | {
"prefix": "package org.kasun.discordleaderboards.Leaderboard;\n\nimport me.clip.placeholderapi.PlaceholderAPI;\nimport org.kasun.discordleaderboards.Utils.TimeUtils;\n\nimport java.math.BigDecimal;\nimport java.math.RoundingMode;\nimport java.util.Comparator;\nimport java.util.List;\nimport java.util.Map;\nimport j... | if (leaderboard.getConfig().getFloatingpoints() > 0){ | {} | {
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"file": "src/main/java/org/kasun/discordleaderboards/Leaderboard/DescriptionGenerator.java",
"task_id": "project_cc_java/2652"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/kasun/discordleaderboards/Leaderboard/DescriptionGenerator.java",
"groundtruth_start_lineno": 74,
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"right_context_start_lineno": 75,
"task_id": "project_cc_java/2652"
}
} |
cross_code_eval_java::project_cc_java/2656 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/kasun/discordleaderboards/Leaderboard/LeaderboardConfig.java
// this.leaderbo... | {
"prefix": "package org.kasun.discordleaderboards.Leaderboard;\n\nimport me.clip.placeholderapi.PlaceholderAPI;\nimport org.kasun.discordleaderboards.Utils.TimeUtils;\n\nimport java.math.BigDecimal;\nimport java.math.RoundingMode;\nimport java.util.Comparator;\nimport java.util.List;\nimport java.util.Map;\nimport j... | , Double> playerScores = topList.getTopListAsMap(); | {} | {
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"file": "src/main/java/org/kasun/discordleaderboards/Leaderboard/DescriptionGenerator.java",
"task_id": "project_cc_java/2656"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/kasun/discordleaderboards/Leaderboard/DescriptionGenerator.java",
"groundtruth_start_lineno": 50,
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"right_context_start_lineno": 51,
"task_id": "project_cc_java/2656"
}
} |
cross_code_eval_java::project_cc_java/2668 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/kasun/discordleaderboards/Utils/DiscordWebhook.java
// }
// public Em... | {
"prefix": "package org.kasun.discordleaderboards.Leaderboard;\n\nimport org.bukkit.configuration.file.FileConfiguration;\nimport org.kasun.discordleaderboards.Configs.MainConfig;\nimport org.kasun.discordleaderboards.DiscordLeaderboards;\nimport org.kasun.discordleaderboards.Configs.CustomConfig;\n\n\nimport java.u... | this.leaderboardversion = mainConfig.getPluginVersion(); | {} | {
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"file": "src/main/java/org/kasun/discordleaderboards/Leaderboard/LeaderboardConfig.java",
"task_id": "project_cc_java/2668"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/kasun/discordleaderboards/Leaderboard/LeaderboardConfig.java",
"groundtruth_start_lineno": 67,
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"right_context_start_lineno": 68,
"task_id": "project_cc_java/2668"
}
} |
cross_code_eval_java::project_cc_java/2670 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/kasun/discordleaderboards/Leaderboard/Leaderboard.java
// }
// //constructer ... | {
"prefix": "package org.kasun.discordleaderboards.Leaderboard;\n\nimport org.bukkit.configuration.file.FileConfiguration;\nimport org.kasun.discordleaderboards.Configs.MainConfig;\nimport org.kasun.discordleaderboards.DiscordLeaderboards;\nimport org.kasun.discordleaderboards.Configs.CustomConfig;\n\n\nimport java.u... | = customConfig.get(); | {} | {
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"file": "src/main/java/org/kasun/discordleaderboards/Leaderboard/LeaderboardConfig.java",
"task_id": "project_cc_java/2670"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/kasun/discordleaderboards/Leaderboard/LeaderboardConfig.java",
"groundtruth_start_lineno": 40,
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"right_context_start_lineno": 41,
"task_id": "project_cc_java/2670"
}
} |
cross_code_eval_java::project_cc_java/2671 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/kasun/discordleaderboards/Utils/DiscordWebhook.java
// }
// public Em... | {
"prefix": "package org.kasun.discordleaderboards.Leaderboard;\n\nimport org.bukkit.configuration.file.FileConfiguration;\nimport org.kasun.discordleaderboards.Configs.MainConfig;\nimport org.kasun.discordleaderboards.DiscordLeaderboards;\nimport org.kasun.discordleaderboards.Configs.CustomConfig;\n\n\nimport java.u... | customConfig.setup(); | {} | {
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"file": "src/main/java/org/kasun/discordleaderboards/Leaderboard/LeaderboardConfig.java",
"task_id": "project_cc_java/2671"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/kasun/discordleaderboards/Leaderboard/LeaderboardConfig.java",
"groundtruth_start_lineno": 70,
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"right_context_start_lineno": 71,
"task_id": "project_cc_java/2671"
}
} |
cross_code_eval_java::project_cc_java/2700 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/kasun/discordleaderboards/Leaderboard/DescriptionGenerator.java
// de... | {
"prefix": "package org.kasun.discordleaderboards.Schedules;\n\nimport org.kasun.discordleaderboards.Database.Cache;\nimport org.kasun.discordleaderboards.Leaderboard.Leaderboard;\nimport org.kasun.discordleaderboards.Utils.SqlUtils;\nimport org.kasun.discordleaderboards.Utils.TimeUtils;\n\nimport java.sql.Timestamp... | if (cache.isDiffernt()){ | {} | {
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"file": "src/main/java/org/kasun/discordleaderboards/Schedules/Schedule.java",
"task_id": "project_cc_java/2700"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/kasun/discordleaderboards/Schedules/Schedule.java",
"groundtruth_start_lineno": 34,
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"right_context_start_lineno": 35,
"task_id": "project_cc_java/2700"
}
} |
cross_code_eval_java::project_cc_java/2525 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// it.tests/src/main/java/work/noice/it/tests/PublishPageValidationIT.java
// if (isSameOrigin... | {
"prefix": "package work.noice.core.servlets;\n\nimport com.fasterxml.jackson.databind.ObjectMapper;\nimport com.google.gson.Gson;\nimport com.google.gson.JsonObject;\nimport org.apache.commons.io.IOUtils;\nimport org.apache.commons.lang3.StringUtils;\nimport org.apache.commons.text.StringEscapeUtils;\nimport org.ap... | content = jsonData.getDataAttributes().get("content"); | {} | {
"repository": "jaketracey-opax-44a71f1",
"file": "core/src/main/java/work/noice/core/servlets/OpaxServlet.java",
"task_id": "project_cc_java/2525"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "core/src/main/java/work/noice/core/servlets/OpaxServlet.java",
"groundtruth_start_lineno": 132,
"repository": "jaketracey-opax-44a71f1",
"right_context_start_lineno": 133,
"task_id": "project_cc_java/2525"
}
} |
cross_code_eval_java::project_cc_java/2685 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/kasun/discordleaderboards/Leaderboard/DescriptionGenerator.java
// topList = ... | {
"prefix": "package org.kasun.discordleaderboards.DiscordSRV;\nimport org.kasun.discordleaderboards.Configs.MainConfig;\nimport org.kasun.discordleaderboards.Leaderboard.DescriptionGenerator;\nimport org.kasun.discordleaderboards.Leaderboard.Leaderboard;\nimport org.kasun.discordleaderboards.Leaderboard.TopList;\n\n... | (descriptionGenerator.getDescription(false)); | {} | {
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"file": "src/main/java/org/kasun/discordleaderboards/DiscordSRV/LeaderboardDiscordSrvEmbed.java",
"task_id": "project_cc_java/2685"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/kasun/discordleaderboards/DiscordSRV/LeaderboardDiscordSrvEmbed.java",
"groundtruth_start_lineno": 38,
"repository": "ka0un-DiscordLeaderboards-ffaaf38",
"right_context_start_lineno": 39,
"task_id": "project_cc_java/2685"
... |
cross_code_eval_java::project_cc_java/2541 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// core/src/main/java/work/noice/core/beans/Data.java
// }
// public void setDataAttributes(Map<St... | {
"prefix": "package work.noice.core.servlets;\n\nimport com.fasterxml.jackson.databind.ObjectMapper;\nimport com.google.gson.Gson;\nimport com.google.gson.JsonObject;\nimport org.apache.commons.io.IOUtils;\nimport org.apache.commons.lang3.StringUtils;\nimport org.apache.commons.text.StringEscapeUtils;\nimport org.ap... | companyProductName = jsonData.getDataAttributes().get("companyProductName"); | {} | {
"repository": "jaketracey-opax-44a71f1",
"file": "core/src/main/java/work/noice/core/servlets/OpaxServlet.java",
"task_id": "project_cc_java/2541"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "core/src/main/java/work/noice/core/servlets/OpaxServlet.java",
"groundtruth_start_lineno": 148,
"repository": "jaketracey-opax-44a71f1",
"right_context_start_lineno": 149,
"task_id": "project_cc_java/2541"
}
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.