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/3912 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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... | set("general.pluginVersion", stats.getPluginVersion()); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"task_id": "project_cc_java/3912"
} | {
"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": 345,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 346,
"task_id": "project_cc_java/3912"
}
} |
cross_code_eval_java::project_cc_java/3966 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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
// }
// @GetMapping("... | {
"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... | if (product.getCreatedBy().getId().equals(currentUserId)) { | {} | {
"repository": "Neural-Enigma-Art-sales-Spring-Boot-57a8036",
"file": "src/main/java/com/cursework/WebArtSell/Controllers/HomeController.java",
"task_id": "project_cc_java/3966"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/cursework/WebArtSell/Controllers/HomeController.java",
"groundtruth_start_lineno": 37,
"repository": "Neural-Enigma-Art-sales-Spring-Boot-57a8036",
"right_context_start_lineno": 38,
"task_id": "project_cc_java/3966"
}
} |
cross_code_eval_java::project_cc_java/3914 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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.ProxyVersion", stats.getServerVersion()); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"task_id": "project_cc_java/3914"
} | {
"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": 347,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 348,
"task_id": "project_cc_java/3914"
}
} |
cross_code_eval_java::project_cc_java/3986 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/AuthorisationController.java
// return "... | {
"prefix": "package com.cursework.WebArtSell.Controllers;\n\nimport com.cursework.WebArtSell.Models.User;\nimport com.cursework.WebArtSell.Repositories.UserRepository;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.stereotype.Controller;\nimport org.springframework.ui.Mod... | user.setStatus("Активный"); | {} | {
"repository": "Neural-Enigma-Art-sales-Spring-Boot-57a8036",
"file": "src/main/java/com/cursework/WebArtSell/Controllers/RegistrationController.java",
"task_id": "project_cc_java/3986"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/cursework/WebArtSell/Controllers/RegistrationController.java",
"groundtruth_start_lineno": 40,
"repository": "Neural-Enigma-Art-sales-Spring-Boot-57a8036",
"right_context_start_lineno": 41,
"task_id": "project_cc_java/3986"
... |
cross_code_eval_java::project_cc_java/3913 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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... | , stats.getServerName()); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"task_id": "project_cc_java/3913"
} | {
"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": 346,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 347,
"task_id": "project_cc_java/3913"
}
} |
cross_code_eval_java::project_cc_java/3958 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/AuthorisationController.java
// return "... | {
"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... | (!currentUser.getId().equals(id)) { | {} | {
"repository": "Neural-Enigma-Art-sales-Spring-Boot-57a8036",
"file": "src/main/java/com/cursework/WebArtSell/Controllers/UserController.java",
"task_id": "project_cc_java/3958"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/cursework/WebArtSell/Controllers/UserController.java",
"groundtruth_start_lineno": 31,
"repository": "Neural-Enigma-Art-sales-Spring-Boot-57a8036",
"right_context_start_lineno": 32,
"task_id": "project_cc_java/3958"
}
} |
cross_code_eval_java::project_cc_java/3911 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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.getId())); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/core/executor/NeoProtectExecutor.java",
"task_id": "project_cc_java/3911"
} | {
"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/3911"
}
} |
cross_code_eval_java::project_cc_java/3992 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/CommentController.java
// public String addComme... | {
"prefix": "package com.cursework.WebArtSell.Controllers;\n\nimport com.cursework.WebArtSell.Models.Comment;\nimport com.cursework.WebArtSell.Models.Product;\nimport com.cursework.WebArtSell.Models.User;\nimport com.cursework.WebArtSell.Repositories.CommentRepository;\nimport com.cursework.WebArtSell.Repositories.Pr... | product.setArtist(updatedProduct.getArtist()); | {} | {
"repository": "Neural-Enigma-Art-sales-Spring-Boot-57a8036",
"file": "src/main/java/com/cursework/WebArtSell/Controllers/ProductController.java",
"task_id": "project_cc_java/3992"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/cursework/WebArtSell/Controllers/ProductController.java",
"groundtruth_start_lineno": 78,
"repository": "Neural-Enigma-Art-sales-Spring-Boot-57a8036",
"right_context_start_lineno": 79,
"task_id": "project_cc_java/3992"
}
} |
cross_code_eval_java::project_cc_java/3985 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/AuthorisationController.java
// User use... | {
"prefix": "package com.cursework.WebArtSell.Controllers;\n\nimport com.cursework.WebArtSell.Models.User;\nimport com.cursework.WebArtSell.Repositories.UserRepository;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.stereotype.Controller;\nimport org.springframework.ui.Mod... | user.setCreationDate(LocalDateTime.now()); | {} | {
"repository": "Neural-Enigma-Art-sales-Spring-Boot-57a8036",
"file": "src/main/java/com/cursework/WebArtSell/Controllers/RegistrationController.java",
"task_id": "project_cc_java/3985"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/cursework/WebArtSell/Controllers/RegistrationController.java",
"groundtruth_start_lineno": 39,
"repository": "Neural-Enigma-Art-sales-Spring-Boot-57a8036",
"right_context_start_lineno": 40,
"task_id": "project_cc_java/3985"
... |
cross_code_eval_java::project_cc_java/3998 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/Services/TransactionService.java
// for (Transaction tra... | {
"prefix": "package com.cursework.WebArtSell.Controllers;\n\n\nimport com.cursework.WebArtSell.Models.Product;\nimport com.cursework.WebArtSell.Models.Transaction;\nimport com.cursework.WebArtSell.Models.TransactionChartData;\nimport com.cursework.WebArtSell.Models.User;\nimport com.cursework.WebArtSell.Repositories... | "productId", product.get().getId()); | {} | {
"repository": "Neural-Enigma-Art-sales-Spring-Boot-57a8036",
"file": "src/main/java/com/cursework/WebArtSell/Controllers/TransactionController.java",
"task_id": "project_cc_java/3998"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/cursework/WebArtSell/Controllers/TransactionController.java",
"groundtruth_start_lineno": 52,
"repository": "Neural-Enigma-Art-sales-Spring-Boot-57a8036",
"right_context_start_lineno": 53,
"task_id": "project_cc_java/3998"
... |
cross_code_eval_java::project_cc_java/3990 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/CommentController.java
// public String addComme... | {
"prefix": "package com.cursework.WebArtSell.Controllers;\n\nimport com.cursework.WebArtSell.Models.Comment;\nimport com.cursework.WebArtSell.Models.Product;\nimport com.cursework.WebArtSell.Models.User;\nimport com.cursework.WebArtSell.Repositories.CommentRepository;\nimport com.cursework.WebArtSell.Repositories.Pr... | setImageUrl(updatedProduct.getImageUrl()); | {} | {
"repository": "Neural-Enigma-Art-sales-Spring-Boot-57a8036",
"file": "src/main/java/com/cursework/WebArtSell/Controllers/ProductController.java",
"task_id": "project_cc_java/3990"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/cursework/WebArtSell/Controllers/ProductController.java",
"groundtruth_start_lineno": 76,
"repository": "Neural-Enigma-Art-sales-Spring-Boot-57a8036",
"right_context_start_lineno": 77,
"task_id": "project_cc_java/3990"
}
} |
cross_code_eval_java::project_cc_java/3994 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/CommentController.java
// public String addComme... | {
"prefix": "package com.cursework.WebArtSell.Controllers;\n\nimport com.cursework.WebArtSell.Models.Comment;\nimport com.cursework.WebArtSell.Models.Product;\nimport com.cursework.WebArtSell.Models.User;\nimport com.cursework.WebArtSell.Repositories.CommentRepository;\nimport com.cursework.WebArtSell.Repositories.Pr... | List<Comment> comments = commentRepository.findByProductId(id); | {} | {
"repository": "Neural-Enigma-Art-sales-Spring-Boot-57a8036",
"file": "src/main/java/com/cursework/WebArtSell/Controllers/ProductController.java",
"task_id": "project_cc_java/3994"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/cursework/WebArtSell/Controllers/ProductController.java",
"groundtruth_start_lineno": 52,
"repository": "Neural-Enigma-Art-sales-Spring-Boot-57a8036",
"right_context_start_lineno": 53,
"task_id": "project_cc_java/3994"
}
} |
cross_code_eval_java::project_cc_java/3987 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/HomeController.java
// }
// ... | {
"prefix": "package com.cursework.WebArtSell.Controllers;\n\nimport com.cursework.WebArtSell.Models.Comment;\nimport com.cursework.WebArtSell.Models.Product;\nimport com.cursework.WebArtSell.Models.User;\nimport com.cursework.WebArtSell.Repositories.CommentRepository;\nimport com.cursework.WebArtSell.Repositories.Pr... | product.setCreationDate(LocalDateTime.now()); | {} | {
"repository": "Neural-Enigma-Art-sales-Spring-Boot-57a8036",
"file": "src/main/java/com/cursework/WebArtSell/Controllers/ProductController.java",
"task_id": "project_cc_java/3987"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/cursework/WebArtSell/Controllers/ProductController.java",
"groundtruth_start_lineno": 43,
"repository": "Neural-Enigma-Art-sales-Spring-Boot-57a8036",
"right_context_start_lineno": 44,
"task_id": "project_cc_java/3987"
}
} |
cross_code_eval_java::project_cc_java/3984 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/AuthorisationController.java
// User use... | {
"prefix": "package com.cursework.WebArtSell.Controllers;\n\nimport com.cursework.WebArtSell.Models.User;\nimport com.cursework.WebArtSell.Repositories.UserRepository;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.stereotype.Controller;\nimport org.springframework.ui.Mod... | user.setRole("USER"); | {} | {
"repository": "Neural-Enigma-Art-sales-Spring-Boot-57a8036",
"file": "src/main/java/com/cursework/WebArtSell/Controllers/RegistrationController.java",
"task_id": "project_cc_java/3984"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/cursework/WebArtSell/Controllers/RegistrationController.java",
"groundtruth_start_lineno": 38,
"repository": "Neural-Enigma-Art-sales-Spring-Boot-57a8036",
"right_context_start_lineno": 39,
"task_id": "project_cc_java/3984"
... |
cross_code_eval_java::project_cc_java/3996 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/Services/TransactionService.java
// for (Transaction tra... | {
"prefix": "package com.cursework.WebArtSell.Controllers;\n\n\nimport com.cursework.WebArtSell.Models.Product;\nimport com.cursework.WebArtSell.Models.Transaction;\nimport com.cursework.WebArtSell.Models.TransactionChartData;\nimport com.cursework.WebArtSell.Models.User;\nimport com.cursework.WebArtSell.Repositories... | product.get().getPrice().doubleValue()); | {} | {
"repository": "Neural-Enigma-Art-sales-Spring-Boot-57a8036",
"file": "src/main/java/com/cursework/WebArtSell/Controllers/TransactionController.java",
"task_id": "project_cc_java/3996"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/cursework/WebArtSell/Controllers/TransactionController.java",
"groundtruth_start_lineno": 48,
"repository": "Neural-Enigma-Art-sales-Spring-Boot-57a8036",
"right_context_start_lineno": 49,
"task_id": "project_cc_java/3996"
... |
cross_code_eval_java::project_cc_java/4003 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/Services/TransactionService.java
// for (Transaction tra... | {
"prefix": "package com.cursework.WebArtSell.Controllers;\n\n\nimport com.cursework.WebArtSell.Models.Product;\nimport com.cursework.WebArtSell.Models.Transaction;\nimport com.cursework.WebArtSell.Models.TransactionChartData;\nimport com.cursework.WebArtSell.Models.User;\nimport com.cursework.WebArtSell.Repositories... | System.out.println(transaction.getBuyerId()); | {} | {
"repository": "Neural-Enigma-Art-sales-Spring-Boot-57a8036",
"file": "src/main/java/com/cursework/WebArtSell/Controllers/TransactionController.java",
"task_id": "project_cc_java/4003"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/cursework/WebArtSell/Controllers/TransactionController.java",
"groundtruth_start_lineno": 66,
"repository": "Neural-Enigma-Art-sales-Spring-Boot-57a8036",
"right_context_start_lineno": 67,
"task_id": "project_cc_java/4003"
... |
cross_code_eval_java::project_cc_java/4032 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// MonitoringInternetShop/src/main/java/com/example/MonitoringInternetShop/Services/ProductService.java
//... | {
"prefix": "package com.example.MonitoringInternetShop.Controllers;\n\nimport com.example.MonitoringInternetShop.Models.Category;\nimport com.example.MonitoringInternetShop.Models.OrderItem;\nimport com.example.MonitoringInternetShop.Models.Product;\nimport com.example.MonitoringInternetShop.Services.CategoryService... | <OrderItem> orderItems = productService.findOrderItemsByProduct(id); | {} | {
"repository": "Neural-Enigma-Ecommerce-Sales-Dashboard-Spring-0130f60",
"file": "MonitoringInternetShop/src/main/java/com/example/MonitoringInternetShop/Controllers/ProductController.java",
"task_id": "project_cc_java/4032"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "MonitoringInternetShop/src/main/java/com/example/MonitoringInternetShop/Controllers/ProductController.java",
"groundtruth_start_lineno": 60,
"repository": "Neural-Enigma-Ecommerce-Sales-Dashboard-Spring-0130f60",
"right_context_start_lineno": 61,... |
cross_code_eval_java::project_cc_java/4024 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// MonitoringInternetShop/src/main/java/com/example/MonitoringInternetShop/Controllers/OrderController.jav... | {
"prefix": "package com.example.MonitoringInternetShop.Controllers;\n\nimport com.example.MonitoringInternetShop.Models.User;\nimport com.example.MonitoringInternetShop.Repositories.UserRepository;\nimport com.example.MonitoringInternetShop.Services.UserService;\nimport jakarta.servlet.http.HttpSession;\nimport org.... | Optional<User> userOptional = userService.validateUser(username, password); | {} | {
"repository": "Neural-Enigma-Ecommerce-Sales-Dashboard-Spring-0130f60",
"file": "MonitoringInternetShop/src/main/java/com/example/MonitoringInternetShop/Controllers/LoginController.java",
"task_id": "project_cc_java/4024"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "MonitoringInternetShop/src/main/java/com/example/MonitoringInternetShop/Controllers/LoginController.java",
"groundtruth_start_lineno": 42,
"repository": "Neural-Enigma-Ecommerce-Sales-Dashboard-Spring-0130f60",
"right_context_start_lineno": 43,
... |
cross_code_eval_java::project_cc_java/4025 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// MonitoringInternetShop/src/main/java/com/example/MonitoringInternetShop/Controllers/ProductController.j... | {
"prefix": "package com.example.MonitoringInternetShop.Services;\n\nimport com.example.MonitoringInternetShop.Models.OrderItem;\nimport com.example.MonitoringInternetShop.Models.Product;\nimport com.example.MonitoringInternetShop.Repositories.OrderItemRepository;\nimport com.example.MonitoringInternetShop.Repositori... | return orderItemRepository.findAllByProduct_Id(productId); | {} | {
"repository": "Neural-Enigma-Ecommerce-Sales-Dashboard-Spring-0130f60",
"file": "MonitoringInternetShop/src/main/java/com/example/MonitoringInternetShop/Services/ProductService.java",
"task_id": "project_cc_java/4025"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "MonitoringInternetShop/src/main/java/com/example/MonitoringInternetShop/Services/ProductService.java",
"groundtruth_start_lineno": 104,
"repository": "Neural-Enigma-Ecommerce-Sales-Dashboard-Spring-0130f60",
"right_context_start_lineno": 105,
... |
cross_code_eval_java::project_cc_java/4098 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/io/github/newhoo/restkit/ext/solon/language/BaseLanguageResolver.java
// ... | {
"prefix": "package io.github.newhoo.restkit.ext.solon.helper;\n\nimport com.intellij.openapi.project.Project;\nimport com.intellij.psi.PsiClass;\nimport com.intellij.psi.PsiEnumConstant;\nimport com.intellij.psi.PsiField;\nimport com.intellij.psi.PsiModifier;\nimport com.intellij.psi.search.GlobalSearchScope;\nimpo... | TypeUtils.isPrimitiveOrSimpleType(typeCanonicalText)) { | {} | {
"repository": "newhoo-RestfulBox-Solon-8533971",
"file": "src/main/java/io/github/newhoo/restkit/ext/solon/helper/PsiClassHelper.java",
"task_id": "project_cc_java/4098"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/io/github/newhoo/restkit/ext/solon/helper/PsiClassHelper.java",
"groundtruth_start_lineno": 46,
"repository": "newhoo-RestfulBox-Solon-8533971",
"right_context_start_lineno": 47,
"task_id": "project_cc_java/4098"
}
} |
cross_code_eval_java::project_cc_java/4102 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/io/github/newhoo/restkit/ext/solon/language/BaseLanguageResolver.java
// }
// ... | {
"prefix": "package io.github.newhoo.restkit.ext.solon.helper;\n\nimport com.intellij.openapi.project.Project;\nimport com.intellij.psi.PsiClass;\nimport com.intellij.psi.PsiEnumConstant;\nimport com.intellij.psi.PsiField;\nimport com.intellij.psi.PsiModifier;\nimport com.intellij.psi.search.GlobalSearchScope;\nimpo... | (TypeUtils.isMap(typeCanonicalText)) { | {} | {
"repository": "newhoo-RestfulBox-Solon-8533971",
"file": "src/main/java/io/github/newhoo/restkit/ext/solon/helper/PsiClassHelper.java",
"task_id": "project_cc_java/4102"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/io/github/newhoo/restkit/ext/solon/helper/PsiClassHelper.java",
"groundtruth_start_lineno": 69,
"repository": "newhoo-RestfulBox-Solon-8533971",
"right_context_start_lineno": 70,
"task_id": "project_cc_java/4102"
}
} |
cross_code_eval_java::project_cc_java/4104 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/io/github/newhoo/restkit/ext/solon/helper/PsiAnnotationHelper.java
// return ... | {
"prefix": "package io.github.newhoo.restkit.ext.solon.helper;\n\nimport com.intellij.openapi.project.Project;\nimport com.intellij.psi.PsiClass;\nimport com.intellij.psi.PsiEnumConstant;\nimport com.intellij.psi.PsiField;\nimport com.intellij.psi.PsiModifier;\nimport com.intellij.psi.search.GlobalSearchScope;\nimpo... | = TypeUtils.primitiveToBox(typeCanonicalText); | {} | {
"repository": "newhoo-RestfulBox-Solon-8533971",
"file": "src/main/java/io/github/newhoo/restkit/ext/solon/helper/PsiClassHelper.java",
"task_id": "project_cc_java/4104"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/io/github/newhoo/restkit/ext/solon/helper/PsiClassHelper.java",
"groundtruth_start_lineno": 117,
"repository": "newhoo-RestfulBox-Solon-8533971",
"right_context_start_lineno": 118,
"task_id": "project_cc_java/4104"
}
} |
cross_code_eval_java::project_cc_java/3929 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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.velocity.proxyprotocol;\n\nimport com.velocitypowered.api.proxy.Player;\nimport com.velocitypowered.proxy.VelocityServer;\nimport com.velocitypowered.proxy.connection.MinecraftConnection;\nimport com.velocitypowered.proxy.connection.client.ConnectedPlayer;\nimport com.vel... | instance.getCore().getDebugPingResponses().put(player.getUsername(), new ArrayList<>()); | {} | {
"repository": "NeoProtect-NeoPlugin-a71f673",
"file": "src/main/java/de/cubeattack/neoprotect/velocity/proxyprotocol/ProxyProtocol.java",
"task_id": "project_cc_java/3929"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/de/cubeattack/neoprotect/velocity/proxyprotocol/ProxyProtocol.java",
"groundtruth_start_lineno": 180,
"repository": "NeoProtect-NeoPlugin-a71f673",
"right_context_start_lineno": 181,
"task_id": "project_cc_java/3929"
}
} |
cross_code_eval_java::project_cc_java/4103 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/io/github/newhoo/restkit/ext/solon/language/BaseLanguageResolver.java
// ... | {
"prefix": "package io.github.newhoo.restkit.ext.solon.helper;\n\nimport com.intellij.openapi.project.Project;\nimport com.intellij.psi.PsiClass;\nimport com.intellij.psi.PsiEnumConstant;\nimport com.intellij.psi.PsiField;\nimport com.intellij.psi.PsiModifier;\nimport com.intellij.psi.search.GlobalSearchScope;\nimpo... | if (TypeUtils.isPrimitiveOrSimpleType(fieldType.replaceAll("\\[]", ""))) { | {} | {
"repository": "newhoo-RestfulBox-Solon-8533971",
"file": "src/main/java/io/github/newhoo/restkit/ext/solon/helper/PsiClassHelper.java",
"task_id": "project_cc_java/4103"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/io/github/newhoo/restkit/ext/solon/helper/PsiClassHelper.java",
"groundtruth_start_lineno": 97,
"repository": "newhoo-RestfulBox-Solon-8533971",
"right_context_start_lineno": 98,
"task_id": "project_cc_java/4103"
}
} |
cross_code_eval_java::project_cc_java/4099 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/io/github/newhoo/restkit/ext/solon/language/BaseLanguageResolver.java
// ... | {
"prefix": "package io.github.newhoo.restkit.ext.solon.helper;\n\nimport com.intellij.openapi.project.Project;\nimport com.intellij.psi.PsiClass;\nimport com.intellij.psi.PsiEnumConstant;\nimport com.intellij.psi.PsiField;\nimport com.intellij.psi.PsiModifier;\nimport com.intellij.psi.search.GlobalSearchScope;\nimpo... | TypeUtils.getExampleValue(typeCanonicalText, false); | {} | {
"repository": "newhoo-RestfulBox-Solon-8533971",
"file": "src/main/java/io/github/newhoo/restkit/ext/solon/helper/PsiClassHelper.java",
"task_id": "project_cc_java/4099"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/io/github/newhoo/restkit/ext/solon/helper/PsiClassHelper.java",
"groundtruth_start_lineno": 47,
"repository": "newhoo-RestfulBox-Solon-8533971",
"right_context_start_lineno": 48,
"task_id": "project_cc_java/4099"
}
} |
cross_code_eval_java::project_cc_java/4053 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// RestaurantManagement/src/main/java/com/example/RestaurantManagement/Models/TableBooking.java
// pub... | {
"prefix": "package com.example.RestaurantManagement.Services;\n\nimport com.example.RestaurantManagement.Models.TableBooking;\nimport com.example.RestaurantManagement.Models.Tables;\nimport com.example.RestaurantManagement.Repositories.TableBookingRepository;\nimport com.example.RestaurantManagement.Repositories.Ta... | .equals(date) && booking.getTime().equals(time)) { | {} | {
"repository": "Neural-Enigma-RestaurantManagement-Spring-Boot-Java-086881a",
"file": "RestaurantManagement/src/main/java/com/example/RestaurantManagement/Services/TableBookingService.java",
"task_id": "project_cc_java/4053"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "RestaurantManagement/src/main/java/com/example/RestaurantManagement/Services/TableBookingService.java",
"groundtruth_start_lineno": 53,
"repository": "Neural-Enigma-RestaurantManagement-Spring-Boot-Java-086881a",
"right_context_start_lineno": 54,... |
cross_code_eval_java::project_cc_java/4052 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// RestaurantManagement/src/main/java/com/example/RestaurantManagement/Models/TableBooking.java
// pub... | {
"prefix": "package com.example.RestaurantManagement.Services;\n\nimport com.example.RestaurantManagement.Models.TableBooking;\nimport com.example.RestaurantManagement.Models.Tables;\nimport com.example.RestaurantManagement.Repositories.TableBookingRepository;\nimport com.example.RestaurantManagement.Repositories.Ta... | .getId() == tableId && booking.getDate().equals(date) && booking.getTime().equals(time)) { | {} | {
"repository": "Neural-Enigma-RestaurantManagement-Spring-Boot-Java-086881a",
"file": "RestaurantManagement/src/main/java/com/example/RestaurantManagement/Services/TableBookingService.java",
"task_id": "project_cc_java/4052"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "RestaurantManagement/src/main/java/com/example/RestaurantManagement/Services/TableBookingService.java",
"groundtruth_start_lineno": 53,
"repository": "Neural-Enigma-RestaurantManagement-Spring-Boot-Java-086881a",
"right_context_start_lineno": 54,... |
cross_code_eval_java::project_cc_java/4047 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// RestaurantManagement/src/main/java/com/example/RestaurantManagement/Controllers/AuthorisationController... | {
"prefix": "package com.example.RestaurantManagement.Services;\n\nimport com.example.RestaurantManagement.Models.Staff;\nimport com.example.RestaurantManagement.Repositories.StaffRepository;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.stereotype.Service;\n\nimport java... | staffRepository.findByLogin(login) != null; | {} | {
"repository": "Neural-Enigma-RestaurantManagement-Spring-Boot-Java-086881a",
"file": "RestaurantManagement/src/main/java/com/example/RestaurantManagement/Services/StaffService.java",
"task_id": "project_cc_java/4047"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "RestaurantManagement/src/main/java/com/example/RestaurantManagement/Services/StaffService.java",
"groundtruth_start_lineno": 44,
"repository": "Neural-Enigma-RestaurantManagement-Spring-Boot-Java-086881a",
"right_context_start_lineno": 45,
"t... |
cross_code_eval_java::project_cc_java/4083 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// RestaurantManagement/src/main/java/com/example/RestaurantManagement/Controllers/ShiftController.java
//... | {
"prefix": "package com.example.RestaurantManagement.Controllers;\n\nimport com.example.RestaurantManagement.Models.Staff;\nimport com.example.RestaurantManagement.Services.StaffService;\nimport jakarta.servlet.http.HttpSession;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframew... | staff.setApparatusEmployed(new java.sql.Date(currentDate.getTime())); | {} | {
"repository": "Neural-Enigma-RestaurantManagement-Spring-Boot-Java-086881a",
"file": "RestaurantManagement/src/main/java/com/example/RestaurantManagement/Controllers/StaffController.java",
"task_id": "project_cc_java/4083"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "RestaurantManagement/src/main/java/com/example/RestaurantManagement/Controllers/StaffController.java",
"groundtruth_start_lineno": 44,
"repository": "Neural-Enigma-RestaurantManagement-Spring-Boot-Java-086881a",
"right_context_start_lineno": 45,
... |
cross_code_eval_java::project_cc_java/4073 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// RestaurantManagement/src/main/java/com/example/RestaurantManagement/Services/DishService.java
// ... | {
"prefix": "package com.example.RestaurantManagement.Controllers;\n\nimport com.example.RestaurantManagement.Models.Dish;\nimport com.example.RestaurantManagement.Models.DishType;\nimport com.example.RestaurantManagement.Repositories.DishTypeRepository;\nimport com.example.RestaurantManagement.Services.DishService;\... | dishService.editDishDetails(id, name, description, recipe); | {} | {
"repository": "Neural-Enigma-RestaurantManagement-Spring-Boot-Java-086881a",
"file": "RestaurantManagement/src/main/java/com/example/RestaurantManagement/Controllers/MenuController.java",
"task_id": "project_cc_java/4073"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "RestaurantManagement/src/main/java/com/example/RestaurantManagement/Controllers/MenuController.java",
"groundtruth_start_lineno": 75,
"repository": "Neural-Enigma-RestaurantManagement-Spring-Boot-Java-086881a",
"right_context_start_lineno": 76,
... |
cross_code_eval_java::project_cc_java/4065 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// RestaurantManagement/src/main/java/com/example/RestaurantManagement/Controllers/MenuController.java
// ... | {
"prefix": "package com.example.RestaurantManagement.Services;\n\nimport com.example.RestaurantManagement.Models.Dish;\nimport com.example.RestaurantManagement.Models.DishType;\nimport com.example.RestaurantManagement.Models.OrderedDish;\nimport com.example.RestaurantManagement.Repositories.DishRepository;\nimport c... | DishType dishType = dishTypeRepository.findByName(typeName); | {} | {
"repository": "Neural-Enigma-RestaurantManagement-Spring-Boot-Java-086881a",
"file": "RestaurantManagement/src/main/java/com/example/RestaurantManagement/Services/DishService.java",
"task_id": "project_cc_java/4065"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "RestaurantManagement/src/main/java/com/example/RestaurantManagement/Services/DishService.java",
"groundtruth_start_lineno": 56,
"repository": "Neural-Enigma-RestaurantManagement-Spring-Boot-Java-086881a",
"right_context_start_lineno": 57,
"ta... |
cross_code_eval_java::project_cc_java/4067 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// RestaurantManagement/src/main/java/com/example/RestaurantManagement/Services/DishService.java
// ... | {
"prefix": "package com.example.RestaurantManagement.Controllers;\n\nimport com.example.RestaurantManagement.Models.Dish;\nimport com.example.RestaurantManagement.Models.DishType;\nimport com.example.RestaurantManagement.Repositories.DishTypeRepository;\nimport com.example.RestaurantManagement.Services.DishService;\... | (dishService.checkIfDishIsOrdered(id)) { | {} | {
"repository": "Neural-Enigma-RestaurantManagement-Spring-Boot-Java-086881a",
"file": "RestaurantManagement/src/main/java/com/example/RestaurantManagement/Controllers/MenuController.java",
"task_id": "project_cc_java/4067"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "RestaurantManagement/src/main/java/com/example/RestaurantManagement/Controllers/MenuController.java",
"groundtruth_start_lineno": 40,
"repository": "Neural-Enigma-RestaurantManagement-Spring-Boot-Java-086881a",
"right_context_start_lineno": 41,
... |
cross_code_eval_java::project_cc_java/4091 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// RestaurantManagement/src/main/java/com/example/RestaurantManagement/Controllers/OrderController.java
//... | {
"prefix": "package com.example.RestaurantManagement.Controllers;\n\nimport com.example.RestaurantManagement.Models.Order;\nimport com.example.RestaurantManagement.Models.OrderedDish;\nimport com.example.RestaurantManagement.Repositories.OrderRepository;\nimport com.example.RestaurantManagement.Repositories.OrderedD... | orderedDish.setStatus(status); | {} | {
"repository": "Neural-Enigma-RestaurantManagement-Spring-Boot-Java-086881a",
"file": "RestaurantManagement/src/main/java/com/example/RestaurantManagement/Controllers/KitchenController.java",
"task_id": "project_cc_java/4091"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "RestaurantManagement/src/main/java/com/example/RestaurantManagement/Controllers/KitchenController.java",
"groundtruth_start_lineno": 42,
"repository": "Neural-Enigma-RestaurantManagement-Spring-Boot-Java-086881a",
"right_context_start_lineno": 43... |
cross_code_eval_java::project_cc_java/4092 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// RestaurantManagement/src/main/java/com/example/RestaurantManagement/Controllers/OrderController.java
//... | {
"prefix": "package com.example.RestaurantManagement.Controllers;\n\nimport com.example.RestaurantManagement.Models.Order;\nimport com.example.RestaurantManagement.Models.OrderedDish;\nimport com.example.RestaurantManagement.Repositories.OrderRepository;\nimport com.example.RestaurantManagement.Repositories.OrderedD... | <OrderedDish> dishesInOrder = orderedDishRepository.findAllByOrder(orderedDish.getOrder()); | {} | {
"repository": "Neural-Enigma-RestaurantManagement-Spring-Boot-Java-086881a",
"file": "RestaurantManagement/src/main/java/com/example/RestaurantManagement/Controllers/KitchenController.java",
"task_id": "project_cc_java/4092"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "RestaurantManagement/src/main/java/com/example/RestaurantManagement/Controllers/KitchenController.java",
"groundtruth_start_lineno": 45,
"repository": "Neural-Enigma-RestaurantManagement-Spring-Boot-Java-086881a",
"right_context_start_lineno": 46... |
cross_code_eval_java::project_cc_java/4069 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// RestaurantManagement/src/main/java/com/example/RestaurantManagement/Services/DishService.java
// ... | {
"prefix": "package com.example.RestaurantManagement.Controllers;\n\nimport com.example.RestaurantManagement.Models.Dish;\nimport com.example.RestaurantManagement.Models.DishType;\nimport com.example.RestaurantManagement.Repositories.DishTypeRepository;\nimport com.example.RestaurantManagement.Services.DishService;\... | if (dishService.checkIfDishIsOrdered(id)) { | {} | {
"repository": "Neural-Enigma-RestaurantManagement-Spring-Boot-Java-086881a",
"file": "RestaurantManagement/src/main/java/com/example/RestaurantManagement/Controllers/MenuController.java",
"task_id": "project_cc_java/4069"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "RestaurantManagement/src/main/java/com/example/RestaurantManagement/Controllers/MenuController.java",
"groundtruth_start_lineno": 49,
"repository": "Neural-Enigma-RestaurantManagement-Spring-Boot-Java-086881a",
"right_context_start_lineno": 50,
... |
cross_code_eval_java::project_cc_java/4086 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// RestaurantManagement/src/main/java/com/example/RestaurantManagement/Controllers/ShiftController.java
//... | {
"prefix": "package com.example.RestaurantManagement.Controllers;\n\nimport com.example.RestaurantManagement.Models.Staff;\nimport com.example.RestaurantManagement.Services.StaffService;\nimport jakarta.servlet.http.HttpSession;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframew... | model.addAttribute("staff", staffService.getAllStaff()); | {} | {
"repository": "Neural-Enigma-RestaurantManagement-Spring-Boot-Java-086881a",
"file": "RestaurantManagement/src/main/java/com/example/RestaurantManagement/Controllers/StaffController.java",
"task_id": "project_cc_java/4086"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "RestaurantManagement/src/main/java/com/example/RestaurantManagement/Controllers/StaffController.java",
"groundtruth_start_lineno": 38,
"repository": "Neural-Enigma-RestaurantManagement-Spring-Boot-Java-086881a",
"right_context_start_lineno": 39,
... |
cross_code_eval_java::project_cc_java/4079 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// RestaurantManagement/src/main/java/com/example/RestaurantManagement/Models/TableBooking.java
// ... | {
"prefix": "package com.example.RestaurantManagement.Controllers;\n\nimport com.example.RestaurantManagement.Models.TableBooking;\nimport com.example.RestaurantManagement.Models.Tables;\nimport com.example.RestaurantManagement.Services.TableBookingService;\nimport org.springframework.beans.factory.annotation.Autowir... | <Tables> allTables = tableBookingService.getAllTables(); | {} | {
"repository": "Neural-Enigma-RestaurantManagement-Spring-Boot-Java-086881a",
"file": "RestaurantManagement/src/main/java/com/example/RestaurantManagement/Controllers/TableBookingController.java",
"task_id": "project_cc_java/4079"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "RestaurantManagement/src/main/java/com/example/RestaurantManagement/Controllers/TableBookingController.java",
"groundtruth_start_lineno": 71,
"repository": "Neural-Enigma-RestaurantManagement-Spring-Boot-Java-086881a",
"right_context_start_lineno... |
cross_code_eval_java::project_cc_java/4094 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// RestaurantManagement/src/main/java/com/example/RestaurantManagement/Controllers/OrderController.java
//... | {
"prefix": "package com.example.RestaurantManagement.Controllers;\n\nimport com.example.RestaurantManagement.Models.Order;\nimport com.example.RestaurantManagement.Models.OrderedDish;\nimport com.example.RestaurantManagement.Repositories.OrderRepository;\nimport com.example.RestaurantManagement.Repositories.OrderedD... | = orderedDish.getOrder(); | {} | {
"repository": "Neural-Enigma-RestaurantManagement-Spring-Boot-Java-086881a",
"file": "RestaurantManagement/src/main/java/com/example/RestaurantManagement/Controllers/KitchenController.java",
"task_id": "project_cc_java/4094"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "RestaurantManagement/src/main/java/com/example/RestaurantManagement/Controllers/KitchenController.java",
"groundtruth_start_lineno": 51,
"repository": "Neural-Enigma-RestaurantManagement-Spring-Boot-Java-086881a",
"right_context_start_lineno": 52... |
cross_code_eval_java::project_cc_java/4082 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// RestaurantManagement/src/main/java/com/example/RestaurantManagement/Controllers/ShiftController.java
//... | {
"prefix": "package com.example.RestaurantManagement.Controllers;\n\nimport com.example.RestaurantManagement.Models.Staff;\nimport com.example.RestaurantManagement.Services.StaffService;\nimport jakarta.servlet.http.HttpSession;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframew... | loginExists(staff.getLogin())) { | {} | {
"repository": "Neural-Enigma-RestaurantManagement-Spring-Boot-Java-086881a",
"file": "RestaurantManagement/src/main/java/com/example/RestaurantManagement/Controllers/StaffController.java",
"task_id": "project_cc_java/4082"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "RestaurantManagement/src/main/java/com/example/RestaurantManagement/Controllers/StaffController.java",
"groundtruth_start_lineno": 36,
"repository": "Neural-Enigma-RestaurantManagement-Spring-Boot-Java-086881a",
"right_context_start_lineno": 37,
... |
cross_code_eval_java::project_cc_java/4106 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[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/nl/basjes/maven/release/version/conventionalcommits/ConfigParsingTest.java
// ass... | {
"prefix": "/*\n * Conventional Commits Version Policy\n * Copyright (C) 2022-2023 Niels Basjes\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 * https://www.apache.org/l... | !config.getMajorRules().isEmpty() || !config.getMinorRules().isEmpty()) { | {} | {
"repository": "nielsbasjes-conventional-commits-maven-release-151e36d",
"file": "src/main/java/nl/basjes/maven/release/version/conventionalcommits/VersionRules.java",
"task_id": "project_cc_java/4106"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/nl/basjes/maven/release/version/conventionalcommits/VersionRules.java",
"groundtruth_start_lineno": 53,
"repository": "nielsbasjes-conventional-commits-maven-release-151e36d",
"right_context_start_lineno": 54,
"task_id": "projec... |
cross_code_eval_java::project_cc_java/4107 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[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/nl/basjes/maven/release/version/conventionalcommits/ConfigParsingTest.java
// ass... | {
"prefix": "/*\n * Conventional Commits Version Policy\n * Copyright (C) 2022-2023 Niels Basjes\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 * https://www.apache.org/l... | ).isEmpty() || !config.getMinorRules().isEmpty()) { | {} | {
"repository": "nielsbasjes-conventional-commits-maven-release-151e36d",
"file": "src/main/java/nl/basjes/maven/release/version/conventionalcommits/VersionRules.java",
"task_id": "project_cc_java/4107"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/nl/basjes/maven/release/version/conventionalcommits/VersionRules.java",
"groundtruth_start_lineno": 53,
"repository": "nielsbasjes-conventional-commits-maven-release-151e36d",
"right_context_start_lineno": 54,
"task_id": "projec... |
cross_code_eval_java::project_cc_java/4105 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[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/nl/basjes/maven/release/version/conventionalcommits/ConfigParsingTest.java
// Col... | {
"prefix": "/*\n * Conventional Commits Version Policy\n * Copyright (C) 2022-2023 Niels Basjes\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 * https://www.apache.org/l... | semverConfigVersionTag = config.getVersionTag(); | {} | {
"repository": "nielsbasjes-conventional-commits-maven-release-151e36d",
"file": "src/main/java/nl/basjes/maven/release/version/conventionalcommits/VersionRules.java",
"task_id": "project_cc_java/4105"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/nl/basjes/maven/release/version/conventionalcommits/VersionRules.java",
"groundtruth_start_lineno": 48,
"repository": "nielsbasjes-conventional-commits-maven-release-151e36d",
"right_context_start_lineno": 49,
"task_id": "projec... |
cross_code_eval_java::project_cc_java/4110 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[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/nl/basjes/maven/release/version/conventionalcommits/ConfigParsingTest.java
// Col... | {
"prefix": "/*\n * Conventional Commits Version Policy\n * Copyright (C) 2022-2023 Niels Basjes\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 * https://www.apache.org/l... | commitHistory.getChanges()) { | {} | {
"repository": "nielsbasjes-conventional-commits-maven-release-151e36d",
"file": "src/main/java/nl/basjes/maven/release/version/conventionalcommits/VersionRules.java",
"task_id": "project_cc_java/4110"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/nl/basjes/maven/release/version/conventionalcommits/VersionRules.java",
"groundtruth_start_lineno": 69,
"repository": "nielsbasjes-conventional-commits-maven-release-151e36d",
"right_context_start_lineno": 70,
"task_id": "projec... |
cross_code_eval_java::project_cc_java/4122 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// noq-backend/src/main/java/com/noq/backend/services/ReservationService.java
// }
// // returns e... | {
"prefix": "package com.noq.backend.services;\n\nimport com.noq.backend.models.User;\nimport com.noq.backend.repository.UserRepository;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.stereotype.Service;\n\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.u... | userRepository.getUserByUserId(userId); | {} | {
"repository": "noQ-sweden-noq-7f5b8d1",
"file": "noq-backend/src/main/java/com/noq/backend/services/UserService.java",
"task_id": "project_cc_java/4122"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "noq-backend/src/main/java/com/noq/backend/services/UserService.java",
"groundtruth_start_lineno": 46,
"repository": "noQ-sweden-noq-7f5b8d1",
"right_context_start_lineno": 47,
"task_id": "project_cc_java/4122"
}
} |
cross_code_eval_java::project_cc_java/4112 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[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/nl/basjes/maven/release/version/conventionalcommits/mockscm/MockScmProvider.java
// }... | {
"prefix": "/*\n * Conventional Commits Version Policy\n * Copyright (C) 2022-2023 Niels Basjes\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 * https://www.apache.org/l... | = versionRules.getTagPattern().matcher(tag); | {} | {
"repository": "nielsbasjes-conventional-commits-maven-release-151e36d",
"file": "src/main/java/nl/basjes/maven/release/version/conventionalcommits/CommitHistory.java",
"task_id": "project_cc_java/4112"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/nl/basjes/maven/release/version/conventionalcommits/CommitHistory.java",
"groundtruth_start_lineno": 96,
"repository": "nielsbasjes-conventional-commits-maven-release-151e36d",
"right_context_start_lineno": 97,
"task_id": "proje... |
cross_code_eval_java::project_cc_java/4125 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// noq-backend/src/main/java/com/noq/backend/controllers/ReservationController.java
// @GetMapping("/g... | {
"prefix": "package com.noq.backend.services;\n\nimport com.noq.backend.DTO.ReservationDTO;\nimport com.noq.backend.models.*;\nimport com.noq.backend.repository.HostRepository;\nimport com.noq.backend.repository.ReservationRepository;\nimport com.noq.backend.repository.UserRepository;\nimport org.springframework.bea... | List<Reservation> reservations = reservationRepository.getAllReservations().stream()
.filter(res -> { | {} | {
"repository": "noQ-sweden-noq-7f5b8d1",
"file": "noq-backend/src/main/java/com/noq/backend/services/ReservationService.java",
"task_id": "project_cc_java/4125"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "noq-backend/src/main/java/com/noq/backend/services/ReservationService.java",
"groundtruth_start_lineno": 62,
"repository": "noQ-sweden-noq-7f5b8d1",
"right_context_start_lineno": 64,
"task_id": "project_cc_java/4125"
}
} |
cross_code_eval_java::project_cc_java/4111 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/nl/basjes/maven/release/version/conventionalcommits/CommitHistory.java
// }
/... | {
"prefix": "/*\n * Conventional Commits Version Policy\n * Copyright (C) 2022-2023 Niels Basjes\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 * https://www.apache.org/l... | = commitHistory.getLastVersionTag(); | {} | {
"repository": "nielsbasjes-conventional-commits-maven-release-151e36d",
"file": "src/main/java/nl/basjes/maven/release/version/conventionalcommits/ConventionalCommitsVersionPolicy.java",
"task_id": "project_cc_java/4111"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/nl/basjes/maven/release/version/conventionalcommits/ConventionalCommitsVersionPolicy.java",
"groundtruth_start_lineno": 68,
"repository": "nielsbasjes-conventional-commits-maven-release-151e36d",
"right_context_start_lineno": 69,
... |
cross_code_eval_java::project_cc_java/4121 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// noq-backend/src/main/java/com/noq/backend/services/ReservationService.java
// }
// // returns e... | {
"prefix": "package com.noq.backend.services;\n\nimport com.noq.backend.models.User;\nimport com.noq.backend.repository.UserRepository;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.stereotype.Service;\n\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.u... | User existingUser = userRepository.getUserByUserId(userId); | {} | {
"repository": "noQ-sweden-noq-7f5b8d1",
"file": "noq-backend/src/main/java/com/noq/backend/services/UserService.java",
"task_id": "project_cc_java/4121"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "noq-backend/src/main/java/com/noq/backend/services/UserService.java",
"groundtruth_start_lineno": 42,
"repository": "noQ-sweden-noq-7f5b8d1",
"right_context_start_lineno": 43,
"task_id": "project_cc_java/4121"
}
} |
cross_code_eval_java::project_cc_java/4120 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// noq-backend/src/main/java/com/noq/backend/services/ReservationService.java
// }
// // returns e... | {
"prefix": "package com.noq.backend.services;\n\nimport com.noq.backend.models.User;\nimport com.noq.backend.repository.UserRepository;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.stereotype.Service;\n\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.u... | ArrayList<>(userRepository.getAllUsers()); | {} | {
"repository": "noQ-sweden-noq-7f5b8d1",
"file": "noq-backend/src/main/java/com/noq/backend/services/UserService.java",
"task_id": "project_cc_java/4120"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "noq-backend/src/main/java/com/noq/backend/services/UserService.java",
"groundtruth_start_lineno": 38,
"repository": "noQ-sweden-noq-7f5b8d1",
"right_context_start_lineno": 39,
"task_id": "project_cc_java/4120"
}
} |
cross_code_eval_java::project_cc_java/4266 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/example/callback/robot/RobotMsgCallbackConsumer.java
// }
// } ca... | {
"prefix": "package org.example.service;\n\nimport com.alibaba.fastjson.JSONObject;\nimport com.aliyun.dingtalkrobot_1_0.Client;\nimport com.aliyun.dingtalkrobot_1_0.models.OrgGroupSendHeaders;\nimport com.aliyun.dingtalkrobot_1_0.models.OrgGroupSendRequest;\nimport com.aliyun.dingtalkrobot_1_0.models.OrgGroupSendRe... | orgGroupSendHeaders.setXAcsDingtalkAccessToken(accessTokenService.getAccessToken()); | {} | {
"repository": "open-dingtalk-dingtalk-stream-sdk-java-quick-start-bb889b2",
"file": "src/main/java/org/example/service/RobotGroupMessagesService.java",
"task_id": "project_cc_java/4266"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/example/service/RobotGroupMessagesService.java",
"groundtruth_start_lineno": 50,
"repository": "open-dingtalk-dingtalk-stream-sdk-java-quick-start-bb889b2",
"right_context_start_lineno": 51,
"task_id": "project_cc_java/4266"... |
cross_code_eval_java::project_cc_java/4244 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/objectionary/ObjectsBox.java
// }
// /**
// * Gets the box of objects.
/... | {
"prefix": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2023 Objectionary.com\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limi... | = deepCopy(object.getApplication()); | {} | {
"repository": "objectionary-flatty-688a3da",
"file": "src/main/java/org/objectionary/Flatter.java",
"task_id": "project_cc_java/4244"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/objectionary/Flatter.java",
"groundtruth_start_lineno": 109,
"repository": "objectionary-flatty-688a3da",
"right_context_start_lineno": 110,
"task_id": "project_cc_java/4244"
}
} |
cross_code_eval_java::project_cc_java/4242 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/objectionary/ObjectsBox.java
// }
// result.add(
// ... | {
"prefix": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2023 Objectionary.com\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limi... | locator = ((Locator) binding.getValue()).getPath(); | {} | {
"repository": "objectionary-flatty-688a3da",
"file": "src/main/java/org/objectionary/Flatter.java",
"task_id": "project_cc_java/4242"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/objectionary/Flatter.java",
"groundtruth_start_lineno": 154,
"repository": "objectionary-flatty-688a3da",
"right_context_start_lineno": 155,
"task_id": "project_cc_java/4242"
}
} |
cross_code_eval_java::project_cc_java/4243 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/objectionary/ObjectsBox.java
// for (final String binding : dataizations) {
/... | {
"prefix": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2023 Objectionary.com\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limi... | box.get(object.getName())); | {} | {
"repository": "objectionary-flatty-688a3da",
"file": "src/main/java/org/objectionary/Flatter.java",
"task_id": "project_cc_java/4243"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/objectionary/Flatter.java",
"groundtruth_start_lineno": 108,
"repository": "objectionary-flatty-688a3da",
"right_context_start_lineno": 109,
"task_id": "project_cc_java/4243"
}
} |
cross_code_eval_java::project_cc_java/4268 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/example/service/RobotGroupMessagesService.java
// */
// public String send(S... | {
"prefix": "package org.example.callback.robot;\n\nimport com.alibaba.fastjson.JSONObject;\nimport org.example.model.DingTalkBotMessage;\nimport org.example.model.Text;\nimport org.example.service.RobotGroupMessagesService;\nimport com.dingtalk.open.app.api.callback.OpenDingTalkCallbackListener;\nimport lombok.exter... | robotGroupMessagesService.send(openConversationId, "hello"); | {} | {
"repository": "open-dingtalk-dingtalk-stream-sdk-java-quick-start-bb889b2",
"file": "src/main/java/org/example/callback/robot/RobotMsgCallbackConsumer.java",
"task_id": "project_cc_java/4268"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/example/callback/robot/RobotMsgCallbackConsumer.java",
"groundtruth_start_lineno": 40,
"repository": "open-dingtalk-dingtalk-stream-sdk-java-quick-start-bb889b2",
"right_context_start_lineno": 41,
"task_id": "project_cc_java... |
cross_code_eval_java::project_cc_java/4245 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/objectionary/entities/Entity.java
// */
// public abstract Entity copy();
//... | {
"prefix": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2023 Objectionary.com\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limi... | tokenizer.getToken(); | {} | {
"repository": "objectionary-flatty-688a3da",
"file": "src/main/java/org/objectionary/parsing/Entities.java",
"task_id": "project_cc_java/4245"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/objectionary/parsing/Entities.java",
"groundtruth_start_lineno": 65,
"repository": "objectionary-flatty-688a3da",
"right_context_start_lineno": 66,
"task_id": "project_cc_java/4245"
}
} |
cross_code_eval_java::project_cc_java/4239 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/objectionary/ObjectsBox.java
// }
// result.add(
// ... | {
"prefix": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2023 Objectionary.com\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limi... | ).getName(); | {} | {
"repository": "objectionary-flatty-688a3da",
"file": "src/main/java/org/objectionary/Flatter.java",
"task_id": "project_cc_java/4239"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/objectionary/Flatter.java",
"groundtruth_start_lineno": 134,
"repository": "objectionary-flatty-688a3da",
"right_context_start_lineno": 135,
"task_id": "project_cc_java/4239"
}
} |
cross_code_eval_java::project_cc_java/4262 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/onebeastchris/event/ServerJoinEvent.java
// player.setCustomNameVisib... | {
"prefix": "package onebeastchris.event;\n\nimport com.mojang.authlib.GameProfile;\nimport net.fabricmc.fabric.api.networking.v1.ServerPlayConnectionEvents;\nimport net.minecraft.server.network.ServerPlayerEntity;\nimport net.minecraft.text.Text;\nimport net.minecraft.world.GameMode;\nimport onebeastchris.util.Playe... | (storage.getName()); | {} | {
"repository": "onebeastchris-visitors-abf022e",
"file": "src/main/java/onebeastchris/event/ServerLeaveEvent.java",
"task_id": "project_cc_java/4262"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/onebeastchris/event/ServerLeaveEvent.java",
"groundtruth_start_lineno": 35,
"repository": "onebeastchris-visitors-abf022e",
"right_context_start_lineno": 36,
"task_id": "project_cc_java/4262"
}
} |
cross_code_eval_java::project_cc_java/4241 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/objectionary/ObjectsBox.java
// }
// result.add(
// ... | {
"prefix": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2023 Objectionary.com\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limi... | ((FlatObject) binding.getValue()).getLocator())
); | {} | {
"repository": "objectionary-flatty-688a3da",
"file": "src/main/java/org/objectionary/Flatter.java",
"task_id": "project_cc_java/4241"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/objectionary/Flatter.java",
"groundtruth_start_lineno": 206,
"repository": "objectionary-flatty-688a3da",
"right_context_start_lineno": 208,
"task_id": "project_cc_java/4241"
}
} |
cross_code_eval_java::project_cc_java/4247 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/objectionary/Tokenizer.java
// return result;
// }
// /**
// * I... | {
"prefix": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2023 Objectionary.com\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limi... | this.tokenizer.next(); | {} | {
"repository": "objectionary-flatty-688a3da",
"file": "src/main/java/org/objectionary/parsing/Entities.java",
"task_id": "project_cc_java/4247"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/objectionary/parsing/Entities.java",
"groundtruth_start_lineno": 103,
"repository": "objectionary-flatty-688a3da",
"right_context_start_lineno": 104,
"task_id": "project_cc_java/4247"
}
} |
cross_code_eval_java::project_cc_java/4162 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/committee/nova/flotage/datagen/FloBlockTagProvider.java
// brokenRaft.add(Blo... | {
"prefix": "package committee.nova.flotage.datagen;\n\nimport committee.nova.flotage.init.BlockRegistry;\nimport committee.nova.flotage.util.BlockMember;\nimport committee.nova.flotage.util.WorkingMode;\nimport net.fabricmc.fabric.api.datagen.v1.FabricDataOutput;\nimport net.fabricmc.fabric.api.datagen.v1.provider.F... | .add(BlockRegistry.get(member.brokenRaft()), beautifyName(member.brokenRaft())); | {} | {
"repository": "Nova-Committee-Flotage-Fabric-6478e2a",
"file": "src/main/java/committee/nova/flotage/datagen/FloLangProvider.java",
"task_id": "project_cc_java/4162"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/committee/nova/flotage/datagen/FloLangProvider.java",
"groundtruth_start_lineno": 31,
"repository": "Nova-Committee-Flotage-Fabric-6478e2a",
"right_context_start_lineno": 32,
"task_id": "project_cc_java/4162"
}
} |
cross_code_eval_java::project_cc_java/4170 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/committee/nova/flotage/compat/rei/category/RackREICategory.java
// widgets.add(Wi... | {
"prefix": "package committee.nova.flotage.datagen;\n\nimport committee.nova.flotage.init.BlockRegistry;\nimport committee.nova.flotage.util.BlockMember;\nimport committee.nova.flotage.util.WorkingMode;\nimport net.fabricmc.fabric.api.datagen.v1.FabricDataOutput;\nimport net.fabricmc.fabric.api.datagen.v1.provider.F... | .add(BlockRegistry.get(member.raft()), member.chinese + "筏"); | {} | {
"repository": "Nova-Committee-Flotage-Fabric-6478e2a",
"file": "src/main/java/committee/nova/flotage/datagen/FloLangProvider.java",
"task_id": "project_cc_java/4170"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/committee/nova/flotage/datagen/FloLangProvider.java",
"groundtruth_start_lineno": 64,
"repository": "Nova-Committee-Flotage-Fabric-6478e2a",
"right_context_start_lineno": 65,
"task_id": "project_cc_java/4170"
}
} |
cross_code_eval_java::project_cc_java/4164 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/committee/nova/flotage/datagen/FloBlockTagProvider.java
// brokenRaft.add(Blo... | {
"prefix": "package committee.nova.flotage.datagen;\n\nimport committee.nova.flotage.init.BlockRegistry;\nimport committee.nova.flotage.util.BlockMember;\nimport committee.nova.flotage.util.WorkingMode;\nimport net.fabricmc.fabric.api.datagen.v1.FabricDataOutput;\nimport net.fabricmc.fabric.api.datagen.v1.provider.F... | .add(BlockRegistry.get(member.fence()), beautifyName(member.fence())); | {} | {
"repository": "Nova-Committee-Flotage-Fabric-6478e2a",
"file": "src/main/java/committee/nova/flotage/datagen/FloLangProvider.java",
"task_id": "project_cc_java/4164"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/committee/nova/flotage/datagen/FloLangProvider.java",
"groundtruth_start_lineno": 32,
"repository": "Nova-Committee-Flotage-Fabric-6478e2a",
"right_context_start_lineno": 33,
"task_id": "project_cc_java/4164"
}
} |
cross_code_eval_java::project_cc_java/4169 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/committee/nova/flotage/datagen/FloBlockTagProvider.java
// brokenRaft.add(Blo... | {
"prefix": "package committee.nova.flotage.datagen;\n\nimport committee.nova.flotage.init.BlockRegistry;\nimport committee.nova.flotage.util.BlockMember;\nimport committee.nova.flotage.util.WorkingMode;\nimport net.fabricmc.fabric.api.datagen.v1.FabricDataOutput;\nimport net.fabricmc.fabric.api.datagen.v1.provider.F... | (BlockRegistry.get(member.rack()), beautifyName(member.rack())); | {} | {
"repository": "Nova-Committee-Flotage-Fabric-6478e2a",
"file": "src/main/java/committee/nova/flotage/datagen/FloLangProvider.java",
"task_id": "project_cc_java/4169"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/committee/nova/flotage/datagen/FloLangProvider.java",
"groundtruth_start_lineno": 34,
"repository": "Nova-Committee-Flotage-Fabric-6478e2a",
"right_context_start_lineno": 35,
"task_id": "project_cc_java/4169"
}
} |
cross_code_eval_java::project_cc_java/4161 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/committee/nova/flotage/compat/jade/provider/RackBlockTipProvider.java
// tool... | {
"prefix": "package committee.nova.flotage.datagen;\n\nimport committee.nova.flotage.init.BlockRegistry;\nimport committee.nova.flotage.util.BlockMember;\nimport committee.nova.flotage.util.WorkingMode;\nimport net.fabricmc.fabric.api.datagen.v1.FabricDataOutput;\nimport net.fabricmc.fabric.api.datagen.v1.provider.F... | beautifyName(member.raft())); | {} | {
"repository": "Nova-Committee-Flotage-Fabric-6478e2a",
"file": "src/main/java/committee/nova/flotage/datagen/FloLangProvider.java",
"task_id": "project_cc_java/4161"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/committee/nova/flotage/datagen/FloLangProvider.java",
"groundtruth_start_lineno": 30,
"repository": "Nova-Committee-Flotage-Fabric-6478e2a",
"right_context_start_lineno": 31,
"task_id": "project_cc_java/4161"
}
} |
cross_code_eval_java::project_cc_java/4165 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/committee/nova/flotage/datagen/FloBlockTagProvider.java
// brokenRaft.add(Blo... | {
"prefix": "package committee.nova.flotage.datagen;\n\nimport committee.nova.flotage.init.BlockRegistry;\nimport committee.nova.flotage.util.BlockMember;\nimport committee.nova.flotage.util.WorkingMode;\nimport net.fabricmc.fabric.api.datagen.v1.FabricDataOutput;\nimport net.fabricmc.fabric.api.datagen.v1.provider.F... | fence()), beautifyName(member.fence())); | {} | {
"repository": "Nova-Committee-Flotage-Fabric-6478e2a",
"file": "src/main/java/committee/nova/flotage/datagen/FloLangProvider.java",
"task_id": "project_cc_java/4165"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/committee/nova/flotage/datagen/FloLangProvider.java",
"groundtruth_start_lineno": 32,
"repository": "Nova-Committee-Flotage-Fabric-6478e2a",
"right_context_start_lineno": 33,
"task_id": "project_cc_java/4165"
}
} |
cross_code_eval_java::project_cc_java/4168 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/committee/nova/flotage/datagen/FloBlockTagProvider.java
// brokenRaft.add(Blo... | {
"prefix": "package committee.nova.flotage.datagen;\n\nimport committee.nova.flotage.init.BlockRegistry;\nimport committee.nova.flotage.util.BlockMember;\nimport committee.nova.flotage.util.WorkingMode;\nimport net.fabricmc.fabric.api.datagen.v1.FabricDataOutput;\nimport net.fabricmc.fabric.api.datagen.v1.provider.F... | member.rack()), beautifyName(member.rack())); | {} | {
"repository": "Nova-Committee-Flotage-Fabric-6478e2a",
"file": "src/main/java/committee/nova/flotage/datagen/FloLangProvider.java",
"task_id": "project_cc_java/4168"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/committee/nova/flotage/datagen/FloLangProvider.java",
"groundtruth_start_lineno": 34,
"repository": "Nova-Committee-Flotage-Fabric-6478e2a",
"right_context_start_lineno": 35,
"task_id": "project_cc_java/4168"
}
} |
cross_code_eval_java::project_cc_java/4166 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/committee/nova/flotage/datagen/FloBlockTagProvider.java
// brokenRaft.add(Blo... | {
"prefix": "package committee.nova.flotage.datagen;\n\nimport committee.nova.flotage.init.BlockRegistry;\nimport committee.nova.flotage.util.BlockMember;\nimport committee.nova.flotage.util.WorkingMode;\nimport net.fabricmc.fabric.api.datagen.v1.FabricDataOutput;\nimport net.fabricmc.fabric.api.datagen.v1.provider.F... | .get(member.crossedFence()), beautifyName(member.crossedFence())); | {} | {
"repository": "Nova-Committee-Flotage-Fabric-6478e2a",
"file": "src/main/java/committee/nova/flotage/datagen/FloLangProvider.java",
"task_id": "project_cc_java/4166"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/committee/nova/flotage/datagen/FloLangProvider.java",
"groundtruth_start_lineno": 33,
"repository": "Nova-Committee-Flotage-Fabric-6478e2a",
"right_context_start_lineno": 34,
"task_id": "project_cc_java/4166"
}
} |
cross_code_eval_java::project_cc_java/4163 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/committee/nova/flotage/datagen/FloBlockTagProvider.java
// brokenRaft.add(Blo... | {
"prefix": "package committee.nova.flotage.datagen;\n\nimport committee.nova.flotage.init.BlockRegistry;\nimport committee.nova.flotage.util.BlockMember;\nimport committee.nova.flotage.util.WorkingMode;\nimport net.fabricmc.fabric.api.datagen.v1.FabricDataOutput;\nimport net.fabricmc.fabric.api.datagen.v1.provider.F... | , beautifyName(member.brokenRaft())); | {} | {
"repository": "Nova-Committee-Flotage-Fabric-6478e2a",
"file": "src/main/java/committee/nova/flotage/datagen/FloLangProvider.java",
"task_id": "project_cc_java/4163"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/committee/nova/flotage/datagen/FloLangProvider.java",
"groundtruth_start_lineno": 31,
"repository": "Nova-Committee-Flotage-Fabric-6478e2a",
"right_context_start_lineno": 32,
"task_id": "project_cc_java/4163"
}
} |
cross_code_eval_java::project_cc_java/4278 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/orangomango/chess/multiplayer/ClientManager.java
// if (Server.clients.size() > 2){... | {
"prefix": "package com.orangomango.chess.multiplayer;\n\nimport java.io.*;\nimport java.net.*;\n\nimport javafx.scene.paint.Color;\n\nimport com.orangomango.chess.Logger;\n\npublic class Client{\n\tprivate String ip;\n\tprivate int port;\n\tprivate Socket socket;\n\tprivate BufferedWriter writer;\n\tprivate Buffere... | Logger.writeError("Invalid server response"); | {} | {
"repository": "OrangoMango-Chess-c4bd8f5",
"file": "src/main/java/com/orangomango/chess/multiplayer/Client.java",
"task_id": "project_cc_java/4278"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/orangomango/chess/multiplayer/Client.java",
"groundtruth_start_lineno": 34,
"repository": "OrangoMango-Chess-c4bd8f5",
"right_context_start_lineno": 35,
"task_id": "project_cc_java/4278"
}
} |
cross_code_eval_java::project_cc_java/4285 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/orangomango/chess/multiplayer/Client.java
// return this.socket != null && this.soc... | {
"prefix": "package com.orangomango.chess;\n\nimport java.io.*;\n\nimport javafx.scene.paint.Color;\n\npublic class Engine{\n\tprivate static String COMMAND = \"stockfish\";\n\t\n\tprivate OutputStreamWriter writer;\n\tprivate BufferedReader reader;\n\tprivate boolean running = true;\n\n\tstatic {\n\t\tFile dir = ne... | ("position fen "+b.getFEN()); | {} | {
"repository": "OrangoMango-Chess-c4bd8f5",
"file": "src/main/java/com/orangomango/chess/Engine.java",
"task_id": "project_cc_java/4285"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/orangomango/chess/Engine.java",
"groundtruth_start_lineno": 75,
"repository": "OrangoMango-Chess-c4bd8f5",
"right_context_start_lineno": 76,
"task_id": "project_cc_java/4285"
}
} |
cross_code_eval_java::project_cc_java/4228 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/swmaestro/kauth/authentication/AbstractAuthenticationFilter.java
// unsuccessfulA... | {
"prefix": "package org.swmaestro.kauth.authentication.jwt;\n\nimport java.io.IOException;\n\nimport org.springframework.security.web.util.matcher.AntPathRequestMatcher;\nimport org.springframework.web.filter.OncePerRequestFilter;\nimport org.swmaestro.kauth.exceptions.RefreshTokenMismatchException;\nimport org.swma... | username = jwtUtil.verifyToken(token); | {} | {
"repository": "nsce9806q-k-spring-security-8e88d3d",
"file": "src/main/java/org/swmaestro/kauth/authentication/jwt/JwtReissueFilter.java",
"task_id": "project_cc_java/4228"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/swmaestro/kauth/authentication/jwt/JwtReissueFilter.java",
"groundtruth_start_lineno": 68,
"repository": "nsce9806q-k-spring-security-8e88d3d",
"right_context_start_lineno": 69,
"task_id": "project_cc_java/4228"
}
} |
cross_code_eval_java::project_cc_java/4287 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/orangomango/chess/Piece.java
// }
// @Override
// public String toString(){
// r... | {
"prefix": "package com.orangomango.chess;\n\nimport java.io.*;\n\nimport javafx.scene.paint.Color;\n\npublic class Engine{\n\tprivate static String COMMAND = \"stockfish\";\n\t\n\tprivate OutputStreamWriter writer;\n\tprivate BufferedReader reader;\n\tprivate boolean running = true;\n\n\tstatic {\n\t\tFile dir = ne... | getIncrementTime(), b.getIncrementTime())); | {} | {
"repository": "OrangoMango-Chess-c4bd8f5",
"file": "src/main/java/com/orangomango/chess/Engine.java",
"task_id": "project_cc_java/4287"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/orangomango/chess/Engine.java",
"groundtruth_start_lineno": 76,
"repository": "OrangoMango-Chess-c4bd8f5",
"right_context_start_lineno": 77,
"task_id": "project_cc_java/4287"
}
} |
cross_code_eval_java::project_cc_java/4286 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/orangomango/chess/Piece.java
// }
// @Override
// public String toString(){
// r... | {
"prefix": "package com.orangomango.chess;\n\nimport java.io.*;\n\nimport javafx.scene.paint.Color;\n\npublic class Engine{\n\tprivate static String COMMAND = \"stockfish\";\n\t\n\tprivate OutputStreamWriter writer;\n\tprivate BufferedReader reader;\n\tprivate boolean running = true;\n\n\tstatic {\n\t\tFile dir = ne... | Color.WHITE), b.getTime(Color.BLACK), b.getIncrementTime(), b.getIncrementTime())); | {} | {
"repository": "OrangoMango-Chess-c4bd8f5",
"file": "src/main/java/com/orangomango/chess/Engine.java",
"task_id": "project_cc_java/4286"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/orangomango/chess/Engine.java",
"groundtruth_start_lineno": 76,
"repository": "OrangoMango-Chess-c4bd8f5",
"right_context_start_lineno": 77,
"task_id": "project_cc_java/4286"
}
} |
cross_code_eval_java::project_cc_java/4276 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/orangomango/chess/multiplayer/ClientManager.java
// } catch (IOException ex){
// ... | {
"prefix": "package com.orangomango.chess.multiplayer;\n\nimport java.io.*;\nimport java.net.*;\nimport java.util.*;\n\nimport com.orangomango.chess.Logger;\n\npublic class Server{\n\tprivate String ip;\n\tprivate int port;\n\tprivate ServerSocket server;\n\tpublic static List<ClientManager> clients = new ArrayList<... | cm.reply(); | {} | {
"repository": "OrangoMango-Chess-c4bd8f5",
"file": "src/main/java/com/orangomango/chess/multiplayer/Server.java",
"task_id": "project_cc_java/4276"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/orangomango/chess/multiplayer/Server.java",
"groundtruth_start_lineno": 33,
"repository": "OrangoMango-Chess-c4bd8f5",
"right_context_start_lineno": 34,
"task_id": "project_cc_java/4276"
}
} |
cross_code_eval_java::project_cc_java/4231 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/org/swmaestro/kauth/authentication/AbstractAuthenticationFilter.java
// * @param respon... | {
"prefix": "package org.swmaestro.kauth.authentication;\n\nimport org.springframework.context.annotation.Lazy;\nimport org.springframework.security.authentication.AccountStatusUserDetailsChecker;\nimport org.springframework.security.authentication.AuthenticationManager;\nimport org.springframework.security.authentic... | user = userDetailsService.loadUserByUsername((String)auth.getPrincipal()); | {} | {
"repository": "nsce9806q-k-spring-security-8e88d3d",
"file": "src/main/java/org/swmaestro/kauth/authentication/UsernamePasswordAuthenticationManager.java",
"task_id": "project_cc_java/4231"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/swmaestro/kauth/authentication/UsernamePasswordAuthenticationManager.java",
"groundtruth_start_lineno": 58,
"repository": "nsce9806q-k-spring-security-8e88d3d",
"right_context_start_lineno": 59,
"task_id": "project_cc_java/4... |
cross_code_eval_java::project_cc_java/4114 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// backend/src/main/java/com/upCycle/service/EcocreadorService.java
// }
// public DtoEcocreadorRe... | {
"prefix": "package com.upCycle.service;\n\nimport com.upCycle.dto.request.DtoEcoproveedor;\nimport com.upCycle.dto.response.DtoEcoproveedorResponse;\nimport com.upCycle.entity.Ecoproveedor;\nimport com.upCycle.entity.Producto;\nimport com.upCycle.entity.Usuario;\nimport com.upCycle.exception.UserAlreadyExistExcepti... | ecoproveedor.calcularPuntosTotales(); | {} | {
"repository": "No-Country-c11-19-m-javareact-cf62efa",
"file": "backend/src/main/java/com/upCycle/service/EcoproveedorService.java",
"task_id": "project_cc_java/4114"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "backend/src/main/java/com/upCycle/service/EcoproveedorService.java",
"groundtruth_start_lineno": 45,
"repository": "No-Country-c11-19-m-javareact-cf62efa",
"right_context_start_lineno": 46,
"task_id": "project_cc_java/4114"
}
} |
cross_code_eval_java::project_cc_java/4234 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/test/java/org/swmaestro/kauth/integration/KSecurityConfigurationTests.java
// return ne... | {
"prefix": "package org.swmaestro.kauth.authentication;\n\nimport org.springframework.context.annotation.Lazy;\nimport org.springframework.security.authentication.AccountStatusUserDetailsChecker;\nimport org.springframework.security.authentication.AuthenticationManager;\nimport org.springframework.security.authentic... | auth.eraseCredentials(); | {} | {
"repository": "nsce9806q-k-spring-security-8e88d3d",
"file": "src/main/java/org/swmaestro/kauth/authentication/UsernamePasswordAuthenticationManager.java",
"task_id": "project_cc_java/4234"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/org/swmaestro/kauth/authentication/UsernamePasswordAuthenticationManager.java",
"groundtruth_start_lineno": 69,
"repository": "nsce9806q-k-spring-security-8e88d3d",
"right_context_start_lineno": 70,
"task_id": "project_cc_java/4... |
cross_code_eval_java::project_cc_java/4171 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/committee/nova/flotage/compat/rei/category/RackREICategory.java
// widgets.add(Wi... | {
"prefix": "package committee.nova.flotage.datagen;\n\nimport committee.nova.flotage.init.BlockRegistry;\nimport committee.nova.flotage.util.BlockMember;\nimport committee.nova.flotage.util.WorkingMode;\nimport net.fabricmc.fabric.api.datagen.v1.FabricDataOutput;\nimport net.fabricmc.fabric.api.datagen.v1.provider.F... | builder.add(BlockRegistry.get(member.brokenRaft()), "损坏的" + member.chinese + "筏"); | {} | {
"repository": "Nova-Committee-Flotage-Fabric-6478e2a",
"file": "src/main/java/committee/nova/flotage/datagen/FloLangProvider.java",
"task_id": "project_cc_java/4171"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/committee/nova/flotage/datagen/FloLangProvider.java",
"groundtruth_start_lineno": 65,
"repository": "Nova-Committee-Flotage-Fabric-6478e2a",
"right_context_start_lineno": 66,
"task_id": "project_cc_java/4171"
}
} |
cross_code_eval_java::project_cc_java/4298 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/orangomango/chess/multiplayer/ClientManager.java
// if (Server.clients.size() > 2){... | {
"prefix": "package com.orangomango.chess;\n\nimport javafx.scene.paint.Color;\n\nimport java.util.*;\nimport java.text.SimpleDateFormat;\nimport java.util.stream.Collectors;\n\npublic class Board{\n\tprivate Piece[][] board;\n\tprivate boolean blackRightCastleAllowed = true, whiteRightCastleAllowed = true;\n\tpriva... | .stream().filter(piece -> piece.getType().getName() == Piece.PIECE_PAWN).count(); | {} | {
"repository": "OrangoMango-Chess-c4bd8f5",
"file": "src/main/java/com/orangomango/chess/Board.java",
"task_id": "project_cc_java/4298"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/orangomango/chess/Board.java",
"groundtruth_start_lineno": 148,
"repository": "OrangoMango-Chess-c4bd8f5",
"right_context_start_lineno": 149,
"task_id": "project_cc_java/4298"
}
} |
cross_code_eval_java::project_cc_java/4175 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/committee/nova/flotage/datagen/FloModelProvider.java
// @Override
// public void ... | {
"prefix": "package committee.nova.flotage.init;\n\nimport committee.nova.flotage.Flotage;\nimport committee.nova.flotage.impl.block.*;\nimport committee.nova.flotage.util.BlockMember;\nimport net.minecraft.block.AbstractBlock;\nimport net.minecraft.block.Block;\nimport net.minecraft.registry.Registries;\nimport net... | Flotage.id(id), block); | {} | {
"repository": "Nova-Committee-Flotage-Fabric-6478e2a",
"file": "src/main/java/committee/nova/flotage/init/BlockRegistry.java",
"task_id": "project_cc_java/4175"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/committee/nova/flotage/init/BlockRegistry.java",
"groundtruth_start_lineno": 45,
"repository": "Nova-Committee-Flotage-Fabric-6478e2a",
"right_context_start_lineno": 46,
"task_id": "project_cc_java/4175"
}
} |
cross_code_eval_java::project_cc_java/4195 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/committee/nova/flotage/init/BlockRegistry.java
// }
// public static Block get(St... | {
"prefix": "package committee.nova.flotage.datagen;\n\nimport committee.nova.flotage.Flotage;\nimport committee.nova.flotage.init.BlockRegistry;\nimport committee.nova.flotage.util.BlockMember;\nimport net.fabricmc.fabric.api.datagen.v1.FabricDataOutput;\nimport net.fabricmc.fabric.api.datagen.v1.provider.FabricMode... | ().getNamespace(), "block/" + member.log().getPath()); | {} | {
"repository": "Nova-Committee-Flotage-Fabric-6478e2a",
"file": "src/main/java/committee/nova/flotage/datagen/FloModelProvider.java",
"task_id": "project_cc_java/4195"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/committee/nova/flotage/datagen/FloModelProvider.java",
"groundtruth_start_lineno": 55,
"repository": "Nova-Committee-Flotage-Fabric-6478e2a",
"right_context_start_lineno": 56,
"task_id": "project_cc_java/4195"
}
} |
cross_code_eval_java::project_cc_java/4306 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/orangomango/chess/MainApplication.java
// }
// } else {
// return false;
// ... | {
"prefix": "package com.orangomango.chess;\n\nimport javafx.scene.paint.Color;\n\nimport java.util.*;\nimport java.text.SimpleDateFormat;\nimport java.util.stream.Collectors;\n\npublic class Board{\n\tprivate Piece[][] board;\n\tprivate boolean blackRightCastleAllowed = true, whiteRightCastleAllowed = true;\n\tpriva... | () && p.getColor() == piece.getColor()){ | {} | {
"repository": "OrangoMango-Chess-c4bd8f5",
"file": "src/main/java/com/orangomango/chess/Board.java",
"task_id": "project_cc_java/4306"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/orangomango/chess/Board.java",
"groundtruth_start_lineno": 209,
"repository": "OrangoMango-Chess-c4bd8f5",
"right_context_start_lineno": 210,
"task_id": "project_cc_java/4306"
}
} |
cross_code_eval_java::project_cc_java/4300 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/orangomango/chess/MainApplication.java
// String text = "";
// if (j == 7){
/... | {
"prefix": "package com.orangomango.chess;\n\nimport javafx.scene.paint.Color;\n\nimport java.util.*;\nimport java.text.SimpleDateFormat;\nimport java.util.stream.Collectors;\n\npublic class Board{\n\tprivate Piece[][] board;\n\tprivate boolean blackRightCastleAllowed = true, whiteRightCastleAllowed = true;\n\tpriva... | ).filter(piece -> piece.getType().getName() == Piece.PIECE_KNIGHT).count(); | {} | {
"repository": "OrangoMango-Chess-c4bd8f5",
"file": "src/main/java/com/orangomango/chess/Board.java",
"task_id": "project_cc_java/4300"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/orangomango/chess/Board.java",
"groundtruth_start_lineno": 150,
"repository": "OrangoMango-Chess-c4bd8f5",
"right_context_start_lineno": 151,
"task_id": "project_cc_java/4300"
}
} |
cross_code_eval_java::project_cc_java/4303 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/orangomango/chess/MainApplication.java
// }
// } else {
// return false;
// ... | {
"prefix": "package com.orangomango.chess;\n\nimport javafx.scene.paint.Color;\n\nimport java.util.*;\nimport java.text.SimpleDateFormat;\nimport java.util.stream.Collectors;\n\npublic class Board{\n\tprivate Piece[][] board;\n\tprivate boolean blackRightCastleAllowed = true, whiteRightCastleAllowed = true;\n\tpriva... | if (piece == null || piece.getColor() != this.player) return false; | {} | {
"repository": "OrangoMango-Chess-c4bd8f5",
"file": "src/main/java/com/orangomango/chess/Board.java",
"task_id": "project_cc_java/4303"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/orangomango/chess/Board.java",
"groundtruth_start_lineno": 200,
"repository": "OrangoMango-Chess-c4bd8f5",
"right_context_start_lineno": 201,
"task_id": "project_cc_java/4303"
}
} |
cross_code_eval_java::project_cc_java/4297 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/orangomango/chess/MainApplication.java
// y += SPACE;
// String[] proms =... | {
"prefix": "package com.orangomango.chess;\n\nimport javafx.scene.paint.Color;\n\nimport java.util.*;\nimport java.text.SimpleDateFormat;\nimport java.util.stream.Collectors;\n\npublic class Board{\n\tprivate Piece[][] board;\n\tprivate boolean blackRightCastleAllowed = true, whiteRightCastleAllowed = true;\n\tpriva... | > pieces = getPiecesOnBoard().stream().filter(piece -> piece.getColor() == color).toList(); | {} | {
"repository": "OrangoMango-Chess-c4bd8f5",
"file": "src/main/java/com/orangomango/chess/Board.java",
"task_id": "project_cc_java/4297"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/orangomango/chess/Board.java",
"groundtruth_start_lineno": 146,
"repository": "OrangoMango-Chess-c4bd8f5",
"right_context_start_lineno": 147,
"task_id": "project_cc_java/4297"
}
} |
cross_code_eval_java::project_cc_java/4307 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/orangomango/chess/MainApplication.java
// }
// } else {
// return false;
// ... | {
"prefix": "package com.orangomango.chess;\n\nimport javafx.scene.paint.Color;\n\nimport java.util.*;\nimport java.text.SimpleDateFormat;\nimport java.util.stream.Collectors;\n\npublic class Board{\n\tprivate Piece[][] board;\n\tprivate boolean blackRightCastleAllowed = true, whiteRightCastleAllowed = true;\n\tpriva... | p.getColor() == piece.getColor()){ | {} | {
"repository": "OrangoMango-Chess-c4bd8f5",
"file": "src/main/java/com/orangomango/chess/Board.java",
"task_id": "project_cc_java/4307"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/orangomango/chess/Board.java",
"groundtruth_start_lineno": 209,
"repository": "OrangoMango-Chess-c4bd8f5",
"right_context_start_lineno": 210,
"task_id": "project_cc_java/4307"
}
} |
cross_code_eval_java::project_cc_java/4292 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/orangomango/chess/MainApplication.java
// y += SPACE;
// String[] proms =... | {
"prefix": "package com.orangomango.chess;\n\nimport javafx.scene.paint.Color;\n\nimport java.util.*;\nimport java.text.SimpleDateFormat;\nimport java.util.stream.Collectors;\n\npublic class Board{\n\tprivate Piece[][] board;\n\tprivate boolean blackRightCastleAllowed = true, whiteRightCastleAllowed = true;\n\tpriva... | .WHITE && newLegalMoves.contains(convertPosition(this.blackKing.getX(), this.blackKing.getY()))){ | {} | {
"repository": "OrangoMango-Chess-c4bd8f5",
"file": "src/main/java/com/orangomango/chess/Board.java",
"task_id": "project_cc_java/4292"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/orangomango/chess/Board.java",
"groundtruth_start_lineno": 134,
"repository": "OrangoMango-Chess-c4bd8f5",
"right_context_start_lineno": 135,
"task_id": "project_cc_java/4292"
}
} |
cross_code_eval_java::project_cc_java/4271 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// feign-plugin-spring-boot-starter/src/main/java/com/openquartz/feign/plugin/starter/autoconfig/property/... | {
"prefix": "package com.openquartz.feign.plugin.starter.advisor;\n\nimport com.openquartz.feign.plugin.starter.constants.Constants;\nimport feign.Client;\nimport feign.Request;\nimport feign.Request.Options;\nimport java.net.URI;\nimport java.util.List;\nimport java.util.Objects;\nimport org.aopalliance.intercept.Me... | if (MapUtils.isNotEmpty(this.properties.getConfig())) { | {} | {
"repository": "openquartz-spring-cloud-feign-plugin-bdc8753",
"file": "feign-plugin-spring-boot-starter/src/main/java/com/openquartz/feign/plugin/starter/advisor/DynamicFeignTimeoutInterceptor.java",
"task_id": "project_cc_java/4271"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "feign-plugin-spring-boot-starter/src/main/java/com/openquartz/feign/plugin/starter/advisor/DynamicFeignTimeoutInterceptor.java",
"groundtruth_start_lineno": 61,
"repository": "openquartz-spring-cloud-feign-plugin-bdc8753",
"right_context_start_li... |
cross_code_eval_java::project_cc_java/4222 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/committee/nova/flotage/impl/block/RackBlock.java
// } else if (handStack.isEmpty(... | {
"prefix": "package committee.nova.flotage.impl.tile;\n\nimport committee.nova.flotage.impl.recipe.RackRecipe;\nimport committee.nova.flotage.impl.recipe.RackRecipeType;\nimport committee.nova.flotage.init.TileRegistry;\nimport committee.nova.flotage.util.WorkingMode;\nimport it.unimi.dsi.fastutil.objects.Object2Int... | pos) == recipe.getMode()) { | {} | {
"repository": "Nova-Committee-Flotage-Fabric-6478e2a",
"file": "src/main/java/committee/nova/flotage/impl/tile/RackBlockEntity.java",
"task_id": "project_cc_java/4222"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/committee/nova/flotage/impl/tile/RackBlockEntity.java",
"groundtruth_start_lineno": 119,
"repository": "Nova-Committee-Flotage-Fabric-6478e2a",
"right_context_start_lineno": 120,
"task_id": "project_cc_java/4222"
}
} |
cross_code_eval_java::project_cc_java/4299 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/orangomango/chess/MainApplication.java
// String text = "";
// if (j == 7){
/... | {
"prefix": "package com.orangomango.chess;\n\nimport javafx.scene.paint.Color;\n\nimport java.util.*;\nimport java.text.SimpleDateFormat;\nimport java.util.stream.Collectors;\n\npublic class Board{\n\tprivate Piece[][] board;\n\tprivate boolean blackRightCastleAllowed = true, whiteRightCastleAllowed = true;\n\tpriva... | .filter(piece -> piece.getType().getName() == Piece.PIECE_ROOK).count(); | {} | {
"repository": "OrangoMango-Chess-c4bd8f5",
"file": "src/main/java/com/orangomango/chess/Board.java",
"task_id": "project_cc_java/4299"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/orangomango/chess/Board.java",
"groundtruth_start_lineno": 149,
"repository": "OrangoMango-Chess-c4bd8f5",
"right_context_start_lineno": 150,
"task_id": "project_cc_java/4299"
}
} |
cross_code_eval_java::project_cc_java/4272 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// feign-plugin-spring-boot-starter/src/main/java/com/openquartz/feign/plugin/starter/advisor/FeignPluginA... | {
"prefix": "package com.openquartz.feign.plugin.starter.advisor;\n\nimport com.openquartz.feign.plugin.starter.constants.Constants;\nimport feign.Client;\nimport feign.Request;\nimport feign.Request.Options;\nimport java.net.URI;\nimport java.util.List;\nimport java.util.Objects;\nimport org.aopalliance.intercept.Me... | .wrapperTimeoutOptions(this.properties.getHostConfig(uri.getHost()), uri); | {} | {
"repository": "openquartz-spring-cloud-feign-plugin-bdc8753",
"file": "feign-plugin-spring-boot-starter/src/main/java/com/openquartz/feign/plugin/starter/advisor/DynamicFeignTimeoutInterceptor.java",
"task_id": "project_cc_java/4272"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "feign-plugin-spring-boot-starter/src/main/java/com/openquartz/feign/plugin/starter/advisor/DynamicFeignTimeoutInterceptor.java",
"groundtruth_start_lineno": 67,
"repository": "openquartz-spring-cloud-feign-plugin-bdc8753",
"right_context_start_li... |
cross_code_eval_java::project_cc_java/4308 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/orangomango/chess/MainApplication.java
// if (this.gameFinished || this.premoves.si... | {
"prefix": "package com.orangomango.chess;\n\nimport javafx.scene.paint.Color;\n\nimport java.util.*;\nimport java.text.SimpleDateFormat;\nimport java.util.stream.Collectors;\n\npublic class Board{\n\tprivate Piece[][] board;\n\tprivate boolean blackRightCastleAllowed = true, whiteRightCastleAllowed = true;\n\tpriva... | [capture.getX()][capture.getY()] = null; | {} | {
"repository": "OrangoMango-Chess-c4bd8f5",
"file": "src/main/java/com/orangomango/chess/Board.java",
"task_id": "project_cc_java/4308"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/orangomango/chess/Board.java",
"groundtruth_start_lineno": 217,
"repository": "OrangoMango-Chess-c4bd8f5",
"right_context_start_lineno": 218,
"task_id": "project_cc_java/4308"
}
} |
cross_code_eval_java::project_cc_java/4173 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/committee/nova/flotage/datagen/FloBlockTagProvider.java
// brokenRaft.add(Blo... | {
"prefix": "package committee.nova.flotage.datagen;\n\nimport committee.nova.flotage.init.BlockRegistry;\nimport committee.nova.flotage.util.BlockMember;\nimport committee.nova.flotage.util.WorkingMode;\nimport net.fabricmc.fabric.api.datagen.v1.FabricDataOutput;\nimport net.fabricmc.fabric.api.datagen.v1.provider.F... | add(BlockRegistry.get(member.crossedFence()), member.chinese + "十字栅栏"); | {} | {
"repository": "Nova-Committee-Flotage-Fabric-6478e2a",
"file": "src/main/java/committee/nova/flotage/datagen/FloLangProvider.java",
"task_id": "project_cc_java/4173"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/committee/nova/flotage/datagen/FloLangProvider.java",
"groundtruth_start_lineno": 67,
"repository": "Nova-Committee-Flotage-Fabric-6478e2a",
"right_context_start_lineno": 68,
"task_id": "project_cc_java/4173"
}
} |
cross_code_eval_java::project_cc_java/4219 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/committee/nova/flotage/compat/emi/recipe/RackEMIRecipe.java
// @Override
// publi... | {
"prefix": "package committee.nova.flotage.compat.rei.category;\n\nimport committee.nova.flotage.Flotage;\nimport committee.nova.flotage.compat.rei.FlotageREIPlugin;\nimport committee.nova.flotage.compat.rei.display.RackREIDisplay;\nimport committee.nova.flotage.util.BlockMember;\nimport committee.nova.flotage.init.... | display.getMode().toString())); | {} | {
"repository": "Nova-Committee-Flotage-Fabric-6478e2a",
"file": "src/main/java/committee/nova/flotage/compat/rei/category/RackREICategory.java",
"task_id": "project_cc_java/4219"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/committee/nova/flotage/compat/rei/category/RackREICategory.java",
"groundtruth_start_lineno": 61,
"repository": "Nova-Committee-Flotage-Fabric-6478e2a",
"right_context_start_lineno": 62,
"task_id": "project_cc_java/4219"
}
} |
cross_code_eval_java::project_cc_java/4174 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/committee/nova/flotage/datagen/FloBlockTagProvider.java
// brokenRaft.add(Blo... | {
"prefix": "package committee.nova.flotage.datagen;\n\nimport committee.nova.flotage.init.BlockRegistry;\nimport committee.nova.flotage.util.BlockMember;\nimport committee.nova.flotage.util.WorkingMode;\nimport net.fabricmc.fabric.api.datagen.v1.FabricDataOutput;\nimport net.fabricmc.fabric.api.datagen.v1.provider.F... | add(BlockRegistry.get(member.rack()), member.chinese + "置物架"); | {} | {
"repository": "Nova-Committee-Flotage-Fabric-6478e2a",
"file": "src/main/java/committee/nova/flotage/datagen/FloLangProvider.java",
"task_id": "project_cc_java/4174"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/committee/nova/flotage/datagen/FloLangProvider.java",
"groundtruth_start_lineno": 68,
"repository": "Nova-Committee-Flotage-Fabric-6478e2a",
"right_context_start_lineno": 69,
"task_id": "project_cc_java/4174"
}
} |
cross_code_eval_java::project_cc_java/4172 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/committee/nova/flotage/datagen/FloBlockTagProvider.java
// brokenRaft.add(Blo... | {
"prefix": "package committee.nova.flotage.datagen;\n\nimport committee.nova.flotage.init.BlockRegistry;\nimport committee.nova.flotage.util.BlockMember;\nimport committee.nova.flotage.util.WorkingMode;\nimport net.fabricmc.fabric.api.datagen.v1.FabricDataOutput;\nimport net.fabricmc.fabric.api.datagen.v1.provider.F... | member.fence()), "简易" + member.chinese + "栅栏"); | {} | {
"repository": "Nova-Committee-Flotage-Fabric-6478e2a",
"file": "src/main/java/committee/nova/flotage/datagen/FloLangProvider.java",
"task_id": "project_cc_java/4172"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/committee/nova/flotage/datagen/FloLangProvider.java",
"groundtruth_start_lineno": 66,
"repository": "Nova-Committee-Flotage-Fabric-6478e2a",
"right_context_start_lineno": 67,
"task_id": "project_cc_java/4172"
}
} |
cross_code_eval_java::project_cc_java/4200 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/committee/nova/flotage/impl/recipe/RackRecipeSerializer.java
// return new RackRe... | {
"prefix": "package committee.nova.flotage.impl.recipe;\n\nimport committee.nova.flotage.impl.tile.RackBlockEntity;\nimport committee.nova.flotage.util.BlockMember;\nimport committee.nova.flotage.init.BlockRegistry;\nimport committee.nova.flotage.util.WorkingMode;\nimport net.minecraft.item.ItemStack;\nimport net.mi... | inventory.getStack(0).getNbt(); | {} | {
"repository": "Nova-Committee-Flotage-Fabric-6478e2a",
"file": "src/main/java/committee/nova/flotage/impl/recipe/RackRecipe.java",
"task_id": "project_cc_java/4200"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/committee/nova/flotage/impl/recipe/RackRecipe.java",
"groundtruth_start_lineno": 40,
"repository": "Nova-Committee-Flotage-Fabric-6478e2a",
"right_context_start_lineno": 41,
"task_id": "project_cc_java/4200"
}
} |
cross_code_eval_java::project_cc_java/4220 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/committee/nova/flotage/compat/emi/recipe/RackEMIRecipe.java
// @Override
// publi... | {
"prefix": "package committee.nova.flotage.compat.rei.category;\n\nimport committee.nova.flotage.Flotage;\nimport committee.nova.flotage.compat.rei.FlotageREIPlugin;\nimport committee.nova.flotage.compat.rei.display.RackREIDisplay;\nimport committee.nova.flotage.util.BlockMember;\nimport committee.nova.flotage.init.... | add(Widgets.withTooltip(arrow, Text.translatable("tip.flotage.rack.processtime", display.getProcesstime() / 20), text)); | {} | {
"repository": "Nova-Committee-Flotage-Fabric-6478e2a",
"file": "src/main/java/committee/nova/flotage/compat/rei/category/RackREICategory.java",
"task_id": "project_cc_java/4220"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/committee/nova/flotage/compat/rei/category/RackREICategory.java",
"groundtruth_start_lineno": 62,
"repository": "Nova-Committee-Flotage-Fabric-6478e2a",
"right_context_start_lineno": 63,
"task_id": "project_cc_java/4220"
}
} |
cross_code_eval_java::project_cc_java/4211 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/committee/nova/flotage/datagen/FloLangProvider.java
// }
// }
// public s... | {
"prefix": "package committee.nova.flotage.datagen;\n\nimport committee.nova.flotage.Flotage;\nimport committee.nova.flotage.init.BlockRegistry;\nimport committee.nova.flotage.util.BlockMember;\nimport net.fabricmc.fabric.api.datagen.v1.FabricDataOutput;\nimport net.fabricmc.fabric.api.datagen.v1.provider.FabricTagP... | add(BlockRegistry.get(member.crossedFence())); | {} | {
"repository": "Nova-Committee-Flotage-Fabric-6478e2a",
"file": "src/main/java/committee/nova/flotage/datagen/FloBlockTagProvider.java",
"task_id": "project_cc_java/4211"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/committee/nova/flotage/datagen/FloBlockTagProvider.java",
"groundtruth_start_lineno": 39,
"repository": "Nova-Committee-Flotage-Fabric-6478e2a",
"right_context_start_lineno": 40,
"task_id": "project_cc_java/4211"
}
} |
cross_code_eval_java::project_cc_java/4329 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/orangomango/chess/Board.java
// if (x < 0 || y < 0 || x > 7 || y > 7){
// return... | {
"prefix": "package com.orangomango.chess;\n\nimport javafx.application.Application;\nimport javafx.stage.Stage;\nimport javafx.scene.Scene;\nimport javafx.scene.layout.StackPane;\nimport javafx.scene.canvas.*;\nimport javafx.scene.input.MouseEvent;\nimport javafx.scene.input.MouseButton;\nimport javafx.scene.input.... | .board.getPlayer() != this.viewPoint && (this.engineMove || !this.overTheBoard)){ | {} | {
"repository": "OrangoMango-Chess-c4bd8f5",
"file": "src/main/java/com/orangomango/chess/MainApplication.java",
"task_id": "project_cc_java/4329"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/orangomango/chess/MainApplication.java",
"groundtruth_start_lineno": 110,
"repository": "OrangoMango-Chess-c4bd8f5",
"right_context_start_lineno": 111,
"task_id": "project_cc_java/4329"
}
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.