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/5284 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/commands/InstallCommand.java
// MCDeploy mcd = new MC... | {
"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... | FileUtils.readFile(dotMCDFile); | {} | {
"repository": "sammwyy-MCDeploy-e30a9a5",
"file": "src/main/java/dev/_2lstudios/mcdeploy/cli/commands/RunCommand.java",
"task_id": "project_cc_java/5284"
} | {
"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": 39,
"repository": "sammwyy-MCDeploy-e30a9a5",
"right_context_start_lineno": 40,
"task_id": "project_cc_java/5284"
}
} |
cross_code_eval_java::project_cc_java/5251 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/dominio/Endereco.java
// @Override
// public boo... | {
"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... | 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/5251"
} | {
"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": 84,
"repository": "rodrigolmacedo-app-consumo-eletro-682f95a",
"right_context_start_lineno": 85,
"task_id": "project_cc_java/5251... |
cross_code_eval_java::project_cc_java/5265 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/sadghost/espresso/spigot/direction/DirectionUtils.java
// final double deg = ... | {
"prefix": "package dev.sadghost.espresso.paper;\n\nimport dev.sadghost.espresso.base.Preconditions;\nimport net.kyori.adventure.text.Component;\nimport net.kyori.adventure.text.TextReplacementConfig;\nimport org.bukkit.entity.Player;\nimport org.bukkit.plugin.Plugin;\nimport org.jetbrains.annotations.ApiStatus;\nim... | DebugChannel channel = Preconditions.checkNonNull(getChannel(key)); | {} | {
"repository": "SadGhostYT-Espresso-f09023a",
"file": "src/main/java/dev/sadghost/espresso/paper/Debugger.java",
"task_id": "project_cc_java/5265"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/dev/sadghost/espresso/paper/Debugger.java",
"groundtruth_start_lineno": 160,
"repository": "SadGhostYT-Espresso-f09023a",
"right_context_start_lineno": 161,
"task_id": "project_cc_java/5265"
}
} |
cross_code_eval_java::project_cc_java/5252 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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
// @ApiRes... | {
"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... | List<Endereco> enderecoPelosCEP = enderecoRepository.getEnderecosPeloCEP(cep); | {} | {
"repository": "rodrigolmacedo-app-consumo-eletro-682f95a",
"file": "src/main/java/com/fiap/grupo9/appconsumoeletro/controllers/EnderecoController.java",
"task_id": "project_cc_java/5252"
} | {
"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": 59,
"repository": "rodrigolmacedo-app-consumo-eletro-682f95a",
"right_context_start_lineno": 60,
"task_id": "project_cc_java/5252... |
cross_code_eval_java::project_cc_java/5253 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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
// @ApiRes... | {
"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... | listaEnderecos = enderecoRepository.getEnderecoList(); | {} | {
"repository": "rodrigolmacedo-app-consumo-eletro-682f95a",
"file": "src/main/java/com/fiap/grupo9/appconsumoeletro/controllers/EnderecoController.java",
"task_id": "project_cc_java/5253"
} | {
"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": 69,
"repository": "rodrigolmacedo-app-consumo-eletro-682f95a",
"right_context_start_lineno": 70,
"task_id": "project_cc_java/5253... |
cross_code_eval_java::project_cc_java/5316 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/example/ethbeijing/Controller/TransactionController.java
// if (pageSize < 10... | {
"prefix": "package com.example.ethbeijing.Controller;\n\nimport com.alibaba.fastjson.JSON;\nimport com.alibaba.fastjson.JSONArray;\nimport com.alibaba.fastjson.JSONObject;\nimport com.example.ethbeijing.common.R;\nimport org.springframework.web.bind.annotation.*;\n\nimport java.io.*;\nimport java.net.InetAddress;\n... | return R.error("未知错误"); | {} | {
"repository": "Silence1017-EtherWatchdog_Server-a419615",
"file": "src/main/java/com/example/ethbeijing/Controller/SocketController.java",
"task_id": "project_cc_java/5316"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/example/ethbeijing/Controller/SocketController.java",
"groundtruth_start_lineno": 64,
"repository": "Silence1017-EtherWatchdog_Server-a419615",
"right_context_start_lineno": 65,
"task_id": "project_cc_java/5316"
}
} |
cross_code_eval_java::project_cc_java/5218 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/redhat/exhort/integration/providers/ossindex/OssIndexRequestBuilder.java
// retur... | {
"prefix": "/*\n * Copyright 2023 Red Hat, Inc. and/or its affiliates\n * and other contributors as indicated by the @author tags.\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... | ).put("name", source.name()).put("version", source.version())); | {} | {
"repository": "RHEcosystemAppEng-exhort-747acb8",
"file": "src/main/java/com/redhat/exhort/integration/providers/snyk/SnykRequestBuilder.java",
"task_id": "project_cc_java/5218"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/redhat/exhort/integration/providers/snyk/SnykRequestBuilder.java",
"groundtruth_start_lineno": 78,
"repository": "RHEcosystemAppEng-exhort-747acb8",
"right_context_start_lineno": 79,
"task_id": "project_cc_java/5218"
}
} |
cross_code_eval_java::project_cc_java/5232 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/test/java/com/redhat/exhort/integration/backend/ProviderAggregatorTest.java
// return tree;
// ... | {
"prefix": "/*\n * Copyright 2023 Red Hat, Inc. and/or its affiliates\n * and other contributors as indicated by the @author tags.\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... | ).purl().getType()); | {} | {
"repository": "RHEcosystemAppEng-exhort-747acb8",
"file": "src/main/java/com/redhat/exhort/integration/backend/sbom/spdx/SpdxParser.java",
"task_id": "project_cc_java/5232"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/redhat/exhort/integration/backend/sbom/spdx/SpdxParser.java",
"groundtruth_start_lineno": 66,
"repository": "RHEcosystemAppEng-exhort-747acb8",
"right_context_start_lineno": 67,
"task_id": "project_cc_java/5232"
}
} |
cross_code_eval_java::project_cc_java/5234 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/test/java/com/redhat/exhort/integration/backend/BackendUtilsTest.java
// .t... | {
"prefix": "/*\n * Copyright 2023 Red Hat, Inc. and/or its affiliates\n * and other contributors as indicated by the @author tags.\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... | ().map(v -> v.purl().getType()).distinct().toList(); | {} | {
"repository": "RHEcosystemAppEng-exhort-747acb8",
"file": "src/main/java/com/redhat/exhort/integration/backend/sbom/cyclonedx/CycloneDxParser.java",
"task_id": "project_cc_java/5234"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/redhat/exhort/integration/backend/sbom/cyclonedx/CycloneDxParser.java",
"groundtruth_start_lineno": 68,
"repository": "RHEcosystemAppEng-exhort-747acb8",
"right_context_start_lineno": 69,
"task_id": "project_cc_java/5234"
... |
cross_code_eval_java::project_cc_java/5228 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/redhat/exhort/integration/providers/snyk/SnykAggregator.java
// .cvssScore(da... | {
"prefix": "/*\n * Copyright 2023 Red Hat, Inc. and/or its affiliates\n * and other contributors as indicated by the @author tags.\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... | severity(SeverityUtils.fromScore(score)); | {} | {
"repository": "RHEcosystemAppEng-exhort-747acb8",
"file": "src/main/java/com/redhat/exhort/integration/providers/ossindex/OssIndexRequestBuilder.java",
"task_id": "project_cc_java/5228"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/redhat/exhort/integration/providers/ossindex/OssIndexRequestBuilder.java",
"groundtruth_start_lineno": 101,
"repository": "RHEcosystemAppEng-exhort-747acb8",
"right_context_start_lineno": 102,
"task_id": "project_cc_java/522... |
cross_code_eval_java::project_cc_java/5222 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/redhat/exhort/integration/providers/ossindex/OssIndexRequestBuilder.java
// retur... | {
"prefix": "/*\n * Copyright 2023 Red Hat, Inc. and/or its affiliates\n * and other contributors as indicated by the @author tags.\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... | tree.root(), allDeps); | {} | {
"repository": "RHEcosystemAppEng-exhort-747acb8",
"file": "src/main/java/com/redhat/exhort/integration/providers/snyk/SnykRequestBuilder.java",
"task_id": "project_cc_java/5222"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/redhat/exhort/integration/providers/snyk/SnykRequestBuilder.java",
"groundtruth_start_lineno": 55,
"repository": "RHEcosystemAppEng-exhort-747acb8",
"right_context_start_lineno": 56,
"task_id": "project_cc_java/5222"
}
} |
cross_code_eval_java::project_cc_java/5304 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/idea-integration/java/io/shcm/shsupercm/fabric/stonecutter/idea/ui/NewTokenDialog.java
// ... | {
"prefix": "package io.shcm.shsupercm.fabric.stonecutter.idea.ui;\n\nimport com.google.common.collect.Lists;\nimport com.intellij.openapi.command.WriteCommandAction;\nimport com.intellij.openapi.editor.Editor;\nimport com.intellij.openapi.editor.FoldRegion;\nimport com.intellij.openapi.fileEditor.FileEditorManager;\... | "/*?" + stonecutter.currentActive() + " { | {} | {
"repository": "SHsuperCM-Stonecutter-937eca5",
"file": "src/idea-integration/java/io/shcm/shsupercm/fabric/stonecutter/idea/ui/StonecutterEditorPopup.java",
"task_id": "project_cc_java/5304"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/idea-integration/java/io/shcm/shsupercm/fabric/stonecutter/idea/ui/StonecutterEditorPopup.java",
"groundtruth_start_lineno": 192,
"repository": "SHsuperCM-Stonecutter-937eca5",
"right_context_start_lineno": 193,
"task_id": "project_cc_jav... |
cross_code_eval_java::project_cc_java/5225 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/redhat/exhort/integration/providers/ossindex/OssIndexRequestBuilder.java
// retur... | {
"prefix": "/*\n * Copyright 2023 Red Hat, Inc. and/or its affiliates\n * and other contributors as indicated by the @author tags.\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... | ("pkgs", addPackages(depGraph, req.tree())); | {} | {
"repository": "RHEcosystemAppEng-exhort-747acb8",
"file": "src/main/java/com/redhat/exhort/integration/providers/snyk/SnykRequestBuilder.java",
"task_id": "project_cc_java/5225"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/redhat/exhort/integration/providers/snyk/SnykRequestBuilder.java",
"groundtruth_start_lineno": 48,
"repository": "RHEcosystemAppEng-exhort-747acb8",
"right_context_start_lineno": 49,
"task_id": "project_cc_java/5225"
}
} |
cross_code_eval_java::project_cc_java/5298 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/idea-integration/java/io/shcm/shsupercm/fabric/stonecutter/idea/ui/StonecutterEditorPopup.java
// ... | {
"prefix": "package io.shcm.shsupercm.fabric.stonecutter.idea.ui;\n\nimport com.intellij.lang.Language;\nimport com.intellij.openapi.editor.Editor;\nimport com.intellij.openapi.editor.colors.EditorColors;\nimport com.intellij.openapi.editor.markup.*;\nimport com.intellij.openapi.project.Project;\nimport com.intellij... | ).missingTokens.isEmpty() ? "" : stonecutter.tokenCache().missingTokens.iterator().next()); | {} | {
"repository": "SHsuperCM-Stonecutter-937eca5",
"file": "src/idea-integration/java/io/shcm/shsupercm/fabric/stonecutter/idea/ui/NewTokenDialog.java",
"task_id": "project_cc_java/5298"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/idea-integration/java/io/shcm/shsupercm/fabric/stonecutter/idea/ui/NewTokenDialog.java",
"groundtruth_start_lineno": 48,
"repository": "SHsuperCM-Stonecutter-937eca5",
"right_context_start_lineno": 49,
"task_id": "project_cc_java/5298"
... |
cross_code_eval_java::project_cc_java/5223 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/redhat/exhort/integration/providers/ossindex/OssIndexRequestBuilder.java
// retur... | {
"prefix": "/*\n * Copyright 2023 Red Hat, Inc. and/or its affiliates\n * and other contributors as indicated by the @author tags.\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... | ().add(createPkg(tree.root())); | {} | {
"repository": "RHEcosystemAppEng-exhort-747acb8",
"file": "src/main/java/com/redhat/exhort/integration/providers/snyk/SnykRequestBuilder.java",
"task_id": "project_cc_java/5223"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/redhat/exhort/integration/providers/snyk/SnykRequestBuilder.java",
"groundtruth_start_lineno": 57,
"repository": "RHEcosystemAppEng-exhort-747acb8",
"right_context_start_lineno": 58,
"task_id": "project_cc_java/5223"
}
} |
cross_code_eval_java::project_cc_java/5233 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/redhat/exhort/integration/backend/sbom/spdx/SpdxParser.java
// flatDepT... | {
"prefix": "/*\n * Copyright 2023 Red Hat, Inc. and/or its affiliates\n * and other contributors as indicated by the @author tags.\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... | c -> PackageRef.builder().purl(c.getPurl()).build()))); | {} | {
"repository": "RHEcosystemAppEng-exhort-747acb8",
"file": "src/main/java/com/redhat/exhort/integration/backend/sbom/cyclonedx/CycloneDxParser.java",
"task_id": "project_cc_java/5233"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/redhat/exhort/integration/backend/sbom/cyclonedx/CycloneDxParser.java",
"groundtruth_start_lineno": 66,
"repository": "RHEcosystemAppEng-exhort-747acb8",
"right_context_start_lineno": 67,
"task_id": "project_cc_java/5233"
... |
cross_code_eval_java::project_cc_java/5231 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/redhat/exhort/integration/providers/snyk/SnykRequestBuilder.java
// .forEach(... | {
"prefix": "/*\n * Copyright 2023 Red Hat, Inc. and/or its affiliates\n * and other contributors as indicated by the @author tags.\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... | && !req.tree().getAll().isEmpty(); | {} | {
"repository": "RHEcosystemAppEng-exhort-747acb8",
"file": "src/main/java/com/redhat/exhort/integration/providers/ossindex/OssIndexRequestBuilder.java",
"task_id": "project_cc_java/5231"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/redhat/exhort/integration/providers/ossindex/OssIndexRequestBuilder.java",
"groundtruth_start_lineno": 64,
"repository": "RHEcosystemAppEng-exhort-747acb8",
"right_context_start_lineno": 65,
"task_id": "project_cc_java/5231"... |
cross_code_eval_java::project_cc_java/5219 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/redhat/exhort/integration/providers/ossindex/OssIndexRequestBuilder.java
// retur... | {
"prefix": "/*\n * Copyright 2023 Red Hat, Inc. and/or its affiliates\n * and other contributors as indicated by the @author tags.\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... | ref.name()).append("@").append(ref.version()).toString(); | {} | {
"repository": "RHEcosystemAppEng-exhort-747acb8",
"file": "src/main/java/com/redhat/exhort/integration/providers/snyk/SnykRequestBuilder.java",
"task_id": "project_cc_java/5219"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/redhat/exhort/integration/providers/snyk/SnykRequestBuilder.java",
"groundtruth_start_lineno": 92,
"repository": "RHEcosystemAppEng-exhort-747acb8",
"right_context_start_lineno": 93,
"task_id": "project_cc_java/5219"
}
} |
cross_code_eval_java::project_cc_java/5308 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/idea-integration/java/io/shcm/shsupercm/fabric/stonecutter/idea/ui/NewTokenDialog.java
// publi... | {
"prefix": "package io.shcm.shsupercm.fabric.stonecutter.idea.ui;\n\nimport com.google.common.collect.Lists;\nimport com.intellij.openapi.command.WriteCommandAction;\nimport com.intellij.openapi.editor.Editor;\nimport com.intellij.openapi.editor.FoldRegion;\nimport com.intellij.openapi.fileEditor.FileEditorManager;\... | stonecutter.tokenCache().tokensByVersion.get(cVersion.getSelectedItem()).values()); | {} | {
"repository": "SHsuperCM-Stonecutter-937eca5",
"file": "src/idea-integration/java/io/shcm/shsupercm/fabric/stonecutter/idea/ui/StonecutterEditorPopup.java",
"task_id": "project_cc_java/5308"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/idea-integration/java/io/shcm/shsupercm/fabric/stonecutter/idea/ui/StonecutterEditorPopup.java",
"groundtruth_start_lineno": 332,
"repository": "SHsuperCM-Stonecutter-937eca5",
"right_context_start_lineno": 333,
"task_id": "project_cc_jav... |
cross_code_eval_java::project_cc_java/5196 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// file-bridge-common/src/main/java/com/rebiekong/tec/tools/file/bridge/utils/NumberUtil.java
// ... | {
"prefix": "/*\n * Copyright 2023 rebiekong\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 requ... | CharUtil.isBlankChar(str.charAt(i))) { | {} | {
"repository": "RebieKong-file-bridge-c3b4855",
"file": "file-bridge-common/src/main/java/com/rebiekong/tec/tools/file/bridge/utils/StrUtil.java",
"task_id": "project_cc_java/5196"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "file-bridge-common/src/main/java/com/rebiekong/tec/tools/file/bridge/utils/StrUtil.java",
"groundtruth_start_lineno": 29,
"repository": "RebieKong-file-bridge-c3b4855",
"right_context_start_lineno": 30,
"task_id": "project_cc_java/5196"
}
} |
cross_code_eval_java::project_cc_java/5302 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/idea-integration/java/io/shcm/shsupercm/fabric/stonecutter/idea/ui/NewTokenDialog.java
// t... | {
"prefix": "package io.shcm.shsupercm.fabric.stonecutter.idea.ui;\n\nimport com.google.common.collect.Lists;\nimport com.intellij.openapi.command.WriteCommandAction;\nimport com.intellij.openapi.editor.Editor;\nimport com.intellij.openapi.editor.FoldRegion;\nimport com.intellij.openapi.fileEditor.FileEditorManager;\... | (stonecutter.currentActive()); | {} | {
"repository": "SHsuperCM-Stonecutter-937eca5",
"file": "src/idea-integration/java/io/shcm/shsupercm/fabric/stonecutter/idea/ui/StonecutterEditorPopup.java",
"task_id": "project_cc_java/5302"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/idea-integration/java/io/shcm/shsupercm/fabric/stonecutter/idea/ui/StonecutterEditorPopup.java",
"groundtruth_start_lineno": 95,
"repository": "SHsuperCM-Stonecutter-937eca5",
"right_context_start_lineno": 96,
"task_id": "project_cc_java/... |
cross_code_eval_java::project_cc_java/5226 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/redhat/exhort/integration/providers/snyk/SnykAggregator.java
// List<Is... | {
"prefix": "/*\n * Copyright 2023 Red Hat, Inc. and/or its affiliates\n * and other contributors as indicated by the @author tags.\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... | PackageRef.builder().purl(pkgRef).build(); | {} | {
"repository": "RHEcosystemAppEng-exhort-747acb8",
"file": "src/main/java/com/redhat/exhort/integration/providers/ossindex/OssIndexRequestBuilder.java",
"task_id": "project_cc_java/5226"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/redhat/exhort/integration/providers/ossindex/OssIndexRequestBuilder.java",
"groundtruth_start_lineno": 78,
"repository": "RHEcosystemAppEng-exhort-747acb8",
"right_context_start_lineno": 79,
"task_id": "project_cc_java/5226"... |
cross_code_eval_java::project_cc_java/5227 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/redhat/exhort/integration/providers/snyk/SnykAggregator.java
// List<String> cves... | {
"prefix": "/*\n * Copyright 2023 Red Hat, Inc. and/or its affiliates\n * and other contributors as indicated by the @author tags.\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... | (ref.name(), issues); | {} | {
"repository": "RHEcosystemAppEng-exhort-747acb8",
"file": "src/main/java/com/redhat/exhort/integration/providers/ossindex/OssIndexRequestBuilder.java",
"task_id": "project_cc_java/5227"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/redhat/exhort/integration/providers/ossindex/OssIndexRequestBuilder.java",
"groundtruth_start_lineno": 83,
"repository": "RHEcosystemAppEng-exhort-747acb8",
"right_context_start_lineno": 84,
"task_id": "project_cc_java/5227"... |
cross_code_eval_java::project_cc_java/5295 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/shcm/shsupercm/fabric/stonecutter/StonecutterControllerGradle.java
// ... | {
"prefix": "package io.shcm.shsupercm.fabric.stonecutter.idea;\n\nimport com.intellij.execution.executors.DefaultRunExecutor;\nimport com.intellij.notification.Notification;\nimport com.intellij.notification.NotificationGroup;\nimport com.intellij.notification.NotificationType;\nimport com.intellij.notification.Noti... | (moduleByRoot.get((setup.gradleProject().getChildProjects().get(version)).getProjectDir()), setup); | {} | {
"repository": "SHsuperCM-Stonecutter-937eca5",
"file": "src/idea-integration/java/io/shcm/shsupercm/fabric/stonecutter/idea/StonecutterService.java",
"task_id": "project_cc_java/5295"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/idea-integration/java/io/shcm/shsupercm/fabric/stonecutter/idea/StonecutterService.java",
"groundtruth_start_lineno": 99,
"repository": "SHsuperCM-Stonecutter-937eca5",
"right_context_start_lineno": 100,
"task_id": "project_cc_java/5295"
... |
cross_code_eval_java::project_cc_java/5212 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/test/java/com/redhat/exhort/integration/backend/sbom/SbomParserTest.java
// String fileName = S... | {
"prefix": "/*\n * Copyright 2023 Red Hat, Inc. and/or its affiliates\n * and other contributors as indicated by the @author tags.\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... | add(ref.purl().getType()); | {} | {
"repository": "RHEcosystemAppEng-exhort-747acb8",
"file": "src/main/java/com/redhat/exhort/integration/backend/sbom/SbomParser.java",
"task_id": "project_cc_java/5212"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/redhat/exhort/integration/backend/sbom/SbomParser.java",
"groundtruth_start_lineno": 44,
"repository": "RHEcosystemAppEng-exhort-747acb8",
"right_context_start_lineno": 45,
"task_id": "project_cc_java/5212"
}
} |
cross_code_eval_java::project_cc_java/5301 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/idea-integration/java/io/shcm/shsupercm/fabric/stonecutter/idea/inspections/UnclosedInspection.java... | {
"prefix": "package io.shcm.shsupercm.fabric.stonecutter.cutter;\n\nimport java.io.File;\nimport java.io.IOException;\nimport java.io.Reader;\nimport java.nio.charset.StandardCharsets;\nimport java.nio.file.Files;\nimport java.nio.file.StandardOpenOption;\nimport java.util.Deque;\nimport java.util.LinkedList;\n\npub... | conditionResult = stonecutter.testVersion(expression); | {} | {
"repository": "SHsuperCM-Stonecutter-937eca5",
"file": "src/main/java/io/shcm/shsupercm/fabric/stonecutter/cutter/FileCutter.java",
"task_id": "project_cc_java/5301"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/io/shcm/shsupercm/fabric/stonecutter/cutter/FileCutter.java",
"groundtruth_start_lineno": 68,
"repository": "SHsuperCM-Stonecutter-937eca5",
"right_context_start_lineno": 69,
"task_id": "project_cc_java/5301"
}
} |
cross_code_eval_java::project_cc_java/5220 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/redhat/exhort/integration/providers/ossindex/OssIndexRequestBuilder.java
// retur... | {
"prefix": "/*\n * Copyright 2023 Red Hat, Inc. and/or its affiliates\n * and other contributors as indicated by the @author tags.\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... | (ref.name()).append("@").append(ref.version()).toString(); | {} | {
"repository": "RHEcosystemAppEng-exhort-747acb8",
"file": "src/main/java/com/redhat/exhort/integration/providers/snyk/SnykRequestBuilder.java",
"task_id": "project_cc_java/5220"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/redhat/exhort/integration/providers/snyk/SnykRequestBuilder.java",
"groundtruth_start_lineno": 92,
"repository": "RHEcosystemAppEng-exhort-747acb8",
"right_context_start_lineno": 93,
"task_id": "project_cc_java/5220"
}
} |
cross_code_eval_java::project_cc_java/5205 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// file-bridge-provider/src/main/java/com/rebiekong/tec/tools/file/bridge/jobs/impl/CopyJob.java
// }
... | {
"prefix": "/*\n * Copyright 2023 rebiekong\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 requ... | .of(param.outputSideParam()), RetryJob.NEVER_RETRY); | {} | {
"repository": "RebieKong-file-bridge-c3b4855",
"file": "file-bridge-provider/src/main/java/com/rebiekong/tec/tools/file/bridge/jobs/impl/MoveJob.java",
"task_id": "project_cc_java/5205"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "file-bridge-provider/src/main/java/com/rebiekong/tec/tools/file/bridge/jobs/impl/MoveJob.java",
"groundtruth_start_lineno": 46,
"repository": "RebieKong-file-bridge-c3b4855",
"right_context_start_lineno": 47,
"task_id": "project_cc_java/5205"... |
cross_code_eval_java::project_cc_java/5296 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/idea-integration/java/io/shcm/shsupercm/fabric/stonecutter/idea/StonecutterSetup.java
// }
// ... | {
"prefix": "package io.shcm.shsupercm.fabric.stonecutter.idea;\n\nimport com.intellij.execution.executors.DefaultRunExecutor;\nimport com.intellij.notification.Notification;\nimport com.intellij.notification.NotificationGroup;\nimport com.intellij.notification.NotificationType;\nimport com.intellij.notification.Noti... | findExternalProject(entry.getValue().gradleProject(), entry.getKey()).keySet()) { | {} | {
"repository": "SHsuperCM-Stonecutter-937eca5",
"file": "src/idea-integration/java/io/shcm/shsupercm/fabric/stonecutter/idea/StonecutterService.java",
"task_id": "project_cc_java/5296"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/idea-integration/java/io/shcm/shsupercm/fabric/stonecutter/idea/StonecutterService.java",
"groundtruth_start_lineno": 102,
"repository": "SHsuperCM-Stonecutter-937eca5",
"right_context_start_lineno": 103,
"task_id": "project_cc_java/5296"... |
cross_code_eval_java::project_cc_java/5211 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// plugins/ftp-plugins/src/main/java/com/rebiekong/tec/tools/file/bridge/service/impl/FtpFileServiceImpl.j... | {
"prefix": "/*\n * Copyright 2023 rebiekong\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 requ... | job.setJobIndex(listIndexHolder.getAndIncrement()); | {} | {
"repository": "RebieKong-file-bridge-c3b4855",
"file": "file-bridge-provider/src/main/java/com/rebiekong/tec/tools/file/bridge/FilePipe.java",
"task_id": "project_cc_java/5211"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "file-bridge-provider/src/main/java/com/rebiekong/tec/tools/file/bridge/FilePipe.java",
"groundtruth_start_lineno": 90,
"repository": "RebieKong-file-bridge-c3b4855",
"right_context_start_lineno": 91,
"task_id": "project_cc_java/5211"
}
} |
cross_code_eval_java::project_cc_java/5197 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// file-bridge-common/src/main/java/com/rebiekong/tec/tools/file/bridge/utils/StrUtil.java
// ... | {
"prefix": "/*\n * Copyright 2023 rebiekong\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 requ... | (StrUtil.isBlank(str)) { | {} | {
"repository": "RebieKong-file-bridge-c3b4855",
"file": "file-bridge-common/src/main/java/com/rebiekong/tec/tools/file/bridge/utils/NumberUtil.java",
"task_id": "project_cc_java/5197"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "file-bridge-common/src/main/java/com/rebiekong/tec/tools/file/bridge/utils/NumberUtil.java",
"groundtruth_start_lineno": 25,
"repository": "RebieKong-file-bridge-c3b4855",
"right_context_start_lineno": 26,
"task_id": "project_cc_java/5197"
... |
cross_code_eval_java::project_cc_java/5230 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/redhat/exhort/integration/providers/snyk/SnykRequestBuilder.java
// .forEach(... | {
"prefix": "/*\n * Copyright 2023 Red Hat, Inc. and/or its affiliates\n * and other contributors as indicated by the @author tags.\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... | req.tree() != null && !req.tree().getAll().isEmpty(); | {} | {
"repository": "RHEcosystemAppEng-exhort-747acb8",
"file": "src/main/java/com/redhat/exhort/integration/providers/ossindex/OssIndexRequestBuilder.java",
"task_id": "project_cc_java/5230"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/redhat/exhort/integration/providers/ossindex/OssIndexRequestBuilder.java",
"groundtruth_start_lineno": 64,
"repository": "RHEcosystemAppEng-exhort-747acb8",
"right_context_start_lineno": 65,
"task_id": "project_cc_java/5230"... |
cross_code_eval_java::project_cc_java/5199 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// file-bridge-provider/src/main/java/com/rebiekong/tec/tools/file/bridge/FilePipe.java
// ... | {
"prefix": "/*\n * Copyright 2023 rebiekong\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 requ... | filePipe.close(); | {} | {
"repository": "RebieKong-file-bridge-c3b4855",
"file": "file-bridge-provider/src/main/java/com/rebiekong/tec/tools/file/bridge/FileBridge.java",
"task_id": "project_cc_java/5199"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "file-bridge-provider/src/main/java/com/rebiekong/tec/tools/file/bridge/FileBridge.java",
"groundtruth_start_lineno": 47,
"repository": "RebieKong-file-bridge-c3b4855",
"right_context_start_lineno": 48,
"task_id": "project_cc_java/5199"
}
} |
cross_code_eval_java::project_cc_java/5207 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// file-bridge-provider/src/main/java/com/rebiekong/tec/tools/file/bridge/jobs/impl/MoveJob.java
// ... | {
"prefix": "/*\n * Copyright 2023 rebiekong\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 requ... | deleteJob.run(); | {} | {
"repository": "RebieKong-file-bridge-c3b4855",
"file": "file-bridge-provider/src/main/java/com/rebiekong/tec/tools/file/bridge/jobs/impl/CopyJob.java",
"task_id": "project_cc_java/5207"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "file-bridge-provider/src/main/java/com/rebiekong/tec/tools/file/bridge/jobs/impl/CopyJob.java",
"groundtruth_start_lineno": 53,
"repository": "RebieKong-file-bridge-c3b4855",
"right_context_start_lineno": 54,
"task_id": "project_cc_java/5207"... |
cross_code_eval_java::project_cc_java/5213 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/redhat/exhort/integration/backend/sbom/spdx/SpdxParser.java
// SpdxWrapper wrap... | {
"prefix": "/*\n * Copyright 2023 Red Hat, Inc. and/or its affiliates\n * and other contributors as indicated by the @author tags.\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... | PackageRef ref = tree.root(); | {} | {
"repository": "RHEcosystemAppEng-exhort-747acb8",
"file": "src/main/java/com/redhat/exhort/integration/backend/sbom/SbomParser.java",
"task_id": "project_cc_java/5213"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/redhat/exhort/integration/backend/sbom/SbomParser.java",
"groundtruth_start_lineno": 41,
"repository": "RHEcosystemAppEng-exhort-747acb8",
"right_context_start_lineno": 42,
"task_id": "project_cc_java/5213"
}
} |
cross_code_eval_java::project_cc_java/5208 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// file-bridge-provider/src/main/java/com/rebiekong/tec/tools/file/bridge/jobs/impl/MoveJob.java
// ... | {
"prefix": "/*\n * Copyright 2023 rebiekong\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 requ... | deleteJob = RetryJob.fastFailWrap(DelJob.of(param.outputSideParam())); | {} | {
"repository": "RebieKong-file-bridge-c3b4855",
"file": "file-bridge-provider/src/main/java/com/rebiekong/tec/tools/file/bridge/jobs/impl/CopyJob.java",
"task_id": "project_cc_java/5208"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "file-bridge-provider/src/main/java/com/rebiekong/tec/tools/file/bridge/jobs/impl/CopyJob.java",
"groundtruth_start_lineno": 44,
"repository": "RebieKong-file-bridge-c3b4855",
"right_context_start_lineno": 45,
"task_id": "project_cc_java/5208"... |
cross_code_eval_java::project_cc_java/5306 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/idea-integration/java/io/shcm/shsupercm/fabric/stonecutter/idea/ext/EditorMouseClick.java
// ... | {
"prefix": "package io.shcm.shsupercm.fabric.stonecutter.idea.ui;\n\nimport com.google.common.collect.Lists;\nimport com.intellij.openapi.command.WriteCommandAction;\nimport com.intellij.openapi.editor.Editor;\nimport com.intellij.openapi.editor.FoldRegion;\nimport com.intellij.openapi.fileEditor.FileEditorManager;\... | stonecutter.versions())
versionModel.add(version); | {} | {
"repository": "SHsuperCM-Stonecutter-937eca5",
"file": "src/idea-integration/java/io/shcm/shsupercm/fabric/stonecutter/idea/ui/StonecutterEditorPopup.java",
"task_id": "project_cc_java/5306"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/idea-integration/java/io/shcm/shsupercm/fabric/stonecutter/idea/ui/StonecutterEditorPopup.java",
"groundtruth_start_lineno": 289,
"repository": "SHsuperCM-Stonecutter-937eca5",
"right_context_start_lineno": 291,
"task_id": "project_cc_jav... |
cross_code_eval_java::project_cc_java/5209 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// file-bridge-provider/src/main/java/com/rebiekong/tec/tools/file/bridge/jobs/impl/CopyJob.java
// }
... | {
"prefix": "/*\n * Copyright 2023 rebiekong\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 requ... | = param.getSubParams(MIRROR_MODE_PARAM, MIRROR_MODE_FULL).equals(MIRROR_MODE_APPEND); | {} | {
"repository": "RebieKong-file-bridge-c3b4855",
"file": "file-bridge-provider/src/main/java/com/rebiekong/tec/tools/file/bridge/jobs/impl/CloneJob.java",
"task_id": "project_cc_java/5209"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "file-bridge-provider/src/main/java/com/rebiekong/tec/tools/file/bridge/jobs/impl/CloneJob.java",
"groundtruth_start_lineno": 62,
"repository": "RebieKong-file-bridge-c3b4855",
"right_context_start_lineno": 63,
"task_id": "project_cc_java/5209... |
cross_code_eval_java::project_cc_java/5337 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// backend/src/main/java/com/skkuse/team1/socialhub/routes/UsersRoutes.java
// private static void api... | {
"prefix": "package com.skkuse.team1.socialhub.routes;\n\nimport com.skkuse.team1.socialhub.ExceptionWithHttpCode;\nimport com.skkuse.team1.socialhub.jdbc.impl.ActivityJDBC;\nimport com.skkuse.team1.socialhub.model.Activity;\nimport com.skkuse.team1.socialhub.requests.RequestActivityCommit;\nimport com.skkuse.team1.... | return ActivityJDBC.instance().update(ctx.body().asPojo(Activity.class).setId(id)); | {} | {
"repository": "skku-daniilkim-skku_swe300242_team1-7b9f8fc",
"file": "backend/src/main/java/com/skkuse/team1/socialhub/routes/ActivityRoutes.java",
"task_id": "project_cc_java/5337"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "backend/src/main/java/com/skkuse/team1/socialhub/routes/ActivityRoutes.java",
"groundtruth_start_lineno": 58,
"repository": "skku-daniilkim-skku_swe300242_team1-7b9f8fc",
"right_context_start_lineno": 59,
"task_id": "project_cc_java/5337"
}... |
cross_code_eval_java::project_cc_java/5332 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// backend/src/main/java/com/skkuse/team1/socialhub/routes/ActivityRoutes.java
// private static void ... | {
"prefix": "package com.skkuse.team1.socialhub.routes;\n\nimport com.skkuse.team1.socialhub.jdbc.impl.UserJDBC;\nimport com.skkuse.team1.socialhub.requests.RequestChangePassword;\nimport com.skkuse.team1.socialhub.requests.RequestLogin;\nimport com.skkuse.team1.socialhub.routes.annotations.APIRoute;\nimport com.skku... | (request.getLogin(), request.getPassword()).onComplete(ar -> { | {} | {
"repository": "skku-daniilkim-skku_swe300242_team1-7b9f8fc",
"file": "backend/src/main/java/com/skkuse/team1/socialhub/routes/UsersRoutes.java",
"task_id": "project_cc_java/5332"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "backend/src/main/java/com/skkuse/team1/socialhub/routes/UsersRoutes.java",
"groundtruth_start_lineno": 44,
"repository": "skku-daniilkim-skku_swe300242_team1-7b9f8fc",
"right_context_start_lineno": 45,
"task_id": "project_cc_java/5332"
}
} |
cross_code_eval_java::project_cc_java/5336 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// backend/src/main/java/com/skkuse/team1/socialhub/routes/UsersRoutes.java
// private static void api... | {
"prefix": "package com.skkuse.team1.socialhub.routes;\n\nimport com.skkuse.team1.socialhub.ExceptionWithHttpCode;\nimport com.skkuse.team1.socialhub.jdbc.impl.ActivityJDBC;\nimport com.skkuse.team1.socialhub.model.Activity;\nimport com.skkuse.team1.socialhub.requests.RequestActivityCommit;\nimport com.skkuse.team1.... | ActivityJDBC.instance().getById(id).compose(found -> { | {} | {
"repository": "skku-daniilkim-skku_swe300242_team1-7b9f8fc",
"file": "backend/src/main/java/com/skkuse/team1/socialhub/routes/ActivityRoutes.java",
"task_id": "project_cc_java/5336"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "backend/src/main/java/com/skkuse/team1/socialhub/routes/ActivityRoutes.java",
"groundtruth_start_lineno": 56,
"repository": "skku-daniilkim-skku_swe300242_team1-7b9f8fc",
"right_context_start_lineno": 57,
"task_id": "project_cc_java/5336"
}... |
cross_code_eval_java::project_cc_java/5327 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// backend/src/main/java/com/skkuse/team1/socialhub/routes/ActivityRoutes.java
// private static void ... | {
"prefix": "package com.skkuse.team1.socialhub.routes;\n\nimport com.skkuse.team1.socialhub.jdbc.impl.UserJDBC;\nimport com.skkuse.team1.socialhub.requests.RequestChangePassword;\nimport com.skkuse.team1.socialhub.requests.RequestLogin;\nimport com.skkuse.team1.socialhub.routes.annotations.APIRoute;\nimport com.skku... | UserJDBC.instance().login(request.getLogin(), request.getPassword()).onComplete(ar -> { | {} | {
"repository": "skku-daniilkim-skku_swe300242_team1-7b9f8fc",
"file": "backend/src/main/java/com/skkuse/team1/socialhub/routes/UsersRoutes.java",
"task_id": "project_cc_java/5327"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "backend/src/main/java/com/skkuse/team1/socialhub/routes/UsersRoutes.java",
"groundtruth_start_lineno": 44,
"repository": "skku-daniilkim-skku_swe300242_team1-7b9f8fc",
"right_context_start_lineno": 45,
"task_id": "project_cc_java/5327"
}
} |
cross_code_eval_java::project_cc_java/5312 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/shcm/shsupercm/fabric/stonecutter/StonecutterBuildGradle.java
// loaderCopy.mk... | {
"prefix": "package io.shcm.shsupercm.fabric.stonecutter;\n\nimport io.shcm.shsupercm.fabric.stonecutter.cutter.StonecutterTask;\nimport org.gradle.api.Project;\nimport org.gradle.api.tasks.TaskProvider;\n\nimport java.io.File;\nimport java.io.IOException;\nimport java.nio.charset.StandardCharsets;\nimport java.nio.... | task.getOutputDir().set(task.getInputDir().get()); | {} | {
"repository": "SHsuperCM-Stonecutter-937eca5",
"file": "src/main/java/io/shcm/shsupercm/fabric/stonecutter/StonecutterControllerGradle.java",
"task_id": "project_cc_java/5312"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/io/shcm/shsupercm/fabric/stonecutter/StonecutterControllerGradle.java",
"groundtruth_start_lineno": 40,
"repository": "SHsuperCM-Stonecutter-937eca5",
"right_context_start_lineno": 41,
"task_id": "project_cc_java/5312"
}
} |
cross_code_eval_java::project_cc_java/5333 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// backend/src/main/java/com/skkuse/team1/socialhub/routes/ActivityRoutes.java
// private static void ... | {
"prefix": "package com.skkuse.team1.socialhub.routes;\n\nimport com.skkuse.team1.socialhub.jdbc.impl.UserJDBC;\nimport com.skkuse.team1.socialhub.requests.RequestChangePassword;\nimport com.skkuse.team1.socialhub.requests.RequestLogin;\nimport com.skkuse.team1.socialhub.routes.annotations.APIRoute;\nimport com.skku... | instance().login(request.getLogin(), request.getPassword()).onComplete(ar -> { | {} | {
"repository": "skku-daniilkim-skku_swe300242_team1-7b9f8fc",
"file": "backend/src/main/java/com/skkuse/team1/socialhub/routes/UsersRoutes.java",
"task_id": "project_cc_java/5333"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "backend/src/main/java/com/skkuse/team1/socialhub/routes/UsersRoutes.java",
"groundtruth_start_lineno": 44,
"repository": "skku-daniilkim-skku_swe300242_team1-7b9f8fc",
"right_context_start_lineno": 45,
"task_id": "project_cc_java/5333"
}
} |
cross_code_eval_java::project_cc_java/5311 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/shcm/shsupercm/fabric/stonecutter/StonecutterBuildGradle.java
// loaderCopy.mk... | {
"prefix": "package io.shcm.shsupercm.fabric.stonecutter;\n\nimport io.shcm.shsupercm.fabric.stonecutter.cutter.StonecutterTask;\nimport org.gradle.api.Project;\nimport org.gradle.api.tasks.TaskProvider;\n\nimport java.io.File;\nimport java.io.IOException;\nimport java.nio.charset.StandardCharsets;\nimport java.nio.... | task.getInputDir().set(afterEvaluate.file("./src")); | {} | {
"repository": "SHsuperCM-Stonecutter-937eca5",
"file": "src/main/java/io/shcm/shsupercm/fabric/stonecutter/StonecutterControllerGradle.java",
"task_id": "project_cc_java/5311"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/io/shcm/shsupercm/fabric/stonecutter/StonecutterControllerGradle.java",
"groundtruth_start_lineno": 39,
"repository": "SHsuperCM-Stonecutter-937eca5",
"right_context_start_lineno": 40,
"task_id": "project_cc_java/5311"
}
} |
cross_code_eval_java::project_cc_java/5313 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/shcm/shsupercm/fabric/stonecutter/StonecutterBuildGradle.java
// loaderCopy.mk... | {
"prefix": "package io.shcm.shsupercm.fabric.stonecutter;\n\nimport io.shcm.shsupercm.fabric.stonecutter.cutter.StonecutterTask;\nimport org.gradle.api.Project;\nimport org.gradle.api.tasks.TaskProvider;\n\nimport java.io.File;\nimport java.io.IOException;\nimport java.nio.charset.StandardCharsets;\nimport java.nio.... | .getOutputDir().set(task.getInputDir().get()); | {} | {
"repository": "SHsuperCM-Stonecutter-937eca5",
"file": "src/main/java/io/shcm/shsupercm/fabric/stonecutter/StonecutterControllerGradle.java",
"task_id": "project_cc_java/5313"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/io/shcm/shsupercm/fabric/stonecutter/StonecutterControllerGradle.java",
"groundtruth_start_lineno": 40,
"repository": "SHsuperCM-Stonecutter-937eca5",
"right_context_start_lineno": 41,
"task_id": "project_cc_java/5313"
}
} |
cross_code_eval_java::project_cc_java/5345 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/net/socketconnection/jva/ValorantAPI.java
// for(JsonElement articleElement : art... | {
"prefix": "package net.socketconnection.jva.match;\n\nimport com.google.gson.JsonArray;\nimport com.google.gson.JsonElement;\nimport com.google.gson.JsonObject;\nimport net.socketconnection.jva.ValorantAPI;\nimport net.socketconnection.jva.enums.GameMode;\nimport net.socketconnection.jva.enums.Map;\nimport net.sock... | switch (matchPlayer.getTeam()) { | {} | {
"repository": "SocketC0nnection-JVA-83eab43",
"file": "src/main/java/net/socketconnection/jva/match/Match.java",
"task_id": "project_cc_java/5345"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/socketconnection/jva/match/Match.java",
"groundtruth_start_lineno": 68,
"repository": "SocketC0nnection-JVA-83eab43",
"right_context_start_lineno": 69,
"task_id": "project_cc_java/5345"
}
} |
cross_code_eval_java::project_cc_java/5344 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/net/socketconnection/jva/player/ValorantPlayer.java
// continue;
// ... | {
"prefix": "package net.socketconnection.jva.match;\n\nimport com.google.gson.JsonArray;\nimport com.google.gson.JsonElement;\nimport com.google.gson.JsonObject;\nimport net.socketconnection.jva.ValorantAPI;\nimport net.socketconnection.jva.enums.GameMode;\nimport net.socketconnection.jva.enums.Map;\nimport net.sock... | (valorantAPI.sendRestRequest("/v2/match/" + matchId).getAsJsonObject().getAsJsonObject("data")); | {} | {
"repository": "SocketC0nnection-JVA-83eab43",
"file": "src/main/java/net/socketconnection/jva/match/Match.java",
"task_id": "project_cc_java/5344"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/socketconnection/jva/match/Match.java",
"groundtruth_start_lineno": 104,
"repository": "SocketC0nnection-JVA-83eab43",
"right_context_start_lineno": 105,
"task_id": "project_cc_java/5344"
}
} |
cross_code_eval_java::project_cc_java/5352 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/net/socketconnection/jva/player/ValorantPlayer.java
// }
// return matche... | {
"prefix": "package net.socketconnection.jva;\n\nimport com.google.gson.Gson;\nimport com.google.gson.JsonArray;\nimport com.google.gson.JsonElement;\nimport com.google.gson.JsonObject;\nimport net.socketconnection.jva.enums.Language;\nimport net.socketconnection.jva.enums.Region;\nimport net.socketconnection.jva.ex... | JsonObject statusData = sendRestRequest("/v1/status/" + region.getQuery()).getAsJsonObject().getAsJsonObject("data"); | {} | {
"repository": "SocketC0nnection-JVA-83eab43",
"file": "src/main/java/net/socketconnection/jva/ValorantAPI.java",
"task_id": "project_cc_java/5352"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/socketconnection/jva/ValorantAPI.java",
"groundtruth_start_lineno": 75,
"repository": "SocketC0nnection-JVA-83eab43",
"right_context_start_lineno": 76,
"task_id": "project_cc_java/5352"
}
} |
cross_code_eval_java::project_cc_java/5351 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/net/socketconnection/jva/player/ValorantPlayer.java
// public Match[] getMatchHistory... | {
"prefix": "package net.socketconnection.jva;\n\nimport com.google.gson.Gson;\nimport com.google.gson.JsonArray;\nimport com.google.gson.JsonElement;\nimport com.google.gson.JsonObject;\nimport net.socketconnection.jva.enums.Language;\nimport net.socketconnection.jva.enums.Region;\nimport net.socketconnection.jva.ex... | + region.getQuery() + "?name=" + data[0] + "&tag=" + data[1]).getAsJsonArray(); | {} | {
"repository": "SocketC0nnection-JVA-83eab43",
"file": "src/main/java/net/socketconnection/jva/ValorantAPI.java",
"task_id": "project_cc_java/5351"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/socketconnection/jva/ValorantAPI.java",
"groundtruth_start_lineno": 58,
"repository": "SocketC0nnection-JVA-83eab43",
"right_context_start_lineno": 59,
"task_id": "project_cc_java/5351"
}
} |
cross_code_eval_java::project_cc_java/5325 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/andersentask/bookshop/controllers/BookController.java
// @PostMapping("{bookId}/s... | {
"prefix": "package com.andersentask.bookshop.controllers;\n\nimport com.andersentask.bookshop.broker.Commands;\nimport com.andersentask.bookshop.order.entities.Order;\nimport com.andersentask.bookshop.order.enums.OrderSort;\nimport com.andersentask.bookshop.order.enums.OrderStatus;\nimport lombok.RequiredArgsConstr... | commands.getOrderById(orderId),
HttpStatus.OK); | {} | {
"repository": "skfl-andersen-task-ccf50ec",
"file": "src/main/java/com/andersentask/bookshop/controllers/OrderController.java",
"task_id": "project_cc_java/5325"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/andersentask/bookshop/controllers/OrderController.java",
"groundtruth_start_lineno": 42,
"repository": "skfl-andersen-task-ccf50ec",
"right_context_start_lineno": 44,
"task_id": "project_cc_java/5325"
}
} |
cross_code_eval_java::project_cc_java/5322 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/andersentask/bookshop/controllers/BookController.java
// @PostMapping("{bookId}/s... | {
"prefix": "package com.andersentask.bookshop.controllers;\n\nimport com.andersentask.bookshop.broker.Commands;\nimport com.andersentask.bookshop.request.entities.Request;\nimport lombok.RequiredArgsConstructor;\nimport org.springframework.http.HttpStatus;\nimport org.springframework.http.ResponseEntity;\nimport org... | = commands.createRequest(body.get("bookId"))
.toString(); | {} | {
"repository": "skfl-andersen-task-ccf50ec",
"file": "src/main/java/com/andersentask/bookshop/controllers/RequestController.java",
"task_id": "project_cc_java/5322"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/andersentask/bookshop/controllers/RequestController.java",
"groundtruth_start_lineno": 35,
"repository": "skfl-andersen-task-ccf50ec",
"right_context_start_lineno": 37,
"task_id": "project_cc_java/5322"
}
} |
cross_code_eval_java::project_cc_java/5326 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/andersentask/bookshop/broker/enums/ResultOfOperation.java
// public enum ChangeSt... | {
"prefix": "package com.andersentask.bookshop.broker;\n\nimport com.andersentask.bookshop.book.entities.Book;\nimport com.andersentask.bookshop.book.enums.BookSort;\nimport com.andersentask.bookshop.book.enums.BookStatus;\nimport com.andersentask.bookshop.book.services.BookService;\nimport com.andersentask.bookshop.... | > booksToOrder = bookService.getBooksByIds(ids); | {} | {
"repository": "skfl-andersen-task-ccf50ec",
"file": "src/main/java/com/andersentask/bookshop/broker/Commands.java",
"task_id": "project_cc_java/5326"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/andersentask/bookshop/broker/Commands.java",
"groundtruth_start_lineno": 107,
"repository": "skfl-andersen-task-ccf50ec",
"right_context_start_lineno": 108,
"task_id": "project_cc_java/5326"
}
} |
cross_code_eval_java::project_cc_java/5323 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/andersentask/bookshop/controllers/BookController.java
// @PostMapping("{bookId}/s... | {
"prefix": "package com.andersentask.bookshop.controllers;\n\nimport com.andersentask.bookshop.broker.Commands;\nimport com.andersentask.bookshop.request.entities.Request;\nimport lombok.RequiredArgsConstructor;\nimport org.springframework.http.HttpStatus;\nimport org.springframework.http.ResponseEntity;\nimport org... | <>(commands.getNumberOfRequestsOnBook(bookId),
HttpStatus.OK); | {} | {
"repository": "skfl-andersen-task-ccf50ec",
"file": "src/main/java/com/andersentask/bookshop/controllers/RequestController.java",
"task_id": "project_cc_java/5323"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/andersentask/bookshop/controllers/RequestController.java",
"groundtruth_start_lineno": 43,
"repository": "skfl-andersen-task-ccf50ec",
"right_context_start_lineno": 45,
"task_id": "project_cc_java/5323"
}
} |
cross_code_eval_java::project_cc_java/5415 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/br/org/soujava/pomeditor/mojo/AddDependencyMojo.java
// }
// private PomChange ch... | {
"prefix": "/*\n * Copyright 2023 the original author or authors.\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 * ... | dependency.getVersion(),
dependency.getType(),
dependency.getClassifier(),
dependency.getScope()
); | {} | {
"repository": "soujava-pom-editor-maven-plugin-0caa82a",
"file": "src/main/java/br/org/soujava/pomeditor/api/AddDependency.java",
"task_id": "project_cc_java/5415"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/br/org/soujava/pomeditor/api/AddDependency.java",
"groundtruth_start_lineno": 81,
"repository": "soujava-pom-editor-maven-plugin-0caa82a",
"right_context_start_lineno": 86,
"task_id": "project_cc_java/5415"
}
} |
cross_code_eval_java::project_cc_java/5417 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/br/org/soujava/pomeditor/mojo/AddDependencyMojo.java
// throw new MojoFailure... | {
"prefix": "/*\n * Copyright 2023 the original author or authors.\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 * ... | dependency.getClassifier(),
dependency.getScope()
); | {} | {
"repository": "soujava-pom-editor-maven-plugin-0caa82a",
"file": "src/main/java/br/org/soujava/pomeditor/api/AddDependency.java",
"task_id": "project_cc_java/5417"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/br/org/soujava/pomeditor/api/AddDependency.java",
"groundtruth_start_lineno": 83,
"repository": "soujava-pom-editor-maven-plugin-0caa82a",
"right_context_start_lineno": 86,
"task_id": "project_cc_java/5417"
}
} |
cross_code_eval_java::project_cc_java/5419 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/br/org/soujava/pomeditor/mojo/RollbackMojo.java
// .orElse(PomRollbac... | {
"prefix": "/*\n * Copyright 2023 the original author or authors.\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 * ... | pomFile).execute(() -> dependencyCommand().accept(pomFile, dependency)); | {} | {
"repository": "soujava-pom-editor-maven-plugin-0caa82a",
"file": "src/main/java/br/org/soujava/pomeditor/mojo/AddDependencyMojo.java",
"task_id": "project_cc_java/5419"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/br/org/soujava/pomeditor/mojo/AddDependencyMojo.java",
"groundtruth_start_lineno": 69,
"repository": "soujava-pom-editor-maven-plugin-0caa82a",
"right_context_start_lineno": 70,
"task_id": "project_cc_java/5419"
}
} |
cross_code_eval_java::project_cc_java/5423 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/souslesens/Jowl/Controller/ReasonerController.java
// return Response... | {
"prefix": "package com.souslesens.Jowl.Controller;\n\nimport java.util.List;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.http.ResponseEntity;\nimport org.springframework.web.bind.annotation.PostMapping;\nimport org.springframework.web.bind.annotation.RequestBody;\nimp... | List<jenaTripleParser> result = serviceJena.getTriples(filePath, url, ontologyContentEncoded64) ; | {} | {
"repository": "souslesens-jowl-0fd545e",
"file": "src/main/java/com/souslesens/Jowl/Controller/JenaController.java",
"task_id": "project_cc_java/5423"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/souslesens/Jowl/Controller/JenaController.java",
"groundtruth_start_lineno": 35,
"repository": "souslesens-jowl-0fd545e",
"right_context_start_lineno": 36,
"task_id": "project_cc_java/5423"
}
} |
cross_code_eval_java::project_cc_java/5416 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/br/org/soujava/pomeditor/mojo/AddDependencyMojo.java
// }
// private PomChange ch... | {
"prefix": "/*\n * Copyright 2023 the original author or authors.\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 * ... | dependency.getType(),
dependency.getClassifier(),
dependency.getScope()
); | {} | {
"repository": "soujava-pom-editor-maven-plugin-0caa82a",
"file": "src/main/java/br/org/soujava/pomeditor/api/AddDependency.java",
"task_id": "project_cc_java/5416"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/br/org/soujava/pomeditor/api/AddDependency.java",
"groundtruth_start_lineno": 82,
"repository": "soujava-pom-editor-maven-plugin-0caa82a",
"right_context_start_lineno": 86,
"task_id": "project_cc_java/5416"
}
} |
cross_code_eval_java::project_cc_java/5434 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/souslesens/Jowl/Controller/ReasonerController.java
// result = reasonerS... | {
"prefix": "package com.souslesens.Jowl.Controller;\n\nimport java.nio.charset.StandardCharsets;\nimport java.util.Base64;\nimport java.util.List;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.http.ResponseEntity;\nimport org.springframework.web.bind.annotation.PostMappi... | SWRLService.SWRLruleReclassification(filePath, url,reqBodies,reqHead); | {} | {
"repository": "souslesens-jowl-0fd545e",
"file": "src/main/java/com/souslesens/Jowl/Controller/SWRLController.java",
"task_id": "project_cc_java/5434"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/souslesens/Jowl/Controller/SWRLController.java",
"groundtruth_start_lineno": 50,
"repository": "souslesens-jowl-0fd545e",
"right_context_start_lineno": 51,
"task_id": "project_cc_java/5434"
}
} |
cross_code_eval_java::project_cc_java/5436 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/souslesens/Jowl/Controller/SWRLController.java
// byte[] ontologyContentDecoded6... | {
"prefix": "package com.souslesens.Jowl.Controller;\n\nimport java.nio.charset.StandardCharsets;\nimport java.util.ArrayList;\nimport java.util.Base64;\nimport java.util.HashMap;\nimport java.util.LinkedList;\nimport java.util.List;\nimport java.util.Map;\nimport org.springframework.beans.factory.annotation.Autowire... | equivalentClass = request.getEquivalentClass(); | {} | {
"repository": "souslesens-jowl-0fd545e",
"file": "src/main/java/com/souslesens/Jowl/Controller/ReasonerController.java",
"task_id": "project_cc_java/5436"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/souslesens/Jowl/Controller/ReasonerController.java",
"groundtruth_start_lineno": 281,
"repository": "souslesens-jowl-0fd545e",
"right_context_start_lineno": 282,
"task_id": "project_cc_java/5436"
}
} |
cross_code_eval_java::project_cc_java/5435 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/souslesens/Jowl/Controller/ReasonerController.java
// result = reasonerS... | {
"prefix": "package com.souslesens.Jowl.Controller;\n\nimport java.nio.charset.StandardCharsets;\nimport java.util.Base64;\nimport java.util.List;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.http.ResponseEntity;\nimport org.springframework.web.bind.annotation.PostMappi... | result = SWRLService.SWRLruleReclassificationB64(ontologyContentDecoded64,reqBodies,reqHead); | {} | {
"repository": "souslesens-jowl-0fd545e",
"file": "src/main/java/com/souslesens/Jowl/Controller/SWRLController.java",
"task_id": "project_cc_java/5435"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/souslesens/Jowl/Controller/SWRLController.java",
"groundtruth_start_lineno": 52,
"repository": "souslesens-jowl-0fd545e",
"right_context_start_lineno": 53,
"task_id": "project_cc_java/5435"
}
} |
cross_code_eval_java::project_cc_java/5440 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/souslesens/Jowl/model/parametresInputInference.java
// this.UnionOf = UnionO... | {
"prefix": "package com.souslesens.Jowl.Controller;\n\nimport java.nio.charset.StandardCharsets;\nimport java.util.ArrayList;\nimport java.util.Base64;\nimport java.util.HashMap;\nimport java.util.LinkedList;\nimport java.util.List;\nimport java.util.Map;\nimport org.springframework.beans.factory.annotation.Autowire... | DisjointClasses = request.getDisjointClasses(); | {} | {
"repository": "souslesens-jowl-0fd545e",
"file": "src/main/java/com/souslesens/Jowl/Controller/ReasonerController.java",
"task_id": "project_cc_java/5440"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/souslesens/Jowl/Controller/ReasonerController.java",
"groundtruth_start_lineno": 285,
"repository": "souslesens-jowl-0fd545e",
"right_context_start_lineno": 286,
"task_id": "project_cc_java/5440"
}
} |
cross_code_eval_java::project_cc_java/5445 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/souslesens/Jowl/Controller/JenaController.java
// String url = request.getUrl... | {
"prefix": "package com.souslesens.Jowl.Controller;\n\nimport java.nio.charset.StandardCharsets;\nimport java.util.ArrayList;\nimport java.util.Base64;\nimport java.util.HashMap;\nimport java.util.LinkedList;\nimport java.util.List;\nimport java.util.Map;\nimport org.springframework.beans.factory.annotation.Autowire... | = request.getParams(); | {} | {
"repository": "souslesens-jowl-0fd545e",
"file": "src/main/java/com/souslesens/Jowl/Controller/ReasonerController.java",
"task_id": "project_cc_java/5445"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/souslesens/Jowl/Controller/ReasonerController.java",
"groundtruth_start_lineno": 142,
"repository": "souslesens-jowl-0fd545e",
"right_context_start_lineno": 143,
"task_id": "project_cc_java/5445"
}
} |
cross_code_eval_java::project_cc_java/5452 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/souslesens/Jowl/Controller/ReasonerAlternativeAPIController.java
// } cat... | {
"prefix": "package com.souslesens.Jowl.Controller;\n\nimport java.nio.charset.StandardCharsets;\nimport java.util.ArrayList;\nimport java.util.Base64;\nimport java.util.HashMap;\nimport java.util.LinkedList;\nimport java.util.List;\nimport java.util.Map;\nimport org.springframework.beans.factory.annotation.Autowire... | = reasonerService.getUnsatisfaisableClasses(filePath, url); | {} | {
"repository": "souslesens-jowl-0fd545e",
"file": "src/main/java/com/souslesens/Jowl/Controller/ReasonerController.java",
"task_id": "project_cc_java/5452"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/souslesens/Jowl/Controller/ReasonerController.java",
"groundtruth_start_lineno": 54,
"repository": "souslesens-jowl-0fd545e",
"right_context_start_lineno": 55,
"task_id": "project_cc_java/5452"
}
} |
cross_code_eval_java::project_cc_java/5455 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/souslesens/Jowl/Controller/ReasonerAlternativeAPIController.java
// } cat... | {
"prefix": "package com.souslesens.Jowl.Controller;\n\nimport java.nio.charset.StandardCharsets;\nimport java.util.ArrayList;\nimport java.util.Base64;\nimport java.util.HashMap;\nimport java.util.LinkedList;\nimport java.util.List;\nimport java.util.Map;\nimport org.springframework.beans.factory.annotation.Autowire... | = reasonerService.postConsistency(filePath, url); | {} | {
"repository": "souslesens-jowl-0fd545e",
"file": "src/main/java/com/souslesens/Jowl/Controller/ReasonerController.java",
"task_id": "project_cc_java/5455"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/souslesens/Jowl/Controller/ReasonerController.java",
"groundtruth_start_lineno": 123,
"repository": "souslesens-jowl-0fd545e",
"right_context_start_lineno": 124,
"task_id": "project_cc_java/5455"
}
} |
cross_code_eval_java::project_cc_java/5456 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/souslesens/Jowl/Controller/SWRLController.java
// }
// r... | {
"prefix": "package com.souslesens.Jowl.Controller;\n\nimport java.nio.charset.StandardCharsets;\nimport java.util.ArrayList;\nimport java.util.Base64;\nimport java.util.HashMap;\nimport java.util.LinkedList;\nimport java.util.List;\nimport java.util.Map;\nimport org.springframework.beans.factory.annotation.Autowire... | reasonerService.postConsistencyContent(ontologyContentDecoded64); | {} | {
"repository": "souslesens-jowl-0fd545e",
"file": "src/main/java/com/souslesens/Jowl/Controller/ReasonerController.java",
"task_id": "project_cc_java/5456"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/souslesens/Jowl/Controller/ReasonerController.java",
"groundtruth_start_lineno": 126,
"repository": "souslesens-jowl-0fd545e",
"right_context_start_lineno": 127,
"task_id": "project_cc_java/5456"
}
} |
cross_code_eval_java::project_cc_java/5457 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/souslesens/Jowl/Controller/ReasonerAlternativeAPIController.java
// } cat... | {
"prefix": "package com.souslesens.Jowl.Controller;\n\nimport java.nio.charset.StandardCharsets;\nimport java.util.ArrayList;\nimport java.util.Base64;\nimport java.util.HashMap;\nimport java.util.LinkedList;\nimport java.util.List;\nimport java.util.Map;\nimport org.springframework.beans.factory.annotation.Autowire... | reasonerService.postInferences(filePath, url,valuesList); | {} | {
"repository": "souslesens-jowl-0fd545e",
"file": "src/main/java/com/souslesens/Jowl/Controller/ReasonerController.java",
"task_id": "project_cc_java/5457"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/souslesens/Jowl/Controller/ReasonerController.java",
"groundtruth_start_lineno": 200,
"repository": "souslesens-jowl-0fd545e",
"right_context_start_lineno": 201,
"task_id": "project_cc_java/5457"
}
} |
cross_code_eval_java::project_cc_java/5458 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/souslesens/Jowl/Controller/SWRLController.java
// }
// r... | {
"prefix": "package com.souslesens.Jowl.Controller;\n\nimport java.nio.charset.StandardCharsets;\nimport java.util.ArrayList;\nimport java.util.Base64;\nimport java.util.HashMap;\nimport java.util.LinkedList;\nimport java.util.List;\nimport java.util.Map;\nimport org.springframework.beans.factory.annotation.Autowire... | result = reasonerService.postInferencesContent(ontologyContentDecoded64,valuesList); | {} | {
"repository": "souslesens-jowl-0fd545e",
"file": "src/main/java/com/souslesens/Jowl/Controller/ReasonerController.java",
"task_id": "project_cc_java/5458"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/souslesens/Jowl/Controller/ReasonerController.java",
"groundtruth_start_lineno": 202,
"repository": "souslesens-jowl-0fd545e",
"right_context_start_lineno": 203,
"task_id": "project_cc_java/5458"
}
} |
cross_code_eval_java::project_cc_java/5454 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/souslesens/Jowl/Controller/ReasonerAlternativeAPIController.java
// } cat... | {
"prefix": "package com.souslesens.Jowl.Controller;\n\nimport java.nio.charset.StandardCharsets;\nimport java.util.ArrayList;\nimport java.util.Base64;\nimport java.util.HashMap;\nimport java.util.LinkedList;\nimport java.util.List;\nimport java.util.Map;\nimport org.springframework.beans.factory.annotation.Autowire... | result = reasonerService.getInferences(filePath, url); | {} | {
"repository": "souslesens-jowl-0fd545e",
"file": "src/main/java/com/souslesens/Jowl/Controller/ReasonerController.java",
"task_id": "project_cc_java/5454"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/souslesens/Jowl/Controller/ReasonerController.java",
"groundtruth_start_lineno": 91,
"repository": "souslesens-jowl-0fd545e",
"right_context_start_lineno": 92,
"task_id": "project_cc_java/5454"
}
} |
cross_code_eval_java::project_cc_java/5459 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/souslesens/Jowl/Controller/ReasonerAlternativeAPIController.java
// } cat... | {
"prefix": "package com.souslesens.Jowl.Controller;\n\nimport java.nio.charset.StandardCharsets;\nimport java.util.ArrayList;\nimport java.util.Base64;\nimport java.util.HashMap;\nimport java.util.LinkedList;\nimport java.util.List;\nimport java.util.Map;\nimport org.springframework.beans.factory.annotation.Autowire... | = reasonerService.postUnsatisfaisableClasses(filePath, url); | {} | {
"repository": "souslesens-jowl-0fd545e",
"file": "src/main/java/com/souslesens/Jowl/Controller/ReasonerController.java",
"task_id": "project_cc_java/5459"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/souslesens/Jowl/Controller/ReasonerController.java",
"groundtruth_start_lineno": 230,
"repository": "souslesens-jowl-0fd545e",
"right_context_start_lineno": 231,
"task_id": "project_cc_java/5459"
}
} |
cross_code_eval_java::project_cc_java/5515 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// api/src/main/java/sh/pancake/serdemc/network/io/PacketDataWriter.java
// }
// public void readN... | {
"prefix": "/*\n * Created on Sun Mar 26 2023\n *\n * Copyright (c) storycraft. Licensed under the Apache Licence 2.0.\n */\npackage sh.pancake.serdemc.data.nbt.io;\n\nimport java.io.IOException;\nimport java.util.Map;\n\nimport javax.annotation.Nullable;\n\nimport lombok.AllArgsConstructor;\nimport sh.pancake.serde... | writer.writeInt(length); | {} | {
"repository": "storycraft-serde-mc-757a9e4",
"file": "api/src/main/java/sh/pancake/serdemc/data/nbt/io/NbtWriter.java",
"task_id": "project_cc_java/5515"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "api/src/main/java/sh/pancake/serdemc/data/nbt/io/NbtWriter.java",
"groundtruth_start_lineno": 92,
"repository": "storycraft-serde-mc-757a9e4",
"right_context_start_lineno": 93,
"task_id": "project_cc_java/5515"
}
} |
cross_code_eval_java::project_cc_java/5517 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// api/src/main/java/sh/pancake/serdemc/data/nbt/io/NbtWriter.java
// case NbtTagValue.TAG_BYT... | {
"prefix": "/*\n * Created on Sun Mar 26 2023\n *\n * Copyright (c) storycraft. Licensed under the Apache Licence 2.0.\n */\npackage sh.pancake.serdemc.data.nbt.io;\n\nimport java.io.IOException;\nimport java.nio.charset.StandardCharsets;\n\nimport javax.annotation.Nullable;\n\nimport lombok.AllArgsConstructor;\nimp... | : return NbtTagValue.fromByte(readByte()); | {} | {
"repository": "storycraft-serde-mc-757a9e4",
"file": "api/src/main/java/sh/pancake/serdemc/data/nbt/io/NbtReader.java",
"task_id": "project_cc_java/5517"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "api/src/main/java/sh/pancake/serdemc/data/nbt/io/NbtReader.java",
"groundtruth_start_lineno": 126,
"repository": "storycraft-serde-mc-757a9e4",
"right_context_start_lineno": 127,
"task_id": "project_cc_java/5517"
}
} |
cross_code_eval_java::project_cc_java/5513 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// api/src/main/java/sh/pancake/serdemc/network/io/PacketDataWriter.java
// throw new RuntimeE... | {
"prefix": "/*\n * Created on Sun Mar 26 2023\n *\n * Copyright (c) storycraft. Licensed under the Apache Licence 2.0.\n */\npackage sh.pancake.serdemc.data.nbt.io;\n\nimport java.io.IOException;\nimport java.util.Map;\n\nimport javax.annotation.Nullable;\n\nimport lombok.AllArgsConstructor;\nimport sh.pancake.serde... | writer.writeShortUnsigned(value.length()); | {} | {
"repository": "storycraft-serde-mc-757a9e4",
"file": "api/src/main/java/sh/pancake/serdemc/data/nbt/io/NbtWriter.java",
"task_id": "project_cc_java/5513"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "api/src/main/java/sh/pancake/serdemc/data/nbt/io/NbtWriter.java",
"groundtruth_start_lineno": 52,
"repository": "storycraft-serde-mc-757a9e4",
"right_context_start_lineno": 53,
"task_id": "project_cc_java/5513"
}
} |
cross_code_eval_java::project_cc_java/5495 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// api/src/main/java/sh/pancake/serdemc/io/ByteBufferWriter.java
// public void writeShort(short value... | {
"prefix": "/*\n * Created on Sun Mar 26 2023\n *\n * Copyright (c) storycraft. Licensed under the Apache Licence 2.0.\n */\npackage sh.pancake.serdemc.data.nbt;\n\nimport java.util.Objects;\n\npublic abstract class NbtTagValue<T> {\n public static final byte TAG_END = 0;\n public static final byte TAG_BYTE = ... | visitor.visitByte(value); | {} | {
"repository": "storycraft-serde-mc-757a9e4",
"file": "api/src/main/java/sh/pancake/serdemc/data/nbt/NbtTagValue.java",
"task_id": "project_cc_java/5495"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "api/src/main/java/sh/pancake/serdemc/data/nbt/NbtTagValue.java",
"groundtruth_start_lineno": 38,
"repository": "storycraft-serde-mc-757a9e4",
"right_context_start_lineno": 39,
"task_id": "project_cc_java/5495"
}
} |
cross_code_eval_java::project_cc_java/5511 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// api/src/main/java/sh/pancake/serdemc/io/DataWriter.java
// default void writeShortUnsigned(int valu... | {
"prefix": "/*\n * Created on Sun Mar 26 2023\n *\n * Copyright (c) storycraft. Licensed under the Apache Licence 2.0.\n */\npackage sh.pancake.serdemc.data.nbt.io;\n\nimport java.io.IOException;\nimport java.util.Map;\n\nimport javax.annotation.Nullable;\n\nimport lombok.AllArgsConstructor;\nimport sh.pancake.serde... | writer.writeInt(value.length); | {} | {
"repository": "storycraft-serde-mc-757a9e4",
"file": "api/src/main/java/sh/pancake/serdemc/data/nbt/io/NbtWriter.java",
"task_id": "project_cc_java/5511"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "api/src/main/java/sh/pancake/serdemc/data/nbt/io/NbtWriter.java",
"groundtruth_start_lineno": 47,
"repository": "storycraft-serde-mc-757a9e4",
"right_context_start_lineno": 48,
"task_id": "project_cc_java/5511"
}
} |
cross_code_eval_java::project_cc_java/5477 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/top/sssd/ddns/service/impl/TencentDynamicDnsServiceImpl.java
// resultDomain ... | {
"prefix": "package top.sssd.ddns.service.impl;\n\nimport com.aliyun.alidns20150109.Client;\nimport com.aliyun.alidns20150109.models.DescribeSubDomainRecordsResponse;\nimport com.aliyun.alidns20150109.models.DescribeSubDomainRecordsResponseBody;\nimport lombok.extern.slf4j.Slf4j;\nimport org.springframework.http.Htt... | DoMainUtil.firstLevel(subDoMain)) { | {} | {
"repository": "sssdgithub-ddns4j-eadfbee",
"file": "src/main/java/top/sssd/ddns/service/impl/AliDynamicDnsServiceImpl.java",
"task_id": "project_cc_java/5477"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/top/sssd/ddns/service/impl/AliDynamicDnsServiceImpl.java",
"groundtruth_start_lineno": 47,
"repository": "sssdgithub-ddns4j-eadfbee",
"right_context_start_lineno": 48,
"task_id": "project_cc_java/5477"
}
} |
cross_code_eval_java::project_cc_java/5533 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// api/src/main/java/sh/pancake/serdemc/network/io/PacketDataReader.java
// }
// byte[] bu... | {
"prefix": "/*\n * Created on Sun Mar 26 2023\n *\n * Copyright (c) storycraft. Licensed under the Apache Licence 2.0.\n */\npackage sh.pancake.serdemc.data.nbt.io;\n\nimport java.io.IOException;\nimport java.nio.charset.StandardCharsets;\n\nimport javax.annotation.Nullable;\n\nimport lombok.AllArgsConstructor;\nimp... | = reader.readInt(); | {} | {
"repository": "storycraft-serde-mc-757a9e4",
"file": "api/src/main/java/sh/pancake/serdemc/data/nbt/io/NbtReader.java",
"task_id": "project_cc_java/5533"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "api/src/main/java/sh/pancake/serdemc/data/nbt/io/NbtReader.java",
"groundtruth_start_lineno": 48,
"repository": "storycraft-serde-mc-757a9e4",
"right_context_start_lineno": 49,
"task_id": "project_cc_java/5533"
}
} |
cross_code_eval_java::project_cc_java/5534 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// api/src/main/java/sh/pancake/serdemc/network/io/PacketDataReader.java
// }
// byte[] bu... | {
"prefix": "/*\n * Created on Sun Mar 26 2023\n *\n * Copyright (c) storycraft. Licensed under the Apache Licence 2.0.\n */\npackage sh.pancake.serdemc.data.nbt.io;\n\nimport java.io.IOException;\nimport java.nio.charset.StandardCharsets;\n\nimport javax.annotation.Nullable;\n\nimport lombok.AllArgsConstructor;\nimp... | reader.readBytes(data); | {} | {
"repository": "storycraft-serde-mc-757a9e4",
"file": "api/src/main/java/sh/pancake/serdemc/data/nbt/io/NbtReader.java",
"task_id": "project_cc_java/5534"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "api/src/main/java/sh/pancake/serdemc/data/nbt/io/NbtReader.java",
"groundtruth_start_lineno": 51,
"repository": "storycraft-serde-mc-757a9e4",
"right_context_start_lineno": 52,
"task_id": "project_cc_java/5534"
}
} |
cross_code_eval_java::project_cc_java/5535 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// api/src/main/java/sh/pancake/serdemc/network/io/PacketDataReader.java
// }
// byte[] bu... | {
"prefix": "/*\n * Created on Sun Mar 26 2023\n *\n * Copyright (c) storycraft. Licensed under the Apache Licence 2.0.\n */\npackage sh.pancake.serdemc.data.nbt.io;\n\nimport java.io.IOException;\nimport java.nio.charset.StandardCharsets;\n\nimport javax.annotation.Nullable;\n\nimport lombok.AllArgsConstructor;\nimp... | int length = reader.readShort(); | {} | {
"repository": "storycraft-serde-mc-757a9e4",
"file": "api/src/main/java/sh/pancake/serdemc/data/nbt/io/NbtReader.java",
"task_id": "project_cc_java/5535"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "api/src/main/java/sh/pancake/serdemc/data/nbt/io/NbtReader.java",
"groundtruth_start_lineno": 56,
"repository": "storycraft-serde-mc-757a9e4",
"right_context_start_lineno": 57,
"task_id": "project_cc_java/5535"
}
} |
cross_code_eval_java::project_cc_java/5552 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/strimzi/kafka/bridge/mqtt/mapper/MqttKafkaRegexMapper.java
// kafk... | {
"prefix": "/*\n * Copyright Strimzi authors.\n * License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).\n */\npackage io.strimzi.kafka.bridge.mqtt.mapper;\n\nimport java.util.HashMap;\nimport java.util.List;\nimport java.util.Map;\nimport java.util.regex.Matcher;\nimport ... | .matcher(rule.getKafkaTopicTemplate()); | {} | {
"repository": "strimzi-strimzi-mqtt-bridge-cb0a4b8",
"file": "src/main/java/io/strimzi/kafka/bridge/mqtt/mapper/MqttKafkaSimpleMapper.java",
"task_id": "project_cc_java/5552"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/io/strimzi/kafka/bridge/mqtt/mapper/MqttKafkaSimpleMapper.java",
"groundtruth_start_lineno": 57,
"repository": "strimzi-strimzi-mqtt-bridge-cb0a4b8",
"right_context_start_lineno": 58,
"task_id": "project_cc_java/5552"
}
} |
cross_code_eval_java::project_cc_java/5548 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/test/java/io/strimzi/kafka/bridge/mqtt/kafka/KafkaBridgeProducerTest.java
// .thenA... | {
"prefix": "/*\n * Copyright Strimzi authors.\n * License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).\n */\npackage io.strimzi.kafka.bridge.mqtt.kafka;\n\nimport io.strimzi.kafka.bridge.mqtt.config.KafkaConfig;\nimport org.apache.kafka.clients.producer.KafkaProducer;\ni... | kafkaConfig.getProducerConfig().getConfig()); | {} | {
"repository": "strimzi-strimzi-mqtt-bridge-cb0a4b8",
"file": "src/main/java/io/strimzi/kafka/bridge/mqtt/kafka/KafkaBridgeProducer.java",
"task_id": "project_cc_java/5548"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/io/strimzi/kafka/bridge/mqtt/kafka/KafkaBridgeProducer.java",
"groundtruth_start_lineno": 69,
"repository": "strimzi-strimzi-mqtt-bridge-cb0a4b8",
"right_context_start_lineno": 70,
"task_id": "project_cc_java/5548"
}
} |
cross_code_eval_java::project_cc_java/5538 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// api/src/main/java/sh/pancake/serdemc/network/io/PacketDataReader.java
// }
// public UUID readU... | {
"prefix": "/*\n * Created on Sun Mar 26 2023\n *\n * Copyright (c) storycraft. Licensed under the Apache Licence 2.0.\n */\npackage sh.pancake.serdemc.data.nbt.io;\n\nimport java.io.IOException;\nimport java.nio.charset.StandardCharsets;\n\nimport javax.annotation.Nullable;\n\nimport lombok.AllArgsConstructor;\nimp... | length = reader.readInt(); | {} | {
"repository": "storycraft-serde-mc-757a9e4",
"file": "api/src/main/java/sh/pancake/serdemc/data/nbt/io/NbtReader.java",
"task_id": "project_cc_java/5538"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "api/src/main/java/sh/pancake/serdemc/data/nbt/io/NbtReader.java",
"groundtruth_start_lineno": 66,
"repository": "storycraft-serde-mc-757a9e4",
"right_context_start_lineno": 67,
"task_id": "project_cc_java/5538"
}
} |
cross_code_eval_java::project_cc_java/5549 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/strimzi/kafka/bridge/mqtt/config/ConfigRetriever.java
// props.ent... | {
"prefix": "/*\n * Copyright Strimzi authors.\n * License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).\n */\npackage io.strimzi.kafka.bridge.mqtt.kafka;\n\nimport io.strimzi.kafka.bridge.mqtt.config.KafkaConfig;\nimport org.apache.kafka.clients.producer.KafkaProducer;\ni... | ACKS_CONFIG, String.valueOf(producerAckLevel.getValue())); | {} | {
"repository": "strimzi-strimzi-mqtt-bridge-cb0a4b8",
"file": "src/main/java/io/strimzi/kafka/bridge/mqtt/kafka/KafkaBridgeProducer.java",
"task_id": "project_cc_java/5549"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/io/strimzi/kafka/bridge/mqtt/kafka/KafkaBridgeProducer.java",
"groundtruth_start_lineno": 70,
"repository": "strimzi-strimzi-mqtt-bridge-cb0a4b8",
"right_context_start_lineno": 71,
"task_id": "project_cc_java/5549"
}
} |
cross_code_eval_java::project_cc_java/5539 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// api/src/main/java/sh/pancake/serdemc/data/nbt/io/NbtWriter.java
// case NbtTagValue.TAG_BYT... | {
"prefix": "/*\n * Created on Sun Mar 26 2023\n *\n * Copyright (c) storycraft. Licensed under the Apache Licence 2.0.\n */\npackage sh.pancake.serdemc.data.nbt.io;\n\nimport java.io.IOException;\nimport java.nio.charset.StandardCharsets;\n\nimport javax.annotation.Nullable;\n\nimport lombok.AllArgsConstructor;\nimp... | type = reader.readByte()) != NbtTagValue.TAG_END; | {} | {
"repository": "storycraft-serde-mc-757a9e4",
"file": "api/src/main/java/sh/pancake/serdemc/data/nbt/io/NbtReader.java",
"task_id": "project_cc_java/5539"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "api/src/main/java/sh/pancake/serdemc/data/nbt/io/NbtReader.java",
"groundtruth_start_lineno": 79,
"repository": "storycraft-serde-mc-757a9e4",
"right_context_start_lineno": 80,
"task_id": "project_cc_java/5539"
}
} |
cross_code_eval_java::project_cc_java/5547 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// api/src/main/java/sh/pancake/serdemc/network/io/PacketDataWriter.java
// MetadataValue valu... | {
"prefix": "/*\n * Created on Sun Mar 26 2023\n *\n * Copyright (c) storycraft. Licensed under the Apache Licence 2.0.\n */\npackage sh.pancake.serdemc.network.io;\n\nimport java.io.IOException;\nimport java.nio.charset.StandardCharsets;\nimport java.util.HashMap;\nimport java.util.Map;\nimport java.util.UUID;\n\nim... | ?> codec = MetadataCodec.getCodec(type); | {} | {
"repository": "storycraft-serde-mc-757a9e4",
"file": "api/src/main/java/sh/pancake/serdemc/network/io/PacketDataReader.java",
"task_id": "project_cc_java/5547"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "api/src/main/java/sh/pancake/serdemc/network/io/PacketDataReader.java",
"groundtruth_start_lineno": 168,
"repository": "storycraft-serde-mc-757a9e4",
"right_context_start_lineno": 169,
"task_id": "project_cc_java/5547"
}
} |
cross_code_eval_java::project_cc_java/5546 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// api/src/main/java/sh/pancake/serdemc/network/io/PacketDataReader.java
// throw new Runt... | {
"prefix": "/*\n * Created on Sun Mar 26 2023\n *\n * Copyright (c) storycraft. Licensed under the Apache Licence 2.0.\n */\npackage sh.pancake.serdemc.network.io;\n\nimport java.io.IOException;\nimport java.util.Map;\nimport java.util.UUID;\n\nimport javax.annotation.Nullable;\n\nimport sh.pancake.serdemc.data.Bloc... | > codec = (MetadataCodec<Object>) MetadataCodec.getCodec(type); | {} | {
"repository": "storycraft-serde-mc-757a9e4",
"file": "api/src/main/java/sh/pancake/serdemc/network/io/PacketDataWriter.java",
"task_id": "project_cc_java/5546"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "api/src/main/java/sh/pancake/serdemc/network/io/PacketDataWriter.java",
"groundtruth_start_lineno": 153,
"repository": "storycraft-serde-mc-757a9e4",
"right_context_start_lineno": 154,
"task_id": "project_cc_java/5546"
}
} |
cross_code_eval_java::project_cc_java/5571 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/github/stupdit1t/jackson/expand/handler/params/ParamsHandler.java
// if (anno... | {
"prefix": "package com.github.stupdit1t.jackson.expand.cache;\n\nimport com.github.stupdit1t.jackson.expand.config.JacksonExpandProperties;\nimport com.github.stupdit1t.jackson.expand.util.SpringUtil;\nimport com.github.stupdit1t.jackson.expand.serializer.ExpandSerializer;\nimport org.springframework.util.AntPathMa... | properties.getCachePrefix() + ":" + beanName + ":" + method + ":%s:" + key.toString(); | {} | {
"repository": "stupdit1t-jackson-expand-boot-starter-b492b74",
"file": "src/main/java/com/github/stupdit1t/jackson/expand/cache/ExpandCache.java",
"task_id": "project_cc_java/5571"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/github/stupdit1t/jackson/expand/cache/ExpandCache.java",
"groundtruth_start_lineno": 63,
"repository": "stupdit1t-jackson-expand-boot-starter-b492b74",
"right_context_start_lineno": 64,
"task_id": "project_cc_java/5571"
}
... |
cross_code_eval_java::project_cc_java/5408 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// demo/src/main/java/com/solodroid/ads/sdkdemo/rest/ApiInterface.java
// @Headers({CACHE, AGENT})
// ... | {
"prefix": "package com.solodroid.ads.sdkdemo.activity;\n\nimport static com.solodroid.ads.sdk.util.Constant.ADMOB;\nimport static com.solodroid.ads.sdk.util.Constant.AD_STATUS_ON;\nimport static com.solodroid.ads.sdk.util.Constant.APPLOVIN;\nimport static com.solodroid.ads.sdk.util.Constant.APPLOVIN_MAX;\nimport st... | callbackConfigCall = RestAdapter.createApi().getJsonUrl(url); | {} | {
"repository": "solodroidx-multi-ads-sdk-4f23cdf",
"file": "demo/src/main/java/com/solodroid/ads/sdkdemo/activity/ActivitySplash.java",
"task_id": "project_cc_java/5408"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "demo/src/main/java/com/solodroid/ads/sdkdemo/activity/ActivitySplash.java",
"groundtruth_start_lineno": 112,
"repository": "solodroidx-multi-ads-sdk-4f23cdf",
"right_context_start_lineno": 113,
"task_id": "project_cc_java/5408"
}
} |
cross_code_eval_java::project_cc_java/5573 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/github/stupdit1t/jackson/expand/cache/ExpandCache.java
// *
// * @param pat... | {
"prefix": "package com.github.stupdit1t.jackson.expand.serializer;\n\nimport com.fasterxml.jackson.core.JsonGenerator;\nimport com.fasterxml.jackson.core.JsonStreamContext;\nimport com.fasterxml.jackson.databind.BeanProperty;\nimport com.fasterxml.jackson.databind.JsonMappingException;\nimport com.fasterxml.jackson... | cache.put(String.format(cacheKey, FAIL), bindData, Duration.ofSeconds(cacheTime)); | {} | {
"repository": "stupdit1t-jackson-expand-boot-starter-b492b74",
"file": "src/main/java/com/github/stupdit1t/jackson/expand/serializer/ExpandSerializer.java",
"task_id": "project_cc_java/5573"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/github/stupdit1t/jackson/expand/serializer/ExpandSerializer.java",
"groundtruth_start_lineno": 211,
"repository": "stupdit1t-jackson-expand-boot-starter-b492b74",
"right_context_start_lineno": 212,
"task_id": "project_cc_jav... |
cross_code_eval_java::project_cc_java/5553 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/strimzi/kafka/bridge/mqtt/mapper/MqttKafkaRegexMapper.java
// *
// * @param ... | {
"prefix": "/*\n * Copyright Strimzi authors.\n * License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).\n */\npackage io.strimzi.kafka.bridge.mqtt.mapper;\n\nimport java.util.HashMap;\nimport java.util.List;\nimport java.util.Map;\nimport java.util.regex.Matcher;\nimport ... | matcher(rule.getMqttTopicPattern()); | {} | {
"repository": "strimzi-strimzi-mqtt-bridge-cb0a4b8",
"file": "src/main/java/io/strimzi/kafka/bridge/mqtt/mapper/MqttKafkaSimpleMapper.java",
"task_id": "project_cc_java/5553"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/io/strimzi/kafka/bridge/mqtt/mapper/MqttKafkaSimpleMapper.java",
"groundtruth_start_lineno": 73,
"repository": "strimzi-strimzi-mqtt-bridge-cb0a4b8",
"right_context_start_lineno": 74,
"task_id": "project_cc_java/5553"
}
} |
cross_code_eval_java::project_cc_java/5409 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// demo/src/main/java/com/solodroid/ads/sdkdemo/rest/ApiInterface.java
// @Headers({CACHE, AGENT})
// ... | {
"prefix": "package com.solodroid.ads.sdkdemo.activity;\n\nimport static com.solodroid.ads.sdk.util.Constant.ADMOB;\nimport static com.solodroid.ads.sdk.util.Constant.AD_STATUS_ON;\nimport static com.solodroid.ads.sdk.util.Constant.APPLOVIN;\nimport static com.solodroid.ads.sdk.util.Constant.APPLOVIN_MAX;\nimport st... | RestAdapter.createApi().getDriveJsonFileId(url); | {} | {
"repository": "solodroidx-multi-ads-sdk-4f23cdf",
"file": "demo/src/main/java/com/solodroid/ads/sdkdemo/activity/ActivitySplash.java",
"task_id": "project_cc_java/5409"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "demo/src/main/java/com/solodroid/ads/sdkdemo/activity/ActivitySplash.java",
"groundtruth_start_lineno": 115,
"repository": "solodroidx-multi-ads-sdk-4f23cdf",
"right_context_start_lineno": 116,
"task_id": "project_cc_java/5409"
}
} |
cross_code_eval_java::project_cc_java/5584 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/github/stupdit1t/jackson/expand/handler/params/DefaultParamsHandler.java
// i... | {
"prefix": "package com.github.stupdit1t.jackson.expand.serializer;\n\nimport com.fasterxml.jackson.core.JsonGenerator;\nimport com.fasterxml.jackson.core.JsonStreamContext;\nimport com.fasterxml.jackson.databind.BeanProperty;\nimport com.fasterxml.jackson.databind.JsonMappingException;\nimport com.fasterxml.jackson... | (!jacksonExpandProperties.isCanExpandToNotExistField() && writeClass == null) { | {} | {
"repository": "stupdit1t-jackson-expand-boot-starter-b492b74",
"file": "src/main/java/com/github/stupdit1t/jackson/expand/serializer/ExpandSerializer.java",
"task_id": "project_cc_java/5584"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/github/stupdit1t/jackson/expand/serializer/ExpandSerializer.java",
"groundtruth_start_lineno": 165,
"repository": "stupdit1t-jackson-expand-boot-starter-b492b74",
"right_context_start_lineno": 166,
"task_id": "project_cc_jav... |
cross_code_eval_java::project_cc_java/5554 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only 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/strimzi/kafka/bridge/mqtt/mapper/MqttKafkaRegexMapper.java
// *
// * @param ... | {
"prefix": "/*\n * Copyright Strimzi authors.\n * License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).\n */\npackage io.strimzi.kafka.bridge.mqtt.mapper;\n\nimport java.util.HashMap;\nimport java.util.List;\nimport java.util.Map;\nimport java.util.regex.Matcher;\nimport ... | = rule.getMqttTopicPattern().split(MQTT_TOPIC_SEPARATOR); | {} | {
"repository": "strimzi-strimzi-mqtt-bridge-cb0a4b8",
"file": "src/main/java/io/strimzi/kafka/bridge/mqtt/mapper/MqttKafkaSimpleMapper.java",
"task_id": "project_cc_java/5554"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/io/strimzi/kafka/bridge/mqtt/mapper/MqttKafkaSimpleMapper.java",
"groundtruth_start_lineno": 109,
"repository": "strimzi-strimzi-mqtt-bridge-cb0a4b8",
"right_context_start_lineno": 110,
"task_id": "project_cc_java/5554"
}
} |
cross_code_eval_java::project_cc_java/5403 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// demo/src/main/java/com/solodroid/ads/sdkdemo/application/MyApplication.java
// ... | {
"prefix": "package com.solodroid.ads.sdkdemo.activity;\n\nimport static com.solodroid.ads.sdk.util.Constant.ADMOB;\nimport static com.solodroid.ads.sdk.util.Constant.AD_STATUS_ON;\nimport static com.solodroid.ads.sdk.util.Constant.APPLOVIN;\nimport static com.solodroid.ads.sdk.util.Constant.APPLOVIN_MAX;\nimport st... | ()).showAdIfAvailable(ActivitySplash.this, this::requestConfig); | {} | {
"repository": "solodroidx-multi-ads-sdk-4f23cdf",
"file": "demo/src/main/java/com/solodroid/ads/sdkdemo/activity/ActivitySplash.java",
"task_id": "project_cc_java/5403"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "demo/src/main/java/com/solodroid/ads/sdkdemo/activity/ActivitySplash.java",
"groundtruth_start_lineno": 59,
"repository": "solodroidx-multi-ads-sdk-4f23cdf",
"right_context_start_lineno": 60,
"task_id": "project_cc_java/5403"
}
} |
cross_code_eval_java::project_cc_java/5582 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/github/stupdit1t/jackson/expand/domain/SerializerParam.java
// return expand;... | {
"prefix": "package com.github.stupdit1t.jackson.expand.serializer;\n\nimport com.fasterxml.jackson.core.JsonGenerator;\nimport com.fasterxml.jackson.core.JsonStreamContext;\nimport com.fasterxml.jackson.databind.BeanProperty;\nimport com.fasterxml.jackson.databind.JsonMappingException;\nimport com.fasterxml.jackson... | if (jacksonExpandProperties.getExpandStrategy() == ExpandStrategy.COPY) { | {} | {
"repository": "stupdit1t-jackson-expand-boot-starter-b492b74",
"file": "src/main/java/com/github/stupdit1t/jackson/expand/serializer/ExpandSerializer.java",
"task_id": "project_cc_java/5582"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/github/stupdit1t/jackson/expand/serializer/ExpandSerializer.java",
"groundtruth_start_lineno": 146,
"repository": "stupdit1t-jackson-expand-boot-starter-b492b74",
"right_context_start_lineno": 147,
"task_id": "project_cc_jav... |
cross_code_eval_java::project_cc_java/5401 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// demo/src/main/java/com/solodroid/ads/sdkdemo/activity/MainActivity.java
// setNativeAdStyle(nat... | {
"prefix": "package com.solodroid.ads.sdkdemo.activity;\n\nimport android.os.Bundle;\nimport android.view.MenuItem;\nimport android.widget.Toast;\n\nimport androidx.appcompat.app.ActionBar;\nimport androidx.appcompat.app.AppCompatActivity;\nimport androidx.appcompat.widget.Toolbar;\nimport androidx.recyclerview.widg... | displayData(sharedPref.getPostList()); | {} | {
"repository": "solodroidx-multi-ads-sdk-4f23cdf",
"file": "demo/src/main/java/com/solodroid/ads/sdkdemo/activity/SecondActivity.java",
"task_id": "project_cc_java/5401"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "demo/src/main/java/com/solodroid/ads/sdkdemo/activity/SecondActivity.java",
"groundtruth_start_lineno": 48,
"repository": "solodroidx-multi-ads-sdk-4f23cdf",
"right_context_start_lineno": 49,
"task_id": "project_cc_java/5401"
}
} |
cross_code_eval_java::project_cc_java/5586 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/github/stupdit1t/jackson/expand/domain/SerializerParam.java
// return expand;... | {
"prefix": "package com.github.stupdit1t.jackson.expand.serializer;\n\nimport com.fasterxml.jackson.core.JsonGenerator;\nimport com.fasterxml.jackson.core.JsonStreamContext;\nimport com.fasterxml.jackson.databind.BeanProperty;\nimport com.fasterxml.jackson.databind.JsonMappingException;\nimport com.fasterxml.jackson... | setCacheTime(jacksonExpandProperties.getCacheTimeout()); | {} | {
"repository": "stupdit1t-jackson-expand-boot-starter-b492b74",
"file": "src/main/java/com/github/stupdit1t/jackson/expand/serializer/ExpandSerializer.java",
"task_id": "project_cc_java/5586"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/github/stupdit1t/jackson/expand/serializer/ExpandSerializer.java",
"groundtruth_start_lineno": 281,
"repository": "stupdit1t-jackson-expand-boot-starter-b492b74",
"right_context_start_lineno": 282,
"task_id": "project_cc_jav... |
cross_code_eval_java::project_cc_java/5407 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// demo/src/main/java/com/solodroid/ads/sdkdemo/rest/ApiInterface.java
// @Headers({CACHE, AGENT})
// ... | {
"prefix": "package com.solodroid.ads.sdkdemo.activity;\n\nimport static com.solodroid.ads.sdk.util.Constant.ADMOB;\nimport static com.solodroid.ads.sdk.util.Constant.AD_STATUS_ON;\nimport static com.solodroid.ads.sdk.util.Constant.APPLOVIN;\nimport static com.solodroid.ads.sdk.util.Constant.APPLOVIN_MAX;\nimport st... | = RestAdapter.createApi().getDriveJsonFileId(googleDriveFileId); | {} | {
"repository": "solodroidx-multi-ads-sdk-4f23cdf",
"file": "demo/src/main/java/com/solodroid/ads/sdkdemo/activity/ActivitySplash.java",
"task_id": "project_cc_java/5407"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "demo/src/main/java/com/solodroid/ads/sdkdemo/activity/ActivitySplash.java",
"groundtruth_start_lineno": 110,
"repository": "solodroidx-multi-ads-sdk-4f23cdf",
"right_context_start_lineno": 111,
"task_id": "project_cc_java/5407"
}
} |
cross_code_eval_java::project_cc_java/5572 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/github/stupdit1t/jackson/expand/util/ReflectUtil.java
// throw new Unsupp... | {
"prefix": "package com.github.stupdit1t.jackson.expand.serializer;\n\nimport com.fasterxml.jackson.core.JsonGenerator;\nimport com.fasterxml.jackson.core.JsonStreamContext;\nimport com.fasterxml.jackson.databind.BeanProperty;\nimport com.fasterxml.jackson.databind.JsonMappingException;\nimport com.fasterxml.jackson... | cache.put(String.format(cacheKey, OK), result, Duration.ofSeconds(cacheTime)); | {} | {
"repository": "stupdit1t-jackson-expand-boot-starter-b492b74",
"file": "src/main/java/com/github/stupdit1t/jackson/expand/serializer/ExpandSerializer.java",
"task_id": "project_cc_java/5572"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/github/stupdit1t/jackson/expand/serializer/ExpandSerializer.java",
"groundtruth_start_lineno": 208,
"repository": "stupdit1t-jackson-expand-boot-starter-b492b74",
"right_context_start_lineno": 209,
"task_id": "project_cc_jav... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.