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/1092
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // java/src/main/java/com/deshaw/pjrmi/PJRmi.java // else if (typeDesc.getName().equals("c...
{ "prefix": "package com.deshaw.pjrmi;\n\nimport com.deshaw.util.StringUtil;\n\nimport java.io.InputStream;\nimport java.io.IOException;\nimport java.io.OutputStream;\n\nimport java.net.InetAddress;\n\n/**\n * A transport provider which spawns a child Python process to talk to.\n */\npublic class PythonMinionProvider...
python.invoke("len", Integer.class, foo);
{}
{ "repository": "deshaw-pjrmi-4212d0a", "file": "java/src/main/java/com/deshaw/pjrmi/PythonMinionProvider.java", "task_id": "project_cc_java/1092" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "java/src/main/java/com/deshaw/pjrmi/PythonMinionProvider.java", "groundtruth_start_lineno": 339, "repository": "deshaw-pjrmi-4212d0a", "right_context_start_lineno": 340, "task_id": "project_cc_java/1092" } }
cross_code_eval_java::project_cc_java/1104
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // java/src/main/java/com/deshaw/python/NumpyArray.java // case BOOLEAN: // case INT8: // ...
{ "prefix": "package com.deshaw.python;\n\nimport com.deshaw.util.StringUtil;\n\nimport java.io.BufferedInputStream;\nimport java.io.ByteArrayInputStream;\nimport java.io.EOFException;\nimport java.io.FileNotFoundException;\nimport java.io.IOException;\nimport java.io.InputStream;\n\nimport java.math.BigInteger;\n\ni...
[] shape = {
{}
{ "repository": "deshaw-pjrmi-4212d0a", "file": "java/src/main/java/com/deshaw/python/PythonUnpickle.java", "task_id": "project_cc_java/1104" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "java/src/main/java/com/deshaw/python/PythonUnpickle.java", "groundtruth_start_lineno": 536, "repository": "deshaw-pjrmi-4212d0a", "right_context_start_lineno": 537, "task_id": "project_cc_java/1104" } }
cross_code_eval_java::project_cc_java/1285
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // FinalProject1/src/net/braniumacademy/view/AddSubjectDialog.java // } else { // JOpt...
{ "prefix": "package net.braniumacademy.view;\n\nimport java.awt.event.ActionEvent;\nimport java.awt.event.ActionListener;\nimport javax.swing.JOptionPane;\nimport net.braniumacademy.model.Subject;\n\n\npublic class EditSubjectDialog extends javax.swing.JDialog implements ActionListener {\n\n private HomeFrm homeF...
if (subject.getKind().compareTo( comboSubjectType.getItemAt(i).toString()) == 0) {
{}
{ "repository": "EricTra-University_Admission-18ace1f", "file": "FinalProject1/src/net/braniumacademy/view/EditSubjectDialog.java", "task_id": "project_cc_java/1285" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "FinalProject1/src/net/braniumacademy/view/EditSubjectDialog.java", "groundtruth_start_lineno": 272, "repository": "EricTra-University_Admission-18ace1f", "right_context_start_lineno": 274, "task_id": "project_cc_java/1285" } }
cross_code_eval_java::project_cc_java/1091
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // java/src/main/java/com/deshaw/pjrmi/PJRmi.java // throw new RuntimeException("Faile...
{ "prefix": "package com.deshaw.pjrmi;\n\nimport com.deshaw.util.StringUtil;\n\nimport java.io.InputStream;\nimport java.io.IOException;\nimport java.io.OutputStream;\n\nimport java.net.InetAddress;\n\n/**\n * A transport provider which spawns a child Python process to talk to.\n */\npublic class PythonMinionProvider...
python.invoke("len", Integer.class, arg);
{}
{ "repository": "deshaw-pjrmi-4212d0a", "file": "java/src/main/java/com/deshaw/pjrmi/PythonMinionProvider.java", "task_id": "project_cc_java/1091" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "java/src/main/java/com/deshaw/pjrmi/PythonMinionProvider.java", "groundtruth_start_lineno": 323, "repository": "deshaw-pjrmi-4212d0a", "right_context_start_lineno": 324, "task_id": "project_cc_java/1091" } }
cross_code_eval_java::project_cc_java/1347
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // FinalProject1/src/net/braniumacademy/controller/DataControllerImp.java // } // @Override // ...
{ "prefix": "package net.braniumacademy.view;\n\nimport java.awt.event.ActionEvent;\nimport java.awt.event.ActionListener;\nimport java.text.SimpleDateFormat;\nimport java.util.Date;\nimport java.util.List;\nimport javax.swing.JOptionPane;\nimport net.braniumacademy.controller.InfoFilterImp;\nimport net.braniumacadem...
txtMajor.setText(student.getMajor());
{}
{ "repository": "EricTra-University-Admission-Final-Version-944c929", "file": "FinalProject1/src/net/braniumacademy/view/AddRegisterDialog.java", "task_id": "project_cc_java/1347" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "FinalProject1/src/net/braniumacademy/view/AddRegisterDialog.java", "groundtruth_start_lineno": 472, "repository": "EricTra-University-Admission-Final-Version-944c929", "right_context_start_lineno": 473, "task_id": "project_cc_java/1347" } }
cross_code_eval_java::project_cc_java/1378
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Semana 9/Trees/src/trees/Tree.java // father.setSons(newSons); // } // public void prin...
{ "prefix": "package bst;\n\npublic class BinarySearchTree {\n\n private Nodo root;\n\n public BinarySearchTree() {\n this.root = null;\n }\n\n public Nodo getRoot() {\n return root;\n }\n\n public void setRoot(Nodo root) {\n this.root = root;\n }\n\n public void insertNod...
System.out.println("[ " + raiz.getElement() + " ]");
{}
{ "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "file": "Semana 10/BST/src/bst/BinarySearchTree.java", "task_id": "project_cc_java/1378" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Semana 10/BST/src/bst/BinarySearchTree.java", "groundtruth_start_lineno": 41, "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "right_context_start_lineno": 42, "task_id": "project_cc_java/1378" } }
cross_code_eval_java::project_cc_java/1100
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // java/src/main/java/com/deshaw/python/NumpyArray.java // } // catch (Nul...
{ "prefix": "package com.deshaw.python;\n\nimport com.deshaw.util.ByteList;\n\nimport java.io.ByteArrayOutputStream;\nimport java.io.IOException;\nimport java.io.OutputStream;\n\nimport java.nio.ByteBuffer;\nimport java.nio.ByteOrder;\nimport java.nio.charset.StandardCharsets;\n\nimport java.util.Arrays;\nimport java...
o.getNoCheck(i));
{}
{ "repository": "deshaw-pjrmi-4212d0a", "file": "java/src/main/java/com/deshaw/python/PythonPickle.java", "task_id": "project_cc_java/1100" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "java/src/main/java/com/deshaw/python/PythonPickle.java", "groundtruth_start_lineno": 360, "repository": "deshaw-pjrmi-4212d0a", "right_context_start_lineno": 361, "task_id": "project_cc_java/1100" } }
cross_code_eval_java::project_cc_java/1405
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Semana 9/Trees/src/trees/Tree.java // father.setSons(newSons); // } // public void prin...
{ "prefix": "package bst;\n\npublic class BinarySearchTree {\n\n private Nodo root;\n\n public BinarySearchTree() {\n this.root = null;\n }\n\n public Nodo getRoot() {\n return root;\n }\n\n public void setRoot(Nodo root) {\n this.root = root;\n }\n\n public void insertNod...
nodo.setRightSon(raiz.getRightSon());
{}
{ "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "file": "Semana 10/BST/src/bst/BinarySearchTree.java", "task_id": "project_cc_java/1405" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Semana 10/BST/src/bst/BinarySearchTree.java", "groundtruth_start_lineno": 107, "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "right_context_start_lineno": 108, "task_id": "project_cc_java/1405" } }
cross_code_eval_java::project_cc_java/1344
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // FinalProject1/src/net/braniumacademy/view/AddSubjectDialog.java // } else { // JOpt...
{ "prefix": "package net.braniumacademy.view;\n\nimport java.awt.event.ActionEvent;\nimport java.awt.event.ActionListener;\nimport javax.swing.JOptionPane;\nimport net.braniumacademy.model.Subject;\n\n/**\n *\n * @author braniumacademy <braniumacademy.net>\n */\npublic class EditSubjectDialog extends javax.swing.JDia...
subject.getKind().compareTo( comboSubjectType.getItemAt(i).toString()) == 0) {
{}
{ "repository": "EricTra-University-Admission-Final-Version-944c929", "file": "FinalProject1/src/net/braniumacademy/view/EditSubjectDialog.java", "task_id": "project_cc_java/1344" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "FinalProject1/src/net/braniumacademy/view/EditSubjectDialog.java", "groundtruth_start_lineno": 248, "repository": "EricTra-University-Admission-Final-Version-944c929", "right_context_start_lineno": 250, "task_id": "project_cc_java/1344" } }
cross_code_eval_java::project_cc_java/1097
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // java/src/main/java/com/deshaw/io/BlockingPipe.java // // Wait for the pipe to have room // ...
{ "prefix": "package com.deshaw.python;\n\nimport com.deshaw.util.ByteList;\n\nimport java.io.ByteArrayOutputStream;\nimport java.io.IOException;\nimport java.io.OutputStream;\n\nimport java.nio.ByteBuffer;\nimport java.nio.ByteOrder;\nimport java.nio.charset.StandardCharsets;\n\nimport java.util.Arrays;\nimport java...
myByteList.append(Float.toString(o).getBytes());
{}
{ "repository": "deshaw-pjrmi-4212d0a", "file": "java/src/main/java/com/deshaw/python/PythonPickle.java", "task_id": "project_cc_java/1097" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "java/src/main/java/com/deshaw/python/PythonPickle.java", "groundtruth_start_lineno": 200, "repository": "deshaw-pjrmi-4212d0a", "right_context_start_lineno": 201, "task_id": "project_cc_java/1097" } }
cross_code_eval_java::project_cc_java/1387
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Semana 9/Trees/src/trees/Tree.java // father.setSons(newSons); // } // public void prin...
{ "prefix": "package bst;\n\npublic class BinarySearchTree {\n\n private Nodo root;\n\n public BinarySearchTree() {\n this.root = null;\n }\n\n public Nodo getRoot() {\n return root;\n }\n\n public void setRoot(Nodo root) {\n this.root = root;\n }\n\n public void insertNod...
if (element == raiz.getElement()) {
{}
{ "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "file": "Semana 10/BST/src/bst/BinarySearchTree.java", "task_id": "project_cc_java/1387" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Semana 10/BST/src/bst/BinarySearchTree.java", "groundtruth_start_lineno": 67, "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "right_context_start_lineno": 68, "task_id": "project_cc_java/1387" } }
cross_code_eval_java::project_cc_java/1348
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // FinalProject1/src/net/braniumacademy/view/EditStudentDialog.java // txtPersonDob.setText(dateFo...
{ "prefix": "package net.braniumacademy.view;\n\nimport java.awt.event.ActionEvent;\nimport java.awt.event.ActionListener;\nimport java.text.SimpleDateFormat;\nimport java.util.Date;\nimport java.util.List;\nimport javax.swing.JOptionPane;\nimport net.braniumacademy.controller.InfoFilterImp;\nimport net.braniumacadem...
ect.getName() + " trước đó.";
{}
{ "repository": "EricTra-University-Admission-Final-Version-944c929", "file": "FinalProject1/src/net/braniumacademy/view/AddRegisterDialog.java", "task_id": "project_cc_java/1348" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "FinalProject1/src/net/braniumacademy/view/AddRegisterDialog.java", "groundtruth_start_lineno": 413, "repository": "EricTra-University-Admission-Final-Version-944c929", "right_context_start_lineno": 414, "task_id": "project_cc_java/1348" } }
cross_code_eval_java::project_cc_java/1388
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Semana 9/Trees/src/trees/Tree.java // father.setSons(newSons); // } // public void prin...
{ "prefix": "package bst;\n\npublic class BinarySearchTree {\n\n private Nodo root;\n\n public BinarySearchTree() {\n this.root = null;\n }\n\n public Nodo getRoot() {\n return root;\n }\n\n public void setRoot(Nodo root) {\n this.root = root;\n }\n\n public void insertNod...
raiz.isLeaf()) {
{}
{ "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "file": "Semana 10/BST/src/bst/BinarySearchTree.java", "task_id": "project_cc_java/1388" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Semana 10/BST/src/bst/BinarySearchTree.java", "groundtruth_start_lineno": 68, "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "right_context_start_lineno": 69, "task_id": "project_cc_java/1388" } }
cross_code_eval_java::project_cc_java/1102
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // java/src/main/java/com/deshaw/python/NumpyArray.java // * Total number of elements in the array. /...
{ "prefix": "package com.deshaw.python;\n\nimport com.deshaw.util.StringUtil;\n\nimport java.io.BufferedInputStream;\nimport java.io.ByteArrayInputStream;\nimport java.io.EOFException;\nimport java.io.FileNotFoundException;\nimport java.io.IOException;\nimport java.io.InputStream;\n\nimport java.math.BigInteger;\n\ni...
, SCALAR_ARRAY_SHAPE, rawData.data());
{}
{ "repository": "deshaw-pjrmi-4212d0a", "file": "java/src/main/java/com/deshaw/python/PythonUnpickle.java", "task_id": "project_cc_java/1102" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "java/src/main/java/com/deshaw/python/PythonUnpickle.java", "groundtruth_start_lineno": 213, "repository": "deshaw-pjrmi-4212d0a", "right_context_start_lineno": 214, "task_id": "project_cc_java/1102" } }
cross_code_eval_java::project_cc_java/1333
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // FinalProject1/src/net/braniumacademy/model/Student.java // public String getStudentClass() { // ...
{ "prefix": "package net.braniumacademy.model;\n\nimport java.io.Serializable;\nimport java.text.ParseException;\nimport java.text.SimpleDateFormat;\nimport java.util.Date;\nimport java.util.Objects;\nimport net.braniumacademy.controller.InfoFilterImp;\nimport net.braniumacademy.exception.InvalidDateOfBirthException;...
if (infoFilter.isDateOfBirthValid(dob)) {
{}
{ "repository": "EricTra-University-Admission-Final-Version-944c929", "file": "FinalProject1/src/net/braniumacademy/model/Person.java", "task_id": "project_cc_java/1333" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "FinalProject1/src/net/braniumacademy/model/Person.java", "groundtruth_start_lineno": 130, "repository": "EricTra-University-Admission-Final-Version-944c929", "right_context_start_lineno": 131, "task_id": "project_cc_java/1333" } }
cross_code_eval_java::project_cc_java/1345
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // FinalProject1/src/net/braniumacademy/view/HomeFrm.java // } else { // var r...
{ "prefix": "package net.braniumacademy.view;\n\nimport java.awt.event.ActionEvent;\nimport java.awt.event.ActionListener;\nimport java.text.SimpleDateFormat;\nimport java.util.Date;\nimport java.util.List;\nimport javax.swing.JOptionPane;\nimport net.braniumacademy.controller.InfoFilterImp;\nimport net.braniumacadem...
if (s.getStudentId().compareTo(studentId) == 0) {
{}
{ "repository": "EricTra-University-Admission-Final-Version-944c929", "file": "FinalProject1/src/net/braniumacademy/view/AddRegisterDialog.java", "task_id": "project_cc_java/1345" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "FinalProject1/src/net/braniumacademy/view/AddRegisterDialog.java", "groundtruth_start_lineno": 464, "repository": "EricTra-University-Admission-Final-Version-944c929", "right_context_start_lineno": 465, "task_id": "project_cc_java/1345" } }
cross_code_eval_java::project_cc_java/1389
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Semana 9/Trees/src/trees/Tree.java // father.setSons(newSons); // } // public void prin...
{ "prefix": "package bst;\n\npublic class BinarySearchTree {\n\n private Nodo root;\n\n public BinarySearchTree() {\n this.root = null;\n }\n\n public Nodo getRoot() {\n return root;\n }\n\n public void setRoot(Nodo root) {\n this.root = root;\n }\n\n public void insertNod...
(element < previousNode.getElement()) {
{}
{ "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "file": "Semana 10/BST/src/bst/BinarySearchTree.java", "task_id": "project_cc_java/1389" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Semana 10/BST/src/bst/BinarySearchTree.java", "groundtruth_start_lineno": 73, "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "right_context_start_lineno": 74, "task_id": "project_cc_java/1389" } }
cross_code_eval_java::project_cc_java/1392
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Semana 9/Trees/src/trees/Tree.java // if (pointer.getElement() == fatherElement) { // ...
{ "prefix": "package bst;\n\npublic class BinarySearchTree {\n\n private Nodo root;\n\n public BinarySearchTree() {\n this.root = null;\n }\n\n public Nodo getRoot() {\n return root;\n }\n\n public void setRoot(Nodo root) {\n this.root = root;\n }\n\n public void insertNod...
else if (raiz.hasOnlyRightSon()) {
{}
{ "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "file": "Semana 10/BST/src/bst/BinarySearchTree.java", "task_id": "project_cc_java/1392" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Semana 10/BST/src/bst/BinarySearchTree.java", "groundtruth_start_lineno": 79, "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "right_context_start_lineno": 80, "task_id": "project_cc_java/1392" } }
cross_code_eval_java::project_cc_java/1417
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Semana 9/Trees/src/trees/Tree.java // father.setSons(newSons); // } // public void prin...
{ "prefix": "package bst;\n\npublic class BinarySearchTree {\n\n private Nodo root;\n\n public BinarySearchTree() {\n this.root = null;\n }\n\n public Nodo getRoot() {\n return root;\n }\n\n public void setRoot(Nodo root) {\n this.root = root;\n }\n\n public void insertNod...
raiz.getRightSon() != null;
{}
{ "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "file": "Semana 10/BST/src/bst/BinarySearchTree.java", "task_id": "project_cc_java/1417" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Semana 10/BST/src/bst/BinarySearchTree.java", "groundtruth_start_lineno": 132, "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "right_context_start_lineno": 133, "task_id": "project_cc_java/1417" } }
cross_code_eval_java::project_cc_java/1106
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // java/src/main/java/com/deshaw/python/NumpyArray.java // throw new UnsupportedOperationExcep...
{ "prefix": "package com.deshaw.python;\n\nimport com.deshaw.util.StringUtil;\n\nimport java.io.BufferedInputStream;\nimport java.io.ByteArrayInputStream;\nimport java.io.EOFException;\nimport java.io.FileNotFoundException;\nimport java.io.IOException;\nimport java.io.InputStream;\n\nimport java.math.BigInteger;\n\ni...
return dummyArray.getLong(0);
{}
{ "repository": "deshaw-pjrmi-4212d0a", "file": "java/src/main/java/com/deshaw/python/PythonUnpickle.java", "task_id": "project_cc_java/1106" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "java/src/main/java/com/deshaw/python/PythonUnpickle.java", "groundtruth_start_lineno": 222, "repository": "deshaw-pjrmi-4212d0a", "right_context_start_lineno": 223, "task_id": "project_cc_java/1106" } }
cross_code_eval_java::project_cc_java/1404
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Semana 9/Trees/src/trees/Tree.java // father.setSons(newSons); // } // public void prin...
{ "prefix": "package bst;\n\npublic class BinarySearchTree {\n\n private Nodo root;\n\n public BinarySearchTree() {\n this.root = null;\n }\n\n public Nodo getRoot() {\n return root;\n }\n\n public void setRoot(Nodo root) {\n this.root = root;\n }\n\n public void insertNod...
nodo.setLeftSon(raiz.getLeftSon());
{}
{ "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "file": "Semana 10/BST/src/bst/BinarySearchTree.java", "task_id": "project_cc_java/1404" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Semana 10/BST/src/bst/BinarySearchTree.java", "groundtruth_start_lineno": 106, "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "right_context_start_lineno": 107, "task_id": "project_cc_java/1404" } }
cross_code_eval_java::project_cc_java/1403
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Semana 9/Trees/src/trees/Tree.java // father.setSons(newSons); // } // public void prin...
{ "prefix": "package bst;\n\npublic class BinarySearchTree {\n\n private Nodo root;\n\n public BinarySearchTree() {\n this.root = null;\n }\n\n public Nodo getRoot() {\n return root;\n }\n\n public void setRoot(Nodo root) {\n this.root = root;\n }\n\n public void insertNod...
Nodo nodo = searchNodoToReplace(raiz.getLeftSon());
{}
{ "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "file": "Semana 10/BST/src/bst/BinarySearchTree.java", "task_id": "project_cc_java/1403" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Semana 10/BST/src/bst/BinarySearchTree.java", "groundtruth_start_lineno": 105, "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "right_context_start_lineno": 106, "task_id": "project_cc_java/1403" } }
cross_code_eval_java::project_cc_java/1402
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Semana 9/Trees/src/trees/Tree.java // father.setSons(newSons); // } // public void prin...
{ "prefix": "package bst;\n\npublic class BinarySearchTree {\n\n private Nodo root;\n\n public BinarySearchTree() {\n this.root = null;\n }\n\n public Nodo getRoot() {\n return root;\n }\n\n public void setRoot(Nodo root) {\n this.root = root;\n }\n\n public void insertNod...
validateLeftSon(raiz.getLeftSon());
{}
{ "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "file": "Semana 10/BST/src/bst/BinarySearchTree.java", "task_id": "project_cc_java/1402" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Semana 10/BST/src/bst/BinarySearchTree.java", "groundtruth_start_lineno": 103, "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "right_context_start_lineno": 104, "task_id": "project_cc_java/1402" } }
cross_code_eval_java::project_cc_java/1410
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Semana 7/Lunes/Colas/src/colas/Queue.java // } // @Override // public void dequeue() { // ...
{ "prefix": "package bst;\n\npublic class BinarySearchTree {\n\n private Nodo root;\n\n public BinarySearchTree() {\n this.root = null;\n }\n\n public Nodo getRoot() {\n return root;\n }\n\n public void setRoot(Nodo root) {\n this.root = root;\n }\n\n public void insertNod...
.setRightSon(raiz.getRightSon());
{}
{ "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "file": "Semana 10/BST/src/bst/BinarySearchTree.java", "task_id": "project_cc_java/1410" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Semana 10/BST/src/bst/BinarySearchTree.java", "groundtruth_start_lineno": 115, "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "right_context_start_lineno": 116, "task_id": "project_cc_java/1410" } }
cross_code_eval_java::project_cc_java/1409
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Semana 7/Lunes/Colas/src/colas/Queue.java // } // @Override // public void dequeue() { // ...
{ "prefix": "package bst;\n\npublic class BinarySearchTree {\n\n private Nodo root;\n\n public BinarySearchTree() {\n this.root = null;\n }\n\n public Nodo getRoot() {\n return root;\n }\n\n public void setRoot(Nodo root) {\n this.root = root;\n }\n\n public void insertNod...
Nodo nodo = raiz.getLeftSon();
{}
{ "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "file": "Semana 10/BST/src/bst/BinarySearchTree.java", "task_id": "project_cc_java/1409" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Semana 10/BST/src/bst/BinarySearchTree.java", "groundtruth_start_lineno": 114, "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "right_context_start_lineno": 115, "task_id": "project_cc_java/1409" } }
cross_code_eval_java::project_cc_java/1418
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Semana 9/Trees/src/trees/Tree.java // father.setSons(newSons); // } // public void prin...
{ "prefix": "package bst;\n\npublic class BinarySearchTree {\n\n private Nodo root;\n\n public BinarySearchTree() {\n this.root = null;\n }\n\n public Nodo getRoot() {\n return root;\n }\n\n public void setRoot(Nodo root) {\n this.root = root;\n }\n\n public void insertNod...
while(raiz.getRightSon() != null) {
{}
{ "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "file": "Semana 10/BST/src/bst/BinarySearchTree.java", "task_id": "project_cc_java/1418" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Semana 10/BST/src/bst/BinarySearchTree.java", "groundtruth_start_lineno": 136, "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "right_context_start_lineno": 137, "task_id": "project_cc_java/1418" } }
cross_code_eval_java::project_cc_java/1448
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Semana 7/Lunes/Colas/src/colas/Queue.java // } // @Override // public void dequeue() { // ...
{ "prefix": "package trees;\n\n\npublic class Tree {\n private Nodo root;\n\n public Tree() {\n this.root = null;\n }\n\n public Nodo getRoot() {\n return root;\n }\n\n public void setRoot(Nodo root) {\n this.root = root;\n }\n \n public boolean isEmpty() {\n ret...
[] newSons = new Nodo[father.getSons().length + 1];
{}
{ "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "file": "Semana 9/Trees/src/trees/Tree.java", "task_id": "project_cc_java/1448" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Semana 9/Trees/src/trees/Tree.java", "groundtruth_start_lineno": 43, "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "right_context_start_lineno": 44, "task_id": "project_cc_java/1448" } }
cross_code_eval_java::project_cc_java/1443
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Semana 7/Lunes/Colas/src/colas/Queue.java // } // @Override // public void dequeue() { // ...
{ "prefix": "package trees;\n\n\npublic class Tree {\n private Nodo root;\n\n public Tree() {\n this.root = null;\n }\n\n public Nodo getRoot() {\n return root;\n }\n\n public void setRoot(Nodo root) {\n this.root = root;\n }\n \n public boolean isEmpty() {\n ret...
pointer.getElement() == fatherElement) {
{}
{ "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "file": "Semana 9/Trees/src/trees/Tree.java", "task_id": "project_cc_java/1443" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Semana 9/Trees/src/trees/Tree.java", "groundtruth_start_lineno": 27, "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "right_context_start_lineno": 28, "task_id": "project_cc_java/1443" } }
cross_code_eval_java::project_cc_java/1445
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Semana 7/Lunes/Colas/src/colas/Queue.java // } // @Override // public void dequeue() { // ...
{ "prefix": "package trees;\n\n\npublic class Tree {\n private Nodo root;\n\n public Tree() {\n this.root = null;\n }\n\n public Nodo getRoot() {\n return root;\n }\n\n public void setRoot(Nodo root) {\n this.root = root;\n }\n \n public boolean isEmpty() {\n ret...
if (pointer.getSons()[i].getElement() == fatherElement) {
{}
{ "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "file": "Semana 9/Trees/src/trees/Tree.java", "task_id": "project_cc_java/1445" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Semana 9/Trees/src/trees/Tree.java", "groundtruth_start_lineno": 32, "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "right_context_start_lineno": 33, "task_id": "project_cc_java/1445" } }
cross_code_eval_java::project_cc_java/1452
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Semana 2/Lunes/Lista/src/lista/Main.java // public static void main(String[] args) { // Nod...
{ "prefix": "package trees;\n\n\npublic class Tree {\n private Nodo root;\n\n public Tree() {\n this.root = null;\n }\n\n public Nodo getRoot() {\n return root;\n }\n\n public void setRoot(Nodo root) {\n this.root = root;\n }\n \n public boolean isEmpty() {\n ret...
out.println("[ "+raiz.getElement() + " ]");
{}
{ "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "file": "Semana 9/Trees/src/trees/Tree.java", "task_id": "project_cc_java/1452" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Semana 9/Trees/src/trees/Tree.java", "groundtruth_start_lineno": 52, "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "right_context_start_lineno": 53, "task_id": "project_cc_java/1452" } }
cross_code_eval_java::project_cc_java/1461
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Semana 10/BST/src/bst/BinarySearchTree.java // this.root = root; // } // public void in...
{ "prefix": "/*\n * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license\n * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Main.java to edit this template\n */\npackage bst;\n\n/**\n *\n * @author Estudiante\n */\npublic class Main {\n\n /**\n * @param arg...
33, bst.getRoot());
{}
{ "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "file": "Semana 10/BST/src/bst/Main.java", "task_id": "project_cc_java/1461" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Semana 10/BST/src/bst/Main.java", "groundtruth_start_lineno": 23, "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "right_context_start_lineno": 24, "task_id": "project_cc_java/1461" } }
cross_code_eval_java::project_cc_java/1462
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Semana 10/BST/src/bst/BinarySearchTree.java // this.root = root; // } // public void in...
{ "prefix": "/*\n * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license\n * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Main.java to edit this template\n */\npackage bst;\n\n/**\n *\n * @author Estudiante\n */\npublic class Main {\n\n /**\n * @param arg...
.preOrden(bst.getRoot());
{}
{ "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "file": "Semana 10/BST/src/bst/Main.java", "task_id": "project_cc_java/1462" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Semana 10/BST/src/bst/Main.java", "groundtruth_start_lineno": 24, "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "right_context_start_lineno": 25, "task_id": "project_cc_java/1462" } }
cross_code_eval_java::project_cc_java/1459
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Semana 10/BST/src/bst/BinarySearchTree.java // this.root = root; // } // public void in...
{ "prefix": "/*\n * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license\n * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Main.java to edit this template\n */\npackage bst;\n\n/**\n *\n * @author Estudiante\n */\npublic class Main {\n\n /**\n * @param arg...
(25, bst.getRoot());
{}
{ "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "file": "Semana 10/BST/src/bst/Main.java", "task_id": "project_cc_java/1459" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Semana 10/BST/src/bst/Main.java", "groundtruth_start_lineno": 21, "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "right_context_start_lineno": 22, "task_id": "project_cc_java/1459" } }
cross_code_eval_java::project_cc_java/1463
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Semana 10/BST/src/bst/BinarySearchTree.java // this.root = root; // } // public void in...
{ "prefix": "/*\n * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license\n * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Main.java to edit this template\n */\npackage bst;\n\n/**\n *\n * @author Estudiante\n */\npublic class Main {\n\n /**\n * @param arg...
.deleteNodo(30, bst.getRoot(), null);
{}
{ "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "file": "Semana 10/BST/src/bst/Main.java", "task_id": "project_cc_java/1463" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Semana 10/BST/src/bst/Main.java", "groundtruth_start_lineno": 27, "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "right_context_start_lineno": 28, "task_id": "project_cc_java/1463" } }
cross_code_eval_java::project_cc_java/1475
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Semana 7/Lunes/Colas/src/colas/Queue.java // Nodo pointer = getHead(); // setHe...
{ "prefix": "package stacks;\n\n\npublic class Stack implements IPilas {\n private Nodo peek;\n private int length;\n\n public Stack() {\n this.peek = null;\n this.length = 0;\n }\n\n\n @Override\n public void push(Object element) {\n Nodo nodo = new Nodo(element);\n if (...
(getPeek().getNext());
{}
{ "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "file": "Semana 5/Stacks/src/stacks/Stack.java", "task_id": "project_cc_java/1475" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Semana 5/Stacks/src/stacks/Stack.java", "groundtruth_start_lineno": 31, "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "right_context_start_lineno": 32, "task_id": "project_cc_java/1475" } }
cross_code_eval_java::project_cc_java/1490
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Semana 5/Ejercicios/src/ejercicios/Lista.java // setHead(node); // } else { // ...
{ "prefix": "/*\n * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license\n * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template\n */\npackage listascirculares;\n\n/**\n *\n * @author Estudiante\n */\npublic class ListaCircular implemen...
(pointer.getNext() != pointer2) {
{}
{ "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "file": "Semana 4/Lunes/ListasCirculares/src/listascirculares/ListaCircular.java", "task_id": "project_cc_java/1490" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Semana 4/Lunes/ListasCirculares/src/listascirculares/ListaCircular.java", "groundtruth_start_lineno": 42, "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "right_context_start_lineno": 43, "task_id": "project_cc_java...
cross_code_eval_java::project_cc_java/1477
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Semana 5/Stacks/src/stacks/IPilas.java // package stacks; // public interface IPilas { // public vo...
{ "prefix": "package stacks;\n\n\npublic class Stack implements IPilas {\n private Nodo peek;\n private int length;\n\n public Stack() {\n this.peek = null;\n this.length = 0;\n }\n\n\n @Override\n public void push(Object element) {\n Nodo nodo = new Nodo(element);\n if (...
.println("[ "+pointer.getElement()+" ]");
{}
{ "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "file": "Semana 5/Stacks/src/stacks/Stack.java", "task_id": "project_cc_java/1477" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Semana 5/Stacks/src/stacks/Stack.java", "groundtruth_start_lineno": 63, "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "right_context_start_lineno": 64, "task_id": "project_cc_java/1477" } }
cross_code_eval_java::project_cc_java/1488
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Semana 2/Lunes/Lista/src/lista/Lista.java // node.setNext(getHead()); // setHea...
{ "prefix": "/*\n * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license\n * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template\n */\npackage listascirculares;\n\n/**\n *\n * @author Estudiante\n */\npublic class ListaCircular implemen...
).setNext(getHead());
{}
{ "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "file": "Semana 4/Lunes/ListasCirculares/src/listascirculares/ListaCircular.java", "task_id": "project_cc_java/1488" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Semana 4/Lunes/ListasCirculares/src/listascirculares/ListaCircular.java", "groundtruth_start_lineno": 36, "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "right_context_start_lineno": 37, "task_id": "project_cc_java...
cross_code_eval_java::project_cc_java/1495
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Semana 2/Lunes/Lista/src/lista/Lista.java // Nodo pointer = getHead(); // while...
{ "prefix": "/*\n * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license\n * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template\n */\npackage listascirculares;\n\n/**\n *\n * @author Estudiante\n */\npublic class ListaCircular implemen...
while (pointer.getNext() != getHead()) {
{}
{ "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "file": "Semana 4/Lunes/ListasCirculares/src/listascirculares/ListaCircular.java", "task_id": "project_cc_java/1495" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Semana 4/Lunes/ListasCirculares/src/listascirculares/ListaCircular.java", "groundtruth_start_lineno": 58, "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "right_context_start_lineno": 59, "task_id": "project_cc_java...
cross_code_eval_java::project_cc_java/1503
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Semana 5/Ejercicios/src/ejercicios/Lista.java // if (length > 1){ // while ...
{ "prefix": "/*\n * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license\n * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template\n */\npackage listascirculares;\n\n/**\n *\n * @author Estudiante\n */\npublic class ListaCircular implemen...
pointer.getNext())).getNext() != getHead()) {
{}
{ "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "file": "Semana 4/Lunes/ListasCirculares/src/listascirculares/ListaCircular.java", "task_id": "project_cc_java/1503" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Semana 4/Lunes/ListasCirculares/src/listascirculares/ListaCircular.java", "groundtruth_start_lineno": 104, "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "right_context_start_lineno": 105, "task_id": "project_cc_ja...
cross_code_eval_java::project_cc_java/1492
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Semana 5/Ejercicios/src/ejercicios/Lista.java // public void insertInIndex(Object element, int inde...
{ "prefix": "/*\n * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license\n * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template\n */\npackage listascirculares;\n\n/**\n *\n * @author Estudiante\n */\npublic class ListaCircular implemen...
pointer.setNext(getHead());
{}
{ "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "file": "Semana 4/Lunes/ListasCirculares/src/listascirculares/ListaCircular.java", "task_id": "project_cc_java/1492" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Semana 4/Lunes/ListasCirculares/src/listascirculares/ListaCircular.java", "groundtruth_start_lineno": 45, "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "right_context_start_lineno": 46, "task_id": "project_cc_java...
cross_code_eval_java::project_cc_java/1482
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Semana 3/ListasDobles/src/listasdobles/Main.java // list.printList(); // } // } // the bel...
{ "prefix": "/*\n * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license\n * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Main.java to edit this template\n */\npackage listascirculares;\n\n/**\n *\n * @author Estudiante\n */\npublic class Main {\n\n /**\n ...
list.deleteInIndex(3);
{}
{ "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "file": "Semana 4/Lunes/ListasCirculares/src/listascirculares/Main.java", "task_id": "project_cc_java/1482" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Semana 4/Lunes/ListasCirculares/src/listascirculares/Main.java", "groundtruth_start_lineno": 23, "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "right_context_start_lineno": 24, "task_id": "project_cc_java/1482" ...
cross_code_eval_java::project_cc_java/1510
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Semana 5/Ejercicios/src/ejercicios/Lista.java // pointer.setNext(null); // leng...
{ "prefix": "/*\n * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license\n * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template\n */\npackage listascirculares;\n\n/**\n *\n * @author Estudiante\n */\npublic class ListaCircular implemen...
while (pointer.getNext() != pointer2) {
{}
{ "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "file": "Semana 4/Lunes/ListasCirculares/src/listascirculares/ListaCircular.java", "task_id": "project_cc_java/1510" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Semana 4/Lunes/ListasCirculares/src/listascirculares/ListaCircular.java", "groundtruth_start_lineno": 127, "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "right_context_start_lineno": 128, "task_id": "project_cc_ja...
cross_code_eval_java::project_cc_java/1504
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Semana 5/Ejercicios/src/ejercicios/Lista.java // if (length > 1){ // while ...
{ "prefix": "/*\n * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license\n * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template\n */\npackage listascirculares;\n\n/**\n *\n * @author Estudiante\n */\npublic class ListaCircular implemen...
.getNext())).getNext() != getHead()) {
{}
{ "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "file": "Semana 4/Lunes/ListasCirculares/src/listascirculares/ListaCircular.java", "task_id": "project_cc_java/1504" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Semana 4/Lunes/ListasCirculares/src/listascirculares/ListaCircular.java", "groundtruth_start_lineno": 104, "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "right_context_start_lineno": 105, "task_id": "project_cc_ja...
cross_code_eval_java::project_cc_java/1525
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Semana 4/Lunes/ListasCirculares/src/listascirculares/ListaCircular.java // pointer2 = d...
{ "prefix": "\npackage ejercicios;\n\n\npublic class Ejercicios {\n\n public static void main(String[] args) {\n Lista list = new Lista();\n Lista list2 = new Lista();\n Lista list3 = new Lista();\n \n //Ejercicio 10\n /*list.insertFinal(\"a\");\n list.insertFinal(\...
int) pointer1.getElement();
{}
{ "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "file": "Semana 5/Ejercicios/src/ejercicios/Ejercicios.java", "task_id": "project_cc_java/1525" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Semana 5/Ejercicios/src/ejercicios/Ejercicios.java", "groundtruth_start_lineno": 52, "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "right_context_start_lineno": 53, "task_id": "project_cc_java/1525" } }
cross_code_eval_java::project_cc_java/1535
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Semana 2/Lunes/Lista/src/lista/Main.java // public static void main(String[] args) { // Nod...
{ "prefix": "\npackage ejercicios;\n\n\npublic class Ejercicios {\n\n public static void main(String[] args) {\n Lista list = new Lista();\n Lista list2 = new Lista();\n Lista list3 = new Lista();\n \n //Ejercicio 10\n /*list.insertFinal(\"a\");\n list.insertFinal(\...
pointer1 = lista1.getHead();
{}
{ "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "file": "Semana 5/Ejercicios/src/ejercicios/Ejercicios.java", "task_id": "project_cc_java/1535" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Semana 5/Ejercicios/src/ejercicios/Ejercicios.java", "groundtruth_start_lineno": 42, "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "right_context_start_lineno": 43, "task_id": "project_cc_java/1535" } }
cross_code_eval_java::project_cc_java/1537
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Semana 2/Lunes/Lista/src/lista/Main.java // public static void main(String[] args) { // Nod...
{ "prefix": "\npackage ejercicios;\n\n\npublic class Ejercicios {\n\n public static void main(String[] args) {\n Lista list = new Lista();\n Lista list2 = new Lista();\n Lista list3 = new Lista();\n \n //Ejercicio 10\n /*list.insertFinal(\"a\");\n list.insertFinal(\...
Nodo pointer3 = lista3.getHead();
{}
{ "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "file": "Semana 5/Ejercicios/src/ejercicios/Ejercicios.java", "task_id": "project_cc_java/1537" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Semana 5/Ejercicios/src/ejercicios/Ejercicios.java", "groundtruth_start_lineno": 44, "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "right_context_start_lineno": 45, "task_id": "project_cc_java/1537" } }
cross_code_eval_java::project_cc_java/1539
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Semana 2/Miercoles/Lista/src/lista/Lista.java // } // public void insertFinal(int element) { //...
{ "prefix": "package listasdobles;\n\npublic class ListaDoble implements ILista{\n private NodoDoble head, tail;\n private int size;\n\n public ListaDoble() {\n this.head = this.tail = null;\n this.size = 0;\n }\n\n public NodoDoble getHead() {\n return head;\n }\n\n public v...
).setPrevious(node);
{}
{ "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "file": "Semana 3/ListasDobles/src/listasdobles/ListaDoble.java", "task_id": "project_cc_java/1539" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Semana 3/ListasDobles/src/listasdobles/ListaDoble.java", "groundtruth_start_lineno": 42, "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "right_context_start_lineno": 43, "task_id": "project_cc_java/1539" } }
cross_code_eval_java::project_cc_java/1541
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Semana 3/ListasDobles/src/listasdobles/ILista.java // package listasdobles; // public interface ILista ...
{ "prefix": "package listasdobles;\n\npublic class ListaDoble implements ILista{\n private NodoDoble head, tail;\n private int size;\n\n public ListaDoble() {\n this.head = this.tail = null;\n this.size = 0;\n }\n\n public NodoDoble getHead() {\n return head;\n }\n\n public v...
node.setPrevious(pointer);
{}
{ "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "file": "Semana 3/ListasDobles/src/listasdobles/ListaDoble.java", "task_id": "project_cc_java/1541" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Semana 3/ListasDobles/src/listasdobles/ListaDoble.java", "groundtruth_start_lineno": 57, "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "right_context_start_lineno": 58, "task_id": "project_cc_java/1541" } }
cross_code_eval_java::project_cc_java/1549
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Semana 5/Ejercicios/src/ejercicios/Lista.java // } // pointer2 ...
{ "prefix": "package listasdobles;\n\npublic class ListaDoble implements ILista{\n private NodoDoble head, tail;\n private int size;\n\n public ListaDoble() {\n this.head = this.tail = null;\n this.size = 0;\n }\n\n public NodoDoble getHead() {\n return head;\n }\n\n public v...
= (NodoDoble) pointer.getNext();
{}
{ "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "file": "Semana 3/ListasDobles/src/listasdobles/ListaDoble.java", "task_id": "project_cc_java/1549" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Semana 3/ListasDobles/src/listasdobles/ListaDoble.java", "groundtruth_start_lineno": 126, "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "right_context_start_lineno": 127, "task_id": "project_cc_java/1549" } }
cross_code_eval_java::project_cc_java/1543
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Semana 3/ListasDobles/src/listasdobles/ILista.java // package listasdobles; // public interface ILista ...
{ "prefix": "package listasdobles;\n\npublic class ListaDoble implements ILista{\n private NodoDoble head, tail;\n private int size;\n\n public ListaDoble() {\n this.head = this.tail = null;\n this.size = 0;\n }\n\n public NodoDoble getHead() {\n return head;\n }\n\n public v...
pointer2 = pointer.getPrevious();
{}
{ "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "file": "Semana 3/ListasDobles/src/listasdobles/ListaDoble.java", "task_id": "project_cc_java/1543" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Semana 3/ListasDobles/src/listasdobles/ListaDoble.java", "groundtruth_start_lineno": 79, "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "right_context_start_lineno": 80, "task_id": "project_cc_java/1543" } }
cross_code_eval_java::project_cc_java/1544
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Semana 3/ListasDobles/src/listasdobles/NodoDoble.java // } // public void setPrevious(NodoDoble...
{ "prefix": "package listasdobles;\n\npublic class ListaDoble implements ILista{\n private NodoDoble head, tail;\n private int size;\n\n public ListaDoble() {\n this.head = this.tail = null;\n this.size = 0;\n }\n\n public NodoDoble getHead() {\n return head;\n }\n\n public v...
pointer.setPrevious(null);
{}
{ "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "file": "Semana 3/ListasDobles/src/listasdobles/ListaDoble.java", "task_id": "project_cc_java/1544" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Semana 3/ListasDobles/src/listasdobles/ListaDoble.java", "groundtruth_start_lineno": 80, "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "right_context_start_lineno": 81, "task_id": "project_cc_java/1544" } }
cross_code_eval_java::project_cc_java/1550
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Semana 5/Ejercicios/src/ejercicios/Lista.java // } // pointer2 ...
{ "prefix": "package listasdobles;\n\npublic class ListaDoble implements ILista{\n private NodoDoble head, tail;\n private int size;\n\n public ListaDoble() {\n this.head = this.tail = null;\n this.size = 0;\n }\n\n public NodoDoble getHead() {\n return head;\n }\n\n public v...
pointer2 = pointer.getNext();
{}
{ "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "file": "Semana 3/ListasDobles/src/listasdobles/ListaDoble.java", "task_id": "project_cc_java/1550" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Semana 3/ListasDobles/src/listasdobles/ListaDoble.java", "groundtruth_start_lineno": 129, "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "right_context_start_lineno": 130, "task_id": "project_cc_java/1550" } }
cross_code_eval_java::project_cc_java/1703
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // lib/src/main/java/net/fellbaum/jemoji/EmojiSubGroup.java // return emojiSubGroup; // ...
{ "prefix": "package net.fellbaum.jemoji;\n\nimport com.fasterxml.jackson.core.JsonProcessingException;\nimport com.fasterxml.jackson.core.type.TypeReference;\nimport com.fasterxml.jackson.databind.ObjectMapper;\n\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.i...
emoji.getSubgroup() == subgroup).collect(Collectors.toSet());
{}
{ "repository": "felldo-JEmoji-a3e9bdb", "file": "lib/src/main/java/net/fellbaum/jemoji/EmojiManager.java", "task_id": "project_cc_java/1703" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "lib/src/main/java/net/fellbaum/jemoji/EmojiManager.java", "groundtruth_start_lineno": 137, "repository": "felldo-JEmoji-a3e9bdb", "right_context_start_lineno": 138, "task_id": "project_cc_java/1703" } }
cross_code_eval_java::project_cc_java/1552
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Semana 2/Miercoles/Lista/src/lista/Lista.java // System.out.println("Error in index...
{ "prefix": "package listasdobles;\n\npublic class ListaDoble implements ILista{\n private NodoDoble head, tail;\n private int size;\n\n public ListaDoble() {\n this.head = this.tail = null;\n this.size = 0;\n }\n\n public NodoDoble getHead() {\n return head;\n }\n\n public v...
pointer2.getNext().setPrevious(pointer);
{}
{ "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "file": "Semana 3/ListasDobles/src/listasdobles/ListaDoble.java", "task_id": "project_cc_java/1552" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Semana 3/ListasDobles/src/listasdobles/ListaDoble.java", "groundtruth_start_lineno": 131, "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "right_context_start_lineno": 132, "task_id": "project_cc_java/1552" } }
cross_code_eval_java::project_cc_java/1707
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // lib/src/test/java/net/fellbaum/jemoji/EmojiManagerTest.java // Assert.assertTrue(emoji.isPresen...
{ "prefix": "package net.fellbaum.jemoji;\n\nimport com.fasterxml.jackson.core.JsonProcessingException;\nimport com.fasterxml.jackson.core.type.TypeReference;\nimport com.fasterxml.jackson.databind.ObjectMapper;\n\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.i...
(emoji -> emoji.getDiscordAliases().contains(aliasWithoutColon) || emoji.getDiscordAliases().contains(aliasWithColon)) .findFirst();
{}
{ "repository": "felldo-JEmoji-a3e9bdb", "file": "lib/src/main/java/net/fellbaum/jemoji/EmojiManager.java", "task_id": "project_cc_java/1707" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "lib/src/main/java/net/fellbaum/jemoji/EmojiManager.java", "groundtruth_start_lineno": 177, "repository": "felldo-JEmoji-a3e9bdb", "right_context_start_lineno": 179, "task_id": "project_cc_java/1707" } }
cross_code_eval_java::project_cc_java/1704
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // lib/src/test/java/net/fellbaum/jemoji/EmojiManagerTest.java // Assert.assertTrue(emoji.isPresen...
{ "prefix": "package net.fellbaum.jemoji;\n\nimport com.fasterxml.jackson.core.JsonProcessingException;\nimport com.fasterxml.jackson.core.type.TypeReference;\nimport com.fasterxml.jackson.databind.ObjectMapper;\n\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.i...
emoji.getAllAliases().contains(aliasWithoutColon) || emoji.getAllAliases().contains(aliasWithColon)) .findFirst();
{}
{ "repository": "felldo-JEmoji-a3e9bdb", "file": "lib/src/main/java/net/fellbaum/jemoji/EmojiManager.java", "task_id": "project_cc_java/1704" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "lib/src/main/java/net/fellbaum/jemoji/EmojiManager.java", "groundtruth_start_lineno": 161, "repository": "felldo-JEmoji-a3e9bdb", "right_context_start_lineno": 163, "task_id": "project_cc_java/1704" } }
cross_code_eval_java::project_cc_java/1702
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // lib/src/main/java/net/fellbaum/jemoji/EmojiGroup.java // } // } // throw ne...
{ "prefix": "package net.fellbaum.jemoji;\n\nimport com.fasterxml.jackson.core.JsonProcessingException;\nimport com.fasterxml.jackson.core.type.TypeReference;\nimport com.fasterxml.jackson.databind.ObjectMapper;\n\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.i...
return EMOJIS_LENGTH_DESCENDING.stream().filter(emoji -> emoji.getGroup() == group).collect(Collectors.toSet());
{}
{ "repository": "felldo-JEmoji-a3e9bdb", "file": "lib/src/main/java/net/fellbaum/jemoji/EmojiManager.java", "task_id": "project_cc_java/1702" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "lib/src/main/java/net/fellbaum/jemoji/EmojiManager.java", "groundtruth_start_lineno": 127, "repository": "felldo-JEmoji-a3e9bdb", "right_context_start_lineno": 128, "task_id": "project_cc_java/1702" } }
cross_code_eval_java::project_cc_java/1695
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // lib/src/main/java/net/fellbaum/jemoji/HairStyle.java // } // /** // * Check if the given e...
{ "prefix": "package net.fellbaum.jemoji;\n\nimport com.fasterxml.jackson.annotation.JsonProperty;\n\nimport java.io.UnsupportedEncodingException;\nimport java.net.URLEncoder;\nimport java.nio.charset.StandardCharsets;\nimport java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.HashSet;\nimport java...
.removeHairStyle(Fitzpatrick.removeFitzpatrick(emoji));
{}
{ "repository": "felldo-JEmoji-a3e9bdb", "file": "lib/src/main/java/net/fellbaum/jemoji/Emoji.java", "task_id": "project_cc_java/1695" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "lib/src/main/java/net/fellbaum/jemoji/Emoji.java", "groundtruth_start_lineno": 109, "repository": "felldo-JEmoji-a3e9bdb", "right_context_start_lineno": 110, "task_id": "project_cc_java/1695" } }
cross_code_eval_java::project_cc_java/1661
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Source/HuaweiPush/External/com/huawei/plugin/push/HuaweiPushPlugin.java // ...
{ "prefix": "package com.huawei.accountplugin;\n\nimport android.app.NativeActivity;\nimport android.content.Intent;\nimport android.os.Build;\nimport android.os.Bundle;\nimport android.text.TextUtils;\nimport android.view.View;\nimport android.content.Context;\nimport android.content.SharedPreferences;\nimport andro...
mListener.onCancelledAuth();
{}
{ "repository": "EvilMindDevs-HMS-UnrealEngine-Plugin-9783dfb", "file": "Source/HuaweiAccount/External/com/huawei/accountplugin/HuaweiAccountPlugin.java", "task_id": "project_cc_java/1661" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Source/HuaweiAccount/External/com/huawei/accountplugin/HuaweiAccountPlugin.java", "groundtruth_start_lineno": 96, "repository": "EvilMindDevs-HMS-UnrealEngine-Plugin-9783dfb", "right_context_start_lineno": 97, "task_id": "project_cc_java/1661...
cross_code_eval_java::project_cc_java/1660
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Source/HuaweiPush/External/com/huawei/plugin/push/HuaweiPushPlugin.java // ...
{ "prefix": "package com.huawei.accountplugin;\n\nimport android.app.NativeActivity;\nimport android.content.Intent;\nimport android.os.Build;\nimport android.os.Bundle;\nimport android.text.TextUtils;\nimport android.view.View;\nimport android.content.Context;\nimport android.content.SharedPreferences;\nimport andro...
mListener.onLoggedOut();
{}
{ "repository": "EvilMindDevs-HMS-UnrealEngine-Plugin-9783dfb", "file": "Source/HuaweiAccount/External/com/huawei/accountplugin/HuaweiAccountPlugin.java", "task_id": "project_cc_java/1660" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Source/HuaweiAccount/External/com/huawei/accountplugin/HuaweiAccountPlugin.java", "groundtruth_start_lineno": 73, "repository": "EvilMindDevs-HMS-UnrealEngine-Plugin-9783dfb", "right_context_start_lineno": 74, "task_id": "project_cc_java/1660...
cross_code_eval_java::project_cc_java/1672
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Source/HuaweiPush/External/com/huawei/plugin/push/HuaweiPushPlugin.java // } // } e...
{ "prefix": "package com.huawei.plugin.push;\n\nimport android.util.Log;\n\nimport com.huawei.hms.push.HmsMessageService;\nimport com.huawei.hms.push.RemoteMessage;\nimport com.huawei.plugin.push.utils.Constants;\n\nimport org.json.JSONException;\nimport org.json.JSONObject;\n\npublic class PushPluginService extends ...
HuaweiPushPlugin.handleReceiveMessage(messageData);
{}
{ "repository": "EvilMindDevs-HMS-UnrealEngine-Plugin-9783dfb", "file": "Source/HuaweiPush/External/com/huawei/plugin/push/PushPluginService.java", "task_id": "project_cc_java/1672" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Source/HuaweiPush/External/com/huawei/plugin/push/PushPluginService.java", "groundtruth_start_lineno": 33, "repository": "EvilMindDevs-HMS-UnrealEngine-Plugin-9783dfb", "right_context_start_lineno": 34, "task_id": "project_cc_java/1672" } }
cross_code_eval_java::project_cc_java/1679
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Source/HuaweiAds/External/com/huawei/adplugin/HuaweiAdsPlugin.java // } // ...
{ "prefix": "\npackage com.huawei.adplugin.adproxy;\n\nimport android.app.Activity;\nimport android.os.Handler;\nimport android.os.Looper;\nimport android.util.Log;\n\nimport com.huawei.hms.ads.AdParam;\nimport com.huawei.hms.ads.reward.Reward;\nimport com.huawei.hms.ads.reward.RewardAd;\nimport com.huawei.hms.ads.re...
mAdStatusListener.onRewarded(rewardName, rewardAmount);
{}
{ "repository": "EvilMindDevs-HMS-UnrealEngine-Plugin-9783dfb", "file": "Source/HuaweiAds/External/com/huawei/adplugin/adproxy/RewardAdProxy.java", "task_id": "project_cc_java/1679" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Source/HuaweiAds/External/com/huawei/adplugin/adproxy/RewardAdProxy.java", "groundtruth_start_lineno": 166, "repository": "EvilMindDevs-HMS-UnrealEngine-Plugin-9783dfb", "right_context_start_lineno": 167, "task_id": "project_cc_java/1679" }...
cross_code_eval_java::project_cc_java/1691
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Source/HuaweiPush/External/com/huawei/plugin/push/HuaweiPushPlugin.java // public void onGetTokenSu...
{ "prefix": "package com.huawei.iapplugin;\n\nimport com.huawei.iapplugin.utils.IapApiCallback;\nimport com.huawei.iapplugin.utils.Constants;\nimport com.huawei.iapplugin.utils.ExceptionHandle;\nimport com.huawei.iapplugin.utils.IapRequestHelper;\nimport com.huawei.iapplugin.utils.CipherUtil;\n\nimport com.huawei.hms...
CipherUtil.doCheck(inAppPurchaseDataStr, inAppPurchaseDataSignature, mPublicKey)) {
{}
{ "repository": "EvilMindDevs-HMS-UnrealEngine-Plugin-9783dfb", "file": "Source/HuaweiIAP/External/com/huawei/iapplugin/HuaweiIapPlugin.java", "task_id": "project_cc_java/1691" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Source/HuaweiIAP/External/com/huawei/iapplugin/HuaweiIapPlugin.java", "groundtruth_start_lineno": 245, "repository": "EvilMindDevs-HMS-UnrealEngine-Plugin-9783dfb", "right_context_start_lineno": 246, "task_id": "project_cc_java/1691" } }
cross_code_eval_java::project_cc_java/1601
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Semana 2/Lunes/Lista/src/lista/Main.java // public static void main(String[] args) { // Nod...
{ "prefix": "/*\n * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license\n * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Main.java to edit this template\n */\npackage lista;\n\n/**\n *\n * @author Estudiante\n */\npublic class Main {\n\n public static void m...
list.deleteInIndex(6);
{}
{ "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "file": "Semana 2/Miercoles/Lista/src/lista/Main.java", "task_id": "project_cc_java/1601" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Semana 2/Miercoles/Lista/src/lista/Main.java", "groundtruth_start_lineno": 23, "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "right_context_start_lineno": 24, "task_id": "project_cc_java/1601" } }
cross_code_eval_java::project_cc_java/1687
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Source/HuaweiIAP/External/com/huawei/iapplugin/HuaweiIapPlugin.java // ExceptionHandle....
{ "prefix": "/**\n * Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved.\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/l...
iapApiCallback.onFail(e);
{}
{ "repository": "EvilMindDevs-HMS-UnrealEngine-Plugin-9783dfb", "file": "Source/HuaweiIAP/External/com/huawei/iapplugin/utils/IapRequestHelper.java", "task_id": "project_cc_java/1687" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Source/HuaweiIAP/External/com/huawei/iapplugin/utils/IapRequestHelper.java", "groundtruth_start_lineno": 133, "repository": "EvilMindDevs-HMS-UnrealEngine-Plugin-9783dfb", "right_context_start_lineno": 134, "task_id": "project_cc_java/1687" ...
cross_code_eval_java::project_cc_java/1600
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Semana 2/Lunes/Lista/src/lista/Main.java // public static void main(String[] args) { // Nod...
{ "prefix": "/*\n * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license\n * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Main.java to edit this template\n */\npackage lista;\n\n/**\n *\n * @author Estudiante\n */\npublic class Main {\n\n public static void m...
list.deleteInIndex(2);
{}
{ "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "file": "Semana 2/Miercoles/Lista/src/lista/Main.java", "task_id": "project_cc_java/1600" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Semana 2/Miercoles/Lista/src/lista/Main.java", "groundtruth_start_lineno": 22, "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "right_context_start_lineno": 23, "task_id": "project_cc_java/1600" } }
cross_code_eval_java::project_cc_java/1720
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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/pessoas/Cliente.java // } // @Override // public String toString() { // return getNome() + " |...
{ "prefix": "package contas;\n\nimport java.time.LocalDate;\nimport java.util.ArrayList;\nimport java.util.List;\n\nimport agencias.Agencia;\nimport contas.enums.ContasEnum;\nimport extratos.Extrato;\nimport operacoes.Operacao;\nimport pessoas.Cliente;\n\npublic abstract class Conta implements Operacao, Comparable<Co...
).compareTo(cont.getTitular()) < 0) {
{}
{ "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "file": "src/contas/Conta.java", "task_id": "project_cc_java/1720" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/contas/Conta.java", "groundtruth_start_lineno": 132, "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "right_context_start_lineno": 133, "task_id": "project_cc_java/1720" } }
cross_code_eval_java::project_cc_java/1721
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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 // System.out.println(cc); // } // System.out.printf("Total gasto ...
{ "prefix": "package contas;\n\nimport java.text.SimpleDateFormat;\nimport java.time.LocalDate;\nimport java.util.Date;\n\nimport agencias.Agencia;\nimport contas.enums.ContasEnum;\nimport extratos.Extrato;\nimport pessoas.Cliente;\n\npublic class ContaPoupanca extends Conta {\n\n\tprivate static final double TAXA_RE...
out.printf("Saldo atualizado: R$%.2f%n", conta.getSaldo());
{}
{ "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "file": "src/contas/ContaPoupanca.java", "task_id": "project_cc_java/1721" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/contas/ContaPoupanca.java", "groundtruth_start_lineno": 52, "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "right_context_start_lineno": 53, "task_id": "project_cc_java/1721" } }
cross_code_eval_java::project_cc_java/1719
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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/pessoas/Cliente.java // } // @Override // public String toString() { // return getNome() + " |...
{ "prefix": "package contas;\n\nimport java.time.LocalDate;\nimport java.util.ArrayList;\nimport java.util.List;\n\nimport agencias.Agencia;\nimport contas.enums.ContasEnum;\nimport extratos.Extrato;\nimport operacoes.Operacao;\nimport pessoas.Cliente;\n\npublic abstract class Conta implements Operacao, Comparable<Co...
.getTitular().compareTo(cont.getTitular()) > 0) {
{}
{ "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "file": "src/contas/Conta.java", "task_id": "project_cc_java/1719" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/contas/Conta.java", "groundtruth_start_lineno": 129, "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "right_context_start_lineno": 130, "task_id": "project_cc_java/1719" } }
cross_code_eval_java::project_cc_java/1725
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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 // do { // System.out.printf("Quantos dias deseja saber o rendimento...
{ "prefix": "package menus;\n\nimport java.io.IOException;\nimport java.util.ArrayList;\nimport java.util.InputMismatchException;\nimport java.util.List;\nimport java.util.Locale;\nimport java.util.Scanner;\n\nimport contas.Conta;\nimport contas.ContaCorrente;\nimport contas.enums.ContasEnum;\nimport io.Escritor;\nim...
conta.sacar(valor, conta);
{}
{ "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "file": "src/menus/Menu.java", "task_id": "project_cc_java/1725" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/menus/Menu.java", "groundtruth_start_lineno": 262, "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "right_context_start_lineno": 263, "task_id": "project_cc_java/1725" } }
cross_code_eval_java::project_cc_java/1727
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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("NOME : " + cliente.getNome()); // System.out.p...
{ "prefix": "package menus;\n\nimport java.io.IOException;\nimport java.util.ArrayList;\nimport java.util.InputMismatchException;\nimport java.util.List;\nimport java.util.Locale;\nimport java.util.Scanner;\n\nimport contas.Conta;\nimport contas.ContaCorrente;\nimport contas.enums.ContasEnum;\nimport io.Escritor;\nim...
printf("Saldo atual: R$ %.2f", conta.getSaldo());
{}
{ "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "file": "src/menus/Menu.java", "task_id": "project_cc_java/1727" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/menus/Menu.java", "groundtruth_start_lineno": 274, "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "right_context_start_lineno": 275, "task_id": "project_cc_java/1727" } }
cross_code_eval_java::project_cc_java/1643
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Semana 5/Ejercicios/src/ejercicios/Lista.java // if (pointer2 == getHead()) { // ...
{ "prefix": "package colas;\n\npublic class Ejercicios {\n \n public void Ejercicio1(Queue queue) {\n int acum = 0;\n Nodo pointer = queue.getHead();\n while (pointer != null) {\n acum += (int) pointer.getElement();\n pointer = (Nodo) pointer.getNext();\n }\n ...
pointer2 = (Nodo) pointer2.getNext();
{}
{ "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "file": "Semana 7/Lunes/Colas/src/colas/Ejercicios.java", "task_id": "project_cc_java/1643" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Semana 7/Lunes/Colas/src/colas/Ejercicios.java", "groundtruth_start_lineno": 23, "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "right_context_start_lineno": 24, "task_id": "project_cc_java/1643" } }
cross_code_eval_java::project_cc_java/1744
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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("[4] Seguro de vida"); // System.out.println("[5] Retorna...
{ "prefix": "package relatorios;\n\nimport java.io.IOException;\nimport java.text.SimpleDateFormat;\nimport java.util.Collections;\nimport java.util.Date;\nimport java.util.List;\nimport java.util.Scanner;\n\nimport contas.Conta;\nimport contas.ContaCorrente;\nimport contas.ContaPoupanca;\nimport io.Escritor;\nimport...
System.out.println("Valor de tarifa cobrado no depósito: R$ " + ContaCorrente.getTarifaDeposito());
{}
{ "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "file": "src/relatorios/Relatorio.java", "task_id": "project_cc_java/1744" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/relatorios/Relatorio.java", "groundtruth_start_lineno": 43, "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "right_context_start_lineno": 44, "task_id": "project_cc_java/1744" } }
cross_code_eval_java::project_cc_java/1729
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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 // Escritor.rendimentDaPoupanca(conta, cliente, rendimento, dias, valor...
{ "prefix": "package menus;\n\nimport java.io.IOException;\nimport java.util.ArrayList;\nimport java.util.InputMismatchException;\nimport java.util.List;\nimport java.util.Locale;\nimport java.util.Scanner;\n\nimport contas.Conta;\nimport contas.ContaCorrente;\nimport contas.enums.ContasEnum;\nimport io.Escritor;\nim...
(cpfDestinatario.equals(conta.getCpf())) {
{}
{ "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "file": "src/menus/Menu.java", "task_id": "project_cc_java/1729" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/menus/Menu.java", "groundtruth_start_lineno": 295, "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "right_context_start_lineno": 296, "task_id": "project_cc_java/1729" } }
cross_code_eval_java::project_cc_java/1730
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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 // Escritor.rendimentDaPoupanca(conta, cliente, rendimento, dias, valor...
{ "prefix": "package menus;\n\nimport java.io.IOException;\nimport java.util.ArrayList;\nimport java.util.InputMismatchException;\nimport java.util.List;\nimport java.util.Locale;\nimport java.util.Scanner;\n\nimport contas.Conta;\nimport contas.ContaCorrente;\nimport contas.enums.ContasEnum;\nimport io.Escritor;\nim...
conta.transferir(contaDestino, valor, conta);
{}
{ "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "file": "src/menus/Menu.java", "task_id": "project_cc_java/1730" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/menus/Menu.java", "groundtruth_start_lineno": 303, "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "right_context_start_lineno": 304, "task_id": "project_cc_java/1730" } }
cross_code_eval_java::project_cc_java/1739
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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/Escritor.java // } // String date = LocalDateTime.now().format(DateTimeFormatter.ofPattern...
{ "prefix": "package relatorios;\n\nimport java.io.IOException;\nimport java.text.SimpleDateFormat;\nimport java.util.Collections;\nimport java.util.Date;\nimport java.util.List;\nimport java.util.Scanner;\n\nimport contas.Conta;\nimport contas.ContaCorrente;\nimport contas.ContaPoupanca;\nimport io.Escritor;\nimport...
printf("NOME: %s\t| AGÊNCIA: %s\n", c.getTitular(), c.getAgencia());
{}
{ "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "file": "src/relatorios/Relatorio.java", "task_id": "project_cc_java/1739" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/relatorios/Relatorio.java", "groundtruth_start_lineno": 137, "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "right_context_start_lineno": 138, "task_id": "project_cc_java/1739" } }
cross_code_eval_java::project_cc_java/1740
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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/Escritor.java // } // String date = LocalDateTime.now().format(DateTimeFormatter.ofPattern...
{ "prefix": "package relatorios;\n\nimport java.io.IOException;\nimport java.text.SimpleDateFormat;\nimport java.util.Collections;\nimport java.util.Date;\nimport java.util.List;\nimport java.util.Scanner;\n\nimport contas.Conta;\nimport contas.ContaCorrente;\nimport contas.ContaPoupanca;\nimport io.Escritor;\nimport...
etTitular(), c.getAgencia());
{}
{ "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "file": "src/relatorios/Relatorio.java", "task_id": "project_cc_java/1740" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/relatorios/Relatorio.java", "groundtruth_start_lineno": 137, "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "right_context_start_lineno": 138, "task_id": "project_cc_java/1740" } }
cross_code_eval_java::project_cc_java/1735
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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 menus;\n\nimport java.io.IOException;\nimport java.util.ArrayList;\nimport java.util.InputMismatchException;\nimport java.util.List;\nimport java.util.Locale;\nimport java.util.Scanner;\n\nimport contas.Conta;\nimport contas.ContaCorrente;\nimport contas.enums.ContasEnum;\nimport io.Escritor;\nim...
Escritor.registroDeDadosAtualizados();
{}
{ "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "file": "src/menus/Menu.java", "task_id": "project_cc_java/1735" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/menus/Menu.java", "groundtruth_start_lineno": 45, "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "right_context_start_lineno": 46, "task_id": "project_cc_java/1735" } }
cross_code_eval_java::project_cc_java/1743
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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 relatorios;\n\nimport java.io.IOException;\nimport java.text.SimpleDateFormat;\nimport java.util.Collections;\nimport java.util.Date;\nimport java.util.List;\nimport java.util.Scanner;\n\nimport contas.Conta;\nimport contas.ContaCorrente;\nimport contas.ContaPoupanca;\nimport io.Escritor;\nimport...
println("Total de saques: " + conta.getTotalSaques());
{}
{ "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "file": "src/relatorios/Relatorio.java", "task_id": "project_cc_java/1743" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/relatorios/Relatorio.java", "groundtruth_start_lineno": 41, "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "right_context_start_lineno": 42, "task_id": "project_cc_java/1743" } }
cross_code_eval_java::project_cc_java/1741
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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("Escolha entre as opções abaixo:"); // System.out.pri...
{ "prefix": "package relatorios;\n\nimport java.io.IOException;\nimport java.text.SimpleDateFormat;\nimport java.util.Collections;\nimport java.util.Date;\nimport java.util.List;\nimport java.util.Scanner;\n\nimport contas.Conta;\nimport contas.ContaCorrente;\nimport contas.ContaPoupanca;\nimport io.Escritor;\nimport...
capitalBancoSaldo += lista.getSaldo();
{}
{ "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "file": "src/relatorios/Relatorio.java", "task_id": "project_cc_java/1741" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/relatorios/Relatorio.java", "groundtruth_start_lineno": 150, "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "right_context_start_lineno": 151, "task_id": "project_cc_java/1741" } }
cross_code_eval_java::project_cc_java/1644
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Semana 5/Ejercicios/src/ejercicios/Lista.java // if (pointer2 == getHead()) { // ...
{ "prefix": "package colas;\n\npublic class Ejercicios {\n \n public void Ejercicio1(Queue queue) {\n int acum = 0;\n Nodo pointer = queue.getHead();\n while (pointer != null) {\n acum += (int) pointer.getElement();\n pointer = (Nodo) pointer.getNext();\n }\n ...
.out.println(pointer2.getElement());
{}
{ "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "file": "Semana 7/Lunes/Colas/src/colas/Ejercicios.java", "task_id": "project_cc_java/1644" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Semana 7/Lunes/Colas/src/colas/Ejercicios.java", "groundtruth_start_lineno": 26, "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "right_context_start_lineno": 27, "task_id": "project_cc_java/1644" } }
cross_code_eval_java::project_cc_java/1746
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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/Escritor.java // linha = "Taxa para tranferência = " + ContaCorrente.getTarifaTransferencia()...
{ "prefix": "package relatorios;\n\nimport java.io.IOException;\nimport java.text.SimpleDateFormat;\nimport java.util.Collections;\nimport java.util.Date;\nimport java.util.List;\nimport java.util.Scanner;\n\nimport contas.Conta;\nimport contas.ContaCorrente;\nimport contas.ContaPoupanca;\nimport io.Escritor;\nimport...
("Valor de tarifa cobrado na tranferência: R$ " + ContaCorrente.getTarifaTransferencia());
{}
{ "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "file": "src/relatorios/Relatorio.java", "task_id": "project_cc_java/1746" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/relatorios/Relatorio.java", "groundtruth_start_lineno": 46, "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "right_context_start_lineno": 47, "task_id": "project_cc_java/1746" } }
cross_code_eval_java::project_cc_java/1731
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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/ContaPoupanca.java // System.out.println("Insira um valor válido."); // } else { // ...
{ "prefix": "package menus;\n\nimport java.io.IOException;\nimport java.util.ArrayList;\nimport java.util.InputMismatchException;\nimport java.util.List;\nimport java.util.Locale;\nimport java.util.Scanner;\n\nimport contas.Conta;\nimport contas.ContaCorrente;\nimport contas.enums.ContasEnum;\nimport io.Escritor;\nim...
conta.imprimeExtrato(conta);
{}
{ "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "file": "src/menus/Menu.java", "task_id": "project_cc_java/1731" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/menus/Menu.java", "groundtruth_start_lineno": 310, "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "right_context_start_lineno": 311, "task_id": "project_cc_java/1731" } }
cross_code_eval_java::project_cc_java/1770
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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();
{}
{ "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "file": "src/io/Escritor.java", "task_id": "project_cc_java/1770" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/io/Escritor.java", "groundtruth_start_lineno": 92, "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "right_context_start_lineno": 93, "task_id": "project_cc_java/1770" } }
cross_code_eval_java::project_cc_java/1754
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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/Escritor.java // bw.append(linha + "\n"); // String date = LocalDateTime.now().format(Date...
{ "prefix": "package relatorios;\n\nimport java.io.IOException;\nimport java.text.SimpleDateFormat;\nimport java.util.Collections;\nimport java.util.Date;\nimport java.util.List;\nimport java.util.Scanner;\n\nimport contas.Conta;\nimport contas.ContaCorrente;\nimport contas.ContaPoupanca;\nimport io.Escritor;\nimport...
= valorSimulado * ((ContaPoupanca.getTaxaRendimento() / 30) * dias);
{}
{ "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "file": "src/relatorios/Relatorio.java", "task_id": "project_cc_java/1754" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/relatorios/Relatorio.java", "groundtruth_start_lineno": 88, "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "right_context_start_lineno": 89, "task_id": "project_cc_java/1754" } }
cross_code_eval_java::project_cc_java/1748
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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/Escritor.java // linha = "Taxa para tranferência = " + ContaCorrente.getTarifaTransferencia()...
{ "prefix": "package relatorios;\n\nimport java.io.IOException;\nimport java.text.SimpleDateFormat;\nimport java.util.Collections;\nimport java.util.Date;\nimport java.util.List;\nimport java.util.Scanner;\n\nimport contas.Conta;\nimport contas.ContaCorrente;\nimport contas.ContaPoupanca;\nimport io.Escritor;\nimport...
tarifaTotalSaque = conta.getTotalSaques() * ContaCorrente.getTarifaSaque();
{}
{ "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "file": "src/relatorios/Relatorio.java", "task_id": "project_cc_java/1748" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/relatorios/Relatorio.java", "groundtruth_start_lineno": 51, "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "right_context_start_lineno": 52, "task_id": "project_cc_java/1748" } }
cross_code_eval_java::project_cc_java/1755
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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/principal/SistemaBancario.java // public static Map<String, Conta> mapaDeContas = new HashMap<>();...
{ "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.getNumAgencia());
{}
{ "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "file": "src/io/Escritor.java", "task_id": "project_cc_java/1755" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/io/Escritor.java", "groundtruth_start_lineno": 558, "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "right_context_start_lineno": 559, "task_id": "project_cc_java/1755" } }
cross_code_eval_java::project_cc_java/1766
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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...
).getNome() + "_" + conta.getTitular().getTipoDeUsuario();
{}
{ "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "file": "src/io/Escritor.java", "task_id": "project_cc_java/1766" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/io/Escritor.java", "groundtruth_start_lineno": 77, "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "right_context_start_lineno": 78, "task_id": "project_cc_java/1766" } }
cross_code_eval_java::project_cc_java/1652
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Semana 5/Ejercicios/src/ejercicios/Lista.java // if (pointer2 == getHead()) { // ...
{ "prefix": "package colas;\n\npublic class Ejercicios {\n \n public void Ejercicio1(Queue queue) {\n int acum = 0;\n Nodo pointer = queue.getHead();\n while (pointer != null) {\n acum += (int) pointer.getElement();\n pointer = (Nodo) pointer.getNext();\n }\n ...
queue.getSize()){
{}
{ "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "file": "Semana 7/Lunes/Colas/src/colas/Ejercicios.java", "task_id": "project_cc_java/1652" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Semana 7/Lunes/Colas/src/colas/Ejercicios.java", "groundtruth_start_lineno": 31, "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "right_context_start_lineno": 32, "task_id": "project_cc_java/1652" } }
cross_code_eval_java::project_cc_java/1651
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Semana 5/Ejercicios/src/ejercicios/Lista.java // if (pointer2 == getHead()) { // ...
{ "prefix": "package colas;\n\npublic class Ejercicios {\n \n public void Ejercicio1(Queue queue) {\n int acum = 0;\n Nodo pointer = queue.getHead();\n while (pointer != null) {\n acum += (int) pointer.getElement();\n pointer = (Nodo) pointer.getNext();\n }\n ...
= (Nodo) queue.getHead().getNext();
{}
{ "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "file": "Semana 7/Lunes/Colas/src/colas/Ejercicios.java", "task_id": "project_cc_java/1651" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Semana 7/Lunes/Colas/src/colas/Ejercicios.java", "groundtruth_start_lineno": 29, "repository": "Estructura-de-Datos-2223-3-S2-Ejercicios-en-clase-c874295", "right_context_start_lineno": 30, "task_id": "project_cc_java/1651" } }
cross_code_eval_java::project_cc_java/1779
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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();
{}
{ "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "file": "src/io/Escritor.java", "task_id": "project_cc_java/1779" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/io/Escritor.java", "groundtruth_start_lineno": 137, "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "right_context_start_lineno": 138, "task_id": "project_cc_java/1779" } }
cross_code_eval_java::project_cc_java/1776
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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 + "_comprovanteTransferencia";
{}
{ "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "file": "src/io/Escritor.java", "task_id": "project_cc_java/1776" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/io/Escritor.java", "groundtruth_start_lineno": 120, "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "right_context_start_lineno": 121, "task_id": "project_cc_java/1776" } }
cross_code_eval_java::project_cc_java/1788
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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...
String arquivo = conta.getCpf() + "_" + conta.getAgencia() + "_" + hojeFormatado + "_comprovanteExtrato";
{}
{ "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "file": "src/io/Escritor.java", "task_id": "project_cc_java/1788" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/io/Escritor.java", "groundtruth_start_lineno": 183, "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "right_context_start_lineno": 184, "task_id": "project_cc_java/1788" } }
cross_code_eval_java::project_cc_java/1789
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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...
.getCpf() + "_" + conta.getAgencia() + "_" + hojeFormatado + "_comprovanteExtrato";
{}
{ "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "file": "src/io/Escritor.java", "task_id": "project_cc_java/1789" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/io/Escritor.java", "groundtruth_start_lineno": 183, "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "right_context_start_lineno": 184, "task_id": "project_cc_java/1789" } }
cross_code_eval_java::project_cc_java/1790
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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...
conta.getTipoDeConta();
{}
{ "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "file": "src/io/Escritor.java", "task_id": "project_cc_java/1790" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/io/Escritor.java", "groundtruth_start_lineno": 191, "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "right_context_start_lineno": 192, "task_id": "project_cc_java/1790" } }
cross_code_eval_java::project_cc_java/1791
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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...
"Titular: " + conta.getTitular().getNome() + " | CPF: " + conta.imprimeCPF(conta.getCpf());
{}
{ "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "file": "src/io/Escritor.java", "task_id": "project_cc_java/1791" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/io/Escritor.java", "groundtruth_start_lineno": 194, "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "right_context_start_lineno": 195, "task_id": "project_cc_java/1791" } }
cross_code_eval_java::project_cc_java/1793
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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...
conta.getAgencia().getNumAgencia() + " | Conta: " + conta.getNumConta();
{}
{ "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "file": "src/io/Escritor.java", "task_id": "project_cc_java/1793" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/io/Escritor.java", "groundtruth_start_lineno": 197, "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "right_context_start_lineno": 198, "task_id": "project_cc_java/1793" } }
cross_code_eval_java::project_cc_java/1792
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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...
+ conta.imprimeCPF(conta.getCpf());
{}
{ "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "file": "src/io/Escritor.java", "task_id": "project_cc_java/1792" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/io/Escritor.java", "groundtruth_start_lineno": 194, "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "right_context_start_lineno": 195, "task_id": "project_cc_java/1792" } }
cross_code_eval_java::project_cc_java/1794
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only 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...
+ conta.getAgencia().getNumAgencia() + " | Conta: " + conta.getNumConta();
{}
{ "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "file": "src/io/Escritor.java", "task_id": "project_cc_java/1794" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/io/Escritor.java", "groundtruth_start_lineno": 197, "repository": "filipe-oliv95-TrabalhoBancoPOO_Grupo7-e86048d", "right_context_start_lineno": 198, "task_id": "project_cc_java/1794" } }