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/1795
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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/io/Leitor.java // if (linha != null) { // String[] vetor = linha.split(";"); // if (v...
{ "prefix": "package io;\n\nimport java.io.BufferedWriter;\nimport java.io.File;\nimport java.io.FileWriter;\nimport java.io.IOException;\nimport java.time.LocalDate;\nimport java.time.LocalDateTime;\nimport java.time.format.DateTimeFormatter;\nimport java.util.Collections;\nimport java.util.HashSet;\nimport java.uti...
Extrato listaMovimentacao : conta.getlistaDeMovimentacoes()) {
{}
{ "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "file": "src/io/Escritor.java", "task_id": "project_cc_java/1795" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/io/Escritor.java", "groundtruth_start_lineno": 201, "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "right_context_start_lineno": 202, "task_id": "project_cc_java/1795" } }
cross_code_eval_java::project_cc_java/1797
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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/contas/ContaCorrente.java // } // @Override // public String toString() { // return "Agencia =...
{ "prefix": "package io;\n\nimport java.io.BufferedWriter;\nimport java.io.File;\nimport java.io.FileWriter;\nimport java.io.IOException;\nimport java.time.LocalDate;\nimport java.time.LocalDateTime;\nimport java.time.format.DateTimeFormatter;\nimport java.util.Collections;\nimport java.util.HashSet;\nimport java.uti...
linha = "Saldo: R$" + String.format("%.2f", conta.getSaldo());
{}
{ "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "file": "src/io/Escritor.java", "task_id": "project_cc_java/1797" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/io/Escritor.java", "groundtruth_start_lineno": 217, "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "right_context_start_lineno": 218, "task_id": "project_cc_java/1797" } }
cross_code_eval_java::project_cc_java/1800
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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/relatorios/Relatorio.java // } // System.out.println("*****************************************...
{ "prefix": "package io;\n\nimport java.io.BufferedWriter;\nimport java.io.File;\nimport java.io.FileWriter;\nimport java.io.IOException;\nimport java.time.LocalDate;\nimport java.time.LocalDateTime;\nimport java.time.format.DateTimeFormatter;\nimport java.util.Collections;\nimport java.util.HashSet;\nimport java.uti...
) + "_" + conta.getTitular().getTipoDeUsuario();
{}
{ "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "file": "src/io/Escritor.java", "task_id": "project_cc_java/1800" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/io/Escritor.java", "groundtruth_start_lineno": 234, "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "right_context_start_lineno": 235, "task_id": "project_cc_java/1800" } }
cross_code_eval_java::project_cc_java/1804
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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/io/Leitor.java // if (linha != null) { // String[] vetor = linha.split(";"); // if (v...
{ "prefix": "package io;\n\nimport java.io.BufferedWriter;\nimport java.io.File;\nimport java.io.FileWriter;\nimport java.io.IOException;\nimport java.time.LocalDate;\nimport java.time.LocalDateTime;\nimport java.time.format.DateTimeFormatter;\nimport java.util.Collections;\nimport java.util.HashSet;\nimport java.uti...
= "Agencia: " + conta.getAgencia();
{}
{ "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "file": "src/io/Escritor.java", "task_id": "project_cc_java/1804" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/io/Escritor.java", "groundtruth_start_lineno": 249, "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "right_context_start_lineno": 250, "task_id": "project_cc_java/1804" } }
cross_code_eval_java::project_cc_java/1803
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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/menus/Menu.java // System.out.println("******** Menu Inicial **********"); // System.out.prin...
{ "prefix": "package io;\n\nimport java.io.BufferedWriter;\nimport java.io.File;\nimport java.io.FileWriter;\nimport java.io.IOException;\nimport java.time.LocalDate;\nimport java.time.LocalDateTime;\nimport java.time.format.DateTimeFormatter;\nimport java.util.Collections;\nimport java.util.HashSet;\nimport java.uti...
linha = "Tipo: " + conta.getTipoDeConta();
{}
{ "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "file": "src/io/Escritor.java", "task_id": "project_cc_java/1803" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/io/Escritor.java", "groundtruth_start_lineno": 246, "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "right_context_start_lineno": 247, "task_id": "project_cc_java/1803" } }
cross_code_eval_java::project_cc_java/1802
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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/relatorios/Relatorio.java // } // System.out.println("*****************************************...
{ "prefix": "package io;\n\nimport java.io.BufferedWriter;\nimport java.io.File;\nimport java.io.FileWriter;\nimport java.io.IOException;\nimport java.time.LocalDate;\nimport java.time.LocalDateTime;\nimport java.time.format.DateTimeFormatter;\nimport java.util.Collections;\nimport java.util.HashSet;\nimport java.uti...
) + "_" + conta.getAgencia() + "_" + hojeFormatado + "_comprovanteSaldo";
{}
{ "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "file": "src/io/Escritor.java", "task_id": "project_cc_java/1802" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/io/Escritor.java", "groundtruth_start_lineno": 238, "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "right_context_start_lineno": 239, "task_id": "project_cc_java/1802" } }
cross_code_eval_java::project_cc_java/1810
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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/relatorios/Relatorio.java // sc.close(); // } // public static void numDeContasNaAgencia(Conta ...
{ "prefix": "package io;\n\nimport java.io.BufferedWriter;\nimport java.io.File;\nimport java.io.FileWriter;\nimport java.io.IOException;\nimport java.time.LocalDate;\nimport java.time.LocalDateTime;\nimport java.time.format.DateTimeFormatter;\nimport java.util.Collections;\nimport java.util.HashSet;\nimport java.uti...
String arquivo = conta.getCpf() + "_" + conta.getAgencia() + "_" + hojeFormatado + "_relatorioRendimentoPoupanca";
{}
{ "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "file": "src/io/Escritor.java", "task_id": "project_cc_java/1810" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/io/Escritor.java", "groundtruth_start_lineno": 331, "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "right_context_start_lineno": 333, "task_id": "project_cc_java/1810" } }
cross_code_eval_java::project_cc_java/1806
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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/io/Leitor.java // if (linha != null) { // String[] vetor = linha.split(";"); // if (v...
{ "prefix": "package io;\n\nimport java.io.BufferedWriter;\nimport java.io.File;\nimport java.io.FileWriter;\nimport java.io.IOException;\nimport java.time.LocalDate;\nimport java.time.LocalDateTime;\nimport java.time.format.DateTimeFormatter;\nimport java.util.Collections;\nimport java.util.HashSet;\nimport java.uti...
"Saldo: R$" + String.format("%.2f", (conta.getSaldo()));
{}
{ "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "file": "src/io/Escritor.java", "task_id": "project_cc_java/1806" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/io/Escritor.java", "groundtruth_start_lineno": 255, "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "right_context_start_lineno": 256, "task_id": "project_cc_java/1806" } }
cross_code_eval_java::project_cc_java/1813
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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/io/Leitor.java // if (linha != null) { // String[] vetor = linha.split(";"); // if (v...
{ "prefix": "package io;\n\nimport java.io.BufferedWriter;\nimport java.io.File;\nimport java.io.FileWriter;\nimport java.io.IOException;\nimport java.time.LocalDate;\nimport java.time.LocalDateTime;\nimport java.time.format.DateTimeFormatter;\nimport java.util.Collections;\nimport java.util.HashSet;\nimport java.uti...
= "Simulação para CPF: " + conta.getCpf();
{}
{ "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "file": "src/io/Escritor.java", "task_id": "project_cc_java/1813" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/io/Escritor.java", "groundtruth_start_lineno": 343, "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "right_context_start_lineno": 344, "task_id": "project_cc_java/1813" } }
cross_code_eval_java::project_cc_java/1820
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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/io/Leitor.java // if (linha != null) { // String[] vetor = linha.split(";"); // if (v...
{ "prefix": "package io;\n\nimport java.io.BufferedWriter;\nimport java.io.File;\nimport java.io.FileWriter;\nimport java.io.IOException;\nimport java.time.LocalDate;\nimport java.time.LocalDateTime;\nimport java.time.format.DateTimeFormatter;\nimport java.util.Collections;\nimport java.util.HashSet;\nimport java.uti...
"Agência : " + conta.getAgencia().getNumAgencia();
{}
{ "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "file": "src/io/Escritor.java", "task_id": "project_cc_java/1820" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/io/Escritor.java", "groundtruth_start_lineno": 390, "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "right_context_start_lineno": 391, "task_id": "project_cc_java/1820" } }
cross_code_eval_java::project_cc_java/1823
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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/menus/Menu.java // System.out.println("******** Menu Inicial **********"); // System.out.prin...
{ "prefix": "package io;\n\nimport java.io.BufferedWriter;\nimport java.io.File;\nimport java.io.FileWriter;\nimport java.io.IOException;\nimport java.time.LocalDate;\nimport java.time.LocalDateTime;\nimport java.time.format.DateTimeFormatter;\nimport java.util.Collections;\nimport java.util.HashSet;\nimport java.uti...
= "Total gasto em transações = R$" + conta.getTotalTarifas();
{}
{ "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "file": "src/io/Escritor.java", "task_id": "project_cc_java/1823" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/io/Escritor.java", "groundtruth_start_lineno": 285, "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "right_context_start_lineno": 286, "task_id": "project_cc_java/1823" } }
cross_code_eval_java::project_cc_java/1822
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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/contas/ContaCorrente.java // } // @Override // public String toString() { // return "Agencia =...
{ "prefix": "package io;\n\nimport java.io.BufferedWriter;\nimport java.io.File;\nimport java.io.FileWriter;\nimport java.io.IOException;\nimport java.time.LocalDate;\nimport java.time.LocalDateTime;\nimport java.time.format.DateTimeFormatter;\nimport java.util.Collections;\nimport java.util.HashSet;\nimport java.uti...
"%.2f", ((ContaCorrente) conta).getTotalTarifas());
{}
{ "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "file": "src/io/Escritor.java", "task_id": "project_cc_java/1822" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/io/Escritor.java", "groundtruth_start_lineno": 208, "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "right_context_start_lineno": 209, "task_id": "project_cc_java/1822" } }
cross_code_eval_java::project_cc_java/1811
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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/relatorios/Relatorio.java // sc.close(); // } // public static void numDeContasNaAgencia(Conta ...
{ "prefix": "package io;\n\nimport java.io.BufferedWriter;\nimport java.io.File;\nimport java.io.FileWriter;\nimport java.io.IOException;\nimport java.time.LocalDate;\nimport java.time.LocalDateTime;\nimport java.time.format.DateTimeFormatter;\nimport java.util.Collections;\nimport java.util.HashSet;\nimport java.uti...
) + "_" + conta.getAgencia() + "_" + hojeFormatado + "_relatorioRendimentoPoupanca";
{}
{ "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "file": "src/io/Escritor.java", "task_id": "project_cc_java/1811" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/io/Escritor.java", "groundtruth_start_lineno": 331, "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "right_context_start_lineno": 333, "task_id": "project_cc_java/1811" } }
cross_code_eval_java::project_cc_java/1826
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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/io/Leitor.java // if (linha != null) { // String[] vetor = linha.split(";"); // if (v...
{ "prefix": "package io;\n\nimport java.io.BufferedWriter;\nimport java.io.File;\nimport java.io.FileWriter;\nimport java.io.IOException;\nimport java.time.LocalDate;\nimport java.time.LocalDateTime;\nimport java.time.format.DateTimeFormatter;\nimport java.util.Collections;\nimport java.util.HashSet;\nimport java.uti...
linha = "Taxa para deposito = " + ContaCorrente.getTarifaDeposito();
{}
{ "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "file": "src/io/Escritor.java", "task_id": "project_cc_java/1826" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/io/Escritor.java", "groundtruth_start_lineno": 294, "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "right_context_start_lineno": 295, "task_id": "project_cc_java/1826" } }
cross_code_eval_java::project_cc_java/1824
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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/io/Leitor.java // if (linha != null) { // String[] vetor = linha.split(";"); // if (v...
{ "prefix": "package io;\n\nimport java.io.BufferedWriter;\nimport java.io.File;\nimport java.io.FileWriter;\nimport java.io.IOException;\nimport java.time.LocalDate;\nimport java.time.LocalDateTime;\nimport java.time.format.DateTimeFormatter;\nimport java.util.Collections;\nimport java.util.HashSet;\nimport java.uti...
= "Taxa para saque = " + ContaCorrente.getTarifaSaque();
{}
{ "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "file": "src/io/Escritor.java", "task_id": "project_cc_java/1824" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/io/Escritor.java", "groundtruth_start_lineno": 288, "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "right_context_start_lineno": 289, "task_id": "project_cc_java/1824" } }
cross_code_eval_java::project_cc_java/1828
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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/io/Leitor.java // if (linha != null) { // String[] vetor = linha.split(";"); // if (v...
{ "prefix": "package io;\n\nimport java.io.BufferedWriter;\nimport java.io.File;\nimport java.io.FileWriter;\nimport java.io.IOException;\nimport java.time.LocalDate;\nimport java.time.LocalDateTime;\nimport java.time.format.DateTimeFormatter;\nimport java.util.Collections;\nimport java.util.HashSet;\nimport java.uti...
= "Taxa para tranferência = " + ContaCorrente.getTarifaTransferencia();
{}
{ "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "file": "src/io/Escritor.java", "task_id": "project_cc_java/1828" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/io/Escritor.java", "groundtruth_start_lineno": 300, "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "right_context_start_lineno": 301, "task_id": "project_cc_java/1828" } }
cross_code_eval_java::project_cc_java/1825
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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/io/Leitor.java // if (linha != null) { // String[] vetor = linha.split(";"); // if (v...
{ "prefix": "package io;\n\nimport java.io.BufferedWriter;\nimport java.io.File;\nimport java.io.FileWriter;\nimport java.io.IOException;\nimport java.time.LocalDate;\nimport java.time.LocalDateTime;\nimport java.time.format.DateTimeFormatter;\nimport java.util.Collections;\nimport java.util.HashSet;\nimport java.uti...
"Total de saques realizados = " + conta.getTotalSaques();
{}
{ "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "file": "src/io/Escritor.java", "task_id": "project_cc_java/1825" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/io/Escritor.java", "groundtruth_start_lineno": 291, "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "right_context_start_lineno": 292, "task_id": "project_cc_java/1825" } }
cross_code_eval_java::project_cc_java/1896
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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/de/florianmichael/checkhost4j/CheckHostAPI.java // } // public static CHResult<Map<CHSe...
{ "prefix": "/*\n * This file is part of CheckHost4J - https://github.com/FlorianMichael/CheckHost4J\n * Copyright (C) 2023 FlorianMichael/EnZaXD and contributors\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 ...
main = CheckHostAPI.performGetRequest("https://check-host.net/check-result/" + URLEncoder.encode(id, StandardCharsets.UTF_8));
{}
{ "repository": "FlorianMichael-CheckHost4J-b580631", "file": "src/main/java/de/florianmichael/checkhost4j/types/InternalInterface.java", "task_id": "project_cc_java/1896" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/de/florianmichael/checkhost4j/types/InternalInterface.java", "groundtruth_start_lineno": 38, "repository": "FlorianMichael-CheckHost4J-b580631", "right_context_start_lineno": 39, "task_id": "project_cc_java/1896" } }
cross_code_eval_java::project_cc_java/1829
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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/io/Leitor.java // if (linha != null) { // String[] vetor = linha.split(";"); // if (v...
{ "prefix": "package io;\n\nimport java.io.BufferedWriter;\nimport java.io.File;\nimport java.io.FileWriter;\nimport java.io.IOException;\nimport java.time.LocalDate;\nimport java.time.LocalDateTime;\nimport java.time.format.DateTimeFormatter;\nimport java.util.Collections;\nimport java.util.HashSet;\nimport java.uti...
"Total de tranferências realizadas = " + conta.getTotalTransferencias();
{}
{ "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "file": "src/io/Escritor.java", "task_id": "project_cc_java/1829" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/io/Escritor.java", "groundtruth_start_lineno": 303, "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "right_context_start_lineno": 304, "task_id": "project_cc_java/1829" } }
cross_code_eval_java::project_cc_java/1901
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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/de/florianmichael/classic4j/model/CookieStore.java // return builder.toString(); ...
{ "prefix": "/*\n * This file is part of Classic4J - https://github.com/FlorianMichael/Classic4J\n * Copyright (C) 2023 FlorianMichael/EnZaXD and contributors\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 obta...
cookieStore.appendCookies(builder).build();
{}
{ "repository": "FlorianMichael-Classic4J-6e0a2ff", "file": "src/main/java/de/florianmichael/classic4j/util/WebRequests.java", "task_id": "project_cc_java/1901" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/de/florianmichael/classic4j/util/WebRequests.java", "groundtruth_start_lineno": 48, "repository": "FlorianMichael-Classic4J-6e0a2ff", "right_context_start_lineno": 49, "task_id": "project_cc_java/1901" } }
cross_code_eval_java::project_cc_java/1902
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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/de/florianmichael/classic4j/model/CookieStore.java // boolean key = true; // ...
{ "prefix": "/*\n * This file is part of Classic4J - https://github.com/FlorianMichael/Classic4J\n * Copyright (C) 2023 FlorianMichael/EnZaXD and contributors\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 obta...
cookieStore.mergeFromResponse(response);
{}
{ "repository": "FlorianMichael-Classic4J-6e0a2ff", "file": "src/main/java/de/florianmichael/classic4j/util/WebRequests.java", "task_id": "project_cc_java/1902" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/de/florianmichael/classic4j/util/WebRequests.java", "groundtruth_start_lineno": 52, "repository": "FlorianMichael-Classic4J-6e0a2ff", "right_context_start_lineno": 53, "task_id": "project_cc_java/1902" } }
cross_code_eval_java::project_cc_java/1836
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/net/dragondelve/downfall/ui/main/DownfallMainController.java // stage.setTitl...
{ "prefix": "// Copyright 2023 Prokhor Kalinin\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by ap...
new FXMLLoader(DownfallUtil.getInstance().getURLDownfallMainFXML());
{}
{ "repository": "FitzHastings-DownfallEAM-f1a06ef", "file": "src/main/java/net/dragondelve/downfall/DownfallMain.java", "task_id": "project_cc_java/1836" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/dragondelve/downfall/DownfallMain.java", "groundtruth_start_lineno": 60, "repository": "FitzHastings-DownfallEAM-f1a06ef", "right_context_start_lineno": 61, "task_id": "project_cc_java/1836" } }
cross_code_eval_java::project_cc_java/1861
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/net/dragondelve/downfall/ui/editor/MaterialsEditorController.java // nameTextFiel...
{ "prefix": "// Copyright 2023 Prokhor Kalinin\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by ap...
selectedProperty() .unbindBidirectional(tag.isFactionalProperty());
{}
{ "repository": "FitzHastings-DownfallEAM-f1a06ef", "file": "src/main/java/net/dragondelve/downfall/ui/editor/TagsEditorController.java", "task_id": "project_cc_java/1861" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/dragondelve/downfall/ui/editor/TagsEditorController.java", "groundtruth_start_lineno": 104, "repository": "FitzHastings-DownfallEAM-f1a06ef", "right_context_start_lineno": 105, "task_id": "project_cc_java/1861" } }
cross_code_eval_java::project_cc_java/1854
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/net/dragondelve/downfall/realm/template/BuildingTemplate.java // this.outputM...
{ "prefix": "// Copyright 2023 Prokhor Kalinin\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by ap...
, null, null, defConstructionCost, null, defConstructionTime, operatesImmediately, Configurator.getInstance().getDefBuildingGFXPathname());
{}
{ "repository": "FitzHastings-DownfallEAM-f1a06ef", "file": "src/main/java/net/dragondelve/downfall/realm/template/VisualBuildingTemplate.java", "task_id": "project_cc_java/1854" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/dragondelve/downfall/realm/template/VisualBuildingTemplate.java", "groundtruth_start_lineno": 53, "repository": "FitzHastings-DownfallEAM-f1a06ef", "right_context_start_lineno": 54, "task_id": "project_cc_java/1854" } }
cross_code_eval_java::project_cc_java/1857
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/net/dragondelve/downfall/util/Configurator.java // saveConfiguration(); // ...
{ "prefix": "// Copyright 2023 Prokhor Kalinin\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by ap...
).setUserRealm(savegame.getUserRealm());
{}
{ "repository": "FitzHastings-DownfallEAM-f1a06ef", "file": "src/main/java/net/dragondelve/downfall/util/SimpleSaveManager.java", "task_id": "project_cc_java/1857" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/dragondelve/downfall/util/SimpleSaveManager.java", "groundtruth_start_lineno": 55, "repository": "FitzHastings-DownfallEAM-f1a06ef", "right_context_start_lineno": 56, "task_id": "project_cc_java/1857" } }
cross_code_eval_java::project_cc_java/1858
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/net/dragondelve/downfall/util/Configurator.java // saveConfiguration(); // ...
{ "prefix": "// Copyright 2023 Prokhor Kalinin\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by ap...
).loadAndApplyRules(savegame.getPathToRules());
{}
{ "repository": "FitzHastings-DownfallEAM-f1a06ef", "file": "src/main/java/net/dragondelve/downfall/util/SimpleSaveManager.java", "task_id": "project_cc_java/1858" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/dragondelve/downfall/util/SimpleSaveManager.java", "groundtruth_start_lineno": 56, "repository": "FitzHastings-DownfallEAM-f1a06ef", "right_context_start_lineno": 57, "task_id": "project_cc_java/1858" } }
cross_code_eval_java::project_cc_java/1855
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/net/dragondelve/downfall/realm/template/BuildingTemplate.java // this.outputM...
{ "prefix": "// Copyright 2023 Prokhor Kalinin\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by ap...
this.pathToGFXProperty.setValue(Configurator.getInstance().getDefBuildingGFXPathname());
{}
{ "repository": "FitzHastings-DownfallEAM-f1a06ef", "file": "src/main/java/net/dragondelve/downfall/realm/template/VisualBuildingTemplate.java", "task_id": "project_cc_java/1855" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/dragondelve/downfall/realm/template/VisualBuildingTemplate.java", "groundtruth_start_lineno": 71, "repository": "FitzHastings-DownfallEAM-f1a06ef", "right_context_start_lineno": 72, "task_id": "project_cc_java/1855" } }
cross_code_eval_java::project_cc_java/1833
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/net/dragondelve/mabel/fetcher/VisualTagFetcher.java // * This method will show a new...
{ "prefix": "// Copyright 2023 Prokhor Kalinin\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by ap...
configurator.loadAndApplyRules();
{}
{ "repository": "FitzHastings-DownfallEAM-f1a06ef", "file": "src/main/java/net/dragondelve/downfall/DownfallMain.java", "task_id": "project_cc_java/1833" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/dragondelve/downfall/DownfallMain.java", "groundtruth_start_lineno": 46, "repository": "FitzHastings-DownfallEAM-f1a06ef", "right_context_start_lineno": 47, "task_id": "project_cc_java/1833" } }
cross_code_eval_java::project_cc_java/1834
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/net/dragondelve/mabel/fetcher/VisualTagFetcher.java // * This method will show a new...
{ "prefix": "// Copyright 2023 Prokhor Kalinin\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by ap...
configurator.saveRules();
{}
{ "repository": "FitzHastings-DownfallEAM-f1a06ef", "file": "src/main/java/net/dragondelve/downfall/DownfallMain.java", "task_id": "project_cc_java/1834" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/dragondelve/downfall/DownfallMain.java", "groundtruth_start_lineno": 52, "repository": "FitzHastings-DownfallEAM-f1a06ef", "right_context_start_lineno": 53, "task_id": "project_cc_java/1834" } }
cross_code_eval_java::project_cc_java/1872
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/net/dragondelve/downfall/ui/main/DownfallMainController.java // Logger.ge...
{ "prefix": "// Copyright 2023 Prokhor Kalinin\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by ap...
.getLogger(DownfallUtil.DEFAULT_LOGGER).log(Level.SEVERE, "No Template found for id = "+material.getTemplateId());
{}
{ "repository": "FitzHastings-DownfallEAM-f1a06ef", "file": "src/main/java/net/dragondelve/downfall/util/Configurator.java", "task_id": "project_cc_java/1872" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/dragondelve/downfall/util/Configurator.java", "groundtruth_start_lineno": 171, "repository": "FitzHastings-DownfallEAM-f1a06ef", "right_context_start_lineno": 172, "task_id": "project_cc_java/1872" } }
cross_code_eval_java::project_cc_java/1831
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/net/dragondelve/downfall/ui/editor/TagsEditorController.java // * Binds the properti...
{ "prefix": "// Copyright 2023 Prokhor Kalinin\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by ap...
= Configurator.getInstance();
{}
{ "repository": "FitzHastings-DownfallEAM-f1a06ef", "file": "src/main/java/net/dragondelve/downfall/DownfallMain.java", "task_id": "project_cc_java/1831" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/dragondelve/downfall/DownfallMain.java", "groundtruth_start_lineno": 44, "repository": "FitzHastings-DownfallEAM-f1a06ef", "right_context_start_lineno": 45, "task_id": "project_cc_java/1831" } }
cross_code_eval_java::project_cc_java/1867
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/net/dragondelve/downfall/realm/template/MaterialTemplate.java // this.isEphemeral...
{ "prefix": "// Copyright 2023 Prokhor Kalinin\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by ap...
, defImportPrice, isExportable, isEphemeral, Configurator.getInstance().getDefMaterialGFXPathname());
{}
{ "repository": "FitzHastings-DownfallEAM-f1a06ef", "file": "src/main/java/net/dragondelve/downfall/realm/template/VisualMaterialTemplate.java", "task_id": "project_cc_java/1867" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/dragondelve/downfall/realm/template/VisualMaterialTemplate.java", "groundtruth_start_lineno": 51, "repository": "FitzHastings-DownfallEAM-f1a06ef", "right_context_start_lineno": 52, "task_id": "project_cc_java/1867" } }
cross_code_eval_java::project_cc_java/1865
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/net/dragondelve/downfall/ui/main/tabs/RealmScreenController.java // double ra...
{ "prefix": "// Copyright 2023 Prokhor Kalinin\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by ap...
DownfallUtil.getInstance().loadImage(item));
{}
{ "repository": "FitzHastings-DownfallEAM-f1a06ef", "file": "src/main/java/net/dragondelve/mabel/button/LogoTableColumn.java", "task_id": "project_cc_java/1865" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/dragondelve/mabel/button/LogoTableColumn.java", "groundtruth_start_lineno": 120, "repository": "FitzHastings-DownfallEAM-f1a06ef", "right_context_start_lineno": 121, "task_id": "project_cc_java/1865" } }
cross_code_eval_java::project_cc_java/1863
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/net/dragondelve/downfall/ui/editor/MaterialsEditorController.java // nameTextFiel...
{ "prefix": "// Copyright 2023 Prokhor Kalinin\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by ap...
() .bindBidirectional(tag.isFactionalProperty());
{}
{ "repository": "FitzHastings-DownfallEAM-f1a06ef", "file": "src/main/java/net/dragondelve/downfall/ui/editor/TagsEditorController.java", "task_id": "project_cc_java/1863" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/dragondelve/downfall/ui/editor/TagsEditorController.java", "groundtruth_start_lineno": 113, "repository": "FitzHastings-DownfallEAM-f1a06ef", "right_context_start_lineno": 114, "task_id": "project_cc_java/1863" } }
cross_code_eval_java::project_cc_java/1860
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/net/dragondelve/downfall/ui/editor/MaterialsEditorController.java // isExportable...
{ "prefix": "// Copyright 2023 Prokhor Kalinin\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by ap...
.unbindBidirectional(tag.tagProperty());
{}
{ "repository": "FitzHastings-DownfallEAM-f1a06ef", "file": "src/main/java/net/dragondelve/downfall/ui/editor/TagsEditorController.java", "task_id": "project_cc_java/1860" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/dragondelve/downfall/ui/editor/TagsEditorController.java", "groundtruth_start_lineno": 103, "repository": "FitzHastings-DownfallEAM-f1a06ef", "right_context_start_lineno": 104, "task_id": "project_cc_java/1860" } }
cross_code_eval_java::project_cc_java/1853
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/net/dragondelve/downfall/ui/main/DownfallMainController.java // * Imports and applie...
{ "prefix": "// Copyright 2023 Prokhor Kalinin\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by ap...
(relativisor.relativize());
{}
{ "repository": "FitzHastings-DownfallEAM-f1a06ef", "file": "src/main/java/net/dragondelve/mabel/button/ImageChooserButton.java", "task_id": "project_cc_java/1853" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/dragondelve/mabel/button/ImageChooserButton.java", "groundtruth_start_lineno": 82, "repository": "FitzHastings-DownfallEAM-f1a06ef", "right_context_start_lineno": 83, "task_id": "project_cc_java/1853" } }
cross_code_eval_java::project_cc_java/1838
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/net/dragondelve/mabel/fetcher/SimpleMaterialTemplateFetcher.java // //set the...
{ "prefix": "// Copyright 2023 Prokhor Kalinin\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by ap...
tag.setTag("New Tag");
{}
{ "repository": "FitzHastings-DownfallEAM-f1a06ef", "file": "src/main/java/net/dragondelve/mabel/fetcher/SimpleTagFetcher.java", "task_id": "project_cc_java/1838" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/dragondelve/mabel/fetcher/SimpleTagFetcher.java", "groundtruth_start_lineno": 38, "repository": "FitzHastings-DownfallEAM-f1a06ef", "right_context_start_lineno": 39, "task_id": "project_cc_java/1838" } }
cross_code_eval_java::project_cc_java/1848
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/net/dragondelve/downfall/ui/main/DownfallMainController.java // */ // private vo...
{ "prefix": "// Copyright 2023 Prokhor Kalinin\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by ap...
Configurator.getInstance().getUserRealm();
{}
{ "repository": "FitzHastings-DownfallEAM-f1a06ef", "file": "src/main/java/net/dragondelve/downfall/ui/main/tabs/RealmScreenController.java", "task_id": "project_cc_java/1848" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/dragondelve/downfall/ui/main/tabs/RealmScreenController.java", "groundtruth_start_lineno": 163, "repository": "FitzHastings-DownfallEAM-f1a06ef", "right_context_start_lineno": 164, "task_id": "project_cc_java/1848" } }
cross_code_eval_java::project_cc_java/1837
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/net/dragondelve/mabel/fetcher/SimpleMaterialTemplateFetcher.java // //set the...
{ "prefix": "// Copyright 2023 Prokhor Kalinin\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by ap...
tag.setId(1);
{}
{ "repository": "FitzHastings-DownfallEAM-f1a06ef", "file": "src/main/java/net/dragondelve/mabel/fetcher/SimpleTagFetcher.java", "task_id": "project_cc_java/1837" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/dragondelve/mabel/fetcher/SimpleTagFetcher.java", "groundtruth_start_lineno": 37, "repository": "FitzHastings-DownfallEAM-f1a06ef", "right_context_start_lineno": 38, "task_id": "project_cc_java/1837" } }
cross_code_eval_java::project_cc_java/1845
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/net/dragondelve/downfall/ui/main/DownfallMainController.java // updateTabs(); // ...
{ "prefix": "// Copyright 2023 Prokhor Kalinin\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by ap...
.setText(userRealm.getDiplomaticReputation().toString());
{}
{ "repository": "FitzHastings-DownfallEAM-f1a06ef", "file": "src/main/java/net/dragondelve/downfall/ui/main/tabs/RealmScreenController.java", "task_id": "project_cc_java/1845" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/dragondelve/downfall/ui/main/tabs/RealmScreenController.java", "groundtruth_start_lineno": 167, "repository": "FitzHastings-DownfallEAM-f1a06ef", "right_context_start_lineno": 168, "task_id": "project_cc_java/1845" } }
cross_code_eval_java::project_cc_java/1905
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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/de/florianmichael/classic4j/model/classicube/CCServerList.java // private final List<...
{ "prefix": "/*\n * This file is part of Classic4J - https://github.com/FlorianMichael/Classic4J\n * Copyright (C) 2023 FlorianMichael/EnZaXD and contributors\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 obta...
(s -> s.gameVersion().equals(gameVersion)).toList();
{}
{ "repository": "FlorianMichael-Classic4J-6e0a2ff", "file": "src/main/java/de/florianmichael/classic4j/model/betacraft/BCServerList.java", "task_id": "project_cc_java/1905" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/de/florianmichael/classic4j/model/betacraft/BCServerList.java", "groundtruth_start_lineno": 138, "repository": "FlorianMichael-Classic4J-6e0a2ff", "right_context_start_lineno": 139, "task_id": "project_cc_java/1905" } }
cross_code_eval_java::project_cc_java/1906
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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/de/florianmichael/classic4j/model/betacraft/BCServerInfo.java // this.playerLimit...
{ "prefix": "/*\n * This file is part of Classic4J - https://github.com/FlorianMichael/Classic4J\n * Copyright (C) 2023 FlorianMichael/EnZaXD and contributors\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 obta...
BCVersion.fromString(versionIdentifier);
{}
{ "repository": "FlorianMichael-Classic4J-6e0a2ff", "file": "src/main/java/de/florianmichael/classic4j/model/betacraft/BCServerList.java", "task_id": "project_cc_java/1906" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/de/florianmichael/classic4j/model/betacraft/BCServerList.java", "groundtruth_start_lineno": 73, "repository": "FlorianMichael-Classic4J-6e0a2ff", "right_context_start_lineno": 74, "task_id": "project_cc_java/1906" } }
cross_code_eval_java::project_cc_java/1832
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/net/dragondelve/mabel/fetcher/VisualTagFetcher.java // * This method will show a new...
{ "prefix": "// Copyright 2023 Prokhor Kalinin\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by ap...
configurator.loadConfiguration();
{}
{ "repository": "FitzHastings-DownfallEAM-f1a06ef", "file": "src/main/java/net/dragondelve/downfall/DownfallMain.java", "task_id": "project_cc_java/1832" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/dragondelve/downfall/DownfallMain.java", "groundtruth_start_lineno": 45, "repository": "FitzHastings-DownfallEAM-f1a06ef", "right_context_start_lineno": 46, "task_id": "project_cc_java/1832" } }
cross_code_eval_java::project_cc_java/1852
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/net/dragondelve/downfall/ui/editor/BuildingsEditorController.java // */ // priva...
{ "prefix": "// Copyright 2023 Prokhor Kalinin\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by ap...
.setValue(template.getId());
{}
{ "repository": "FitzHastings-DownfallEAM-f1a06ef", "file": "src/main/java/net/dragondelve/downfall/realm/Material.java", "task_id": "project_cc_java/1852" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/dragondelve/downfall/realm/Material.java", "groundtruth_start_lineno": 49, "repository": "FitzHastings-DownfallEAM-f1a06ef", "right_context_start_lineno": 50, "task_id": "project_cc_java/1852" } }
cross_code_eval_java::project_cc_java/1907
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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/de/florianmichael/classic4j/request/classicube/server/CCServerInfoRequest.java // } /...
{ "prefix": "/*\n * This file is part of Classic4J - https://github.com/FlorianMichael/Classic4J\n * Copyright (C) 2023 FlorianMichael/EnZaXD and contributors\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 obta...
joinServerInterface.sendAuthRequest(sha1(server.getBytes()));
{}
{ "repository": "FlorianMichael-Classic4J-6e0a2ff", "file": "src/main/java/de/florianmichael/classic4j/JSPBetaCraftHandler.java", "task_id": "project_cc_java/1907" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/de/florianmichael/classic4j/JSPBetaCraftHandler.java", "groundtruth_start_lineno": 36, "repository": "FlorianMichael-Classic4J-6e0a2ff", "right_context_start_lineno": 37, "task_id": "project_cc_java/1907" } }
cross_code_eval_java::project_cc_java/1864
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/net/dragondelve/downfall/ui/editor/MaterialsEditorController.java // materialTemp...
{ "prefix": "// Copyright 2023 Prokhor Kalinin\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by ap...
= FXCollections.observableList(Configurator.getInstance().getRules().getActorTags());
{}
{ "repository": "FitzHastings-DownfallEAM-f1a06ef", "file": "src/main/java/net/dragondelve/downfall/ui/editor/TagsEditorController.java", "task_id": "project_cc_java/1864" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/dragondelve/downfall/ui/editor/TagsEditorController.java", "groundtruth_start_lineno": 62, "repository": "FitzHastings-DownfallEAM-f1a06ef", "right_context_start_lineno": 63, "task_id": "project_cc_java/1864" } }
cross_code_eval_java::project_cc_java/1847
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/net/dragondelve/downfall/util/Configurator.java // userRealm.getStockpile().clear...
{ "prefix": "// Copyright 2023 Prokhor Kalinin\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by ap...
legitimacyLabel .setText(userRealm.getLegitimacy().toString());
{}
{ "repository": "FitzHastings-DownfallEAM-f1a06ef", "file": "src/main/java/net/dragondelve/downfall/ui/main/tabs/RealmScreenController.java", "task_id": "project_cc_java/1847" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/dragondelve/downfall/ui/main/tabs/RealmScreenController.java", "groundtruth_start_lineno": 169, "repository": "FitzHastings-DownfallEAM-f1a06ef", "right_context_start_lineno": 170, "task_id": "project_cc_java/1847" } }
cross_code_eval_java::project_cc_java/1868
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/net/dragondelve/downfall/realm/template/MaterialTemplate.java // this.isEphemeral...
{ "prefix": "// Copyright 2023 Prokhor Kalinin\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by ap...
.pathToGFXProperty.setValue(Configurator.getInstance().getDefMaterialGFXPathname());
{}
{ "repository": "FitzHastings-DownfallEAM-f1a06ef", "file": "src/main/java/net/dragondelve/downfall/realm/template/VisualMaterialTemplate.java", "task_id": "project_cc_java/1868" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/dragondelve/downfall/realm/template/VisualMaterialTemplate.java", "groundtruth_start_lineno": 67, "repository": "FitzHastings-DownfallEAM-f1a06ef", "right_context_start_lineno": 68, "task_id": "project_cc_java/1868" } }
cross_code_eval_java::project_cc_java/1874
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/net/dragondelve/downfall/realm/Savegame.java // } // /** // * Lightweight mu...
{ "prefix": "// Copyright 2023 Prokhor Kalinin\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by ap...
setLegitimacy(realm.getLegitimacy());
{}
{ "repository": "FitzHastings-DownfallEAM-f1a06ef", "file": "src/main/java/net/dragondelve/downfall/util/Configurator.java", "task_id": "project_cc_java/1874" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/dragondelve/downfall/util/Configurator.java", "groundtruth_start_lineno": 141, "repository": "FitzHastings-DownfallEAM-f1a06ef", "right_context_start_lineno": 142, "task_id": "project_cc_java/1874" } }
cross_code_eval_java::project_cc_java/1926
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/org/lunifera/gpt/commands/api/ICommandApi.java // * @return // */ // ICommand queryC...
{ "prefix": "/**\n * \n */\npackage org.lunifera.gpt.commands.impl;\n\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.function.Supplier;\n\nimport org.lunifera.gpt.commands.api.ICommand;\nimport org.lunifera.gpt.commands.api.ICommandApi;\nimport org.lunifera.gpt.commands.api.IPrompter;\n\nimpor...
prompter.findCommand(commandText, commands);
{}
{ "repository": "florianpirchner-java-gpt-commands-8f92fe9", "file": "src/main/java/org/lunifera/gpt/commands/impl/CommandApi.java", "task_id": "project_cc_java/1926" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/org/lunifera/gpt/commands/impl/CommandApi.java", "groundtruth_start_lineno": 72, "repository": "florianpirchner-java-gpt-commands-8f92fe9", "right_context_start_lineno": 73, "task_id": "project_cc_java/1926" } }
cross_code_eval_java::project_cc_java/1927
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/test/java/org/lunifera/gpt/commands/minimalhint/CommandTest.java // commands.add(new AskYourBossC...
{ "prefix": "/**\n * \n */\npackage org.lunifera.gpt.commands.impl;\n\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.function.Supplier;\n\nimport org.lunifera.gpt.commands.api.ICommand;\nimport org.lunifera.gpt.commands.api.ICommandApi;\nimport org.lunifera.gpt.commands.api.IPrompter;\n\nimpor...
, prompter.getSystemPrompt(commands));
{}
{ "repository": "florianpirchner-java-gpt-commands-8f92fe9", "file": "src/main/java/org/lunifera/gpt/commands/impl/CommandApi.java", "task_id": "project_cc_java/1927" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/org/lunifera/gpt/commands/impl/CommandApi.java", "groundtruth_start_lineno": 77, "repository": "florianpirchner-java-gpt-commands-8f92fe9", "right_context_start_lineno": 78, "task_id": "project_cc_java/1927" } }
cross_code_eval_java::project_cc_java/1876
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/net/dragondelve/downfall/ui/main/tabs/RealmScreenController.java // infamyLabel ...
{ "prefix": "// Copyright 2023 Prokhor Kalinin\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by ap...
userRealm.setPowerProjection(realm.getPowerProjection());
{}
{ "repository": "FitzHastings-DownfallEAM-f1a06ef", "file": "src/main/java/net/dragondelve/downfall/util/Configurator.java", "task_id": "project_cc_java/1876" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/dragondelve/downfall/util/Configurator.java", "groundtruth_start_lineno": 143, "repository": "FitzHastings-DownfallEAM-f1a06ef", "right_context_start_lineno": 144, "task_id": "project_cc_java/1876" } }
cross_code_eval_java::project_cc_java/1922
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/org/lunifera/gpt/commands/impl/Prompter.java // * @param commandString // * @return /...
{ "prefix": "package org.lunifera.gpt.commands.api;\n\nimport java.util.List;\nimport java.util.function.Supplier;\n\n/**\n * An interface with the responsibility to create prompts. And to convert the\n * received command string to a proper command.\n * \n * @author Florian\n */\npublic interface IPrompter {\n\n\tpub...
return DEFAULT_SYSTEM_PROMPT.replaceAll(PREFIX_TEMPLATE, delimiter.getPrefix())// .replaceAll(POSTFIX_TEMPLATE, delimiter.getPostfix());
{}
{ "repository": "florianpirchner-java-gpt-commands-8f92fe9", "file": "src/main/java/org/lunifera/gpt/commands/api/IPrompter.java", "task_id": "project_cc_java/1922" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/org/lunifera/gpt/commands/api/IPrompter.java", "groundtruth_start_lineno": 41, "repository": "florianpirchner-java-gpt-commands-8f92fe9", "right_context_start_lineno": 43, "task_id": "project_cc_java/1922" } }
cross_code_eval_java::project_cc_java/1881
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/net/dragondelve/downfall/realm/Savegame.java // * // * @param pathToRules pathn...
{ "prefix": "// Copyright 2023 Prokhor Kalinin\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by ap...
loadAndApplyRules(configuration.getLastRulesPathname());
{}
{ "repository": "FitzHastings-DownfallEAM-f1a06ef", "file": "src/main/java/net/dragondelve/downfall/util/Configurator.java", "task_id": "project_cc_java/1881" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/dragondelve/downfall/util/Configurator.java", "groundtruth_start_lineno": 56, "repository": "FitzHastings-DownfallEAM-f1a06ef", "right_context_start_lineno": 57, "task_id": "project_cc_java/1881" } }
cross_code_eval_java::project_cc_java/1880
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/net/dragondelve/downfall/ui/main/tabs/RealmScreenController.java // infamyLabel ...
{ "prefix": "// Copyright 2023 Prokhor Kalinin\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by ap...
.setRulerPathToGFX(realm.getRulerPathToGFX());
{}
{ "repository": "FitzHastings-DownfallEAM-f1a06ef", "file": "src/main/java/net/dragondelve/downfall/util/Configurator.java", "task_id": "project_cc_java/1880" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/dragondelve/downfall/util/Configurator.java", "groundtruth_start_lineno": 147, "repository": "FitzHastings-DownfallEAM-f1a06ef", "right_context_start_lineno": 148, "task_id": "project_cc_java/1880" } }
cross_code_eval_java::project_cc_java/1925
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/org/lunifera/gpt/commands/api/ICommand.java // * command properly. They are also part o...
{ "prefix": "package org.lunifera.gpt.commands.impl;\n\nimport java.util.List;\nimport java.util.function.Supplier;\n\nimport org.lunifera.gpt.commands.api.ErrorCommand;\nimport org.lunifera.gpt.commands.api.ICommand;\nimport org.lunifera.gpt.commands.api.ICommandWrapper;\nimport org.lunifera.gpt.commands.api.IPrompt...
return commandWrapper.unwrapCommand(commandString);
{}
{ "repository": "florianpirchner-java-gpt-commands-8f92fe9", "file": "src/main/java/org/lunifera/gpt/commands/impl/Prompter.java", "task_id": "project_cc_java/1925" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/org/lunifera/gpt/commands/impl/Prompter.java", "groundtruth_start_lineno": 78, "repository": "florianpirchner-java-gpt-commands-8f92fe9", "right_context_start_lineno": 79, "task_id": "project_cc_java/1925" } }
cross_code_eval_java::project_cc_java/1888
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/net/dragondelve/downfall/ui/editor/TagsEditorController.java // //retrieving full...
{ "prefix": "// Copyright 2023 Prokhor Kalinin\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by ap...
.textProperty() .bindBidirectional(realm.diplomaticReputationProperty(), new NumberStringConverter());
{}
{ "repository": "FitzHastings-DownfallEAM-f1a06ef", "file": "src/main/java/net/dragondelve/downfall/ui/editor/RealmEditorController.java", "task_id": "project_cc_java/1888" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/dragondelve/downfall/ui/editor/RealmEditorController.java", "groundtruth_start_lineno": 118, "repository": "FitzHastings-DownfallEAM-f1a06ef", "right_context_start_lineno": 119, "task_id": "project_cc_java/1888" } }
cross_code_eval_java::project_cc_java/1891
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/net/dragondelve/downfall/ui/editor/BuildingsEditorController.java // construction...
{ "prefix": "// Copyright 2023 Prokhor Kalinin\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by ap...
textProperty() .bindBidirectional(realm.prestigeProperty(), new NumberStringConverter());
{}
{ "repository": "FitzHastings-DownfallEAM-f1a06ef", "file": "src/main/java/net/dragondelve/downfall/ui/editor/RealmEditorController.java", "task_id": "project_cc_java/1891" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/dragondelve/downfall/ui/editor/RealmEditorController.java", "groundtruth_start_lineno": 121, "repository": "FitzHastings-DownfallEAM-f1a06ef", "right_context_start_lineno": 122, "task_id": "project_cc_java/1891" } }
cross_code_eval_java::project_cc_java/1908
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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/de/florianmichael/classic4j/ClassiCubeHandler.java // CCServerListRequest.send(ac...
{ "prefix": "/*\n * This file is part of Classic4J - https://github.com/FlorianMichael/Classic4J\n * Copyright (C) 2023 FlorianMichael/EnZaXD and contributors\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 obta...
BCServerListRequest.send().whenComplete((bcServerList, throwable) -> {
{}
{ "repository": "FlorianMichael-Classic4J-6e0a2ff", "file": "src/main/java/de/florianmichael/classic4j/BetaCraftHandler.java", "task_id": "project_cc_java/1908" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/de/florianmichael/classic4j/BetaCraftHandler.java", "groundtruth_start_lineno": 33, "repository": "FlorianMichael-Classic4J-6e0a2ff", "right_context_start_lineno": 34, "task_id": "project_cc_java/1908" } }
cross_code_eval_java::project_cc_java/1913
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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/de/florianmichael/classic4j/request/classicube/auth/CCAuthenticationTokenRequest.java // ...
{ "prefix": "/*\n * This file is part of Classic4J - https://github.com/FlorianMichael/Classic4J\n * Copyright (C) 2023 FlorianMichael/EnZaXD and contributors\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 obta...
authenticationData = new CCAuthenticationData(account.username(), account.password(), previousResponse.token, loginCode);
{}
{ "repository": "FlorianMichael-Classic4J-6e0a2ff", "file": "src/main/java/de/florianmichael/classic4j/request/classicube/auth/CCAuthenticationLoginRequest.java", "task_id": "project_cc_java/1913" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/de/florianmichael/classic4j/request/classicube/auth/CCAuthenticationLoginRequest.java", "groundtruth_start_lineno": 34, "repository": "FlorianMichael-Classic4J-6e0a2ff", "right_context_start_lineno": 35, "task_id": "project_cc_j...
cross_code_eval_java::project_cc_java/1887
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/net/dragondelve/downfall/ui/editor/TagsEditorController.java // */ // private vo...
{ "prefix": "// Copyright 2023 Prokhor Kalinin\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by ap...
textProperty() .bindBidirectional(materialTemplate.pathToGFXProperty());
{}
{ "repository": "FitzHastings-DownfallEAM-f1a06ef", "file": "src/main/java/net/dragondelve/downfall/ui/editor/MaterialsEditorController.java", "task_id": "project_cc_java/1887" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/dragondelve/downfall/ui/editor/MaterialsEditorController.java", "groundtruth_start_lineno": 174, "repository": "FitzHastings-DownfallEAM-f1a06ef", "right_context_start_lineno": 175, "task_id": "project_cc_java/1887" } }
cross_code_eval_java::project_cc_java/1918
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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/de/florianmichael/classic4j/model/classicube/highlevel/CCAuthenticationData.java // p...
{ "prefix": "/*\n * This file is part of Classic4J - https://github.com/FlorianMichael/Classic4J\n * Copyright (C) 2023 FlorianMichael/EnZaXD and contributors\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 obta...
<>("login_code", authenticationData.loginCode()) );
{}
{ "repository": "FlorianMichael-Classic4J-6e0a2ff", "file": "src/main/java/de/florianmichael/classic4j/request/classicube/auth/CCAuthenticationLoginRequest.java", "task_id": "project_cc_java/1918" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/de/florianmichael/classic4j/request/classicube/auth/CCAuthenticationLoginRequest.java", "groundtruth_start_lineno": 40, "repository": "FlorianMichael-Classic4J-6e0a2ff", "right_context_start_lineno": 42, "task_id": "project_cc_j...
cross_code_eval_java::project_cc_java/1914
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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/de/florianmichael/classic4j/request/classicube/auth/CCAuthenticationTokenRequest.java // ...
{ "prefix": "/*\n * This file is part of Classic4J - https://github.com/FlorianMichael/Classic4J\n * Copyright (C) 2023 FlorianMichael/EnZaXD and contributors\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 obta...
, account.password(), previousResponse.token, loginCode);
{}
{ "repository": "FlorianMichael-Classic4J-6e0a2ff", "file": "src/main/java/de/florianmichael/classic4j/request/classicube/auth/CCAuthenticationLoginRequest.java", "task_id": "project_cc_java/1914" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/de/florianmichael/classic4j/request/classicube/auth/CCAuthenticationLoginRequest.java", "groundtruth_start_lineno": 34, "repository": "FlorianMichael-Classic4J-6e0a2ff", "right_context_start_lineno": 35, "task_id": "project_cc_j...
cross_code_eval_java::project_cc_java/1895
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/net/dragondelve/downfall/ui/editor/BuildingsEditorController.java // construction...
{ "prefix": "// Copyright 2023 Prokhor Kalinin\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by ap...
.textProperty() .bindBidirectional(realm.rulerPathToGFXProperty());
{}
{ "repository": "FitzHastings-DownfallEAM-f1a06ef", "file": "src/main/java/net/dragondelve/downfall/ui/editor/RealmEditorController.java", "task_id": "project_cc_java/1895" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/dragondelve/downfall/ui/editor/RealmEditorController.java", "groundtruth_start_lineno": 125, "repository": "FitzHastings-DownfallEAM-f1a06ef", "right_context_start_lineno": 126, "task_id": "project_cc_java/1895" } }
cross_code_eval_java::project_cc_java/1894
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/net/dragondelve/downfall/ui/editor/BuildingsEditorController.java // construction...
{ "prefix": "// Copyright 2023 Prokhor Kalinin\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by ap...
.textProperty() .bindBidirectional(realm.realmPathToGFXProperty());
{}
{ "repository": "FitzHastings-DownfallEAM-f1a06ef", "file": "src/main/java/net/dragondelve/downfall/ui/editor/RealmEditorController.java", "task_id": "project_cc_java/1894" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/dragondelve/downfall/ui/editor/RealmEditorController.java", "groundtruth_start_lineno": 124, "repository": "FitzHastings-DownfallEAM-f1a06ef", "right_context_start_lineno": 125, "task_id": "project_cc_java/1894" } }
cross_code_eval_java::project_cc_java/1930
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // app/src/main/java/com/flyjingfish/titlebar/BaseActivity.java // } // titleBar.setTitle(...
{ "prefix": "package com.flyjingfish.titlebar;\n\nimport android.app.Activity;\nimport android.graphics.Color;\nimport android.graphics.Rect;\nimport android.os.Bundle;\nimport android.util.Log;\nimport android.view.View;\nimport android.view.ViewGroup;\nimport android.widget.Toast;\n\nimport com.flyjingfish.titlebar...
StatusBarHelper.setStatusBarLightMode(this);
{}
{ "repository": "FlyJingFish-TitleBar-24dc5b6", "file": "app/src/main/java/com/flyjingfish/titlebar/MainActivity.java", "task_id": "project_cc_java/1930" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "app/src/main/java/com/flyjingfish/titlebar/MainActivity.java", "groundtruth_start_lineno": 41, "repository": "FlyJingFish-TitleBar-24dc5b6", "right_context_start_lineno": 42, "task_id": "project_cc_java/1930" } }
cross_code_eval_java::project_cc_java/2046
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/com/brinquedomania/api/controllers/UserController.java // } // /** // * Meto...
{ "prefix": "package com.brinquedomania.api.controllers;\n\nimport com.brinquedomania.api.dtos.ProductRecordDto;\nimport com.brinquedomania.api.models.ProductModel;\nimport com.brinquedomania.api.repositories.ProductRepository;\nimport jakarta.validation.Valid;\nimport org.springframework.beans.BeanUtils;\nimport org...
product0 = productRepository.findById(id);
{}
{ "repository": "Francisco-Jean-API-BRINQUEDOMANIA-0013ce2", "file": "src/main/java/com/brinquedomania/api/controllers/ProductController.java", "task_id": "project_cc_java/2046" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/brinquedomania/api/controllers/ProductController.java", "groundtruth_start_lineno": 57, "repository": "Francisco-Jean-API-BRINQUEDOMANIA-0013ce2", "right_context_start_lineno": 58, "task_id": "project_cc_java/2046" } }
cross_code_eval_java::project_cc_java/1929
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // app/src/main/java/com/flyjingfish/titlebar/BaseActivity.java // } // titleBar.setTitle(...
{ "prefix": "package com.flyjingfish.titlebar;\n\nimport android.app.Activity;\nimport android.graphics.Color;\nimport android.graphics.Rect;\nimport android.os.Bundle;\nimport android.util.Log;\nimport android.view.View;\nimport android.view.ViewGroup;\nimport android.widget.Toast;\n\nimport com.flyjingfish.titlebar...
StatusBarHelper.translucent(this);
{}
{ "repository": "FlyJingFish-TitleBar-24dc5b6", "file": "app/src/main/java/com/flyjingfish/titlebar/MainActivity.java", "task_id": "project_cc_java/1929" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "app/src/main/java/com/flyjingfish/titlebar/MainActivity.java", "groundtruth_start_lineno": 40, "repository": "FlyJingFish-TitleBar-24dc5b6", "right_context_start_lineno": 41, "task_id": "project_cc_java/1929" } }
cross_code_eval_java::project_cc_java/2051
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/com/brinquedomania/api/repositories/UserRepository.java // */ // Optional<Us...
{ "prefix": "package com.brinquedomania.api.controllers;\n\nimport com.brinquedomania.api.dtos.UserRecordDto;\nimport com.brinquedomania.api.dtos.UserLoginRecordDto;\nimport com.brinquedomania.api.models.UserModel;\nimport com.brinquedomania.api.repositories.UserRepository;\nimport jakarta.validation.Valid;\nimport o...
user0 = userRepository.findByIdentifier(identifier);
{}
{ "repository": "Francisco-Jean-API-BRINQUEDOMANIA-0013ce2", "file": "src/main/java/com/brinquedomania/api/controllers/UserController.java", "task_id": "project_cc_java/2051" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/brinquedomania/api/controllers/UserController.java", "groundtruth_start_lineno": 76, "repository": "Francisco-Jean-API-BRINQUEDOMANIA-0013ce2", "right_context_start_lineno": 77, "task_id": "project_cc_java/2051" } }
cross_code_eval_java::project_cc_java/1928
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // app/src/main/java/com/flyjingfish/titlebar/BaseActivity.java // } // titleBar.setTitle(...
{ "prefix": "package com.flyjingfish.titlebar;\n\nimport android.app.Activity;\nimport android.graphics.Color;\nimport android.graphics.Rect;\nimport android.os.Bundle;\nimport android.util.Log;\nimport android.view.View;\nimport android.view.ViewGroup;\nimport android.widget.Toast;\n\nimport com.flyjingfish.titlebar...
d("TitleBar","onCreate-getStatusbarHeight"+StatusBarHelper.getStatusbarHeight(this));
{}
{ "repository": "FlyJingFish-TitleBar-24dc5b6", "file": "app/src/main/java/com/flyjingfish/titlebar/MainActivity.java", "task_id": "project_cc_java/1928" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "app/src/main/java/com/flyjingfish/titlebar/MainActivity.java", "groundtruth_start_lineno": 34, "repository": "FlyJingFish-TitleBar-24dc5b6", "right_context_start_lineno": 35, "task_id": "project_cc_java/1928" } }
cross_code_eval_java::project_cc_java/2049
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/com/brinquedomania/api/dtos/UserLoginRecordDto.java // package com.brinquedomania.api.dto...
{ "prefix": "package com.brinquedomania.api.controllers;\n\nimport com.brinquedomania.api.dtos.UserRecordDto;\nimport com.brinquedomania.api.dtos.UserLoginRecordDto;\nimport com.brinquedomania.api.models.UserModel;\nimport com.brinquedomania.api.repositories.UserRepository;\nimport jakarta.validation.Valid;\nimport o...
== null || !Objects.equals(user0.getPassword(), senha)) {
{}
{ "repository": "Francisco-Jean-API-BRINQUEDOMANIA-0013ce2", "file": "src/main/java/com/brinquedomania/api/controllers/UserController.java", "task_id": "project_cc_java/2049" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/brinquedomania/api/controllers/UserController.java", "groundtruth_start_lineno": 41, "repository": "Francisco-Jean-API-BRINQUEDOMANIA-0013ce2", "right_context_start_lineno": 42, "task_id": "project_cc_java/2049" } }
cross_code_eval_java::project_cc_java/2050
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/com/brinquedomania/api/dtos/UserLoginRecordDto.java // package com.brinquedomania.api.dto...
{ "prefix": "package com.brinquedomania.api.controllers;\n\nimport com.brinquedomania.api.dtos.UserRecordDto;\nimport com.brinquedomania.api.dtos.UserLoginRecordDto;\nimport com.brinquedomania.api.models.UserModel;\nimport com.brinquedomania.api.repositories.UserRepository;\nimport jakarta.validation.Valid;\nimport o...
user0 = userRepository.findByEmail(email);
{}
{ "repository": "Francisco-Jean-API-BRINQUEDOMANIA-0013ce2", "file": "src/main/java/com/brinquedomania/api/controllers/UserController.java", "task_id": "project_cc_java/2050" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/brinquedomania/api/controllers/UserController.java", "groundtruth_start_lineno": 39, "repository": "Francisco-Jean-API-BRINQUEDOMANIA-0013ce2", "right_context_start_lineno": 40, "task_id": "project_cc_java/2050" } }
cross_code_eval_java::project_cc_java/2052
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/com/brinquedomania/api/repositories/UserRepository.java // */ // Optional<Us...
{ "prefix": "package com.brinquedomania.api.controllers;\n\nimport com.brinquedomania.api.dtos.UserRecordDto;\nimport com.brinquedomania.api.dtos.UserLoginRecordDto;\nimport com.brinquedomania.api.models.UserModel;\nimport com.brinquedomania.api.repositories.UserRepository;\nimport jakarta.validation.Valid;\nimport o...
.OK).body(userRepository.findByIdentifier(identifier));
{}
{ "repository": "Francisco-Jean-API-BRINQUEDOMANIA-0013ce2", "file": "src/main/java/com/brinquedomania/api/controllers/UserController.java", "task_id": "project_cc_java/2052" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/brinquedomania/api/controllers/UserController.java", "groundtruth_start_lineno": 80, "repository": "Francisco-Jean-API-BRINQUEDOMANIA-0013ce2", "right_context_start_lineno": 81, "task_id": "project_cc_java/2052" } }
cross_code_eval_java::project_cc_java/1987
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Particles/src/main/java/com/tqqn/particles/tasks/PlayParticleRunnable.java // if (!(particleMan...
{ "prefix": "package com.tqqn.particles.managers;\n\nimport com.tqqn.particles.Particles;\nimport com.tqqn.particles.particles.LobbyParticles;\nimport com.tqqn.particles.tasks.PlayParticleRunnable;\nimport org.bukkit.entity.Player;\n\nimport java.util.ArrayList;\nimport java.util.HashMap;\nimport java.util.UUID;\n\np...
(plugin.getParticleManager(), lobbyParticles, player);
{}
{ "repository": "flytegg-ls-projects-d0e70ee", "file": "Particles/src/main/java/com/tqqn/particles/managers/ParticleManager.java", "task_id": "project_cc_java/1987" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Particles/src/main/java/com/tqqn/particles/managers/ParticleManager.java", "groundtruth_start_lineno": 57, "repository": "flytegg-ls-projects-d0e70ee", "right_context_start_lineno": 58, "task_id": "project_cc_java/1987" } }
cross_code_eval_java::project_cc_java/1971
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // DiscordVerification/src/main/java/xyz/alonefield/discordverifier/MinecraftVerifyCommand.java // pri...
{ "prefix": "package xyz.alonefield.discordverifier.api;\n\nimport org.bukkit.Bukkit;\nimport org.jetbrains.annotations.NotNull;\nimport org.bukkit.ChatColor;\nimport xyz.alonefield.discordverifier.DiscordVerifier;\n\nimport java.sql.Connection;\nimport java.sql.PreparedStatement;\nimport java.sql.SQLException;\nimpo...
DiscordVerifier.getInstance().getConfig().getBoolean("code-numbers-only")) {
{}
{ "repository": "flytegg-ls-projects-d0e70ee", "file": "DiscordVerification/src/main/java/xyz/alonefield/discordverifier/api/DiscordVerifierAPI.java", "task_id": "project_cc_java/1971" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "DiscordVerification/src/main/java/xyz/alonefield/discordverifier/api/DiscordVerifierAPI.java", "groundtruth_start_lineno": 69, "repository": "flytegg-ls-projects-d0e70ee", "right_context_start_lineno": 70, "task_id": "project_cc_java/1971" ...
cross_code_eval_java::project_cc_java/1974
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // DiscordVerification/src/main/java/xyz/alonefield/discordverifier/DiscordVerifier.java // } // p...
{ "prefix": "package xyz.alonefield.discordverifier.api;\n\nimport org.bukkit.Bukkit;\nimport org.jetbrains.annotations.NotNull;\nimport org.bukkit.ChatColor;\nimport xyz.alonefield.discordverifier.DiscordVerifier;\n\nimport java.sql.Connection;\nimport java.sql.PreparedStatement;\nimport java.sql.SQLException;\nimpo...
DiscordVerifier.getInstance().getLogger().severe("Failed to save player " + uuid + " to database");
{}
{ "repository": "flytegg-ls-projects-d0e70ee", "file": "DiscordVerification/src/main/java/xyz/alonefield/discordverifier/api/DiscordVerifierAPI.java", "task_id": "project_cc_java/1974" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "DiscordVerification/src/main/java/xyz/alonefield/discordverifier/api/DiscordVerifierAPI.java", "groundtruth_start_lineno": 96, "repository": "flytegg-ls-projects-d0e70ee", "right_context_start_lineno": 97, "task_id": "project_cc_java/1974" ...
cross_code_eval_java::project_cc_java/1969
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // ProximityChat/src/main/java/cc/stormlabs/proximitychat/commands/GlobalChatCommand.java // retur...
{ "prefix": "package xyz.alonefield.discordverifier.api;\n\nimport org.bukkit.Bukkit;\nimport org.jetbrains.annotations.NotNull;\nimport org.bukkit.ChatColor;\nimport xyz.alonefield.discordverifier.DiscordVerifier;\n\nimport java.sql.Connection;\nimport java.sql.PreparedStatement;\nimport java.sql.SQLException;\nimpo...
if (DiscordVerifier.getDiscordCodes().containsValue(sb.toString())) {
{}
{ "repository": "flytegg-ls-projects-d0e70ee", "file": "DiscordVerification/src/main/java/xyz/alonefield/discordverifier/api/DiscordVerifierAPI.java", "task_id": "project_cc_java/1969" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "DiscordVerification/src/main/java/xyz/alonefield/discordverifier/api/DiscordVerifierAPI.java", "groundtruth_start_lineno": 38, "repository": "flytegg-ls-projects-d0e70ee", "right_context_start_lineno": 39, "task_id": "project_cc_java/1969" ...
cross_code_eval_java::project_cc_java/1973
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // DiscordVerification/src/main/java/xyz/alonefield/discordverifier/DiscordEvents.java // Role rem...
{ "prefix": "package xyz.alonefield.discordverifier.api;\n\nimport org.bukkit.Bukkit;\nimport org.jetbrains.annotations.NotNull;\nimport org.bukkit.ChatColor;\nimport xyz.alonefield.discordverifier.DiscordVerifier;\n\nimport java.sql.Connection;\nimport java.sql.PreparedStatement;\nimport java.sql.SQLException;\nimpo...
Connection connection = DiscordVerifier.getDatabaseConnection();
{}
{ "repository": "flytegg-ls-projects-d0e70ee", "file": "DiscordVerification/src/main/java/xyz/alonefield/discordverifier/api/DiscordVerifierAPI.java", "task_id": "project_cc_java/1973" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "DiscordVerification/src/main/java/xyz/alonefield/discordverifier/api/DiscordVerifierAPI.java", "groundtruth_start_lineno": 85, "repository": "flytegg-ls-projects-d0e70ee", "right_context_start_lineno": 86, "task_id": "project_cc_java/1973" ...
cross_code_eval_java::project_cc_java/1959
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Particles/src/main/java/com/tqqn/particles/listeners/PlayerInventoryClickListener.java // p...
{ "prefix": "package com.tqqn.particles.tasks;\n\nimport com.tqqn.particles.managers.ParticleManager;\nimport com.tqqn.particles.particles.LobbyParticles;\nimport org.bukkit.Location;\nimport org.bukkit.entity.Player;\nimport org.bukkit.scheduler.BukkitRunnable;\n\npublic class PlayParticleRunnable extends BukkitRunn...
lobbyParticles.getParticle(), playerLocation, lobbyParticles.getCount());
{}
{ "repository": "flytegg-ls-projects-d0e70ee", "file": "Particles/src/main/java/com/tqqn/particles/tasks/PlayParticleRunnable.java", "task_id": "project_cc_java/1959" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Particles/src/main/java/com/tqqn/particles/tasks/PlayParticleRunnable.java", "groundtruth_start_lineno": 31, "repository": "flytegg-ls-projects-d0e70ee", "right_context_start_lineno": 32, "task_id": "project_cc_java/1959" } }
cross_code_eval_java::project_cc_java/1968
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // ProximityChat/src/main/java/cc/stormlabs/proximitychat/events/AsyncPlayerChat.java // ...
{ "prefix": "package cc.stormlabs.proximitychat.commands;\n\nimport cc.stormlabs.proximitychat.utils.CustomColor;\nimport org.bukkit.Bukkit;\nimport org.bukkit.command.Command;\nimport org.bukkit.command.CommandExecutor;\nimport org.bukkit.command.CommandSender;\nimport org.bukkit.entity.Player;\nimport org.bukkit.in...
sendMessage(CustomColor.translate("&7Invalid usage.. Try &e/gmp (player)&7."));
{}
{ "repository": "flytegg-ls-projects-d0e70ee", "file": "ProximityChat/src/main/java/cc/stormlabs/proximitychat/commands/GiveMegaphoneCommand.java", "task_id": "project_cc_java/1968" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "ProximityChat/src/main/java/cc/stormlabs/proximitychat/commands/GiveMegaphoneCommand.java", "groundtruth_start_lineno": 58, "repository": "flytegg-ls-projects-d0e70ee", "right_context_start_lineno": 59, "task_id": "project_cc_java/1968" } }
cross_code_eval_java::project_cc_java/2058
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/com/brinquedomania/api/controllers/SaleController.java // if (cart.isEmpty() || c...
{ "prefix": "package com.brinquedomania.api.controllers;\n\nimport com.brinquedomania.api.dtos.CartRecordDto;\nimport com.brinquedomania.api.models.CartModel;\nimport com.brinquedomania.api.models.ProductModel;\nimport com.brinquedomania.api.repositories.CartRepository;\nimport com.brinquedomania.api.repositories.Pro...
UUID, Integer> idsProducts = cartModel.getIdsProducts();
{}
{ "repository": "Francisco-Jean-API-BRINQUEDOMANIA-0013ce2", "file": "src/main/java/com/brinquedomania/api/controllers/CartController.java", "task_id": "project_cc_java/2058" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/brinquedomania/api/controllers/CartController.java", "groundtruth_start_lineno": 51, "repository": "Francisco-Jean-API-BRINQUEDOMANIA-0013ce2", "right_context_start_lineno": 52, "task_id": "project_cc_java/2058" } }
cross_code_eval_java::project_cc_java/1966
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // ProximityChat/src/main/java/cc/stormlabs/proximitychat/commands/GlobalChatCommand.java // Playe...
{ "prefix": "package cc.stormlabs.proximitychat.commands;\n\nimport cc.stormlabs.proximitychat.utils.CustomColor;\nimport org.bukkit.Bukkit;\nimport org.bukkit.command.Command;\nimport org.bukkit.command.CommandExecutor;\nimport org.bukkit.command.CommandSender;\nimport org.bukkit.entity.Player;\nimport org.bukkit.in...
sender.sendMessage(CustomColor.translate("&a" + args[0] + " &7is &cnot &7online."));
{}
{ "repository": "flytegg-ls-projects-d0e70ee", "file": "ProximityChat/src/main/java/cc/stormlabs/proximitychat/commands/GiveMegaphoneCommand.java", "task_id": "project_cc_java/1966" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "ProximityChat/src/main/java/cc/stormlabs/proximitychat/commands/GiveMegaphoneCommand.java", "groundtruth_start_lineno": 43, "repository": "flytegg-ls-projects-d0e70ee", "right_context_start_lineno": 44, "task_id": "project_cc_java/1966" } }
cross_code_eval_java::project_cc_java/2054
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/com/brinquedomania/api/controllers/ProductController.java // } // /** // * M...
{ "prefix": "package com.brinquedomania.api.controllers;\n\nimport com.brinquedomania.api.dtos.UserRecordDto;\nimport com.brinquedomania.api.dtos.UserLoginRecordDto;\nimport com.brinquedomania.api.models.UserModel;\nimport com.brinquedomania.api.repositories.UserRepository;\nimport jakarta.validation.Valid;\nimport o...
= userRepository.findByIdentifier(identifier);
{}
{ "repository": "Francisco-Jean-API-BRINQUEDOMANIA-0013ce2", "file": "src/main/java/com/brinquedomania/api/controllers/UserController.java", "task_id": "project_cc_java/2054" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/brinquedomania/api/controllers/UserController.java", "groundtruth_start_lineno": 96, "repository": "Francisco-Jean-API-BRINQUEDOMANIA-0013ce2", "right_context_start_lineno": 97, "task_id": "project_cc_java/2054" } }
cross_code_eval_java::project_cc_java/1960
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Particles/src/main/java/com/tqqn/particles/listeners/PlayerInventoryClickListener.java // p...
{ "prefix": "package com.tqqn.particles.tasks;\n\nimport com.tqqn.particles.managers.ParticleManager;\nimport com.tqqn.particles.particles.LobbyParticles;\nimport org.bukkit.Location;\nimport org.bukkit.entity.Player;\nimport org.bukkit.scheduler.BukkitRunnable;\n\npublic class PlayParticleRunnable extends BukkitRunn...
playerLocation, lobbyParticles.getCount());
{}
{ "repository": "flytegg-ls-projects-d0e70ee", "file": "Particles/src/main/java/com/tqqn/particles/tasks/PlayParticleRunnable.java", "task_id": "project_cc_java/1960" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Particles/src/main/java/com/tqqn/particles/tasks/PlayParticleRunnable.java", "groundtruth_start_lineno": 31, "repository": "flytegg-ls-projects-d0e70ee", "right_context_start_lineno": 32, "task_id": "project_cc_java/1960" } }
cross_code_eval_java::project_cc_java/2057
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/com/brinquedomania/api/repositories/UserRepository.java // */ // List<UserMo...
{ "prefix": "package com.brinquedomania.api.controllers;\n\nimport com.brinquedomania.api.dtos.UserRecordDto;\nimport com.brinquedomania.api.dtos.UserLoginRecordDto;\nimport com.brinquedomania.api.models.UserModel;\nimport com.brinquedomania.api.repositories.UserRepository;\nimport jakarta.validation.Valid;\nimport o...
> list = userRepository.findByType(type);
{}
{ "repository": "Francisco-Jean-API-BRINQUEDOMANIA-0013ce2", "file": "src/main/java/com/brinquedomania/api/controllers/UserController.java", "task_id": "project_cc_java/2057" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/brinquedomania/api/controllers/UserController.java", "groundtruth_start_lineno": 123, "repository": "Francisco-Jean-API-BRINQUEDOMANIA-0013ce2", "right_context_start_lineno": 124, "task_id": "project_cc_java/2057" } }
cross_code_eval_java::project_cc_java/2006
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // CustomItems/src/main/java/com/pzyc0/customitems/SaveItemCommand.java // if(player.getInventory(...
{ "prefix": "package com.pzyc0.customitems;\n\nimport org.bukkit.ChatColor;\nimport org.bukkit.command.Command;\nimport org.bukkit.command.CommandExecutor;\nimport org.bukkit.command.CommandSender;\nimport org.bukkit.command.TabCompleter;\nimport org.bukkit.entity.Player;\nimport org.bukkit.util.StringUtil;\n\nimport...
asList(manager.getItemsAsArray()), new ArrayList<>());
{}
{ "repository": "flytegg-ls-projects-d0e70ee", "file": "CustomItems/src/main/java/com/pzyc0/customitems/GetItemCommand.java", "task_id": "project_cc_java/2006" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "CustomItems/src/main/java/com/pzyc0/customitems/GetItemCommand.java", "groundtruth_start_lineno": 43, "repository": "flytegg-ls-projects-d0e70ee", "right_context_start_lineno": 44, "task_id": "project_cc_java/2006" } }
cross_code_eval_java::project_cc_java/2056
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/com/brinquedomania/api/controllers/ProductController.java // return ResponseE...
{ "prefix": "package com.brinquedomania.api.controllers;\n\nimport com.brinquedomania.api.dtos.UserRecordDto;\nimport com.brinquedomania.api.dtos.UserLoginRecordDto;\nimport com.brinquedomania.api.models.UserModel;\nimport com.brinquedomania.api.repositories.UserRepository;\nimport jakarta.validation.Valid;\nimport o...
.delete(userRepository.findByIdentifier(identifier));
{}
{ "repository": "Francisco-Jean-API-BRINQUEDOMANIA-0013ce2", "file": "src/main/java/com/brinquedomania/api/controllers/UserController.java", "task_id": "project_cc_java/2056" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/brinquedomania/api/controllers/UserController.java", "groundtruth_start_lineno": 112, "repository": "Francisco-Jean-API-BRINQUEDOMANIA-0013ce2", "right_context_start_lineno": 113, "task_id": "project_cc_java/2056" } }
cross_code_eval_java::project_cc_java/2007
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Particles/src/main/java/com/tqqn/particles/listeners/PlayerInventoryClickListener.java // */ // ...
{ "prefix": "package com.tqqn.particles.menus;\n\nimport com.tqqn.particles.Particles;\nimport com.tqqn.particles.utils.Color;\nimport com.tqqn.particles.particles.LobbyParticles;\nimport org.bukkit.Bukkit;\nimport org.bukkit.Material;\nimport org.bukkit.entity.Player;\nimport org.bukkit.inventory.Inventory;\nimport ...
size = plugin.getParticleManager().getParticlesMapSize()+1;
{}
{ "repository": "flytegg-ls-projects-d0e70ee", "file": "Particles/src/main/java/com/tqqn/particles/menus/ParticleMenu.java", "task_id": "project_cc_java/2007" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Particles/src/main/java/com/tqqn/particles/menus/ParticleMenu.java", "groundtruth_start_lineno": 45, "repository": "flytegg-ls-projects-d0e70ee", "right_context_start_lineno": 46, "task_id": "project_cc_java/2007" } }
cross_code_eval_java::project_cc_java/2061
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/com/brinquedomania/api/controllers/SaleController.java // */ // cart.get...
{ "prefix": "package com.brinquedomania.api.controllers;\n\nimport com.brinquedomania.api.dtos.CartRecordDto;\nimport com.brinquedomania.api.models.CartModel;\nimport com.brinquedomania.api.models.ProductModel;\nimport com.brinquedomania.api.repositories.CartRepository;\nimport com.brinquedomania.api.repositories.Pro...
.get().addProduct(idProduct, 1);
{}
{ "repository": "Francisco-Jean-API-BRINQUEDOMANIA-0013ce2", "file": "src/main/java/com/brinquedomania/api/controllers/CartController.java", "task_id": "project_cc_java/2061" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/brinquedomania/api/controllers/CartController.java", "groundtruth_start_lineno": 112, "repository": "Francisco-Jean-API-BRINQUEDOMANIA-0013ce2", "right_context_start_lineno": 113, "task_id": "project_cc_java/2061" } }
cross_code_eval_java::project_cc_java/2000
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // CustomItems/src/main/java/com/pzyc0/customitems/GetItemCommand.java // } // return fals...
{ "prefix": "package com.pzyc0.customitems;\n\nimport org.bukkit.ChatColor;\nimport org.bukkit.Material;\nimport org.bukkit.configuration.file.FileConfiguration;\nimport org.bukkit.inventory.ItemStack;\nimport org.bukkit.inventory.meta.ItemMeta;\n\nimport java.io.IOException;\nimport java.util.ArrayList;\nimport java...
: mainInstance.getYmlDataFile().getConfigurationSection("").getKeys(false)){
{}
{ "repository": "flytegg-ls-projects-d0e70ee", "file": "CustomItems/src/main/java/com/pzyc0/customitems/ConfigManager.java", "task_id": "project_cc_java/2000" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "CustomItems/src/main/java/com/pzyc0/customitems/ConfigManager.java", "groundtruth_start_lineno": 36, "repository": "flytegg-ls-projects-d0e70ee", "right_context_start_lineno": 37, "task_id": "project_cc_java/2000" } }
cross_code_eval_java::project_cc_java/2024
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // DiscordVerification/src/main/java/xyz/alonefield/discordverifier/DiscordEvents.java // ...
{ "prefix": "package xyz.alonefield.discordverifier;\n\nimport net.md_5.bungee.api.chat.ClickEvent;\nimport net.md_5.bungee.api.chat.ComponentBuilder;\nimport org.apache.commons.lang3.tuple.Pair;\nimport org.bukkit.command.Command;\nimport org.bukkit.command.CommandExecutor;\nimport org.bukkit.command.CommandSender;\...
DiscordVerifier.getDiscordCodes().get(player.getUniqueId()).getRight();
{}
{ "repository": "flytegg-ls-projects-d0e70ee", "file": "DiscordVerification/src/main/java/xyz/alonefield/discordverifier/MinecraftVerifyCommand.java", "task_id": "project_cc_java/2024" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "DiscordVerification/src/main/java/xyz/alonefield/discordverifier/MinecraftVerifyCommand.java", "groundtruth_start_lineno": 42, "repository": "flytegg-ls-projects-d0e70ee", "right_context_start_lineno": 43, "task_id": "project_cc_java/2024" ...
cross_code_eval_java::project_cc_java/2027
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // DiscordVerification/src/main/java/xyz/alonefield/discordverifier/DiscordEvents.java // } // ...
{ "prefix": "package xyz.alonefield.discordverifier;\n\nimport net.md_5.bungee.api.chat.ClickEvent;\nimport net.md_5.bungee.api.chat.ComponentBuilder;\nimport org.apache.commons.lang3.tuple.Pair;\nimport org.bukkit.command.Command;\nimport org.bukkit.command.CommandExecutor;\nimport org.bukkit.command.CommandSender;\...
(DiscordVerifier.getInstance().getConfig().getBoolean("should-minecraft-chat-copyable")) {
{}
{ "repository": "flytegg-ls-projects-d0e70ee", "file": "DiscordVerification/src/main/java/xyz/alonefield/discordverifier/MinecraftVerifyCommand.java", "task_id": "project_cc_java/2027" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "DiscordVerification/src/main/java/xyz/alonefield/discordverifier/MinecraftVerifyCommand.java", "groundtruth_start_lineno": 48, "repository": "flytegg-ls-projects-d0e70ee", "right_context_start_lineno": 49, "task_id": "project_cc_java/2027" ...
cross_code_eval_java::project_cc_java/2002
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Particles/src/main/java/com/tqqn/particles/menus/ParticleMenu.java // } // /** // * Checks...
{ "prefix": "package com.pzyc0.customitems;\n\nimport org.bukkit.ChatColor;\nimport org.bukkit.Material;\nimport org.bukkit.configuration.file.FileConfiguration;\nimport org.bukkit.inventory.ItemStack;\nimport org.bukkit.inventory.meta.ItemMeta;\n\nimport java.io.IOException;\nimport java.util.ArrayList;\nimport java...
mainInstance.getYmlDataFile().save(mainInstance.getDatafile());
{}
{ "repository": "flytegg-ls-projects-d0e70ee", "file": "CustomItems/src/main/java/com/pzyc0/customitems/ConfigManager.java", "task_id": "project_cc_java/2002" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "CustomItems/src/main/java/com/pzyc0/customitems/ConfigManager.java", "groundtruth_start_lineno": 67, "repository": "flytegg-ls-projects-d0e70ee", "right_context_start_lineno": 68, "task_id": "project_cc_java/2002" } }
cross_code_eval_java::project_cc_java/1984
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // CustomItems/src/main/java/com/pzyc0/customitems/GetItemCommand.java // } // return fals...
{ "prefix": "package com.pzyc0.customitems;\n\nimport org.bukkit.ChatColor;\nimport org.bukkit.Material;\nimport org.bukkit.command.Command;\nimport org.bukkit.command.CommandExecutor;\nimport org.bukkit.command.CommandSender;\nimport org.bukkit.entity.Player;\n\npublic class SaveItemCommand implements CommandExecuto...
manager.saveFile();
{}
{ "repository": "flytegg-ls-projects-d0e70ee", "file": "CustomItems/src/main/java/com/pzyc0/customitems/SaveItemCommand.java", "task_id": "project_cc_java/1984" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "CustomItems/src/main/java/com/pzyc0/customitems/SaveItemCommand.java", "groundtruth_start_lineno": 31, "repository": "flytegg-ls-projects-d0e70ee", "right_context_start_lineno": 32, "task_id": "project_cc_java/1984" } }
cross_code_eval_java::project_cc_java/2009
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // CustomItems/src/main/java/com/pzyc0/customitems/ConfigManager.java // if(config.getInt(item...
{ "prefix": "package com.tqqn.particles.menus;\n\nimport com.tqqn.particles.Particles;\nimport com.tqqn.particles.utils.Color;\nimport com.tqqn.particles.particles.LobbyParticles;\nimport org.bukkit.Bukkit;\nimport org.bukkit.Material;\nimport org.bukkit.entity.Player;\nimport org.bukkit.inventory.Inventory;\nimport ...
.setDisplayName(Color.translate(name));
{}
{ "repository": "flytegg-ls-projects-d0e70ee", "file": "Particles/src/main/java/com/tqqn/particles/menus/ParticleMenu.java", "task_id": "project_cc_java/2009" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Particles/src/main/java/com/tqqn/particles/menus/ParticleMenu.java", "groundtruth_start_lineno": 63, "repository": "flytegg-ls-projects-d0e70ee", "right_context_start_lineno": 64, "task_id": "project_cc_java/2009" } }
cross_code_eval_java::project_cc_java/2037
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // DiscordVerification/src/main/java/xyz/alonefield/discordverifier/api/DiscordVerifierAPI.java // ...
{ "prefix": "package xyz.alonefield.discordverifier;\n\nimport net.dv8tion.jda.api.entities.Role;\nimport net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent;\nimport net.dv8tion.jda.api.hooks.ListenerAdapter;\nimport net.dv8tion.jda.api.interactions.commands.OptionMapping;\nimport org.bukkit....
.requireNonNull(e.getGuild()).getRoleById(DiscordVerifier.getInstance().getConfig().getString("discord.role-given"));
{}
{ "repository": "flytegg-ls-projects-d0e70ee", "file": "DiscordVerification/src/main/java/xyz/alonefield/discordverifier/DiscordEvents.java", "task_id": "project_cc_java/2037" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "DiscordVerification/src/main/java/xyz/alonefield/discordverifier/DiscordEvents.java", "groundtruth_start_lineno": 77, "repository": "flytegg-ls-projects-d0e70ee", "right_context_start_lineno": 78, "task_id": "project_cc_java/2037" } }
cross_code_eval_java::project_cc_java/2003
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Particles/src/main/java/com/tqqn/particles/menus/ParticleMenu.java // } // /** // * Checks...
{ "prefix": "package com.pzyc0.customitems;\n\nimport org.bukkit.ChatColor;\nimport org.bukkit.Material;\nimport org.bukkit.configuration.file.FileConfiguration;\nimport org.bukkit.inventory.ItemStack;\nimport org.bukkit.inventory.meta.ItemMeta;\n\nimport java.io.IOException;\nimport java.util.ArrayList;\nimport java...
.save(mainInstance.getDatafile());
{}
{ "repository": "flytegg-ls-projects-d0e70ee", "file": "CustomItems/src/main/java/com/pzyc0/customitems/ConfigManager.java", "task_id": "project_cc_java/2003" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "CustomItems/src/main/java/com/pzyc0/customitems/ConfigManager.java", "groundtruth_start_lineno": 67, "repository": "flytegg-ls-projects-d0e70ee", "right_context_start_lineno": 68, "task_id": "project_cc_java/2003" } }
cross_code_eval_java::project_cc_java/2034
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // DiscordVerification/src/main/java/xyz/alonefield/discordverifier/MinecraftVerifyCommand.java // ...
{ "prefix": "package xyz.alonefield.discordverifier;\n\nimport net.dv8tion.jda.api.entities.Role;\nimport net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent;\nimport net.dv8tion.jda.api.hooks.ListenerAdapter;\nimport net.dv8tion.jda.api.interactions.commands.OptionMapping;\nimport org.bukkit....
(DiscordVerifier.getInstance().getConfig().getString("messages.verification-successful-discord")).queue();
{}
{ "repository": "flytegg-ls-projects-d0e70ee", "file": "DiscordVerification/src/main/java/xyz/alonefield/discordverifier/DiscordEvents.java", "task_id": "project_cc_java/2034" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "DiscordVerification/src/main/java/xyz/alonefield/discordverifier/DiscordEvents.java", "groundtruth_start_lineno": 69, "repository": "flytegg-ls-projects-d0e70ee", "right_context_start_lineno": 70, "task_id": "project_cc_java/2034" } }
cross_code_eval_java::project_cc_java/1992
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Warps/src/main/java/me/snat/warps/commands/DeleteWarpCommand.java // return true; // ...
{ "prefix": "package me.snat.warps.commands;\n\nimport me.snat.warps.Main;\nimport net.md_5.bungee.api.ChatColor;\nimport org.bukkit.Bukkit;\nimport org.bukkit.Location;\nimport org.bukkit.command.Command;\nimport org.bukkit.command.CommandExecutor;\nimport org.bukkit.command.CommandSender;\nimport org.bukkit.configu...
.teleport(main.getWarpManager().getWarp(args[0]));
{}
{ "repository": "flytegg-ls-projects-d0e70ee", "file": "Warps/src/main/java/me/snat/warps/commands/WarpCommand.java", "task_id": "project_cc_java/1992" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Warps/src/main/java/me/snat/warps/commands/WarpCommand.java", "groundtruth_start_lineno": 42, "repository": "flytegg-ls-projects-d0e70ee", "right_context_start_lineno": 43, "task_id": "project_cc_java/1992" } }
cross_code_eval_java::project_cc_java/1997
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // ProximityChat/src/main/java/cc/stormlabs/proximitychat/commands/GlobalChatCommand.java // retur...
{ "prefix": "package cc.stormlabs.proximitychat.events;\n\nimport cc.stormlabs.proximitychat.ProximityChat;\nimport cc.stormlabs.proximitychat.manager.ConfigManager;\nimport cc.stormlabs.proximitychat.utils.CustomColor;\nimport org.bukkit.Bukkit;\nimport org.bukkit.entity.Player;\nimport org.bukkit.event.EventHandler...
<= configManager.getTalkRange()) {
{}
{ "repository": "flytegg-ls-projects-d0e70ee", "file": "ProximityChat/src/main/java/cc/stormlabs/proximitychat/events/AsyncPlayerChat.java", "task_id": "project_cc_java/1997" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "ProximityChat/src/main/java/cc/stormlabs/proximitychat/events/AsyncPlayerChat.java", "groundtruth_start_lineno": 39, "repository": "flytegg-ls-projects-d0e70ee", "right_context_start_lineno": 40, "task_id": "project_cc_java/1997" } }