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/3562 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/ru/jbimer/core/services/ProjectService.java
// @Transactional
// public void upda... | {
"prefix": "package ru.jbimer.core.services;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.data.domain.Page;\nimport org.springframework.data.domain.Pageable;\nimport org.springframework.stereotype.Service;\nimport org.springframework.transaction.annotation.Transaction... | > foundCollision = collisionsRepository.findByIdFetchEngineer(id); | {} | {
"repository": "mitrofmep-JBimer-fd7a0ba",
"file": "src/main/java/ru/jbimer/core/services/CollisionsService.java",
"task_id": "project_cc_java/3562"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/ru/jbimer/core/services/CollisionsService.java",
"groundtruth_start_lineno": 50,
"repository": "mitrofmep-JBimer-fd7a0ba",
"right_context_start_lineno": 51,
"task_id": "project_cc_java/3562"
}
} |
cross_code_eval_java::project_cc_java/3550 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/ru/jbimer/core/controllers/CollisionsController.java
// Authentication authentica... | {
"prefix": "package ru.jbimer.core.controllers;\n\nimport org.springframework.security.core.Authentication;\nimport org.springframework.security.core.context.SecurityContextHolder;\nimport org.springframework.stereotype.Controller;\nimport org.springframework.ui.Model;\nimport org.springframework.web.bind.annotation... | .findByIdFetchCollisions(engineerDetails.getEngineer().getId()); | {} | {
"repository": "mitrofmep-JBimer-fd7a0ba",
"file": "src/main/java/ru/jbimer/core/controllers/HomeController.java",
"task_id": "project_cc_java/3550"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/ru/jbimer/core/controllers/HomeController.java",
"groundtruth_start_lineno": 39,
"repository": "mitrofmep-JBimer-fd7a0ba",
"right_context_start_lineno": 40,
"task_id": "project_cc_java/3550"
}
} |
cross_code_eval_java::project_cc_java/3552 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[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/ru/jbimer/core/controllers/ProjectControllerTest.java
// @Test
// public void tes... | {
"prefix": "package ru.jbimer.core.controllers;\n\nimport jakarta.validation.Valid;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.security.core.Authentication;\nimport org.springframework.security.core.context.SecurityContextHolder;\nimport org.springframework.stereotype... | "engineers", engineersService.findAll()); | {} | {
"repository": "mitrofmep-JBimer-fd7a0ba",
"file": "src/main/java/ru/jbimer/core/controllers/ProjectController.java",
"task_id": "project_cc_java/3552"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/ru/jbimer/core/controllers/ProjectController.java",
"groundtruth_start_lineno": 63,
"repository": "mitrofmep-JBimer-fd7a0ba",
"right_context_start_lineno": 64,
"task_id": "project_cc_java/3552"
}
} |
cross_code_eval_java::project_cc_java/3565 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/ru/jbimer/core/services/ProjectService.java
// @Transactional
// public void upda... | {
"prefix": "package ru.jbimer.core.services;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.data.domain.Page;\nimport org.springframework.data.domain.Pageable;\nimport org.springframework.stereotype.Service;\nimport org.springframework.transaction.annotation.Transaction... | Optional<Collision> optionalCollision = collisionsRepository.findByIdFetchEngineer(id); | {} | {
"repository": "mitrofmep-JBimer-fd7a0ba",
"file": "src/main/java/ru/jbimer/core/services/CollisionsService.java",
"task_id": "project_cc_java/3565"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/ru/jbimer/core/services/CollisionsService.java",
"groundtruth_start_lineno": 110,
"repository": "mitrofmep-JBimer-fd7a0ba",
"right_context_start_lineno": 111,
"task_id": "project_cc_java/3565"
}
} |
cross_code_eval_java::project_cc_java/3558 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/ru/jbimer/core/controllers/ProjectController.java
// @ModelA... | {
"prefix": "package ru.jbimer.core.controllers;\n\nimport jakarta.validation.Valid;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.security.core.Authentication;\nimport org.springframework.security.core.context.SecurityContextHolder;\nimport org.springframework.stereotype... | = engineersService.findByIdFetchCollisions(id); | {} | {
"repository": "mitrofmep-JBimer-fd7a0ba",
"file": "src/main/java/ru/jbimer/core/controllers/EngineersController.java",
"task_id": "project_cc_java/3558"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/ru/jbimer/core/controllers/EngineersController.java",
"groundtruth_start_lineno": 40,
"repository": "mitrofmep-JBimer-fd7a0ba",
"right_context_start_lineno": 41,
"task_id": "project_cc_java/3558"
}
} |
cross_code_eval_java::project_cc_java/3559 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/ru/jbimer/core/controllers/CollisionsController.java
// Authentication authentica... | {
"prefix": "package ru.jbimer.core.controllers;\n\nimport jakarta.validation.Valid;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.security.core.Authentication;\nimport org.springframework.security.core.context.SecurityContextHolder;\nimport org.springframework.stereotype... | "engineer", engineersService.findOne(id)); | {} | {
"repository": "mitrofmep-JBimer-fd7a0ba",
"file": "src/main/java/ru/jbimer/core/controllers/EngineersController.java",
"task_id": "project_cc_java/3559"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/ru/jbimer/core/controllers/EngineersController.java",
"groundtruth_start_lineno": 51,
"repository": "mitrofmep-JBimer-fd7a0ba",
"right_context_start_lineno": 52,
"task_id": "project_cc_java/3559"
}
} |
cross_code_eval_java::project_cc_java/3563 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/ru/jbimer/core/repositories/CollisionsRepository.java
// @Param("pr... | {
"prefix": "package ru.jbimer.core.services;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.data.domain.Page;\nimport org.springframework.data.domain.Pageable;\nimport org.springframework.stereotype.Service;\nimport org.springframework.transaction.annotation.Transaction... | collisionsRepository.findByIdFetchEngineer(id).ifPresent(
collision -> { | {} | {
"repository": "mitrofmep-JBimer-fd7a0ba",
"file": "src/main/java/ru/jbimer/core/services/CollisionsService.java",
"task_id": "project_cc_java/3563"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/ru/jbimer/core/services/CollisionsService.java",
"groundtruth_start_lineno": 92,
"repository": "mitrofmep-JBimer-fd7a0ba",
"right_context_start_lineno": 94,
"task_id": "project_cc_java/3563"
}
} |
cross_code_eval_java::project_cc_java/3568 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/ru/jbimer/core/services/EngineerDetailsService.java
// Optional<Engineer> enginee... | {
"prefix": "package ru.jbimer.core.services;\n\nimport org.hibernate.Hibernate;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.security.access.prepost.PreAuthorize;\nimport org.springframework.security.crypto.password.PasswordEncoder;\nimport org.springframework.stereotyp... | (engineerDAO.index()); | {} | {
"repository": "mitrofmep-JBimer-fd7a0ba",
"file": "src/main/java/ru/jbimer/core/services/EngineersService.java",
"task_id": "project_cc_java/3568"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/ru/jbimer/core/services/EngineersService.java",
"groundtruth_start_lineno": 43,
"repository": "mitrofmep-JBimer-fd7a0ba",
"right_context_start_lineno": 44,
"task_id": "project_cc_java/3568"
}
} |
cross_code_eval_java::project_cc_java/3574 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/ru/jbimer/core/controllers/ProjectController.java
// public String show(@PathVariable... | {
"prefix": "package ru.jbimer.core.controllers;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.data.domain.Page;\nimport org.springframework.data.domain.PageRequest;\nimport org.springframework.data.domain.Pageable;\nimport org.springframework.data.domain.Sort;\nimport ... | model.addAttribute("comments", collision.getComments()); | {} | {
"repository": "mitrofmep-JBimer-fd7a0ba",
"file": "src/main/java/ru/jbimer/core/controllers/CollisionsController.java",
"task_id": "project_cc_java/3574"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/ru/jbimer/core/controllers/CollisionsController.java",
"groundtruth_start_lineno": 93,
"repository": "mitrofmep-JBimer-fd7a0ba",
"right_context_start_lineno": 94,
"task_id": "project_cc_java/3574"
}
} |
cross_code_eval_java::project_cc_java/3576 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/ru/jbimer/core/controllers/ProjectController.java
// public String show(@PathVariable... | {
"prefix": "package ru.jbimer.core.controllers;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.data.domain.Page;\nimport org.springframework.data.domain.PageRequest;\nimport org.springframework.data.domain.Pageable;\nimport org.springframework.data.domain.Sort;\nimport ... | = collisionsService.findOneAndEngineer(id); | {} | {
"repository": "mitrofmep-JBimer-fd7a0ba",
"file": "src/main/java/ru/jbimer/core/controllers/CollisionsController.java",
"task_id": "project_cc_java/3576"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/ru/jbimer/core/controllers/CollisionsController.java",
"groundtruth_start_lineno": 88,
"repository": "mitrofmep-JBimer-fd7a0ba",
"right_context_start_lineno": 89,
"task_id": "project_cc_java/3576"
}
} |
cross_code_eval_java::project_cc_java/3575 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/ru/jbimer/core/controllers/EngineersController.java
// }
// @DeleteMapping("/{id}... | {
"prefix": "package ru.jbimer.core.controllers;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.data.domain.Page;\nimport org.springframework.data.domain.PageRequest;\nimport org.springframework.data.domain.Pageable;\nimport org.springframework.data.domain.Sort;\nimport ... | (id, engineerDetails.getEngineer(), comment); | {} | {
"repository": "mitrofmep-JBimer-fd7a0ba",
"file": "src/main/java/ru/jbimer/core/controllers/CollisionsController.java",
"task_id": "project_cc_java/3575"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/ru/jbimer/core/controllers/CollisionsController.java",
"groundtruth_start_lineno": 150,
"repository": "mitrofmep-JBimer-fd7a0ba",
"right_context_start_lineno": 151,
"task_id": "project_cc_java/3575"
}
} |
cross_code_eval_java::project_cc_java/3573 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/ru/jbimer/core/repositories/EngineersRepository.java
// Optional<Engineer> findByTele... | {
"prefix": "package ru.jbimer.core.services;\n\nimport org.hibernate.Hibernate;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.security.access.prepost.PreAuthorize;\nimport org.springframework.security.crypto.password.PasswordEncoder;\nimport org.springframework.stereotyp... | Engineer> foundEngineer = engineersRepository.findByIdFetchCollisions(id); | {} | {
"repository": "mitrofmep-JBimer-fd7a0ba",
"file": "src/main/java/ru/jbimer/core/services/EngineersService.java",
"task_id": "project_cc_java/3573"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/ru/jbimer/core/services/EngineersService.java",
"groundtruth_start_lineno": 72,
"repository": "mitrofmep-JBimer-fd7a0ba",
"right_context_start_lineno": 73,
"task_id": "project_cc_java/3573"
}
} |
cross_code_eval_java::project_cc_java/3614 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// lib/src/main/java/com/myworldvw/buoy/mapping/GlobalHandler.java
// if(symbolPtr == null){
// ... | {
"prefix": "/*\n * Copyright (c) 2023. MyWorld, LLC.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required b... | handle = getHandle(mapper.getLayout(target.getClass())); | {} | {
"repository": "MyWorldLLC-Buoy-c7d77a1",
"file": "lib/src/main/java/com/myworldvw/buoy/mapping/FieldHandler.java",
"task_id": "project_cc_java/3614"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "lib/src/main/java/com/myworldvw/buoy/mapping/FieldHandler.java",
"groundtruth_start_lineno": 83,
"repository": "MyWorldLLC-Buoy-c7d77a1",
"right_context_start_lineno": 84,
"task_id": "project_cc_java/3614"
}
} |
cross_code_eval_java::project_cc_java/3616 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// lib/src/main/java/com/myworldvw/buoy/Pointer.java
// }
// public static void setAddress(MemoryS... | {
"prefix": "/*\n * Copyright (c) 2023. MyWorld, LLC.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required b... | mapper.getLayout(target.getClass()).byteOffset(MemoryLayout.PathElement.groupElement(model.name())); | {} | {
"repository": "MyWorldLLC-Buoy-c7d77a1",
"file": "lib/src/main/java/com/myworldvw/buoy/mapping/FieldHandler.java",
"task_id": "project_cc_java/3616"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "lib/src/main/java/com/myworldvw/buoy/mapping/FieldHandler.java",
"groundtruth_start_lineno": 131,
"repository": "MyWorldLLC-Buoy-c7d77a1",
"right_context_start_lineno": 132,
"task_id": "project_cc_java/3616"
}
} |
cross_code_eval_java::project_cc_java/3615 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// lib/src/main/java/com/myworldvw/buoy/mapping/SelfPointerHandler.java
// protected final Field field... | {
"prefix": "/*\n * Copyright (c) 2023. MyWorld, LLC.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required b... | var structDef = mapper.getOrDefineStruct(fieldType); | {} | {
"repository": "MyWorldLLC-Buoy-c7d77a1",
"file": "lib/src/main/java/com/myworldvw/buoy/mapping/FieldHandler.java",
"task_id": "project_cc_java/3615"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "lib/src/main/java/com/myworldvw/buoy/mapping/FieldHandler.java",
"groundtruth_start_lineno": 96,
"repository": "MyWorldLLC-Buoy-c7d77a1",
"right_context_start_lineno": 97,
"task_id": "project_cc_java/3615"
}
} |
cross_code_eval_java::project_cc_java/3679 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/bungee/proxyprotocol/ProxyProtocol.java
// ... | {
"prefix": "package de.cubeattack.neoprotect.spigot.proxyprotocol;\n\nimport de.cubeattack.neoprotect.core.Config;\nimport de.cubeattack.neoprotect.spigot.NeoProtectSpigot;\nimport io.netty.channel.*;\nimport io.netty.handler.codec.haproxy.HAProxyMessage;\nimport io.netty.handler.codec.haproxy.HAProxyMessageDecoder;... | instance.getCore().debug("Plugin is not setup / ProxyProtocol is off / Player is on DirectConnectWhitelist (return)"); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/spigot/proxyprotocol/ProxyProtocol.java",
"task_id": "project_cc_java/3679"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/spigot/proxyprotocol/ProxyProtocol.java",
"groundtruth_start_lineno": 74,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 75,
"task_id": "project_cc_java/3679"
}
} |
cross_code_eval_java::project_cc_java/3684 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/velocity/proxyprotocol/ProxyProtocol.java
// ... | {
"prefix": "package de.cubeattack.neoprotect.spigot.proxyprotocol;\n\nimport de.cubeattack.neoprotect.core.Config;\nimport de.cubeattack.neoprotect.spigot.NeoProtectSpigot;\nimport io.netty.channel.*;\nimport io.netty.handler.codec.haproxy.HAProxyMessage;\nimport io.netty.handler.codec.haproxy.HAProxyMessageDecoder;... | instance.getCore().debug("Adding Handler..."); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/spigot/proxyprotocol/ProxyProtocol.java",
"task_id": "project_cc_java/3684"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/spigot/proxyprotocol/ProxyProtocol.java",
"groundtruth_start_lineno": 86,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 87,
"task_id": "project_cc_java/3684"
}
} |
cross_code_eval_java::project_cc_java/3712 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/velocity/messageunsign/SessionChatListener.java
// if (!... | {
"prefix": "package de.cubeattack.neoprotect.velocity.messageunsign;\n\nimport com.velocitypowered.api.event.Continuation;\nimport com.velocitypowered.api.event.EventTask;\nimport com.velocitypowered.api.event.PostOrder;\nimport com.velocitypowered.api.event.Subscribe;\nimport com.velocitypowered.api.event.connectio... | .getEventManager(), neoProtectVelocity.getLogger())); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/velocity/messageunsign/JoinListener.java",
"task_id": "project_cc_java/3712"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/velocity/messageunsign/JoinListener.java",
"groundtruth_start_lineno": 39,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 40,
"task_id": "project_cc_java/3712"
}
} |
cross_code_eval_java::project_cc_java/3722 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/core/request/RestAPIRequests.java
// return new Response... | {
"prefix": "package de.cubeattack.neoprotect.core.request;\n\nimport com.squareup.okhttp.OkHttpClient;\nimport com.squareup.okhttp.Request;\nimport com.squareup.okhttp.RequestBody;\nimport com.squareup.okhttp.Response;\nimport de.cubeattack.neoprotect.core.Config;\nimport de.cubeattack.neoprotect.core.Core;\n\nimpor... | core.severe(exception.getMessage(), exception); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/request/RestAPIManager.java",
"task_id": "project_cc_java/3722"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/request/RestAPIManager.java",
"groundtruth_start_lineno": 48,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 49,
"task_id": "project_cc_java/3722"
}
} |
cross_code_eval_java::project_cc_java/3683 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/bungee/proxyprotocol/ProxyProtocol.java
// ... | {
"prefix": "package de.cubeattack.neoprotect.spigot.proxyprotocol;\n\nimport de.cubeattack.neoprotect.core.Config;\nimport de.cubeattack.neoprotect.spigot.NeoProtectSpigot;\nimport io.netty.channel.*;\nimport io.netty.handler.codec.haproxy.HAProxyMessage;\nimport io.netty.handler.codec.haproxy.HAProxyMessageDecoder;... | instance.getCore().debug("Player connected over IP (" + channel.remoteAddress() + ") doesn't match to Neo-IPs (warning)"); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/spigot/proxyprotocol/ProxyProtocol.java",
"task_id": "project_cc_java/3683"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/spigot/proxyprotocol/ProxyProtocol.java",
"groundtruth_start_lineno": 81,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 82,
"task_id": "project_cc_java/3683"
}
} |
cross_code_eval_java::project_cc_java/3705 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/core/Core.java
// FileUtils languageRU = new FileUtils(C... | {
"prefix": "package de.cubeattack.neoprotect.core;\n\nimport de.cubeattack.api.util.FileUtils;\nimport de.cubeattack.api.util.versioning.VersionUtils;\n\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.Locale;\n\n@SuppressWarnings(\"unused\")\npublic class Config {\n\n private static String ... | core.severe("Failed to load API-Key. Key is null or not valid"); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/Config.java",
"task_id": "project_cc_java/3705"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/Config.java",
"groundtruth_start_lineno": 42,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 43,
"task_id": "project_cc_java/3705"
}
} |
cross_code_eval_java::project_cc_java/3686 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/bungee/proxyprotocol/ProxyProtocol.java
// i... | {
"prefix": "package de.cubeattack.neoprotect.spigot.proxyprotocol;\n\nimport de.cubeattack.neoprotect.core.Config;\nimport de.cubeattack.neoprotect.spigot.NeoProtectSpigot;\nimport io.netty.channel.*;\nimport io.netty.handler.codec.haproxy.HAProxyMessage;\nimport io.netty.handler.codec.haproxy.HAProxyMessageDecoder;... | instance.getCore().severe("Cannot inject incoming channel " + channel, ex); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/spigot/proxyprotocol/ProxyProtocol.java",
"task_id": "project_cc_java/3686"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/spigot/proxyprotocol/ProxyProtocol.java",
"groundtruth_start_lineno": 97,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 98,
"task_id": "project_cc_java/3686"
}
} |
cross_code_eval_java::project_cc_java/3706 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/core/request/RestAPIRequests.java
// Config.addAutoUpdat... | {
"prefix": "package de.cubeattack.neoprotect.core;\n\nimport de.cubeattack.api.util.FileUtils;\nimport de.cubeattack.api.util.versioning.VersionUtils;\n\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.Locale;\n\n@SuppressWarnings(\"unused\")\npublic class Config {\n\n private static String ... | core.severe("Failed to load GameshieldID. ID is null"); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/Config.java",
"task_id": "project_cc_java/3706"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/Config.java",
"groundtruth_start_lineno": 46,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 47,
"task_id": "project_cc_java/3706"
}
} |
cross_code_eval_java::project_cc_java/3710 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/core/request/RestAPIRequests.java
// core.severe("Ga... | {
"prefix": "package de.cubeattack.neoprotect.core;\n\nimport de.cubeattack.api.util.FileUtils;\nimport de.cubeattack.api.util.versioning.VersionUtils;\n\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.Locale;\n\n@SuppressWarnings(\"unused\")\npublic class Config {\n\n private static String ... | core.info("BackendID loaded successful '" + backendID + "'"); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/Config.java",
"task_id": "project_cc_java/3710"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/Config.java",
"groundtruth_start_lineno": 56,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 57,
"task_id": "project_cc_java/3710"
}
} |
cross_code_eval_java::project_cc_java/3708 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/core/request/RestAPIRequests.java
// private void backendSer... | {
"prefix": "package de.cubeattack.neoprotect.core;\n\nimport de.cubeattack.api.util.FileUtils;\nimport de.cubeattack.api.util.versioning.VersionUtils;\n\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.Locale;\n\n@SuppressWarnings(\"unused\")\npublic class Config {\n\n private static String ... | core.info("API-Key loaded successful '" + "******************************" + APIKey.substring(32) + "'"); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/Config.java",
"task_id": "project_cc_java/3708"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/Config.java",
"groundtruth_start_lineno": 54,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 55,
"task_id": "project_cc_java/3708"
}
} |
cross_code_eval_java::project_cc_java/3709 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/core/request/RestAPIRequests.java
// core.severe("Ga... | {
"prefix": "package de.cubeattack.neoprotect.core;\n\nimport de.cubeattack.api.util.FileUtils;\nimport de.cubeattack.api.util.versioning.VersionUtils;\n\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.Locale;\n\n@SuppressWarnings(\"unused\")\npublic class Config {\n\n private static String ... | core.info("GameshieldID loaded successful '" + gameShieldID + "'"); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/Config.java",
"task_id": "project_cc_java/3709"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/Config.java",
"groundtruth_start_lineno": 55,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 56,
"task_id": "project_cc_java/3709"
}
} |
cross_code_eval_java::project_cc_java/3721 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/core/request/RestAPIRequests.java
// }
// public boolean... | {
"prefix": "package de.cubeattack.neoprotect.core.request;\n\nimport com.squareup.okhttp.OkHttpClient;\nimport com.squareup.okhttp.Request;\nimport com.squareup.okhttp.RequestBody;\nimport com.squareup.okhttp.Response;\nimport de.cubeattack.neoprotect.core.Config;\nimport de.cubeattack.neoprotect.core.Core;\n\nimpor... | .equals(core.getRestAPI().getStatsServer())) { | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/request/RestAPIManager.java",
"task_id": "project_cc_java/3721"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/request/RestAPIManager.java",
"groundtruth_start_lineno": 43,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 44,
"task_id": "project_cc_java/3721"
}
} |
cross_code_eval_java::project_cc_java/3720 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/spigot/proxyprotocol/ProxyProtocol.java
// @Override
// ... | {
"prefix": "package de.cubeattack.neoprotect.core.request;\n\nimport com.squareup.okhttp.OkHttpClient;\nimport com.squareup.okhttp.Request;\nimport com.squareup.okhttp.RequestBody;\nimport com.squareup.okhttp.Response;\nimport de.cubeattack.neoprotect.core.Config;\nimport de.cubeattack.neoprotect.core.Core;\n\nimpor... | (Config.getAPIKey()); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/request/RestAPIManager.java",
"task_id": "project_cc_java/3720"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/request/RestAPIManager.java",
"groundtruth_start_lineno": 54,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 55,
"task_id": "project_cc_java/3720"
}
} |
cross_code_eval_java::project_cc_java/3688 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/velocity/proxyprotocol/ProxyProtocol.java
// }
/... | {
"prefix": "package de.cubeattack.neoprotect.spigot.proxyprotocol;\n\nimport de.cubeattack.neoprotect.core.Config;\nimport de.cubeattack.neoprotect.spigot.NeoProtectSpigot;\nimport io.netty.channel.*;\nimport io.netty.handler.codec.haproxy.HAProxyMessage;\nimport io.netty.handler.codec.haproxy.HAProxyMessageDecoder;... | instance.getCore().severe("Error: The server was unable to set the IP address from the 'HAProxyMessage'. Therefore we closed the channel.", exception); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/spigot/proxyprotocol/ProxyProtocol.java",
"task_id": "project_cc_java/3688"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/spigot/proxyprotocol/ProxyProtocol.java",
"groundtruth_start_lineno": 167,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 168,
"task_id": "project_cc_java/3688"
}
} |
cross_code_eval_java::project_cc_java/3674 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/bungee/proxyprotocol/Reflection.java
// public static Reflec... | {
"prefix": "package de.cubeattack.neoprotect.spigot.proxyprotocol;\n\nimport de.cubeattack.neoprotect.core.Config;\nimport de.cubeattack.neoprotect.spigot.NeoProtectSpigot;\nimport io.netty.channel.*;\nimport io.netty.handler.codec.haproxy.HAProxyMessage;\nimport io.netty.handler.codec.haproxy.HAProxyMessageDecoder;... | instance.getCore().info("Proceeding with the server channel injection..."); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/spigot/proxyprotocol/ProxyProtocol.java",
"task_id": "project_cc_java/3674"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/spigot/proxyprotocol/ProxyProtocol.java",
"groundtruth_start_lineno": 51,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 52,
"task_id": "project_cc_java/3674"
}
} |
cross_code_eval_java::project_cc_java/3704 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/velocity/command/NeoProtectCommand.java
// }
// ... | {
"prefix": "package de.cubeattack.neoprotect.spigot.proxyprotocol;\n\nimport de.cubeattack.neoprotect.core.Config;\nimport de.cubeattack.neoprotect.spigot.NeoProtectSpigot;\nimport io.netty.channel.*;\nimport io.netty.handler.codec.haproxy.HAProxyMessage;\nimport io.netty.handler.codec.haproxy.HAProxyMessageDecoder;... | Reflection.getField(serverConnection.getClass(), List.class, i).get(serverConnection); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/spigot/proxyprotocol/ProxyProtocol.java",
"task_id": "project_cc_java/3704"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/spigot/proxyprotocol/ProxyProtocol.java",
"groundtruth_start_lineno": 128,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 129,
"task_id": "project_cc_java/3704"
}
} |
cross_code_eval_java::project_cc_java/3676 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/bungee/proxyprotocol/ProxyProtocol.java
// prote... | {
"prefix": "package de.cubeattack.neoprotect.spigot.proxyprotocol;\n\nimport de.cubeattack.neoprotect.core.Config;\nimport de.cubeattack.neoprotect.spigot.NeoProtectSpigot;\nimport io.netty.channel.*;\nimport io.netty.handler.codec.haproxy.HAProxyMessage;\nimport io.netty.handler.codec.haproxy.HAProxyMessageDecoder;... | instance.getCore().info("Late bind injection successful."); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/spigot/proxyprotocol/ProxyProtocol.java",
"task_id": "project_cc_java/3676"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/spigot/proxyprotocol/ProxyProtocol.java",
"groundtruth_start_lineno": 61,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 62,
"task_id": "project_cc_java/3676"
}
} |
cross_code_eval_java::project_cc_java/3675 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/bungee/proxyprotocol/ProxyProtocol.java
// prote... | {
"prefix": "package de.cubeattack.neoprotect.spigot.proxyprotocol;\n\nimport de.cubeattack.neoprotect.core.Config;\nimport de.cubeattack.neoprotect.spigot.NeoProtectSpigot;\nimport io.netty.channel.*;\nimport io.netty.handler.codec.haproxy.HAProxyMessage;\nimport io.netty.handler.codec.haproxy.HAProxyMessageDecoder;... | instance.getCore().info("Delaying server channel injection due to late bind."); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/spigot/proxyprotocol/ProxyProtocol.java",
"task_id": "project_cc_java/3675"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/spigot/proxyprotocol/ProxyProtocol.java",
"groundtruth_start_lineno": 55,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 56,
"task_id": "project_cc_java/3675"
}
} |
cross_code_eval_java::project_cc_java/3687 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/velocity/command/NeoProtectCommand.java
// }
// ... | {
"prefix": "package de.cubeattack.neoprotect.spigot.proxyprotocol;\n\nimport de.cubeattack.neoprotect.core.Config;\nimport de.cubeattack.neoprotect.spigot.NeoProtectSpigot;\nimport io.netty.channel.*;\nimport io.netty.handler.codec.haproxy.HAProxyMessage;\nimport io.netty.handler.codec.haproxy.HAProxyMessageDecoder;... | this.instance.getCore().info("Found the server channel and added the handler. Injection successfully!"); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/spigot/proxyprotocol/ProxyProtocol.java",
"task_id": "project_cc_java/3687"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/spigot/proxyprotocol/ProxyProtocol.java",
"groundtruth_start_lineno": 141,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 142,
"task_id": "project_cc_java/3687"
}
} |
cross_code_eval_java::project_cc_java/3733 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/bungee/listener/LoginListener.java
// }
// ... | {
"prefix": "package de.cubeattack.neoprotect.spigot.listener;\n\nimport de.cubeattack.api.language.Localization;\nimport de.cubeattack.api.util.JavaUtils;\nimport de.cubeattack.api.util.versioning.VersionUtils;\nimport de.cubeattack.neoprotect.core.Config;\nimport de.cubeattack.neoprotect.core.model.Stats;\nimport d... | if (instance.getCore().isPlayerMaintainer(player.getUniqueId(), instance.getServer().getOnlineMode())) { | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/spigot/listener/LoginListener.java",
"task_id": "project_cc_java/3733"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/spigot/listener/LoginListener.java",
"groundtruth_start_lineno": 53,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 54,
"task_id": "project_cc_java/3733"
}
} |
cross_code_eval_java::project_cc_java/3750 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/spigot/listener/LoginListener.java
// instance.sendM... | {
"prefix": "package de.cubeattack.neoprotect.velocity.listener;\n\nimport com.velocitypowered.api.event.PostOrder;\nimport com.velocitypowered.api.event.Subscribe;\nimport com.velocitypowered.api.event.connection.PostLoginEvent;\nimport com.velocitypowered.api.proxy.Player;\nimport de.cubeattack.api.language.Localiz... | instance.getCore().isPlayerMaintainer(player.getUniqueId(), instance.getProxy().getConfiguration().isOnlineMode())) { | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/velocity/listener/LoginListener.java",
"task_id": "project_cc_java/3750"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/velocity/listener/LoginListener.java",
"groundtruth_start_lineno": 56,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 57,
"task_id": "project_cc_java/3750"
}
} |
cross_code_eval_java::project_cc_java/3776 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/core/Config.java
// debugMode = config.getBoolean("Debug... | {
"prefix": "package de.cubeattack.neoprotect.core;\n\nimport de.cubeattack.api.language.Localization;\nimport de.cubeattack.api.logger.LogManager;\nimport de.cubeattack.api.util.FileUtils;\nimport de.cubeattack.api.util.versioning.VersionUtils;\nimport de.cubeattack.neoprotect.core.model.debugtool.DebugPingResponse;... | .forLanguageTag(Config.getLanguage()), new File("plugins/NeoProtect/languages/")); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/Core.java",
"task_id": "project_cc_java/3776"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/Core.java",
"groundtruth_start_lineno": 53,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 54,
"task_id": "project_cc_java/3776"
}
} |
cross_code_eval_java::project_cc_java/3751 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/spigot/listener/LoginListener.java
// instance.sendM... | {
"prefix": "package de.cubeattack.neoprotect.velocity.listener;\n\nimport com.velocitypowered.api.event.PostOrder;\nimport com.velocitypowered.api.event.Subscribe;\nimport com.velocitypowered.api.event.connection.PostLoginEvent;\nimport com.velocitypowered.api.proxy.Player;\nimport de.cubeattack.api.language.Localiz... | ).isPlayerMaintainer(player.getUniqueId(), instance.getProxy().getConfiguration().isOnlineMode())) { | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/velocity/listener/LoginListener.java",
"task_id": "project_cc_java/3751"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/velocity/listener/LoginListener.java",
"groundtruth_start_lineno": 56,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 57,
"task_id": "project_cc_java/3751"
}
} |
cross_code_eval_java::project_cc_java/3775 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/core/request/RestAPIRequests.java
// public RestAPIRequests(... | {
"prefix": "package de.cubeattack.neoprotect.core;\n\nimport de.cubeattack.api.language.Localization;\nimport de.cubeattack.api.logger.LogManager;\nimport de.cubeattack.api.util.FileUtils;\nimport de.cubeattack.api.util.versioning.VersionUtils;\nimport de.cubeattack.neoprotect.core.model.debugtool.DebugPingResponse;... | "NeoProtect", "NeoPlugin", "v" + plugin.getPluginVersion(), VersionUtils.UpdateSetting.DISABLED).message(); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/Core.java",
"task_id": "project_cc_java/3775"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/Core.java",
"groundtruth_start_lineno": 43,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 44,
"task_id": "project_cc_java/3775"
}
} |
cross_code_eval_java::project_cc_java/3773 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/core/request/RestAPIRequests.java
// }
// public boolean... | {
"prefix": "package de.cubeattack.neoprotect.core;\n\nimport de.cubeattack.api.language.Localization;\nimport de.cubeattack.api.logger.LogManager;\nimport de.cubeattack.api.util.FileUtils;\nimport de.cubeattack.api.util.versioning.VersionUtils;\nimport de.cubeattack.neoprotect.core.model.debugtool.DebugPingResponse;... | return restAPIRequests.isSetup(); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/Core.java",
"task_id": "project_cc_java/3773"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/Core.java",
"groundtruth_start_lineno": 102,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 103,
"task_id": "project_cc_java/3773"
}
} |
cross_code_eval_java::project_cc_java/3777 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/core/Config.java
// debugMode = config.getBoolean("Debug... | {
"prefix": "package de.cubeattack.neoprotect.core;\n\nimport de.cubeattack.api.language.Localization;\nimport de.cubeattack.api.logger.LogManager;\nimport de.cubeattack.api.util.FileUtils;\nimport de.cubeattack.api.util.versioning.VersionUtils;\nimport de.cubeattack.neoprotect.core.model.debugtool.DebugPingResponse;... | (Config.isDebugMode()) ((Logger) LogManager.getLogger().logger).log(Level.SEVERE, output); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/Core.java",
"task_id": "project_cc_java/3777"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/Core.java",
"groundtruth_start_lineno": 59,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 60,
"task_id": "project_cc_java/3777"
}
} |
cross_code_eval_java::project_cc_java/3804 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/velocity/proxyprotocol/ProxyProtocol.java
// ... | {
"prefix": "package de.cubeattack.neoprotect.bungee.proxyprotocol;\n\nimport de.cubeattack.api.util.JavaUtils;\nimport de.cubeattack.neoprotect.bungee.NeoProtectBungee;\nimport de.cubeattack.neoprotect.core.Config;\nimport de.cubeattack.neoprotect.core.NeoProtectPlugin;\nimport de.cubeattack.neoprotect.core.model.de... | instance.getCore().getDebugPingResponses().put(player.getName(), new ArrayList<>()); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/bungee/proxyprotocol/ProxyProtocol.java",
"task_id": "project_cc_java/3804"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/bungee/proxyprotocol/ProxyProtocol.java",
"groundtruth_start_lineno": 184,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 185,
"task_id": "project_cc_java/3804"
}
} |
cross_code_eval_java::project_cc_java/3807 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/velocity/proxyprotocol/ProxyProtocol.java
// ... | {
"prefix": "package de.cubeattack.neoprotect.bungee.proxyprotocol;\n\nimport de.cubeattack.api.util.JavaUtils;\nimport de.cubeattack.neoprotect.bungee.NeoProtectBungee;\nimport de.cubeattack.neoprotect.core.Config;\nimport de.cubeattack.neoprotect.core.NeoProtectPlugin;\nimport de.cubeattack.neoprotect.core.model.de... | instance.getCore().getPingMap().remove(keepAliveResponseKey); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/bungee/proxyprotocol/ProxyProtocol.java",
"task_id": "project_cc_java/3807"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/bungee/proxyprotocol/ProxyProtocol.java",
"groundtruth_start_lineno": 192,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 193,
"task_id": "project_cc_java/3807"
}
} |
cross_code_eval_java::project_cc_java/3816 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/core/request/RestAPIManager.java
// }
// protected Respo... | {
"prefix": "package de.cubeattack.neoprotect.core.request;\n\nimport com.google.gson.Gson;\nimport com.squareup.okhttp.MediaType;\nimport com.squareup.okhttp.Request;\nimport com.squareup.okhttp.RequestBody;\nimport de.cubeattack.api.libraries.org.json.JSONArray;\nimport de.cubeattack.api.libraries.org.json.JSONObje... | .request(RequestType.GET_GAMESHIELD_BANDWIDTH, null, Config.getGameShieldID()).getResponseBodyObject(); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/request/RestAPIRequests.java",
"task_id": "project_cc_java/3816"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/request/RestAPIRequests.java",
"groundtruth_start_lineno": 101,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 102,
"task_id": "project_cc_java/3816"
}
} |
cross_code_eval_java::project_cc_java/3813 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/core/request/RestAPIManager.java
// }
// protected Respo... | {
"prefix": "package de.cubeattack.neoprotect.core.request;\n\nimport com.google.gson.Gson;\nimport com.squareup.okhttp.MediaType;\nimport com.squareup.okhttp.Request;\nimport com.squareup.okhttp.RequestBody;\nimport de.cubeattack.api.libraries.org.json.JSONArray;\nimport de.cubeattack.api.libraries.org.json.JSONObje... | POST_GAMESHIELD_BACKEND_UPDATE, requestBody, Config.getGameShieldID(),backendID).checkCode(200); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/request/RestAPIRequests.java",
"task_id": "project_cc_java/3813"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/request/RestAPIRequests.java",
"groundtruth_start_lineno": 89,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 90,
"task_id": "project_cc_java/3813"
}
} |
cross_code_eval_java::project_cc_java/3817 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/core/request/ResponseManager.java
// } catch (JSONExcept... | {
"prefix": "package de.cubeattack.neoprotect.core.request;\n\nimport com.google.gson.Gson;\nimport com.squareup.okhttp.MediaType;\nimport com.squareup.okhttp.Request;\nimport com.squareup.okhttp.RequestBody;\nimport de.cubeattack.api.libraries.org.json.JSONArray;\nimport de.cubeattack.api.libraries.org.json.JSONObje... | (isAPIInvalid(Config.getAPIKey())) { | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/request/RestAPIRequests.java",
"task_id": "project_cc_java/3817"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/request/RestAPIRequests.java",
"groundtruth_start_lineno": 106,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 107,
"task_id": "project_cc_java/3817"
}
} |
cross_code_eval_java::project_cc_java/3811 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/core/request/RestAPIManager.java
// }
// protected Respo... | {
"prefix": "package de.cubeattack.neoprotect.core.request;\n\nimport com.google.gson.Gson;\nimport com.squareup.okhttp.MediaType;\nimport com.squareup.okhttp.Request;\nimport com.squareup.okhttp.RequestBody;\nimport de.cubeattack.api.libraries.org.json.JSONArray;\nimport de.cubeattack.api.libraries.org.json.JSONObje... | .request(RequestType.GET_GAMESHIELD_ISUNDERATTACK, null, Config.getGameShieldID()).getResponseBody().equals("true"); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/request/RestAPIRequests.java",
"task_id": "project_cc_java/3811"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/request/RestAPIRequests.java",
"groundtruth_start_lineno": 74,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 75,
"task_id": "project_cc_java/3811"
}
} |
cross_code_eval_java::project_cc_java/3814 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/core/request/RestAPIManager.java
// }
// protected Respo... | {
"prefix": "package de.cubeattack.neoprotect.core.request;\n\nimport com.google.gson.Gson;\nimport com.squareup.okhttp.MediaType;\nimport com.squareup.okhttp.Request;\nimport com.squareup.okhttp.RequestBody;\nimport de.cubeattack.api.libraries.org.json.JSONArray;\nimport de.cubeattack.api.libraries.org.json.JSONObje... | Config.getGameShieldID()); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/request/RestAPIRequests.java",
"task_id": "project_cc_java/3814"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/request/RestAPIRequests.java",
"groundtruth_start_lineno": 93,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 94,
"task_id": "project_cc_java/3814"
}
} |
cross_code_eval_java::project_cc_java/3810 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/core/request/RestAPIManager.java
// client.setConnectTim... | {
"prefix": "package de.cubeattack.neoprotect.core.request;\n\nimport com.google.gson.Gson;\nimport com.squareup.okhttp.MediaType;\nimport com.squareup.okhttp.Request;\nimport com.squareup.okhttp.RequestBody;\nimport de.cubeattack.api.libraries.org.json.JSONArray;\nimport de.cubeattack.api.libraries.org.json.JSONObje... | if (Config.isUpdateIP()) { | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/request/RestAPIRequests.java",
"task_id": "project_cc_java/3810"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/request/RestAPIRequests.java",
"groundtruth_start_lineno": 45,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 46,
"task_id": "project_cc_java/3810"
}
} |
cross_code_eval_java::project_cc_java/3820 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/core/Config.java
// if (backendID.isEmpty()) {
// ... | {
"prefix": "package de.cubeattack.neoprotect.core.request;\n\nimport com.google.gson.Gson;\nimport com.squareup.okhttp.MediaType;\nimport com.squareup.okhttp.Request;\nimport com.squareup.okhttp.RequestBody;\nimport de.cubeattack.api.libraries.org.json.JSONArray;\nimport de.cubeattack.api.libraries.org.json.JSONObje... | setProxyProtocol(Config.isProxyProtocol()); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/request/RestAPIRequests.java",
"task_id": "project_cc_java/3820"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/request/RestAPIRequests.java",
"groundtruth_start_lineno": 121,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 122,
"task_id": "project_cc_java/3820"
}
} |
cross_code_eval_java::project_cc_java/3821 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/core/Config.java
// if (backendID.isEmpty()) {
// ... | {
"prefix": "package de.cubeattack.neoprotect.core.request;\n\nimport com.google.gson.Gson;\nimport com.squareup.okhttp.MediaType;\nimport com.squareup.okhttp.Request;\nimport com.squareup.okhttp.RequestBody;\nimport de.cubeattack.api.libraries.org.json.JSONArray;\nimport de.cubeattack.api.libraries.org.json.JSONObje... | Config.addAutoUpdater(getPlan().equalsIgnoreCase("Basic")); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/request/RestAPIRequests.java",
"task_id": "project_cc_java/3821"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/request/RestAPIRequests.java",
"groundtruth_start_lineno": 123,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 124,
"task_id": "project_cc_java/3821"
}
} |
cross_code_eval_java::project_cc_java/3826 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java
// if (respons... | {
"prefix": "package de.cubeattack.neoprotect.core.request;\n\nimport com.google.gson.Gson;\nimport com.squareup.okhttp.MediaType;\nimport com.squareup.okhttp.Request;\nimport com.squareup.okhttp.RequestBody;\nimport de.cubeattack.api.libraries.org.json.JSONArray;\nimport de.cubeattack.api.libraries.org.json.JSONObje... | Config.getGameShieldID()).getCode(); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/request/RestAPIRequests.java",
"task_id": "project_cc_java/3826"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/request/RestAPIRequests.java",
"groundtruth_start_lineno": 161,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 162,
"task_id": "project_cc_java/3826"
}
} |
cross_code_eval_java::project_cc_java/3830 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/core/Config.java
// if (backendID.isEmpty()) {
// ... | {
"prefix": "package de.cubeattack.neoprotect.core.request;\n\nimport com.google.gson.Gson;\nimport com.squareup.okhttp.MediaType;\nimport com.squareup.okhttp.Request;\nimport com.squareup.okhttp.RequestBody;\nimport de.cubeattack.api.libraries.org.json.JSONArray;\nimport de.cubeattack.api.libraries.org.json.JSONObje... | core.severe("Gameshield is not valid! Please run /neoprotect setgameshield to set the gameshield"); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/request/RestAPIRequests.java",
"task_id": "project_cc_java/3830"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/request/RestAPIRequests.java",
"groundtruth_start_lineno": 111,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 112,
"task_id": "project_cc_java/3830"
}
} |
cross_code_eval_java::project_cc_java/3829 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/core/request/ResponseManager.java
// } catch (JSONExcept... | {
"prefix": "package de.cubeattack.neoprotect.core.request;\n\nimport com.google.gson.Gson;\nimport com.squareup.okhttp.MediaType;\nimport com.squareup.okhttp.Request;\nimport com.squareup.okhttp.RequestBody;\nimport de.cubeattack.api.libraries.org.json.JSONArray;\nimport de.cubeattack.api.libraries.org.json.JSONObje... | core.severe("API is not valid! Please run /neoprotect setup to set the API Key"); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/request/RestAPIRequests.java",
"task_id": "project_cc_java/3829"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/request/RestAPIRequests.java",
"groundtruth_start_lineno": 107,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 108,
"task_id": "project_cc_java/3829"
}
} |
cross_code_eval_java::project_cc_java/3828 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/core/request/ResponseManager.java
// } catch (JSONExcept... | {
"prefix": "package de.cubeattack.neoprotect.core.request;\n\nimport com.google.gson.Gson;\nimport com.squareup.okhttp.MediaType;\nimport com.squareup.okhttp.Request;\nimport com.squareup.okhttp.RequestBody;\nimport de.cubeattack.api.libraries.org.json.JSONArray;\nimport de.cubeattack.api.libraries.org.json.JSONObje... | null, Config.getGameShieldID()).getResponseBodyArray(); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/request/RestAPIRequests.java",
"task_id": "project_cc_java/3828"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/request/RestAPIRequests.java",
"groundtruth_start_lineno": 188,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 189,
"task_id": "project_cc_java/3828"
}
} |
cross_code_eval_java::project_cc_java/3843 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/spigot/listener/LoginListener.java
// instance.sendM... | {
"prefix": "package de.cubeattack.neoprotect.core.executor;\n\nimport de.cubeattack.api.API;\nimport de.cubeattack.api.language.Localization;\nimport de.cubeattack.api.libraries.org.bspfsystems.yamlconfiguration.file.YamlConfiguration;\nimport de.cubeattack.api.libraries.org.json.JSONObject;\nimport de.cubeattack.ne... | Config.setGeyserBackendID(args[1]); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"task_id": "project_cc_java/3843"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"groundtruth_start_lineno": 511,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 512,
"task_id": "project_cc_java/3843"
}
} |
cross_code_eval_java::project_cc_java/3842 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/spigot/listener/LoginListener.java
// instance.sendM... | {
"prefix": "package de.cubeattack.neoprotect.core.executor;\n\nimport de.cubeattack.api.API;\nimport de.cubeattack.api.language.Localization;\nimport de.cubeattack.api.libraries.org.bspfsystems.yamlconfiguration.file.YamlConfiguration;\nimport de.cubeattack.api.libraries.org.json.JSONObject;\nimport de.cubeattack.ne... | Config.setBackendID(args[1]); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"task_id": "project_cc_java/3842"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"groundtruth_start_lineno": 481,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 482,
"task_id": "project_cc_java/3842"
}
} |
cross_code_eval_java::project_cc_java/3850 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/spigot/listener/LoginListener.java
// instance.sendM... | {
"prefix": "package de.cubeattack.neoprotect.core.executor;\n\nimport de.cubeattack.api.API;\nimport de.cubeattack.api.language.Localization;\nimport de.cubeattack.api.libraries.org.bspfsystems.yamlconfiguration.file.YamlConfiguration;\nimport de.cubeattack.api.libraries.org.json.JSONObject;\nimport de.cubeattack.ne... | int response = instance.getCore().getRestAPI().toggle(args[1]); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"task_id": "project_cc_java/3850"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"groundtruth_start_lineno": 182,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 183,
"task_id": "project_cc_java/3850"
}
} |
cross_code_eval_java::project_cc_java/3833 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/core/request/RestAPIManager.java
// }
// protected Respo... | {
"prefix": "package de.cubeattack.neoprotect.core.request;\n\nimport com.google.gson.Gson;\nimport com.squareup.okhttp.MediaType;\nimport com.squareup.okhttp.Request;\nimport com.squareup.okhttp.RequestBody;\nimport de.cubeattack.api.libraries.org.json.JSONArray;\nimport de.cubeattack.api.libraries.org.json.JSONObje... | getBackends().stream().noneMatch(e -> e.compareById(backendID)); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/request/RestAPIRequests.java",
"task_id": "project_cc_java/3833"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/request/RestAPIRequests.java",
"groundtruth_start_lineno": 70,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 71,
"task_id": "project_cc_java/3833"
}
} |
cross_code_eval_java::project_cc_java/3855 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/spigot/listener/LoginListener.java
// ... | {
"prefix": "package de.cubeattack.neoprotect.core.executor;\n\nimport de.cubeattack.api.API;\nimport de.cubeattack.api.language.Localization;\nimport de.cubeattack.api.libraries.org.bspfsystems.yamlconfiguration.file.YamlConfiguration;\nimport de.cubeattack.api.libraries.org.json.JSONObject;\nimport de.cubeattack.ne... | = instance.getCore().getRestAPI().getTraffic(); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"task_id": "project_cc_java/3855"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"groundtruth_start_lineno": 215,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 216,
"task_id": "project_cc_java/3855"
}
} |
cross_code_eval_java::project_cc_java/3841 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/spigot/listener/LoginListener.java
// instance.sendM... | {
"prefix": "package de.cubeattack.neoprotect.core.executor;\n\nimport de.cubeattack.api.API;\nimport de.cubeattack.api.language.Localization;\nimport de.cubeattack.api.libraries.org.bspfsystems.yamlconfiguration.file.YamlConfiguration;\nimport de.cubeattack.api.libraries.org.json.JSONObject;\nimport de.cubeattack.ne... | Config.setGameShieldID(args[1]); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"task_id": "project_cc_java/3841"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"groundtruth_start_lineno": 454,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 455,
"task_id": "project_cc_java/3841"
}
} |
cross_code_eval_java::project_cc_java/3857 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/spigot/listener/LoginListener.java
// instance.sendM... | {
"prefix": "package de.cubeattack.neoprotect.core.executor;\n\nimport de.cubeattack.api.API;\nimport de.cubeattack.api.language.Localization;\nimport de.cubeattack.api.libraries.org.bspfsystems.yamlconfiguration.file.YamlConfiguration;\nimport de.cubeattack.api.libraries.org.json.JSONObject;\nimport de.cubeattack.ne... | instance.sendMessage(sender, "§7§l----- §bFirewall (" + args[0].toUpperCase() + ")§7§l -----"); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"task_id": "project_cc_java/3857"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"groundtruth_start_lineno": 240,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 241,
"task_id": "project_cc_java/3857"
}
} |
cross_code_eval_java::project_cc_java/3840 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/spigot/listener/LoginListener.java
// instance.sendM... | {
"prefix": "package de.cubeattack.neoprotect.core.executor;\n\nimport de.cubeattack.api.API;\nimport de.cubeattack.api.language.Localization;\nimport de.cubeattack.api.libraries.org.bspfsystems.yamlconfiguration.file.YamlConfiguration;\nimport de.cubeattack.api.libraries.org.json.JSONObject;\nimport de.cubeattack.ne... | Config.setAPIKey(msg); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"task_id": "project_cc_java/3840"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"groundtruth_start_lineno": 51,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 52,
"task_id": "project_cc_java/3840"
}
} |
cross_code_eval_java::project_cc_java/3861 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/core/request/RestAPIRequests.java
// if(firewall == ... | {
"prefix": "package de.cubeattack.neoprotect.core.executor;\n\nimport de.cubeattack.api.API;\nimport de.cubeattack.api.language.Localization;\nimport de.cubeattack.api.libraries.org.bspfsystems.yamlconfiguration.file.YamlConfiguration;\nimport de.cubeattack.api.libraries.org.json.JSONObject;\nimport de.cubeattack.ne... | (instance.getPluginType() == NeoProtectPlugin.PluginType.SPIGOT) { | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"task_id": "project_cc_java/3861"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"groundtruth_start_lineno": 283,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 284,
"task_id": "project_cc_java/3861"
}
} |
cross_code_eval_java::project_cc_java/3874 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/spigot/listener/LoginListener.java
// instance.sendM... | {
"prefix": "package de.cubeattack.neoprotect.core.executor;\n\nimport de.cubeattack.api.API;\nimport de.cubeattack.api.language.Localization;\nimport de.cubeattack.api.libraries.org.bspfsystems.yamlconfiguration.file.YamlConfiguration;\nimport de.cubeattack.api.libraries.org.json.JSONObject;\nimport de.cubeattack.ne... | instance.getCore().severe(ex.getMessage(), ex); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"task_id": "project_cc_java/3874"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"groundtruth_start_lineno": 428,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 429,
"task_id": "project_cc_java/3874"
}
} |
cross_code_eval_java::project_cc_java/3859 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/velocity/command/NeoProtectCommand.java
// });
// }
... | {
"prefix": "package de.cubeattack.neoprotect.core.executor;\n\nimport de.cubeattack.api.API;\nimport de.cubeattack.api.language.Localization;\nimport de.cubeattack.api.libraries.org.bspfsystems.yamlconfiguration.file.YamlConfiguration;\nimport de.cubeattack.api.libraries.org.json.JSONObject;\nimport de.cubeattack.ne... | response = instance.getCore().getRestAPI().updateFirewall(ip, action, mode); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"task_id": "project_cc_java/3859"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"groundtruth_start_lineno": 247,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 248,
"task_id": "project_cc_java/3859"
}
} |
cross_code_eval_java::project_cc_java/3849 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/spigot/listener/LoginListener.java
// instance.sendM... | {
"prefix": "package de.cubeattack.neoprotect.core.executor;\n\nimport de.cubeattack.api.API;\nimport de.cubeattack.api.language.Localization;\nimport de.cubeattack.api.libraries.org.bspfsystems.yamlconfiguration.file.YamlConfiguration;\nimport de.cubeattack.api.libraries.org.json.JSONObject;\nimport de.cubeattack.ne... | instance.getCore().getDirectConnectWhitelist().add(args[1]); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"task_id": "project_cc_java/3849"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"groundtruth_start_lineno": 171,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 172,
"task_id": "project_cc_java/3849"
}
} |
cross_code_eval_java::project_cc_java/3868 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/velocity/NeoProtectVelocity.java
// Arrays.toStr... | {
"prefix": "package de.cubeattack.neoprotect.core.executor;\n\nimport de.cubeattack.api.API;\nimport de.cubeattack.api.language.Localization;\nimport de.cubeattack.api.libraries.org.bspfsystems.yamlconfiguration.file.YamlConfiguration;\nimport de.cubeattack.api.libraries.org.json.JSONObject;\nimport de.cubeattack.ne... | ("general.ProxyPlugins", instance.getPlugins()); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"task_id": "project_cc_java/3868"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"groundtruth_start_lineno": 348,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 349,
"task_id": "project_cc_java/3868"
}
} |
cross_code_eval_java::project_cc_java/3845 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/bungee/listener/ChatListener.java
// .local(((Pr... | {
"prefix": "package de.cubeattack.neoprotect.core.executor;\n\nimport de.cubeattack.api.API;\nimport de.cubeattack.api.language.Localization;\nimport de.cubeattack.api.libraries.org.bspfsystems.yamlconfiguration.file.YamlConfiguration;\nimport de.cubeattack.api.libraries.org.json.JSONObject;\nimport de.cubeattack.ne... | if (instance.getCore().getRestAPI().isAPIInvalid(msg)) { | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"task_id": "project_cc_java/3845"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"groundtruth_start_lineno": 46,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 47,
"task_id": "project_cc_java/3845"
}
} |
cross_code_eval_java::project_cc_java/3862 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/bungee/command/NeoProtectCommand.java
// }
// ... | {
"prefix": "package de.cubeattack.neoprotect.core.executor;\n\nimport de.cubeattack.api.API;\nimport de.cubeattack.api.language.Localization;\nimport de.cubeattack.api.libraries.org.bspfsystems.yamlconfiguration.file.YamlConfiguration;\nimport de.cubeattack.api.libraries.org.json.JSONObject;\nimport de.cubeattack.ne... | instance.getCore().setDebugRunning(false); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"task_id": "project_cc_java/3862"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"groundtruth_start_lineno": 291,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 292,
"task_id": "project_cc_java/3862"
}
} |
cross_code_eval_java::project_cc_java/3863 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/spigot/listener/LoginListener.java
// instance.sendM... | {
"prefix": "package de.cubeattack.neoprotect.core.executor;\n\nimport de.cubeattack.api.API;\nimport de.cubeattack.api.language.Localization;\nimport de.cubeattack.api.libraries.org.bspfsystems.yamlconfiguration.file.YamlConfiguration;\nimport de.cubeattack.api.libraries.org.json.JSONObject;\nimport de.cubeattack.ne... | instance.getCore().isDebugRunning()) { | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"task_id": "project_cc_java/3863"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"groundtruth_start_lineno": 302,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 303,
"task_id": "project_cc_java/3863"
}
} |
cross_code_eval_java::project_cc_java/3847 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/spigot/listener/LoginListener.java
// instance.sendM... | {
"prefix": "package de.cubeattack.neoprotect.core.executor;\n\nimport de.cubeattack.api.API;\nimport de.cubeattack.api.language.Localization;\nimport de.cubeattack.api.libraries.org.bspfsystems.yamlconfiguration.file.YamlConfiguration;\nimport de.cubeattack.api.libraries.org.json.JSONObject;\nimport de.cubeattack.ne... | instance.getCore().getPlayerInSetup().add(sender); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"task_id": "project_cc_java/3847"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"groundtruth_start_lineno": 154,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 155,
"task_id": "project_cc_java/3847"
}
} |
cross_code_eval_java::project_cc_java/3848 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/spigot/listener/LoginListener.java
// instance.sendM... | {
"prefix": "package de.cubeattack.neoprotect.core.executor;\n\nimport de.cubeattack.api.API;\nimport de.cubeattack.api.language.Localization;\nimport de.cubeattack.api.libraries.org.bspfsystems.yamlconfiguration.file.YamlConfiguration;\nimport de.cubeattack.api.libraries.org.json.JSONObject;\nimport de.cubeattack.ne... | , instance.getCore().getRestAPI().togglePanicMode() ? "utils.activated" : "utils.deactivated"))); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"task_id": "project_cc_java/3848"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"groundtruth_start_lineno": 165,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 166,
"task_id": "project_cc_java/3848"
}
} |
cross_code_eval_java::project_cc_java/3852 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/spigot/listener/LoginListener.java
// instance.sendM... | {
"prefix": "package de.cubeattack.neoprotect.core.executor;\n\nimport de.cubeattack.api.API;\nimport de.cubeattack.api.language.Localization;\nimport de.cubeattack.api.libraries.org.bspfsystems.yamlconfiguration.file.YamlConfiguration;\nimport de.cubeattack.api.libraries.org.json.JSONObject;\nimport de.cubeattack.ne... | instance.sendMessage(sender, "§7§l--------- §bAnalytics §7§l---------"); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"task_id": "project_cc_java/3852"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"groundtruth_start_lineno": 205,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 206,
"task_id": "project_cc_java/3852"
}
} |
cross_code_eval_java::project_cc_java/3872 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/core/Config.java
// fileUtils.save();
// backend... | {
"prefix": "package de.cubeattack.neoprotect.core.executor;\n\nimport de.cubeattack.api.API;\nimport de.cubeattack.api.language.Localization;\nimport de.cubeattack.api.libraries.org.bspfsystems.yamlconfiguration.file.YamlConfiguration;\nimport de.cubeattack.api.libraries.org.json.JSONObject;\nimport de.cubeattack.ne... | instance.getCore().getDebugPingResponses().clear(); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"task_id": "project_cc_java/3872"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"groundtruth_start_lineno": 418,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 419,
"task_id": "project_cc_java/3872"
}
} |
cross_code_eval_java::project_cc_java/3851 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/spigot/listener/LoginListener.java
// instance.sendM... | {
"prefix": "package de.cubeattack.neoprotect.core.executor;\n\nimport de.cubeattack.api.API;\nimport de.cubeattack.api.language.Localization;\nimport de.cubeattack.api.libraries.org.bspfsystems.yamlconfiguration.file.YamlConfiguration;\nimport de.cubeattack.api.libraries.org.json.JSONObject;\nimport de.cubeattack.ne... | instance.sendMessage(sender, "§cCan not found setting '" + args[1] + "'"); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"task_id": "project_cc_java/3851"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"groundtruth_start_lineno": 195,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 196,
"task_id": "project_cc_java/3851"
}
} |
cross_code_eval_java::project_cc_java/3864 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/spigot/listener/LoginListener.java
// instance.sendM... | {
"prefix": "package de.cubeattack.neoprotect.core.executor;\n\nimport de.cubeattack.api.API;\nimport de.cubeattack.api.language.Localization;\nimport de.cubeattack.api.libraries.org.bspfsystems.yamlconfiguration.file.YamlConfiguration;\nimport de.cubeattack.api.libraries.org.json.JSONObject;\nimport de.cubeattack.ne... | instance.getCore().setDebugRunning(true); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"task_id": "project_cc_java/3864"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"groundtruth_start_lineno": 307,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 308,
"task_id": "project_cc_java/3864"
}
} |
cross_code_eval_java::project_cc_java/3885 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/spigot/listener/LoginListener.java
// instance.sendM... | {
"prefix": "package de.cubeattack.neoprotect.core.executor;\n\nimport de.cubeattack.api.API;\nimport de.cubeattack.api.language.Localization;\nimport de.cubeattack.api.libraries.org.bspfsystems.yamlconfiguration.file.YamlConfiguration;\nimport de.cubeattack.api.libraries.org.json.JSONObject;\nimport de.cubeattack.ne... | instance.sendMessage(sender, " - /np analytics"); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"task_id": "project_cc_java/3885"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"groundtruth_start_lineno": 524,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 525,
"task_id": "project_cc_java/3885"
}
} |
cross_code_eval_java::project_cc_java/3875 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/spigot/proxyprotocol/ProxyProtocol.java
// chann... | {
"prefix": "package de.cubeattack.neoprotect.core.executor;\n\nimport de.cubeattack.api.API;\nimport de.cubeattack.api.language.Localization;\nimport de.cubeattack.api.libraries.org.bspfsystems.yamlconfiguration.file.YamlConfiguration;\nimport de.cubeattack.api.libraries.org.json.JSONObject;\nimport de.cubeattack.ne... | List<Gameshield> gameshieldList = instance.getCore().getRestAPI().getGameshields(); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"task_id": "project_cc_java/3875"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"groundtruth_start_lineno": 438,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 439,
"task_id": "project_cc_java/3875"
}
} |
cross_code_eval_java::project_cc_java/3869 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/spigot/listener/LoginListener.java
// ... | {
"prefix": "package de.cubeattack.neoprotect.core.executor;\n\nimport de.cubeattack.api.API;\nimport de.cubeattack.api.language.Localization;\nimport de.cubeattack.api.libraries.org.bspfsystems.yamlconfiguration.file.YamlConfiguration;\nimport de.cubeattack.api.libraries.org.json.JSONObject;\nimport de.cubeattack.ne... | instance.getCore().getDebugPingResponses().keySet().forEach((playerName -> { | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"task_id": "project_cc_java/3869"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"groundtruth_start_lineno": 350,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 351,
"task_id": "project_cc_java/3869"
}
} |
cross_code_eval_java::project_cc_java/3876 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/spigot/listener/LoginListener.java
// instance.sendM... | {
"prefix": "package de.cubeattack.neoprotect.core.executor;\n\nimport de.cubeattack.api.API;\nimport de.cubeattack.api.language.Localization;\nimport de.cubeattack.api.libraries.org.bspfsystems.yamlconfiguration.file.YamlConfiguration;\nimport de.cubeattack.api.libraries.org.json.JSONObject;\nimport de.cubeattack.ne... | instance.getCore().getRestAPI().isGameshieldInvalid(args[1])) { | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"task_id": "project_cc_java/3876"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"groundtruth_start_lineno": 449,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 450,
"task_id": "project_cc_java/3876"
}
} |
cross_code_eval_java::project_cc_java/3870 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/spigot/listener/LoginListener.java
// ... | {
"prefix": "package de.cubeattack.neoprotect.core.executor;\n\nimport de.cubeattack.api.API;\nimport de.cubeattack.api.language.Localization;\nimport de.cubeattack.api.libraries.org.bspfsystems.yamlconfiguration.file.YamlConfiguration;\nimport de.cubeattack.api.libraries.org.json.JSONObject;\nimport de.cubeattack.ne... | List<DebugPingResponse> list = instance.getCore().getDebugPingResponses().get(playerName); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"task_id": "project_cc_java/3870"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"groundtruth_start_lineno": 351,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 352,
"task_id": "project_cc_java/3870"
}
} |
cross_code_eval_java::project_cc_java/3854 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/velocity/listener/LoginListener.java
// ... | {
"prefix": "package de.cubeattack.neoprotect.core.executor;\n\nimport de.cubeattack.api.API;\nimport de.cubeattack.api.language.Localization;\nimport de.cubeattack.api.libraries.org.bspfsystems.yamlconfiguration.file.YamlConfiguration;\nimport de.cubeattack.api.libraries.org.json.JSONObject;\nimport de.cubeattack.ne... | instance.getCore().getRestAPI().getAnalytics().keySet().forEach(ak -> { | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"task_id": "project_cc_java/3854"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"groundtruth_start_lineno": 207,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 208,
"task_id": "project_cc_java/3854"
}
} |
cross_code_eval_java::project_cc_java/3886 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/spigot/listener/LoginListener.java
// instance.sendM... | {
"prefix": "package de.cubeattack.neoprotect.core.executor;\n\nimport de.cubeattack.api.API;\nimport de.cubeattack.api.language.Localization;\nimport de.cubeattack.api.libraries.org.bspfsystems.yamlconfiguration.file.YamlConfiguration;\nimport de.cubeattack.api.libraries.org.json.JSONObject;\nimport de.cubeattack.ne... | instance.sendMessage(sender, " - /np toggle (option)"); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"task_id": "project_cc_java/3886"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"groundtruth_start_lineno": 525,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 526,
"task_id": "project_cc_java/3886"
}
} |
cross_code_eval_java::project_cc_java/3877 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/spigot/listener/LoginListener.java
// instance.sendM... | {
"prefix": "package de.cubeattack.neoprotect.core.executor;\n\nimport de.cubeattack.api.API;\nimport de.cubeattack.api.language.Localization;\nimport de.cubeattack.api.libraries.org.bspfsystems.yamlconfiguration.file.YamlConfiguration;\nimport de.cubeattack.api.libraries.org.json.JSONObject;\nimport de.cubeattack.ne... | backendList = instance.getCore().getRestAPI().getBackends(); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"task_id": "project_cc_java/3877"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"groundtruth_start_lineno": 462,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 463,
"task_id": "project_cc_java/3877"
}
} |
cross_code_eval_java::project_cc_java/3889 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/spigot/listener/LoginListener.java
// instance.sendM... | {
"prefix": "package de.cubeattack.neoprotect.core.executor;\n\nimport de.cubeattack.api.API;\nimport de.cubeattack.api.language.Localization;\nimport de.cubeattack.api.libraries.org.bspfsystems.yamlconfiguration.file.YamlConfiguration;\nimport de.cubeattack.api.libraries.org.json.JSONObject;\nimport de.cubeattack.ne... | instance.sendMessage(sender, " - /np debugTool (cancel / amount)"); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"task_id": "project_cc_java/3889"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"groundtruth_start_lineno": 528,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 529,
"task_id": "project_cc_java/3889"
}
} |
cross_code_eval_java::project_cc_java/3883 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/spigot/listener/LoginListener.java
// instance.sendM... | {
"prefix": "package de.cubeattack.neoprotect.core.executor;\n\nimport de.cubeattack.api.API;\nimport de.cubeattack.api.language.Localization;\nimport de.cubeattack.api.libraries.org.bspfsystems.yamlconfiguration.file.YamlConfiguration;\nimport de.cubeattack.api.libraries.org.json.JSONObject;\nimport de.cubeattack.ne... | instance.sendMessage(sender, " - /np setup"); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"task_id": "project_cc_java/3883"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"groundtruth_start_lineno": 522,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 523,
"task_id": "project_cc_java/3883"
}
} |
cross_code_eval_java::project_cc_java/3882 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/spigot/command/NeoProtectCommand.java
// .neoPro... | {
"prefix": "package de.cubeattack.neoprotect.core.executor;\n\nimport de.cubeattack.api.API;\nimport de.cubeattack.api.language.Localization;\nimport de.cubeattack.api.libraries.org.bspfsystems.yamlconfiguration.file.YamlConfiguration;\nimport de.cubeattack.api.libraries.org.json.JSONObject;\nimport de.cubeattack.ne... | instance.getCore().getPlayerInSetup().remove(sender)) { | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"task_id": "project_cc_java/3882"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"groundtruth_start_lineno": 514,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 515,
"task_id": "project_cc_java/3882"
}
} |
cross_code_eval_java::project_cc_java/3879 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/velocity/listener/LoginListener.java
// ... | {
"prefix": "package de.cubeattack.neoprotect.core.executor;\n\nimport de.cubeattack.api.API;\nimport de.cubeattack.api.language.Localization;\nimport de.cubeattack.api.libraries.org.bspfsystems.yamlconfiguration.file.YamlConfiguration;\nimport de.cubeattack.api.libraries.org.json.JSONObject;\nimport de.cubeattack.ne... | instance.getCore().getRestAPI().testCredentials(); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"task_id": "project_cc_java/3879"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"groundtruth_start_lineno": 484,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 485,
"task_id": "project_cc_java/3879"
}
} |
cross_code_eval_java::project_cc_java/3887 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/spigot/listener/LoginListener.java
// instance.sendM... | {
"prefix": "package de.cubeattack.neoprotect.core.executor;\n\nimport de.cubeattack.api.API;\nimport de.cubeattack.api.language.Localization;\nimport de.cubeattack.api.libraries.org.bspfsystems.yamlconfiguration.file.YamlConfiguration;\nimport de.cubeattack.api.libraries.org.json.JSONObject;\nimport de.cubeattack.ne... | instance.sendMessage(sender, " - /np whitelist (add/remove) (ip)"); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"task_id": "project_cc_java/3887"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"groundtruth_start_lineno": 526,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 527,
"task_id": "project_cc_java/3887"
}
} |
cross_code_eval_java::project_cc_java/3890 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/spigot/listener/LoginListener.java
// instance.sendM... | {
"prefix": "package de.cubeattack.neoprotect.core.executor;\n\nimport de.cubeattack.api.API;\nimport de.cubeattack.api.language.Localization;\nimport de.cubeattack.api.libraries.org.bspfsystems.yamlconfiguration.file.YamlConfiguration;\nimport de.cubeattack.api.libraries.org.json.JSONObject;\nimport de.cubeattack.ne... | instance.sendMessage(sender, " - /np directConnectWhitelist (ip)"); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"task_id": "project_cc_java/3890"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"groundtruth_start_lineno": 529,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 530,
"task_id": "project_cc_java/3890"
}
} |
cross_code_eval_java::project_cc_java/3891 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/spigot/listener/LoginListener.java
// instance.sendM... | {
"prefix": "package de.cubeattack.neoprotect.core.executor;\n\nimport de.cubeattack.api.API;\nimport de.cubeattack.api.language.Localization;\nimport de.cubeattack.api.libraries.org.bspfsystems.yamlconfiguration.file.YamlConfiguration;\nimport de.cubeattack.api.libraries.org.json.JSONObject;\nimport de.cubeattack.ne... | instance.sendMessage(sender, " - /np setgameshield [id]"); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"task_id": "project_cc_java/3891"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"groundtruth_start_lineno": 530,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 531,
"task_id": "project_cc_java/3891"
}
} |
cross_code_eval_java::project_cc_java/3894 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/spigot/listener/LoginListener.java
// instance.sendM... | {
"prefix": "package de.cubeattack.neoprotect.core.executor;\n\nimport de.cubeattack.api.API;\nimport de.cubeattack.api.language.Localization;\nimport de.cubeattack.api.libraries.org.bspfsystems.yamlconfiguration.file.YamlConfiguration;\nimport de.cubeattack.api.libraries.org.json.JSONObject;\nimport de.cubeattack.ne... | if(backend.isGeyser())continue; | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"task_id": "project_cc_java/3894"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"groundtruth_start_lineno": 467,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 468,
"task_id": "project_cc_java/3894"
}
} |
cross_code_eval_java::project_cc_java/3967 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/cursework/WebArtSell/Controllers/TransactionController.java
// transa... | {
"prefix": "package com.cursework.WebArtSell.Controllers;\n\nimport com.cursework.WebArtSell.Models.Product;\nimport com.cursework.WebArtSell.Models.User;\nimport com.cursework.WebArtSell.Services.ProductService;\nimport com.cursework.WebArtSell.Services.TransactionService;\nimport jakarta.servlet.http.HttpServletRe... | product.setDescription("Это ваше объявление!"); | {} | {
"repository": "Neural-Enigma-Art-sales-Spring-Boot-57a8036",
"file": "src/main/java/com/cursework/WebArtSell/Controllers/HomeController.java",
"task_id": "project_cc_java/3967"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/cursework/WebArtSell/Controllers/HomeController.java",
"groundtruth_start_lineno": 38,
"repository": "Neural-Enigma-Art-sales-Spring-Boot-57a8036",
"right_context_start_lineno": 39,
"task_id": "project_cc_java/3967"
}
} |
cross_code_eval_java::project_cc_java/3900 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/spigot/listener/LoginListener.java
// instance.sendM... | {
"prefix": "package de.cubeattack.neoprotect.core.executor;\n\nimport de.cubeattack.api.API;\nimport de.cubeattack.api.language.Localization;\nimport de.cubeattack.api.libraries.org.bspfsystems.yamlconfiguration.file.YamlConfiguration;\nimport de.cubeattack.api.libraries.org.json.JSONObject;\nimport de.cubeattack.ne... | .get(locale, "hover.backend", backend.getIp(), backend.getPort(), backend.getId())); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"task_id": "project_cc_java/3900"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"groundtruth_start_lineno": 470,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 471,
"task_id": "project_cc_java/3900"
}
} |
cross_code_eval_java::project_cc_java/3960 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/cursework/WebArtSell/Controllers/ProductController.java
// }
// @PostMapping(... | {
"prefix": "package com.cursework.WebArtSell.Controllers;\n\nimport com.cursework.WebArtSell.Models.User;\nimport com.cursework.WebArtSell.Repositories.UserRepository;\nimport jakarta.servlet.http.HttpSession;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.stereotype.Cont... | setEmail(user.getEmail()); | {} | {
"repository": "Neural-Enigma-Art-sales-Spring-Boot-57a8036",
"file": "src/main/java/com/cursework/WebArtSell/Controllers/UserController.java",
"task_id": "project_cc_java/3960"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/cursework/WebArtSell/Controllers/UserController.java",
"groundtruth_start_lineno": 36,
"repository": "Neural-Enigma-Art-sales-Spring-Boot-57a8036",
"right_context_start_lineno": 37,
"task_id": "project_cc_java/3960"
}
} |
cross_code_eval_java::project_cc_java/3910 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/spigot/listener/LoginListener.java
// instance.sendM... | {
"prefix": "package de.cubeattack.neoprotect.core.executor;\n\nimport de.cubeattack.api.API;\nimport de.cubeattack.api.language.Localization;\nimport de.cubeattack.api.libraries.org.bspfsystems.yamlconfiguration.file.YamlConfiguration;\nimport de.cubeattack.api.libraries.org.json.JSONObject;\nimport de.cubeattack.ne... | gameshield.getName(), gameshield.getId())); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"task_id": "project_cc_java/3910"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"groundtruth_start_lineno": 443,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 444,
"task_id": "project_cc_java/3910"
}
} |
cross_code_eval_java::project_cc_java/3962 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/cursework/WebArtSell/Secure/UserCheckInterceptor.java
// HttpSession session ... | {
"prefix": "package com.cursework.WebArtSell.Controllers;\n\nimport com.cursework.WebArtSell.Models.User;\nimport com.cursework.WebArtSell.Repositories.UserRepository;\nimport jakarta.servlet.http.HttpSession;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.stereotype.Cont... | existUser.setRole(user.getRole()); | {} | {
"repository": "Neural-Enigma-Art-sales-Spring-Boot-57a8036",
"file": "src/main/java/com/cursework/WebArtSell/Controllers/UserController.java",
"task_id": "project_cc_java/3962"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/cursework/WebArtSell/Controllers/UserController.java",
"groundtruth_start_lineno": 38,
"repository": "Neural-Enigma-Art-sales-Spring-Boot-57a8036",
"right_context_start_lineno": 39,
"task_id": "project_cc_java/3962"
}
} |
cross_code_eval_java::project_cc_java/3920 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/de/cubeattack/neoprotect/spigot/NeoProtectSpigot.java
// public void sendAdminMessage... | {
"prefix": "package de.cubeattack.neoprotect.velocity;\n\nimport com.google.inject.Inject;\nimport com.velocitypowered.api.command.CommandSource;\nimport com.velocitypowered.api.event.Subscribe;\nimport com.velocitypowered.api.event.proxy.ProxyInitializeEvent;\nimport com.velocitypowered.api.proxy.Player;\nimport co... | Component.text(core.getPrefix() + text); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/velocity/NeoProtectVelocity.java",
"task_id": "project_cc_java/3920"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/velocity/NeoProtectVelocity.java",
"groundtruth_start_lineno": 89,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 90,
"task_id": "project_cc_java/3920"
}
} |
cross_code_eval_java::project_cc_java/3979 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/cursework/WebArtSell/Controllers/RegistrationController.java
// user.setEmail... | {
"prefix": "package com.cursework.WebArtSell.Controllers;\n\nimport com.cursework.WebArtSell.Models.User;\nimport com.cursework.WebArtSell.Repositories.UserRepository;\nimport jakarta.servlet.http.HttpServletRequest;\nimport jakarta.servlet.http.HttpSession;\nimport org.springframework.beans.factory.annotation.Autow... | (user.getRole().equals("ADMIN")) { | {} | {
"repository": "Neural-Enigma-Art-sales-Spring-Boot-57a8036",
"file": "src/main/java/com/cursework/WebArtSell/Controllers/AuthorisationController.java",
"task_id": "project_cc_java/3979"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/cursework/WebArtSell/Controllers/AuthorisationController.java",
"groundtruth_start_lineno": 39,
"repository": "Neural-Enigma-Art-sales-Spring-Boot-57a8036",
"right_context_start_lineno": 40,
"task_id": "project_cc_java/3979"... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.