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/4592 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/platzi/pizza/web/controller/PizzaController.java
// @GetMapping("/without/{ingred... | {
"prefix": "package com.platzi.pizza.service;\n\nimport com.platzi.pizza.persitence.entity.PizzaEntity;\nimport com.platzi.pizza.persitence.repository.PizzaPagSortRepository;\nimport com.platzi.pizza.persitence.repository.PizzaRepository;\nimport com.platzi.pizza.service.dto.UpdatePizzaPriceDto;\nimport com.platzi.p... | return this.pizzaRepository.findAllByAvailableTrueAndDescriptionContainingIgnoreCase(ingredient); | {} | {
"repository": "platzi-curso-java-spring-security-c81e819",
"file": "src/main/java/com/platzi/pizza/service/PizzaService.java",
"task_id": "project_cc_java/4592"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/platzi/pizza/service/PizzaService.java",
"groundtruth_start_lineno": 47,
"repository": "platzi-curso-java-spring-security-c81e819",
"right_context_start_lineno": 48,
"task_id": "project_cc_java/4592"
}
} |
cross_code_eval_java::project_cc_java/4583 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/platzi/pizza/web/controller/OrderController.java
// @GetMapping("/outside")
// ... | {
"prefix": "package com.platzi.pizza.service;\n\nimport com.platzi.pizza.persitence.entity.OrderEntity;\nimport com.platzi.pizza.persitence.projection.OrderSummary;\nimport com.platzi.pizza.persitence.repository.OrderRepository;\nimport com.platzi.pizza.service.dto.RandomOrderDto;\nimport org.springframework.beans.f... | .orderRepository.findCustomerOrders(idCustomer); | {} | {
"repository": "platzi-curso-java-spring-security-c81e819",
"file": "src/main/java/com/platzi/pizza/service/OrderService.java",
"task_id": "project_cc_java/4583"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/platzi/pizza/service/OrderService.java",
"groundtruth_start_lineno": 43,
"repository": "platzi-curso-java-spring-security-c81e819",
"right_context_start_lineno": 44,
"task_id": "project_cc_java/4583"
}
} |
cross_code_eval_java::project_cc_java/4594 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/platzi/pizza/web/controller/PizzaController.java
// if (pizza.getIdPizza() ==... | {
"prefix": "package com.platzi.pizza.service;\n\nimport com.platzi.pizza.persitence.entity.PizzaEntity;\nimport com.platzi.pizza.persitence.repository.PizzaPagSortRepository;\nimport com.platzi.pizza.persitence.repository.PizzaRepository;\nimport com.platzi.pizza.service.dto.UpdatePizzaPriceDto;\nimport com.platzi.p... | this.pizzaRepository.findTop3ByAvailableTrueAndPriceLessThanEqualOrderByPriceAsc(price); | {} | {
"repository": "platzi-curso-java-spring-security-c81e819",
"file": "src/main/java/com/platzi/pizza/service/PizzaService.java",
"task_id": "project_cc_java/4594"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/platzi/pizza/service/PizzaService.java",
"groundtruth_start_lineno": 55,
"repository": "platzi-curso-java-spring-security-c81e819",
"right_context_start_lineno": 56,
"task_id": "project_cc_java/4594"
}
} |
cross_code_eval_java::project_cc_java/4588 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/platzi/pizza/web/controller/PizzaController.java
// @GetMapping("/without/{ingred... | {
"prefix": "package com.platzi.pizza.web.controller;\n\nimport com.platzi.pizza.persitence.entity.OrderEntity;\nimport com.platzi.pizza.persitence.projection.OrderSummary;\nimport com.platzi.pizza.service.OrderService;\nimport com.platzi.pizza.service.dto.RandomOrderDto;\nimport org.springframework.beans.factory.ann... | this.orderService.getCustomerOrders(id)); | {} | {
"repository": "platzi-curso-java-spring-security-c81e819",
"file": "src/main/java/com/platzi/pizza/web/controller/OrderController.java",
"task_id": "project_cc_java/4588"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/platzi/pizza/web/controller/OrderController.java",
"groundtruth_start_lineno": 44,
"repository": "platzi-curso-java-spring-security-c81e819",
"right_context_start_lineno": 45,
"task_id": "project_cc_java/4588"
}
} |
cross_code_eval_java::project_cc_java/4615 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// mixin-maven-plugin/src/main/java/com/playtika/maven/plugins/MixinsProjectLoader.java
// this.ma... | {
"prefix": "package com.playtika.maven.plugins;\n\nimport org.apache.maven.AbstractMavenLifecycleParticipant;\nimport org.apache.maven.MavenExecutionException;\nimport org.apache.maven.configuration.BeanConfigurator;\nimport org.apache.maven.execution.MavenSession;\nimport org.apache.maven.model.interpolation.ModelI... | loader.mergeMixins(); | {} | {
"repository": "PlaytikaOSS-maven-plugins-1781693",
"file": "mixin-maven-plugin/src/main/java/com/playtika/maven/plugins/MixinMavenLifecycleParticipant.java",
"task_id": "project_cc_java/4615"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "mixin-maven-plugin/src/main/java/com/playtika/maven/plugins/MixinMavenLifecycleParticipant.java",
"groundtruth_start_lineno": 71,
"repository": "PlaytikaOSS-maven-plugins-1781693",
"right_context_start_lineno": 72,
"task_id": "project_cc_java... |
cross_code_eval_java::project_cc_java/4530 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// sdk/hibernate-encryption/src/main/java/com/piiano/vault/orm/encryption/Encryptor.java
// throw new A... | {
"prefix": "package com.piiano.vault.orm.encryption;\n\nimport com.piiano.vault.client.openapi.model.EncryptionType;\nimport org.hibernate.HibernateException;\nimport org.hibernate.engine.spi.SharedSessionContractImplementor;\nimport org.hibernate.usertype.DynamicParameterizedType;\nimport org.hibernate.usertype.Use... | != null && !encryptor.isEncrypted(propValue)) { | {} | {
"repository": "piiano-vault-java-8a95eec",
"file": "sdk/hibernate-encryption/src/main/java/com/piiano/vault/orm/encryption/Encrypted.java",
"task_id": "project_cc_java/4530"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "sdk/hibernate-encryption/src/main/java/com/piiano/vault/orm/encryption/Encrypted.java",
"groundtruth_start_lineno": 114,
"repository": "piiano-vault-java-8a95eec",
"right_context_start_lineno": 115,
"task_id": "project_cc_java/4530"
}
} |
cross_code_eval_java::project_cc_java/4543 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// parts/src/org/lineageos/settings/dirac/DiracSound.java
// checkStatus(setParameter(DIRACSOUND_P... | {
"prefix": "/*\n * Copyright (C) 2018,2020 The LineageOS Project\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * U... | mDiracSound.getMusic() == 1; | {} | {
"repository": "PixelExperience-Devices-device_xiaomi_sm6225-common-ac5a1ea",
"file": "parts/src/org/lineageos/settings/dirac/DiracUtils.java",
"task_id": "project_cc_java/4543"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "parts/src/org/lineageos/settings/dirac/DiracUtils.java",
"groundtruth_start_lineno": 125,
"repository": "PixelExperience-Devices-device_xiaomi_sm6225-common-ac5a1ea",
"right_context_start_lineno": 126,
"task_id": "project_cc_java/4543"
}
} |
cross_code_eval_java::project_cc_java/4522 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// examples/demo-app-hibernate-encryption/src/main/java/com/demo/app/controller/MainController.java
// ... | {
"prefix": "package com.demo.app.service;\n\nimport com.demo.app.dal.Customer;\nimport com.demo.app.dal.CustomerRepository;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.stereotype.Service;\n\nimport java.util.List;\nimport java.util.Optional;\n\n@Service\npublic class C... | return customerRepository.findCustomerByName(name); | {} | {
"repository": "piiano-vault-java-8a95eec",
"file": "examples/demo-app-hibernate-encryption/src/main/java/com/demo/app/service/CustomerService.java",
"task_id": "project_cc_java/4522"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "examples/demo-app-hibernate-encryption/src/main/java/com/demo/app/service/CustomerService.java",
"groundtruth_start_lineno": 45,
"repository": "piiano-vault-java-8a95eec",
"right_context_start_lineno": 46,
"task_id": "project_cc_java/4522"
... |
cross_code_eval_java::project_cc_java/4532 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// sdk/hibernate-encryption/src/main/java/com/piiano/vault/orm/encryption/Encryptor.java
// .accessRea... | {
"prefix": "package com.piiano.vault.orm.encryption;\n\nimport com.piiano.vault.client.openapi.ApiException;\nimport com.piiano.vault.client.openapi.model.EncryptionType;\nimport lombok.AllArgsConstructor;\nimport org.hibernate.EmptyInterceptor;\nimport org.hibernate.annotations.Parameter;\nimport org.hibernate.type... | encryptor.decrypt(encryptedValue).toString(); | {} | {
"repository": "piiano-vault-java-8a95eec",
"file": "sdk/hibernate-encryption/src/main/java/com/piiano/vault/orm/encryption/TransformationInterceptor.java",
"task_id": "project_cc_java/4532"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "sdk/hibernate-encryption/src/main/java/com/piiano/vault/orm/encryption/TransformationInterceptor.java",
"groundtruth_start_lineno": 143,
"repository": "piiano-vault-java-8a95eec",
"right_context_start_lineno": 144,
"task_id": "project_cc_java... |
cross_code_eval_java::project_cc_java/4529 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// sdk/hibernate-encryption/src/main/java/com/piiano/vault/orm/encryption/TransformationInterceptor.java
/... | {
"prefix": "package com.piiano.vault.orm.encryption;\n\nimport com.piiano.vault.client.openapi.model.EncryptionType;\nimport org.hibernate.HibernateException;\nimport org.hibernate.engine.spi.SharedSessionContractImplementor;\nimport org.hibernate.usertype.DynamicParameterizedType;\nimport org.hibernate.usertype.Use... | = encryptor.decrypt(value).toString(); | {} | {
"repository": "piiano-vault-java-8a95eec",
"file": "sdk/hibernate-encryption/src/main/java/com/piiano/vault/orm/encryption/Encrypted.java",
"task_id": "project_cc_java/4529"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "sdk/hibernate-encryption/src/main/java/com/piiano/vault/orm/encryption/Encrypted.java",
"groundtruth_start_lineno": 94,
"repository": "piiano-vault-java-8a95eec",
"right_context_start_lineno": 95,
"task_id": "project_cc_java/4529"
}
} |
cross_code_eval_java::project_cc_java/4644 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/portinglab/fabricloader/loader/impl/util/version/SemanticVersionImpl.java
// ... | {
"prefix": "/*\n * Copyright 2016 FabricMC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by appli... | return getFriendlyString().compareTo(o.getFriendlyString()); | {} | {
"repository": "PortingLab-ForgedLoaderAPI-610f27f",
"file": "src/main/java/org/portinglab/fabricloader/loader/impl/util/version/StringVersion.java",
"task_id": "project_cc_java/4644"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/portinglab/fabricloader/loader/impl/util/version/StringVersion.java",
"groundtruth_start_lineno": 43,
"repository": "PortingLab-ForgedLoaderAPI-610f27f",
"right_context_start_lineno": 44,
"task_id": "project_cc_java/4644"
... |
cross_code_eval_java::project_cc_java/4653 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/portinglab/fabricloader/loader/impl/metadata/ModMetadataImpl.java
// }
// @Ov... | {
"prefix": "/*\n * Copyright 2016 FabricMC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by appli... | mod.getMetadata().getId() + "->" + value; | {} | {
"repository": "PortingLab-ForgedLoaderAPI-610f27f",
"file": "src/main/java/org/portinglab/fabricloader/loader/impl/entrypoint/EntrypointStorage.java",
"task_id": "project_cc_java/4653"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/portinglab/fabricloader/loader/impl/entrypoint/EntrypointStorage.java",
"groundtruth_start_lineno": 50,
"repository": "PortingLab-ForgedLoaderAPI-610f27f",
"right_context_start_lineno": 51,
"task_id": "project_cc_java/4653"
... |
cross_code_eval_java::project_cc_java/4528 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// sdk/hibernate-encryption/src/main/java/com/piiano/vault/orm/encryption/TransformationInterceptor.java
/... | {
"prefix": "package com.piiano.vault.orm.encryption;\n\nimport com.piiano.vault.client.openapi.model.EncryptionType;\nimport org.hibernate.HibernateException;\nimport org.hibernate.engine.spi.SharedSessionContractImplementor;\nimport org.hibernate.usertype.DynamicParameterizedType;\nimport org.hibernate.usertype.Use... | if (encryptor.isEncrypted(value)) { | {} | {
"repository": "piiano-vault-java-8a95eec",
"file": "sdk/hibernate-encryption/src/main/java/com/piiano/vault/orm/encryption/Encrypted.java",
"task_id": "project_cc_java/4528"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "sdk/hibernate-encryption/src/main/java/com/piiano/vault/orm/encryption/Encrypted.java",
"groundtruth_start_lineno": 93,
"repository": "piiano-vault-java-8a95eec",
"right_context_start_lineno": 94,
"task_id": "project_cc_java/4528"
}
} |
cross_code_eval_java::project_cc_java/4657 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/portinglab/fabricloader/loader/api/Version.java
// * @param string the string no... | {
"prefix": "/*\n * Copyright 2016 FabricMC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by appli... | return VersionParser.parseSemantic(s); | {} | {
"repository": "PortingLab-ForgedLoaderAPI-610f27f",
"file": "src/main/java/org/portinglab/fabricloader/loader/api/SemanticVersion.java",
"task_id": "project_cc_java/4657"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/portinglab/fabricloader/loader/api/SemanticVersion.java",
"groundtruth_start_lineno": 104,
"repository": "PortingLab-ForgedLoaderAPI-610f27f",
"right_context_start_lineno": 105,
"task_id": "project_cc_java/4657"
}
} |
cross_code_eval_java::project_cc_java/4670 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/portinglab/fabricloader/loader/impl/util/version/StringVersion.java
// return... | {
"prefix": "/*\n * Copyright 2016 FabricMC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by appli... | return o.hasWildcard() ? 0 : -1; | {} | {
"repository": "PortingLab-ForgedLoaderAPI-610f27f",
"file": "src/main/java/org/portinglab/fabricloader/loader/impl/util/version/SemanticVersionImpl.java",
"task_id": "project_cc_java/4670"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/portinglab/fabricloader/loader/impl/util/version/SemanticVersionImpl.java",
"groundtruth_start_lineno": 306,
"repository": "PortingLab-ForgedLoaderAPI-610f27f",
"right_context_start_lineno": 307,
"task_id": "project_cc_java/... |
cross_code_eval_java::project_cc_java/4640 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// reflow-decompiler/src/main/java/com/github/polyrocketmatt/reflow/decompiler/ReflowJarHandler.java
// ... | {
"prefix": "package com.github.polyrocketmatt.reflow.decompiler.struct;\n\nimport com.github.polyrocketmatt.reflow.decompiler.wrapper.EntityWrapper;\n\nimport java.util.ArrayList;\nimport java.util.HashMap;\nimport java.util.List;\nimport java.util.concurrent.ExecutorService;\nimport java.util.concurrent.Executors;\... | String name = wrapper.getName(); | {} | {
"repository": "PolyRocketMatt-Reflow-8aee734",
"file": "reflow-decompiler/src/main/java/com/github/polyrocketmatt/reflow/decompiler/struct/EntityStructure.java",
"task_id": "project_cc_java/4640"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "reflow-decompiler/src/main/java/com/github/polyrocketmatt/reflow/decompiler/struct/EntityStructure.java",
"groundtruth_start_lineno": 61,
"repository": "PolyRocketMatt-Reflow-8aee734",
"right_context_start_lineno": 62,
"task_id": "project_cc_... |
cross_code_eval_java::project_cc_java/4651 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/portinglab/fabricloader/loader/api/SemanticVersion.java
// * @throws VersionPars... | {
"prefix": "/*\n * Copyright 2016 FabricMC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by appli... | return VersionParser.parse(string, false); | {} | {
"repository": "PortingLab-ForgedLoaderAPI-610f27f",
"file": "src/main/java/org/portinglab/fabricloader/loader/api/Version.java",
"task_id": "project_cc_java/4651"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/portinglab/fabricloader/loader/api/Version.java",
"groundtruth_start_lineno": 39,
"repository": "PortingLab-ForgedLoaderAPI-610f27f",
"right_context_start_lineno": 40,
"task_id": "project_cc_java/4651"
}
} |
cross_code_eval_java::project_cc_java/4652 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/portinglab/fabricloader/loader/impl/entrypoint/EntrypointStorage.java
// ... | {
"prefix": "/*\n * Copyright 2016 FabricMC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by appli... | ().getMetadata().getId(), ex); | {} | {
"repository": "PortingLab-ForgedLoaderAPI-610f27f",
"file": "src/main/java/org/portinglab/fabricloader/loader/impl/entrypoint/EntrypointContainerImpl.java",
"task_id": "project_cc_java/4652"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/portinglab/fabricloader/loader/impl/entrypoint/EntrypointContainerImpl.java",
"groundtruth_start_lineno": 55,
"repository": "PortingLab-ForgedLoaderAPI-610f27f",
"right_context_start_lineno": 56,
"task_id": "project_cc_java/... |
cross_code_eval_java::project_cc_java/4655 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/portinglab/fabricloader/loader/impl/entrypoint/EntrypointContainerImpl.java
// ... | {
"prefix": "/*\n * Copyright 2016 FabricMC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by appli... | exception = new EntrypointException(key, entry.getModContainer().getMetadata().getId(), t); | {} | {
"repository": "PortingLab-ForgedLoaderAPI-610f27f",
"file": "src/main/java/org/portinglab/fabricloader/loader/impl/entrypoint/EntrypointStorage.java",
"task_id": "project_cc_java/4655"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/portinglab/fabricloader/loader/impl/entrypoint/EntrypointStorage.java",
"groundtruth_start_lineno": 143,
"repository": "PortingLab-ForgedLoaderAPI-610f27f",
"right_context_start_lineno": 144,
"task_id": "project_cc_java/4655... |
cross_code_eval_java::project_cc_java/4664 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/portinglab/fabricloader/loader/impl/entrypoint/EntrypointStorage.java
// }
//... | {
"prefix": "/*\n * Copyright 2016 FabricMC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by appli... | (ForgePatch.getGameDir()); | {} | {
"repository": "PortingLab-ForgedLoaderAPI-610f27f",
"file": "src/main/java/org/portinglab/fabricloader/loader/impl/FabricLoaderImpl.java",
"task_id": "project_cc_java/4664"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/portinglab/fabricloader/loader/impl/FabricLoaderImpl.java",
"groundtruth_start_lineno": 52,
"repository": "PortingLab-ForgedLoaderAPI-610f27f",
"right_context_start_lineno": 53,
"task_id": "project_cc_java/4664"
}
} |
cross_code_eval_java::project_cc_java/4627 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/example/dao/imp/BotUserDAOImp.java
// @Override
// public void update(BotUser... | {
"prefix": "package org.example.service.imp;\n\nimport jakarta.transaction.Transactional;\nimport org.example.dao.BotUserDAO;\nimport org.example.dao.imp.BotUserDAOImp;\nimport org.example.entity.BotUser;\nimport org.example.service.BotUserService;\n\nimport java.util.List;\n\n@Transactional\npublic class BotUserSer... | userDAO.getById(id); | {} | {
"repository": "polesmih-BuisnessDocumentForms_bot-6fa1315",
"file": "src/main/java/org/example/service/imp/BotUserServiceImp.java",
"task_id": "project_cc_java/4627"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/example/service/imp/BotUserServiceImp.java",
"groundtruth_start_lineno": 37,
"repository": "polesmih-BuisnessDocumentForms_bot-6fa1315",
"right_context_start_lineno": 38,
"task_id": "project_cc_java/4627"
}
} |
cross_code_eval_java::project_cc_java/4646 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/portinglab/fabricloader/loader/impl/util/version/SemanticVersionImpl.java
// ... | {
"prefix": "/*\n * Copyright 2016 FabricMC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by appli... | parent.getVersionComponentCount(); | {} | {
"repository": "PortingLab-ForgedLoaderAPI-610f27f",
"file": "src/main/java/org/portinglab/fabricloader/legacyloader/util/version/SemanticVersionImpl.java",
"task_id": "project_cc_java/4646"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/portinglab/fabricloader/legacyloader/util/version/SemanticVersionImpl.java",
"groundtruth_start_lineno": 40,
"repository": "PortingLab-ForgedLoaderAPI-610f27f",
"right_context_start_lineno": 41,
"task_id": "project_cc_java/4... |
cross_code_eval_java::project_cc_java/4630 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/example/service/BotUserService.java
// List<BotUser> findByName(String name);
// ... | {
"prefix": "package org.example.service.imp;\n\nimport jakarta.transaction.Transactional;\nimport org.example.dao.BotUserDAO;\nimport org.example.dao.imp.BotUserDAOImp;\nimport org.example.entity.BotUser;\nimport org.example.service.BotUserService;\n\nimport java.util.List;\n\n@Transactional\npublic class BotUserSer... | userDAO.getCount(); | {} | {
"repository": "polesmih-BuisnessDocumentForms_bot-6fa1315",
"file": "src/main/java/org/example/service/imp/BotUserServiceImp.java",
"task_id": "project_cc_java/4630"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/example/service/imp/BotUserServiceImp.java",
"groundtruth_start_lineno": 67,
"repository": "polesmih-BuisnessDocumentForms_bot-6fa1315",
"right_context_start_lineno": 68,
"task_id": "project_cc_java/4630"
}
} |
cross_code_eval_java::project_cc_java/4645 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/portinglab/fabricloader/loader/impl/util/version/SemanticVersionImpl.java
// priv... | {
"prefix": "/*\n * Copyright 2016 FabricMC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by appli... | parent = SemanticVersion.parse(version); | {} | {
"repository": "PortingLab-ForgedLoaderAPI-610f27f",
"file": "src/main/java/org/portinglab/fabricloader/legacyloader/util/version/SemanticVersionImpl.java",
"task_id": "project_cc_java/4645"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/portinglab/fabricloader/legacyloader/util/version/SemanticVersionImpl.java",
"groundtruth_start_lineno": 35,
"repository": "PortingLab-ForgedLoaderAPI-610f27f",
"right_context_start_lineno": 36,
"task_id": "project_cc_java/4... |
cross_code_eval_java::project_cc_java/4629 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/example/dao/imp/BotUserDAOImp.java
// deleteAllEntity(new BotUser());
// ... | {
"prefix": "package org.example.service.imp;\n\nimport jakarta.transaction.Transactional;\nimport org.example.dao.BotUserDAO;\nimport org.example.dao.imp.BotUserDAOImp;\nimport org.example.entity.BotUser;\nimport org.example.service.BotUserService;\n\nimport java.util.List;\n\n@Transactional\npublic class BotUserSer... | userDAO.getByName(name); | {} | {
"repository": "polesmih-BuisnessDocumentForms_bot-6fa1315",
"file": "src/main/java/org/example/service/imp/BotUserServiceImp.java",
"task_id": "project_cc_java/4629"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/example/service/imp/BotUserServiceImp.java",
"groundtruth_start_lineno": 62,
"repository": "polesmih-BuisnessDocumentForms_bot-6fa1315",
"right_context_start_lineno": 63,
"task_id": "project_cc_java/4629"
}
} |
cross_code_eval_java::project_cc_java/4634 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/example/bot/Bot.java
// ex.printStackTrace();
// }
// }
// }
... | {
"prefix": "package org.example.service.imp;\n\nimport org.example.dao.DocumentDAO;\nimport org.example.dao.imp.DocumentDAOImp;\nimport org.example.entity.DocumentInfo;\nimport org.example.service.DocumentService;\n\nimport java.io.IOException;\nimport java.nio.file.Files;\nimport java.nio.file.Path;\nimport java.ut... | documentDAO.getCount(); | {} | {
"repository": "polesmih-BuisnessDocumentForms_bot-6fa1315",
"file": "src/main/java/org/example/service/imp/DocumentServiceImp.java",
"task_id": "project_cc_java/4634"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/example/service/imp/DocumentServiceImp.java",
"groundtruth_start_lineno": 59,
"repository": "polesmih-BuisnessDocumentForms_bot-6fa1315",
"right_context_start_lineno": 60,
"task_id": "project_cc_java/4634"
}
} |
cross_code_eval_java::project_cc_java/4654 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/portinglab/fabricloader/loader/impl/entrypoint/EntrypointContainerImpl.java
// ... | {
"prefix": "/*\n * Copyright 2016 FabricMC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by appli... | return mod.getMetadata().getId() + "->(0.3.x)" + value; | {} | {
"repository": "PortingLab-ForgedLoaderAPI-610f27f",
"file": "src/main/java/org/portinglab/fabricloader/loader/impl/entrypoint/EntrypointStorage.java",
"task_id": "project_cc_java/4654"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/portinglab/fabricloader/loader/impl/entrypoint/EntrypointStorage.java",
"groundtruth_start_lineno": 87,
"repository": "PortingLab-ForgedLoaderAPI-610f27f",
"right_context_start_lineno": 88,
"task_id": "project_cc_java/4654"
... |
cross_code_eval_java::project_cc_java/4701 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/me/panxin/plugin/idea/jumpcontroller/util/JavaSourceFileUtil.java
// ... | {
"prefix": "package me.panxin.plugin.idea.jumpcontroller.action;\n\nimport com.intellij.openapi.actionSystem.AnAction;\nimport com.intellij.openapi.actionSystem.AnActionEvent;\nimport com.intellij.openapi.editor.Editor;\nimport com.intellij.openapi.editor.ScrollType;\nimport com.intellij.psi.PsiClass;\nimport com.in... | controllerInfo.getMethod(); | {} | {
"repository": "pxpy-jump-to-controller-927384c",
"file": "src/main/java/me/panxin/plugin/idea/jumpcontroller/action/SearchControllerAction.java",
"task_id": "project_cc_java/4701"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/me/panxin/plugin/idea/jumpcontroller/action/SearchControllerAction.java",
"groundtruth_start_lineno": 157,
"repository": "pxpy-jump-to-controller-927384c",
"right_context_start_lineno": 158,
"task_id": "project_cc_java/4701"
}... |
cross_code_eval_java::project_cc_java/4702 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/me/panxin/plugin/idea/jumpcontroller/util/JavaSourceFileUtil.java
// ControllerIn... | {
"prefix": "package me.panxin.plugin.idea.jumpcontroller.action;\n\nimport com.intellij.openapi.actionSystem.AnAction;\nimport com.intellij.openapi.actionSystem.AnActionEvent;\nimport com.intellij.openapi.editor.Editor;\nimport com.intellij.openapi.editor.ScrollType;\nimport com.intellij.psi.PsiClass;\nimport com.in... | if(controllerInfo.getRequestMethod().toLowerCase().contains(lowerCase)){ | {} | {
"repository": "pxpy-jump-to-controller-927384c",
"file": "src/main/java/me/panxin/plugin/idea/jumpcontroller/action/SearchControllerAction.java",
"task_id": "project_cc_java/4702"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/me/panxin/plugin/idea/jumpcontroller/action/SearchControllerAction.java",
"groundtruth_start_lineno": 172,
"repository": "pxpy-jump-to-controller-927384c",
"right_context_start_lineno": 173,
"task_id": "project_cc_java/4702"
}... |
cross_code_eval_java::project_cc_java/4703 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/me/panxin/plugin/idea/jumpcontroller/util/JavaSourceFileUtil.java
// ControllerIn... | {
"prefix": "package me.panxin.plugin.idea.jumpcontroller.action;\n\nimport com.intellij.openapi.actionSystem.AnAction;\nimport com.intellij.openapi.actionSystem.AnActionEvent;\nimport com.intellij.openapi.editor.Editor;\nimport com.intellij.openapi.editor.ScrollType;\nimport com.intellij.psi.PsiClass;\nimport com.in... | if(controllerInfo.getPath().toLowerCase().contains(lowerCase)){ | {} | {
"repository": "pxpy-jump-to-controller-927384c",
"file": "src/main/java/me/panxin/plugin/idea/jumpcontroller/action/SearchControllerAction.java",
"task_id": "project_cc_java/4703"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/me/panxin/plugin/idea/jumpcontroller/action/SearchControllerAction.java",
"groundtruth_start_lineno": 175,
"repository": "pxpy-jump-to-controller-927384c",
"right_context_start_lineno": 176,
"task_id": "project_cc_java/4703"
}... |
cross_code_eval_java::project_cc_java/4705 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/me/panxin/plugin/idea/jumpcontroller/util/JavaSourceFileUtil.java
// ControllerIn... | {
"prefix": "package me.panxin.plugin.idea.jumpcontroller.action;\n\nimport com.intellij.openapi.actionSystem.AnAction;\nimport com.intellij.openapi.actionSystem.AnActionEvent;\nimport com.intellij.openapi.editor.Editor;\nimport com.intellij.openapi.editor.ScrollType;\nimport com.intellij.psi.PsiClass;\nimport com.in... | getSwaggerInfo() != null && controllerInfo.getSwaggerInfo().toLowerCase().contains(lowerCase)){ | {} | {
"repository": "pxpy-jump-to-controller-927384c",
"file": "src/main/java/me/panxin/plugin/idea/jumpcontroller/action/SearchControllerAction.java",
"task_id": "project_cc_java/4705"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/me/panxin/plugin/idea/jumpcontroller/action/SearchControllerAction.java",
"groundtruth_start_lineno": 178,
"repository": "pxpy-jump-to-controller-927384c",
"right_context_start_lineno": 179,
"task_id": "project_cc_java/4705"
}... |
cross_code_eval_java::project_cc_java/4707 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/me/panxin/plugin/idea/jumpcontroller/util/JavaSourceFileUtil.java
// ... | {
"prefix": "package me.panxin.plugin.idea.jumpcontroller.action;\n\nimport com.intellij.openapi.actionSystem.AnAction;\nimport com.intellij.openapi.actionSystem.AnActionEvent;\nimport com.intellij.openapi.editor.Editor;\nimport com.intellij.openapi.editor.ScrollType;\nimport com.intellij.psi.PsiClass;\nimport com.in... | () != null && controllerInfo.getSwaggerNotes().toLowerCase().contains(lowerCase)){ | {} | {
"repository": "pxpy-jump-to-controller-927384c",
"file": "src/main/java/me/panxin/plugin/idea/jumpcontroller/action/SearchControllerAction.java",
"task_id": "project_cc_java/4707"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/me/panxin/plugin/idea/jumpcontroller/action/SearchControllerAction.java",
"groundtruth_start_lineno": 181,
"repository": "pxpy-jump-to-controller-927384c",
"right_context_start_lineno": 182,
"task_id": "project_cc_java/4707"
}... |
cross_code_eval_java::project_cc_java/4706 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/me/panxin/plugin/idea/jumpcontroller/util/JavaSourceFileUtil.java
// ... | {
"prefix": "package me.panxin.plugin.idea.jumpcontroller.action;\n\nimport com.intellij.openapi.actionSystem.AnAction;\nimport com.intellij.openapi.actionSystem.AnActionEvent;\nimport com.intellij.openapi.editor.Editor;\nimport com.intellij.openapi.editor.ScrollType;\nimport com.intellij.psi.PsiClass;\nimport com.in... | controllerInfo.getSwaggerNotes() != null && controllerInfo.getSwaggerNotes().toLowerCase().contains(lowerCase)){ | {} | {
"repository": "pxpy-jump-to-controller-927384c",
"file": "src/main/java/me/panxin/plugin/idea/jumpcontroller/action/SearchControllerAction.java",
"task_id": "project_cc_java/4706"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/me/panxin/plugin/idea/jumpcontroller/action/SearchControllerAction.java",
"groundtruth_start_lineno": 181,
"repository": "pxpy-jump-to-controller-927384c",
"right_context_start_lineno": 182,
"task_id": "project_cc_java/4706"
}... |
cross_code_eval_java::project_cc_java/4700 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/me/panxin/plugin/idea/jumpcontroller/util/JavaSourceFileUtil.java
// ... | {
"prefix": "package me.panxin.plugin.idea.jumpcontroller.action;\n\nimport com.intellij.openapi.actionSystem.AnAction;\nimport com.intellij.openapi.actionSystem.AnActionEvent;\nimport com.intellij.openapi.editor.Editor;\nimport com.intellij.openapi.editor.ScrollType;\nimport com.intellij.psi.PsiClass;\nimport com.in... | = controllerInfo.getMethod().getContainingFile(); | {} | {
"repository": "pxpy-jump-to-controller-927384c",
"file": "src/main/java/me/panxin/plugin/idea/jumpcontroller/action/SearchControllerAction.java",
"task_id": "project_cc_java/4700"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/me/panxin/plugin/idea/jumpcontroller/action/SearchControllerAction.java",
"groundtruth_start_lineno": 149,
"repository": "pxpy-jump-to-controller-927384c",
"right_context_start_lineno": 150,
"task_id": "project_cc_java/4700"
}... |
cross_code_eval_java::project_cc_java/4710 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/me/panxin/plugin/idea/jumpcontroller/util/JavaSourceFileUtil.java
// // 遍历 Co... | {
"prefix": "package me.panxin.plugin.idea.jumpcontroller.provider;\n\nimport com.intellij.codeInsight.daemon.RelatedItemLineMarkerInfo;\nimport com.intellij.codeInsight.daemon.RelatedItemLineMarkerProvider;\nimport com.intellij.codeInsight.navigation.NavigationGutterIconBuilder;\nimport com.intellij.openapi.editor.m... | (feignInfo.getMethod()); | {} | {
"repository": "pxpy-jump-to-controller-927384c",
"file": "src/main/java/me/panxin/plugin/idea/jumpcontroller/provider/Controller2FeignLineMarkerProvider.java",
"task_id": "project_cc_java/4710"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/me/panxin/plugin/idea/jumpcontroller/provider/Controller2FeignLineMarkerProvider.java",
"groundtruth_start_lineno": 63,
"repository": "pxpy-jump-to-controller-927384c",
"right_context_start_lineno": 64,
"task_id": "project_cc_ja... |
cross_code_eval_java::project_cc_java/4704 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/me/panxin/plugin/idea/jumpcontroller/util/JavaSourceFileUtil.java
// ControllerIn... | {
"prefix": "package me.panxin.plugin.idea.jumpcontroller.action;\n\nimport com.intellij.openapi.actionSystem.AnAction;\nimport com.intellij.openapi.actionSystem.AnActionEvent;\nimport com.intellij.openapi.editor.Editor;\nimport com.intellij.openapi.editor.ScrollType;\nimport com.intellij.psi.PsiClass;\nimport com.in... | if(controllerInfo.getSwaggerInfo() != null && controllerInfo.getSwaggerInfo().toLowerCase().contains(lowerCase)){ | {} | {
"repository": "pxpy-jump-to-controller-927384c",
"file": "src/main/java/me/panxin/plugin/idea/jumpcontroller/action/SearchControllerAction.java",
"task_id": "project_cc_java/4704"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/me/panxin/plugin/idea/jumpcontroller/action/SearchControllerAction.java",
"groundtruth_start_lineno": 178,
"repository": "pxpy-jump-to-controller-927384c",
"right_context_start_lineno": 179,
"task_id": "project_cc_java/4704"
}... |
cross_code_eval_java::project_cc_java/4676 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// core/src/main/java/net/byteflux/libby/LibraryManager.java
// if (Files.exists(file)) {
// ... | {
"prefix": "/*\n * This file is part of Libby, licensed under the MIT License.\n *\n * Copyright (c) 2019-2023 Matthew Harris\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software wi... | relocation.getPattern(),
relocation.getRelocatedPattern(),
relocation.getIncludes(),
relocation.getExcludes()
)); | {} | {
"repository": "powercasgamer-libby-c9b0491",
"file": "core/src/main/java/net/byteflux/libby/relocation/RelocationHelper.java",
"task_id": "project_cc_java/4676"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "core/src/main/java/net/byteflux/libby/relocation/RelocationHelper.java",
"groundtruth_start_lineno": 140,
"repository": "powercasgamer-libby-c9b0491",
"right_context_start_lineno": 145,
"task_id": "project_cc_java/4676"
}
} |
cross_code_eval_java::project_cc_java/4678 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// core/src/main/java/net/byteflux/libby/LibraryManager.java
// if (Files.exists(file)) {
// ... | {
"prefix": "/*\n * This file is part of Libby, licensed under the MIT License.\n *\n * Copyright (c) 2019-2023 Matthew Harris\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software wi... | relocation.getIncludes(),
relocation.getExcludes()
)); | {} | {
"repository": "powercasgamer-libby-c9b0491",
"file": "core/src/main/java/net/byteflux/libby/relocation/RelocationHelper.java",
"task_id": "project_cc_java/4678"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "core/src/main/java/net/byteflux/libby/relocation/RelocationHelper.java",
"groundtruth_start_lineno": 142,
"repository": "powercasgamer-libby-c9b0491",
"right_context_start_lineno": 145,
"task_id": "project_cc_java/4678"
}
} |
cross_code_eval_java::project_cc_java/4677 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// core/src/main/java/net/byteflux/libby/LibraryManager.java
// if (Files.exists(file)) {
// ... | {
"prefix": "/*\n * This file is part of Libby, licensed under the MIT License.\n *\n * Copyright (c) 2019-2023 Matthew Harris\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software wi... | relocation.getRelocatedPattern(),
relocation.getIncludes(),
relocation.getExcludes()
)); | {} | {
"repository": "powercasgamer-libby-c9b0491",
"file": "core/src/main/java/net/byteflux/libby/relocation/RelocationHelper.java",
"task_id": "project_cc_java/4677"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "core/src/main/java/net/byteflux/libby/relocation/RelocationHelper.java",
"groundtruth_start_lineno": 141,
"repository": "powercasgamer-libby-c9b0491",
"right_context_start_lineno": 145,
"task_id": "project_cc_java/4677"
}
} |
cross_code_eval_java::project_cc_java/4713 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/ap/spotify/client/HelloApplication.java
// System.out.println("Unable to ... | {
"prefix": "package com.ap.spotify.server;\n\nimport java.io.IOException;\nimport java.net.ServerSocket;\nimport java.net.Socket;\nimport java.sql.SQLException;\nimport java.util.ArrayList;\n\npublic class Server {\n private int portNumber;\n private ServerSocket serverSocket;\n private Database database;\n... | database.getConnection().close(); | {} | {
"repository": "PyAlaie-spotify-408f7ba",
"file": "src/main/java/com/ap/spotify/server/Server.java",
"task_id": "project_cc_java/4713"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/ap/spotify/server/Server.java",
"groundtruth_start_lineno": 46,
"repository": "PyAlaie-spotify-408f7ba",
"right_context_start_lineno": 47,
"task_id": "project_cc_java/4713"
}
} |
cross_code_eval_java::project_cc_java/4721 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/ap/spotify/shared/crudFiles/CrudArtist.java
// }
// public Artist getArtistBy... | {
"prefix": "package com.ap.spotify.shared.crudFiles;\n\nimport com.ap.spotify.server.Database;\nimport com.ap.spotify.shared.models.Genre;\nimport com.ap.spotify.shared.models.User;\n\nimport java.sql.PreparedStatement;\nimport java.sql.ResultSet;\nimport java.sql.SQLException;\nimport java.sql.Types;\nimport java.u... | genre.setTitle(resultSet.getString("title")); | {} | {
"repository": "PyAlaie-spotify-408f7ba",
"file": "src/main/java/com/ap/spotify/shared/crudFiles/CrudGenre.java",
"task_id": "project_cc_java/4721"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/ap/spotify/shared/crudFiles/CrudGenre.java",
"groundtruth_start_lineno": 52,
"repository": "PyAlaie-spotify-408f7ba",
"right_context_start_lineno": 53,
"task_id": "project_cc_java/4721"
}
} |
cross_code_eval_java::project_cc_java/4723 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/ap/spotify/shared/crudFiles/CrudUser.java
// user.setProfilePicPath(resultSet... | {
"prefix": "package com.ap.spotify.shared.crudFiles;\n\nimport com.ap.spotify.server.Database;\nimport com.ap.spotify.shared.models.Genre;\nimport com.ap.spotify.shared.models.User;\n\nimport java.sql.PreparedStatement;\nimport java.sql.ResultSet;\nimport java.sql.SQLException;\nimport java.sql.Types;\nimport java.u... | genre.setId(resultSet.getInt("id")); | {} | {
"repository": "PyAlaie-spotify-408f7ba",
"file": "src/main/java/com/ap/spotify/shared/crudFiles/CrudGenre.java",
"task_id": "project_cc_java/4723"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/ap/spotify/shared/crudFiles/CrudGenre.java",
"groundtruth_start_lineno": 54,
"repository": "PyAlaie-spotify-408f7ba",
"right_context_start_lineno": 55,
"task_id": "project_cc_java/4723"
}
} |
cross_code_eval_java::project_cc_java/4732 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/ap/spotify/shared/crudFiles/CrudMusic.java
// music.setTitle(res.getStrin... | {
"prefix": "package com.ap.spotify.shared.crudFiles;\n\nimport com.ap.spotify.server.Database;\nimport com.ap.spotify.shared.models.Comment;\nimport com.ap.spotify.shared.models.Music;\n\nimport javax.xml.transform.Result;\nimport java.sql.PreparedStatement;\nimport java.sql.ResultSet;\nimport java.sql.SQLException;... | comment.setText(res.getString("text")); | {} | {
"repository": "PyAlaie-spotify-408f7ba",
"file": "src/main/java/com/ap/spotify/shared/crudFiles/CrudComment.java",
"task_id": "project_cc_java/4732"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/ap/spotify/shared/crudFiles/CrudComment.java",
"groundtruth_start_lineno": 42,
"repository": "PyAlaie-spotify-408f7ba",
"right_context_start_lineno": 43,
"task_id": "project_cc_java/4732"
}
} |
cross_code_eval_java::project_cc_java/4735 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/ap/spotify/shared/crudFiles/CrudArtist.java
// music.setCoverPicPath(res.... | {
"prefix": "package com.ap.spotify.shared.crudFiles;\n\nimport com.ap.spotify.server.Database;\nimport com.ap.spotify.shared.models.Comment;\nimport com.ap.spotify.shared.models.Music;\n\nimport javax.xml.transform.Result;\nimport java.sql.PreparedStatement;\nimport java.sql.ResultSet;\nimport java.sql.SQLException;... | comment.setId(res.getInt("id")); | {} | {
"repository": "PyAlaie-spotify-408f7ba",
"file": "src/main/java/com/ap/spotify/shared/crudFiles/CrudComment.java",
"task_id": "project_cc_java/4735"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/ap/spotify/shared/crudFiles/CrudComment.java",
"groundtruth_start_lineno": 45,
"repository": "PyAlaie-spotify-408f7ba",
"right_context_start_lineno": 46,
"task_id": "project_cc_java/4735"
}
} |
cross_code_eval_java::project_cc_java/4806 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/ap/spotify/shared/crudFiles/CrudArtist.java
// album.setPopularity(res.ge... | {
"prefix": "package com.ap.spotify.shared.crudFiles;\n\nimport com.ap.spotify.server.Database;\nimport com.ap.spotify.shared.models.Music;\nimport com.ap.spotify.shared.models.Playlist;\n\nimport java.sql.PreparedStatement;\nimport java.sql.ResultSet;\nimport java.sql.SQLException;\nimport java.util.ArrayList;\nimpo... | playlist.setUser(res.getInt("user")); | {} | {
"repository": "PyAlaie-spotify-408f7ba",
"file": "src/main/java/com/ap/spotify/shared/crudFiles/CrudPlaylist.java",
"task_id": "project_cc_java/4806"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/ap/spotify/shared/crudFiles/CrudPlaylist.java",
"groundtruth_start_lineno": 45,
"repository": "PyAlaie-spotify-408f7ba",
"right_context_start_lineno": 46,
"task_id": "project_cc_java/4806"
}
} |
cross_code_eval_java::project_cc_java/4808 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/ap/spotify/shared/crudFiles/CrudArtist.java
// music.setCoverPicPath(res.... | {
"prefix": "package com.ap.spotify.shared.crudFiles;\n\nimport com.ap.spotify.server.Database;\nimport com.ap.spotify.shared.models.Music;\nimport com.ap.spotify.shared.models.Playlist;\n\nimport java.sql.PreparedStatement;\nimport java.sql.ResultSet;\nimport java.sql.SQLException;\nimport java.util.ArrayList;\nimpo... | playlist.setPublic(res.getBoolean("is_public")); | {} | {
"repository": "PyAlaie-spotify-408f7ba",
"file": "src/main/java/com/ap/spotify/shared/crudFiles/CrudPlaylist.java",
"task_id": "project_cc_java/4808"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/ap/spotify/shared/crudFiles/CrudPlaylist.java",
"groundtruth_start_lineno": 47,
"repository": "PyAlaie-spotify-408f7ba",
"right_context_start_lineno": 48,
"task_id": "project_cc_java/4808"
}
} |
cross_code_eval_java::project_cc_java/5000 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/ap/spotify/Test.java
// comment.setUser(3);
// Request request = new ... | {
"prefix": "package com.ap.spotify.server;\n\nimport com.ap.spotify.shared.Request;\nimport com.ap.spotify.shared.Response;\nimport com.ap.spotify.shared.crudFiles.*;\nimport com.ap.spotify.shared.models.*;\nimport com.google.gson.Gson;\nimport java.io.*;\nimport java.lang.reflect.Type;\nimport java.net.Socket;\nimp... | String json = request.getJson(); | {} | {
"repository": "PyAlaie-spotify-408f7ba",
"file": "src/main/java/com/ap/spotify/server/Session.java",
"task_id": "project_cc_java/5000"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/ap/spotify/server/Session.java",
"groundtruth_start_lineno": 100,
"repository": "PyAlaie-spotify-408f7ba",
"right_context_start_lineno": 101,
"task_id": "project_cc_java/5000"
}
} |
cross_code_eval_java::project_cc_java/4929 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/ap/spotify/shared/crudFiles/CrudPlaylist.java
// music.setGenre(res.getIn... | {
"prefix": "package com.ap.spotify.shared.crudFiles;\n\nimport com.ap.spotify.server.Database;\nimport com.ap.spotify.shared.models.Artist;\nimport com.ap.spotify.shared.models.Music;\n\nimport java.sql.PreparedStatement;\nimport java.sql.ResultSet;\nimport java.sql.SQLException;\nimport java.util.ArrayList;\nimport... | .setArtistObj(crudArtist.getArtistById(music.getArtist())); | {} | {
"repository": "PyAlaie-spotify-408f7ba",
"file": "src/main/java/com/ap/spotify/shared/crudFiles/CrudMusic.java",
"task_id": "project_cc_java/4929"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/ap/spotify/shared/crudFiles/CrudMusic.java",
"groundtruth_start_lineno": 58,
"repository": "PyAlaie-spotify-408f7ba",
"right_context_start_lineno": 59,
"task_id": "project_cc_java/4929"
}
} |
cross_code_eval_java::project_cc_java/5004 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/ap/spotify/shared/crudFiles/CrudMusic.java
// CrudUser crudUser = new CrudUse... | {
"prefix": "package com.ap.spotify.server;\n\nimport com.ap.spotify.shared.Request;\nimport com.ap.spotify.shared.Response;\nimport com.ap.spotify.shared.crudFiles.*;\nimport com.ap.spotify.shared.models.*;\nimport com.google.gson.Gson;\nimport java.io.*;\nimport java.lang.reflect.Type;\nimport java.net.Socket;\nimp... | response.setMessage("Username already exists!"); | {} | {
"repository": "PyAlaie-spotify-408f7ba",
"file": "src/main/java/com/ap/spotify/server/Session.java",
"task_id": "project_cc_java/5004"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/ap/spotify/server/Session.java",
"groundtruth_start_lineno": 109,
"repository": "PyAlaie-spotify-408f7ba",
"right_context_start_lineno": 110,
"task_id": "project_cc_java/5004"
}
} |
cross_code_eval_java::project_cc_java/4999 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/ap/spotify/client/HelloApplication.java
// System.out.println("Unable to ... | {
"prefix": "package com.ap.spotify.server;\n\nimport com.ap.spotify.shared.Request;\nimport com.ap.spotify.shared.Response;\nimport com.ap.spotify.shared.crudFiles.*;\nimport com.ap.spotify.shared.models.*;\nimport com.google.gson.Gson;\nimport java.io.*;\nimport java.lang.reflect.Type;\nimport java.net.Socket;\nimp... | String command = request.getCommand(); | {} | {
"repository": "PyAlaie-spotify-408f7ba",
"file": "src/main/java/com/ap/spotify/server/Session.java",
"task_id": "project_cc_java/4999"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/ap/spotify/server/Session.java",
"groundtruth_start_lineno": 66,
"repository": "PyAlaie-spotify-408f7ba",
"right_context_start_lineno": 67,
"task_id": "project_cc_java/4999"
}
} |
cross_code_eval_java::project_cc_java/5180 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/ua/realalpha/skript/operator/SubtractOperator.java
// return numberA.longValu... | {
"prefix": "package ua.realalpha.skript.operator;\n\nimport ua.realalpha.skript.token.Token;\n\npublic class AdditionalOperator implements Operator {\n\n @Override\n public String getName() {\n return \"+\";\n }\n\n @Override\n public int getPriority() {\n return 1;\n }\n\n @Overri... | a.getVariable()); | {} | {
"repository": "RealAlphaUA-Skript-a61d959",
"file": "src/main/java/ua/realalpha/skript/operator/AdditionalOperator.java",
"task_id": "project_cc_java/5180"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/ua/realalpha/skript/operator/AdditionalOperator.java",
"groundtruth_start_lineno": 35,
"repository": "RealAlphaUA-Skript-a61d959",
"right_context_start_lineno": 36,
"task_id": "project_cc_java/5180"
}
} |
cross_code_eval_java::project_cc_java/5163 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/rdelfino/apigateway/client/ApiGatewayClient.java
// .build();
// }
//... | {
"prefix": "package org.rdelfino.apigateway.client;\n\nimport com.fasterxml.jackson.databind.ObjectMapper;\nimport lombok.Builder;\nimport lombok.Getter;\nimport lombok.NonNull;\nimport org.reactivestreams.Publisher;\nimport org.reactivestreams.Subscriber;\nimport org.reactivestreams.Subscription;\nimport software.a... | (buffer.asInputStream())
.build()
); | {} | {
"repository": "rdelfino-simple-api-gateway-client-27b5fb2",
"file": "src/main/java/org/rdelfino/apigateway/client/ApiGatewayAsyncClient.java",
"task_id": "project_cc_java/5163"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/rdelfino/apigateway/client/ApiGatewayAsyncClient.java",
"groundtruth_start_lineno": 215,
"repository": "rdelfino-simple-api-gateway-client-27b5fb2",
"right_context_start_lineno": 218,
"task_id": "project_cc_java/5163"
}
} |
cross_code_eval_java::project_cc_java/5007 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/ap/spotify/shared/crudFiles/CrudUser.java
// }
// return resp... | {
"prefix": "package com.ap.spotify.server;\n\nimport com.ap.spotify.shared.Request;\nimport com.ap.spotify.shared.Response;\nimport com.ap.spotify.shared.crudFiles.*;\nimport com.ap.spotify.shared.models.*;\nimport com.google.gson.Gson;\nimport java.io.*;\nimport java.lang.reflect.Type;\nimport java.net.Socket;\nimp... | response.setStatusCode(201); | {} | {
"repository": "PyAlaie-spotify-408f7ba",
"file": "src/main/java/com/ap/spotify/server/Session.java",
"task_id": "project_cc_java/5007"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/ap/spotify/server/Session.java",
"groundtruth_start_lineno": 115,
"repository": "PyAlaie-spotify-408f7ba",
"right_context_start_lineno": 116,
"task_id": "project_cc_java/5007"
}
} |
cross_code_eval_java::project_cc_java/5178 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/ua/realalpha/skript/operator/SubtractOperator.java
// return numberA.longValu... | {
"prefix": "package ua.realalpha.skript.operator;\n\nimport ua.realalpha.skript.token.Token;\n\npublic class AdditionalOperator implements Operator {\n\n @Override\n public String getName() {\n return \"+\";\n }\n\n @Override\n public int getPriority() {\n return 1;\n }\n\n @Overri... | a.isString() && b.isString()) { | {} | {
"repository": "RealAlphaUA-Skript-a61d959",
"file": "src/main/java/ua/realalpha/skript/operator/AdditionalOperator.java",
"task_id": "project_cc_java/5178"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/ua/realalpha/skript/operator/AdditionalOperator.java",
"groundtruth_start_lineno": 34,
"repository": "RealAlphaUA-Skript-a61d959",
"right_context_start_lineno": 35,
"task_id": "project_cc_java/5178"
}
} |
cross_code_eval_java::project_cc_java/5019 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/ap/spotify/shared/crudFiles/CrudMusic.java
// CrudUser crudUser = new CrudUse... | {
"prefix": "package com.ap.spotify.server;\n\nimport com.ap.spotify.shared.Request;\nimport com.ap.spotify.shared.Response;\nimport com.ap.spotify.shared.crudFiles.*;\nimport com.ap.spotify.shared.models.*;\nimport com.google.gson.Gson;\nimport java.io.*;\nimport java.lang.reflect.Type;\nimport java.net.Socket;\nimp... | loggedInAccount = gson.fromJson(response.getJson(), Artist.class); | {} | {
"repository": "PyAlaie-spotify-408f7ba",
"file": "src/main/java/com/ap/spotify/server/Session.java",
"task_id": "project_cc_java/5019"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/ap/spotify/server/Session.java",
"groundtruth_start_lineno": 166,
"repository": "PyAlaie-spotify-408f7ba",
"right_context_start_lineno": 167,
"task_id": "project_cc_java/5019"
}
} |
cross_code_eval_java::project_cc_java/5179 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/ua/realalpha/skript/operator/SubtractOperator.java
// return numberA.longValu... | {
"prefix": "package ua.realalpha.skript.operator;\n\nimport ua.realalpha.skript.token.Token;\n\npublic class AdditionalOperator implements Operator {\n\n @Override\n public String getName() {\n return \"+\";\n }\n\n @Override\n public int getPriority() {\n return 1;\n }\n\n @Overri... | (a.isString() && b.isString()) { | {} | {
"repository": "RealAlphaUA-Skript-a61d959",
"file": "src/main/java/ua/realalpha/skript/operator/AdditionalOperator.java",
"task_id": "project_cc_java/5179"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/ua/realalpha/skript/operator/AdditionalOperator.java",
"groundtruth_start_lineno": 34,
"repository": "RealAlphaUA-Skript-a61d959",
"right_context_start_lineno": 35,
"task_id": "project_cc_java/5179"
}
} |
cross_code_eval_java::project_cc_java/5008 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/ap/spotify/shared/crudFiles/CrudUser.java
// }
// return resp... | {
"prefix": "package com.ap.spotify.server;\n\nimport com.ap.spotify.shared.Request;\nimport com.ap.spotify.shared.Response;\nimport com.ap.spotify.shared.crudFiles.*;\nimport com.ap.spotify.shared.models.*;\nimport com.google.gson.Gson;\nimport java.io.*;\nimport java.lang.reflect.Type;\nimport java.net.Socket;\nimp... | response.setMessage("Error while creating the user!"); | {} | {
"repository": "PyAlaie-spotify-408f7ba",
"file": "src/main/java/com/ap/spotify/server/Session.java",
"task_id": "project_cc_java/5008"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/ap/spotify/server/Session.java",
"groundtruth_start_lineno": 119,
"repository": "PyAlaie-spotify-408f7ba",
"right_context_start_lineno": 120,
"task_id": "project_cc_java/5008"
}
} |
cross_code_eval_java::project_cc_java/5185 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/ua/realalpha/skript/token/TokenMethod.java
// }
// public String getParameters() ... | {
"prefix": "package ua.realalpha.skript;\n\nimport jdk.nashorn.internal.ir.LoopNode;\nimport ua.realalpha.skript.method.Method;\nimport ua.realalpha.skript.operator.Operator;\nimport ua.realalpha.skript.token.TokenMethod;\nimport ua.realalpha.skript.token.TokenOperator;\nimport ua.realalpha.skript.token.Token;\nimpo... | [i] = new Token(tokenMethod.getMethod().process(a)); | {} | {
"repository": "RealAlphaUA-Skript-a61d959",
"file": "src/main/java/ua/realalpha/skript/Skript.java",
"task_id": "project_cc_java/5185"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/ua/realalpha/skript/Skript.java",
"groundtruth_start_lineno": 76,
"repository": "RealAlphaUA-Skript-a61d959",
"right_context_start_lineno": 77,
"task_id": "project_cc_java/5185"
}
} |
cross_code_eval_java::project_cc_java/5186 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/ua/realalpha/skript/token/TokenOperator.java
// return operator;
// }
// ... | {
"prefix": "package ua.realalpha.skript;\n\nimport jdk.nashorn.internal.ir.LoopNode;\nimport ua.realalpha.skript.method.Method;\nimport ua.realalpha.skript.operator.Operator;\nimport ua.realalpha.skript.token.TokenMethod;\nimport ua.realalpha.skript.token.TokenOperator;\nimport ua.realalpha.skript.token.Token;\nimpo... | ((TokenMethod) token).getMethod()); | {} | {
"repository": "RealAlphaUA-Skript-a61d959",
"file": "src/main/java/ua/realalpha/skript/Skript.java",
"task_id": "project_cc_java/5186"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/ua/realalpha/skript/Skript.java",
"groundtruth_start_lineno": 161,
"repository": "RealAlphaUA-Skript-a61d959",
"right_context_start_lineno": 162,
"task_id": "project_cc_java/5186"
}
} |
cross_code_eval_java::project_cc_java/5156 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/user/servlet/UserLogin.java
// //redirecting to the same page for invalid id passw... | {
"prefix": "package com.user.servlet;\n\nimport java.io.IOException;\n\nimport javax.servlet.ServletException;\nimport javax.servlet.annotation.WebServlet;\nimport javax.servlet.http.HttpServlet;\nimport javax.servlet.http.HttpServletRequest;\nimport javax.servlet.http.HttpServletResponse;\nimport javax.servlet.http... | .setAttribute("user_reg", teacher.getName()); | {} | {
"repository": "Rabby033-Online-Course-Management-System-4258105",
"file": "src/main/java/com/user/servlet/TeacherLogin.java",
"task_id": "project_cc_java/5156"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/user/servlet/TeacherLogin.java",
"groundtruth_start_lineno": 42,
"repository": "Rabby033-Online-Course-Management-System-4258105",
"right_context_start_lineno": 43,
"task_id": "project_cc_java/5156"
}
} |
cross_code_eval_java::project_cc_java/5030 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/ap/spotify/server/Session.java
// loggedInAccount = gson.fromJson... | {
"prefix": "package com.ap.spotify.client.controllers;\n\nimport com.ap.spotify.Test;\nimport com.ap.spotify.client.HelloApplication;\nimport com.ap.spotify.shared.Request;\nimport com.ap.spotify.shared.Response;\nimport com.ap.spotify.shared.models.Account;\nimport com.ap.spotify.shared.models.Artist;\nimport com.a... | (response.getStatusCode() == 200) { | {} | {
"repository": "PyAlaie-spotify-408f7ba",
"file": "src/main/java/com/ap/spotify/client/controllers/Login.java",
"task_id": "project_cc_java/5030"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/ap/spotify/client/controllers/Login.java",
"groundtruth_start_lineno": 52,
"repository": "PyAlaie-spotify-408f7ba",
"right_context_start_lineno": 53,
"task_id": "project_cc_java/5030"
}
} |
cross_code_eval_java::project_cc_java/5044 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/ap/spotify/client/controllers/AlbumEdit.java
// Response response = (Resp... | {
"prefix": "package com.ap.spotify.client.controllers;\n\nimport com.ap.spotify.shared.Request;\nimport com.ap.spotify.shared.Response;\nimport com.ap.spotify.shared.models.Album;\nimport com.ap.spotify.shared.models.Genre;\nimport com.google.gson.Gson;\nimport javafx.event.ActionEvent;\nimport javafx.fxml.FXML;\nim... | album.setReleaseDate(new java.sql.Date(new java.util.Date().getTime())); | {} | {
"repository": "PyAlaie-spotify-408f7ba",
"file": "src/main/java/com/ap/spotify/client/controllers/AlbumAdd.java",
"task_id": "project_cc_java/5044"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/ap/spotify/client/controllers/AlbumAdd.java",
"groundtruth_start_lineno": 61,
"repository": "PyAlaie-spotify-408f7ba",
"right_context_start_lineno": 62,
"task_id": "project_cc_java/5044"
}
} |
cross_code_eval_java::project_cc_java/5149 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/dao/UserDao.java
// ResultSet rs = ps.executeQuery();
// while (rs.next()) {
//... | {
"prefix": "package com.dao;\n\nimport java.sql.Connection;\nimport java.sql.PreparedStatement;\nimport java.sql.ResultSet;\n\nimport com.entity.Teacher;\nimport com.entity.User;\n\npublic class TeacherDao {\n\tprivate Connection conn;\n\t//constructor\n\tpublic TeacherDao (Connection conn) {\n\t\tsuper();\n\t\tthis... | u.setName(rs.getString(3)); | {} | {
"repository": "Rabby033-Online-Course-Management-System-4258105",
"file": "src/main/java/com/dao/TeacherDao.java",
"task_id": "project_cc_java/5149"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/dao/TeacherDao.java",
"groundtruth_start_lineno": 33,
"repository": "Rabby033-Online-Course-Management-System-4258105",
"right_context_start_lineno": 34,
"task_id": "project_cc_java/5149"
}
} |
cross_code_eval_java::project_cc_java/5052 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/ap/spotify/client/controllers/AlbumView.java
// Artist artist = new G... | {
"prefix": "package com.ap.spotify.client.controllers;\n\nimport com.ap.spotify.Test;\nimport com.ap.spotify.shared.Request;\nimport com.ap.spotify.shared.Response;\nimport com.ap.spotify.shared.models.Album;\nimport com.ap.spotify.shared.models.Genre;\nimport com.google.gson.Gson;\nimport javafx.fxml.FXML;\nimport ... | .setText(String.valueOf(album.getArtist())); | {} | {
"repository": "PyAlaie-spotify-408f7ba",
"file": "src/main/java/com/ap/spotify/client/controllers/AlbumEdit.java",
"task_id": "project_cc_java/5052"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/ap/spotify/client/controllers/AlbumEdit.java",
"groundtruth_start_lineno": 53,
"repository": "PyAlaie-spotify-408f7ba",
"right_context_start_lineno": 54,
"task_id": "project_cc_java/5052"
}
} |
cross_code_eval_java::project_cc_java/5146 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/dao/TeacherDao.java
// e.printStackTrace();
// }
// return u;
// }
// }
// t... | {
"prefix": "package com.dao;\n\nimport java.sql.Connection;\nimport java.sql.PreparedStatement;\nimport java.sql.ResultSet;\n\nimport com.entity.User;\n\npublic class UserDao {\n\n\tprivate Connection conn;\n\t//constructor\n\tpublic UserDao(Connection conn) {\n\t\tsuper();\n\t\tthis.conn = conn;\n\t}\n\t//method fo... | u.setPassword(rs.getString(4)); | {} | {
"repository": "Rabby033-Online-Course-Management-System-4258105",
"file": "src/main/java/com/dao/UserDao.java",
"task_id": "project_cc_java/5146"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/dao/UserDao.java",
"groundtruth_start_lineno": 58,
"repository": "Rabby033-Online-Course-Management-System-4258105",
"right_context_start_lineno": 59,
"task_id": "project_cc_java/5146"
}
} |
cross_code_eval_java::project_cc_java/5057 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/ap/spotify/client/controllers/MusicAdd.java
// throw new RuntimeException... | {
"prefix": "package com.ap.spotify.client.controllers;\n\nimport com.ap.spotify.Test;\nimport com.ap.spotify.shared.Request;\nimport com.ap.spotify.shared.Response;\nimport com.ap.spotify.shared.models.Album;\nimport com.ap.spotify.shared.models.Genre;\nimport com.google.gson.Gson;\nimport javafx.fxml.FXML;\nimport ... | genre.getId() == albumId){ | {} | {
"repository": "PyAlaie-spotify-408f7ba",
"file": "src/main/java/com/ap/spotify/client/controllers/AlbumEdit.java",
"task_id": "project_cc_java/5057"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/ap/spotify/client/controllers/AlbumEdit.java",
"groundtruth_start_lineno": 79,
"repository": "PyAlaie-spotify-408f7ba",
"right_context_start_lineno": 80,
"task_id": "project_cc_java/5057"
}
} |
cross_code_eval_java::project_cc_java/5147 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/dao/UserDao.java
// ResultSet rs = ps.executeQuery();
// while (rs.next()) {
//... | {
"prefix": "package com.dao;\n\nimport java.sql.Connection;\nimport java.sql.PreparedStatement;\nimport java.sql.ResultSet;\n\nimport com.entity.Teacher;\nimport com.entity.User;\n\npublic class TeacherDao {\n\tprivate Connection conn;\n\t//constructor\n\tpublic TeacherDao (Connection conn) {\n\t\tsuper();\n\t\tthis... | u.setMail(rs.getString(1)); | {} | {
"repository": "Rabby033-Online-Course-Management-System-4258105",
"file": "src/main/java/com/dao/TeacherDao.java",
"task_id": "project_cc_java/5147"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/dao/TeacherDao.java",
"groundtruth_start_lineno": 31,
"repository": "Rabby033-Online-Course-Management-System-4258105",
"right_context_start_lineno": 32,
"task_id": "project_cc_java/5147"
}
} |
cross_code_eval_java::project_cc_java/5148 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/dao/UserDao.java
// ResultSet rs = ps.executeQuery();
// while (rs.next()) {
//... | {
"prefix": "package com.dao;\n\nimport java.sql.Connection;\nimport java.sql.PreparedStatement;\nimport java.sql.ResultSet;\n\nimport com.entity.Teacher;\nimport com.entity.User;\n\npublic class TeacherDao {\n\tprivate Connection conn;\n\t//constructor\n\tpublic TeacherDao (Connection conn) {\n\t\tsuper();\n\t\tthis... | u.setPass(rs.getString(2)); | {} | {
"repository": "Rabby033-Online-Course-Management-System-4258105",
"file": "src/main/java/com/dao/TeacherDao.java",
"task_id": "project_cc_java/5148"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/dao/TeacherDao.java",
"groundtruth_start_lineno": 32,
"repository": "Rabby033-Online-Course-Management-System-4258105",
"right_context_start_lineno": 33,
"task_id": "project_cc_java/5148"
}
} |
cross_code_eval_java::project_cc_java/5145 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/dao/TeacherDao.java
// e.printStackTrace();
// }
// return u;
// }
// }
// t... | {
"prefix": "package com.dao;\n\nimport java.sql.Connection;\nimport java.sql.PreparedStatement;\nimport java.sql.ResultSet;\n\nimport com.entity.User;\n\npublic class UserDao {\n\n\tprivate Connection conn;\n\t//constructor\n\tpublic UserDao(Connection conn) {\n\t\tsuper();\n\t\tthis.conn = conn;\n\t}\n\t//method fo... | u.setReg(rs.getString(3)); | {} | {
"repository": "Rabby033-Online-Course-Management-System-4258105",
"file": "src/main/java/com/dao/UserDao.java",
"task_id": "project_cc_java/5145"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/dao/UserDao.java",
"groundtruth_start_lineno": 57,
"repository": "Rabby033-Online-Course-Management-System-4258105",
"right_context_start_lineno": 58,
"task_id": "project_cc_java/5145"
}
} |
cross_code_eval_java::project_cc_java/5190 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/ua/realalpha/skript/operator/EqualsOperator.java
// }
// @Override
// public ... | {
"prefix": "package ua.realalpha.skript;\n\nimport jdk.nashorn.internal.ir.LoopNode;\nimport ua.realalpha.skript.method.Method;\nimport ua.realalpha.skript.operator.Operator;\nimport ua.realalpha.skript.token.TokenMethod;\nimport ua.realalpha.skript.token.TokenOperator;\nimport ua.realalpha.skript.token.Token;\nimpo... | return reduce.get(0).getVariable(); | {} | {
"repository": "RealAlphaUA-Skript-a61d959",
"file": "src/main/java/ua/realalpha/skript/Skript.java",
"task_id": "project_cc_java/5190"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/ua/realalpha/skript/Skript.java",
"groundtruth_start_lineno": 83,
"repository": "RealAlphaUA-Skript-a61d959",
"right_context_start_lineno": 84,
"task_id": "project_cc_java/5190"
}
} |
cross_code_eval_java::project_cc_java/5144 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/dao/TeacherDao.java
// e.printStackTrace();
// }
// return u;
// }
// }
// t... | {
"prefix": "package com.dao;\n\nimport java.sql.Connection;\nimport java.sql.PreparedStatement;\nimport java.sql.ResultSet;\n\nimport com.entity.User;\n\npublic class UserDao {\n\n\tprivate Connection conn;\n\t//constructor\n\tpublic UserDao(Connection conn) {\n\t\tsuper();\n\t\tthis.conn = conn;\n\t}\n\t//method fo... | u.setFullname(rs.getString(1)); | {} | {
"repository": "Rabby033-Online-Course-Management-System-4258105",
"file": "src/main/java/com/dao/UserDao.java",
"task_id": "project_cc_java/5144"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/dao/UserDao.java",
"groundtruth_start_lineno": 56,
"repository": "Rabby033-Online-Course-Management-System-4258105",
"right_context_start_lineno": 57,
"task_id": "project_cc_java/5144"
}
} |
cross_code_eval_java::project_cc_java/5078 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/ap/spotify/client/controllers/AlbumEdit.java
// albumGenre = ... | {
"prefix": "package com.ap.spotify.client.controllers;\n\nimport com.ap.spotify.shared.Request;\nimport com.ap.spotify.shared.Response;\nimport com.ap.spotify.shared.models.Album;\nimport com.ap.spotify.shared.models.Genre;\nimport com.ap.spotify.shared.models.Music;\nimport com.google.gson.Gson;\nimport javafx.even... | genre.getId() == music.getGenre()){ | {} | {
"repository": "PyAlaie-spotify-408f7ba",
"file": "src/main/java/com/ap/spotify/client/controllers/MusicEdit.java",
"task_id": "project_cc_java/5078"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/ap/spotify/client/controllers/MusicEdit.java",
"groundtruth_start_lineno": 66,
"repository": "PyAlaie-spotify-408f7ba",
"right_context_start_lineno": 67,
"task_id": "project_cc_java/5078"
}
} |
cross_code_eval_java::project_cc_java/5187 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/ua/realalpha/skript/token/TokenOperator.java
// return operator;
// }
// ... | {
"prefix": "package ua.realalpha.skript;\n\nimport jdk.nashorn.internal.ir.LoopNode;\nimport ua.realalpha.skript.method.Method;\nimport ua.realalpha.skript.operator.Operator;\nimport ua.realalpha.skript.token.TokenMethod;\nimport ua.realalpha.skript.token.TokenOperator;\nimport ua.realalpha.skript.token.Token;\nimpo... | Operator operator = tokenOperator.getOperation(); | {} | {
"repository": "RealAlphaUA-Skript-a61d959",
"file": "src/main/java/ua/realalpha/skript/Skript.java",
"task_id": "project_cc_java/5187"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/ua/realalpha/skript/Skript.java",
"groundtruth_start_lineno": 52,
"repository": "RealAlphaUA-Skript-a61d959",
"right_context_start_lineno": 53,
"task_id": "project_cc_java/5187"
}
} |
cross_code_eval_java::project_cc_java/5191 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/ua/realalpha/skript/token/TokenOperator.java
// return operator;
// }
// ... | {
"prefix": "package ua.realalpha.skript;\n\nimport jdk.nashorn.internal.ir.LoopNode;\nimport ua.realalpha.skript.method.Method;\nimport ua.realalpha.skript.operator.Operator;\nimport ua.realalpha.skript.token.TokenMethod;\nimport ua.realalpha.skript.token.TokenOperator;\nimport ua.realalpha.skript.token.Token;\nimpo... | Token(operator.getName() + resultTokens[i + 1].getVariable()); | {} | {
"repository": "RealAlphaUA-Skript-a61d959",
"file": "src/main/java/ua/realalpha/skript/Skript.java",
"task_id": "project_cc_java/5191"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/ua/realalpha/skript/Skript.java",
"groundtruth_start_lineno": 100,
"repository": "RealAlphaUA-Skript-a61d959",
"right_context_start_lineno": 101,
"task_id": "project_cc_java/5191"
}
} |
cross_code_eval_java::project_cc_java/5192 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/ua/realalpha/skript/method/LowerMethod.java
// }
// @Override
// public Objec... | {
"prefix": "package ua.realalpha.skript;\n\nimport jdk.nashorn.internal.ir.LoopNode;\nimport ua.realalpha.skript.method.Method;\nimport ua.realalpha.skript.operator.Operator;\nimport ua.realalpha.skript.token.TokenMethod;\nimport ua.realalpha.skript.token.TokenOperator;\nimport ua.realalpha.skript.token.Token;\nimpo... | = new Token(operator.getName() + resultTokens[i + 1].getVariable()); | {} | {
"repository": "RealAlphaUA-Skript-a61d959",
"file": "src/main/java/ua/realalpha/skript/Skript.java",
"task_id": "project_cc_java/5192"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/ua/realalpha/skript/Skript.java",
"groundtruth_start_lineno": 107,
"repository": "RealAlphaUA-Skript-a61d959",
"right_context_start_lineno": 108,
"task_id": "project_cc_java/5192"
}
} |
cross_code_eval_java::project_cc_java/5193 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/ua/realalpha/skript/operator/SubtractOperator.java
// }
// @Override
// publi... | {
"prefix": "package ua.realalpha.skript;\n\nimport jdk.nashorn.internal.ir.LoopNode;\nimport ua.realalpha.skript.method.Method;\nimport ua.realalpha.skript.operator.Operator;\nimport ua.realalpha.skript.token.TokenMethod;\nimport ua.realalpha.skript.token.TokenOperator;\nimport ua.realalpha.skript.token.Token;\nimpo... | a.getVariable().toString().isEmpty()) { | {} | {
"repository": "RealAlphaUA-Skript-a61d959",
"file": "src/main/java/ua/realalpha/skript/Skript.java",
"task_id": "project_cc_java/5193"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/ua/realalpha/skript/Skript.java",
"groundtruth_start_lineno": 111,
"repository": "RealAlphaUA-Skript-a61d959",
"right_context_start_lineno": 112,
"task_id": "project_cc_java/5193"
}
} |
cross_code_eval_java::project_cc_java/5073 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/ap/spotify/client/controllers/MusicAdd.java
// }
// }
// ... | {
"prefix": "package com.ap.spotify.client.controllers;\n\nimport com.ap.spotify.shared.Request;\nimport com.ap.spotify.shared.Response;\nimport com.ap.spotify.shared.models.Album;\nimport com.ap.spotify.shared.models.Genre;\nimport com.ap.spotify.shared.models.Music;\nimport com.google.gson.Gson;\nimport javafx.even... | album.getId() == music.getArtist()){ | {} | {
"repository": "PyAlaie-spotify-408f7ba",
"file": "src/main/java/com/ap/spotify/client/controllers/MusicEdit.java",
"task_id": "project_cc_java/5073"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/ap/spotify/client/controllers/MusicEdit.java",
"groundtruth_start_lineno": 92,
"repository": "PyAlaie-spotify-408f7ba",
"right_context_start_lineno": 93,
"task_id": "project_cc_java/5073"
}
} |
cross_code_eval_java::project_cc_java/5079 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/ap/spotify/client/controllers/MusicAdd.java
// }
// }
// ... | {
"prefix": "package com.ap.spotify.client.controllers;\n\nimport com.ap.spotify.shared.Request;\nimport com.ap.spotify.shared.Response;\nimport com.ap.spotify.shared.models.Album;\nimport com.ap.spotify.shared.models.Genre;\nimport com.ap.spotify.shared.models.Music;\nimport com.google.gson.Gson;\nimport javafx.even... | (album.getId() == music.getArtist()){ | {} | {
"repository": "PyAlaie-spotify-408f7ba",
"file": "src/main/java/com/ap/spotify/client/controllers/MusicEdit.java",
"task_id": "project_cc_java/5079"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/ap/spotify/client/controllers/MusicEdit.java",
"groundtruth_start_lineno": 92,
"repository": "PyAlaie-spotify-408f7ba",
"right_context_start_lineno": 93,
"task_id": "project_cc_java/5079"
}
} |
cross_code_eval_java::project_cc_java/5098 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/ap/spotify/client/controllers/Search.java
// Button button = new Butt... | {
"prefix": "package com.ap.spotify.client.controllers;\n\nimport com.ap.spotify.client.HelloApplication;\nimport com.ap.spotify.shared.Request;\nimport com.ap.spotify.shared.Response;\nimport com.ap.spotify.shared.models.Music;\nimport com.ap.spotify.shared.models.Playlist;\nimport com.google.gson.Gson;\nimport java... | playlistName.setText(playlist.getTitle()); | {} | {
"repository": "PyAlaie-spotify-408f7ba",
"file": "src/main/java/com/ap/spotify/client/controllers/PlaylistView.java",
"task_id": "project_cc_java/5098"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/ap/spotify/client/controllers/PlaylistView.java",
"groundtruth_start_lineno": 61,
"repository": "PyAlaie-spotify-408f7ba",
"right_context_start_lineno": 62,
"task_id": "project_cc_java/5098"
}
} |
cross_code_eval_java::project_cc_java/5136 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// midjourney-bot-api-java/src/main/java/com/qjc/midjourney/controller/Result.java
// *
// * @pa... | {
"prefix": "package com.qjc.midjourney.controller;\n\nimport com.alibaba.fastjson.JSON;\nimport com.alibaba.fastjson2.JSONObject;\nimport com.qjc.midjourney.service.impl.ChatServiceImpl;\nimport lombok.extern.slf4j.Slf4j;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.htt... | final GptTurboModel model = GptTurboDto.convertToGptTurboModel(dto); | {} | {
"repository": "qjc1024join-midjourney-bot-api-deac0e7",
"file": "midjourney-bot-api-java/src/main/java/com/qjc/midjourney/controller/TestController.java",
"task_id": "project_cc_java/5136"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "midjourney-bot-api-java/src/main/java/com/qjc/midjourney/controller/TestController.java",
"groundtruth_start_lineno": 49,
"repository": "qjc1024join-midjourney-bot-api-deac0e7",
"right_context_start_lineno": 50,
"task_id": "project_cc_java/51... |
cross_code_eval_java::project_cc_java/5074 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/ap/spotify/client/controllers/AlbumEdit.java
// albumGenre = ... | {
"prefix": "package com.ap.spotify.client.controllers;\n\nimport com.ap.spotify.shared.Request;\nimport com.ap.spotify.shared.Response;\nimport com.ap.spotify.shared.models.Album;\nimport com.ap.spotify.shared.models.Genre;\nimport com.ap.spotify.shared.models.Music;\nimport com.google.gson.Gson;\nimport javafx.even... | (genre.getId() == music.getGenre()){ | {} | {
"repository": "PyAlaie-spotify-408f7ba",
"file": "src/main/java/com/ap/spotify/client/controllers/MusicEdit.java",
"task_id": "project_cc_java/5074"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/ap/spotify/client/controllers/MusicEdit.java",
"groundtruth_start_lineno": 66,
"repository": "PyAlaie-spotify-408f7ba",
"right_context_start_lineno": 67,
"task_id": "project_cc_java/5074"
}
} |
cross_code_eval_java::project_cc_java/5140 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// runtime/src/main/java/io/quarkiverse/bucket4j/runtime/RateLimitedInterceptor.java
// throw new ... | {
"prefix": "package io.quarkiverse.bucket4j.runtime;\n\nimport jakarta.enterprise.inject.spi.CDI;\n\nimport io.github.bucket4j.Bucket;\nimport io.github.bucket4j.BucketConfiguration;\nimport io.github.bucket4j.distributed.proxy.ProxyManager;\nimport io.quarkiverse.bucket4j.runtime.resolver.IdentityResolver;\n\npubli... | () + "_" + getIdentityResolver().getIdentityKey(), getConfiguration()); | {} | {
"repository": "quarkiverse-quarkus-bucket4j-a9c07c9",
"file": "runtime/src/main/java/io/quarkiverse/bucket4j/runtime/BucketPod.java",
"task_id": "project_cc_java/5140"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "runtime/src/main/java/io/quarkiverse/bucket4j/runtime/BucketPod.java",
"groundtruth_start_lineno": 35,
"repository": "quarkiverse-quarkus-bucket4j-a9c07c9",
"right_context_start_lineno": 36,
"task_id": "project_cc_java/5140"
}
} |
cross_code_eval_java::project_cc_java/5288 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/samokat/performance/mockserver/core/MockServer.java
// .maxLogEntries(100... | {
"prefix": "package org.samokat.performance.mockserver.utils;\n\nimport static org.mockserver.model.HttpResponse.response;\n\nimport com.google.gson.Gson;\nimport com.google.gson.JsonArray;\nimport com.google.gson.JsonObject;\nimport graphql.language.Document;\nimport graphql.language.Field;\nimport graphql.language... | el.getTypename(); | {} | {
"repository": "samokat-oss-performance-mockserver-3b28165",
"file": "src/main/java/org/samokat/performance/mockserver/utils/ExternalField.java",
"task_id": "project_cc_java/5288"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/samokat/performance/mockserver/utils/ExternalField.java",
"groundtruth_start_lineno": 62,
"repository": "samokat-oss-performance-mockserver-3b28165",
"right_context_start_lineno": 63,
"task_id": "project_cc_java/5288"
}
} |
cross_code_eval_java::project_cc_java/5241 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/io/github/riicarus/TransferableTask.java
// this.saggioTask = saggioTask;
// ... | {
"prefix": "package io.github.riicarus;\n\nimport io.github.riicarus.dsl.TaskArrangeDSLParser;\nimport io.github.riicarus.function.PrevTaskFunction;\nimport io.github.riicarus.function.TaskCallback;\nimport io.github.riicarus.function.TaskFunction;\n\nimport java.util.HashMap;\nimport java.util.List;\nimport java.ut... | dslParser.parse(arrangement); | {} | {
"repository": "Riicarus-SaggioTask-5f8b53a",
"file": "src/main/java/io/github/riicarus/SaggioTask.java",
"task_id": "project_cc_java/5241"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/io/github/riicarus/SaggioTask.java",
"groundtruth_start_lineno": 99,
"repository": "Riicarus-SaggioTask-5f8b53a",
"right_context_start_lineno": 100,
"task_id": "project_cc_java/5241"
}
} |
cross_code_eval_java::project_cc_java/5290 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/samokat/performance/mockserver/mocks/Croissant.java
// json.put("taste", ... | {
"prefix": "package org.samokat.performance.mockserver.utils;\n\nimport static org.mockserver.model.HttpResponse.response;\n\nimport com.google.gson.Gson;\nimport com.google.gson.JsonArray;\nimport com.google.gson.JsonObject;\nimport graphql.language.Document;\nimport graphql.language.Field;\nimport graphql.language... | body.getVariables().getRepresentations(); | {} | {
"repository": "samokat-oss-performance-mockserver-3b28165",
"file": "src/main/java/org/samokat/performance/mockserver/utils/ExternalField.java",
"task_id": "project_cc_java/5290"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/samokat/performance/mockserver/utils/ExternalField.java",
"groundtruth_start_lineno": 56,
"repository": "samokat-oss-performance-mockserver-3b28165",
"right_context_start_lineno": 57,
"task_id": "project_cc_java/5290"
}
} |
cross_code_eval_java::project_cc_java/5289 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/samokat/performance/mockserver/mocks/Croissant.java
// json.put("taste", ... | {
"prefix": "package org.samokat.performance.mockserver.utils;\n\nimport static org.mockserver.model.HttpResponse.response;\n\nimport com.google.gson.Gson;\nimport com.google.gson.JsonArray;\nimport com.google.gson.JsonObject;\nimport graphql.language.Document;\nimport graphql.language.Field;\nimport graphql.language... | query = body.getQuery().replaceFirst(".+?\\)", ""); | {} | {
"repository": "samokat-oss-performance-mockserver-3b28165",
"file": "src/main/java/org/samokat/performance/mockserver/utils/ExternalField.java",
"task_id": "project_cc_java/5289"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/samokat/performance/mockserver/utils/ExternalField.java",
"groundtruth_start_lineno": 49,
"repository": "samokat-oss-performance-mockserver-3b28165",
"right_context_start_lineno": 50,
"task_id": "project_cc_java/5289"
}
} |
cross_code_eval_java::project_cc_java/5109 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/ap/spotify/client/controllers/AlbumAdd.java
// Type type = new com.go... | {
"prefix": "package com.ap.spotify.client.controllers;\n\nimport com.ap.spotify.shared.Request;\nimport com.ap.spotify.shared.Response;\nimport com.ap.spotify.shared.models.Music;\nimport com.google.gson.Gson;\nimport javafx.beans.value.ChangeListener;\nimport javafx.beans.value.ObservableValue;\nimport javafx.event... | response.getJson(), Music.class); | {} | {
"repository": "PyAlaie-spotify-408f7ba",
"file": "src/main/java/com/ap/spotify/client/controllers/MusicPlayer.java",
"task_id": "project_cc_java/5109"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/ap/spotify/client/controllers/MusicPlayer.java",
"groundtruth_start_lineno": 63,
"repository": "PyAlaie-spotify-408f7ba",
"right_context_start_lineno": 64,
"task_id": "project_cc_java/5109"
}
} |
cross_code_eval_java::project_cc_java/5280 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/dev/_2lstudios/mcdeploy/software/Software.java
// return null;
// }
/... | {
"prefix": "package dev._2lstudios.mcdeploy.software;\n\nimport java.io.File;\nimport java.io.IOException;\n\nimport dev._2lstudios.mcdeploy.utils.DownloadUtils;\nimport dev._2lstudios.mcdeploy.utils.FileUtils;\nimport dev._2lstudios.mcdeploy.utils.ProcessUtils;\nimport dev._2lstudios.mcdeploy.utils.StdListener;\n\n... | int status = ProcessUtils.runAndWait(cmd, tempDir); | {} | {
"repository": "sammwyy-MCDeploy-e30a9a5",
"file": "src/main/java/dev/_2lstudios/mcdeploy/software/SoftwareArtifact.java",
"task_id": "project_cc_java/5280"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/dev/_2lstudios/mcdeploy/software/SoftwareArtifact.java",
"groundtruth_start_lineno": 48,
"repository": "sammwyy-MCDeploy-e30a9a5",
"right_context_start_lineno": 49,
"task_id": "project_cc_java/5280"
}
} |
cross_code_eval_java::project_cc_java/5112 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/ap/spotify/client/controllers/MusicView.java
// System.out.println(re... | {
"prefix": "package com.ap.spotify.client.controllers;\n\nimport com.ap.spotify.shared.Request;\nimport com.ap.spotify.shared.Response;\nimport com.ap.spotify.shared.models.Music;\nimport com.google.gson.Gson;\nimport javafx.beans.value.ChangeListener;\nimport javafx.beans.value.ObservableValue;\nimport javafx.event... | System.out.println("test" + response.getMessage()); | {} | {
"repository": "PyAlaie-spotify-408f7ba",
"file": "src/main/java/com/ap/spotify/client/controllers/MusicPlayer.java",
"task_id": "project_cc_java/5112"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/ap/spotify/client/controllers/MusicPlayer.java",
"groundtruth_start_lineno": 185,
"repository": "PyAlaie-spotify-408f7ba",
"right_context_start_lineno": 186,
"task_id": "project_cc_java/5112"
}
} |
cross_code_eval_java::project_cc_java/5279 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/dev/_2lstudios/mcdeploy/MCDeploy.java
// } catch (IOException | InterruptedExcept... | {
"prefix": "package dev._2lstudios.mcdeploy.software;\n\nimport java.io.File;\nimport java.io.IOException;\n\nimport dev._2lstudios.mcdeploy.utils.DownloadUtils;\nimport dev._2lstudios.mcdeploy.utils.FileUtils;\nimport dev._2lstudios.mcdeploy.utils.ProcessUtils;\nimport dev._2lstudios.mcdeploy.utils.StdListener;\n\n... | FileUtils.writeFile(new File(cwd, "eula.txt"), "eula=true"); | {} | {
"repository": "sammwyy-MCDeploy-e30a9a5",
"file": "src/main/java/dev/_2lstudios/mcdeploy/software/SoftwareArtifact.java",
"task_id": "project_cc_java/5279"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/dev/_2lstudios/mcdeploy/software/SoftwareArtifact.java",
"groundtruth_start_lineno": 67,
"repository": "sammwyy-MCDeploy-e30a9a5",
"right_context_start_lineno": 68,
"task_id": "project_cc_java/5279"
}
} |
cross_code_eval_java::project_cc_java/5119 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/ap/spotify/client/controllers/PlaylistAdd.java
// StaticData.objOut.flush... | {
"prefix": "package com.ap.spotify.client.controllers;\n\nimport com.ap.spotify.Test;\nimport com.ap.spotify.client.HelloApplication;\nimport com.ap.spotify.shared.Request;\nimport com.ap.spotify.shared.Response;\nimport com.ap.spotify.shared.models.Comment;\nimport com.ap.spotify.shared.models.Music;\nimport com.ap... | setHeaderText(response1.getMessage()); | {} | {
"repository": "PyAlaie-spotify-408f7ba",
"file": "src/main/java/com/ap/spotify/client/controllers/MusicView.java",
"task_id": "project_cc_java/5119"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/ap/spotify/client/controllers/MusicView.java",
"groundtruth_start_lineno": 110,
"repository": "PyAlaie-spotify-408f7ba",
"right_context_start_lineno": 111,
"task_id": "project_cc_java/5119"
}
} |
cross_code_eval_java::project_cc_java/5282 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/dev/_2lstudios/mcdeploy/cli/CLI.java
// return 0;
// }
// }
// the below cod... | {
"prefix": "package dev._2lstudios.mcdeploy.cli.commands;\n\nimport java.io.File;\nimport java.io.IOException;\nimport java.util.concurrent.Callable;\n\nimport dev._2lstudios.mcdeploy.MCDeploy;\nimport dev._2lstudios.mcdeploy.cli.Logger;\nimport dev._2lstudios.mcdeploy.errors.MCDException;\nimport dev._2lstudios.mcd... | Logger.info("Process exited with code: " + exitCode); | {} | {
"repository": "sammwyy-MCDeploy-e30a9a5",
"file": "src/main/java/dev/_2lstudios/mcdeploy/cli/commands/RunCommand.java",
"task_id": "project_cc_java/5282"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/dev/_2lstudios/mcdeploy/cli/commands/RunCommand.java",
"groundtruth_start_lineno": 52,
"repository": "sammwyy-MCDeploy-e30a9a5",
"right_context_start_lineno": 53,
"task_id": "project_cc_java/5282"
}
} |
cross_code_eval_java::project_cc_java/5123 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/ap/spotify/client/controllers/SignUp.java
// }
// }
// @Override
// ... | {
"prefix": "package com.ap.spotify.client.controllers;\n\nimport com.ap.spotify.Test;\nimport com.ap.spotify.client.HelloApplication;\nimport com.ap.spotify.shared.Request;\nimport com.ap.spotify.shared.Response;\nimport com.ap.spotify.shared.models.Album;\nimport com.ap.spotify.shared.models.Music;\nimport com.goog... | (album.getCoverPicPath() != null) { | {} | {
"repository": "PyAlaie-spotify-408f7ba",
"file": "src/main/java/com/ap/spotify/client/controllers/Home.java",
"task_id": "project_cc_java/5123"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/ap/spotify/client/controllers/Home.java",
"groundtruth_start_lineno": 128,
"repository": "PyAlaie-spotify-408f7ba",
"right_context_start_lineno": 129,
"task_id": "project_cc_java/5123"
}
} |
cross_code_eval_java::project_cc_java/5246 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/fiap/grupo9/appconsumoeletro/controllers/EnderecoController.java
// retur... | {
"prefix": "package com.fiap.grupo9.appconsumoeletro.repositorio;\n\nimport com.fiap.grupo9.appconsumoeletro.dominio.Endereco;\nimport com.fiap.grupo9.appconsumoeletro.exceptions.EnderecoJaCadastradoException;\nimport com.fiap.grupo9.appconsumoeletro.exceptions.EnderecoNaoEncontradoException;\nimport com.fiap.grupo9... | setNumero(endereco.getNumero()); | {} | {
"repository": "rodrigolmacedo-app-consumo-eletro-682f95a",
"file": "src/main/java/com/fiap/grupo9/appconsumoeletro/repositorio/EnderecoRepository.java",
"task_id": "project_cc_java/5246"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/fiap/grupo9/appconsumoeletro/repositorio/EnderecoRepository.java",
"groundtruth_start_lineno": 49,
"repository": "rodrigolmacedo-app-consumo-eletro-682f95a",
"right_context_start_lineno": 50,
"task_id": "project_cc_java/5246... |
cross_code_eval_java::project_cc_java/5250 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/fiap/grupo9/appconsumoeletro/controllers/PessoaController.java
// private <T> Map... | {
"prefix": "package com.fiap.grupo9.appconsumoeletro.controllers;\n\nimport com.fiap.grupo9.appconsumoeletro.controllers.form.EnderecoForm;\nimport com.fiap.grupo9.appconsumoeletro.controllers.mapper.ModelMapper;\nimport com.fiap.grupo9.appconsumoeletro.dominio.Endereco;\nimport com.fiap.grupo9.appconsumoeletro.repo... | endereco = modelMapper.getMapper().map(enderecoForm, Endereco.class); | {} | {
"repository": "rodrigolmacedo-app-consumo-eletro-682f95a",
"file": "src/main/java/com/fiap/grupo9/appconsumoeletro/controllers/EnderecoController.java",
"task_id": "project_cc_java/5250"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/fiap/grupo9/appconsumoeletro/controllers/EnderecoController.java",
"groundtruth_start_lineno": 46,
"repository": "rodrigolmacedo-app-consumo-eletro-682f95a",
"right_context_start_lineno": 47,
"task_id": "project_cc_java/5250... |
cross_code_eval_java::project_cc_java/5247 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/fiap/grupo9/appconsumoeletro/controllers/EnderecoController.java
// retur... | {
"prefix": "package com.fiap.grupo9.appconsumoeletro.repositorio;\n\nimport com.fiap.grupo9.appconsumoeletro.dominio.Endereco;\nimport com.fiap.grupo9.appconsumoeletro.exceptions.EnderecoJaCadastradoException;\nimport com.fiap.grupo9.appconsumoeletro.exceptions.EnderecoNaoEncontradoException;\nimport com.fiap.grupo9... | setComplemento(endereco.getComplemento()); | {} | {
"repository": "rodrigolmacedo-app-consumo-eletro-682f95a",
"file": "src/main/java/com/fiap/grupo9/appconsumoeletro/repositorio/EnderecoRepository.java",
"task_id": "project_cc_java/5247"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/fiap/grupo9/appconsumoeletro/repositorio/EnderecoRepository.java",
"groundtruth_start_lineno": 50,
"repository": "rodrigolmacedo-app-consumo-eletro-682f95a",
"right_context_start_lineno": 51,
"task_id": "project_cc_java/5247... |
cross_code_eval_java::project_cc_java/5275 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/dev/_2lstudios/mcdeploy/software/Software.java
// return null;
// }
/... | {
"prefix": "package dev._2lstudios.mcdeploy.software;\n\nimport java.io.File;\nimport java.io.IOException;\n\nimport dev._2lstudios.mcdeploy.utils.DownloadUtils;\nimport dev._2lstudios.mcdeploy.utils.FileUtils;\nimport dev._2lstudios.mcdeploy.utils.ProcessUtils;\nimport dev._2lstudios.mcdeploy.utils.StdListener;\n\n... | DownloadUtils.download(this.url, finalFile, ignoreExist); | {} | {
"repository": "sammwyy-MCDeploy-e30a9a5",
"file": "src/main/java/dev/_2lstudios/mcdeploy/software/SoftwareArtifact.java",
"task_id": "project_cc_java/5275"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/dev/_2lstudios/mcdeploy/software/SoftwareArtifact.java",
"groundtruth_start_lineno": 35,
"repository": "sammwyy-MCDeploy-e30a9a5",
"right_context_start_lineno": 36,
"task_id": "project_cc_java/5275"
}
} |
cross_code_eval_java::project_cc_java/5277 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/dev/_2lstudios/mcdeploy/software/Software.java
// public SoftwareArtifact getArtifact... | {
"prefix": "package dev._2lstudios.mcdeploy.software;\n\nimport java.io.File;\nimport java.io.IOException;\n\nimport dev._2lstudios.mcdeploy.utils.DownloadUtils;\nimport dev._2lstudios.mcdeploy.utils.FileUtils;\nimport dev._2lstudios.mcdeploy.utils.ProcessUtils;\nimport dev._2lstudios.mcdeploy.utils.StdListener;\n\n... | FileUtils.deleteRecursive(tempDir); | {} | {
"repository": "sammwyy-MCDeploy-e30a9a5",
"file": "src/main/java/dev/_2lstudios/mcdeploy/software/SoftwareArtifact.java",
"task_id": "project_cc_java/5277"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/dev/_2lstudios/mcdeploy/software/SoftwareArtifact.java",
"groundtruth_start_lineno": 56,
"repository": "sammwyy-MCDeploy-e30a9a5",
"right_context_start_lineno": 57,
"task_id": "project_cc_java/5277"
}
} |
cross_code_eval_java::project_cc_java/5276 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/dev/_2lstudios/mcdeploy/utils/DownloadUtils.java
// public static File downloadTemp(S... | {
"prefix": "package dev._2lstudios.mcdeploy.software;\n\nimport java.io.File;\nimport java.io.IOException;\n\nimport dev._2lstudios.mcdeploy.utils.DownloadUtils;\nimport dev._2lstudios.mcdeploy.utils.FileUtils;\nimport dev._2lstudios.mcdeploy.utils.ProcessUtils;\nimport dev._2lstudios.mcdeploy.utils.StdListener;\n\n... | installerFile = DownloadUtils.downloadTemp(this.url); | {} | {
"repository": "sammwyy-MCDeploy-e30a9a5",
"file": "src/main/java/dev/_2lstudios/mcdeploy/software/SoftwareArtifact.java",
"task_id": "project_cc_java/5276"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/dev/_2lstudios/mcdeploy/software/SoftwareArtifact.java",
"groundtruth_start_lineno": 44,
"repository": "sammwyy-MCDeploy-e30a9a5",
"right_context_start_lineno": 45,
"task_id": "project_cc_java/5276"
}
} |
cross_code_eval_java::project_cc_java/5278 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/dev/_2lstudios/mcdeploy/utils/ProcessUtils.java
// if (proc.isAlive()) {
... | {
"prefix": "package dev._2lstudios.mcdeploy.software;\n\nimport java.io.File;\nimport java.io.IOException;\n\nimport dev._2lstudios.mcdeploy.utils.DownloadUtils;\nimport dev._2lstudios.mcdeploy.utils.FileUtils;\nimport dev._2lstudios.mcdeploy.utils.ProcessUtils;\nimport dev._2lstudios.mcdeploy.utils.StdListener;\n\n... | FileUtils.writeFile(new File(options.cwd, ".mcdeploy"), this.getJARName()); | {} | {
"repository": "sammwyy-MCDeploy-e30a9a5",
"file": "src/main/java/dev/_2lstudios/mcdeploy/software/SoftwareArtifact.java",
"task_id": "project_cc_java/5278"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/dev/_2lstudios/mcdeploy/software/SoftwareArtifact.java",
"groundtruth_start_lineno": 59,
"repository": "sammwyy-MCDeploy-e30a9a5",
"right_context_start_lineno": 60,
"task_id": "project_cc_java/5278"
}
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.