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/2915 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// m3color/src/main/java/com/kyant/m3color/score/Score.java
// hct.getChroma() < TARGET_CHROMA ?... | {
"prefix": "/*\n * Copyright 2022 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by ap... | hct.getTone()) < 65.0; | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/dislike/DislikeAnalyzer.java",
"task_id": "project_cc_java/2915"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/dislike/DislikeAnalyzer.java",
"groundtruth_start_lineno": 43,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 44,
"task_id": "project_cc_java/2915"
}
} |
cross_code_eval_java::project_cc_java/2929 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// m3color/src/main/java/com/kyant/m3color/hct/Hct.java
// }
// public double getTone() {
// retur... | {
"prefix": "/*\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by ap... | .a3 = TonalPalette.fromHueAndChroma(hue + 60., chroma / 2.); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/palettes/CorePalette.java",
"task_id": "project_cc_java/2929"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/palettes/CorePalette.java",
"groundtruth_start_lineno": 60,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 61,
"task_id": "project_cc_java/2929"
}
} |
cross_code_eval_java::project_cc_java/2921 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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
// private final double mediu... | {
"prefix": "/*\n * Copyright 2022 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by ap... | ColorUtils.lstarFromY(lightY) + LUMINANCE_GAMUT_MAP_TOLERANCE; | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/contrast/Contrast.java",
"task_id": "project_cc_java/2921"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/contrast/Contrast.java",
"groundtruth_start_lineno": 140,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 141,
"task_id": "project_cc_java/2921"
}
} |
cross_code_eval_java::project_cc_java/2925 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// m3color/src/main/java/com/kyant/m3color/scheme/Scheme.java
// private static Scheme lightFromCorePale... | {
"prefix": "/*\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by ap... | hue = hct.getHue(); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/palettes/CorePalette.java",
"task_id": "project_cc_java/2925"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/palettes/CorePalette.java",
"groundtruth_start_lineno": 55,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 56,
"task_id": "project_cc_java/2925"
}
} |
cross_code_eval_java::project_cc_java/2930 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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
// }
// /** The key color is the... | {
"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... | = TonalPalette.fromHueAndChroma(hue, min(chroma / 12., 4.)); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/palettes/CorePalette.java",
"task_id": "project_cc_java/2930"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/palettes/CorePalette.java",
"groundtruth_start_lineno": 61,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 62,
"task_id": "project_cc_java/2930"
}
} |
cross_code_eval_java::project_cc_java/2932 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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
// }
// /** The key color is the... | {
"prefix": "/*\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by ap... | a1 = TonalPalette.fromHueAndChroma(hue, max(48., chroma)); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/palettes/CorePalette.java",
"task_id": "project_cc_java/2932"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/palettes/CorePalette.java",
"groundtruth_start_lineno": 64,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 65,
"task_id": "project_cc_java/2932"
}
} |
cross_code_eval_java::project_cc_java/2931 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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
// }
// /** The key color is the... | {
"prefix": "/*\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by ap... | this.n2 = TonalPalette.fromHueAndChroma(hue, min(chroma / 6., 8.)); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/palettes/CorePalette.java",
"task_id": "project_cc_java/2931"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/palettes/CorePalette.java",
"groundtruth_start_lineno": 62,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 63,
"task_id": "project_cc_java/2931"
}
} |
cross_code_eval_java::project_cc_java/2933 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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
// }
// /** The key color is the... | {
"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... | = TonalPalette.fromHueAndChroma(hue, 16.); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/palettes/CorePalette.java",
"task_id": "project_cc_java/2933"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/palettes/CorePalette.java",
"groundtruth_start_lineno": 65,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 66,
"task_id": "project_cc_java/2933"
}
} |
cross_code_eval_java::project_cc_java/2939 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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
// }
// /** Returns whether a color i... | {
"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(argb); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/utils/StringUtils.java",
"task_id": "project_cc_java/2939"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/utils/StringUtils.java",
"groundtruth_start_lineno": 29,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 30,
"task_id": "project_cc_java/2939"
}
} |
cross_code_eval_java::project_cc_java/2934 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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
// }
// /** The key color is the... | {
"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... | a3 = TonalPalette.fromHueAndChroma(hue + 60., 24.); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/palettes/CorePalette.java",
"task_id": "project_cc_java/2934"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/palettes/CorePalette.java",
"groundtruth_start_lineno": 66,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 67,
"task_id": "project_cc_java/2934"
}
} |
cross_code_eval_java::project_cc_java/2942 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/HctSolver.java
// static double chromaticAdaptation(doubl... | {
"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.clampInt(0, 255, (int) Math.round(delinearized * 255.0)); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/utils/ColorUtils.java",
"task_id": "project_cc_java/2942"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/utils/ColorUtils.java",
"groundtruth_start_lineno": 233,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 234,
"task_id": "project_cc_java/2942"
}
} |
cross_code_eval_java::project_cc_java/2955 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// m3color/src/main/java/com/kyant/m3color/hct/Hct.java
// return new Hct(argb);
// }
// private H... | {
"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 new TonalPalette(hct.getHue(), hct.getChroma(), hct); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/palettes/TonalPalette.java",
"task_id": "project_cc_java/2955"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/palettes/TonalPalette.java",
"groundtruth_start_lineno": 49,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 50,
"task_id": "project_cc_java/2955"
}
} |
cross_code_eval_java::project_cc_java/2935 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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
// }
// /** The key color is the... | {
"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... | .n1 = TonalPalette.fromHueAndChroma(hue, 4.); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/palettes/CorePalette.java",
"task_id": "project_cc_java/2935"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/palettes/CorePalette.java",
"groundtruth_start_lineno": 67,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 68,
"task_id": "project_cc_java/2935"
}
} |
cross_code_eval_java::project_cc_java/2941 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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
// momentsG = new int[TOTAL_SIZE]... | {
"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.matrixMultiply(new double[] { | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/utils/ColorUtils.java",
"task_id": "project_cc_java/2941"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/utils/ColorUtils.java",
"groundtruth_start_lineno": 106,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 107,
"task_id": "project_cc_java/2941"
}
} |
cross_code_eval_java::project_cc_java/2950 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/blend/Blend.java
// fromHct.getHue()
// ... | {
"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... | differenceDegrees(hct.getHue(), chosenHct.getHue()) < differenceDegrees) { | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/score/Score.java",
"task_id": "project_cc_java/2950"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/score/Score.java",
"groundtruth_start_lineno": 131,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 132,
"task_id": "project_cc_java/2950"
}
} |
cross_code_eval_java::project_cc_java/2944 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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
// int hue = MathUtils.... | {
"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... | ) Math.floor(hct.getHue()); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/score/Score.java",
"task_id": "project_cc_java/2944"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/score/Score.java",
"groundtruth_start_lineno": 85,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 86,
"task_id": "project_cc_java/2944"
}
} |
cross_code_eval_java::project_cc_java/2958 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// m3color/src/main/java/com/kyant/m3color/hct/Hct.java
// int argb = HctSolver.solveToInt(hue, chroma... | {
"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... | = Math.abs(smallestDeltaHct.getChroma() - chroma); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/palettes/TonalPalette.java",
"task_id": "project_cc_java/2958"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/palettes/TonalPalette.java",
"groundtruth_start_lineno": 74,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 75,
"task_id": "project_cc_java/2958"
}
} |
cross_code_eval_java::project_cc_java/2952 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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
// int hue = MathUtils.... | {
"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.sanitizeDegreesInt(i); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/score/Score.java",
"task_id": "project_cc_java/2952"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/score/Score.java",
"groundtruth_start_lineno": 95,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 96,
"task_id": "project_cc_java/2952"
}
} |
cross_code_eval_java::project_cc_java/2949 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/blend/Blend.java
// fromHct.getHue()
// ... | {
"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... | if (MathUtils.differenceDegrees(hct.getHue(), chosenHct.getHue()) < differenceDegrees) { | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/score/Score.java",
"task_id": "project_cc_java/2949"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/score/Score.java",
"groundtruth_start_lineno": 131,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 132,
"task_id": "project_cc_java/2949"
}
} |
cross_code_eval_java::project_cc_java/2946 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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 hue a... | {
"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... | filter && (hct.getChroma() < CUTOFF_CHROMA || proportion <= CUTOFF_EXCITED_PROPORTION)) { | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/score/Score.java",
"task_id": "project_cc_java/2946"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/score/Score.java",
"groundtruth_start_lineno": 106,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 107,
"task_id": "project_cc_java/2946"
}
} |
cross_code_eval_java::project_cc_java/2945 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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
// int hue = MathUtils.... | {
"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.sanitizeDegreesInt((int) Math.round(hct.getHue())); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/score/Score.java",
"task_id": "project_cc_java/2945"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/score/Score.java",
"groundtruth_start_lineno": 104,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 105,
"task_id": "project_cc_java/2945"
}
} |
cross_code_eval_java::project_cc_java/2957 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// m3color/src/main/java/com/kyant/m3color/hct/Hct.java
// int argb = HctSolver.solveToInt(hue, chroma... | {
"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... | smallestDeltaHct = Hct.from(hue, chroma, startTone); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/palettes/TonalPalette.java",
"task_id": "project_cc_java/2957"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/palettes/TonalPalette.java",
"groundtruth_start_lineno": 73,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 74,
"task_id": "project_cc_java/2957"
}
} |
cross_code_eval_java::project_cc_java/2953 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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
// int hue = MathUtils.... | {
"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.sanitizeDegreesInt((int) Math.round(hct.getHue())); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/score/Score.java",
"task_id": "project_cc_java/2953"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/score/Score.java",
"groundtruth_start_lineno": 104,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 105,
"task_id": "project_cc_java/2953"
}
} |
cross_code_eval_java::project_cc_java/2943 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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
// int iR = (red >> bitsToRemov... | {
"prefix": "/*\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by ap... | = Hct.fromInt(entry.getKey()); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/score/Score.java",
"task_id": "project_cc_java/2943"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/score/Score.java",
"groundtruth_start_lineno": 83,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 84,
"task_id": "project_cc_java/2943"
}
} |
cross_code_eval_java::project_cc_java/2937 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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
// }
// /** The key color is the... | {
"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... | = TonalPalette.fromHueAndChroma(25, 84.); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/palettes/CorePalette.java",
"task_id": "project_cc_java/2937"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/palettes/CorePalette.java",
"groundtruth_start_lineno": 70,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 71,
"task_id": "project_cc_java/2937"
}
} |
cross_code_eval_java::project_cc_java/2947 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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
// lastTemp = getRelative... | {
"prefix": "/*\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by ap... | hct.getChroma() < TARGET_CHROMA ? WEIGHT_CHROMA_BELOW : WEIGHT_CHROMA_ABOVE; | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/score/Score.java",
"task_id": "project_cc_java/2947"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/score/Score.java",
"groundtruth_start_lineno": 112,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 113,
"task_id": "project_cc_java/2947"
}
} |
cross_code_eval_java::project_cc_java/2956 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// m3color/src/main/java/com/kyant/m3color/hct/Hct.java
// return new Hct(argb);
// }
// private H... | {
"prefix": "/*\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by ap... | (), hct.getChroma(), hct); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/palettes/TonalPalette.java",
"task_id": "project_cc_java/2956"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/palettes/TonalPalette.java",
"groundtruth_start_lineno": 49,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 50,
"task_id": "project_cc_java/2956"
}
} |
cross_code_eval_java::project_cc_java/2971 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/dislike/DislikeAnalyzer.java
// /**
// * Returns true if c... | {
"prefix": "/*\n * Copyright 2022 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by ap... | ColorUtils.labFromArgb(color.toInt()); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/temperature/TemperatureCache.java",
"task_id": "project_cc_java/2971"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/temperature/TemperatureCache.java",
"groundtruth_start_lineno": 245,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 246,
"task_id": "project_cc_java/2971"
}
} |
cross_code_eval_java::project_cc_java/2972 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// m3color/src/main/java/com/kyant/m3color/score/Score.java
// // Hues with more usage in neighboring ... | {
"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... | (hue, input.getChroma(), input.getTone()); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/temperature/TemperatureCache.java",
"task_id": "project_cc_java/2972"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/temperature/TemperatureCache.java",
"groundtruth_start_lineno": 270,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 271,
"task_id": "project_cc_java/2972"
}
} |
cross_code_eval_java::project_cc_java/2938 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// m3color/src/main/java/com/kyant/m3color/hct/Hct.java
// return new Hct(argb);
// }
// private H... | {
"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... | int red = ColorUtils.redFromArgb(argb); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/utils/StringUtils.java",
"task_id": "project_cc_java/2938"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/utils/StringUtils.java",
"groundtruth_start_lineno": 28,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 29,
"task_id": "project_cc_java/2938"
}
} |
cross_code_eval_java::project_cc_java/2960 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// m3color/src/main/java/com/kyant/m3color/dynamiccolor/DynamicColor.java
// // Avoids the 50-59 awk... | {
"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... | hctAdd = Hct.from(hue, chroma, startTone + delta); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/palettes/TonalPalette.java",
"task_id": "project_cc_java/2960"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/palettes/TonalPalette.java",
"groundtruth_start_lineno": 90,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 91,
"task_id": "project_cc_java/2960"
}
} |
cross_code_eval_java::project_cc_java/2959 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// m3color/src/main/java/com/kyant/m3color/hct/Hct.java
// int argb = HctSolver.solveToInt(hue, chroma... | {
"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... | == Math.round(smallestDeltaHct.getChroma())) { | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/palettes/TonalPalette.java",
"task_id": "project_cc_java/2959"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/palettes/TonalPalette.java",
"groundtruth_start_lineno": 86,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 87,
"task_id": "project_cc_java/2959"
}
} |
cross_code_eval_java::project_cc_java/2968 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/SchemeNeutral.java
// TonalPalette.fromHueAndChr... | {
"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... | input.getHue(), coldestHue, warmestHue); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/temperature/TemperatureCache.java",
"task_id": "project_cc_java/2968"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/temperature/TemperatureCache.java",
"groundtruth_start_lineno": 75,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 76,
"task_id": "project_cc_java/2968"
}
} |
cross_code_eval_java::project_cc_java/2966 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// m3color/src/main/java/com/kyant/m3color/dynamiccolor/DynamicColor.java
// * colors. One of them ... | {
"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... | coldestHue = getColdest().getHue(); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/temperature/TemperatureCache.java",
"task_id": "project_cc_java/2966"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/temperature/TemperatureCache.java",
"groundtruth_start_lineno": 69,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 70,
"task_id": "project_cc_java/2966"
}
} |
cross_code_eval_java::project_cc_java/2969 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/SchemeContent.java
// TonalPalette.fromHueAndChr... | {
"prefix": "/*\n * Copyright 2022 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by ap... | round(input.getHue())); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/temperature/TemperatureCache.java",
"task_id": "project_cc_java/2969"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/temperature/TemperatureCache.java",
"groundtruth_start_lineno": 80,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 81,
"task_id": "project_cc_java/2969"
}
} |
cross_code_eval_java::project_cc_java/2964 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// m3color/src/main/java/com/kyant/m3color/hct/Hct.java
// int argb = HctSolver.solveToInt(hue, chroma... | {
"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... | color = Hct.from(this.hue, this.chroma, tone).toInt(); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/palettes/TonalPalette.java",
"task_id": "project_cc_java/2964"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/palettes/TonalPalette.java",
"groundtruth_start_lineno": 119,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 120,
"task_id": "project_cc_java/2964"
}
} |
cross_code_eval_java::project_cc_java/2979 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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
// * axis.
// * @param viewingConditio... | {
"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... | .getChroma(), ColorUtils.lstarFromY(viewedInVc[1])); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/hct/Hct.java",
"task_id": "project_cc_java/2979"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/hct/Hct.java",
"groundtruth_start_lineno": 146,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 147,
"task_id": "project_cc_java/2979"
}
} |
cross_code_eval_java::project_cc_java/2975 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// m3color/src/main/java/com/kyant/m3color/score/Score.java
// // Hues with more usage in neighboring ... | {
"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... | hue = MathUtils.sanitizeDegreesInt(startHue + i); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/temperature/TemperatureCache.java",
"task_id": "project_cc_java/2975"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/temperature/TemperatureCache.java",
"groundtruth_start_lineno": 135,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 136,
"task_id": "project_cc_java/2975"
}
} |
cross_code_eval_java::project_cc_java/2981 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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
// * <p>For example, white under the traditiona... | {
"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... | Cam16.fromInt(toInt()); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/hct/Hct.java",
"task_id": "project_cc_java/2981"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/hct/Hct.java",
"groundtruth_start_lineno": 134,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 135,
"task_id": "project_cc_java/2981"
}
} |
cross_code_eval_java::project_cc_java/2982 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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... | recastInVc.getHue(), recastInVc.getChroma(), ColorUtils.lstarFromY(viewedInVc[1])); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/hct/Hct.java",
"task_id": "project_cc_java/2982"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/hct/Hct.java",
"groundtruth_start_lineno": 146,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 147,
"task_id": "project_cc_java/2982"
}
} |
cross_code_eval_java::project_cc_java/2974 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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.sanitizeDegreesDouble(
startHue + directionOfRotation * hueAddend); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/temperature/TemperatureCache.java",
"task_id": "project_cc_java/2974"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/temperature/TemperatureCache.java",
"groundtruth_start_lineno": 86,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 88,
"task_id": "project_cc_java/2974"
}
} |
cross_code_eval_java::project_cc_java/2992 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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... | fromCam = Cam16.fromInt(from); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/blend/Blend.java",
"task_id": "project_cc_java/2992"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/blend/Blend.java",
"groundtruth_start_lineno": 62,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 63,
"task_id": "project_cc_java/2992"
}
} |
cross_code_eval_java::project_cc_java/2991 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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
// */
// // AndroidJdkLibsCheck... | {
"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... | = Cam16.fromInt(ucs); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/blend/Blend.java",
"task_id": "project_cc_java/2991"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/blend/Blend.java",
"groundtruth_start_lineno": 61,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 62,
"task_id": "project_cc_java/2991"
}
} |
cross_code_eval_java::project_cc_java/2978 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/PointProviderLab.java
// /** Convert a 3-element arr... | {
"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... | .toRadians(MathUtils.sanitizeDegreesDouble(hue - 50.))); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/temperature/TemperatureCache.java",
"task_id": "project_cc_java/2978"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/temperature/TemperatureCache.java",
"groundtruth_start_lineno": 251,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 252,
"task_id": "project_cc_java/2978"
}
} |
cross_code_eval_java::project_cc_java/2980 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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
// if (isContent) {
// this... | {
"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... | tone = ColorUtils.lstarFromArgb(argb); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/hct/Hct.java",
"task_id": "project_cc_java/2980"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/hct/Hct.java",
"groundtruth_start_lineno": 154,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 155,
"task_id": "project_cc_java/2980"
}
} |
cross_code_eval_java::project_cc_java/2977 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// m3color/src/main/java/com/kyant/m3color/hct/Hct.java
// int argb = HctSolver.solveToInt(hue, chroma... | {
"prefix": "/*\n * Copyright 2022 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by ap... | hue = MathUtils.sanitizeDegreesDouble(Math.toDegrees(Math.atan2(lab[2], lab[1]))); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/temperature/TemperatureCache.java",
"task_id": "project_cc_java/2977"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/temperature/TemperatureCache.java",
"groundtruth_start_lineno": 246,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 247,
"task_id": "project_cc_java/2977"
}
} |
cross_code_eval_java::project_cc_java/2994 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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... | fromCam.getChroma(), ColorUtils.lstarFromArgb(from)); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/blend/Blend.java",
"task_id": "project_cc_java/2994"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/blend/Blend.java",
"groundtruth_start_lineno": 63,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 64,
"task_id": "project_cc_java/2994"
}
} |
cross_code_eval_java::project_cc_java/2993 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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... | ucsCam.getHue(), fromCam.getChroma(), ColorUtils.lstarFromArgb(from)); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/blend/Blend.java",
"task_id": "project_cc_java/2993"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/blend/Blend.java",
"groundtruth_start_lineno": 63,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 64,
"task_id": "project_cc_java/2993"
}
} |
cross_code_eval_java::project_cc_java/2987 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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
// public double getHue() {
// ... | {
"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... | HctSolver.solveToInt(hue, chroma, tone); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/hct/Hct.java",
"task_id": "project_cc_java/2987"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/hct/Hct.java",
"groundtruth_start_lineno": 55,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 56,
"task_id": "project_cc_java/2987"
}
} |
cross_code_eval_java::project_cc_java/3001 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/HctSolver.java
// public static Cam16 solveToCam(double h... | {
"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... | toCam.getAstar(); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/blend/Blend.java",
"task_id": "project_cc_java/3001"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/blend/Blend.java",
"groundtruth_start_lineno": 82,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 83,
"task_id": "project_cc_java/3001"
}
} |
cross_code_eval_java::project_cc_java/2985 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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... | hue = cam.getHue(); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/hct/Hct.java",
"task_id": "project_cc_java/2985"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/hct/Hct.java",
"groundtruth_start_lineno": 152,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 153,
"task_id": "project_cc_java/2985"
}
} |
cross_code_eval_java::project_cc_java/2999 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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... | fromCam.getBstar(); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/blend/Blend.java",
"task_id": "project_cc_java/2999"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/blend/Blend.java",
"groundtruth_start_lineno": 80,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 81,
"task_id": "project_cc_java/2999"
}
} |
cross_code_eval_java::project_cc_java/3003 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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
// return dE;
// }
// /** Hue in CAM16 *... | {
"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 Cam16.fromUcs(jstar, astar, bstar).toInt(); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/blend/Blend.java",
"task_id": "project_cc_java/3003"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/blend/Blend.java",
"groundtruth_start_lineno": 87,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 88,
"task_id": "project_cc_java/3003"
}
} |
cross_code_eval_java::project_cc_java/2997 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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... | double fromJ = fromCam.getJstar(); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/blend/Blend.java",
"task_id": "project_cc_java/2997"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/blend/Blend.java",
"groundtruth_start_lineno": 78,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 79,
"task_id": "project_cc_java/2997"
}
} |
cross_code_eval_java::project_cc_java/3002 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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
// return dE;
// }
// /** Hue in CAM16 *... | {
"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... | toB = toCam.getBstar(); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/blend/Blend.java",
"task_id": "project_cc_java/3002"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/blend/Blend.java",
"groundtruth_start_lineno": 83,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 84,
"task_id": "project_cc_java/3002"
}
} |
cross_code_eval_java::project_cc_java/3004 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by ap... | Hct.fromInt(designColor); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/blend/Blend.java",
"task_id": "project_cc_java/3004"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/blend/Blend.java",
"groundtruth_start_lineno": 39,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 40,
"task_id": "project_cc_java/3004"
}
} |
cross_code_eval_java::project_cc_java/3007 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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 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... | differenceDegrees = MathUtils.differenceDegrees(fromHct.getHue(), toHct.getHue()); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/blend/Blend.java",
"task_id": "project_cc_java/3007"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/blend/Blend.java",
"groundtruth_start_lineno": 41,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 42,
"task_id": "project_cc_java/3007"
}
} |
cross_code_eval_java::project_cc_java/3014 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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... | (), fromCam.getChroma(), ColorUtils.lstarFromArgb(from)); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/blend/Blend.java",
"task_id": "project_cc_java/3014"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/blend/Blend.java",
"groundtruth_start_lineno": 63,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 64,
"task_id": "project_cc_java/3014"
}
} |
cross_code_eval_java::project_cc_java/3025 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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
// private Hct getColdest()... | {
"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... | * viewingConditions.getNbb(); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/hct/Cam16.java",
"task_id": "project_cc_java/3025"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/hct/Cam16.java",
"groundtruth_start_lineno": 255,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 256,
"task_id": "project_cc_java/3025"
}
} |
cross_code_eval_java::project_cc_java/3006 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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 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.differenceDegrees(fromHct.getHue(), toHct.getHue()); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/blend/Blend.java",
"task_id": "project_cc_java/3006"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/blend/Blend.java",
"groundtruth_start_lineno": 41,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 42,
"task_id": "project_cc_java/3006"
}
} |
cross_code_eval_java::project_cc_java/3008 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// m3color/src/main/java/com/kyant/m3color/score/Score.java
// break;
// }
// ... | {
"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... | fromHct.getHue()
+ rotationDegrees * MathUtils.rotationDirection(fromHct.getHue(), toHct.getHue())); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/blend/Blend.java",
"task_id": "project_cc_java/3008"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/blend/Blend.java",
"groundtruth_start_lineno": 45,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 47,
"task_id": "project_cc_java/3008"
}
} |
cross_code_eval_java::project_cc_java/3030 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/HctSolver.java
// double a = gamma * hCos;
// d... | {
"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... | viewingConditions.getAw() + 4.0)
* viewingConditions.getFlRoot(); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/hct/Cam16.java",
"task_id": "project_cc_java/3030"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/hct/Cam16.java",
"groundtruth_start_lineno": 267,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 269,
"task_id": "project_cc_java/3030"
}
} |
cross_code_eval_java::project_cc_java/3018 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// m3color/src/main/java/com/kyant/m3color/hct/Hct.java
// return new Hct(argb);
// }
// private H... | {
"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.argbFromXyz(xyz[0], xyz[1], xyz[2]); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/hct/Cam16.java",
"task_id": "project_cc_java/3018"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/hct/Cam16.java",
"groundtruth_start_lineno": 382,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 383,
"task_id": "project_cc_java/3018"
}
} |
cross_code_eval_java::project_cc_java/3027 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/HctSolver.java
// double a = gamma * hCos;
// d... | {
"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... | viewingConditions.getC() * viewingConditions.getZ()); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/hct/Cam16.java",
"task_id": "project_cc_java/3027"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/hct/Cam16.java",
"groundtruth_start_lineno": 262,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 263,
"task_id": "project_cc_java/3027"
}
} |
cross_code_eval_java::project_cc_java/3011 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// m3color/src/main/java/com/kyant/m3color/score/Score.java
// break;
// }
// ... | {
"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... | outputHue, fromHct.getChroma(), fromHct.getTone()).toInt(); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/blend/Blend.java",
"task_id": "project_cc_java/3011"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/blend/Blend.java",
"groundtruth_start_lineno": 47,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 48,
"task_id": "project_cc_java/3011"
}
} |
cross_code_eval_java::project_cc_java/3012 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// m3color/src/main/java/com/kyant/m3color/score/Score.java
// break;
// }
// ... | {
"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... | from(outputHue, fromHct.getChroma(), fromHct.getTone()).toInt(); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/blend/Blend.java",
"task_id": "project_cc_java/3012"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/blend/Blend.java",
"groundtruth_start_lineno": 47,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 48,
"task_id": "project_cc_java/3012"
}
} |
cross_code_eval_java::project_cc_java/3019 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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
// double linearB = matrix[2][0] * x ... | {
"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... | viewingConditions.getRgbD()[0] * rT; | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/hct/Cam16.java",
"task_id": "project_cc_java/3019"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/hct/Cam16.java",
"groundtruth_start_lineno": 224,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 225,
"task_id": "project_cc_java/3019"
}
} |
cross_code_eval_java::project_cc_java/3024 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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
// double linearB = matrix[2][0] * x ... | {
"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... | Math.pow(viewingConditions.getFl() * Math.abs(bD) / 100.0, 0.42); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/hct/Cam16.java",
"task_id": "project_cc_java/3024"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/hct/Cam16.java",
"groundtruth_start_lineno": 231,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 232,
"task_id": "project_cc_java/3024"
}
} |
cross_code_eval_java::project_cc_java/3028 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/HctSolver.java
// double a = gamma * hCos;
// d... | {
"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... | * viewingConditions.getZ()); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/hct/Cam16.java",
"task_id": "project_cc_java/3028"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/hct/Cam16.java",
"groundtruth_start_lineno": 262,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 263,
"task_id": "project_cc_java/3028"
}
} |
cross_code_eval_java::project_cc_java/3017 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/StringUtils.java
// * Hex string representing color, e... | {
"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... | double blueL = ColorUtils.linearized(blue); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/hct/Cam16.java",
"task_id": "project_cc_java/3017"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/hct/Cam16.java",
"groundtruth_start_lineno": 207,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 208,
"task_id": "project_cc_java/3017"
}
} |
cross_code_eval_java::project_cc_java/3032 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/HctSolver.java
// // Operations inlined from Cam16 to... | {
"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... | eHue * viewingConditions.getNc() * viewingConditions.getNcb(); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/hct/Cam16.java",
"task_id": "project_cc_java/3032"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/hct/Cam16.java",
"groundtruth_start_lineno": 273,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 274,
"task_id": "project_cc_java/3032"
}
} |
cross_code_eval_java::project_cc_java/3031 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/HctSolver.java
// double a = gamma * hCos;
// d... | {
"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... | * viewingConditions.getFlRoot(); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/hct/Cam16.java",
"task_id": "project_cc_java/3031"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/hct/Cam16.java",
"groundtruth_start_lineno": 268,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 269,
"task_id": "project_cc_java/3031"
}
} |
cross_code_eval_java::project_cc_java/3022 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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
// double linearB = matrix[2][0] * x ... | {
"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... | rAF = Math.pow(viewingConditions.getFl() * Math.abs(rD) / 100.0, 0.42); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/hct/Cam16.java",
"task_id": "project_cc_java/3022"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/hct/Cam16.java",
"groundtruth_start_lineno": 229,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 230,
"task_id": "project_cc_java/3022"
}
} |
cross_code_eval_java::project_cc_java/3036 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/HctSolver.java
// // Operations inlined from Cam16 to... | {
"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... | * Math.sqrt((alpha * viewingConditions.getC()) / (viewingConditions.getAw() + 4.0)); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/hct/Cam16.java",
"task_id": "project_cc_java/3036"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/hct/Cam16.java",
"groundtruth_start_lineno": 281,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 282,
"task_id": "project_cc_java/3036"
}
} |
cross_code_eval_java::project_cc_java/3015 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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
// }
// /** Returns whether a color i... | {
"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... | double redL = ColorUtils.linearized(red); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/hct/Cam16.java",
"task_id": "project_cc_java/3015"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/hct/Cam16.java",
"groundtruth_start_lineno": 205,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 206,
"task_id": "project_cc_java/3015"
}
} |
cross_code_eval_java::project_cc_java/3035 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/HctSolver.java
// // Operations inlined from Cam16 to... | {
"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... | m = c * viewingConditions.getFlRoot(); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/hct/Cam16.java",
"task_id": "project_cc_java/3035"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/hct/Cam16.java",
"groundtruth_start_lineno": 279,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 280,
"task_id": "project_cc_java/3035"
}
} |
cross_code_eval_java::project_cc_java/3026 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/HctSolver.java
// double a = gamma * hCos;
// d... | {
"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... | viewingConditions.getAw(),
viewingConditions.getC() * viewingConditions.getZ()); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/hct/Cam16.java",
"task_id": "project_cc_java/3026"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/hct/Cam16.java",
"groundtruth_start_lineno": 261,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 263,
"task_id": "project_cc_java/3026"
}
} |
cross_code_eval_java::project_cc_java/3034 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/HctSolver.java
// // Operations inlined from Cam16 to... | {
"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... | pow(0.29, viewingConditions.getN()), 0.73) * Math.pow(t, 0.9); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/hct/Cam16.java",
"task_id": "project_cc_java/3034"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/hct/Cam16.java",
"groundtruth_start_lineno": 276,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 277,
"task_id": "project_cc_java/3034"
}
} |
cross_code_eval_java::project_cc_java/3037 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/HctSolver.java
// // Operations inlined from Cam16 to... | {
"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... | alpha * viewingConditions.getC()) / (viewingConditions.getAw() + 4.0)); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/hct/Cam16.java",
"task_id": "project_cc_java/3037"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/hct/Cam16.java",
"groundtruth_start_lineno": 281,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 282,
"task_id": "project_cc_java/3037"
}
} |
cross_code_eval_java::project_cc_java/3040 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/HctSolver.java
// double a = gamma * hCos;
// d... | {
"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... | viewingConditions.getFlRoot(); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/hct/Cam16.java",
"task_id": "project_cc_java/3040"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/hct/Cam16.java",
"groundtruth_start_lineno": 314,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 315,
"task_id": "project_cc_java/3040"
}
} |
cross_code_eval_java::project_cc_java/3047 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/HctSolver.java
// // Operations inlined from Cam16 to... | {
"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... | Math.pow(getJ() / 100.0, 1.0 / viewingConditions.getC() / viewingConditions.getZ()); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/hct/Cam16.java",
"task_id": "project_cc_java/3047"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/hct/Cam16.java",
"groundtruth_start_lineno": 397,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 398,
"task_id": "project_cc_java/3047"
}
} |
cross_code_eval_java::project_cc_java/3048 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/HctSolver.java
// // Operations inlined from Cam16 to... | {
"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... | ) / 100.0, 1.0 / viewingConditions.getC() / viewingConditions.getZ()); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/hct/Cam16.java",
"task_id": "project_cc_java/3048"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/hct/Cam16.java",
"groundtruth_start_lineno": 397,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 398,
"task_id": "project_cc_java/3048"
}
} |
cross_code_eval_java::project_cc_java/3053 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/HctSolver.java
// new double[] {rCScaled, gCS... | {
"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... | (100.0 / viewingConditions.getFl()) * Math.pow(gCBase, 1.0 / 0.42); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/hct/Cam16.java",
"task_id": "project_cc_java/3053"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/hct/Cam16.java",
"groundtruth_start_lineno": 416,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 417,
"task_id": "project_cc_java/3053"
}
} |
cross_code_eval_java::project_cc_java/3044 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/blend/Blend.java
// return Cam16.fromUcs(jstar, astar, bsta... | {
"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... | double c = m2 / viewingConditions.getFlRoot(); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/hct/Cam16.java",
"task_id": "project_cc_java/3044"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/hct/Cam16.java",
"groundtruth_start_lineno": 357,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 358,
"task_id": "project_cc_java/3044"
}
} |
cross_code_eval_java::project_cc_java/3051 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/HctSolver.java
// // Operations inlined from Cam16 to... | {
"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... | ac / viewingConditions.getNbb()); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/hct/Cam16.java",
"task_id": "project_cc_java/3051"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/hct/Cam16.java",
"groundtruth_start_lineno": 399,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 400,
"task_id": "project_cc_java/3051"
}
} |
cross_code_eval_java::project_cc_java/3060 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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... | return QuantizerWsmeans.quantize(pixels, wuClusters, maxColors); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/quantize/QuantizerCelebi.java",
"task_id": "project_cc_java/3060"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/quantize/QuantizerCelebi.java",
"groundtruth_start_lineno": 54,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 55,
"task_id": "project_cc_java/3060"
}
} |
cross_code_eval_java::project_cc_java/3055 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/ViewingConditions.java
// };
// double aw = ((2... | {
"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... | / viewingConditions.getRgbD()[0]; | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/hct/Cam16.java",
"task_id": "project_cc_java/3055"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/hct/Cam16.java",
"groundtruth_start_lineno": 420,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 421,
"task_id": "project_cc_java/3055"
}
} |
cross_code_eval_java::project_cc_java/3045 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/HctSolver.java
// double a = gamma * hCos;
// d... | {
"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... | - Math.pow(0.29, viewingConditions.getN()), 0.73), 1.0 / 0.9); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/hct/Cam16.java",
"task_id": "project_cc_java/3045"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/hct/Cam16.java",
"groundtruth_start_lineno": 391,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 392,
"task_id": "project_cc_java/3045"
}
} |
cross_code_eval_java::project_cc_java/3058 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/QuantizerCelebi.java
// * Reduce the number of colo... | {
"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... | lab = ColorUtils.labFromArgb(argb); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/quantize/PointProviderLab.java",
"task_id": "project_cc_java/3058"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/quantize/PointProviderLab.java",
"groundtruth_start_lineno": 30,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 31,
"task_id": "project_cc_java/3058"
}
} |
cross_code_eval_java::project_cc_java/3065 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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
// }
// return ... | {
"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... | errorPalette = TonalPalette.fromHueAndChroma(25.0, 84.0); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/scheme/DynamicScheme.java",
"task_id": "project_cc_java/3065"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/scheme/DynamicScheme.java",
"groundtruth_start_lineno": 62,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 63,
"task_id": "project_cc_java/3065"
}
} |
cross_code_eval_java::project_cc_java/3067 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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
// return viewed(ViewingConditions.DEFAULT);... | {
"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.whitePointD65(),
(200.0 / Math.PI * 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/3067"
} | {
"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": 169,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 174,
"task_id": "project_cc_java/3067"
}
} |
cross_code_eval_java::project_cc_java/3063 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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
// */
// public List<Hct... | {
"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.sanitizeDegreesDouble(sourceHue + rotations[0]); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/scheme/DynamicScheme.java",
"task_id": "project_cc_java/3063"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/scheme/DynamicScheme.java",
"groundtruth_start_lineno": 78,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 79,
"task_id": "project_cc_java/3063"
}
} |
cross_code_eval_java::project_cc_java/3056 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/ViewingConditions.java
// };
// double aw = ((2... | {
"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... | gC / viewingConditions.getRgbD()[1]; | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/hct/Cam16.java",
"task_id": "project_cc_java/3056"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/hct/Cam16.java",
"groundtruth_start_lineno": 421,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 422,
"task_id": "project_cc_java/3056"
}
} |
cross_code_eval_java::project_cc_java/3059 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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
// private Hct getColdest()... | {
"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.argbFromLab(lab[0], lab[1], lab[2]); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/quantize/PointProviderLab.java",
"task_id": "project_cc_java/3059"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/quantize/PointProviderLab.java",
"groundtruth_start_lineno": 37,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 38,
"task_id": "project_cc_java/3059"
}
} |
cross_code_eval_java::project_cc_java/3066 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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
// // For information on 0.4 constan... | {
"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... | n = (ColorUtils.yFromLstar(backgroundLstar) / whitePoint[1]); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/hct/ViewingConditions.java",
"task_id": "project_cc_java/3066"
} | {
"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": 140,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 141,
"task_id": "project_cc_java/3066"
}
} |
cross_code_eval_java::project_cc_java/3052 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/HctSolver.java
// new double[] {rCScaled, gCS... | {
"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... | 100.0 / viewingConditions.getFl()) * Math.pow(rCBase, 1.0 / 0.42); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/hct/Cam16.java",
"task_id": "project_cc_java/3052"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/hct/Cam16.java",
"groundtruth_start_lineno": 413,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 414,
"task_id": "project_cc_java/3052"
}
} |
cross_code_eval_java::project_cc_java/3071 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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
// double ac =
// viewingConditions.... | {
"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... | d = MathUtils.clampDouble(0.0, 1.0, d); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/hct/ViewingConditions.java",
"task_id": "project_cc_java/3071"
} | {
"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": 130,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 131,
"task_id": "project_cc_java/3071"
}
} |
cross_code_eval_java::project_cc_java/3061 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/SchemeNeutral.java
// TonalPalette.fromHueAndChr... | {
"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... | sourceColorArgb = sourceColorHct.toInt(); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/scheme/DynamicScheme.java",
"task_id": "project_cc_java/3061"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/scheme/DynamicScheme.java",
"groundtruth_start_lineno": 51,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 52,
"task_id": "project_cc_java/3061"
}
} |
cross_code_eval_java::project_cc_java/3070 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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
// double rD = viewingConditions.getRgbD()[0... | {
"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.lerp(0.525, 0.59, ((f - 0.8) * 10.0)); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/hct/ViewingConditions.java",
"task_id": "project_cc_java/3070"
} | {
"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": 125,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 126,
"task_id": "project_cc_java/3070"
}
} |
cross_code_eval_java::project_cc_java/3062 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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
// */
// public List<Hct... | {
"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... | final double sourceHue = sourceColorHct.getHue(); | {} | {
"repository": "Kyant0-m3color-eaa1e34",
"file": "m3color/src/main/java/com/kyant/m3color/scheme/DynamicScheme.java",
"task_id": "project_cc_java/3062"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "m3color/src/main/java/com/kyant/m3color/scheme/DynamicScheme.java",
"groundtruth_start_lineno": 76,
"repository": "Kyant0-m3color-eaa1e34",
"right_context_start_lineno": 77,
"task_id": "project_cc_java/3062"
}
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.