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/260 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// parts/src/org/lineageos/settings/dirac/DiracSettingsFragment.java
// case PREF_HEADSET:
// ... | {
"prefix": "/*\n * Copyright (C) 2018,2020 The LineageOS Project\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * U... | mDiracSound.setMusic(enable ? 1 : 0); | {} | {
"repository": "AOSPA-android_device_xiaomi_sm6225-common-0a9c912",
"file": "parts/src/org/lineageos/settings/dirac/DiracUtils.java",
"task_id": "project_cc_java/260"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "parts/src/org/lineageos/settings/dirac/DiracUtils.java",
"groundtruth_start_lineno": 118,
"repository": "AOSPA-android_device_xiaomi_sm6225-common-0a9c912",
"right_context_start_lineno": 119,
"task_id": "project_cc_java/260"
}
} |
cross_code_eval_java::project_cc_java/258 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// parts/src/org/lineageos/settings/thermal/ThermalSettingsFragment.java
// @Override
// public bo... | {
"prefix": "/*\n * Copyright (C) 2020 The LineageOS Project\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless... | FileUtils.writeLine(THERMAL_SCONFIG, THERMAL_STATE_DEFAULT); | {} | {
"repository": "AOSPA-android_device_xiaomi_sm6225-common-0a9c912",
"file": "parts/src/org/lineageos/settings/thermal/ThermalUtils.java",
"task_id": "project_cc_java/258"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "parts/src/org/lineageos/settings/thermal/ThermalUtils.java",
"groundtruth_start_lineno": 155,
"repository": "AOSPA-android_device_xiaomi_sm6225-common-0a9c912",
"right_context_start_lineno": 156,
"task_id": "project_cc_java/258"
}
} |
cross_code_eval_java::project_cc_java/261 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// parts/src/org/lineageos/settings/dirac/DiracSound.java
// checkStatus(setParameter(DIRACSOUND_P... | {
"prefix": "/*\n * Copyright (C) 2018,2020 The LineageOS Project\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * U... | null && mDiracSound.getMusic() == 1; | {} | {
"repository": "AOSPA-android_device_xiaomi_sm6225-common-0a9c912",
"file": "parts/src/org/lineageos/settings/dirac/DiracUtils.java",
"task_id": "project_cc_java/261"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "parts/src/org/lineageos/settings/dirac/DiracUtils.java",
"groundtruth_start_lineno": 125,
"repository": "AOSPA-android_device_xiaomi_sm6225-common-0a9c912",
"right_context_start_lineno": 126,
"task_id": "project_cc_java/261"
}
} |
cross_code_eval_java::project_cc_java/262 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// parts/src/org/lineageos/settings/dirac/DiracSound.java
// checkStatus(setParameter(new int[]{DI... | {
"prefix": "/*\n * Copyright (C) 2018,2020 The LineageOS Project\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * U... | mDiracSound.setLevel(band, Float.valueOf(level[band])); | {} | {
"repository": "AOSPA-android_device_xiaomi_sm6225-common-0a9c912",
"file": "parts/src/org/lineageos/settings/dirac/DiracUtils.java",
"task_id": "project_cc_java/262"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "parts/src/org/lineageos/settings/dirac/DiracUtils.java",
"groundtruth_start_lineno": 132,
"repository": "AOSPA-android_device_xiaomi_sm6225-common-0a9c912",
"right_context_start_lineno": 133,
"task_id": "project_cc_java/262"
}
} |
cross_code_eval_java::project_cc_java/266 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// parts/src/org/lineageos/settings/BootCompletedReceiver.java
// ThermalUtils.initialize(context)... | {
"prefix": "/*\n * Copyright (C) 2018,2020 The LineageOS Project\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * U... | ? mDiracUtils.isDiracEnabled() : false; | {} | {
"repository": "AOSPA-android_device_xiaomi_sm6225-common-0a9c912",
"file": "parts/src/org/lineageos/settings/dirac/DiracSettingsFragment.java",
"task_id": "project_cc_java/266"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "parts/src/org/lineageos/settings/dirac/DiracSettingsFragment.java",
"groundtruth_start_lineno": 62,
"repository": "AOSPA-android_device_xiaomi_sm6225-common-0a9c912",
"right_context_start_lineno": 63,
"task_id": "project_cc_java/266"
}
} |
cross_code_eval_java::project_cc_java/264 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// parts/src/org/lineageos/settings/speaker/ClearSpeakerFragment.java
// boolean value = (Bool... | {
"prefix": "/*\n * Copyright (C) 2018,2020 The LineageOS Project\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * U... | mDiracSound.setHifiMode(paramInt); | {} | {
"repository": "AOSPA-android_device_xiaomi_sm6225-common-0a9c912",
"file": "parts/src/org/lineageos/settings/dirac/DiracUtils.java",
"task_id": "project_cc_java/264"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "parts/src/org/lineageos/settings/dirac/DiracUtils.java",
"groundtruth_start_lineno": 148,
"repository": "AOSPA-android_device_xiaomi_sm6225-common-0a9c912",
"right_context_start_lineno": 149,
"task_id": "project_cc_java/264"
}
} |
cross_code_eval_java::project_cc_java/376 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// lib/src/main/java/burpgpt/http/GPTClient.java
// logging.logToOutput(String.format("- url: %s\n" ... | {
"prefix": "package burp;\n\nimport java.beans.PropertyChangeEvent;\nimport java.beans.PropertyChangeListener;\nimport java.beans.PropertyChangeSupport;\nimport java.util.Arrays;\nimport java.util.List;\n\nimport burp.api.montoya.BurpExtension;\nimport burp.api.montoya.MontoyaApi;\nimport burp.api.montoya.logging.Lo... | gptClient.updateSettings(newApiKey, newModelId, newMaxPromptSize, newPrompt); | {} | {
"repository": "aress31-burpgpt-79ea6b9",
"file": "lib/src/main/java/burp/MyBurpExtension.java",
"task_id": "project_cc_java/376"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "lib/src/main/java/burp/MyBurpExtension.java",
"groundtruth_start_lineno": 89,
"repository": "aress31-burpgpt-79ea6b9",
"right_context_start_lineno": 90,
"task_id": "project_cc_java/376"
}
} |
cross_code_eval_java::project_cc_java/268 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// parts/src/org/lineageos/settings/speaker/ClearSpeakerFragment.java
// boolean value = (Bool... | {
"prefix": "/*\n * Copyright (C) 2018,2020 The LineageOS Project\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * U... | mDiracUtils.setHifiMode((Boolean) newValue ? 1 : 0); | {} | {
"repository": "AOSPA-android_device_xiaomi_sm6225-common-0a9c912",
"file": "parts/src/org/lineageos/settings/dirac/DiracSettingsFragment.java",
"task_id": "project_cc_java/268"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "parts/src/org/lineageos/settings/dirac/DiracSettingsFragment.java",
"groundtruth_start_lineno": 93,
"repository": "AOSPA-android_device_xiaomi_sm6225-common-0a9c912",
"right_context_start_lineno": 94,
"task_id": "project_cc_java/268"
}
} |
cross_code_eval_java::project_cc_java/267 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// parts/src/org/lineageos/settings/dirac/DiracTileService.java
// super.onClick();
// }
// }
... | {
"prefix": "/*\n * Copyright (C) 2018,2020 The LineageOS Project\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * U... | mDiracUtils.setHeadsetType(Integer.parseInt(newValue.toString())); | {} | {
"repository": "AOSPA-android_device_xiaomi_sm6225-common-0a9c912",
"file": "parts/src/org/lineageos/settings/dirac/DiracSettingsFragment.java",
"task_id": "project_cc_java/267"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "parts/src/org/lineageos/settings/dirac/DiracSettingsFragment.java",
"groundtruth_start_lineno": 90,
"repository": "AOSPA-android_device_xiaomi_sm6225-common-0a9c912",
"right_context_start_lineno": 91,
"task_id": "project_cc_java/267"
}
} |
cross_code_eval_java::project_cc_java/372 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/mrivanplays/papisigns/data/PSConfig.java
// var fieldKey = AnnotationUtil... | {
"prefix": "package com.mrivanplays.papisigns.loader;\n\nimport cloud.commandframework.bukkit.CloudBukkitCapabilities;\nimport cloud.commandframework.execution.CommandExecutionCoordinator;\nimport cloud.commandframework.minecraft.extras.MinecraftHelp;\nimport cloud.commandframework.minecraft.extras.MinecraftHelp.Hel... | .helpMenu.setHelpColors(config.getMessages().getHelpCmd().getHelpColors()); | {} | {
"repository": "ArcanePlugins-PAPISigns-7a07a38",
"file": "src/main/java/com/mrivanplays/papisigns/loader/PapiSigns.java",
"task_id": "project_cc_java/372"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/mrivanplays/papisigns/loader/PapiSigns.java",
"groundtruth_start_lineno": 94,
"repository": "ArcanePlugins-PAPISigns-7a07a38",
"right_context_start_lineno": 95,
"task_id": "project_cc_java/372"
}
} |
cross_code_eval_java::project_cc_java/375 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// lib/src/main/java/burp/MyScanCheck.java
// }
// @Override
// public AuditResult passiveAudi... | {
"prefix": "package burp;\n\nimport java.beans.PropertyChangeEvent;\nimport java.beans.PropertyChangeListener;\nimport java.beans.PropertyChangeSupport;\nimport java.util.Arrays;\nimport java.util.List;\n\nimport burp.api.montoya.BurpExtension;\nimport burp.api.montoya.MontoyaApi;\nimport burp.api.montoya.logging.Lo... | Menu menu = MyMenu.createMenu(this); | {} | {
"repository": "aress31-burpgpt-79ea6b9",
"file": "lib/src/main/java/burp/MyBurpExtension.java",
"task_id": "project_cc_java/375"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "lib/src/main/java/burp/MyBurpExtension.java",
"groundtruth_start_lineno": 62,
"repository": "aress31-burpgpt-79ea6b9",
"right_context_start_lineno": 63,
"task_id": "project_cc_java/375"
}
} |
cross_code_eval_java::project_cc_java/371 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/mrivanplays/papisigns/data/PSConfig.java
// var fieldKey = AnnotationUtil... | {
"prefix": "package com.mrivanplays.papisigns.loader;\n\nimport cloud.commandframework.bukkit.CloudBukkitCapabilities;\nimport cloud.commandframework.execution.CommandExecutionCoordinator;\nimport cloud.commandframework.minecraft.extras.MinecraftHelp;\nimport cloud.commandframework.minecraft.extras.MinecraftHelp.Hel... | (sender, key, args) -> config.getMessages().getHelpCmd().getMessage(key)); | {} | {
"repository": "ArcanePlugins-PAPISigns-7a07a38",
"file": "src/main/java/com/mrivanplays/papisigns/loader/PapiSigns.java",
"task_id": "project_cc_java/371"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/mrivanplays/papisigns/loader/PapiSigns.java",
"groundtruth_start_lineno": 93,
"repository": "ArcanePlugins-PAPISigns-7a07a38",
"right_context_start_lineno": 94,
"task_id": "project_cc_java/371"
}
} |
cross_code_eval_java::project_cc_java/378 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// lib/src/main/java/burpgpt/gui/views/SettingsView.java
// add(applyButton, createGridBagConstrai... | {
"prefix": "package burpgpt.gui.views;\n\nimport java.awt.Color;\nimport java.awt.Desktop;\nimport java.awt.Dimension;\nimport java.awt.Font;\nimport java.awt.event.ActionEvent;\nimport java.awt.event.ActionListener;\nimport java.io.IOException;\nimport java.net.URI;\nimport java.net.URISyntaxException;\nimport java... | description = HtmlResourceLoader.loadHtmlContent("aboutDescription.html"); | {} | {
"repository": "aress31-burpgpt-79ea6b9",
"file": "lib/src/main/java/burpgpt/gui/views/AboutView.java",
"task_id": "project_cc_java/378"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "lib/src/main/java/burpgpt/gui/views/AboutView.java",
"groundtruth_start_lineno": 89,
"repository": "aress31-burpgpt-79ea6b9",
"right_context_start_lineno": 90,
"task_id": "project_cc_java/378"
}
} |
cross_code_eval_java::project_cc_java/270 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// parts/src/org/lineageos/settings/speaker/ClearSpeakerFragment.java
// }
// return false... | {
"prefix": "/*\n * Copyright (C) 2018,2020 The LineageOS Project\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * U... | mDiracUtils.setScenario(Integer.parseInt(newValue.toString())); | {} | {
"repository": "AOSPA-android_device_xiaomi_sm6225-common-0a9c912",
"file": "parts/src/org/lineageos/settings/dirac/DiracSettingsFragment.java",
"task_id": "project_cc_java/270"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "parts/src/org/lineageos/settings/dirac/DiracSettingsFragment.java",
"groundtruth_start_lineno": 99,
"repository": "AOSPA-android_device_xiaomi_sm6225-common-0a9c912",
"right_context_start_lineno": 100,
"task_id": "project_cc_java/270"
}
} |
cross_code_eval_java::project_cc_java/269 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// parts/src/org/lineageos/settings/speaker/ClearSpeakerFragment.java
// }
// return false... | {
"prefix": "/*\n * Copyright (C) 2018,2020 The LineageOS Project\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * U... | mDiracUtils.setLevel((String) newValue); | {} | {
"repository": "AOSPA-android_device_xiaomi_sm6225-common-0a9c912",
"file": "parts/src/org/lineageos/settings/dirac/DiracSettingsFragment.java",
"task_id": "project_cc_java/269"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "parts/src/org/lineageos/settings/dirac/DiracSettingsFragment.java",
"groundtruth_start_lineno": 96,
"repository": "AOSPA-android_device_xiaomi_sm6225-common-0a9c912",
"right_context_start_lineno": 97,
"task_id": "project_cc_java/269"
}
} |
cross_code_eval_java::project_cc_java/374 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// lib/src/main/java/burp/MyBurpExtension.java
// this.prompt = newPrompt;
// this.gptClie... | {
"prefix": "package burpgpt.gui.views;\n\nimport java.awt.Color;\nimport java.awt.Font;\nimport java.awt.GridBagConstraints;\nimport java.awt.GridBagLayout;\nimport java.awt.Insets;\nimport java.beans.PropertyChangeEvent;\nimport java.beans.PropertyChangeListener;\n\nimport javax.swing.JButton;\nimport javax.swing.J... | myBurpExtension.updateSettings(newApiKey, newModelId, newMaxPromptSize, newPromptText); | {} | {
"repository": "aress31-burpgpt-79ea6b9",
"file": "lib/src/main/java/burpgpt/gui/views/SettingsView.java",
"task_id": "project_cc_java/374"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "lib/src/main/java/burpgpt/gui/views/SettingsView.java",
"groundtruth_start_lineno": 126,
"repository": "aress31-burpgpt-79ea6b9",
"right_context_start_lineno": 127,
"task_id": "project_cc_java/374"
}
} |
cross_code_eval_java::project_cc_java/379 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// lib/src/main/java/burpgpt/gui/views/PlaceholdersView.java
// contentPanel.add(createIntroLabel(... | {
"prefix": "package burpgpt.gui;\n\nimport java.awt.BorderLayout;\nimport java.awt.CardLayout;\nimport java.awt.Dimension;\nimport java.util.HashMap;\nimport java.util.Map;\n\nimport javax.swing.JDialog;\nimport javax.swing.JList;\nimport javax.swing.JPanel;\nimport javax.swing.JScrollPane;\nimport javax.swing.ListS... | settingsView.setOnApplyButtonClickListener(() -> { | {} | {
"repository": "aress31-burpgpt-79ea6b9",
"file": "lib/src/main/java/burpgpt/gui/ControllerDialog.java",
"task_id": "project_cc_java/379"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "lib/src/main/java/burpgpt/gui/ControllerDialog.java",
"groundtruth_start_lineno": 80,
"repository": "aress31-burpgpt-79ea6b9",
"right_context_start_lineno": 81,
"task_id": "project_cc_java/379"
}
} |
cross_code_eval_java::project_cc_java/377 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// lib/src/main/java/burp/MyScanCheck.java
// + "</ul>",
// ... | {
"prefix": "package burpgpt.http;\n\nimport java.io.IOException;\nimport java.util.concurrent.TimeUnit;\n\nimport org.apache.commons.lang3.tuple.Pair;\n\nimport com.google.gson.Gson;\nimport com.google.gson.JsonObject;\n\nimport burp.MyBurpExtension;\nimport burp.api.montoya.http.message.HttpRequestResponse;\nimport... | gptRequest.setPrompt(prompt); | {} | {
"repository": "aress31-burpgpt-79ea6b9",
"file": "lib/src/main/java/burpgpt/http/GPTClient.java",
"task_id": "project_cc_java/377"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "lib/src/main/java/burpgpt/http/GPTClient.java",
"groundtruth_start_lineno": 90,
"repository": "aress31-burpgpt-79ea6b9",
"right_context_start_lineno": 91,
"task_id": "project_cc_java/377"
}
} |
cross_code_eval_java::project_cc_java/330 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/github/applejuiceyy/figurastockfish/client/wrap/EngineInfoWrapper.java
// @LuaWhi... | {
"prefix": "package com.github.applejuiceyy.figurastockfish.client.wrap;\n\nimport com.github.applejuiceyy.figurastockfish.client.Bridger;\nimport com.github.applejuiceyy.figurastockfish.client.CompletableFutureWrapper;\nimport com.github.applejuiceyy.figurastockfish.stockfish.StockfishInstance;\n\nimport org.moon.f... | inst.setOption("Skill Level", String.valueOf(level)); | {} | {
"repository": "applejuiceyy-FiguraStockfish-9530a39",
"file": "src/main/java/com/github/applejuiceyy/figurastockfish/client/wrap/StockfishWrapper.java",
"task_id": "project_cc_java/330"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/github/applejuiceyy/figurastockfish/client/wrap/StockfishWrapper.java",
"groundtruth_start_lineno": 41,
"repository": "applejuiceyy-FiguraStockfish-9530a39",
"right_context_start_lineno": 42,
"task_id": "project_cc_java/330"... |
cross_code_eval_java::project_cc_java/319 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/github/applejuiceyy/figurastockfish/stockfish/tree/IntegerNode.java
// if... | {
"prefix": "package com.github.applejuiceyy.figurastockfish.stockfish.tree;\n\nimport com.github.applejuiceyy.figurastockfish.stockfish.StringReader;\n\npublic class StringNode extends Node<StringNode>{\n private final boolean canBeEmpty;\n\n public StringNode(boolean canBeEmpty) {\n super(StringParser:... | (reader.getRest()); | {} | {
"repository": "applejuiceyy-FiguraStockfish-9530a39",
"file": "src/main/java/com/github/applejuiceyy/figurastockfish/stockfish/tree/StringNode.java",
"task_id": "project_cc_java/319"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/github/applejuiceyy/figurastockfish/stockfish/tree/StringNode.java",
"groundtruth_start_lineno": 46,
"repository": "applejuiceyy-FiguraStockfish-9530a39",
"right_context_start_lineno": 47,
"task_id": "project_cc_java/319"
... |
cross_code_eval_java::project_cc_java/309 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/github/applejuiceyy/figurastockfish/stockfish/tree/StringNode.java
// ret... | {
"prefix": "package com.github.applejuiceyy.figurastockfish.stockfish.tree;\n\nimport com.github.applejuiceyy.figurastockfish.stockfish.StringReader;\n\npublic class IntegerNode extends Node<IntegerNode> {\n public IntegerNode() {\n super(IntegerNode.IntegerParser::new);\n }\n\n static class IntegerP... | reader.hint("An Integer"); | {} | {
"repository": "applejuiceyy-FiguraStockfish-9530a39",
"file": "src/main/java/com/github/applejuiceyy/figurastockfish/stockfish/tree/IntegerNode.java",
"task_id": "project_cc_java/309"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/github/applejuiceyy/figurastockfish/stockfish/tree/IntegerNode.java",
"groundtruth_start_lineno": 28,
"repository": "applejuiceyy-FiguraStockfish-9530a39",
"right_context_start_lineno": 29,
"task_id": "project_cc_java/309"
... |
cross_code_eval_java::project_cc_java/317 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/github/applejuiceyy/figurastockfish/stockfish/tree/IntegerNode.java
// }
// ... | {
"prefix": "package com.github.applejuiceyy.figurastockfish.stockfish.tree;\n\nimport com.github.applejuiceyy.figurastockfish.stockfish.StringReader;\n\npublic class StringNode extends Node<StringNode>{\n private final boolean canBeEmpty;\n\n public StringNode(boolean canBeEmpty) {\n super(StringParser:... | if (!reader.canRead()) { | {} | {
"repository": "applejuiceyy-FiguraStockfish-9530a39",
"file": "src/main/java/com/github/applejuiceyy/figurastockfish/stockfish/tree/StringNode.java",
"task_id": "project_cc_java/317"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/github/applejuiceyy/figurastockfish/stockfish/tree/StringNode.java",
"groundtruth_start_lineno": 38,
"repository": "applejuiceyy-FiguraStockfish-9530a39",
"right_context_start_lineno": 39,
"task_id": "project_cc_java/317"
... |
cross_code_eval_java::project_cc_java/389 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/aserto/model/Config.java
// }
// public void setTenantId(String tenantId) {
/... | {
"prefix": "package com.aserto;\n\nimport com.aserto.model.Config;\nimport io.grpc.ManagedChannel;\nimport io.grpc.Metadata;\nimport io.grpc.netty.GrpcSslContexts;\nimport io.grpc.netty.NettyChannelBuilder;\nimport io.grpc.stub.MetadataUtils;\nimport io.netty.handler.ssl.SslContext;\nimport io.netty.handler.ssl.util... | (cfg.getApiKey() != null) { | {} | {
"repository": "aserto-dev-aserto-java-8042222",
"file": "src/main/java/com/aserto/ChannelBuilder.java",
"task_id": "project_cc_java/389"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/aserto/ChannelBuilder.java",
"groundtruth_start_lineno": 77,
"repository": "aserto-dev-aserto-java-8042222",
"right_context_start_lineno": 78,
"task_id": "project_cc_java/389"
}
} |
cross_code_eval_java::project_cc_java/387 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/aserto/model/Config.java
// this.caCertPath = caCertPath;
// }
// }
// t... | {
"prefix": "package com.aserto;\n\nimport com.aserto.model.Config;\nimport io.grpc.ManagedChannel;\nimport io.grpc.Metadata;\nimport io.grpc.netty.GrpcSslContexts;\nimport io.grpc.netty.NettyChannelBuilder;\nimport io.grpc.stub.MetadataUtils;\nimport io.netty.handler.ssl.SslContext;\nimport io.netty.handler.ssl.util... | cfg.getTenantId() != null) { | {} | {
"repository": "aserto-dev-aserto-java-8042222",
"file": "src/main/java/com/aserto/ChannelBuilder.java",
"task_id": "project_cc_java/387"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/aserto/ChannelBuilder.java",
"groundtruth_start_lineno": 73,
"repository": "aserto-dev-aserto-java-8042222",
"right_context_start_lineno": 74,
"task_id": "project_cc_java/387"
}
} |
cross_code_eval_java::project_cc_java/386 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/aserto/model/Config.java
// this.caCertPath = caCertPath;
// }
// }
// t... | {
"prefix": "package com.aserto;\n\nimport com.aserto.model.Config;\nimport io.grpc.ManagedChannel;\nimport io.grpc.Metadata;\nimport io.grpc.netty.GrpcSslContexts;\nimport io.grpc.netty.NettyChannelBuilder;\nimport io.grpc.stub.MetadataUtils;\nimport io.netty.handler.ssl.SslContext;\nimport io.netty.handler.ssl.util... | cfg.setCaCertPath(caCertPath); | {} | {
"repository": "aserto-dev-aserto-java-8042222",
"file": "src/main/java/com/aserto/ChannelBuilder.java",
"task_id": "project_cc_java/386"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/aserto/ChannelBuilder.java",
"groundtruth_start_lineno": 63,
"repository": "aserto-dev-aserto-java-8042222",
"right_context_start_lineno": 64,
"task_id": "project_cc_java/386"
}
} |
cross_code_eval_java::project_cc_java/392 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/aserto/model/Config.java
// }
// public void setTenantId(String tenantId) {
/... | {
"prefix": "package com.aserto;\n\nimport com.aserto.model.Config;\nimport io.grpc.ManagedChannel;\nimport io.grpc.Metadata;\nimport io.grpc.netty.GrpcSslContexts;\nimport io.grpc.netty.NettyChannelBuilder;\nimport io.grpc.stub.MetadataUtils;\nimport io.netty.handler.ssl.SslContext;\nimport io.netty.handler.ssl.util... | ), cfg.getPort())
.intercept(MetadataUtils.newAttachHeadersInterceptor(metadata)); | {} | {
"repository": "aserto-dev-aserto-java-8042222",
"file": "src/main/java/com/aserto/ChannelBuilder.java",
"task_id": "project_cc_java/392"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/aserto/ChannelBuilder.java",
"groundtruth_start_lineno": 82,
"repository": "aserto-dev-aserto-java-8042222",
"right_context_start_lineno": 84,
"task_id": "project_cc_java/392"
}
} |
cross_code_eval_java::project_cc_java/391 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/aserto/model/Config.java
// }
// public void setTenantId(String tenantId) {
/... | {
"prefix": "package com.aserto;\n\nimport com.aserto.model.Config;\nimport io.grpc.ManagedChannel;\nimport io.grpc.Metadata;\nimport io.grpc.netty.GrpcSslContexts;\nimport io.grpc.netty.NettyChannelBuilder;\nimport io.grpc.stub.MetadataUtils;\nimport io.netty.handler.ssl.SslContext;\nimport io.netty.handler.ssl.util... | (cfg.getHost(), cfg.getPort())
.intercept(MetadataUtils.newAttachHeadersInterceptor(metadata)); | {} | {
"repository": "aserto-dev-aserto-java-8042222",
"file": "src/main/java/com/aserto/ChannelBuilder.java",
"task_id": "project_cc_java/391"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/aserto/ChannelBuilder.java",
"groundtruth_start_lineno": 82,
"repository": "aserto-dev-aserto-java-8042222",
"right_context_start_lineno": 84,
"task_id": "project_cc_java/391"
}
} |
cross_code_eval_java::project_cc_java/323 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/github/applejuiceyy/figurastockfish/stockfish/tree/IntegerNode.java
// if... | {
"prefix": "package com.github.applejuiceyy.figurastockfish.stockfish.tree;\n\nimport com.github.applejuiceyy.figurastockfish.stockfish.StringReader;\n\npublic class StringNode extends Node<StringNode>{\n private final boolean canBeEmpty;\n\n public StringNode(boolean canBeEmpty) {\n super(StringParser:... | reader.peek(1); | {} | {
"repository": "applejuiceyy-FiguraStockfish-9530a39",
"file": "src/main/java/com/github/applejuiceyy/figurastockfish/stockfish/tree/StringNode.java",
"task_id": "project_cc_java/323"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/github/applejuiceyy/figurastockfish/stockfish/tree/StringNode.java",
"groundtruth_start_lineno": 52,
"repository": "applejuiceyy-FiguraStockfish-9530a39",
"right_context_start_lineno": 53,
"task_id": "project_cc_java/323"
... |
cross_code_eval_java::project_cc_java/329 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/github/applejuiceyy/figurastockfish/stockfish/StockfishInstance.java
// }
// ... | {
"prefix": "package com.github.applejuiceyy.figurastockfish.client.wrap;\n\nimport com.github.applejuiceyy.figurastockfish.client.Bridger;\nimport com.github.applejuiceyy.figurastockfish.client.CompletableFutureWrapper;\nimport com.github.applejuiceyy.figurastockfish.stockfish.StockfishInstance;\n\nimport org.moon.f... | return new AnalysisTaskWrapper(inst.calculate(), b); | {} | {
"repository": "applejuiceyy-FiguraStockfish-9530a39",
"file": "src/main/java/com/github/applejuiceyy/figurastockfish/client/wrap/StockfishWrapper.java",
"task_id": "project_cc_java/329"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/github/applejuiceyy/figurastockfish/client/wrap/StockfishWrapper.java",
"groundtruth_start_lineno": 36,
"repository": "applejuiceyy-FiguraStockfish-9530a39",
"right_context_start_lineno": 37,
"task_id": "project_cc_java/329"... |
cross_code_eval_java::project_cc_java/321 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/github/applejuiceyy/figurastockfish/stockfish/StringReader.java
// }
// ... | {
"prefix": "package com.github.applejuiceyy.figurastockfish.stockfish.tree;\n\nimport com.github.applejuiceyy.figurastockfish.stockfish.StringReader;\n\npublic class StringNode extends Node<StringNode>{\n private final boolean canBeEmpty;\n\n public StringNode(boolean canBeEmpty) {\n super(StringParser:... | reader.peek(p - reader.getPos())); | {} | {
"repository": "applejuiceyy-FiguraStockfish-9530a39",
"file": "src/main/java/com/github/applejuiceyy/figurastockfish/stockfish/tree/StringNode.java",
"task_id": "project_cc_java/321"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/github/applejuiceyy/figurastockfish/stockfish/tree/StringNode.java",
"groundtruth_start_lineno": 50,
"repository": "applejuiceyy-FiguraStockfish-9530a39",
"right_context_start_lineno": 51,
"task_id": "project_cc_java/321"
... |
cross_code_eval_java::project_cc_java/318 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/github/applejuiceyy/figurastockfish/stockfish/tree/IntegerNode.java
// if... | {
"prefix": "package com.github.applejuiceyy.figurastockfish.stockfish.tree;\n\nimport com.github.applejuiceyy.figurastockfish.stockfish.StringReader;\n\npublic class StringNode extends Node<StringNode>{\n private final boolean canBeEmpty;\n\n public StringNode(boolean canBeEmpty) {\n super(StringParser:... | = reader.find(" ")) == -1) { | {} | {
"repository": "applejuiceyy-FiguraStockfish-9530a39",
"file": "src/main/java/com/github/applejuiceyy/figurastockfish/stockfish/tree/StringNode.java",
"task_id": "project_cc_java/318"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/github/applejuiceyy/figurastockfish/stockfish/tree/StringNode.java",
"groundtruth_start_lineno": 45,
"repository": "applejuiceyy-FiguraStockfish-9530a39",
"right_context_start_lineno": 46,
"task_id": "project_cc_java/318"
... |
cross_code_eval_java::project_cc_java/271 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// parts/src/org/lineageos/settings/dirac/DiracTileService.java
// super.onClick();
// }
// }
... | {
"prefix": "/*\n * Copyright (C) 2018,2020 The LineageOS Project\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * U... | mDiracUtils.setEnabled(isChecked); | {} | {
"repository": "AOSPA-android_device_xiaomi_sm6225-common-0a9c912",
"file": "parts/src/org/lineageos/settings/dirac/DiracSettingsFragment.java",
"task_id": "project_cc_java/271"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "parts/src/org/lineageos/settings/dirac/DiracSettingsFragment.java",
"groundtruth_start_lineno": 111,
"repository": "AOSPA-android_device_xiaomi_sm6225-common-0a9c912",
"right_context_start_lineno": 112,
"task_id": "project_cc_java/271"
}
} |
cross_code_eval_java::project_cc_java/370 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/github/applejuiceyy/figurastockfish/stockfish/processor/UCICommandProcessor.java
// ... | {
"prefix": "package com.github.applejuiceyy.figurastockfish.stockfish.processor;\n\nimport com.github.applejuiceyy.figurastockfish.stockfish.StringReader;\nimport com.github.applejuiceyy.figurastockfish.stockfish.data.PartialSearchInfo;\nimport com.github.applejuiceyy.figurastockfish.stockfish.data.SearchResults;\ni... | Node.greedyString())
)
); | {} | {
"repository": "applejuiceyy-FiguraStockfish-9530a39",
"file": "src/main/java/com/github/applejuiceyy/figurastockfish/stockfish/processor/AnalysisTask.java",
"task_id": "project_cc_java/370"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/github/applejuiceyy/figurastockfish/stockfish/processor/AnalysisTask.java",
"groundtruth_start_lineno": 115,
"repository": "applejuiceyy-FiguraStockfish-9530a39",
"right_context_start_lineno": 118,
"task_id": "project_cc_jav... |
cross_code_eval_java::project_cc_java/298 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// tools/ci/paimon-ci-tools/src/main/java/org/apache/paimon/tools/ci/utils/notice/NoticeParser.java
// ... | {
"prefix": "/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership. The ASF licenses this file\n * to you under the Apache License, Version 2.0 (the... | ShadeParser.parseShadeOutput(buildResult.toPath()),
DependencyParser.parseDependencyCopyOutput(buildResult.toPath())); | {} | {
"repository": "apache-incubator-paimon-shade-bfc2f24",
"file": "tools/ci/paimon-ci-tools/src/main/java/org/apache/paimon/tools/ci/licensecheck/NoticeFileChecker.java",
"task_id": "project_cc_java/298"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "tools/ci/paimon-ci-tools/src/main/java/org/apache/paimon/tools/ci/licensecheck/NoticeFileChecker.java",
"groundtruth_start_lineno": 74,
"repository": "apache-incubator-paimon-shade-bfc2f24",
"right_context_start_lineno": 76,
"task_id": "proje... |
cross_code_eval_java::project_cc_java/292 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// tools/ci/paimon-ci-tools/src/main/java/org/apache/paimon/tools/ci/utils/notice/NoticeParser.java
// ... | {
"prefix": "/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership. The ASF licenses this file\n * to you under the Apache License, Version 2.0 (the... | DependencyParser.parseDependencyCopyOutput(buildResult.toPath())); | {} | {
"repository": "apache-incubator-paimon-shade-bfc2f24",
"file": "tools/ci/paimon-ci-tools/src/main/java/org/apache/paimon/tools/ci/licensecheck/NoticeFileChecker.java",
"task_id": "project_cc_java/292"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "tools/ci/paimon-ci-tools/src/main/java/org/apache/paimon/tools/ci/licensecheck/NoticeFileChecker.java",
"groundtruth_start_lineno": 75,
"repository": "apache-incubator-paimon-shade-bfc2f24",
"right_context_start_lineno": 76,
"task_id": "proje... |
cross_code_eval_java::project_cc_java/394 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/aserto/model/Config.java
// }
// public void setTenantId(String tenantId) {
/... | {
"prefix": "package com.aserto;\n\nimport com.aserto.model.Config;\nimport io.grpc.ManagedChannel;\nimport io.grpc.Metadata;\nimport io.grpc.netty.GrpcSslContexts;\nimport io.grpc.netty.NettyChannelBuilder;\nimport io.grpc.stub.MetadataUtils;\nimport io.netty.handler.ssl.SslContext;\nimport io.netty.handler.ssl.util... | = !cfg.getCaCertPath().isEmpty(); | {} | {
"repository": "aserto-dev-aserto-java-8042222",
"file": "src/main/java/com/aserto/ChannelBuilder.java",
"task_id": "project_cc_java/394"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/aserto/ChannelBuilder.java",
"groundtruth_start_lineno": 86,
"repository": "aserto-dev-aserto-java-8042222",
"right_context_start_lineno": 87,
"task_id": "project_cc_java/394"
}
} |
cross_code_eval_java::project_cc_java/284 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// tools/ci/paimon-ci-tools/src/main/java/org/apache/paimon/tools/ci/utils/shade/ShadeParser.java
// ... | {
"prefix": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright ownership.\n * The ASF licenses this file to You under the Apache License, Version 2.0\n * (the ... | return ParserUtils.parsePluginOutput(
lines,
DEPENDENCY_COPY_NEXT_MODULE_PATTERN,
DependencyParser::parseCopyDependencyBlock); | {} | {
"repository": "apache-incubator-paimon-shade-bfc2f24",
"file": "tools/ci/paimon-ci-tools/src/main/java/org/apache/paimon/tools/ci/utils/dependency/DependencyParser.java",
"task_id": "project_cc_java/284"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "tools/ci/paimon-ci-tools/src/main/java/org/apache/paimon/tools/ci/utils/dependency/DependencyParser.java",
"groundtruth_start_lineno": 102,
"repository": "apache-incubator-paimon-shade-bfc2f24",
"right_context_start_lineno": 106,
"task_id": "... |
cross_code_eval_java::project_cc_java/369 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/github/applejuiceyy/figurastockfish/stockfish/processor/UCICommandProcessor.java
// ... | {
"prefix": "package com.github.applejuiceyy.figurastockfish.stockfish.processor;\n\nimport com.github.applejuiceyy.figurastockfish.stockfish.StringReader;\nimport com.github.applejuiceyy.figurastockfish.stockfish.data.PartialSearchInfo;\nimport com.github.applejuiceyy.figurastockfish.stockfish.data.SearchResults;\ni... | with(Node.literal("string").mustConsumeChild()
.with(Node.greedyString())
)
); | {} | {
"repository": "applejuiceyy-FiguraStockfish-9530a39",
"file": "src/main/java/com/github/applejuiceyy/figurastockfish/stockfish/processor/AnalysisTask.java",
"task_id": "project_cc_java/369"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/github/applejuiceyy/figurastockfish/stockfish/processor/AnalysisTask.java",
"groundtruth_start_lineno": 114,
"repository": "applejuiceyy-FiguraStockfish-9530a39",
"right_context_start_lineno": 118,
"task_id": "project_cc_jav... |
cross_code_eval_java::project_cc_java/289 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// tools/ci/paimon-ci-tools/src/test/java/org/apache/paimon/tools/ci/licensecheck/NoticeFileCheckerTest.ja... | {
"prefix": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright ownership.\n * The ASF licenses this file to You under the Apache License, Version 2.0\n * (the ... | return dependency.getGroupId().contains("org.scala-lang")
|| scalaSuffixPattern.matcher(dependency.getArtifactId()).find(); | {} | {
"repository": "apache-incubator-paimon-shade-bfc2f24",
"file": "tools/ci/paimon-ci-tools/src/main/java/org/apache/paimon/tools/ci/suffixcheck/ScalaSuffixChecker.java",
"task_id": "project_cc_java/289"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "tools/ci/paimon-ci-tools/src/main/java/org/apache/paimon/tools/ci/suffixcheck/ScalaSuffixChecker.java",
"groundtruth_start_lineno": 139,
"repository": "apache-incubator-paimon-shade-bfc2f24",
"right_context_start_lineno": 141,
"task_id": "pro... |
cross_code_eval_java::project_cc_java/277 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// tools/ci/paimon-ci-tools/src/main/java/org/apache/paimon/tools/ci/suffixcheck/ScalaSuffixChecker.java
/... | {
"prefix": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright ownership.\n * The ASF licenses this file to You under the Apache License, Version 2.0\n * (the ... | + dependency.getVersion()
+ ":"
+ dependency.getClassifier().orElse("(no-classifier)"); | {} | {
"repository": "apache-incubator-paimon-shade-bfc2f24",
"file": "tools/ci/paimon-ci-tools/src/main/java/org/apache/paimon/tools/ci/utils/shared/DependencyTree.java",
"task_id": "project_cc_java/277"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "tools/ci/paimon-ci-tools/src/main/java/org/apache/paimon/tools/ci/utils/shared/DependencyTree.java",
"groundtruth_start_lineno": 118,
"repository": "apache-incubator-paimon-shade-bfc2f24",
"right_context_start_lineno": 121,
"task_id": "projec... |
cross_code_eval_java::project_cc_java/287 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// tools/ci/paimon-ci-tools/src/main/java/org/apache/paimon/tools/ci/licensecheck/NoticeFileChecker.java
/... | {
"prefix": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright ownership.\n * The ASF licenses this file to You under the Apache License, Version 2.0\n * (the ... | boolean isTestDependency = dependency.getScope().get().equals("test"); | {} | {
"repository": "apache-incubator-paimon-shade-bfc2f24",
"file": "tools/ci/paimon-ci-tools/src/main/java/org/apache/paimon/tools/ci/suffixcheck/ScalaSuffixChecker.java",
"task_id": "project_cc_java/287"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "tools/ci/paimon-ci-tools/src/main/java/org/apache/paimon/tools/ci/suffixcheck/ScalaSuffixChecker.java",
"groundtruth_start_lineno": 111,
"repository": "apache-incubator-paimon-shade-bfc2f24",
"right_context_start_lineno": 112,
"task_id": "pro... |
cross_code_eval_java::project_cc_java/333 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/github/applejuiceyy/figurastockfish/client/CompletableFutureWrapper.java
// @LuaW... | {
"prefix": "package com.github.applejuiceyy.figurastockfish.client.wrap;\n\nimport com.github.applejuiceyy.figurastockfish.client.Bridger;\nimport com.github.applejuiceyy.figurastockfish.client.CompletableFutureWrapper;\nimport com.github.applejuiceyy.figurastockfish.stockfish.data.SearchResults;\nimport com.github.... | wrapped.start(cmd),
SearchResultsWrapper::new,
b
); | {} | {
"repository": "applejuiceyy-FiguraStockfish-9530a39",
"file": "src/main/java/com/github/applejuiceyy/figurastockfish/client/wrap/AnalysisTaskWrapper.java",
"task_id": "project_cc_java/333"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/github/applejuiceyy/figurastockfish/client/wrap/AnalysisTaskWrapper.java",
"groundtruth_start_lineno": 38,
"repository": "applejuiceyy-FiguraStockfish-9530a39",
"right_context_start_lineno": 42,
"task_id": "project_cc_java/3... |
cross_code_eval_java::project_cc_java/274 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// tools/ci/paimon-ci-tools/src/main/java/org/apache/paimon/tools/ci/suffixcheck/ScalaSuffixChecker.java
/... | {
"prefix": "/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership. The ASF licenses this file\n * to you under the Apache License, Version 2.0 (the... | = NoticeFileChecker.run(new File(args[0]), Paths.get(args[1])); | {} | {
"repository": "apache-incubator-paimon-shade-bfc2f24",
"file": "tools/ci/paimon-ci-tools/src/main/java/org/apache/paimon/tools/ci/licensecheck/LicenseChecker.java",
"task_id": "project_cc_java/274"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "tools/ci/paimon-ci-tools/src/main/java/org/apache/paimon/tools/ci/licensecheck/LicenseChecker.java",
"groundtruth_start_lineno": 41,
"repository": "apache-incubator-paimon-shade-bfc2f24",
"right_context_start_lineno": 42,
"task_id": "project_... |
cross_code_eval_java::project_cc_java/273 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// tools/ci/paimon-ci-tools/src/main/java/org/apache/paimon/tools/ci/suffixcheck/ScalaSuffixChecker.java
/... | {
"prefix": "/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership. The ASF licenses this file\n * to you under the Apache License, Version 2.0 (the... | severeIssueCount += JarFileChecker.checkPath(Paths.get(args[2])); | {} | {
"repository": "apache-incubator-paimon-shade-bfc2f24",
"file": "tools/ci/paimon-ci-tools/src/main/java/org/apache/paimon/tools/ci/licensecheck/LicenseChecker.java",
"task_id": "project_cc_java/273"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "tools/ci/paimon-ci-tools/src/main/java/org/apache/paimon/tools/ci/licensecheck/LicenseChecker.java",
"groundtruth_start_lineno": 43,
"repository": "apache-incubator-paimon-shade-bfc2f24",
"right_context_start_lineno": 44,
"task_id": "project_... |
cross_code_eval_java::project_cc_java/286 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// tools/ci/paimon-ci-tools/src/main/java/org/apache/paimon/tools/ci/licensecheck/NoticeFileChecker.java
/... | {
"prefix": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright ownership.\n * The ASF licenses this file to You under the Apache License, Version 2.0\n * (the ... | DependencyParser.parseDependencyTreeOutput(path); | {} | {
"repository": "apache-incubator-paimon-shade-bfc2f24",
"file": "tools/ci/paimon-ci-tools/src/main/java/org/apache/paimon/tools/ci/suffixcheck/ScalaSuffixChecker.java",
"task_id": "project_cc_java/286"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "tools/ci/paimon-ci-tools/src/main/java/org/apache/paimon/tools/ci/suffixcheck/ScalaSuffixChecker.java",
"groundtruth_start_lineno": 96,
"repository": "apache-incubator-paimon-shade-bfc2f24",
"right_context_start_lineno": 97,
"task_id": "proje... |
cross_code_eval_java::project_cc_java/294 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// tools/ci/paimon-ci-tools/src/test/java/org/apache/paimon/tools/ci/licensecheck/NoticeFileCheckerTest.ja... | {
"prefix": "/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership. The ASF licenses this file\n * to you under the Apache License, Version 2.0 (the... | (!noticeContents.getNoticeModuleName().equals(moduleName)) { | {} | {
"repository": "apache-incubator-paimon-shade-bfc2f24",
"file": "tools/ci/paimon-ci-tools/src/main/java/org/apache/paimon/tools/ci/licensecheck/NoticeFileChecker.java",
"task_id": "project_cc_java/294"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "tools/ci/paimon-ci-tools/src/main/java/org/apache/paimon/tools/ci/licensecheck/NoticeFileChecker.java",
"groundtruth_start_lineno": 271,
"repository": "apache-incubator-paimon-shade-bfc2f24",
"right_context_start_lineno": 272,
"task_id": "pro... |
cross_code_eval_java::project_cc_java/334 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/github/applejuiceyy/figurastockfish/stockfish/processor/AnalysisTask.java
// ... | {
"prefix": "package com.github.applejuiceyy.figurastockfish.client.wrap;\n\nimport com.github.applejuiceyy.figurastockfish.client.Bridger;\nimport com.github.applejuiceyy.figurastockfish.client.CompletableFutureWrapper;\nimport com.github.applejuiceyy.figurastockfish.stockfish.data.SearchResults;\nimport com.github.... | wrapped.stop(); | {} | {
"repository": "applejuiceyy-FiguraStockfish-9530a39",
"file": "src/main/java/com/github/applejuiceyy/figurastockfish/client/wrap/AnalysisTaskWrapper.java",
"task_id": "project_cc_java/334"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/github/applejuiceyy/figurastockfish/client/wrap/AnalysisTaskWrapper.java",
"groundtruth_start_lineno": 47,
"repository": "applejuiceyy-FiguraStockfish-9530a39",
"right_context_start_lineno": 48,
"task_id": "project_cc_java/3... |
cross_code_eval_java::project_cc_java/278 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// tools/ci/paimon-ci-tools/src/main/java/org/apache/paimon/tools/ci/suffixcheck/ScalaSuffixChecker.java
/... | {
"prefix": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright ownership.\n * The ASF licenses this file to You under the Apache License, Version 2.0\n * (the ... | + dependency.getClassifier().orElse("(no-classifier)"); | {} | {
"repository": "apache-incubator-paimon-shade-bfc2f24",
"file": "tools/ci/paimon-ci-tools/src/main/java/org/apache/paimon/tools/ci/utils/shared/DependencyTree.java",
"task_id": "project_cc_java/278"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "tools/ci/paimon-ci-tools/src/main/java/org/apache/paimon/tools/ci/utils/shared/DependencyTree.java",
"groundtruth_start_lineno": 120,
"repository": "apache-incubator-paimon-shade-bfc2f24",
"right_context_start_lineno": 121,
"task_id": "projec... |
cross_code_eval_java::project_cc_java/293 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// tools/ci/paimon-ci-tools/src/main/java/org/apache/paimon/tools/ci/utils/notice/NoticeParser.java
// ... | {
"prefix": "/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership. The ASF licenses this file\n * to you under the Apache License, Version 2.0 (the... | final Set<String> deployedModules = DeployParser.parseDeployOutput(buildResult); | {} | {
"repository": "apache-incubator-paimon-shade-bfc2f24",
"file": "tools/ci/paimon-ci-tools/src/main/java/org/apache/paimon/tools/ci/licensecheck/NoticeFileChecker.java",
"task_id": "project_cc_java/293"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "tools/ci/paimon-ci-tools/src/main/java/org/apache/paimon/tools/ci/licensecheck/NoticeFileChecker.java",
"groundtruth_start_lineno": 77,
"repository": "apache-incubator-paimon-shade-bfc2f24",
"right_context_start_lineno": 78,
"task_id": "proje... |
cross_code_eval_java::project_cc_java/288 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// tools/ci/paimon-ci-tools/src/main/java/org/apache/paimon/tools/ci/licensecheck/NoticeFileChecker.java
/... | {
"prefix": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright ownership.\n * The ASF licenses this file to You under the Apache License, Version 2.0\n * (the ... | = isExcluded(dependency.getArtifactId()); | {} | {
"repository": "apache-incubator-paimon-shade-bfc2f24",
"file": "tools/ci/paimon-ci-tools/src/main/java/org/apache/paimon/tools/ci/suffixcheck/ScalaSuffixChecker.java",
"task_id": "project_cc_java/288"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "tools/ci/paimon-ci-tools/src/main/java/org/apache/paimon/tools/ci/suffixcheck/ScalaSuffixChecker.java",
"groundtruth_start_lineno": 112,
"repository": "apache-incubator-paimon-shade-bfc2f24",
"right_context_start_lineno": 113,
"task_id": "pro... |
cross_code_eval_java::project_cc_java/296 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// tools/ci/paimon-ci-tools/src/main/java/org/apache/paimon/tools/ci/utils/notice/NoticeParser.java
// ... | {
"prefix": "/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership. The ASF licenses this file\n * to you under the Apache License, Version 2.0 (the... | declaredDependency : noticeContents.getDeclaredDependencies()) { | {} | {
"repository": "apache-incubator-paimon-shade-bfc2f24",
"file": "tools/ci/paimon-ci-tools/src/main/java/org/apache/paimon/tools/ci/licensecheck/NoticeFileChecker.java",
"task_id": "project_cc_java/296"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "tools/ci/paimon-ci-tools/src/main/java/org/apache/paimon/tools/ci/licensecheck/NoticeFileChecker.java",
"groundtruth_start_lineno": 282,
"repository": "apache-incubator-paimon-shade-bfc2f24",
"right_context_start_lineno": 283,
"task_id": "pro... |
cross_code_eval_java::project_cc_java/279 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// tools/ci/paimon-ci-tools/src/main/java/org/apache/paimon/tools/ci/utils/dependency/DependencyParser.jav... | {
"prefix": "/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership. The ASF licenses this file\n * to you under the Apache License, Version 2.0 (the... | of(Dependency.create(groupId, artifactId, version, classifier)); | {} | {
"repository": "apache-incubator-paimon-shade-bfc2f24",
"file": "tools/ci/paimon-ci-tools/src/main/java/org/apache/paimon/tools/ci/utils/notice/NoticeParser.java",
"task_id": "project_cc_java/279"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "tools/ci/paimon-ci-tools/src/main/java/org/apache/paimon/tools/ci/utils/notice/NoticeParser.java",
"groundtruth_start_lineno": 90,
"repository": "apache-incubator-paimon-shade-bfc2f24",
"right_context_start_lineno": 91,
"task_id": "project_cc... |
cross_code_eval_java::project_cc_java/290 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// tools/ci/paimon-ci-tools/src/test/java/org/apache/paimon/tools/ci/licensecheck/NoticeFileCheckerTest.ja... | {
"prefix": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright ownership.\n * The ASF licenses this file to You under the Apache License, Version 2.0\n * (the ... | (dependency.getArtifactId()).find(); | {} | {
"repository": "apache-incubator-paimon-shade-bfc2f24",
"file": "tools/ci/paimon-ci-tools/src/main/java/org/apache/paimon/tools/ci/suffixcheck/ScalaSuffixChecker.java",
"task_id": "project_cc_java/290"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "tools/ci/paimon-ci-tools/src/main/java/org/apache/paimon/tools/ci/suffixcheck/ScalaSuffixChecker.java",
"groundtruth_start_lineno": 140,
"repository": "apache-incubator-paimon-shade-bfc2f24",
"right_context_start_lineno": 141,
"task_id": "pro... |
cross_code_eval_java::project_cc_java/398 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/aserto/AuthorizerClient.java
// public List<Module> listPolicies(String policyNam... | {
"prefix": "package com.aserto;\n\nimport com.aserto.authorizer.v2.*;\nimport com.aserto.authorizer.v2.Decision;\nimport com.aserto.authorizer.v2.api.*;\nimport com.aserto.authorizer.v2.api.Module;\nimport com.aserto.model.IdentityCtx;\nimport com.aserto.model.PolicyCtx;\nimport com.google.protobuf.Struct;\nimport c... | (policyCtx.getName(), policyCtx.getLabel()); | {} | {
"repository": "aserto-dev-aserto-java-8042222",
"file": "src/main/java/com/aserto/AuthzClient.java",
"task_id": "project_cc_java/398"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/aserto/AuthzClient.java",
"groundtruth_start_lineno": 54,
"repository": "aserto-dev-aserto-java-8042222",
"right_context_start_lineno": 55,
"task_id": "project_cc_java/398"
}
} |
cross_code_eval_java::project_cc_java/297 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// tools/ci/paimon-ci-tools/src/main/java/org/apache/paimon/tools/ci/licensecheck/JarFileChecker.java
// ... | {
"prefix": "/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership. The ASF licenses this file\n * to you under the Apache License, Version 2.0 (the... | NoticeParser.parseNoticeFile(noticeFile); | {} | {
"repository": "apache-incubator-paimon-shade-bfc2f24",
"file": "tools/ci/paimon-ci-tools/src/main/java/org/apache/paimon/tools/ci/licensecheck/NoticeFileChecker.java",
"task_id": "project_cc_java/297"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "tools/ci/paimon-ci-tools/src/main/java/org/apache/paimon/tools/ci/licensecheck/NoticeFileChecker.java",
"groundtruth_start_lineno": 99,
"repository": "apache-incubator-paimon-shade-bfc2f24",
"right_context_start_lineno": 100,
"task_id": "proj... |
cross_code_eval_java::project_cc_java/397 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/aserto/model/PolicyCtx.java
// this.label = label;
// this.path = pat... | {
"prefix": "package com.aserto;\n\nimport com.aserto.authorizer.v2.*;\nimport com.aserto.authorizer.v2.Decision;\nimport com.aserto.authorizer.v2.api.*;\nimport com.aserto.authorizer.v2.api.Module;\nimport com.aserto.model.IdentityCtx;\nimport com.aserto.model.PolicyCtx;\nimport com.google.protobuf.Struct;\nimport c... | identityContext.getIdentityType()); | {} | {
"repository": "aserto-dev-aserto-java-8042222",
"file": "src/main/java/com/aserto/AuthzClient.java",
"task_id": "project_cc_java/397"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/aserto/AuthzClient.java",
"groundtruth_start_lineno": 113,
"repository": "aserto-dev-aserto-java-8042222",
"right_context_start_lineno": 114,
"task_id": "project_cc_java/397"
}
} |
cross_code_eval_java::project_cc_java/291 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// tools/ci/paimon-ci-tools/src/test/java/org/apache/paimon/tools/ci/utils/dependency/DependencyParserTree... | {
"prefix": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright ownership.\n * The ASF licenses this file to You under the Apache License, Version 2.0\n * (the ... | .get(module).flatten().collect(Collectors.toList()); | {} | {
"repository": "apache-incubator-paimon-shade-bfc2f24",
"file": "tools/ci/paimon-ci-tools/src/main/java/org/apache/paimon/tools/ci/suffixcheck/ScalaSuffixChecker.java",
"task_id": "project_cc_java/291"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "tools/ci/paimon-ci-tools/src/main/java/org/apache/paimon/tools/ci/suffixcheck/ScalaSuffixChecker.java",
"groundtruth_start_lineno": 106,
"repository": "apache-incubator-paimon-shade-bfc2f24",
"right_context_start_lineno": 107,
"task_id": "pro... |
cross_code_eval_java::project_cc_java/401 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/test/java/AuthzClientTest.java
// boolean expectedResourceContext = req... | {
"prefix": "package com.aserto;\n\nimport com.aserto.authorizer.v2.*;\nimport com.aserto.authorizer.v2.Decision;\nimport com.aserto.authorizer.v2.api.*;\nimport com.aserto.authorizer.v2.api.Module;\nimport com.aserto.model.IdentityCtx;\nimport com.aserto.model.PolicyCtx;\nimport com.google.protobuf.Struct;\nimport c... | PolicyInstance policy = buildPolicy(policyContext.getName(), policyContext.getLabel()); | {} | {
"repository": "aserto-dev-aserto-java-8042222",
"file": "src/main/java/com/aserto/AuthzClient.java",
"task_id": "project_cc_java/401"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/aserto/AuthzClient.java",
"groundtruth_start_lineno": 71,
"repository": "aserto-dev-aserto-java-8042222",
"right_context_start_lineno": 72,
"task_id": "project_cc_java/401"
}
} |
cross_code_eval_java::project_cc_java/281 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// tools/ci/paimon-ci-tools/src/main/java/org/apache/paimon/tools/ci/utils/dependency/DependencyParser.jav... | {
"prefix": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright ownership.\n * The ASF licenses this file to You under the Apache License, Version 2.0\n * (the ... | return ParserUtils.parsePluginOutput(
lines.filter(line -> !line.contains(" Excluding ")),
SHADE_NEXT_MODULE_PATTERN,
ShadeParser::parseBlock); | {} | {
"repository": "apache-incubator-paimon-shade-bfc2f24",
"file": "tools/ci/paimon-ci-tools/src/main/java/org/apache/paimon/tools/ci/utils/shade/ShadeParser.java",
"task_id": "project_cc_java/281"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "tools/ci/paimon-ci-tools/src/main/java/org/apache/paimon/tools/ci/utils/shade/ShadeParser.java",
"groundtruth_start_lineno": 73,
"repository": "apache-incubator-paimon-shade-bfc2f24",
"right_context_start_lineno": 77,
"task_id": "project_cc_j... |
cross_code_eval_java::project_cc_java/436 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/fineelyframework/config/FineelyConfigAnnotationRegistry.java
// }
// ... | {
"prefix": "package com.fineelyframework.config;\n\nimport com.alibaba.fastjson2.JSONObject;\nimport com.fineelyframework.config.core.entity.ConfigSupport;\nimport org.springframework.http.MediaType;\nimport org.springframework.web.context.WebApplicationContext;\nimport org.springframework.web.context.support.WebApp... | configIntermediary.updateConfigByObject(className, configObjString); | {} | {
"repository": "Big-billed-shark-fineely-config-6069a36",
"file": "src/main/java/com/fineelyframework/config/FineelyConfigServlet.java",
"task_id": "project_cc_java/436"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/fineelyframework/config/FineelyConfigServlet.java",
"groundtruth_start_lineno": 75,
"repository": "Big-billed-shark-fineely-config-6069a36",
"right_context_start_lineno": 76,
"task_id": "project_cc_java/436"
}
} |
cross_code_eval_java::project_cc_java/492 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/blessedmusicalturkeys/projectreleasenotes/utilities/JGit.java
// //retrieve the d... | {
"prefix": "package com.blessedmusicalturkeys.projectreleasenotes.cli.impl;\n\nimport com.atlassian.jira.rest.client.api.domain.Issue;\nimport com.blessedmusicalturkeys.projectreleasenotes.cli.CLIStrategy;\nimport com.blessedmusicalturkeys.projectreleasenotes.constants.SemanticVersion;\nimport com.blessedmusicalturk... | gitClient.listTags(); | {} | {
"repository": "blessedmusicalturkeys-project-release-notes-d9120d6",
"file": "src/main/java/com/blessedmusicalturkeys/projectreleasenotes/cli/impl/ChangelogStrategy.java",
"task_id": "project_cc_java/492"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/blessedmusicalturkeys/projectreleasenotes/cli/impl/ChangelogStrategy.java",
"groundtruth_start_lineno": 139,
"repository": "blessedmusicalturkeys-project-release-notes-d9120d6",
"right_context_start_lineno": 140,
"task_id": ... |
cross_code_eval_java::project_cc_java/488 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/blessedmusicalturkeys/projectreleasenotes/utilities/JGit.java
// String changelog... | {
"prefix": "package com.blessedmusicalturkeys.projectreleasenotes.cli.impl;\n\nimport com.atlassian.jira.rest.client.api.domain.Issue;\nimport com.blessedmusicalturkeys.projectreleasenotes.cli.CLIStrategy;\nimport com.blessedmusicalturkeys.projectreleasenotes.constants.SemanticVersion;\nimport com.blessedmusicalturk... | gitClient.commitChangelogTagAndPush(tagName); | {} | {
"repository": "blessedmusicalturkeys-project-release-notes-d9120d6",
"file": "src/main/java/com/blessedmusicalturkeys/projectreleasenotes/cli/impl/ChangelogStrategy.java",
"task_id": "project_cc_java/488"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/blessedmusicalturkeys/projectreleasenotes/cli/impl/ChangelogStrategy.java",
"groundtruth_start_lineno": 55,
"repository": "blessedmusicalturkeys-project-release-notes-d9120d6",
"right_context_start_lineno": 56,
"task_id": "p... |
cross_code_eval_java::project_cc_java/489 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/blessedmusicalturkeys/projectreleasenotes/utilities/JGit.java
// String changelog... | {
"prefix": "package com.blessedmusicalturkeys.projectreleasenotes.cli.impl;\n\nimport com.atlassian.jira.rest.client.api.domain.Issue;\nimport com.blessedmusicalturkeys.projectreleasenotes.cli.CLIStrategy;\nimport com.blessedmusicalturkeys.projectreleasenotes.constants.SemanticVersion;\nimport com.blessedmusicalturk... | > issueKeys = gitClient.getAllIssuesSinceLastTag(); | {} | {
"repository": "blessedmusicalturkeys-project-release-notes-d9120d6",
"file": "src/main/java/com/blessedmusicalturkeys/projectreleasenotes/cli/impl/ChangelogStrategy.java",
"task_id": "project_cc_java/489"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/blessedmusicalturkeys/projectreleasenotes/cli/impl/ChangelogStrategy.java",
"groundtruth_start_lineno": 72,
"repository": "blessedmusicalturkeys-project-release-notes-d9120d6",
"right_context_start_lineno": 73,
"task_id": "p... |
cross_code_eval_java::project_cc_java/493 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/blessedmusicalturkeys/projectreleasenotes/utilities/JGit.java
// String changelog... | {
"prefix": "package com.blessedmusicalturkeys.projectreleasenotes.cli.impl;\n\nimport com.atlassian.jira.rest.client.api.domain.Issue;\nimport com.blessedmusicalturkeys.projectreleasenotes.cli.CLIStrategy;\nimport com.blessedmusicalturkeys.projectreleasenotes.constants.SemanticVersion;\nimport com.blessedmusicalturk... | .generateChangelogFromExisting(gitClient.getWorkingDir(), tagName, jiraIssues); | {} | {
"repository": "blessedmusicalturkeys-project-release-notes-d9120d6",
"file": "src/main/java/com/blessedmusicalturkeys/projectreleasenotes/cli/impl/ChangelogStrategy.java",
"task_id": "project_cc_java/493"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/blessedmusicalturkeys/projectreleasenotes/cli/impl/ChangelogStrategy.java",
"groundtruth_start_lineno": 152,
"repository": "blessedmusicalturkeys-project-release-notes-d9120d6",
"right_context_start_lineno": 153,
"task_id": ... |
cross_code_eval_java::project_cc_java/450 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/fineelyframework/config/core/dao/ConfigDaoImpl.java
// Config con... | {
"prefix": "package com.fineelyframework.config.core.dao;\n\nimport com.alibaba.fastjson.JSONArray;\nimport com.alibaba.fastjson.JSONObject;\nimport com.baomidou.mybatisplus.core.mapper.BaseMapper;\nimport com.baomidou.mybatisplus.core.toolkit.Wrappers;\nimport com.fineelyframework.config.core.entity.ConfigPlus;\nim... | ConfigPlus config = new ConfigPlus(configCategory, configCode, TypeJudgmentUtil.toJsonString(configValue)); | {} | {
"repository": "Big-billed-shark-fineely-config-6069a36",
"file": "src/main/java/com/fineelyframework/config/core/dao/ConfigMapper.java",
"task_id": "project_cc_java/450"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/fineelyframework/config/core/dao/ConfigMapper.java",
"groundtruth_start_lineno": 59,
"repository": "Big-billed-shark-fineely-config-6069a36",
"right_context_start_lineno": 60,
"task_id": "project_cc_java/450"
}
} |
cross_code_eval_java::project_cc_java/445 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/fineelyframework/config/core/dao/ConfigMapper.java
// TypeJudgmentUti... | {
"prefix": "package com.fineelyframework.config.core.dao;\n\n\nimport com.alibaba.fastjson.JSONArray;\nimport com.alibaba.fastjson.JSONObject;\nimport com.fineelyframework.config.core.entity.Config;\nimport com.fineelyframework.config.core.entity.ConfigSupport;\nimport com.fineelyframework.config.core.utils.TypeJudg... | Config(configCategory, configCode, TypeJudgmentUtil.toJsonString(configValue)); | {} | {
"repository": "Big-billed-shark-fineely-config-6069a36",
"file": "src/main/java/com/fineelyframework/config/core/dao/ConfigDaoImpl.java",
"task_id": "project_cc_java/445"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/fineelyframework/config/core/dao/ConfigDaoImpl.java",
"groundtruth_start_lineno": 66,
"repository": "Big-billed-shark-fineely-config-6069a36",
"right_context_start_lineno": 67,
"task_id": "project_cc_java/445"
}
} |
cross_code_eval_java::project_cc_java/433 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/fineelyframework/config/FineelyConfigAnnotationRegistry.java
// configInterme... | {
"prefix": "package com.fineelyframework.config;\n\nimport com.alibaba.fastjson2.JSONObject;\nimport com.fineelyframework.config.core.entity.ConfigSupport;\nimport org.springframework.http.MediaType;\nimport org.springframework.web.context.WebApplicationContext;\nimport org.springframework.web.context.support.WebApp... | replaceAll(configIntermediary.getRequestMapping() + "get", ""); | {} | {
"repository": "Big-billed-shark-fineely-config-6069a36",
"file": "src/main/java/com/fineelyframework/config/FineelyConfigServlet.java",
"task_id": "project_cc_java/433"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/fineelyframework/config/FineelyConfigServlet.java",
"groundtruth_start_lineno": 61,
"repository": "Big-billed-shark-fineely-config-6069a36",
"right_context_start_lineno": 62,
"task_id": "project_cc_java/433"
}
} |
cross_code_eval_java::project_cc_java/490 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/blessedmusicalturkeys/projectreleasenotes/utilities/JGit.java
// String changelog... | {
"prefix": "package com.blessedmusicalturkeys.projectreleasenotes.cli.impl;\n\nimport com.atlassian.jira.rest.client.api.domain.Issue;\nimport com.blessedmusicalturkeys.projectreleasenotes.cli.CLIStrategy;\nimport com.blessedmusicalturkeys.projectreleasenotes.constants.SemanticVersion;\nimport com.blessedmusicalturk... | > issueKeys = gitClient.getIssuesWithinTag(tagName); | {} | {
"repository": "blessedmusicalturkeys-project-release-notes-d9120d6",
"file": "src/main/java/com/blessedmusicalturkeys/projectreleasenotes/cli/impl/ChangelogStrategy.java",
"task_id": "project_cc_java/490"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/blessedmusicalturkeys/projectreleasenotes/cli/impl/ChangelogStrategy.java",
"groundtruth_start_lineno": 82,
"repository": "blessedmusicalturkeys-project-release-notes-d9120d6",
"right_context_start_lineno": 83,
"task_id": "p... |
cross_code_eval_java::project_cc_java/494 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/blessedmusicalturkeys/projectreleasenotes/utilities/JGit.java
// String changelog... | {
"prefix": "package com.blessedmusicalturkeys.projectreleasenotes.cli.impl;\n\nimport com.atlassian.jira.rest.client.api.domain.Issue;\nimport com.blessedmusicalturkeys.projectreleasenotes.cli.CLIStrategy;\nimport com.blessedmusicalturkeys.projectreleasenotes.constants.SemanticVersion;\nimport com.blessedmusicalturk... | <Issue> jiraIssues = jiraClient.getIssueList(jiraIssueKeys); | {} | {
"repository": "blessedmusicalturkeys-project-release-notes-d9120d6",
"file": "src/main/java/com/blessedmusicalturkeys/projectreleasenotes/cli/impl/ChangelogStrategy.java",
"task_id": "project_cc_java/494"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/blessedmusicalturkeys/projectreleasenotes/cli/impl/ChangelogStrategy.java",
"groundtruth_start_lineno": 150,
"repository": "blessedmusicalturkeys-project-release-notes-d9120d6",
"right_context_start_lineno": 151,
"task_id": ... |
cross_code_eval_java::project_cc_java/422 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/aws/writer/DataWriter.java
// /**********************
// * This method is us... | {
"prefix": "package com.aws.task;\n\nimport com.amazonaws.ClientConfiguration;\nimport com.amazonaws.retry.PredefinedRetryPolicies;\nimport com.amazonaws.retry.RetryPolicy;\nimport com.amazonaws.services.personalizeevents.AmazonPersonalizeEvents;\nimport com.amazonaws.services.personalizeevents.AmazonPersonalizeEven... | withRegion(null != config.getAwsRegionName() ? config.getAwsRegionName() : Constants.DEFAULT_AWS_REGION_NAME)
.withClientConfiguration(configuration)
.build(); | {} | {
"repository": "aws-personalize-kafka-connector-cb28efc",
"file": "src/main/java/com/aws/task/PersonlizeSinkTask.java",
"task_id": "project_cc_java/422"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/aws/task/PersonlizeSinkTask.java",
"groundtruth_start_lineno": 61,
"repository": "aws-personalize-kafka-connector-cb28efc",
"right_context_start_lineno": 64,
"task_id": "project_cc_java/422"
}
} |
cross_code_eval_java::project_cc_java/415 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/aws/writer/DataWriter.java
// if(Constants.PUT_EVENTS_REQUEST_TYPE.eq... | {
"prefix": "package com.aws.task;\n\nimport com.amazonaws.ClientConfiguration;\nimport com.amazonaws.retry.PredefinedRetryPolicies;\nimport com.amazonaws.retry.RetryPolicy;\nimport com.amazonaws.services.personalizeevents.AmazonPersonalizeEvents;\nimport com.amazonaws.services.personalizeevents.AmazonPersonalizeEven... | writer.closeQuietly(); | {} | {
"repository": "aws-personalize-kafka-connector-cb28efc",
"file": "src/main/java/com/aws/task/PersonlizeSinkTask.java",
"task_id": "project_cc_java/415"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/aws/task/PersonlizeSinkTask.java",
"groundtruth_start_lineno": 89,
"repository": "aws-personalize-kafka-connector-cb28efc",
"right_context_start_lineno": 90,
"task_id": "project_cc_java/415"
}
} |
cross_code_eval_java::project_cc_java/419 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/aws/writer/DataWriter.java
// * This method is used to close AWS personalize cli... | {
"prefix": "package com.aws.task;\n\nimport com.amazonaws.ClientConfiguration;\nimport com.amazonaws.retry.PredefinedRetryPolicies;\nimport com.amazonaws.retry.RetryPolicy;\nimport com.amazonaws.services.personalizeevents.AmazonPersonalizeEvents;\nimport com.amazonaws.services.personalizeevents.AmazonPersonalizeEven... | (config.getMaxRetries()); | {} | {
"repository": "aws-personalize-kafka-connector-cb28efc",
"file": "src/main/java/com/aws/task/PersonlizeSinkTask.java",
"task_id": "project_cc_java/419"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/aws/task/PersonlizeSinkTask.java",
"groundtruth_start_lineno": 57,
"repository": "aws-personalize-kafka-connector-cb28efc",
"right_context_start_lineno": 58,
"task_id": "project_cc_java/419"
}
} |
cross_code_eval_java::project_cc_java/469 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/io/blamer/hub/model/Tokens.java
// * Register new token.
// *
// * @param token ... | {
"prefix": "/*\n * MIT License\n *\n * Copyright (c) 2023 Blamer.io\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights... | "chat", token.chat().id())
.fetch()
.first()
.then(); | {} | {
"repository": "Blamer-io-hub-33ef413",
"file": "src/main/java/io/blamer/hub/pg/PgTokens.java",
"task_id": "project_cc_java/469"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/io/blamer/hub/pg/PgTokens.java",
"groundtruth_start_lineno": 63,
"repository": "Blamer-io-hub-33ef413",
"right_context_start_lineno": 67,
"task_id": "project_cc_java/469"
}
} |
cross_code_eval_java::project_cc_java/421 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/aws/writer/DataWriter.java
// /**********************
// * This method is us... | {
"prefix": "package com.aws.task;\n\nimport com.amazonaws.ClientConfiguration;\nimport com.amazonaws.retry.PredefinedRetryPolicies;\nimport com.amazonaws.retry.RetryPolicy;\nimport com.amazonaws.services.personalizeevents.AmazonPersonalizeEvents;\nimport com.amazonaws.services.personalizeevents.AmazonPersonalizeEven... | != config.getAwsRegionName() ? config.getAwsRegionName() : Constants.DEFAULT_AWS_REGION_NAME)
.withClientConfiguration(configuration)
.build(); | {} | {
"repository": "aws-personalize-kafka-connector-cb28efc",
"file": "src/main/java/com/aws/task/PersonlizeSinkTask.java",
"task_id": "project_cc_java/421"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/aws/task/PersonlizeSinkTask.java",
"groundtruth_start_lineno": 61,
"repository": "aws-personalize-kafka-connector-cb28efc",
"right_context_start_lineno": 64,
"task_id": "project_cc_java/421"
}
} |
cross_code_eval_java::project_cc_java/453 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/fineelyframework/log/utils/MethodLogUtils.java
// if (StringUtils.isBlank... | {
"prefix": "package com.fineelyframework.log.aspect;\n\nimport com.alibaba.fastjson2.JSONObject;\nimport com.fineelyframework.log.annotation.FineelyLog;\nimport com.fineelyframework.log.annotation.FineelyLogMapping;\nimport com.fineelyframework.log.constants.CommonConstants;\nimport com.fineelyframework.log.dao.Meth... | methodLog.setStartTime(startTime); | {} | {
"repository": "Big-billed-shark-fineely-log-a1bbea7",
"file": "src/main/java/com/fineelyframework/log/aspect/DefaultMethodLogHandler.java",
"task_id": "project_cc_java/453"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/fineelyframework/log/aspect/DefaultMethodLogHandler.java",
"groundtruth_start_lineno": 114,
"repository": "Big-billed-shark-fineely-log-a1bbea7",
"right_context_start_lineno": 115,
"task_id": "project_cc_java/453"
}
} |
cross_code_eval_java::project_cc_java/465 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/fineelyframework/log/entity/MethodLogEntity.java
// public LocalDateTime getStart... | {
"prefix": "package com.fineelyframework.log.aspect;\n\nimport com.alibaba.fastjson2.JSONObject;\nimport com.fineelyframework.log.annotation.FineelyLog;\nimport com.fineelyframework.log.annotation.FineelyLogMapping;\nimport com.fineelyframework.log.constants.CommonConstants;\nimport com.fineelyframework.log.dao.Meth... | methodLog.setOperator("system"); | {} | {
"repository": "Big-billed-shark-fineely-log-a1bbea7",
"file": "src/main/java/com/fineelyframework/log/aspect/DefaultMethodLogHandler.java",
"task_id": "project_cc_java/465"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/fineelyframework/log/aspect/DefaultMethodLogHandler.java",
"groundtruth_start_lineno": 134,
"repository": "Big-billed-shark-fineely-log-a1bbea7",
"right_context_start_lineno": 135,
"task_id": "project_cc_java/465"
}
} |
cross_code_eval_java::project_cc_java/466 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/io/blamer/hub/pg/Validated.java
// return this.db.sql("SELECT c.id AS id FROM chat c ... | {
"prefix": "package io.blamer.hub.pg;\n\nimport io.blamer.hub.model.Chat;\nimport io.blamer.hub.model.Chats;\nimport org.springframework.r2dbc.core.DatabaseClient;\nimport org.springframework.stereotype.Component;\nimport reactor.core.publisher.Mono;\n\n/**\n * Chats in PostgreSQL.\n *\n * @author Aliaksei Bialiausk... | .bind("id", chat.id())
.fetch()
.first()
.then(); | {} | {
"repository": "Blamer-io-hub-33ef413",
"file": "src/main/java/io/blamer/hub/pg/PgChats.java",
"task_id": "project_cc_java/466"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/io/blamer/hub/pg/PgChats.java",
"groundtruth_start_lineno": 35,
"repository": "Blamer-io-hub-33ef413",
"right_context_start_lineno": 39,
"task_id": "project_cc_java/466"
}
} |
cross_code_eval_java::project_cc_java/456 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/fineelyframework/log/utils/MethodLogUtils.java
// if (StringUtils.isBlank... | {
"prefix": "package com.fineelyframework.log.aspect;\n\nimport com.alibaba.fastjson2.JSONObject;\nimport com.fineelyframework.log.annotation.FineelyLog;\nimport com.fineelyframework.log.annotation.FineelyLogMapping;\nimport com.fineelyframework.log.constants.CommonConstants;\nimport com.fineelyframework.log.dao.Meth... | methodLog.setMethodName(methodName); | {} | {
"repository": "Big-billed-shark-fineely-log-a1bbea7",
"file": "src/main/java/com/fineelyframework/log/aspect/DefaultMethodLogHandler.java",
"task_id": "project_cc_java/456"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/fineelyframework/log/aspect/DefaultMethodLogHandler.java",
"groundtruth_start_lineno": 117,
"repository": "Big-billed-shark-fineely-log-a1bbea7",
"right_context_start_lineno": 118,
"task_id": "project_cc_java/456"
}
} |
cross_code_eval_java::project_cc_java/457 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/fineelyframework/log/utils/MethodLogUtils.java
// if (StringUtils.isBlank... | {
"prefix": "package com.fineelyframework.log.aspect;\n\nimport com.alibaba.fastjson2.JSONObject;\nimport com.fineelyframework.log.annotation.FineelyLog;\nimport com.fineelyframework.log.annotation.FineelyLogMapping;\nimport com.fineelyframework.log.constants.CommonConstants;\nimport com.fineelyframework.log.dao.Meth... | methodLog.setAllParams(args); | {} | {
"repository": "Big-billed-shark-fineely-log-a1bbea7",
"file": "src/main/java/com/fineelyframework/log/aspect/DefaultMethodLogHandler.java",
"task_id": "project_cc_java/457"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/fineelyframework/log/aspect/DefaultMethodLogHandler.java",
"groundtruth_start_lineno": 118,
"repository": "Big-billed-shark-fineely-log-a1bbea7",
"right_context_start_lineno": 119,
"task_id": "project_cc_java/457"
}
} |
cross_code_eval_java::project_cc_java/461 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/fineelyframework/log/entity/MethodLogEntity.java
// this.endTime = endTime;
/... | {
"prefix": "package com.fineelyframework.log.aspect;\n\nimport com.alibaba.fastjson2.JSONObject;\nimport com.fineelyframework.log.annotation.FineelyLog;\nimport com.fineelyframework.log.annotation.FineelyLogMapping;\nimport com.fineelyframework.log.constants.CommonConstants;\nimport com.fineelyframework.log.dao.Meth... | methodLog.setCreateTime(startTime); | {} | {
"repository": "Big-billed-shark-fineely-log-a1bbea7",
"file": "src/main/java/com/fineelyframework/log/aspect/DefaultMethodLogHandler.java",
"task_id": "project_cc_java/461"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/fineelyframework/log/aspect/DefaultMethodLogHandler.java",
"groundtruth_start_lineno": 122,
"repository": "Big-billed-shark-fineely-log-a1bbea7",
"right_context_start_lineno": 123,
"task_id": "project_cc_java/461"
}
} |
cross_code_eval_java::project_cc_java/455 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/fineelyframework/log/utils/MethodLogUtils.java
// if (StringUtils.isBlank... | {
"prefix": "package com.fineelyframework.log.aspect;\n\nimport com.alibaba.fastjson2.JSONObject;\nimport com.fineelyframework.log.annotation.FineelyLog;\nimport com.fineelyframework.log.annotation.FineelyLogMapping;\nimport com.fineelyframework.log.constants.CommonConstants;\nimport com.fineelyframework.log.dao.Meth... | methodLog.setTimeConsuming(timeConsuming); | {} | {
"repository": "Big-billed-shark-fineely-log-a1bbea7",
"file": "src/main/java/com/fineelyframework/log/aspect/DefaultMethodLogHandler.java",
"task_id": "project_cc_java/455"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/fineelyframework/log/aspect/DefaultMethodLogHandler.java",
"groundtruth_start_lineno": 116,
"repository": "Big-billed-shark-fineely-log-a1bbea7",
"right_context_start_lineno": 117,
"task_id": "project_cc_java/455"
}
} |
cross_code_eval_java::project_cc_java/460 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/fineelyframework/log/entity/MethodLogEntity.java
// this.endTime = endTime;
/... | {
"prefix": "package com.fineelyframework.log.aspect;\n\nimport com.alibaba.fastjson2.JSONObject;\nimport com.fineelyframework.log.annotation.FineelyLog;\nimport com.fineelyframework.log.annotation.FineelyLogMapping;\nimport com.fineelyframework.log.constants.CommonConstants;\nimport com.fineelyframework.log.dao.Meth... | methodLog.setExceptionInfo(exceptionInfo); | {} | {
"repository": "Big-billed-shark-fineely-log-a1bbea7",
"file": "src/main/java/com/fineelyframework/log/aspect/DefaultMethodLogHandler.java",
"task_id": "project_cc_java/460"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/fineelyframework/log/aspect/DefaultMethodLogHandler.java",
"groundtruth_start_lineno": 121,
"repository": "Big-billed-shark-fineely-log-a1bbea7",
"right_context_start_lineno": 122,
"task_id": "project_cc_java/460"
}
} |
cross_code_eval_java::project_cc_java/459 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/fineelyframework/log/entity/MethodLogEntity.java
// this.endTime = endTime;
/... | {
"prefix": "package com.fineelyframework.log.aspect;\n\nimport com.alibaba.fastjson2.JSONObject;\nimport com.fineelyframework.log.annotation.FineelyLog;\nimport com.fineelyframework.log.annotation.FineelyLogMapping;\nimport com.fineelyframework.log.constants.CommonConstants;\nimport com.fineelyframework.log.dao.Meth... | methodLog.setIpAddress(ipAddress); | {} | {
"repository": "Big-billed-shark-fineely-log-a1bbea7",
"file": "src/main/java/com/fineelyframework/log/aspect/DefaultMethodLogHandler.java",
"task_id": "project_cc_java/459"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/fineelyframework/log/aspect/DefaultMethodLogHandler.java",
"groundtruth_start_lineno": 120,
"repository": "Big-billed-shark-fineely-log-a1bbea7",
"right_context_start_lineno": 121,
"task_id": "project_cc_java/459"
}
} |
cross_code_eval_java::project_cc_java/458 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/fineelyframework/log/entity/MethodLogEntity.java
// this.endTime = endTime;
/... | {
"prefix": "package com.fineelyframework.log.aspect;\n\nimport com.alibaba.fastjson2.JSONObject;\nimport com.fineelyframework.log.annotation.FineelyLog;\nimport com.fineelyframework.log.annotation.FineelyLogMapping;\nimport com.fineelyframework.log.constants.CommonConstants;\nimport com.fineelyframework.log.dao.Meth... | methodLog.setResult(returning); | {} | {
"repository": "Big-billed-shark-fineely-log-a1bbea7",
"file": "src/main/java/com/fineelyframework/log/aspect/DefaultMethodLogHandler.java",
"task_id": "project_cc_java/458"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/fineelyframework/log/aspect/DefaultMethodLogHandler.java",
"groundtruth_start_lineno": 119,
"repository": "Big-billed-shark-fineely-log-a1bbea7",
"right_context_start_lineno": 120,
"task_id": "project_cc_java/458"
}
} |
cross_code_eval_java::project_cc_java/452 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/fineelyframework/log/utils/MethodLogUtils.java
// if (StringUtils.isBlank... | {
"prefix": "package com.fineelyframework.log.aspect;\n\nimport com.alibaba.fastjson2.JSONObject;\nimport com.fineelyframework.log.annotation.FineelyLog;\nimport com.fineelyframework.log.annotation.FineelyLogMapping;\nimport com.fineelyframework.log.constants.CommonConstants;\nimport com.fineelyframework.log.dao.Meth... | methodLog.setDesc(finishedDesc); | {} | {
"repository": "Big-billed-shark-fineely-log-a1bbea7",
"file": "src/main/java/com/fineelyframework/log/aspect/DefaultMethodLogHandler.java",
"task_id": "project_cc_java/452"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/fineelyframework/log/aspect/DefaultMethodLogHandler.java",
"groundtruth_start_lineno": 113,
"repository": "Big-billed-shark-fineely-log-a1bbea7",
"right_context_start_lineno": 114,
"task_id": "project_cc_java/452"
}
} |
cross_code_eval_java::project_cc_java/454 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/fineelyframework/log/utils/MethodLogUtils.java
// if (StringUtils.isBlank... | {
"prefix": "package com.fineelyframework.log.aspect;\n\nimport com.alibaba.fastjson2.JSONObject;\nimport com.fineelyframework.log.annotation.FineelyLog;\nimport com.fineelyframework.log.annotation.FineelyLogMapping;\nimport com.fineelyframework.log.constants.CommonConstants;\nimport com.fineelyframework.log.dao.Meth... | methodLog.setEndTime(endTime); | {} | {
"repository": "Big-billed-shark-fineely-log-a1bbea7",
"file": "src/main/java/com/fineelyframework/log/aspect/DefaultMethodLogHandler.java",
"task_id": "project_cc_java/454"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/fineelyframework/log/aspect/DefaultMethodLogHandler.java",
"groundtruth_start_lineno": 115,
"repository": "Big-billed-shark-fineely-log-a1bbea7",
"right_context_start_lineno": 116,
"task_id": "project_cc_java/454"
}
} |
cross_code_eval_java::project_cc_java/503 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/br/com/uniamerica/estacionamento/service/ModeloService.java
// this.modeloRep... | {
"prefix": "/**\n * The CondutorService class provides methods for managing Condutor entities.\n * It applies clean code principles and follows professional coding standards.\n */\npackage br.com.uniamerica.estacionamento.service;\n\nimport br.com.uniamerica.estacionamento.entity.Condutor;\nimport br.com.uniamerica.... | movimentacaoRepository.findByVeiculoId(id).isEmpty()){ | {} | {
"repository": "bouchraakl-LotMaster-Backend-eae3cc8",
"file": "src/main/java/br/com/uniamerica/estacionamento/service/CondutorService.java",
"task_id": "project_cc_java/503"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/br/com/uniamerica/estacionamento/service/CondutorService.java",
"groundtruth_start_lineno": 78,
"repository": "bouchraakl-LotMaster-Backend-eae3cc8",
"right_context_start_lineno": 79,
"task_id": "project_cc_java/503"
}
} |
cross_code_eval_java::project_cc_java/499 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/br/com/uniamerica/estacionamento/controller/CondutorController.java
// @GetMapping("/... | {
"prefix": "package br.com.uniamerica.estacionamento.controller;\n\nimport br.com.uniamerica.estacionamento.entity.Marca;\nimport br.com.uniamerica.estacionamento.repository.MarcaRepository;\nimport br.com.uniamerica.estacionamento.repository.ModeloRepository;\nimport br.com.uniamerica.estacionamento.service.MarcaSe... | .marcaRepository.findByNome(nome)); | {} | {
"repository": "bouchraakl-LotMaster-Backend-eae3cc8",
"file": "src/main/java/br/com/uniamerica/estacionamento/controller/MarcaController.java",
"task_id": "project_cc_java/499"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/br/com/uniamerica/estacionamento/controller/MarcaController.java",
"groundtruth_start_lineno": 58,
"repository": "bouchraakl-LotMaster-Backend-eae3cc8",
"right_context_start_lineno": 59,
"task_id": "project_cc_java/499"
}
} |
cross_code_eval_java::project_cc_java/507 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/br/com/uniamerica/estacionamento/controller/MarcaController.java
// /**
// * Reg... | {
"prefix": "package br.com.uniamerica.estacionamento.controller;\n\nimport br.com.uniamerica.estacionamento.entity.Condutor;\nimport br.com.uniamerica.estacionamento.entity.Marca;\nimport br.com.uniamerica.estacionamento.entity.Veiculo;\nimport br.com.uniamerica.estacionamento.repository.CondutorRepository;\nimport ... | return ResponseEntity.ok(condutorRepository.findAllAtivo()); | {} | {
"repository": "bouchraakl-LotMaster-Backend-eae3cc8",
"file": "src/main/java/br/com/uniamerica/estacionamento/controller/CondutorController.java",
"task_id": "project_cc_java/507"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/br/com/uniamerica/estacionamento/controller/CondutorController.java",
"groundtruth_start_lineno": 89,
"repository": "bouchraakl-LotMaster-Backend-eae3cc8",
"right_context_start_lineno": 90,
"task_id": "project_cc_java/507"
}
} |
cross_code_eval_java::project_cc_java/501 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/br/com/uniamerica/estacionamento/controller/VeiculoController.java
// return ... | {
"prefix": "package br.com.uniamerica.estacionamento.controller;\n\nimport br.com.uniamerica.estacionamento.entity.Marca;\nimport br.com.uniamerica.estacionamento.repository.MarcaRepository;\nimport br.com.uniamerica.estacionamento.repository.ModeloRepository;\nimport br.com.uniamerica.estacionamento.service.MarcaSe... | marcaService.validarDeleteMarca(id); | {} | {
"repository": "bouchraakl-LotMaster-Backend-eae3cc8",
"file": "src/main/java/br/com/uniamerica/estacionamento/controller/MarcaController.java",
"task_id": "project_cc_java/501"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/br/com/uniamerica/estacionamento/controller/MarcaController.java",
"groundtruth_start_lineno": 116,
"repository": "bouchraakl-LotMaster-Backend-eae3cc8",
"right_context_start_lineno": 117,
"task_id": "project_cc_java/501"
}
} |
cross_code_eval_java::project_cc_java/511 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/br/com/uniamerica/estacionamento/controller/MarcaController.java
// /**
// * Reg... | {
"prefix": "package br.com.uniamerica.estacionamento.controller;\n\nimport br.com.uniamerica.estacionamento.entity.Marca;\nimport br.com.uniamerica.estacionamento.entity.Veiculo;\nimport br.com.uniamerica.estacionamento.repository.MovimentacaoRepository;\nimport br.com.uniamerica.estacionamento.repository.VeiculoRep... | <Veiculo> veiculoList = veiculoRepository.findAllAtivo(); | {} | {
"repository": "bouchraakl-LotMaster-Backend-eae3cc8",
"file": "src/main/java/br/com/uniamerica/estacionamento/controller/VeiculoController.java",
"task_id": "project_cc_java/511"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/br/com/uniamerica/estacionamento/controller/VeiculoController.java",
"groundtruth_start_lineno": 65,
"repository": "bouchraakl-LotMaster-Backend-eae3cc8",
"right_context_start_lineno": 66,
"task_id": "project_cc_java/511"
}
} |
cross_code_eval_java::project_cc_java/512 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/br/com/uniamerica/estacionamento/controller/ModeloController.java
// @GetMapping("/no... | {
"prefix": "package br.com.uniamerica.estacionamento.controller;\n\nimport br.com.uniamerica.estacionamento.entity.Marca;\nimport br.com.uniamerica.estacionamento.entity.Veiculo;\nimport br.com.uniamerica.estacionamento.repository.MovimentacaoRepository;\nimport br.com.uniamerica.estacionamento.repository.VeiculoRep... | = this.veiculoRepository.findByPlaca(placa); | {} | {
"repository": "bouchraakl-LotMaster-Backend-eae3cc8",
"file": "src/main/java/br/com/uniamerica/estacionamento/controller/VeiculoController.java",
"task_id": "project_cc_java/512"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/br/com/uniamerica/estacionamento/controller/VeiculoController.java",
"groundtruth_start_lineno": 75,
"repository": "bouchraakl-LotMaster-Backend-eae3cc8",
"right_context_start_lineno": 76,
"task_id": "project_cc_java/512"
}
} |
cross_code_eval_java::project_cc_java/502 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/br/com/uniamerica/estacionamento/service/MovimentacaoService.java
// Assert.notNu... | {
"prefix": "package br.com.uniamerica.estacionamento.service;\n\n\nimport br.com.uniamerica.estacionamento.entity.*;\nimport br.com.uniamerica.estacionamento.repository.ModeloRepository;\nimport br.com.uniamerica.estacionamento.repository.MovimentacaoRepository;\nimport br.com.uniamerica.estacionamento.repository.Ve... | !this.movimentacaoRepository.findByVeiculoId(id).isEmpty()) { | {} | {
"repository": "bouchraakl-LotMaster-Backend-eae3cc8",
"file": "src/main/java/br/com/uniamerica/estacionamento/service/VeiculoService.java",
"task_id": "project_cc_java/502"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/br/com/uniamerica/estacionamento/service/VeiculoService.java",
"groundtruth_start_lineno": 118,
"repository": "bouchraakl-LotMaster-Backend-eae3cc8",
"right_context_start_lineno": 119,
"task_id": "project_cc_java/502"
}
} |
cross_code_eval_java::project_cc_java/506 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/br/com/uniamerica/estacionamento/repository/CondutorRepository.java
// /**
// * ... | {
"prefix": "package br.com.uniamerica.estacionamento.controller;\n\nimport br.com.uniamerica.estacionamento.entity.Condutor;\nimport br.com.uniamerica.estacionamento.entity.Marca;\nimport br.com.uniamerica.estacionamento.entity.Veiculo;\nimport br.com.uniamerica.estacionamento.repository.CondutorRepository;\nimport ... | Condutor condutor = this.condutorRepository.findbyCPF(cpf); | {} | {
"repository": "bouchraakl-LotMaster-Backend-eae3cc8",
"file": "src/main/java/br/com/uniamerica/estacionamento/controller/CondutorController.java",
"task_id": "project_cc_java/506"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/br/com/uniamerica/estacionamento/controller/CondutorController.java",
"groundtruth_start_lineno": 73,
"repository": "bouchraakl-LotMaster-Backend-eae3cc8",
"right_context_start_lineno": 74,
"task_id": "project_cc_java/506"
}
} |
cross_code_eval_java::project_cc_java/504 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/br/com/uniamerica/estacionamento/service/ModeloService.java
// this.modeloRep... | {
"prefix": "package br.com.uniamerica.estacionamento.service;\n\nimport br.com.uniamerica.estacionamento.entity.Marca;\nimport br.com.uniamerica.estacionamento.entity.Veiculo;\nimport br.com.uniamerica.estacionamento.repository.MarcaRepository;\nimport br.com.uniamerica.estacionamento.repository.ModeloRepository;\ni... | (!this.modeloRepository.findByMarcaId(id).isEmpty()){ | {} | {
"repository": "bouchraakl-LotMaster-Backend-eae3cc8",
"file": "src/main/java/br/com/uniamerica/estacionamento/service/MarcaService.java",
"task_id": "project_cc_java/504"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/br/com/uniamerica/estacionamento/service/MarcaService.java",
"groundtruth_start_lineno": 73,
"repository": "bouchraakl-LotMaster-Backend-eae3cc8",
"right_context_start_lineno": 74,
"task_id": "project_cc_java/504"
}
} |
cross_code_eval_java::project_cc_java/513 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/br/com/uniamerica/estacionamento/controller/MovimentacaoController.java
// re... | {
"prefix": "package br.com.uniamerica.estacionamento.controller;\n\nimport br.com.uniamerica.estacionamento.entity.Marca;\nimport br.com.uniamerica.estacionamento.entity.Veiculo;\nimport br.com.uniamerica.estacionamento.repository.MovimentacaoRepository;\nimport br.com.uniamerica.estacionamento.repository.VeiculoRep... | veiculoService.validarDeleteVeiculo(id); | {} | {
"repository": "bouchraakl-LotMaster-Backend-eae3cc8",
"file": "src/main/java/br/com/uniamerica/estacionamento/controller/VeiculoController.java",
"task_id": "project_cc_java/513"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/br/com/uniamerica/estacionamento/controller/VeiculoController.java",
"groundtruth_start_lineno": 125,
"repository": "bouchraakl-LotMaster-Backend-eae3cc8",
"right_context_start_lineno": 126,
"task_id": "project_cc_java/513"
}
... |
cross_code_eval_java::project_cc_java/510 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/br/com/uniamerica/estacionamento/controller/VeiculoController.java
// return ... | {
"prefix": "package br.com.uniamerica.estacionamento.controller;\n\nimport br.com.uniamerica.estacionamento.entity.Marca;\nimport br.com.uniamerica.estacionamento.entity.Modelo;\nimport br.com.uniamerica.estacionamento.repository.ModeloRepository;\nimport br.com.uniamerica.estacionamento.repository.VeiculoRepository... | modeloService.validarDeleteModelo(id); | {} | {
"repository": "bouchraakl-LotMaster-Backend-eae3cc8",
"file": "src/main/java/br/com/uniamerica/estacionamento/controller/ModeloController.java",
"task_id": "project_cc_java/510"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/br/com/uniamerica/estacionamento/controller/ModeloController.java",
"groundtruth_start_lineno": 118,
"repository": "bouchraakl-LotMaster-Backend-eae3cc8",
"right_context_start_lineno": 119,
"task_id": "project_cc_java/510"
}
} |
cross_code_eval_java::project_cc_java/505 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/br/com/uniamerica/estacionamento/controller/MarcaController.java
// }
// /**
// ... | {
"prefix": "package br.com.uniamerica.estacionamento.controller;\n\nimport br.com.uniamerica.estacionamento.entity.Condutor;\nimport br.com.uniamerica.estacionamento.entity.Marca;\nimport br.com.uniamerica.estacionamento.entity.Veiculo;\nimport br.com.uniamerica.estacionamento.repository.CondutorRepository;\nimport ... | condutor = this.condutorRepository.findByNome(nome); | {} | {
"repository": "bouchraakl-LotMaster-Backend-eae3cc8",
"file": "src/main/java/br/com/uniamerica/estacionamento/controller/CondutorController.java",
"task_id": "project_cc_java/505"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/br/com/uniamerica/estacionamento/controller/CondutorController.java",
"groundtruth_start_lineno": 62,
"repository": "bouchraakl-LotMaster-Backend-eae3cc8",
"right_context_start_lineno": 63,
"task_id": "project_cc_java/505"
}
} |
cross_code_eval_java::project_cc_java/517 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/br/com/uniamerica/estacionamento/controller/CondutorController.java
// @GetMapping("/... | {
"prefix": "package br.com.uniamerica.estacionamento.controller;\n\nimport br.com.uniamerica.estacionamento.entity.Marca;\nimport br.com.uniamerica.estacionamento.entity.Movimentacao;\nimport br.com.uniamerica.estacionamento.repository.MovimentacaoRepository;\nimport br.com.uniamerica.estacionamento.service.Moviment... | = movimentacaoRepository.findLastFiveByOrderByEntryDateDesc(); | {} | {
"repository": "bouchraakl-LotMaster-Backend-eae3cc8",
"file": "src/main/java/br/com/uniamerica/estacionamento/controller/MovimentacaoController.java",
"task_id": "project_cc_java/517"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/br/com/uniamerica/estacionamento/controller/MovimentacaoController.java",
"groundtruth_start_lineno": 73,
"repository": "bouchraakl-LotMaster-Backend-eae3cc8",
"right_context_start_lineno": 74,
"task_id": "project_cc_java/517"
... |
cross_code_eval_java::project_cc_java/518 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/br/com/uniamerica/estacionamento/controller/ConfiguracaoController.java
// public Res... | {
"prefix": "package br.com.uniamerica.estacionamento.controller;\n\nimport br.com.uniamerica.estacionamento.entity.Marca;\nimport br.com.uniamerica.estacionamento.entity.Movimentacao;\nimport br.com.uniamerica.estacionamento.repository.MovimentacaoRepository;\nimport br.com.uniamerica.estacionamento.service.Moviment... | .ok(movimentacaoRepository.ultimaMovimentacao()); | {} | {
"repository": "bouchraakl-LotMaster-Backend-eae3cc8",
"file": "src/main/java/br/com/uniamerica/estacionamento/controller/MovimentacaoController.java",
"task_id": "project_cc_java/518"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/br/com/uniamerica/estacionamento/controller/MovimentacaoController.java",
"groundtruth_start_lineno": 79,
"repository": "bouchraakl-LotMaster-Backend-eae3cc8",
"right_context_start_lineno": 80,
"task_id": "project_cc_java/518"
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.