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/3072 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// m3color/src/main/java/com/kyant/m3color/utils/MathUtils.java
// } else {
// return 1;
// ... | {
"prefix": "/*\n * Copyright 2023 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by ap... | MathUtils.lerp(this.low, this.normal, (contrastLevel - -1) / 1); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/dynamiccolor/ContrastCurve.java",
"task_id": "project_cc_java/3072"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/dynamiccolor/ContrastCurve.java",
"groundtruth_start_lineno": 67,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 68,
"task_id": "project_cc_java/3072"
}
} |
cross_code_eval_java::project_cc_java/3075 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// m3color/src/main/java/com/kyant/m3color/quantize/PointProvider.java
// /** The ARGB (i.e. hex code) r... | {
"prefix": "/*\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by ap... | (CorePalette.of(argb)); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/scheme/Scheme.java",
"task_id": "project_cc_java/3075"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/scheme/Scheme.java",
"groundtruth_start_lineno": 123,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 124,
"task_id": "project_cc_java/3075"
}
} |
cross_code_eval_java::project_cc_java/3073 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// m3color/src/main/java/com/kyant/m3color/utils/MathUtils.java
// } else {
// return 1;
// ... | {
"prefix": "/*\n * Copyright 2023 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by ap... | MathUtils.lerp(this.normal, this.medium, (contrastLevel - 0) / 0.5); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/dynamiccolor/ContrastCurve.java",
"task_id": "project_cc_java/3073"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/dynamiccolor/ContrastCurve.java",
"groundtruth_start_lineno": 69,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 70,
"task_id": "project_cc_java/3073"
}
} |
cross_code_eval_java::project_cc_java/3074 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// m3color/src/main/java/com/kyant/m3color/scheme/SchemeFruitSalad.java
// MathUtils.sanitizeD... | {
"prefix": "/*\n * Copyright 2023 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by ap... | MathUtils.lerp(this.medium, this.high, (contrastLevel - 0.5) / 0.5); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/dynamiccolor/ContrastCurve.java",
"task_id": "project_cc_java/3074"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/dynamiccolor/ContrastCurve.java",
"groundtruth_start_lineno": 71,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 72,
"task_id": "project_cc_java/3074"
}
} |
cross_code_eval_java::project_cc_java/3077 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// m3color/src/main/java/com/kyant/m3color/palettes/CorePalette.java
// *
// * @param argb ARGB repr... | {
"prefix": "/*\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by ap... | lightFromCorePalette(CorePalette.contentOf(argb)); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/scheme/Scheme.java",
"task_id": "project_cc_java/3077"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/scheme/Scheme.java",
"groundtruth_start_lineno": 133,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 134,
"task_id": "project_cc_java/3077"
}
} |
cross_code_eval_java::project_cc_java/3068 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// m3color/src/main/java/com/kyant/m3color/hct/Cam16.java
// * Create a CAM16 color from a color in def... | {
"prefix": "/*\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by ap... | ColorUtils.yFromLstar(50.0) / 100.f),
lstar,
2.0,
false); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/hct/ViewingConditions.java",
"task_id": "project_cc_java/3068"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/hct/ViewingConditions.java",
"groundtruth_start_lineno": 170,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 174,
"task_id": "project_cc_java/3068"
}
} |
cross_code_eval_java::project_cc_java/3084 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// m3color/src/main/java/com/kyant/m3color/temperature/TemperatureCache.java
// }
// if (index... | {
"prefix": "/*\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by ap... | pointProvider.toInt(clusters[i]); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/quantize/QuantizerWsmeans.java",
"task_id": "project_cc_java/3084"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/quantize/QuantizerWsmeans.java",
"groundtruth_start_lineno": 222,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 223,
"task_id": "project_cc_java/3084"
}
} |
cross_code_eval_java::project_cc_java/3081 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// m3color/src/main/java/com/kyant/m3color/quantize/QuantizerWu.java
// temp = volumeVariance[j]... | {
"prefix": "/*\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by ap... | distance = pointProvider.distance(clusters[i], clusters[j]); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/quantize/QuantizerWsmeans.java",
"task_id": "project_cc_java/3081"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/quantize/QuantizerWsmeans.java",
"groundtruth_start_lineno": 141,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 142,
"task_id": "project_cc_java/3081"
}
} |
cross_code_eval_java::project_cc_java/3079 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// m3color/src/main/java/com/kyant/m3color/scheme/DynamicScheme.java
// }
// // If this statement ... | {
"prefix": "/*\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by ap... | pointProvider.fromInt(inputPixel); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/quantize/QuantizerWsmeans.java",
"task_id": "project_cc_java/3079"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/quantize/QuantizerWsmeans.java",
"groundtruth_start_lineno": 85,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 86,
"task_id": "project_cc_java/3079"
}
} |
cross_code_eval_java::project_cc_java/3114 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// m3color/src/main/java/com/kyant/m3color/dynamiccolor/MaterialDynamicColors.java
// }
// ... | {
"prefix": "/*\n * Copyright 2022 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by ap... | (Contrast.ratioOfTones(49, bgTone) >= desiredRatio) { | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/dynamiccolor/DynamicColor.java",
"task_id": "project_cc_java/3114"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/dynamiccolor/DynamicColor.java",
"groundtruth_start_lineno": 433,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 434,
"task_id": "project_cc_java/3114"
}
} |
cross_code_eval_java::project_cc_java/3115 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// m3color/src/main/java/com/kyant/m3color/dynamiccolor/MaterialDynamicColors.java
// if (closestToChr... | {
"prefix": "/*\n * Copyright 2022 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by ap... | if (Contrast.ratioOfTones(upper, answer) >= desiredRatio
&& Contrast.ratioOfTones(lower, answer) >= desiredRatio) { | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/dynamiccolor/DynamicColor.java",
"task_id": "project_cc_java/3115"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/dynamiccolor/DynamicColor.java",
"groundtruth_start_lineno": 449,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 451,
"task_id": "project_cc_java/3115"
}
} |
cross_code_eval_java::project_cc_java/3117 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// m3color/src/main/java/com/kyant/m3color/contrast/Contrast.java
// * @param tone Tone return value mu... | {
"prefix": "/*\n * Copyright 2022 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by ap... | = Contrast.lighter(upper, desiredRatio); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/dynamiccolor/DynamicColor.java",
"task_id": "project_cc_java/3117"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/dynamiccolor/DynamicColor.java",
"groundtruth_start_lineno": 456,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 457,
"task_id": "project_cc_java/3117"
}
} |
cross_code_eval_java::project_cc_java/3105 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// m3color/src/main/java/com/kyant/m3color/quantize/QuantizerMap.java
// return new QuantizerResult(pi... | {
"prefix": "/*\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by ap... | ().quantize(pixels, colorCount); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/quantize/QuantizerWu.java",
"task_id": "project_cc_java/3105"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/quantize/QuantizerWu.java",
"groundtruth_start_lineno": 49,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 50,
"task_id": "project_cc_java/3105"
}
} |
cross_code_eval_java::project_cc_java/3083 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// m3color/src/main/java/com/kyant/m3color/quantize/QuantizerWu.java
// temp = volumeVariance[j]... | {
"prefix": "/*\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by ap... | pointProvider.distance(point, clusters[j]); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/quantize/QuantizerWsmeans.java",
"task_id": "project_cc_java/3083"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/quantize/QuantizerWsmeans.java",
"groundtruth_start_lineno": 166,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 167,
"task_id": "project_cc_java/3083"
}
} |
cross_code_eval_java::project_cc_java/3102 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// m3color/src/main/java/com/kyant/m3color/quantize/QuantizerMap.java
// return new QuantizerResult(pi... | {
"prefix": "/*\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by ap... | red = ColorUtils.redFromArgb(pixel); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/quantize/QuantizerWu.java",
"task_id": "project_cc_java/3102"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/quantize/QuantizerWu.java",
"groundtruth_start_lineno": 75,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 76,
"task_id": "project_cc_java/3102"
}
} |
cross_code_eval_java::project_cc_java/3082 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// m3color/src/main/java/com/kyant/m3color/quantize/QuantizerWu.java
// temp = volumeVariance[j]... | {
"prefix": "/*\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by ap... | previousDistance = pointProvider.distance(point, previousCluster); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/quantize/QuantizerWsmeans.java",
"task_id": "project_cc_java/3082"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/quantize/QuantizerWsmeans.java",
"groundtruth_start_lineno": 158,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 159,
"task_id": "project_cc_java/3082"
}
} |
cross_code_eval_java::project_cc_java/3119 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// m3color/src/main/java/com/kyant/m3color/palettes/TonalPalette.java
// * @return Tones matching that ... | {
"prefix": "/*\n * Copyright 2022 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by ap... | ) -> palette, (s) -> hct.getTone()); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/dynamiccolor/DynamicColor.java",
"task_id": "project_cc_java/3119"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/dynamiccolor/DynamicColor.java",
"groundtruth_start_lineno": 263,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 264,
"task_id": "project_cc_java/3119"
}
} |
cross_code_eval_java::project_cc_java/3193 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/am/ik/webhook/HmacWebhookSigner.java
// }
// this.algorithmName = algorithmName.toLow... | {
"prefix": "package am.ik.webhook;\n\nimport java.nio.charset.StandardCharsets;\nimport java.util.function.Supplier;\nimport java.util.logging.Logger;\n\nimport am.ik.webhook.WebhookSigner.Encoder;\n\npublic final class WebhookVerifier {\n\n\tprivate final Logger log = Logger.getLogger(WebhookVerifier.class.getName(... | WebhookVerifier(WebhookSigner.hmacSha1(secret), Encoder.HEX); | {} | {
"repository": "making-webhook-verifier-edb251a",
"file": "src/main/java/am/ik/webhook/WebhookVerifier.java",
"task_id": "project_cc_java/3193"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/am/ik/webhook/WebhookVerifier.java",
"groundtruth_start_lineno": 48,
"repository": "making-webhook-verifier-edb251a",
"right_context_start_lineno": 49,
"task_id": "project_cc_java/3193"
}
} |
cross_code_eval_java::project_cc_java/3089 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// m3color/src/main/java/com/kyant/m3color/utils/ColorUtils.java
// return MathUtils.clampInt(0, 255, ... | {
"prefix": "/*\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by ap... | return MathUtils.signum(component) * 400.0 * af / (af + 27.13); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/hct/HctSolver.java",
"task_id": "project_cc_java/3089"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/hct/HctSolver.java",
"groundtruth_start_lineno": 343,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 344,
"task_id": "project_cc_java/3089"
}
} |
cross_code_eval_java::project_cc_java/3112 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// m3color/src/main/java/com/kyant/m3color/dynamiccolor/MaterialDynamicColors.java
// /* isBac... | {
"prefix": "/*\n * Copyright 2022 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by ap... | Contrast.ratioOfTones(bgTone, fInitialTone) >= fContrast
? fInitialTone
: DynamicColor.foregroundTone(bgTone, fContrast); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/dynamiccolor/DynamicColor.java",
"task_id": "project_cc_java/3112"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/dynamiccolor/DynamicColor.java",
"groundtruth_start_lineno": 352,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 355,
"task_id": "project_cc_java/3112"
}
} |
cross_code_eval_java::project_cc_java/3172 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/in/limebrew/xpenseservice/controller/DashboardController.java
// return Respo... | {
"prefix": "package in.limebrew.xpenseservice.controller;\n\nimport com.google.firebase.auth.FirebaseAuthException;\nimport com.google.firebase.auth.FirebaseToken;\nimport in.limebrew.xpenseservice.entity.Transaction;\nimport in.limebrew.xpenseservice.service.FirebaseAuthService;\nimport in.limebrew.xpenseservice.se... | ResponseUtil.errorNotFound(); | {} | {
"repository": "limebrew-org-xpense-service-54b5f64",
"file": "src/main/java/in/limebrew/xpenseservice/controller/TransactionController.java",
"task_id": "project_cc_java/3172"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/in/limebrew/xpenseservice/controller/TransactionController.java",
"groundtruth_start_lineno": 60,
"repository": "limebrew-org-xpense-service-54b5f64",
"right_context_start_lineno": 61,
"task_id": "project_cc_java/3172"
}
} |
cross_code_eval_java::project_cc_java/3111 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// m3color/src/main/java/com/kyant/m3color/dynamiccolor/ContrastCurve.java
// } else if (contrastLevel... | {
"prefix": "/*\n * Copyright 2022 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by ap... | Contrast.ratioOfTones(bgTone, nInitialTone) >= nContrast
? nInitialTone
: DynamicColor.foregroundTone(bgTone, nContrast); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/dynamiccolor/DynamicColor.java",
"task_id": "project_cc_java/3111"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/dynamiccolor/DynamicColor.java",
"groundtruth_start_lineno": 345,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 348,
"task_id": "project_cc_java/3111"
}
} |
cross_code_eval_java::project_cc_java/3157 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/in/limebrew/xpenseservice/controller/TransactionController.java
// cr... | {
"prefix": "package in.limebrew.xpenseservice.controller;\n\nimport com.google.firebase.auth.FirebaseAuthException;\nimport com.google.firebase.auth.FirebaseToken;\nimport in.limebrew.xpenseservice.service.DashboardService;\nimport in.limebrew.xpenseservice.service.FirebaseAuthService;\nimport in.limebrew.xpenseserv... | ResponseUtil.handleDashboardInfo(dashboardInfo); | {} | {
"repository": "limebrew-org-xpense-service-54b5f64",
"file": "src/main/java/in/limebrew/xpenseservice/controller/DashboardController.java",
"task_id": "project_cc_java/3157"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/in/limebrew/xpenseservice/controller/DashboardController.java",
"groundtruth_start_lineno": 48,
"repository": "limebrew-org-xpense-service-54b5f64",
"right_context_start_lineno": 49,
"task_id": "project_cc_java/3157"
}
} |
cross_code_eval_java::project_cc_java/3165 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/in/limebrew/xpenseservice/query/TransactionQueryBuilder.java
// }
// //? ... | {
"prefix": "package in.limebrew.xpenseservice.service.impl;\n\nimport com.google.cloud.firestore.*;\n\nimport com.google.common.util.concurrent.AtomicDouble;\nimport in.limebrew.xpenseservice.entity.Transaction;\nimport in.limebrew.xpenseservice.service.DashboardService;\nimport in.limebrew.xpenseservice.utils.DateU... | if(TransactionUtil.isValidYear(creationYear)){ | {} | {
"repository": "limebrew-org-xpense-service-54b5f64",
"file": "src/main/java/in/limebrew/xpenseservice/service/impl/DashboardServiceImpl.java",
"task_id": "project_cc_java/3165"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/in/limebrew/xpenseservice/service/impl/DashboardServiceImpl.java",
"groundtruth_start_lineno": 49,
"repository": "limebrew-org-xpense-service-54b5f64",
"right_context_start_lineno": 50,
"task_id": "project_cc_java/3165"
}
} |
cross_code_eval_java::project_cc_java/3104 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// m3color/src/main/java/com/kyant/m3color/quantize/QuantizerMap.java
// return new QuantizerResult(pi... | {
"prefix": "/*\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by ap... | ColorUtils.blueFromArgb(pixel); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/quantize/QuantizerWu.java",
"task_id": "project_cc_java/3104"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/quantize/QuantizerWu.java",
"groundtruth_start_lineno": 77,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 78,
"task_id": "project_cc_java/3104"
}
} |
cross_code_eval_java::project_cc_java/3113 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// m3color/src/main/java/com/kyant/m3color/scheme/Scheme.java
// return false;
// }
// if (s... | {
"prefix": "/*\n * Copyright 2022 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by ap... | Contrast.ratioOfTones(bgTone, answer) >= desiredRatio) { | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/dynamiccolor/DynamicColor.java",
"task_id": "project_cc_java/3113"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/dynamiccolor/DynamicColor.java",
"groundtruth_start_lineno": 420,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 421,
"task_id": "project_cc_java/3113"
}
} |
cross_code_eval_java::project_cc_java/3161 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/in/limebrew/xpenseservice/service/impl/TransactionServiceImpl.java
// .or... | {
"prefix": "package in.limebrew.xpenseservice.service.impl;\n\nimport com.google.cloud.firestore.*;\n\nimport com.google.common.util.concurrent.AtomicDouble;\nimport in.limebrew.xpenseservice.entity.Transaction;\nimport in.limebrew.xpenseservice.service.DashboardService;\nimport in.limebrew.xpenseservice.utils.DateU... | = DateUtil.getUnixTimeFromDate(startDate); | {} | {
"repository": "limebrew-org-xpense-service-54b5f64",
"file": "src/main/java/in/limebrew/xpenseservice/service/impl/DashboardServiceImpl.java",
"task_id": "project_cc_java/3161"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/in/limebrew/xpenseservice/service/impl/DashboardServiceImpl.java",
"groundtruth_start_lineno": 75,
"repository": "limebrew-org-xpense-service-54b5f64",
"right_context_start_lineno": 76,
"task_id": "project_cc_java/3161"
}
} |
cross_code_eval_java::project_cc_java/3090 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// m3color/src/main/java/com/kyant/m3color/utils/ColorUtils.java
// public static int redFromArgb(int ar... | {
"prefix": "/*\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by ap... | MathUtils.matrixMultiply(linrgb, SCALED_DISCOUNT_FROM_LINRGB); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/hct/HctSolver.java",
"task_id": "project_cc_java/3090"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/hct/HctSolver.java",
"groundtruth_start_lineno": 353,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 354,
"task_id": "project_cc_java/3090"
}
} |
cross_code_eval_java::project_cc_java/3142 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/in/limebrew/xpenseservice/service/impl/DashboardServiceImpl.java
// //? Check if ... | {
"prefix": "package in.limebrew.xpenseservice.query;\n\nimport com.google.cloud.firestore.Query;\nimport in.limebrew.xpenseservice.utils.DateUtil;\nimport in.limebrew.xpenseservice.utils.TransactionUtil;\n\nimport java.text.ParseException;\nimport java.util.Arrays;\n\n\npublic class TransactionQueryBuilder {\n pu... | DateUtil.isValidDate(startDate) && DateUtil.isValidDate(endDate)) { | {} | {
"repository": "limebrew-org-xpense-service-54b5f64",
"file": "src/main/java/in/limebrew/xpenseservice/query/TransactionQueryBuilder.java",
"task_id": "project_cc_java/3142"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/in/limebrew/xpenseservice/query/TransactionQueryBuilder.java",
"groundtruth_start_lineno": 46,
"repository": "limebrew-org-xpense-service-54b5f64",
"right_context_start_lineno": 47,
"task_id": "project_cc_java/3142"
}
} |
cross_code_eval_java::project_cc_java/3120 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// m3color/src/main/java/com/kyant/m3color/scheme/SchemeFidelity.java
// public class SchemeFidelity exten... | {
"prefix": "/*\n * Copyright 2022 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by ap... | alpha = MathUtils.clampInt(0, 255, (int) Math.round(percentage * 255)); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/dynamiccolor/DynamicColor.java",
"task_id": "project_cc_java/3120"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/dynamiccolor/DynamicColor.java",
"groundtruth_start_lineno": 278,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 279,
"task_id": "project_cc_java/3120"
}
} |
cross_code_eval_java::project_cc_java/3149 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/in/limebrew/xpenseservice/service/impl/TransactionServiceImpl.java
// //? Query i... | {
"prefix": "package in.limebrew.xpenseservice.query;\n\nimport com.google.cloud.firestore.Query;\nimport in.limebrew.xpenseservice.utils.DateUtil;\nimport in.limebrew.xpenseservice.utils.TransactionUtil;\n\nimport java.text.ParseException;\nimport java.util.Arrays;\n\n\npublic class TransactionQueryBuilder {\n pu... | (TransactionUtil.idValidAmount(amount)) { | {} | {
"repository": "limebrew-org-xpense-service-54b5f64",
"file": "src/main/java/in/limebrew/xpenseservice/query/TransactionQueryBuilder.java",
"task_id": "project_cc_java/3149"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/in/limebrew/xpenseservice/query/TransactionQueryBuilder.java",
"groundtruth_start_lineno": 61,
"repository": "limebrew-org-xpense-service-54b5f64",
"right_context_start_lineno": 62,
"task_id": "project_cc_java/3149"
}
} |
cross_code_eval_java::project_cc_java/3121 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// m3color/src/main/java/com/kyant/m3color/palettes/TonalPalette.java
// final Hct hctAdd = Hct.from... | {
"prefix": "/*\n * Copyright 2022 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by ap... | fTone = MathUtils.clampDouble(0, 100, nTone + delta * expansionDir); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/dynamiccolor/DynamicColor.java",
"task_id": "project_cc_java/3121"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/dynamiccolor/DynamicColor.java",
"groundtruth_start_lineno": 366,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 367,
"task_id": "project_cc_java/3121"
}
} |
cross_code_eval_java::project_cc_java/3143 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/in/limebrew/xpenseservice/controller/DashboardController.java
// //? Return t... | {
"prefix": "package in.limebrew.xpenseservice.query;\n\nimport com.google.cloud.firestore.Query;\nimport in.limebrew.xpenseservice.utils.DateUtil;\nimport in.limebrew.xpenseservice.utils.TransactionUtil;\n\nimport java.text.ParseException;\nimport java.util.Arrays;\n\n\npublic class TransactionQueryBuilder {\n pu... | .isValidDate(startDate) && DateUtil.isValidDate(endDate)) { | {} | {
"repository": "limebrew-org-xpense-service-54b5f64",
"file": "src/main/java/in/limebrew/xpenseservice/query/TransactionQueryBuilder.java",
"task_id": "project_cc_java/3143"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/in/limebrew/xpenseservice/query/TransactionQueryBuilder.java",
"groundtruth_start_lineno": 46,
"repository": "limebrew-org-xpense-service-54b5f64",
"right_context_start_lineno": 47,
"task_id": "project_cc_java/3143"
}
} |
cross_code_eval_java::project_cc_java/3122 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// m3color/src/main/java/com/kyant/m3color/palettes/TonalPalette.java
// final Hct hctAdd = Hct.from... | {
"prefix": "/*\n * Copyright 2022 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by ap... | MathUtils.clampDouble(0, 100, fTone - delta * expansionDir); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/dynamiccolor/DynamicColor.java",
"task_id": "project_cc_java/3122"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/dynamiccolor/DynamicColor.java",
"groundtruth_start_lineno": 370,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 371,
"task_id": "project_cc_java/3122"
}
} |
cross_code_eval_java::project_cc_java/3155 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/in/limebrew/xpenseservice/controller/TransactionController.java
// String tok... | {
"prefix": "package in.limebrew.xpenseservice.controller;\n\nimport com.google.firebase.auth.FirebaseAuthException;\nimport com.google.firebase.auth.FirebaseToken;\nimport in.limebrew.xpenseservice.service.DashboardService;\nimport in.limebrew.xpenseservice.service.FirebaseAuthService;\nimport in.limebrew.xpenseserv... | (!DateUtil.isValidDate(startDate) || !DateUtil.isValidDate(endDate)){ | {} | {
"repository": "limebrew-org-xpense-service-54b5f64",
"file": "src/main/java/in/limebrew/xpenseservice/controller/DashboardController.java",
"task_id": "project_cc_java/3155"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/in/limebrew/xpenseservice/controller/DashboardController.java",
"groundtruth_start_lineno": 70,
"repository": "limebrew-org-xpense-service-54b5f64",
"right_context_start_lineno": 71,
"task_id": "project_cc_java/3155"
}
} |
cross_code_eval_java::project_cc_java/3123 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// m3color/src/main/java/com/kyant/m3color/palettes/TonalPalette.java
// * @return Tones matching that ... | {
"prefix": "/*\n * Copyright 2022 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by ap... | TonalPalette.fromInt(argb); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/dynamiccolor/DynamicColor.java",
"task_id": "project_cc_java/3123"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/dynamiccolor/DynamicColor.java",
"groundtruth_start_lineno": 262,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 263,
"task_id": "project_cc_java/3123"
}
} |
cross_code_eval_java::project_cc_java/3144 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/in/limebrew/xpenseservice/controller/DashboardController.java
// //? Return t... | {
"prefix": "package in.limebrew.xpenseservice.query;\n\nimport com.google.cloud.firestore.Query;\nimport in.limebrew.xpenseservice.utils.DateUtil;\nimport in.limebrew.xpenseservice.utils.TransactionUtil;\n\nimport java.text.ParseException;\nimport java.util.Arrays;\n\n\npublic class TransactionQueryBuilder {\n pu... | whereGreaterThan("creationTimeStamp", DateUtil.getUnixTimeFromDate(startDate))
.whereLessThan("creationTimeStamp", DateUtil.getUnixTimeFromDate(endDate)); | {} | {
"repository": "limebrew-org-xpense-service-54b5f64",
"file": "src/main/java/in/limebrew/xpenseservice/query/TransactionQueryBuilder.java",
"task_id": "project_cc_java/3144"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/in/limebrew/xpenseservice/query/TransactionQueryBuilder.java",
"groundtruth_start_lineno": 47,
"repository": "limebrew-org-xpense-service-54b5f64",
"right_context_start_lineno": 49,
"task_id": "project_cc_java/3144"
}
} |
cross_code_eval_java::project_cc_java/3164 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/in/limebrew/xpenseservice/service/impl/TransactionServiceImpl.java
// //? Query i... | {
"prefix": "package in.limebrew.xpenseservice.service.impl;\n\nimport com.google.cloud.firestore.*;\n\nimport com.google.common.util.concurrent.AtomicDouble;\nimport in.limebrew.xpenseservice.entity.Transaction;\nimport in.limebrew.xpenseservice.service.DashboardService;\nimport in.limebrew.xpenseservice.utils.DateU... | && TransactionUtil.isValidYear(creationYear)) { | {} | {
"repository": "limebrew-org-xpense-service-54b5f64",
"file": "src/main/java/in/limebrew/xpenseservice/service/impl/DashboardServiceImpl.java",
"task_id": "project_cc_java/3164"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/in/limebrew/xpenseservice/service/impl/DashboardServiceImpl.java",
"groundtruth_start_lineno": 40,
"repository": "limebrew-org-xpense-service-54b5f64",
"right_context_start_lineno": 41,
"task_id": "project_cc_java/3164"
}
} |
cross_code_eval_java::project_cc_java/3171 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/in/limebrew/xpenseservice/controller/DashboardController.java
// //? Verify t... | {
"prefix": "package in.limebrew.xpenseservice.controller;\n\nimport com.google.firebase.auth.FirebaseAuthException;\nimport com.google.firebase.auth.FirebaseToken;\nimport in.limebrew.xpenseservice.entity.Transaction;\nimport in.limebrew.xpenseservice.service.FirebaseAuthService;\nimport in.limebrew.xpenseservice.se... | ResponseUtil.errorLimitExceeded(); | {} | {
"repository": "limebrew-org-xpense-service-54b5f64",
"file": "src/main/java/in/limebrew/xpenseservice/controller/TransactionController.java",
"task_id": "project_cc_java/3171"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/in/limebrew/xpenseservice/controller/TransactionController.java",
"groundtruth_start_lineno": 44,
"repository": "limebrew-org-xpense-service-54b5f64",
"right_context_start_lineno": 45,
"task_id": "project_cc_java/3171"
}
} |
cross_code_eval_java::project_cc_java/3152 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/in/limebrew/xpenseservice/service/impl/DashboardServiceImpl.java
// }
// ... | {
"prefix": "package in.limebrew.xpenseservice.query;\n\nimport com.google.cloud.firestore.Query;\nimport in.limebrew.xpenseservice.utils.DateUtil;\nimport in.limebrew.xpenseservice.utils.TransactionUtil;\n\nimport java.text.ParseException;\nimport java.util.Arrays;\n\n\npublic class TransactionQueryBuilder {\n pu... | (TransactionUtil.idValidAmount(transactionAmount)) { | {} | {
"repository": "limebrew-org-xpense-service-54b5f64",
"file": "src/main/java/in/limebrew/xpenseservice/query/TransactionQueryBuilder.java",
"task_id": "project_cc_java/3152"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/in/limebrew/xpenseservice/query/TransactionQueryBuilder.java",
"groundtruth_start_lineno": 98,
"repository": "limebrew-org-xpense-service-54b5f64",
"right_context_start_lineno": 99,
"task_id": "project_cc_java/3152"
}
} |
cross_code_eval_java::project_cc_java/3156 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/in/limebrew/xpenseservice/controller/TransactionController.java
// String tok... | {
"prefix": "package in.limebrew.xpenseservice.controller;\n\nimport com.google.firebase.auth.FirebaseAuthException;\nimport com.google.firebase.auth.FirebaseToken;\nimport in.limebrew.xpenseservice.service.DashboardService;\nimport in.limebrew.xpenseservice.service.FirebaseAuthService;\nimport in.limebrew.xpenseserv... | DateUtil.isValidDate(endDate)){ | {} | {
"repository": "limebrew-org-xpense-service-54b5f64",
"file": "src/main/java/in/limebrew/xpenseservice/controller/DashboardController.java",
"task_id": "project_cc_java/3156"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/in/limebrew/xpenseservice/controller/DashboardController.java",
"groundtruth_start_lineno": 70,
"repository": "limebrew-org-xpense-service-54b5f64",
"right_context_start_lineno": 71,
"task_id": "project_cc_java/3156"
}
} |
cross_code_eval_java::project_cc_java/3158 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/in/limebrew/xpenseservice/controller/TransactionController.java
// cr... | {
"prefix": "package in.limebrew.xpenseservice.controller;\n\nimport com.google.firebase.auth.FirebaseAuthException;\nimport com.google.firebase.auth.FirebaseToken;\nimport in.limebrew.xpenseservice.service.DashboardService;\nimport in.limebrew.xpenseservice.service.FirebaseAuthService;\nimport in.limebrew.xpenseserv... | ResponseUtil.errorParsingEntity("Required Date must be passed in query and should be in dd-MM-yyyy format"); | {} | {
"repository": "limebrew-org-xpense-service-54b5f64",
"file": "src/main/java/in/limebrew/xpenseservice/controller/DashboardController.java",
"task_id": "project_cc_java/3158"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/in/limebrew/xpenseservice/controller/DashboardController.java",
"groundtruth_start_lineno": 71,
"repository": "limebrew-org-xpense-service-54b5f64",
"right_context_start_lineno": 72,
"task_id": "project_cc_java/3158"
}
} |
cross_code_eval_java::project_cc_java/3178 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/in/limebrew/xpenseservice/controller/DashboardController.java
// //? Return t... | {
"prefix": "package in.limebrew.xpenseservice.controller;\n\nimport com.google.firebase.auth.FirebaseAuthException;\nimport com.google.firebase.auth.FirebaseToken;\nimport in.limebrew.xpenseservice.entity.Transaction;\nimport in.limebrew.xpenseservice.service.FirebaseAuthService;\nimport in.limebrew.xpenseservice.se... | return ResponseUtil.errorParsingEntity("Error! Date format must be in dd-MM-yyyy"); | {} | {
"repository": "limebrew-org-xpense-service-54b5f64",
"file": "src/main/java/in/limebrew/xpenseservice/controller/TransactionController.java",
"task_id": "project_cc_java/3178"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/in/limebrew/xpenseservice/controller/TransactionController.java",
"groundtruth_start_lineno": 193,
"repository": "limebrew-org-xpense-service-54b5f64",
"right_context_start_lineno": 194,
"task_id": "project_cc_java/3178"
}
} |
cross_code_eval_java::project_cc_java/3126 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// milan-interpreter/src/main/java/ru/milan/interpreter/Atom.java
// */
// Atom eq(Atom other);
/... | {
"prefix": "package ru.milan.interpreter;\n\nimport java.util.Objects;\nimport java.util.function.BiFunction;\nimport org.cactoos.text.FormattedText;\nimport ru.milan.interpreter.exception.WrongTypeException;\n\npublic abstract class AtomEnvelope implements Atom {\n\n private final Object value;\n\n private fi... | (this.isNumber() && other.isNumber()) { | {} | {
"repository": "l3r8yJ-milan-9813ad6",
"file": "milan-interpreter/src/main/java/ru/milan/interpreter/AtomEnvelope.java",
"task_id": "project_cc_java/3126"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "milan-interpreter/src/main/java/ru/milan/interpreter/AtomEnvelope.java",
"groundtruth_start_lineno": 122,
"repository": "l3r8yJ-milan-9813ad6",
"right_context_start_lineno": 123,
"task_id": "project_cc_java/3126"
}
} |
cross_code_eval_java::project_cc_java/3127 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// milan-interpreter/src/main/java/ru/milan/interpreter/Atom.java
// * "Multiply this atom by another... | {
"prefix": "package ru.milan.interpreter;\n\nimport java.util.Objects;\nimport java.util.function.BiFunction;\nimport org.cactoos.text.FormattedText;\nimport ru.milan.interpreter.exception.WrongTypeException;\n\npublic abstract class AtomEnvelope implements Atom {\n\n private final Object value;\n\n private fi... | other.assertNumber(); | {} | {
"repository": "l3r8yJ-milan-9813ad6",
"file": "milan-interpreter/src/main/java/ru/milan/interpreter/AtomEnvelope.java",
"task_id": "project_cc_java/3127"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "milan-interpreter/src/main/java/ru/milan/interpreter/AtomEnvelope.java",
"groundtruth_start_lineno": 180,
"repository": "l3r8yJ-milan-9813ad6",
"right_context_start_lineno": 181,
"task_id": "project_cc_java/3127"
}
} |
cross_code_eval_java::project_cc_java/3180 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/in/limebrew/xpenseservice/service/impl/TransactionServiceImpl.java
// }
// @Overr... | {
"prefix": "package in.limebrew.xpenseservice.controller;\n\nimport com.google.firebase.auth.FirebaseAuthException;\nimport com.google.firebase.auth.FirebaseToken;\nimport in.limebrew.xpenseservice.entity.Transaction;\nimport in.limebrew.xpenseservice.service.FirebaseAuthService;\nimport in.limebrew.xpenseservice.se... | ResponseUtil.errorUnauthorized(); | {} | {
"repository": "limebrew-org-xpense-service-54b5f64",
"file": "src/main/java/in/limebrew/xpenseservice/controller/TransactionController.java",
"task_id": "project_cc_java/3180"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/in/limebrew/xpenseservice/controller/TransactionController.java",
"groundtruth_start_lineno": 212,
"repository": "limebrew-org-xpense-service-54b5f64",
"right_context_start_lineno": 213,
"task_id": "project_cc_java/3180"
}
} |
cross_code_eval_java::project_cc_java/3140 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// copilot-system/src/main/java/com/copilot/modules/sys/service/impl/IndexServiceImpl.java
// @Overrid... | {
"prefix": "package com.copilot.modules.security.utils;\n\nimport com.baomidou.mybatisplus.core.toolkit.StringUtils;\nimport com.copilot.modules.security.bean.SecurityUser;\nimport io.jsonwebtoken.Claims;\nimport io.jsonwebtoken.Jwts;\nimport io.jsonwebtoken.SignatureAlgorithm;\nimport lombok.extern.log4j.Log4j2;\ni... | userDetail.getAuthorities()); | {} | {
"repository": "lihangfu-copilot-server-41b259b",
"file": "copilot-system/src/main/java/com/copilot/modules/security/utils/JwtUtil.java",
"task_id": "project_cc_java/3140"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "copilot-system/src/main/java/com/copilot/modules/security/utils/JwtUtil.java",
"groundtruth_start_lineno": 65,
"repository": "lihangfu-copilot-server-41b259b",
"right_context_start_lineno": 66,
"task_id": "project_cc_java/3140"
}
} |
cross_code_eval_java::project_cc_java/3214 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/devsuperior/dslist/services/GameService.java
// @Transactional(readOnly = true)
// ... | {
"prefix": "package com.devsuperior.dslist.controllers;\n\nimport java.util.List;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.web.bind.annotation.GetMapping;\nimport org.springframework.web.bind.annotation.PathVariable;\nimport org.springframework.web.bind.annotation... | getSourceIndex(), body.getDestinationIndex()); | {} | {
"repository": "matheusgmello-dslist-backend-4347223",
"file": "src/main/java/com/devsuperior/dslist/controllers/GameListController.java",
"task_id": "project_cc_java/3214"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/devsuperior/dslist/controllers/GameListController.java",
"groundtruth_start_lineno": 42,
"repository": "matheusgmello-dslist-backend-4347223",
"right_context_start_lineno": 43,
"task_id": "project_cc_java/3214"
}
} |
cross_code_eval_java::project_cc_java/3179 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/in/limebrew/xpenseservice/service/impl/TransactionServiceImpl.java
// }
// @Overr... | {
"prefix": "package in.limebrew.xpenseservice.controller;\n\nimport com.google.firebase.auth.FirebaseAuthException;\nimport com.google.firebase.auth.FirebaseToken;\nimport in.limebrew.xpenseservice.entity.Transaction;\nimport in.limebrew.xpenseservice.service.FirebaseAuthService;\nimport in.limebrew.xpenseservice.se... | return ResponseUtil.successAddOne(); | {} | {
"repository": "limebrew-org-xpense-service-54b5f64",
"file": "src/main/java/in/limebrew/xpenseservice/controller/TransactionController.java",
"task_id": "project_cc_java/3179"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/in/limebrew/xpenseservice/controller/TransactionController.java",
"groundtruth_start_lineno": 209,
"repository": "limebrew-org-xpense-service-54b5f64",
"right_context_start_lineno": 210,
"task_id": "project_cc_java/3179"
}
} |
cross_code_eval_java::project_cc_java/3213 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/devsuperior/dslist/services/GameService.java
// @Transactional(readOnly = true)
// ... | {
"prefix": "package com.devsuperior.dslist.controllers;\n\nimport java.util.List;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.web.bind.annotation.GetMapping;\nimport org.springframework.web.bind.annotation.PathVariable;\nimport org.springframework.web.bind.annotation... | body.getSourceIndex(), body.getDestinationIndex()); | {} | {
"repository": "matheusgmello-dslist-backend-4347223",
"file": "src/main/java/com/devsuperior/dslist/controllers/GameListController.java",
"task_id": "project_cc_java/3213"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/devsuperior/dslist/controllers/GameListController.java",
"groundtruth_start_lineno": 42,
"repository": "matheusgmello-dslist-backend-4347223",
"right_context_start_lineno": 43,
"task_id": "project_cc_java/3213"
}
} |
cross_code_eval_java::project_cc_java/3132 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/test/java/dev/landonjw/gooeyui/adapter/deluxemenu/commands/parser/DeluxeMenuCommandParsingSe... | {
"prefix": "package dev.landonjw.gooeyui.adapter.deluxemenu.commands.parser;\n\nimport dev.landonjw.gooeyui.adapter.deluxemenu.commands.DeluxeMenuCommand;\nimport dev.landonjw.gooeyui.adapter.deluxemenu.commands.decorators.DeluxeMenuCommandDecoratorParser;\nimport org.apache.logging.log4j.Logger;\n\nimport java.util... | DeluxeMenuCommand> command = parser.parse(commandArgs); | {} | {
"repository": "landonjw-GooeyUI-e1b3d47",
"file": "common/src/main/java/dev/landonjw/gooeyui/adapter/deluxemenu/commands/parser/DeluxeMenuCommandParsingService.java",
"task_id": "project_cc_java/3132"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "common/src/main/java/dev/landonjw/gooeyui/adapter/deluxemenu/commands/parser/DeluxeMenuCommandParsingService.java",
"groundtruth_start_lineno": 44,
"repository": "landonjw-GooeyUI-e1b3d47",
"right_context_start_lineno": 45,
"task_id": "projec... |
cross_code_eval_java::project_cc_java/3184 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/net/verotek/twitch/chatters/services/TwitchServiceTests.java
// return collection.str... | {
"prefix": "package net.verotek.twitch.chatters.services;\n\nimport com.github.twitch4j.helix.domain.ChannelVip;\nimport com.github.twitch4j.helix.domain.Chatter;\nimport com.github.twitch4j.helix.domain.Moderator;\nimport jakarta.validation.constraints.NotNull;\nimport java.util.Collection;\nimport java.util.Set;\n... | = helixWrapper.fetchChatters(channelId, accessToken); | {} | {
"repository": "lvoegl-chatters-api-da3fa86",
"file": "src/main/java/net/verotek/twitch/chatters/services/TwitchService.java",
"task_id": "project_cc_java/3184"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/verotek/twitch/chatters/services/TwitchService.java",
"groundtruth_start_lineno": 71,
"repository": "lvoegl-chatters-api-da3fa86",
"right_context_start_lineno": 72,
"task_id": "project_cc_java/3184"
}
} |
cross_code_eval_java::project_cc_java/3189 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/net/verotek/twitch/chatters/controllers/RolesController.java
// throws InvalidToken... | {
"prefix": "package net.verotek.twitch.chatters.services;\n\nimport com.github.philippheuer.credentialmanager.domain.OAuth2Credential;\nimport com.github.twitch4j.auth.domain.TwitchScopes;\nimport com.github.twitch4j.auth.providers.TwitchIdentityProvider;\nimport java.util.ArrayList;\nimport java.util.HashSet;\nimpo... | channel.isAccessTokenExpired()) { | {} | {
"repository": "lvoegl-chatters-api-da3fa86",
"file": "src/main/java/net/verotek/twitch/chatters/services/TwitchIdentityService.java",
"task_id": "project_cc_java/3189"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/verotek/twitch/chatters/services/TwitchIdentityService.java",
"groundtruth_start_lineno": 55,
"repository": "lvoegl-chatters-api-da3fa86",
"right_context_start_lineno": 56,
"task_id": "project_cc_java/3189"
}
} |
cross_code_eval_java::project_cc_java/3185 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/net/verotek/twitch/chatters/controllers/RolesController.java
// throws InvalidToken... | {
"prefix": "package net.verotek.twitch.chatters.services;\n\nimport com.github.twitch4j.helix.domain.ChannelVip;\nimport com.github.twitch4j.helix.domain.Chatter;\nimport com.github.twitch4j.helix.domain.Moderator;\nimport jakarta.validation.constraints.NotNull;\nimport java.util.Collection;\nimport java.util.Set;\n... | Moderator> vips = helixWrapper.fetchModerators(channelId, accessToken); | {} | {
"repository": "lvoegl-chatters-api-da3fa86",
"file": "src/main/java/net/verotek/twitch/chatters/services/TwitchService.java",
"task_id": "project_cc_java/3185"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/verotek/twitch/chatters/services/TwitchService.java",
"groundtruth_start_lineno": 76,
"repository": "lvoegl-chatters-api-da3fa86",
"right_context_start_lineno": 77,
"task_id": "project_cc_java/3185"
}
} |
cross_code_eval_java::project_cc_java/3190 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/net/verotek/twitch/chatters/models/ChannelTests.java
// new OAuth2Credential(null... | {
"prefix": "package net.verotek.twitch.chatters.services;\n\nimport com.github.philippheuer.credentialmanager.domain.OAuth2Credential;\nimport com.github.twitch4j.auth.domain.TwitchScopes;\nimport com.github.twitch4j.auth.providers.TwitchIdentityProvider;\nimport java.util.ArrayList;\nimport java.util.HashSet;\nimpo... | channel.getScopeNames()); | {} | {
"repository": "lvoegl-chatters-api-da3fa86",
"file": "src/main/java/net/verotek/twitch/chatters/services/TwitchIdentityService.java",
"task_id": "project_cc_java/3190"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/verotek/twitch/chatters/services/TwitchIdentityService.java",
"groundtruth_start_lineno": 106,
"repository": "lvoegl-chatters-api-da3fa86",
"right_context_start_lineno": 107,
"task_id": "project_cc_java/3190"
}
} |
cross_code_eval_java::project_cc_java/3224 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/educandoweb/course/entities/Product.java
// }
// @Override
// public int hashCode(... | {
"prefix": "package com.educandoweb.course.entities;\n\nimport java.io.Serializable;\nimport java.time.Instant;\nimport java.util.HashSet;\nimport java.util.Set;\n\nimport com.educandoweb.course.entities.enums.OrderStatus;\n\nimport jakarta.persistence.CascadeType;\nimport jakarta.persistence.Entity;\nimport jakarta... | sum += x.getSubTotal(); | {} | {
"repository": "matheusgmello-workshop-springboot3-jpa-16e84f3",
"file": "src/main/java/com/educandoweb/course/entities/Order.java",
"task_id": "project_cc_java/3224"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/educandoweb/course/entities/Order.java",
"groundtruth_start_lineno": 102,
"repository": "matheusgmello-workshop-springboot3-jpa-16e84f3",
"right_context_start_lineno": 103,
"task_id": "project_cc_java/3224"
}
} |
cross_code_eval_java::project_cc_java/3298 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/example/hmwk1/entity/Campaign.java
// return "Campaign{" +
// ... | {
"prefix": "package org.example.hmwk1.service.concretes;\n\n\nimport org.example.hmwk1.entity.Game;\nimport org.example.hmwk1.service.abstracts.GameService;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class GameManager implements GameService {\n List<Game> games = new ArrayList<>();\n @Ove... | setDescription(game.getDescription()); | {} | {
"repository": "MERVECETIN1929-Turkcell-Homework1-bdf94f0",
"file": "src/main/java/org/example/hmwk1/service/concretes/GameManager.java",
"task_id": "project_cc_java/3298"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/example/hmwk1/service/concretes/GameManager.java",
"groundtruth_start_lineno": 48,
"repository": "MERVECETIN1929-Turkcell-Homework1-bdf94f0",
"right_context_start_lineno": 49,
"task_id": "project_cc_java/3298"
}
} |
cross_code_eval_java::project_cc_java/3297 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/example/hmwk1/entity/Campaign.java
// return "Campaign{" +
// ... | {
"prefix": "package org.example.hmwk1.service.concretes;\n\n\nimport org.example.hmwk1.entity.Game;\nimport org.example.hmwk1.service.abstracts.GameService;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class GameManager implements GameService {\n List<Game> games = new ArrayList<>();\n @Ove... | setId(game.getId()); | {} | {
"repository": "MERVECETIN1929-Turkcell-Homework1-bdf94f0",
"file": "src/main/java/org/example/hmwk1/service/concretes/GameManager.java",
"task_id": "project_cc_java/3297"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/example/hmwk1/service/concretes/GameManager.java",
"groundtruth_start_lineno": 47,
"repository": "MERVECETIN1929-Turkcell-Homework1-bdf94f0",
"right_context_start_lineno": 48,
"task_id": "project_cc_java/3297"
}
} |
cross_code_eval_java::project_cc_java/3295 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/example/hmwk1/service/concretes/CampaignManager.java
// @Override
// public v... | {
"prefix": "package org.example.hmwk1.service.concretes;\n\n\nimport org.example.hmwk1.entity.Game;\nimport org.example.hmwk1.service.abstracts.GameService;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class GameManager implements GameService {\n List<Game> games = new ArrayList<>();\n @Ove... | (game.getId() == id){ | {} | {
"repository": "MERVECETIN1929-Turkcell-Homework1-bdf94f0",
"file": "src/main/java/org/example/hmwk1/service/concretes/GameManager.java",
"task_id": "project_cc_java/3295"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/example/hmwk1/service/concretes/GameManager.java",
"groundtruth_start_lineno": 32,
"repository": "MERVECETIN1929-Turkcell-Homework1-bdf94f0",
"right_context_start_lineno": 33,
"task_id": "project_cc_java/3295"
}
} |
cross_code_eval_java::project_cc_java/3285 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/example/hmwk1/service/concretes/GameManager.java
// updateToGame.setC... | {
"prefix": "package org.example.hmwk1.service.concretes;\n\nimport org.example.hmwk1.entity.Game;\nimport org.example.hmwk1.entity.Campaign;\nimport org.example.hmwk1.entity.Customer;\nimport org.example.hmwk1.service.abstracts.CampaignService;\nimport org.example.hmwk1.service.abstracts.SellingService;\nimport org.... | game.setCountOwner(game.getCountOwner() + 1); | {} | {
"repository": "MERVECETIN1929-Turkcell-Homework1-bdf94f0",
"file": "src/main/java/org/example/hmwk1/service/concretes/SellingManager.java",
"task_id": "project_cc_java/3285"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/example/hmwk1/service/concretes/SellingManager.java",
"groundtruth_start_lineno": 34,
"repository": "MERVECETIN1929-Turkcell-Homework1-bdf94f0",
"right_context_start_lineno": 35,
"task_id": "project_cc_java/3285"
}
} |
cross_code_eval_java::project_cc_java/3292 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/example/hmwk1/service/concretes/GameManager.java
// updateToGame.setC... | {
"prefix": "package org.example.hmwk1.service.concretes;\n\nimport org.example.hmwk1.entity.Game;\nimport org.example.hmwk1.entity.Campaign;\nimport org.example.hmwk1.entity.Customer;\nimport org.example.hmwk1.service.abstracts.CampaignService;\nimport org.example.hmwk1.service.abstracts.SellingService;\nimport org.... | (!(customer.getGames().contains(game))){ | {} | {
"repository": "MERVECETIN1929-Turkcell-Homework1-bdf94f0",
"file": "src/main/java/org/example/hmwk1/service/concretes/SellingManager.java",
"task_id": "project_cc_java/3292"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/example/hmwk1/service/concretes/SellingManager.java",
"groundtruth_start_lineno": 33,
"repository": "MERVECETIN1929-Turkcell-Homework1-bdf94f0",
"right_context_start_lineno": 34,
"task_id": "project_cc_java/3292"
}
} |
cross_code_eval_java::project_cc_java/3276 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/example/hmwk1/service/concretes/UserManager.java
// return;
// }
... | {
"prefix": "package org.example.hmwk1.adapter;\n\nimport org.example.hmwk1.entity.Developer;\nimport org.example.hmwk1.entity.Game;\nimport org.example.hmwk1.entity.Customer;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class MernisService implements CheckService {\n List<Customer> userList = ... | .equals(customer.getSurName()) &&
customer2.getBirthYear() == customer.getBirthYear()) { | {} | {
"repository": "MERVECETIN1929-Turkcell-Homework1-bdf94f0",
"file": "src/main/java/org/example/hmwk1/adapter/MernisService.java",
"task_id": "project_cc_java/3276"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/example/hmwk1/adapter/MernisService.java",
"groundtruth_start_lineno": 42,
"repository": "MERVECETIN1929-Turkcell-Homework1-bdf94f0",
"right_context_start_lineno": 44,
"task_id": "project_cc_java/3276"
}
} |
cross_code_eval_java::project_cc_java/3296 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/example/hmwk1/service/concretes/CampaignManager.java
// @Override
// public v... | {
"prefix": "package org.example.hmwk1.service.concretes;\n\n\nimport org.example.hmwk1.entity.Game;\nimport org.example.hmwk1.service.abstracts.GameService;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class GameManager implements GameService {\n List<Game> games = new ArrayList<>();\n @Ove... | (game1.getId()==id){ | {} | {
"repository": "MERVECETIN1929-Turkcell-Homework1-bdf94f0",
"file": "src/main/java/org/example/hmwk1/service/concretes/GameManager.java",
"task_id": "project_cc_java/3296"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/example/hmwk1/service/concretes/GameManager.java",
"groundtruth_start_lineno": 45,
"repository": "MERVECETIN1929-Turkcell-Homework1-bdf94f0",
"right_context_start_lineno": 46,
"task_id": "project_cc_java/3296"
}
} |
cross_code_eval_java::project_cc_java/3275 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/example/hmwk1/service/concretes/UserManager.java
// }
// throw new Ru... | {
"prefix": "package org.example.hmwk1.adapter;\n\nimport org.example.hmwk1.entity.Developer;\nimport org.example.hmwk1.entity.Game;\nimport org.example.hmwk1.entity.Customer;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class MernisService implements CheckService {\n List<Customer> userList = ... | customer2.getSurName().equals(customer.getSurName()) &&
customer2.getBirthYear() == customer.getBirthYear()) { | {} | {
"repository": "MERVECETIN1929-Turkcell-Homework1-bdf94f0",
"file": "src/main/java/org/example/hmwk1/adapter/MernisService.java",
"task_id": "project_cc_java/3275"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/example/hmwk1/adapter/MernisService.java",
"groundtruth_start_lineno": 42,
"repository": "MERVECETIN1929-Turkcell-Homework1-bdf94f0",
"right_context_start_lineno": 44,
"task_id": "project_cc_java/3275"
}
} |
cross_code_eval_java::project_cc_java/3278 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/example/hmwk1/service/concretes/UserManager.java
// return;
// }
... | {
"prefix": "package org.example.hmwk1.adapter;\n\nimport org.example.hmwk1.entity.Developer;\nimport org.example.hmwk1.entity.Game;\nimport org.example.hmwk1.entity.Customer;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class MernisService implements CheckService {\n List<Customer> userList = ... | ) == customer.getBirthYear()) { | {} | {
"repository": "MERVECETIN1929-Turkcell-Homework1-bdf94f0",
"file": "src/main/java/org/example/hmwk1/adapter/MernisService.java",
"task_id": "project_cc_java/3278"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/example/hmwk1/adapter/MernisService.java",
"groundtruth_start_lineno": 43,
"repository": "MERVECETIN1929-Turkcell-Homework1-bdf94f0",
"right_context_start_lineno": 44,
"task_id": "project_cc_java/3278"
}
} |
cross_code_eval_java::project_cc_java/3277 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/example/hmwk1/service/concretes/UserManager.java
// return;
// }
... | {
"prefix": "package org.example.hmwk1.adapter;\n\nimport org.example.hmwk1.entity.Developer;\nimport org.example.hmwk1.entity.Game;\nimport org.example.hmwk1.entity.Customer;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class MernisService implements CheckService {\n List<Customer> userList = ... | customer2.getBirthYear() == customer.getBirthYear()) { | {} | {
"repository": "MERVECETIN1929-Turkcell-Homework1-bdf94f0",
"file": "src/main/java/org/example/hmwk1/adapter/MernisService.java",
"task_id": "project_cc_java/3277"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/example/hmwk1/adapter/MernisService.java",
"groundtruth_start_lineno": 43,
"repository": "MERVECETIN1929-Turkcell-Homework1-bdf94f0",
"right_context_start_lineno": 44,
"task_id": "project_cc_java/3277"
}
} |
cross_code_eval_java::project_cc_java/3293 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/example/hmwk1/service/concretes/GameManager.java
// updateToGame.setC... | {
"prefix": "package org.example.hmwk1.service.concretes;\n\nimport org.example.hmwk1.entity.Game;\nimport org.example.hmwk1.entity.Campaign;\nimport org.example.hmwk1.entity.Customer;\nimport org.example.hmwk1.service.abstracts.CampaignService;\nimport org.example.hmwk1.service.abstracts.SellingService;\nimport org.... | .getName() + " sold to " + customer.getName()+" cost: "+game.getCost()); | {} | {
"repository": "MERVECETIN1929-Turkcell-Homework1-bdf94f0",
"file": "src/main/java/org/example/hmwk1/service/concretes/SellingManager.java",
"task_id": "project_cc_java/3293"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/example/hmwk1/service/concretes/SellingManager.java",
"groundtruth_start_lineno": 36,
"repository": "MERVECETIN1929-Turkcell-Homework1-bdf94f0",
"right_context_start_lineno": 37,
"task_id": "project_cc_java/3293"
}
} |
cross_code_eval_java::project_cc_java/3237 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/educandoweb/course/entities/Category.java
// return id;
// }
// public void setId... | {
"prefix": "package com.educandoweb.course.config;\n\nimport java.time.Instant;\nimport java.util.Arrays;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.boot.CommandLineRunner;\nimport org.springframework.context.annotation.Configuration;\nimport org.springframework.con... | p1.getCategories().add(cat2); | {} | {
"repository": "matheusgmello-workshop-springboot3-jpa-16e84f3",
"file": "src/main/java/com/educandoweb/course/config/TestConfig.java",
"task_id": "project_cc_java/3237"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/educandoweb/course/config/TestConfig.java",
"groundtruth_start_lineno": 58,
"repository": "matheusgmello-workshop-springboot3-jpa-16e84f3",
"right_context_start_lineno": 59,
"task_id": "project_cc_java/3237"
}
} |
cross_code_eval_java::project_cc_java/3305 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/example/hmwk1/service/abstracts/CampaignService.java
// package org.example.hmwk1.ser... | {
"prefix": "package org.example.hmwk1.service.concretes;\n\nimport org.example.hmwk1.entity.Campaign;\nimport org.example.hmwk1.service.abstracts.CampaignService;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class CampaignManager implements CampaignService {\n\n List<Campaign> campaigns = new ... | setDiscountAmount(campaign.getDiscountAmount()); | {} | {
"repository": "MERVECETIN1929-Turkcell-Homework1-bdf94f0",
"file": "src/main/java/org/example/hmwk1/service/concretes/CampaignManager.java",
"task_id": "project_cc_java/3305"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/example/hmwk1/service/concretes/CampaignManager.java",
"groundtruth_start_lineno": 47,
"repository": "MERVECETIN1929-Turkcell-Homework1-bdf94f0",
"right_context_start_lineno": 48,
"task_id": "project_cc_java/3305"
}
} |
cross_code_eval_java::project_cc_java/3287 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/example/hmwk1/service/concretes/UserManager.java
// return;
// }
... | {
"prefix": "package org.example.hmwk1.service.concretes;\n\nimport org.example.hmwk1.entity.Game;\nimport org.example.hmwk1.entity.Campaign;\nimport org.example.hmwk1.entity.Customer;\nimport org.example.hmwk1.service.abstracts.CampaignService;\nimport org.example.hmwk1.service.abstracts.SellingService;\nimport org.... | ()+" cost: "+game.getCost()); | {} | {
"repository": "MERVECETIN1929-Turkcell-Homework1-bdf94f0",
"file": "src/main/java/org/example/hmwk1/service/concretes/SellingManager.java",
"task_id": "project_cc_java/3287"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/example/hmwk1/service/concretes/SellingManager.java",
"groundtruth_start_lineno": 36,
"repository": "MERVECETIN1929-Turkcell-Homework1-bdf94f0",
"right_context_start_lineno": 37,
"task_id": "project_cc_java/3287"
}
} |
cross_code_eval_java::project_cc_java/3303 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/example/hmwk1/service/abstracts/CampaignService.java
// package org.example.hmwk1.ser... | {
"prefix": "package org.example.hmwk1.service.concretes;\n\nimport org.example.hmwk1.entity.Campaign;\nimport org.example.hmwk1.service.abstracts.CampaignService;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class CampaignManager implements CampaignService {\n\n List<Campaign> campaigns = new ... | (campaign1.getId()==id){ | {} | {
"repository": "MERVECETIN1929-Turkcell-Homework1-bdf94f0",
"file": "src/main/java/org/example/hmwk1/service/concretes/CampaignManager.java",
"task_id": "project_cc_java/3303"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/example/hmwk1/service/concretes/CampaignManager.java",
"groundtruth_start_lineno": 44,
"repository": "MERVECETIN1929-Turkcell-Homework1-bdf94f0",
"right_context_start_lineno": 45,
"task_id": "project_cc_java/3303"
}
} |
cross_code_eval_java::project_cc_java/3304 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/example/hmwk1/service/abstracts/CampaignService.java
// package org.example.hmwk1.ser... | {
"prefix": "package org.example.hmwk1.service.concretes;\n\nimport org.example.hmwk1.entity.Campaign;\nimport org.example.hmwk1.service.abstracts.CampaignService;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class CampaignManager implements CampaignService {\n\n List<Campaign> campaigns = new ... | (campaign.getGames().get(id)); | {} | {
"repository": "MERVECETIN1929-Turkcell-Homework1-bdf94f0",
"file": "src/main/java/org/example/hmwk1/service/concretes/CampaignManager.java",
"task_id": "project_cc_java/3304"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/example/hmwk1/service/concretes/CampaignManager.java",
"groundtruth_start_lineno": 46,
"repository": "MERVECETIN1929-Turkcell-Homework1-bdf94f0",
"right_context_start_lineno": 47,
"task_id": "project_cc_java/3304"
}
} |
cross_code_eval_java::project_cc_java/3239 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/educandoweb/course/entities/Product.java
// } else if (!id.equals(other.id))
// ... | {
"prefix": "package com.educandoweb.course.config;\n\nimport java.time.Instant;\nimport java.util.Arrays;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.boot.CommandLineRunner;\nimport org.springframework.context.annotation.Configuration;\nimport org.springframework.con... | p2.getCategories().add(cat3); | {} | {
"repository": "matheusgmello-workshop-springboot3-jpa-16e84f3",
"file": "src/main/java/com/educandoweb/course/config/TestConfig.java",
"task_id": "project_cc_java/3239"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/educandoweb/course/config/TestConfig.java",
"groundtruth_start_lineno": 60,
"repository": "matheusgmello-workshop-springboot3-jpa-16e84f3",
"right_context_start_lineno": 61,
"task_id": "project_cc_java/3239"
}
} |
cross_code_eval_java::project_cc_java/3307 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/example/hmwk1/service/concretes/GameManager.java
// @Override
// public void ... | {
"prefix": "package org.example.hmwk1.service.concretes;\n\nimport org.example.hmwk1.adapter.CheckService;\nimport org.example.hmwk1.entity.Customer;\nimport org.example.hmwk1.service.abstracts.UserService;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class UserManager implements UserService {\n ... | System.out.println(user2.getName() +" is updated to " + customer.getName()); | {} | {
"repository": "MERVECETIN1929-Turkcell-Homework1-bdf94f0",
"file": "src/main/java/org/example/hmwk1/service/concretes/UserManager.java",
"task_id": "project_cc_java/3307"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/example/hmwk1/service/concretes/UserManager.java",
"groundtruth_start_lineno": 62,
"repository": "MERVECETIN1929-Turkcell-Homework1-bdf94f0",
"right_context_start_lineno": 63,
"task_id": "project_cc_java/3307"
}
} |
cross_code_eval_java::project_cc_java/3308 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/example/hmwk1/service/concretes/GameManager.java
// @Override
// public void ... | {
"prefix": "package org.example.hmwk1.service.concretes;\n\nimport org.example.hmwk1.adapter.CheckService;\nimport org.example.hmwk1.entity.Customer;\nimport org.example.hmwk1.service.abstracts.UserService;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class UserManager implements UserService {\n ... | .out.println(user2.getName() +" is updated to " + customer.getName()); | {} | {
"repository": "MERVECETIN1929-Turkcell-Homework1-bdf94f0",
"file": "src/main/java/org/example/hmwk1/service/concretes/UserManager.java",
"task_id": "project_cc_java/3308"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/example/hmwk1/service/concretes/UserManager.java",
"groundtruth_start_lineno": 62,
"repository": "MERVECETIN1929-Turkcell-Homework1-bdf94f0",
"right_context_start_lineno": 63,
"task_id": "project_cc_java/3308"
}
} |
cross_code_eval_java::project_cc_java/3240 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/educandoweb/course/entities/Product.java
// }
// @Override
// public int hashCode(... | {
"prefix": "package com.educandoweb.course.config;\n\nimport java.time.Instant;\nimport java.util.Arrays;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.boot.CommandLineRunner;\nimport org.springframework.context.annotation.Configuration;\nimport org.springframework.con... | p3.getCategories().add(cat3); | {} | {
"repository": "matheusgmello-workshop-springboot3-jpa-16e84f3",
"file": "src/main/java/com/educandoweb/course/config/TestConfig.java",
"task_id": "project_cc_java/3240"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/educandoweb/course/config/TestConfig.java",
"groundtruth_start_lineno": 61,
"repository": "matheusgmello-workshop-springboot3-jpa-16e84f3",
"right_context_start_lineno": 62,
"task_id": "project_cc_java/3240"
}
} |
cross_code_eval_java::project_cc_java/3241 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/educandoweb/course/entities/Product.java
// }
// @Override
// public int hashCode(... | {
"prefix": "package com.educandoweb.course.config;\n\nimport java.time.Instant;\nimport java.util.Arrays;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.boot.CommandLineRunner;\nimport org.springframework.context.annotation.Configuration;\nimport org.springframework.con... | p4.getCategories().add(cat3); | {} | {
"repository": "matheusgmello-workshop-springboot3-jpa-16e84f3",
"file": "src/main/java/com/educandoweb/course/config/TestConfig.java",
"task_id": "project_cc_java/3241"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/educandoweb/course/config/TestConfig.java",
"groundtruth_start_lineno": 62,
"repository": "matheusgmello-workshop-springboot3-jpa-16e84f3",
"right_context_start_lineno": 63,
"task_id": "project_cc_java/3241"
}
} |
cross_code_eval_java::project_cc_java/3243 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/educandoweb/course/entities/Product.java
// }
// @Override
// public int hashCode(... | {
"prefix": "package com.educandoweb.course.config;\n\nimport java.time.Instant;\nimport java.util.Arrays;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.boot.CommandLineRunner;\nimport org.springframework.context.annotation.Configuration;\nimport org.springframework.con... | , p1.getPrice()); | {} | {
"repository": "matheusgmello-workshop-springboot3-jpa-16e84f3",
"file": "src/main/java/com/educandoweb/course/config/TestConfig.java",
"task_id": "project_cc_java/3243"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/educandoweb/course/config/TestConfig.java",
"groundtruth_start_lineno": 77,
"repository": "matheusgmello-workshop-springboot3-jpa-16e84f3",
"right_context_start_lineno": 78,
"task_id": "project_cc_java/3243"
}
} |
cross_code_eval_java::project_cc_java/3310 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/example/hmwk1/service/concretes/SellingManager.java
// return;
// ... | {
"prefix": "package org.example.hmwk1.service.concretes;\n\nimport org.example.hmwk1.adapter.CheckService;\nimport org.example.hmwk1.entity.Customer;\nimport org.example.hmwk1.service.abstracts.UserService;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class UserManager implements UserService {\n ... | setSurName(customer.getSurName()); | {} | {
"repository": "MERVECETIN1929-Turkcell-Homework1-bdf94f0",
"file": "src/main/java/org/example/hmwk1/service/concretes/UserManager.java",
"task_id": "project_cc_java/3310"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/example/hmwk1/service/concretes/UserManager.java",
"groundtruth_start_lineno": 68,
"repository": "MERVECETIN1929-Turkcell-Homework1-bdf94f0",
"right_context_start_lineno": 69,
"task_id": "project_cc_java/3310"
}
} |
cross_code_eval_java::project_cc_java/3246 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/educandoweb/course/entities/Product.java
// }
// @Override
// public int hashCode(... | {
"prefix": "package com.educandoweb.course.config;\n\nimport java.time.Instant;\nimport java.util.Arrays;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.boot.CommandLineRunner;\nimport org.springframework.context.annotation.Configuration;\nimport org.springframework.con... | 2, p5.getPrice()); | {} | {
"repository": "matheusgmello-workshop-springboot3-jpa-16e84f3",
"file": "src/main/java/com/educandoweb/course/config/TestConfig.java",
"task_id": "project_cc_java/3246"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/educandoweb/course/config/TestConfig.java",
"groundtruth_start_lineno": 80,
"repository": "matheusgmello-workshop-springboot3-jpa-16e84f3",
"right_context_start_lineno": 81,
"task_id": "project_cc_java/3246"
}
} |
cross_code_eval_java::project_cc_java/3311 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/example/hmwk1/adapter/MernisService.java
// customer2.getBirthYea... | {
"prefix": "package org.example.hmwk1.service.concretes;\n\nimport org.example.hmwk1.adapter.CheckService;\nimport org.example.hmwk1.entity.Customer;\nimport org.example.hmwk1.service.abstracts.UserService;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class UserManager implements UserService {\n ... | userToUpdate.setBirthYear(customer.getBirthYear()); | {} | {
"repository": "MERVECETIN1929-Turkcell-Homework1-bdf94f0",
"file": "src/main/java/org/example/hmwk1/service/concretes/UserManager.java",
"task_id": "project_cc_java/3311"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/example/hmwk1/service/concretes/UserManager.java",
"groundtruth_start_lineno": 69,
"repository": "MERVECETIN1929-Turkcell-Homework1-bdf94f0",
"right_context_start_lineno": 70,
"task_id": "project_cc_java/3311"
}
} |
cross_code_eval_java::project_cc_java/3312 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/example/hmwk1/service/concretes/SellingManager.java
// return;
// ... | {
"prefix": "package org.example.hmwk1.service.concretes;\n\nimport org.example.hmwk1.adapter.CheckService;\nimport org.example.hmwk1.entity.Customer;\nimport org.example.hmwk1.service.abstracts.UserService;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class UserManager implements UserService {\n ... | setTc(customer.getTc()); | {} | {
"repository": "MERVECETIN1929-Turkcell-Homework1-bdf94f0",
"file": "src/main/java/org/example/hmwk1/service/concretes/UserManager.java",
"task_id": "project_cc_java/3312"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/example/hmwk1/service/concretes/UserManager.java",
"groundtruth_start_lineno": 70,
"repository": "MERVECETIN1929-Turkcell-Homework1-bdf94f0",
"right_context_start_lineno": 71,
"task_id": "project_cc_java/3312"
}
} |
cross_code_eval_java::project_cc_java/3245 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/educandoweb/course/entities/Product.java
// }
// @Override
// public int hashCode(... | {
"prefix": "package com.educandoweb.course.config;\n\nimport java.time.Instant;\nimport java.util.Arrays;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.boot.CommandLineRunner;\nimport org.springframework.context.annotation.Configuration;\nimport org.springframework.con... | , p3, 2, p3.getPrice()); | {} | {
"repository": "matheusgmello-workshop-springboot3-jpa-16e84f3",
"file": "src/main/java/com/educandoweb/course/config/TestConfig.java",
"task_id": "project_cc_java/3245"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/educandoweb/course/config/TestConfig.java",
"groundtruth_start_lineno": 79,
"repository": "matheusgmello-workshop-springboot3-jpa-16e84f3",
"right_context_start_lineno": 80,
"task_id": "project_cc_java/3245"
}
} |
cross_code_eval_java::project_cc_java/3242 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/educandoweb/course/entities/Product.java
// }
// @Override
// public int hashCode(... | {
"prefix": "package com.educandoweb.course.config;\n\nimport java.time.Instant;\nimport java.util.Arrays;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.boot.CommandLineRunner;\nimport org.springframework.context.annotation.Configuration;\nimport org.springframework.con... | p5.getCategories().add(cat2); | {} | {
"repository": "matheusgmello-workshop-springboot3-jpa-16e84f3",
"file": "src/main/java/com/educandoweb/course/config/TestConfig.java",
"task_id": "project_cc_java/3242"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/educandoweb/course/config/TestConfig.java",
"groundtruth_start_lineno": 63,
"repository": "matheusgmello-workshop-springboot3-jpa-16e84f3",
"right_context_start_lineno": 64,
"task_id": "project_cc_java/3242"
}
} |
cross_code_eval_java::project_cc_java/3264 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// forge/src/main/java/team/teampotato/minegpt/forge/forged/mixin/ClientPlayNetworkHandlerMixin.java
// im... | {
"prefix": "/*\n * Copyright (c) 2016, 2017, 2018, 2019 FabricMC\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 * Un... | (ClientCommandInternals.executeCommand(command)) { | {} | {
"repository": "MCTeamPotato-MineGPT-00b1415",
"file": "forge/src/main/java/team/teampotato/minegpt/forge/forged/mixin/ClientPlayerEntityMixin.java",
"task_id": "project_cc_java/3264"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "forge/src/main/java/team/teampotato/minegpt/forge/forged/mixin/ClientPlayerEntityMixin.java",
"groundtruth_start_lineno": 34,
"repository": "MCTeamPotato-MineGPT-00b1415",
"right_context_start_lineno": 35,
"task_id": "project_cc_java/3264"
... |
cross_code_eval_java::project_cc_java/3270 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// forge/src/main/java/team/teampotato/minegpt/forge/forged/mixin/ClientPlayerEntityMixin.java
// ... | {
"prefix": "/*\n * Copyright (c) 2016, 2017, 2018, 2019 FabricMC\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 * Un... | ClientCommandInternals.finalizeInit(); | {} | {
"repository": "MCTeamPotato-MineGPT-00b1415",
"file": "forge/src/main/java/team/teampotato/minegpt/forge/forged/mixin/ClientPlayNetworkHandlerMixin.java",
"task_id": "project_cc_java/3270"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "forge/src/main/java/team/teampotato/minegpt/forge/forged/mixin/ClientPlayNetworkHandlerMixin.java",
"groundtruth_start_lineno": 52,
"repository": "MCTeamPotato-MineGPT-00b1415",
"right_context_start_lineno": 53,
"task_id": "project_cc_java/32... |
cross_code_eval_java::project_cc_java/3252 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// forge/src/main/java/team/teampotato/minegpt/forge/forged/impl/ClientCommandInternals.java
// *
// ... | {
"prefix": "/*\n * Copyright (c) 2016, 2017, 2018, 2019 FabricMC\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 * Un... | ClientCommandInternals.getActiveDispatcher(); | {} | {
"repository": "MCTeamPotato-MineGPT-00b1415",
"file": "forge/src/main/java/team/teampotato/minegpt/forge/forged/api/ClientCommandManager.java",
"task_id": "project_cc_java/3252"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "forge/src/main/java/team/teampotato/minegpt/forge/forged/api/ClientCommandManager.java",
"groundtruth_start_lineno": 79,
"repository": "MCTeamPotato-MineGPT-00b1415",
"right_context_start_lineno": 80,
"task_id": "project_cc_java/3252"
}
} |
cross_code_eval_java::project_cc_java/3267 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// forge/src/main/java/team/teampotato/minegpt/forge/command/ClientConfigCommand.java
// ... | {
"prefix": "/*\n * Copyright (c) 2016, 2017, 2018, 2019 FabricMC\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 * Un... | activeDispatcher.register(ClientCommandManager.literal(API_COMMAND_NAME).then(help)); | {} | {
"repository": "MCTeamPotato-MineGPT-00b1415",
"file": "forge/src/main/java/team/teampotato/minegpt/forge/forged/impl/ClientCommandInternals.java",
"task_id": "project_cc_java/3267"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "forge/src/main/java/team/teampotato/minegpt/forge/forged/impl/ClientCommandInternals.java",
"groundtruth_start_lineno": 149,
"repository": "MCTeamPotato-MineGPT-00b1415",
"right_context_start_lineno": 150,
"task_id": "project_cc_java/3267"
... |
cross_code_eval_java::project_cc_java/3268 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// forge/src/main/java/team/teampotato/minegpt/forge/command/ClientConfigCommand.java
// ... | {
"prefix": "/*\n * Copyright (c) 2016, 2017, 2018, 2019 FabricMC\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 * Un... | register(ClientCommandManager.literal(SHORT_API_COMMAND_NAME).redirect(mainNode)); | {} | {
"repository": "MCTeamPotato-MineGPT-00b1415",
"file": "forge/src/main/java/team/teampotato/minegpt/forge/forged/impl/ClientCommandInternals.java",
"task_id": "project_cc_java/3268"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "forge/src/main/java/team/teampotato/minegpt/forge/forged/impl/ClientCommandInternals.java",
"groundtruth_start_lineno": 150,
"repository": "MCTeamPotato-MineGPT-00b1415",
"right_context_start_lineno": 151,
"task_id": "project_cc_java/3268"
... |
cross_code_eval_java::project_cc_java/3266 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// forge/src/main/java/team/teampotato/minegpt/forge/forged/api/ClientCommandManager.java
// * dispatch... | {
"prefix": "/*\n * Copyright (c) 2016, 2017, 2018, 2019 FabricMC\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 * Un... | LiteralArgumentBuilder<FabricClientCommandSource> help = ClientCommandManager.literal("help"); | {} | {
"repository": "MCTeamPotato-MineGPT-00b1415",
"file": "forge/src/main/java/team/teampotato/minegpt/forge/forged/impl/ClientCommandInternals.java",
"task_id": "project_cc_java/3266"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "forge/src/main/java/team/teampotato/minegpt/forge/forged/impl/ClientCommandInternals.java",
"groundtruth_start_lineno": 145,
"repository": "MCTeamPotato-MineGPT-00b1415",
"right_context_start_lineno": 146,
"task_id": "project_cc_java/3266"
... |
cross_code_eval_java::project_cc_java/3333 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/net/mexicanminion/dndminecraft/character/CharStats.java
// public int getIntelligence() ... | {
"prefix": "package net.mexicanminion.dndminecraft.character;\n\nimport net.mexicanminion.dndminecraft.character.race.Gnome;\nimport net.mexicanminion.dndminecraft.character.race.RaceType;\n\npublic class PlayerChar {\n\n\tCharStats stats;\n\tRaceType type;\n\n\tpublic PlayerChar(int strength, int dexterity, int con... | ) + (int) type.getAbilityScoreIncrease(type.getSubRace()).get("intelligence"); | {} | {
"repository": "mexicanminion-DND_Minecraft-5e7753b",
"file": "src/main/java/net/mexicanminion/dndminecraft/character/PlayerChar.java",
"task_id": "project_cc_java/3333"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/mexicanminion/dndminecraft/character/PlayerChar.java",
"groundtruth_start_lineno": 86,
"repository": "mexicanminion-DND_Minecraft-5e7753b",
"right_context_start_lineno": 87,
"task_id": "project_cc_java/3333"
}
} |
cross_code_eval_java::project_cc_java/3269 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/team/teampotato/minegpt/command/ServerCommand.java
// ... | {
"prefix": "/*\n * Copyright (c) 2016, 2017, 2018, 2019 FabricMC\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 * Un... | HelpCommandAccessor.getFailedException().create(); | {} | {
"repository": "MCTeamPotato-MineGPT-00b1415",
"file": "forge/src/main/java/team/teampotato/minegpt/forge/forged/impl/ClientCommandInternals.java",
"task_id": "project_cc_java/3269"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "forge/src/main/java/team/teampotato/minegpt/forge/forged/impl/ClientCommandInternals.java",
"groundtruth_start_lineno": 168,
"repository": "MCTeamPotato-MineGPT-00b1415",
"right_context_start_lineno": 169,
"task_id": "project_cc_java/3269"
... |
cross_code_eval_java::project_cc_java/3339 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/net/mexicanminion/dndminecraft/character/CharStats.java
// this.wisdom = wisdom;
// }
... | {
"prefix": "package net.mexicanminion.dndminecraft.character;\n\nimport net.mexicanminion.dndminecraft.character.race.Gnome;\nimport net.mexicanminion.dndminecraft.character.race.RaceType;\n\npublic class PlayerChar {\n\n\tCharStats stats;\n\tRaceType type;\n\n\tpublic PlayerChar(int strength, int dexterity, int con... | type.getSubRace(); | {} | {
"repository": "mexicanminion-DND_Minecraft-5e7753b",
"file": "src/main/java/net/mexicanminion/dndminecraft/character/PlayerChar.java",
"task_id": "project_cc_java/3339"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/mexicanminion/dndminecraft/character/PlayerChar.java",
"groundtruth_start_lineno": 153,
"repository": "mexicanminion-DND_Minecraft-5e7753b",
"right_context_start_lineno": 154,
"task_id": "project_cc_java/3339"
}
} |
cross_code_eval_java::project_cc_java/3314 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/net/mexicanminion/dndminecraft/character/CharStats.java
// return (int) (Math.floor(lvl... | {
"prefix": "package net.mexicanminion.dndminecraft.character;\n\nimport net.mexicanminion.dndminecraft.character.race.Gnome;\nimport net.mexicanminion.dndminecraft.character.race.RaceType;\n\npublic class PlayerChar {\n\n\tCharStats stats;\n\tRaceType type;\n\n\tpublic PlayerChar(int strength, int dexterity, int con... | type.getSubRace()).containsKey("strength")){ | {} | {
"repository": "mexicanminion-DND_Minecraft-5e7753b",
"file": "src/main/java/net/mexicanminion/dndminecraft/character/PlayerChar.java",
"task_id": "project_cc_java/3314"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/mexicanminion/dndminecraft/character/PlayerChar.java",
"groundtruth_start_lineno": 28,
"repository": "mexicanminion-DND_Minecraft-5e7753b",
"right_context_start_lineno": 29,
"task_id": "project_cc_java/3314"
}
} |
cross_code_eval_java::project_cc_java/3345 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/net/mexicanminion/dndminecraft/character/CharStats.java
// }
// public int getSavingThr... | {
"prefix": "package net.mexicanminion.dndminecraft.character;\n\nimport net.mexicanminion.dndminecraft.character.race.Gnome;\nimport net.mexicanminion.dndminecraft.character.race.RaceType;\n\npublic class PlayerChar {\n\n\tCharStats stats;\n\tRaceType type;\n\n\tpublic PlayerChar(int strength, int dexterity, int con... | getModifier(stats.getStrength()) + (int) type.getAbilityScoreIncrease(type.getSubRace()).get("strength"); | {} | {
"repository": "mexicanminion-DND_Minecraft-5e7753b",
"file": "src/main/java/net/mexicanminion/dndminecraft/character/PlayerChar.java",
"task_id": "project_cc_java/3345"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/mexicanminion/dndminecraft/character/PlayerChar.java",
"groundtruth_start_lineno": 29,
"repository": "mexicanminion-DND_Minecraft-5e7753b",
"right_context_start_lineno": 30,
"task_id": "project_cc_java/3345"
}
} |
cross_code_eval_java::project_cc_java/3341 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/net/mexicanminion/dndminecraft/character/race/RaceType.java
// package net.mexicanminion.... | {
"prefix": "package net.mexicanminion.dndminecraft.character;\n\nimport net.mexicanminion.dndminecraft.character.race.Gnome;\nimport net.mexicanminion.dndminecraft.character.race.RaceType;\n\npublic class PlayerChar {\n\n\tCharStats stats;\n\tRaceType type;\n\n\tpublic PlayerChar(int strength, int dexterity, int con... | type.getSpeed(); | {} | {
"repository": "mexicanminion-DND_Minecraft-5e7753b",
"file": "src/main/java/net/mexicanminion/dndminecraft/character/PlayerChar.java",
"task_id": "project_cc_java/3341"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/mexicanminion/dndminecraft/character/PlayerChar.java",
"groundtruth_start_lineno": 161,
"repository": "mexicanminion-DND_Minecraft-5e7753b",
"right_context_start_lineno": 162,
"task_id": "project_cc_java/3341"
}
} |
cross_code_eval_java::project_cc_java/3356 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/net/mexicanminion/dndminecraft/character/CharStats.java
// this.wisdom = wisdom;
// }
... | {
"prefix": "package net.mexicanminion.dndminecraft.character;\n\nimport net.mexicanminion.dndminecraft.character.race.Gnome;\nimport net.mexicanminion.dndminecraft.character.race.RaceType;\n\npublic class PlayerChar {\n\n\tCharStats stats;\n\tRaceType type;\n\n\tpublic PlayerChar(int strength, int dexterity, int con... | stats.getModifier(stats.getCharisma()); | {} | {
"repository": "mexicanminion-DND_Minecraft-5e7753b",
"file": "src/main/java/net/mexicanminion/dndminecraft/character/PlayerChar.java",
"task_id": "project_cc_java/3356"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/mexicanminion/dndminecraft/character/PlayerChar.java",
"groundtruth_start_lineno": 56,
"repository": "mexicanminion-DND_Minecraft-5e7753b",
"right_context_start_lineno": 57,
"task_id": "project_cc_java/3356"
}
} |
cross_code_eval_java::project_cc_java/3346 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/net/mexicanminion/dndminecraft/character/CharStats.java
// }
// public int getSavingThr... | {
"prefix": "package net.mexicanminion.dndminecraft.character;\n\nimport net.mexicanminion.dndminecraft.character.race.Gnome;\nimport net.mexicanminion.dndminecraft.character.race.RaceType;\n\npublic class PlayerChar {\n\n\tCharStats stats;\n\tRaceType type;\n\n\tpublic PlayerChar(int strength, int dexterity, int con... | stats.getModifier(stats.getStrength()); | {} | {
"repository": "mexicanminion-DND_Minecraft-5e7753b",
"file": "src/main/java/net/mexicanminion/dndminecraft/character/PlayerChar.java",
"task_id": "project_cc_java/3346"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/mexicanminion/dndminecraft/character/PlayerChar.java",
"groundtruth_start_lineno": 31,
"repository": "mexicanminion-DND_Minecraft-5e7753b",
"right_context_start_lineno": 32,
"task_id": "project_cc_java/3346"
}
} |
cross_code_eval_java::project_cc_java/3369 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/net/mexicanminion/dndminecraft/character/CharStats.java
// }
// public int getSavingThr... | {
"prefix": "package net.mexicanminion.dndminecraft.character;\n\nimport net.mexicanminion.dndminecraft.character.race.Gnome;\nimport net.mexicanminion.dndminecraft.character.race.RaceType;\n\npublic class PlayerChar {\n\n\tCharStats stats;\n\tRaceType type;\n\n\tpublic PlayerChar(int strength, int dexterity, int con... | return stats.getSavingThrow(stats.getStrength(), true); | {} | {
"repository": "mexicanminion-DND_Minecraft-5e7753b",
"file": "src/main/java/net/mexicanminion/dndminecraft/character/PlayerChar.java",
"task_id": "project_cc_java/3369"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/mexicanminion/dndminecraft/character/PlayerChar.java",
"groundtruth_start_lineno": 109,
"repository": "mexicanminion-DND_Minecraft-5e7753b",
"right_context_start_lineno": 110,
"task_id": "project_cc_java/3369"
}
} |
cross_code_eval_java::project_cc_java/3374 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/net/mexicanminion/dndminecraft/character/CharStats.java
// return (int) (Math.floor(lvl... | {
"prefix": "package net.mexicanminion.dndminecraft.character;\n\nimport net.mexicanminion.dndminecraft.character.race.Gnome;\nimport net.mexicanminion.dndminecraft.character.race.RaceType;\n\npublic class PlayerChar {\n\n\tCharStats stats;\n\tRaceType type;\n\n\tpublic PlayerChar(int strength, int dexterity, int con... | stats.getCharisma(), false); | {} | {
"repository": "mexicanminion-DND_Minecraft-5e7753b",
"file": "src/main/java/net/mexicanminion/dndminecraft/character/PlayerChar.java",
"task_id": "project_cc_java/3374"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/mexicanminion/dndminecraft/character/PlayerChar.java",
"groundtruth_start_lineno": 119,
"repository": "mexicanminion-DND_Minecraft-5e7753b",
"right_context_start_lineno": 120,
"task_id": "project_cc_java/3374"
}
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.