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/4325 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/Server.java
// }
// private void listen(){
// Threa... | {
"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.... | this.client.getColor(); | {} | {
"repository": "OrangoMango-Chess-c4bd8f5",
"file": "src/main/java/com/orangomango/chess/MainApplication.java",
"task_id": "project_cc_java/4325"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/orangomango/chess/MainApplication.java",
"groundtruth_start_lineno": 192,
"repository": "OrangoMango-Chess-c4bd8f5",
"right_context_start_lineno": 193,
"task_id": "project_cc_java/4325"
}
} |
cross_code_eval_java::project_cc_java/4326 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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
// try {
// String message ... | {
"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.... | this.client.getMessage(); | {} | {
"repository": "OrangoMango-Chess-c4bd8f5",
"file": "src/main/java/com/orangomango/chess/MainApplication.java",
"task_id": "project_cc_java/4326"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/orangomango/chess/MainApplication.java",
"groundtruth_start_lineno": 196,
"repository": "OrangoMango-Chess-c4bd8f5",
"right_context_start_lineno": 197,
"task_id": "project_cc_java/4326"
}
} |
cross_code_eval_java::project_cc_java/4337 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/Server.java
// }
// private void listen(){
// Threa... | {
"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.... | (this.board.getFEN()+"\n\n"+this.board.getPGN()); | {} | {
"repository": "OrangoMango-Chess-c4bd8f5",
"file": "src/main/java/com/orangomango/chess/MainApplication.java",
"task_id": "project_cc_java/4337"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/orangomango/chess/MainApplication.java",
"groundtruth_start_lineno": 178,
"repository": "OrangoMango-Chess-c4bd8f5",
"right_context_start_lineno": 179,
"task_id": "project_cc_java/4337"
}
} |
cross_code_eval_java::project_cc_java/4331 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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
// this.whiteCaptured.add(piece);
// }
// this.fi... | {
"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.... | if (this.board.getBoard()[x][y].getColor() == this.viewPoint){ | {} | {
"repository": "OrangoMango-Chess-c4bd8f5",
"file": "src/main/java/com/orangomango/chess/MainApplication.java",
"task_id": "project_cc_java/4331"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/orangomango/chess/MainApplication.java",
"groundtruth_start_lineno": 114,
"repository": "OrangoMango-Chess-c4bd8f5",
"right_context_start_lineno": 115,
"task_id": "project_cc_java/4331"
}
} |
cross_code_eval_java::project_cc_java/4335 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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
// restoreBackup(backup);
// }
// }
//... | {
"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.... | out.println(this.board.getFEN()); | {} | {
"repository": "OrangoMango-Chess-c4bd8f5",
"file": "src/main/java/com/orangomango/chess/MainApplication.java",
"task_id": "project_cc_java/4335"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/orangomango/chess/MainApplication.java",
"groundtruth_start_lineno": 139,
"repository": "OrangoMango-Chess-c4bd8f5",
"right_context_start_lineno": 140,
"task_id": "project_cc_java/4335"
}
} |
cross_code_eval_java::project_cc_java/4330 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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
// return this.blackChecks;
// }
// }
// public P... | {
"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.... | (this.board.getBoard()[x][y] == null && !getPremoves().contains(not)){ | {} | {
"repository": "OrangoMango-Chess-c4bd8f5",
"file": "src/main/java/com/orangomango/chess/MainApplication.java",
"task_id": "project_cc_java/4330"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/orangomango/chess/MainApplication.java",
"groundtruth_start_lineno": 112,
"repository": "OrangoMango-Chess-c4bd8f5",
"right_context_start_lineno": 113,
"task_id": "project_cc_java/4330"
}
} |
cross_code_eval_java::project_cc_java/4332 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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 (captured != null){
// break;
// ... | {
"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.... | this.board.getBoard()[x][y] != null){ | {} | {
"repository": "OrangoMango-Chess-c4bd8f5",
"file": "src/main/java/com/orangomango/chess/MainApplication.java",
"task_id": "project_cc_java/4332"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/orangomango/chess/MainApplication.java",
"groundtruth_start_lineno": 127,
"repository": "OrangoMango-Chess-c4bd8f5",
"right_context_start_lineno": 128,
"task_id": "project_cc_java/4332"
}
} |
cross_code_eval_java::project_cc_java/4342 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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;\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.... | this.gameFinished = this.board.isGameFinished(); | {} | {
"repository": "OrangoMango-Chess-c4bd8f5",
"file": "src/main/java/com/orangomango/chess/MainApplication.java",
"task_id": "project_cc_java/4342"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/orangomango/chess/MainApplication.java",
"groundtruth_start_lineno": 208,
"repository": "OrangoMango-Chess-c4bd8f5",
"right_context_start_lineno": 209,
"task_id": "project_cc_java/4342"
}
} |
cross_code_eval_java::project_cc_java/4338 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/Server.java
// }
// private void listen(){
// Threa... | {
"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.... | )+"\n\n"+this.board.getPGN()); | {} | {
"repository": "OrangoMango-Chess-c4bd8f5",
"file": "src/main/java/com/orangomango/chess/MainApplication.java",
"task_id": "project_cc_java/4338"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/orangomango/chess/MainApplication.java",
"groundtruth_start_lineno": 178,
"repository": "OrangoMango-Chess-c4bd8f5",
"right_context_start_lineno": 179,
"task_id": "project_cc_java/4338"
}
} |
cross_code_eval_java::project_cc_java/4322 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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... | = Piece.getType(prom); | {} | {
"repository": "OrangoMango-Chess-c4bd8f5",
"file": "src/main/java/com/orangomango/chess/Board.java",
"task_id": "project_cc_java/4322"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/orangomango/chess/Board.java",
"groundtruth_start_lineno": 268,
"repository": "OrangoMango-Chess-c4bd8f5",
"right_context_start_lineno": 269,
"task_id": "project_cc_java/4322"
}
} |
cross_code_eval_java::project_cc_java/4333 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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 (captured != null){
// break;
// ... | {
"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.... | = this.board.getValidMoves(this.board.getBoard()[x][y]); | {} | {
"repository": "OrangoMango-Chess-c4bd8f5",
"file": "src/main/java/com/orangomango/chess/MainApplication.java",
"task_id": "project_cc_java/4333"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/orangomango/chess/MainApplication.java",
"groundtruth_start_lineno": 132,
"repository": "OrangoMango-Chess-c4bd8f5",
"right_context_start_lineno": 133,
"task_id": "project_cc_java/4333"
}
} |
cross_code_eval_java::project_cc_java/4324 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/Server.java
// }
// private void listen(){
// Threa... | {
"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.... | !this.client.isConnected()){ | {} | {
"repository": "OrangoMango-Chess-c4bd8f5",
"file": "src/main/java/com/orangomango/chess/MainApplication.java",
"task_id": "project_cc_java/4324"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/orangomango/chess/MainApplication.java",
"groundtruth_start_lineno": 188,
"repository": "OrangoMango-Chess-c4bd8f5",
"right_context_start_lineno": 189,
"task_id": "project_cc_java/4324"
}
} |
cross_code_eval_java::project_cc_java/4336 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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
// restoreBackup(backup);
// }
// }
//... | {
"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.... | println(this.board.getPGN()); | {} | {
"repository": "OrangoMango-Chess-c4bd8f5",
"file": "src/main/java/com/orangomango/chess/MainApplication.java",
"task_id": "project_cc_java/4336"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/orangomango/chess/MainApplication.java",
"groundtruth_start_lineno": 140,
"repository": "OrangoMango-Chess-c4bd8f5",
"right_context_start_lineno": 141,
"task_id": "project_cc_java/4336"
}
} |
cross_code_eval_java::project_cc_java/4339 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/Server.java
// }
// private void listen(){
// Threa... | {
"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.... | this.board.getGameTime(), this.board.getIncrementTime()); | {} | {
"repository": "OrangoMango-Chess-c4bd8f5",
"file": "src/main/java/com/orangomango/chess/MainApplication.java",
"task_id": "project_cc_java/4339"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/orangomango/chess/MainApplication.java",
"groundtruth_start_lineno": 186,
"repository": "OrangoMango-Chess-c4bd8f5",
"right_context_start_lineno": 187,
"task_id": "project_cc_java/4339"
}
} |
cross_code_eval_java::project_cc_java/4310 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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... | getAttackers(piece.getColor() == Color.WHITE ? this.whiteKing : this.blackKing) != null){ | {} | {
"repository": "OrangoMango-Chess-c4bd8f5",
"file": "src/main/java/com/orangomango/chess/Board.java",
"task_id": "project_cc_java/4310"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/orangomango/chess/Board.java",
"groundtruth_start_lineno": 222,
"repository": "OrangoMango-Chess-c4bd8f5",
"right_context_start_lineno": 223,
"task_id": "project_cc_java/4310"
}
} |
cross_code_eval_java::project_cc_java/4348 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/ucsal/springbook/controller/PendingController.java
// attributes.addFlash... | {
"prefix": "package com.ucsal.springbook.service;\n\nimport java.time.LocalDateTime;\nimport java.util.List;\nimport java.util.Optional;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.scheduling.annotation.Async;\nimport org.springframework.scheduling.annotation.EnableS... | if (booking.isApproved()) { | {} | {
"repository": "OseiasYC-SpringBook-76f673d",
"file": "src/main/java/com/ucsal/springbook/service/BookingService.java",
"task_id": "project_cc_java/4348"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/ucsal/springbook/service/BookingService.java",
"groundtruth_start_lineno": 45,
"repository": "OseiasYC-SpringBook-76f673d",
"right_context_start_lineno": 46,
"task_id": "project_cc_java/4348"
}
} |
cross_code_eval_java::project_cc_java/4265 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// oddrn-generator-java/src/main/java/org/opendatadiscovery/oddrn/JdbcProcessors.java
// retur... | {
"prefix": "package org.opendatadiscovery.oddrn;\n\nimport java.util.Arrays;\nimport java.util.stream.Collectors;\nimport lombok.Data;\nimport org.opendatadiscovery.oddrn.model.OddrnPath;\n\npublic class JdbcUrlParser {\n private static final String JDBC_PREFIX = \"jdbc:\";\n private static final String SEPARA... | return jdbcProcessors.path(driver, generatedHost, generatedDatabase); | {} | {
"repository": "opendatadiscovery-oddrn-specification-0d29a61",
"file": "oddrn-generator-java/src/main/java/org/opendatadiscovery/oddrn/JdbcUrlParser.java",
"task_id": "project_cc_java/4265"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "oddrn-generator-java/src/main/java/org/opendatadiscovery/oddrn/JdbcUrlParser.java",
"groundtruth_start_lineno": 76,
"repository": "opendatadiscovery-oddrn-specification-0d29a61",
"right_context_start_lineno": 77,
"task_id": "project_cc_java/4... |
cross_code_eval_java::project_cc_java/4360 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/ucsal/springbook/repository/BookingRepository.java
// @Transactional
// @Modi... | {
"prefix": "package com.ucsal.springbook.service;\n\nimport java.time.LocalDateTime;\nimport java.util.List;\nimport java.util.Optional;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.scheduling.annotation.Async;\nimport org.springframework.scheduling.annotation.EnableS... | bookingRepository.deleteByTimeFinalBefore(LocalDateTime.now()); | {} | {
"repository": "OseiasYC-SpringBook-76f673d",
"file": "src/main/java/com/ucsal/springbook/service/BookingService.java",
"task_id": "project_cc_java/4360"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/ucsal/springbook/service/BookingService.java",
"groundtruth_start_lineno": 74,
"repository": "OseiasYC-SpringBook-76f673d",
"right_context_start_lineno": 75,
"task_id": "project_cc_java/4360"
}
} |
cross_code_eval_java::project_cc_java/4353 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/ucsal/springbook/controller/HomeController.java
// bookingService.save(login,... | {
"prefix": "package com.ucsal.springbook.service;\n\nimport java.time.LocalDateTime;\nimport java.util.List;\nimport java.util.Optional;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.scheduling.annotation.Async;\nimport org.springframework.scheduling.annotation.EnableS... | booking.setTimeRequest(LocalDateTime.now()); | {} | {
"repository": "OseiasYC-SpringBook-76f673d",
"file": "src/main/java/com/ucsal/springbook/service/BookingService.java",
"task_id": "project_cc_java/4353"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/ucsal/springbook/service/BookingService.java",
"groundtruth_start_lineno": 85,
"repository": "OseiasYC-SpringBook-76f673d",
"right_context_start_lineno": 86,
"task_id": "project_cc_java/4353"
}
} |
cross_code_eval_java::project_cc_java/4352 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/ucsal/springbook/controller/PendingController.java
// attributes.addFlash... | {
"prefix": "package com.ucsal.springbook.service;\n\nimport java.time.LocalDateTime;\nimport java.util.List;\nimport java.util.Optional;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.scheduling.annotation.Async;\nimport org.springframework.scheduling.annotation.EnableS... | b.getId()); | {} | {
"repository": "OseiasYC-SpringBook-76f673d",
"file": "src/main/java/com/ucsal/springbook/service/BookingService.java",
"task_id": "project_cc_java/4352"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/ucsal/springbook/service/BookingService.java",
"groundtruth_start_lineno": 67,
"repository": "OseiasYC-SpringBook-76f673d",
"right_context_start_lineno": 68,
"task_id": "project_cc_java/4352"
}
} |
cross_code_eval_java::project_cc_java/4423 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/obotach/enhancer/EnhanceGUI.java
// }
// enhanceInventory.setItem(25,... | {
"prefix": "package com.obotach.enhancer.Shops;\n\nimport java.util.List;\n\nimport org.bukkit.Bukkit;\nimport org.bukkit.Material;\nimport org.bukkit.Sound;\nimport org.bukkit.command.Command;\nimport org.bukkit.command.CommandExecutor;\nimport org.bukkit.command.CommandSender;\nimport org.bukkit.entity.Player;\nim... | protectionRune = CustomItems.createProtectionRune(); | {} | {
"repository": "Ozeitis-Enhancing-7c0fc20",
"file": "src/main/java/com/obotach/enhancer/Shops/ProtectionRuneShop.java",
"task_id": "project_cc_java/4423"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/obotach/enhancer/Shops/ProtectionRuneShop.java",
"groundtruth_start_lineno": 103,
"repository": "Ozeitis-Enhancing-7c0fc20",
"right_context_start_lineno": 104,
"task_id": "project_cc_java/4423"
}
} |
cross_code_eval_java::project_cc_java/4366 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/ucsal/springbook/configurations/CustomHandler.java
// @Configuration
// public class ... | {
"prefix": "package com.ucsal.springbook.controller;\n\nimport java.util.List;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.security.core.annotation.AuthenticationPrincipal;\nimport org.springframework.security.core.userdetails.UserDetails;\nimport org.springframework... | bookingService.save(login, subject, lab, date, timeInit, timeFinal); | {} | {
"repository": "OseiasYC-SpringBook-76f673d",
"file": "src/main/java/com/ucsal/springbook/controller/HomeController.java",
"task_id": "project_cc_java/4366"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/ucsal/springbook/controller/HomeController.java",
"groundtruth_start_lineno": 53,
"repository": "OseiasYC-SpringBook-76f673d",
"right_context_start_lineno": 54,
"task_id": "project_cc_java/4366"
}
} |
cross_code_eval_java::project_cc_java/4421 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/obotach/enhancer/EnhanceGUI.java
// }
// enhanceInven... | {
"prefix": "package com.obotach.enhancer.Shops;\n\nimport java.util.List;\n\nimport org.bukkit.Bukkit;\nimport org.bukkit.Material;\nimport org.bukkit.Sound;\nimport org.bukkit.command.Command;\nimport org.bukkit.command.CommandExecutor;\nimport org.bukkit.command.CommandSender;\nimport org.bukkit.entity.Player;\nim... | ItemStack protectionRune = CustomItems.createProtectionRune(); | {} | {
"repository": "Ozeitis-Enhancing-7c0fc20",
"file": "src/main/java/com/obotach/enhancer/Shops/ProtectionRuneShop.java",
"task_id": "project_cc_java/4421"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/obotach/enhancer/Shops/ProtectionRuneShop.java",
"groundtruth_start_lineno": 58,
"repository": "Ozeitis-Enhancing-7c0fc20",
"right_context_start_lineno": 59,
"task_id": "project_cc_java/4421"
}
} |
cross_code_eval_java::project_cc_java/4362 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/ucsal/springbook/model/Booking.java
// public boolean isApproved() {
// r... | {
"prefix": "package com.ucsal.springbook.service;\n\nimport java.time.LocalDateTime;\nimport java.util.List;\nimport java.util.Optional;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.scheduling.annotation.Async;\nimport org.springframework.scheduling.annotation.EnableS... | (professorService.getProfessorByLogin(login)); | {} | {
"repository": "OseiasYC-SpringBook-76f673d",
"file": "src/main/java/com/ucsal/springbook/service/BookingService.java",
"task_id": "project_cc_java/4362"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/ucsal/springbook/service/BookingService.java",
"groundtruth_start_lineno": 82,
"repository": "OseiasYC-SpringBook-76f673d",
"right_context_start_lineno": 83,
"task_id": "project_cc_java/4362"
}
} |
cross_code_eval_java::project_cc_java/4349 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/ucsal/springbook/controller/PendingController.java
// attributes.addFlash... | {
"prefix": "package com.ucsal.springbook.service;\n\nimport java.time.LocalDateTime;\nimport java.util.List;\nimport java.util.Optional;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.scheduling.annotation.Async;\nimport org.springframework.scheduling.annotation.EnableS... | int count = bookingRepository.isBusy(b.getLab().getId(), b.getTimeInit(), b.getTimeFinal()); | {} | {
"repository": "OseiasYC-SpringBook-76f673d",
"file": "src/main/java/com/ucsal/springbook/service/BookingService.java",
"task_id": "project_cc_java/4349"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/ucsal/springbook/service/BookingService.java",
"groundtruth_start_lineno": 55,
"repository": "OseiasYC-SpringBook-76f673d",
"right_context_start_lineno": 56,
"task_id": "project_cc_java/4349"
}
} |
cross_code_eval_java::project_cc_java/4354 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/ucsal/springbook/controller/HomeController.java
// bookingService.save(login,... | {
"prefix": "package com.ucsal.springbook.service;\n\nimport java.time.LocalDateTime;\nimport java.util.List;\nimport java.util.Optional;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.scheduling.annotation.Async;\nimport org.springframework.scheduling.annotation.EnableS... | booking.setTimeInit(initialTime); | {} | {
"repository": "OseiasYC-SpringBook-76f673d",
"file": "src/main/java/com/ucsal/springbook/service/BookingService.java",
"task_id": "project_cc_java/4354"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/ucsal/springbook/service/BookingService.java",
"groundtruth_start_lineno": 86,
"repository": "OseiasYC-SpringBook-76f673d",
"right_context_start_lineno": 87,
"task_id": "project_cc_java/4354"
}
} |
cross_code_eval_java::project_cc_java/4427 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/obotach/enhancer/Listeners/EnhanceGUIListener.java
// } else {
// ... | {
"prefix": "package com.obotach.enhancer;\n\nimport java.util.List;\n\nimport org.bukkit.Bukkit;\nimport org.bukkit.ChatColor;\nimport org.bukkit.Material;\nimport org.bukkit.NamespacedKey;\nimport org.bukkit.configuration.ConfigurationSection;\nimport org.bukkit.enchantments.Enchantment;\nimport org.bukkit.entity.D... | .BOLD + "" + Utils.getEnhancementInfo(enhancementLevel).getEnhanceName()); | {} | {
"repository": "Ozeitis-Enhancing-7c0fc20",
"file": "src/main/java/com/obotach/enhancer/Utils.java",
"task_id": "project_cc_java/4427"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/obotach/enhancer/Utils.java",
"groundtruth_start_lineno": 51,
"repository": "Ozeitis-Enhancing-7c0fc20",
"right_context_start_lineno": 52,
"task_id": "project_cc_java/4427"
}
} |
cross_code_eval_java::project_cc_java/4351 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/ucsal/springbook/repository/BookingRepository.java
// @Transactional
// @Modi... | {
"prefix": "package com.ucsal.springbook.service;\n\nimport java.time.LocalDateTime;\nimport java.util.List;\nimport java.util.Optional;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.scheduling.annotation.Async;\nimport org.springframework.scheduling.annotation.EnableS... | ), b.getTimeInit(), b.getTimeFinal()); | {} | {
"repository": "OseiasYC-SpringBook-76f673d",
"file": "src/main/java/com/ucsal/springbook/service/BookingService.java",
"task_id": "project_cc_java/4351"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/ucsal/springbook/service/BookingService.java",
"groundtruth_start_lineno": 55,
"repository": "OseiasYC-SpringBook-76f673d",
"right_context_start_lineno": 56,
"task_id": "project_cc_java/4351"
}
} |
cross_code_eval_java::project_cc_java/4350 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/ucsal/springbook/repository/BookingRepository.java
// @Transactional
// @Modi... | {
"prefix": "package com.ucsal.springbook.service;\n\nimport java.time.LocalDateTime;\nimport java.util.List;\nimport java.util.Optional;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.scheduling.annotation.Async;\nimport org.springframework.scheduling.annotation.EnableS... | , b.getTimeInit(), b.getTimeFinal()); | {} | {
"repository": "OseiasYC-SpringBook-76f673d",
"file": "src/main/java/com/ucsal/springbook/service/BookingService.java",
"task_id": "project_cc_java/4350"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/ucsal/springbook/service/BookingService.java",
"groundtruth_start_lineno": 55,
"repository": "OseiasYC-SpringBook-76f673d",
"right_context_start_lineno": 56,
"task_id": "project_cc_java/4350"
}
} |
cross_code_eval_java::project_cc_java/4363 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/ucsal/springbook/model/Booking.java
// public boolean isApproved() {
// r... | {
"prefix": "package com.ucsal.springbook.service;\n\nimport java.time.LocalDateTime;\nimport java.util.List;\nimport java.util.Optional;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.scheduling.annotation.Async;\nimport org.springframework.scheduling.annotation.EnableS... | setSubject(subjectService.getSubject(subject)); | {} | {
"repository": "OseiasYC-SpringBook-76f673d",
"file": "src/main/java/com/ucsal/springbook/service/BookingService.java",
"task_id": "project_cc_java/4363"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/ucsal/springbook/service/BookingService.java",
"groundtruth_start_lineno": 83,
"repository": "OseiasYC-SpringBook-76f673d",
"right_context_start_lineno": 84,
"task_id": "project_cc_java/4363"
}
} |
cross_code_eval_java::project_cc_java/4408 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/Taint/TaintPath.java
// return true;
// }
// return false;
// }... | {
"prefix": "package Taint;\n\nimport Constant.Configs;\nimport Constant.Constants;\nimport Main.Decompiler;\nimport Main.Environment;\nimport Util.BlockUtil;\nimport Util.FunctionUtil;\nimport Util.PCodeUtil;\nimport com.google.gson.JsonArray;\nimport com.google.gson.JsonObject;\nimport ghidra.app.decompiler.Decompi... | (Environment.getProgram(), taintFunction); | {} | {
"repository": "OSUSecLab-QtRE-e0bcde6",
"file": "src/Taint/QTaintEngine.java",
"task_id": "project_cc_java/4408"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/Taint/QTaintEngine.java",
"groundtruth_start_lineno": 85,
"repository": "OSUSecLab-QtRE-e0bcde6",
"right_context_start_lineno": 86,
"task_id": "project_cc_java/4408"
}
} |
cross_code_eval_java::project_cc_java/4402 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/Util/FunctionUtil.java
// }
// else {
// params.append(p.ge... | {
"prefix": "package Main;\n\nimport Constant.Configs;\nimport Constant.Constants;\nimport Util.FileUtil;\nimport ghidra.GhidraJarApplicationLayout;\nimport ghidra.base.project.GhidraProject;\nimport ghidra.framework.Application;\nimport ghidra.framework.ApplicationConfiguration;\nimport ghidra.framework.HeadlessGhid... | analyzer.startAnalyzing(); | {} | {
"repository": "OSUSecLab-QtRE-e0bcde6",
"file": "src/Main/Main.java",
"task_id": "project_cc_java/4402"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/Main/Main.java",
"groundtruth_start_lineno": 115,
"repository": "OSUSecLab-QtRE-e0bcde6",
"right_context_start_lineno": 116,
"task_id": "project_cc_java/4402"
}
} |
cross_code_eval_java::project_cc_java/4414 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/Taint/InputExpSolver.java
// String inputBase = signalExp;
// switch (this.signalCl... | {
"prefix": "package Moc;\n\nimport Constant.Constants;\nimport Main.Decompiler;\nimport Main.Environment;\nimport Util.*;\nimport ghidra.app.decompiler.DecompileResults;\nimport ghidra.program.model.address.Address;\nimport ghidra.program.model.data.DataType;\nimport ghidra.program.model.listing.Function;\nimport gh... | func = FunctionUtil.getFunctionWith(Environment.getProgram(), connAdd); | {} | {
"repository": "OSUSecLab-QtRE-e0bcde6",
"file": "src/Moc/QtConnectSolver.java",
"task_id": "project_cc_java/4414"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/Moc/QtConnectSolver.java",
"groundtruth_start_lineno": 59,
"repository": "OSUSecLab-QtRE-e0bcde6",
"right_context_start_lineno": 60,
"task_id": "project_cc_java/4414"
}
} |
cross_code_eval_java::project_cc_java/4418 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/Taint/InputExpSolver.java
// if (dstExp != null)
// ... | {
"prefix": "package Moc;\n\nimport Constant.Constants;\nimport Main.Decompiler;\nimport Main.Environment;\nimport Util.*;\nimport ghidra.app.decompiler.DecompileResults;\nimport ghidra.program.model.address.Address;\nimport ghidra.program.model.data.DataType;\nimport ghidra.program.model.listing.Function;\nimport gh... | .decompileFuncNormalize(Environment.getProgram(), FunctionUtil.getFunctionWith(Environment.getProgram(), startAdd)); | {} | {
"repository": "OSUSecLab-QtRE-e0bcde6",
"file": "src/Moc/QtConnectSolver.java",
"task_id": "project_cc_java/4418"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/Moc/QtConnectSolver.java",
"groundtruth_start_lineno": 310,
"repository": "OSUSecLab-QtRE-e0bcde6",
"right_context_start_lineno": 311,
"task_id": "project_cc_java/4418"
}
} |
cross_code_eval_java::project_cc_java/4419 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/Taint/InputExpSolver.java
// if (dstExp != null)
// ... | {
"prefix": "package Moc;\n\nimport Constant.Constants;\nimport Main.Decompiler;\nimport Main.Environment;\nimport Util.*;\nimport ghidra.app.decompiler.DecompileResults;\nimport ghidra.program.model.address.Address;\nimport ghidra.program.model.data.DataType;\nimport ghidra.program.model.listing.Function;\nimport gh... | decompileFuncNormalize(Environment.getProgram(), FunctionUtil.getFunctionWith(Environment.getProgram(), startAdd)); | {} | {
"repository": "OSUSecLab-QtRE-e0bcde6",
"file": "src/Moc/QtConnectSolver.java",
"task_id": "project_cc_java/4419"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/Moc/QtConnectSolver.java",
"groundtruth_start_lineno": 310,
"repository": "OSUSecLab-QtRE-e0bcde6",
"right_context_start_lineno": 311,
"task_id": "project_cc_java/4419"
}
} |
cross_code_eval_java::project_cc_java/4401 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/Main/Analyzer.java
// /**
// * Entry function to solve Qt connect functions and resolve ca... | {
"prefix": "package Main;\n\nimport Constant.Configs;\nimport Constant.Constants;\nimport Util.FileUtil;\nimport ghidra.GhidraJarApplicationLayout;\nimport ghidra.base.project.GhidraProject;\nimport ghidra.framework.Application;\nimport ghidra.framework.ApplicationConfiguration;\nimport ghidra.framework.HeadlessGhid... | = FileUtil.readFromFile(configPath); | {} | {
"repository": "OSUSecLab-QtRE-e0bcde6",
"file": "src/Main/Main.java",
"task_id": "project_cc_java/4401"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/Main/Main.java",
"groundtruth_start_lineno": 129,
"repository": "OSUSecLab-QtRE-e0bcde6",
"right_context_start_lineno": 130,
"task_id": "project_cc_java/4401"
}
} |
cross_code_eval_java::project_cc_java/4274 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// quickjs-android/src/main/java/com/shiqi/quickjs/QuickJS.java
// /**
// * Creates a JSRuntime with ... | {
"prefix": "/*\n * Copyright 2019 Hippo Seven\n * Copyright 2023-Present Shiqi Mei\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICE... | jo.getProperty(name).cast(JSFunction.class); | {} | {
"repository": "OpenQuickJS-quickjs-android-0319d76",
"file": "quickjs-android/src/main/java/com/shiqi/quickjs/InterfaceTypeAdapter.java",
"task_id": "project_cc_java/4274"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "quickjs-android/src/main/java/com/shiqi/quickjs/InterfaceTypeAdapter.java",
"groundtruth_start_lineno": 139,
"repository": "OpenQuickJS-quickjs-android-0319d76",
"right_context_start_lineno": 140,
"task_id": "project_cc_java/4274"
}
} |
cross_code_eval_java::project_cc_java/4410 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/Moc/QtConnectSolver.java
// Address srcAddr = inputs[0].getAddress(... | {
"prefix": "package Taint;\n\nimport Constant.Configs;\nimport Constant.Constants;\nimport Main.Decompiler;\nimport Main.Environment;\nimport Util.BlockUtil;\nimport Util.FunctionUtil;\nimport Util.PCodeUtil;\nimport com.google.gson.JsonArray;\nimport com.google.gson.JsonObject;\nimport ghidra.app.decompiler.Decompi... | DecompileResults decompileResults = Decompiler.decompileFuncRegister(Environment.getProgram(), currentFunc); | {} | {
"repository": "OSUSecLab-QtRE-e0bcde6",
"file": "src/Taint/QTaintEngine.java",
"task_id": "project_cc_java/4410"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/Taint/QTaintEngine.java",
"groundtruth_start_lineno": 115,
"repository": "OSUSecLab-QtRE-e0bcde6",
"right_context_start_lineno": 116,
"task_id": "project_cc_java/4410"
}
} |
cross_code_eval_java::project_cc_java/4428 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/obotach/enhancer/Listeners/EnhanceGUIListener.java
// } else {
// ... | {
"prefix": "package com.obotach.enhancer;\n\nimport java.util.List;\n\nimport org.bukkit.Bukkit;\nimport org.bukkit.ChatColor;\nimport org.bukkit.Material;\nimport org.bukkit.NamespacedKey;\nimport org.bukkit.configuration.ConfigurationSection;\nimport org.bukkit.enchantments.Enchantment;\nimport org.bukkit.entity.D... | enhancementLevel).getEnhanceColor() + "+" + Utils.getEnhancementInfo(enhancementLevel).getEnhanceName()); | {} | {
"repository": "Ozeitis-Enhancing-7c0fc20",
"file": "src/main/java/com/obotach/enhancer/Utils.java",
"task_id": "project_cc_java/4428"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/obotach/enhancer/Utils.java",
"groundtruth_start_lineno": 53,
"repository": "Ozeitis-Enhancing-7c0fc20",
"right_context_start_lineno": 54,
"task_id": "project_cc_java/4428"
}
} |
cross_code_eval_java::project_cc_java/4413 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/Taint/TaintPath.java
// return true;
// }
// return false;
// }... | {
"prefix": "package Taint;\n\nimport Constant.Configs;\nimport Constant.Constants;\nimport Main.Decompiler;\nimport Main.Environment;\nimport Util.BlockUtil;\nimport Util.FunctionUtil;\nimport Util.PCodeUtil;\nimport com.google.gson.JsonArray;\nimport com.google.gson.JsonObject;\nimport ghidra.app.decompiler.Decompi... | getFunctionWith(Environment.getProgram(), inputs[0].getAddress()); | {} | {
"repository": "OSUSecLab-QtRE-e0bcde6",
"file": "src/Taint/QTaintEngine.java",
"task_id": "project_cc_java/4413"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/Taint/QTaintEngine.java",
"groundtruth_start_lineno": 194,
"repository": "OSUSecLab-QtRE-e0bcde6",
"right_context_start_lineno": 195,
"task_id": "project_cc_java/4413"
}
} |
cross_code_eval_java::project_cc_java/4432 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/obotach/enhancer/Commands/EnhanceItemCommand.java
// }
// if (level <... | {
"prefix": "package com.obotach.enhancer.Commands;\n\nimport org.bukkit.Bukkit;\nimport org.bukkit.command.Command;\nimport org.bukkit.command.CommandExecutor;\nimport org.bukkit.command.CommandSender;\nimport org.bukkit.entity.Player;\nimport org.bukkit.inventory.ItemStack;\n\nimport com.obotach.enhancer.CustomItem... | CustomItems.createBlackStoneWeapon(); | {} | {
"repository": "Ozeitis-Enhancing-7c0fc20",
"file": "src/main/java/com/obotach/enhancer/Commands/GiveItemsCommand.java",
"task_id": "project_cc_java/4432"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/obotach/enhancer/Commands/GiveItemsCommand.java",
"groundtruth_start_lineno": 53,
"repository": "Ozeitis-Enhancing-7c0fc20",
"right_context_start_lineno": 54,
"task_id": "project_cc_java/4432"
}
} |
cross_code_eval_java::project_cc_java/4273 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// quickjs-android/src/main/java/com/shiqi/quickjs/JSContext.java
// /**
// * Create a JavaScript fun... | {
"prefix": "/*\n * Copyright 2019 Hippo Seven\n * Copyright 2023-Present Shiqi Mei\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICE... | jo.getJavaObject(); | {} | {
"repository": "OpenQuickJS-quickjs-android-0319d76",
"file": "quickjs-android/src/main/java/com/shiqi/quickjs/InterfaceTypeAdapter.java",
"task_id": "project_cc_java/4273"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "quickjs-android/src/main/java/com/shiqi/quickjs/InterfaceTypeAdapter.java",
"groundtruth_start_lineno": 108,
"repository": "OpenQuickJS-quickjs-android-0319d76",
"right_context_start_lineno": 109,
"task_id": "project_cc_java/4273"
}
} |
cross_code_eval_java::project_cc_java/4443 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/obotach/enhancer/Listeners/BlockBreakListener.java
// // 1% chance
// ... | {
"prefix": "package com.obotach.enhancer.Listeners;\n\nimport org.bukkit.configuration.ConfigurationSection;\nimport org.bukkit.configuration.file.FileConfiguration;\nimport org.bukkit.entity.*;\nimport org.bukkit.event.EventHandler;\nimport org.bukkit.event.Listener;\nimport org.bukkit.event.entity.EntityDeathEvent... | protectionStone = random.nextBoolean() ? CustomItems.createProtectionRune() : CustomItems.createProtectionRune(); | {} | {
"repository": "Ozeitis-Enhancing-7c0fc20",
"file": "src/main/java/com/obotach/enhancer/Listeners/MobDeathListener.java",
"task_id": "project_cc_java/4443"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/obotach/enhancer/Listeners/MobDeathListener.java",
"groundtruth_start_lineno": 40,
"repository": "Ozeitis-Enhancing-7c0fc20",
"right_context_start_lineno": 41,
"task_id": "project_cc_java/4443"
}
} |
cross_code_eval_java::project_cc_java/4434 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/obotach/enhancer/Shops/ProtectionRuneShop.java
// protectionRunes.set... | {
"prefix": "package com.obotach.enhancer.Commands;\n\nimport org.bukkit.Bukkit;\nimport org.bukkit.command.Command;\nimport org.bukkit.command.CommandExecutor;\nimport org.bukkit.command.CommandSender;\nimport org.bukkit.entity.Player;\nimport org.bukkit.inventory.ItemStack;\n\nimport com.obotach.enhancer.CustomItem... | CustomItems.createConcentratedMagicalBlackStoneWeapon(); | {} | {
"repository": "Ozeitis-Enhancing-7c0fc20",
"file": "src/main/java/com/obotach/enhancer/Commands/GiveItemsCommand.java",
"task_id": "project_cc_java/4434"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/obotach/enhancer/Commands/GiveItemsCommand.java",
"groundtruth_start_lineno": 57,
"repository": "Ozeitis-Enhancing-7c0fc20",
"right_context_start_lineno": 58,
"task_id": "project_cc_java/4434"
}
} |
cross_code_eval_java::project_cc_java/4436 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/obotach/enhancer/Listeners/MobDeathListener.java
// entity.getWorld().dro... | {
"prefix": "package com.obotach.enhancer.Commands;\n\nimport org.bukkit.Bukkit;\nimport org.bukkit.command.Command;\nimport org.bukkit.command.CommandExecutor;\nimport org.bukkit.command.CommandSender;\nimport org.bukkit.entity.Player;\nimport org.bukkit.inventory.ItemStack;\n\nimport com.obotach.enhancer.CustomItem... | itemToGive = CustomItems.createProtectionRune(); | {} | {
"repository": "Ozeitis-Enhancing-7c0fc20",
"file": "src/main/java/com/obotach/enhancer/Commands/GiveItemsCommand.java",
"task_id": "project_cc_java/4436"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/obotach/enhancer/Commands/GiveItemsCommand.java",
"groundtruth_start_lineno": 61,
"repository": "Ozeitis-Enhancing-7c0fc20",
"right_context_start_lineno": 62,
"task_id": "project_cc_java/4436"
}
} |
cross_code_eval_java::project_cc_java/4440 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/obotach/enhancer/Listeners/BlockBreakListener.java
// // 1% chance
// ... | {
"prefix": "package com.obotach.enhancer.Listeners;\n\nimport org.bukkit.configuration.ConfigurationSection;\nimport org.bukkit.configuration.file.FileConfiguration;\nimport org.bukkit.entity.*;\nimport org.bukkit.event.EventHandler;\nimport org.bukkit.event.Listener;\nimport org.bukkit.event.entity.EntityDeathEvent... | ? CustomItems.createConcentratedMagicalBlackStoneWeapon() : CustomItems.createConcentratedMagicalBlackStoneArmor(); | {} | {
"repository": "Ozeitis-Enhancing-7c0fc20",
"file": "src/main/java/com/obotach/enhancer/Listeners/MobDeathListener.java",
"task_id": "project_cc_java/4440"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/obotach/enhancer/Listeners/MobDeathListener.java",
"groundtruth_start_lineno": 36,
"repository": "Ozeitis-Enhancing-7c0fc20",
"right_context_start_lineno": 37,
"task_id": "project_cc_java/4440"
}
} |
cross_code_eval_java::project_cc_java/4445 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/obotach/enhancer/EnhanceGUI.java
// public static @Nullable ItemStack createMaxEn... | {
"prefix": "package com.obotach.enhancer.Listeners;\n\nimport net.kyori.adventure.text.Component;\nimport net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer;\n\nimport java.util.HashMap;\nimport java.util.Map;\nimport java.util.Random;\nimport java.util.UUID;\n\nimport org.bukkit.Bukkit;\nimport or... | 25, enhanceGUI.createEnhanceButton()); | {} | {
"repository": "Ozeitis-Enhancing-7c0fc20",
"file": "src/main/java/com/obotach/enhancer/Listeners/EnhanceGUIListener.java",
"task_id": "project_cc_java/4445"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/obotach/enhancer/Listeners/EnhanceGUIListener.java",
"groundtruth_start_lineno": 171,
"repository": "Ozeitis-Enhancing-7c0fc20",
"right_context_start_lineno": 172,
"task_id": "project_cc_java/4445"
}
} |
cross_code_eval_java::project_cc_java/4442 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/obotach/enhancer/Listeners/BlockBreakListener.java
// // 1% chance
// ... | {
"prefix": "package com.obotach.enhancer.Listeners;\n\nimport org.bukkit.configuration.ConfigurationSection;\nimport org.bukkit.configuration.file.FileConfiguration;\nimport org.bukkit.entity.*;\nimport org.bukkit.event.EventHandler;\nimport org.bukkit.event.Listener;\nimport org.bukkit.event.entity.EntityDeathEvent... | .nextBoolean() ? CustomItems.createProtectionRune() : CustomItems.createProtectionRune(); | {} | {
"repository": "Ozeitis-Enhancing-7c0fc20",
"file": "src/main/java/com/obotach/enhancer/Listeners/MobDeathListener.java",
"task_id": "project_cc_java/4442"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/obotach/enhancer/Listeners/MobDeathListener.java",
"groundtruth_start_lineno": 40,
"repository": "Ozeitis-Enhancing-7c0fc20",
"right_context_start_lineno": 41,
"task_id": "project_cc_java/4442"
}
} |
cross_code_eval_java::project_cc_java/4469 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/paulgutv/currencyconverter/model/InputBox.java
// label1.setWrapText(true);
/... | {
"prefix": "package com.paulgutv.currencyconverter.controller;\n\nimport com.paulgutv.currencyconverter.model.InputBox;\nimport javafx.fxml.FXML;\nimport javafx.fxml.Initializable;\nimport javafx.scene.layout.VBox;\n\nimport java.net.URL;\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.Resourc... | add(inputBox1.getVBox()); | {} | {
"repository": "paulgutv-currency-converter-d95cf08",
"file": "src/main/java/com/paulgutv/currencyconverter/controller/MainController.java",
"task_id": "project_cc_java/4469"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/paulgutv/currencyconverter/controller/MainController.java",
"groundtruth_start_lineno": 38,
"repository": "paulgutv-currency-converter-d95cf08",
"right_context_start_lineno": 39,
"task_id": "project_cc_java/4469"
}
} |
cross_code_eval_java::project_cc_java/4441 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/obotach/enhancer/Listeners/BlockBreakListener.java
// // 1% chance
// ... | {
"prefix": "package com.obotach.enhancer.Listeners;\n\nimport org.bukkit.configuration.ConfigurationSection;\nimport org.bukkit.configuration.file.FileConfiguration;\nimport org.bukkit.entity.*;\nimport org.bukkit.event.EventHandler;\nimport org.bukkit.event.Listener;\nimport org.bukkit.event.entity.EntityDeathEvent... | nextBoolean() ? CustomItems.createConcentratedMagicalBlackStoneWeapon() : CustomItems.createConcentratedMagicalBlackStoneArmor(); | {} | {
"repository": "Ozeitis-Enhancing-7c0fc20",
"file": "src/main/java/com/obotach/enhancer/Listeners/MobDeathListener.java",
"task_id": "project_cc_java/4441"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/obotach/enhancer/Listeners/MobDeathListener.java",
"groundtruth_start_lineno": 36,
"repository": "Ozeitis-Enhancing-7c0fc20",
"right_context_start_lineno": 37,
"task_id": "project_cc_java/4441"
}
} |
cross_code_eval_java::project_cc_java/4475 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/paulgutv/currencyconverter/model/InputBox.java
// hBox.getChildren().add(... | {
"prefix": "package com.paulgutv.currencyconverter.controller;\n\nimport com.paulgutv.currencyconverter.model.InputBox;\nimport javafx.fxml.FXML;\nimport javafx.fxml.Initializable;\nimport javafx.scene.layout.VBox;\n\nimport java.net.URL;\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.Resourc... | inputBox1.setInitialConversion(false); | {} | {
"repository": "paulgutv-currency-converter-d95cf08",
"file": "src/main/java/com/paulgutv/currencyconverter/controller/MainController.java",
"task_id": "project_cc_java/4475"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/paulgutv/currencyconverter/controller/MainController.java",
"groundtruth_start_lineno": 51,
"repository": "paulgutv-currency-converter-d95cf08",
"right_context_start_lineno": 52,
"task_id": "project_cc_java/4475"
}
} |
cross_code_eval_java::project_cc_java/4474 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/paulgutv/currencyconverter/model/InputBox.java
// label1.setWrapText(true);
/... | {
"prefix": "package com.paulgutv.currencyconverter.controller;\n\nimport com.paulgutv.currencyconverter.model.InputBox;\nimport javafx.fxml.FXML;\nimport javafx.fxml.Initializable;\nimport javafx.scene.layout.VBox;\n\nimport java.net.URL;\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.Resourc... | inputBox1.startConversion(); | {} | {
"repository": "paulgutv-currency-converter-d95cf08",
"file": "src/main/java/com/paulgutv/currencyconverter/controller/MainController.java",
"task_id": "project_cc_java/4474"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/paulgutv/currencyconverter/controller/MainController.java",
"groundtruth_start_lineno": 50,
"repository": "paulgutv-currency-converter-d95cf08",
"right_context_start_lineno": 51,
"task_id": "project_cc_java/4474"
}
} |
cross_code_eval_java::project_cc_java/4473 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/paulgutv/currencyconverter/model/InputBox.java
// label1.setWrapText(true);
/... | {
"prefix": "package com.paulgutv.currencyconverter.controller;\n\nimport com.paulgutv.currencyconverter.model.InputBox;\nimport javafx.fxml.FXML;\nimport javafx.fxml.Initializable;\nimport javafx.scene.layout.VBox;\n\nimport java.net.URL;\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.Resourc... | inputBox1.setInitialConversion(true); | {} | {
"repository": "paulgutv-currency-converter-d95cf08",
"file": "src/main/java/com/paulgutv/currencyconverter/controller/MainController.java",
"task_id": "project_cc_java/4473"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/paulgutv/currencyconverter/controller/MainController.java",
"groundtruth_start_lineno": 49,
"repository": "paulgutv-currency-converter-d95cf08",
"right_context_start_lineno": 50,
"task_id": "project_cc_java/4473"
}
} |
cross_code_eval_java::project_cc_java/4383 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// professor-service/src/main/java/com/uu/professorservice/interfaces/ProfessorRepository.java
// @Que... | {
"prefix": "package com.uu.professorservice.controllers;\n\nimport java.util.List;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.web.bind.annotation.DeleteMapping;\nimport org.springframework.web.bind.annotation.GetMapping;\nimport org.springframework.web.bind.annotati... | professorService.deleteById(id); | {} | {
"repository": "OseiasYC-SpringBook-v3-dcc7eb1",
"file": "professor-service/src/main/java/com/uu/professorservice/controllers/ProfessorController.java",
"task_id": "project_cc_java/4383"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "professor-service/src/main/java/com/uu/professorservice/controllers/ProfessorController.java",
"groundtruth_start_lineno": 41,
"repository": "OseiasYC-SpringBook-v3-dcc7eb1",
"right_context_start_lineno": 42,
"task_id": "project_cc_java/4383"... |
cross_code_eval_java::project_cc_java/4398 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// booking-service/src/main/java/com/uu/bookingservice/controllers/BookingController.java
// @GetMappi... | {
"prefix": "package com.uu.bookingservice.services;\n\nimport java.time.LocalDateTime;\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.Map;\nimport java.util.Optional;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.http.HttpStatus;\nimport org.spr... | List<Booking> bookings = bookingRepository.findByProfessor(id); | {} | {
"repository": "OseiasYC-SpringBook-v3-dcc7eb1",
"file": "booking-service/src/main/java/com/uu/bookingservice/services/BookingService.java",
"task_id": "project_cc_java/4398"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "booking-service/src/main/java/com/uu/bookingservice/services/BookingService.java",
"groundtruth_start_lineno": 97,
"repository": "OseiasYC-SpringBook-v3-dcc7eb1",
"right_context_start_lineno": 98,
"task_id": "project_cc_java/4398"
}
} |
cross_code_eval_java::project_cc_java/4396 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// booking-service/src/main/java/com/uu/bookingservice/interfaces/BookingRepository.java
// List<Booki... | {
"prefix": "package com.uu.bookingservice.services;\n\nimport java.time.LocalDateTime;\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.Map;\nimport java.util.Optional;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.http.HttpStatus;\nimport org.spr... | bookingRepository.approve(id); | {} | {
"repository": "OseiasYC-SpringBook-v3-dcc7eb1",
"file": "booking-service/src/main/java/com/uu/bookingservice/services/BookingService.java",
"task_id": "project_cc_java/4396"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "booking-service/src/main/java/com/uu/bookingservice/services/BookingService.java",
"groundtruth_start_lineno": 85,
"repository": "OseiasYC-SpringBook-v3-dcc7eb1",
"right_context_start_lineno": 86,
"task_id": "project_cc_java/4396"
}
} |
cross_code_eval_java::project_cc_java/4476 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/paulgutv/currencyconverter/model/InputBox.java
// hBox.getChildren().add(... | {
"prefix": "package com.paulgutv.currencyconverter.controller;\n\nimport com.paulgutv.currencyconverter.model.InputBox;\nimport javafx.fxml.FXML;\nimport javafx.fxml.Initializable;\nimport javafx.scene.layout.VBox;\n\nimport java.net.URL;\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.Resourc... | InputBox.setBaseIndex(1); | {} | {
"repository": "paulgutv-currency-converter-d95cf08",
"file": "src/main/java/com/paulgutv/currencyconverter/controller/MainController.java",
"task_id": "project_cc_java/4476"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/paulgutv/currencyconverter/controller/MainController.java",
"groundtruth_start_lineno": 52,
"repository": "paulgutv-currency-converter-d95cf08",
"right_context_start_lineno": 53,
"task_id": "project_cc_java/4476"
}
} |
cross_code_eval_java::project_cc_java/4478 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/paulgutv/currencyconverter/model/InputBox.java
// comboBox = new ComboBox<>()... | {
"prefix": "package com.paulgutv.currencyconverter.controller;\n\nimport com.paulgutv.currencyconverter.model.InputBox;\nimport javafx.fxml.FXML;\nimport javafx.fxml.Initializable;\nimport javafx.scene.layout.VBox;\n\nimport java.net.URL;\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.Resourc... | newComponent.getVBox().setId(String.valueOf(counter)); | {} | {
"repository": "paulgutv-currency-converter-d95cf08",
"file": "src/main/java/com/paulgutv/currencyconverter/controller/MainController.java",
"task_id": "project_cc_java/4478"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/paulgutv/currencyconverter/controller/MainController.java",
"groundtruth_start_lineno": 60,
"repository": "paulgutv-currency-converter-d95cf08",
"right_context_start_lineno": 61,
"task_id": "project_cc_java/4478"
}
} |
cross_code_eval_java::project_cc_java/4489 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/paulgutv/currencyconverter/Updater.java
// protected void succeeded() {
/... | {
"prefix": "package com.paulgutv.currencyconverter.model;\n\nimport javafx.application.Platform;\nimport javafx.scene.paint.Color;\n\nimport java.io.FileInputStream;\nimport java.io.FileOutputStream;\nimport java.io.IOException;\nimport java.io.OutputStream;\nimport java.time.LocalDateTime;\nimport java.time.format.... | String exchangeRate = conversion.getExchangeRate(); | {} | {
"repository": "paulgutv-currency-converter-d95cf08",
"file": "src/main/java/com/paulgutv/currencyconverter/model/ConversionTask.java",
"task_id": "project_cc_java/4489"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/paulgutv/currencyconverter/model/ConversionTask.java",
"groundtruth_start_lineno": 41,
"repository": "paulgutv-currency-converter-d95cf08",
"right_context_start_lineno": 42,
"task_id": "project_cc_java/4489"
}
} |
cross_code_eval_java::project_cc_java/4487 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/paulgutv/currencyconverter/model/Update.java
// String rutaSegundoJar = S... | {
"prefix": "package com.paulgutv.currencyconverter.model;\n\nimport okhttp3.*;\nimport org.json.JSONObject;\n\nimport java.io.IOException;\n\npublic class Conversion {\n static String currencyInput;\n static String currencyOutput;\n private String exchangeRate;\n\n public String convert(String amount, St... | Errors.noConexion(); | {} | {
"repository": "paulgutv-currency-converter-d95cf08",
"file": "src/main/java/com/paulgutv/currencyconverter/model/Conversion.java",
"task_id": "project_cc_java/4487"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/paulgutv/currencyconverter/model/Conversion.java",
"groundtruth_start_lineno": 31,
"repository": "paulgutv-currency-converter-d95cf08",
"right_context_start_lineno": 32,
"task_id": "project_cc_java/4487"
}
} |
cross_code_eval_java::project_cc_java/4491 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/paulgutv/currencyconverter/Updater.java
// protected void succeeded() {
/... | {
"prefix": "package com.paulgutv.currencyconverter.model;\n\nimport javafx.application.Platform;\nimport javafx.scene.paint.Color;\n\nimport java.io.FileInputStream;\nimport java.io.FileOutputStream;\nimport java.io.IOException;\nimport java.io.OutputStream;\nimport java.time.LocalDateTime;\nimport java.time.format.... | inputBox.getComboBox().getValue()); | {} | {
"repository": "paulgutv-currency-converter-d95cf08",
"file": "src/main/java/com/paulgutv/currencyconverter/model/ConversionTask.java",
"task_id": "project_cc_java/4491"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/paulgutv/currencyconverter/model/ConversionTask.java",
"groundtruth_start_lineno": 40,
"repository": "paulgutv-currency-converter-d95cf08",
"right_context_start_lineno": 41,
"task_id": "project_cc_java/4491"
}
} |
cross_code_eval_java::project_cc_java/4490 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/paulgutv/currencyconverter/model/InputBox.java
// }
// }
// public Te... | {
"prefix": "package com.paulgutv.currencyconverter.model;\n\nimport javafx.application.Platform;\nimport javafx.scene.paint.Color;\n\nimport java.io.FileInputStream;\nimport java.io.FileOutputStream;\nimport java.io.IOException;\nimport java.io.OutputStream;\nimport java.time.LocalDateTime;\nimport java.time.format.... | String resultOffline = conversion.convertOffline(exchangeRateOffline, baseTextField); | {} | {
"repository": "paulgutv-currency-converter-d95cf08",
"file": "src/main/java/com/paulgutv/currencyconverter/model/ConversionTask.java",
"task_id": "project_cc_java/4490"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/paulgutv/currencyconverter/model/ConversionTask.java",
"groundtruth_start_lineno": 65,
"repository": "paulgutv-currency-converter-d95cf08",
"right_context_start_lineno": 66,
"task_id": "project_cc_java/4490"
}
} |
cross_code_eval_java::project_cc_java/4496 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/paulgutv/currencyconverter/model/InputBox.java
// }
// }
// public Te... | {
"prefix": "package com.paulgutv.currencyconverter.model;\n\nimport javafx.application.Platform;\nimport javafx.scene.paint.Color;\n\nimport java.io.FileInputStream;\nimport java.io.FileOutputStream;\nimport java.io.IOException;\nimport java.io.OutputStream;\nimport java.time.LocalDateTime;\nimport java.time.format.... | inputBox.setTextField(resultOffline); | {} | {
"repository": "paulgutv-currency-converter-d95cf08",
"file": "src/main/java/com/paulgutv/currencyconverter/model/ConversionTask.java",
"task_id": "project_cc_java/4496"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/paulgutv/currencyconverter/model/ConversionTask.java",
"groundtruth_start_lineno": 67,
"repository": "paulgutv-currency-converter-d95cf08",
"right_context_start_lineno": 68,
"task_id": "project_cc_java/4496"
}
} |
cross_code_eval_java::project_cc_java/4495 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/paulgutv/currencyconverter/model/InputBox.java
// }
// }
// public Te... | {
"prefix": "package com.paulgutv.currencyconverter.model;\n\nimport javafx.application.Platform;\nimport javafx.scene.paint.Color;\n\nimport java.io.FileInputStream;\nimport java.io.FileOutputStream;\nimport java.io.IOException;\nimport java.io.OutputStream;\nimport java.time.LocalDateTime;\nimport java.time.format.... | startsWith(baseComboBox) && key.toString().endsWith(inputBox.getComboBox().getValue())) { | {} | {
"repository": "paulgutv-currency-converter-d95cf08",
"file": "src/main/java/com/paulgutv/currencyconverter/model/ConversionTask.java",
"task_id": "project_cc_java/4495"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/paulgutv/currencyconverter/model/ConversionTask.java",
"groundtruth_start_lineno": 61,
"repository": "paulgutv-currency-converter-d95cf08",
"right_context_start_lineno": 62,
"task_id": "project_cc_java/4495"
}
} |
cross_code_eval_java::project_cc_java/4494 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/paulgutv/currencyconverter/model/InputBox.java
// }
// }
// public Te... | {
"prefix": "package com.paulgutv.currencyconverter.model;\n\nimport javafx.application.Platform;\nimport javafx.scene.paint.Color;\n\nimport java.io.FileInputStream;\nimport java.io.FileOutputStream;\nimport java.io.IOException;\nimport java.io.OutputStream;\nimport java.time.LocalDateTime;\nimport java.time.format.... | inputBox.getComboBox().getValue() + " : " + exchangeRate); | {} | {
"repository": "paulgutv-currency-converter-d95cf08",
"file": "src/main/java/com/paulgutv/currencyconverter/model/ConversionTask.java",
"task_id": "project_cc_java/4494"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/paulgutv/currencyconverter/model/ConversionTask.java",
"groundtruth_start_lineno": 55,
"repository": "paulgutv-currency-converter-d95cf08",
"right_context_start_lineno": 56,
"task_id": "project_cc_java/4494"
}
} |
cross_code_eval_java::project_cc_java/4497 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/paulgutv/currencyconverter/model/InputBox.java
// }
// }
// public Te... | {
"prefix": "package com.paulgutv.currencyconverter.model;\n\nimport javafx.application.Platform;\nimport javafx.scene.paint.Color;\n\nimport java.io.FileInputStream;\nimport java.io.FileOutputStream;\nimport java.io.IOException;\nimport java.io.OutputStream;\nimport java.time.LocalDateTime;\nimport java.time.format.... | inputBox.getLabel2().setTextFill(Color.RED); | {} | {
"repository": "paulgutv-currency-converter-d95cf08",
"file": "src/main/java/com/paulgutv/currencyconverter/model/ConversionTask.java",
"task_id": "project_cc_java/4497"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/paulgutv/currencyconverter/model/ConversionTask.java",
"groundtruth_start_lineno": 68,
"repository": "paulgutv-currency-converter-d95cf08",
"right_context_start_lineno": 69,
"task_id": "project_cc_java/4497"
}
} |
cross_code_eval_java::project_cc_java/4493 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/paulgutv/currencyconverter/model/Update.java
// String rutaSegundoJar = S... | {
"prefix": "package com.paulgutv.currencyconverter.model;\n\nimport javafx.application.Platform;\nimport javafx.scene.paint.Color;\n\nimport java.io.FileInputStream;\nimport java.io.FileOutputStream;\nimport java.io.IOException;\nimport java.io.OutputStream;\nimport java.time.LocalDateTime;\nimport java.time.format.... | inputBox.setTextField(result); | {} | {
"repository": "paulgutv-currency-converter-d95cf08",
"file": "src/main/java/com/paulgutv/currencyconverter/model/ConversionTask.java",
"task_id": "project_cc_java/4493"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/paulgutv/currencyconverter/model/ConversionTask.java",
"groundtruth_start_lineno": 54,
"repository": "paulgutv-currency-converter-d95cf08",
"right_context_start_lineno": 55,
"task_id": "project_cc_java/4493"
}
} |
cross_code_eval_java::project_cc_java/4498 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/paulgutv/currencyconverter/model/InputBox.java
// }
// }
// public Te... | {
"prefix": "package com.paulgutv.currencyconverter.model;\n\nimport javafx.application.Platform;\nimport javafx.scene.paint.Color;\n\nimport java.io.FileInputStream;\nimport java.io.FileOutputStream;\nimport java.io.IOException;\nimport java.io.OutputStream;\nimport java.time.LocalDateTime;\nimport java.time.format.... | inputBox.setLabel2(" | Tipo de cambio: " + exchangeRateOffline + " (" + date + " ) ⚠"); | {} | {
"repository": "paulgutv-currency-converter-d95cf08",
"file": "src/main/java/com/paulgutv/currencyconverter/model/ConversionTask.java",
"task_id": "project_cc_java/4498"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/paulgutv/currencyconverter/model/ConversionTask.java",
"groundtruth_start_lineno": 69,
"repository": "paulgutv-currency-converter-d95cf08",
"right_context_start_lineno": 70,
"task_id": "project_cc_java/4498"
}
} |
cross_code_eval_java::project_cc_java/4501 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/paulgutv/currencyconverter/model/InputBox.java
// }
// }
// public Te... | {
"prefix": "package com.paulgutv.currencyconverter.model;\n\nimport javafx.application.Platform;\nimport javafx.scene.paint.Color;\n\nimport java.io.FileInputStream;\nimport java.io.FileOutputStream;\nimport java.io.IOException;\nimport java.io.OutputStream;\nimport java.time.LocalDateTime;\nimport java.time.format.... | inputBox.setLabel2(" | No hay datos guardados ⚠"); | {} | {
"repository": "paulgutv-currency-converter-d95cf08",
"file": "src/main/java/com/paulgutv/currencyconverter/model/ConversionTask.java",
"task_id": "project_cc_java/4501"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/paulgutv/currencyconverter/model/ConversionTask.java",
"groundtruth_start_lineno": 75,
"repository": "paulgutv-currency-converter-d95cf08",
"right_context_start_lineno": 76,
"task_id": "project_cc_java/4501"
}
} |
cross_code_eval_java::project_cc_java/4503 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/paulgutv/currencyconverter/model/Conversion.java
// return String.format("%.2... | {
"prefix": "package com.paulgutv.currencyconverter.model;\n\nimport com.paulgutv.currencyconverter.controller.MainController;\nimport javafx.application.Platform;\nimport javafx.geometry.Insets;\nimport javafx.geometry.Pos;\nimport javafx.scene.Cursor;\nimport javafx.scene.Node;\nimport javafx.scene.control.*;\nimpo... | Node node : MainController.getVBox().getChildren()) { | {} | {
"repository": "paulgutv-currency-converter-d95cf08",
"file": "src/main/java/com/paulgutv/currencyconverter/model/InputBox.java",
"task_id": "project_cc_java/4503"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/paulgutv/currencyconverter/model/InputBox.java",
"groundtruth_start_lineno": 196,
"repository": "paulgutv-currency-converter-d95cf08",
"right_context_start_lineno": 197,
"task_id": "project_cc_java/4503"
}
} |
cross_code_eval_java::project_cc_java/4506 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/paulgutv/currencyconverter/Updater.java
// Task<Void> downloadTask = createDo... | {
"prefix": "package com.paulgutv.currencyconverter.model;\n\nimport com.paulgutv.currencyconverter.controller.MainController;\nimport javafx.application.Platform;\nimport javafx.geometry.Insets;\nimport javafx.geometry.Pos;\nimport javafx.scene.Cursor;\nimport javafx.scene.Node;\nimport javafx.scene.control.*;\nimpo... | = Utils.addCurrencies(); | {} | {
"repository": "paulgutv-currency-converter-d95cf08",
"file": "src/main/java/com/paulgutv/currencyconverter/model/InputBox.java",
"task_id": "project_cc_java/4506"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/paulgutv/currencyconverter/model/InputBox.java",
"groundtruth_start_lineno": 113,
"repository": "paulgutv-currency-converter-d95cf08",
"right_context_start_lineno": 114,
"task_id": "project_cc_java/4506"
}
} |
cross_code_eval_java::project_cc_java/4451 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/pannous/jini/settings/AppSettingsState.java
// @Override
// public AppSetting... | {
"prefix": "// Copyright 2000-2022 JetBrains s.r.o. and other contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.\n\npackage com.pannous.jini.settings;\n\nimport com.intellij.openapi.options.Configurable;\nimport org.jetbrains.annotations.Nls;\nimport or... | modified |= mySettingsComponent.isAutoPopup() != settings.autoPopup; | {} | {
"repository": "pannous-jini-plugin-0b2b57a",
"file": "src/main/java/com/pannous/jini/settings/AppSettingsConfigurable.java",
"task_id": "project_cc_java/4451"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/pannous/jini/settings/AppSettingsConfigurable.java",
"groundtruth_start_lineno": 43,
"repository": "pannous-jini-plugin-0b2b57a",
"right_context_start_lineno": 44,
"task_id": "project_cc_java/4451"
}
} |
cross_code_eval_java::project_cc_java/4507 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/paulgutv/currencyconverter/Updater.java
// protected void succeeded() {
/... | {
"prefix": "package com.paulgutv.currencyconverter.model;\n\nimport com.paulgutv.currencyconverter.controller.MainController;\nimport javafx.application.Platform;\nimport javafx.geometry.Insets;\nimport javafx.geometry.Pos;\nimport javafx.scene.Cursor;\nimport javafx.scene.Node;\nimport javafx.scene.control.*;\nimpo... | Utils.obtenerCodigoPais(item); | {} | {
"repository": "paulgutv-currency-converter-d95cf08",
"file": "src/main/java/com/paulgutv/currencyconverter/model/InputBox.java",
"task_id": "project_cc_java/4507"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/paulgutv/currencyconverter/model/InputBox.java",
"groundtruth_start_lineno": 127,
"repository": "paulgutv-currency-converter-d95cf08",
"right_context_start_lineno": 128,
"task_id": "project_cc_java/4507"
}
} |
cross_code_eval_java::project_cc_java/4454 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/pannous/jini/settings/AppSettingsComponent.java
// public void setAutoAddComments... | {
"prefix": "// Copyright 2000-2022 JetBrains s.r.o. and other contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.\n\npackage com.pannous.jini.settings;\n\nimport com.intellij.openapi.options.Configurable;\nimport org.jetbrains.annotations.Nls;\nimport or... | |= mySettingsComponent.isAutoSaveToNewFile() != settings.autoSaveToNewFile; | {} | {
"repository": "pannous-jini-plugin-0b2b57a",
"file": "src/main/java/com/pannous/jini/settings/AppSettingsConfigurable.java",
"task_id": "project_cc_java/4454"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/pannous/jini/settings/AppSettingsConfigurable.java",
"groundtruth_start_lineno": 46,
"repository": "pannous-jini-plugin-0b2b57a",
"right_context_start_lineno": 47,
"task_id": "project_cc_java/4454"
}
} |
cross_code_eval_java::project_cc_java/4452 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/pannous/jini/settings/AppSettingsComponent.java
// public void setAutoAddComments... | {
"prefix": "// Copyright 2000-2022 JetBrains s.r.o. and other contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.\n\npackage com.pannous.jini.settings;\n\nimport com.intellij.openapi.options.Configurable;\nimport org.jetbrains.annotations.Nls;\nimport or... | modified |= mySettingsComponent.isAutoAddComments() != settings.autoAddComments; | {} | {
"repository": "pannous-jini-plugin-0b2b57a",
"file": "src/main/java/com/pannous/jini/settings/AppSettingsConfigurable.java",
"task_id": "project_cc_java/4452"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/pannous/jini/settings/AppSettingsConfigurable.java",
"groundtruth_start_lineno": 44,
"repository": "pannous-jini-plugin-0b2b57a",
"right_context_start_lineno": 45,
"task_id": "project_cc_java/4452"
}
} |
cross_code_eval_java::project_cc_java/4450 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/pannous/jini/settings/AppSettingsState.java
// @Override
// public AppSetting... | {
"prefix": "// Copyright 2000-2022 JetBrains s.r.o. and other contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.\n\npackage com.pannous.jini.settings;\n\nimport com.intellij.openapi.options.Configurable;\nimport org.jetbrains.annotations.Nls;\nimport or... | modified = !mySettingsComponent.get_OPENAI_API_KEY().equals(settings.OPENAI_API_KEY); | {} | {
"repository": "pannous-jini-plugin-0b2b57a",
"file": "src/main/java/com/pannous/jini/settings/AppSettingsConfigurable.java",
"task_id": "project_cc_java/4450"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/pannous/jini/settings/AppSettingsConfigurable.java",
"groundtruth_start_lineno": 42,
"repository": "pannous-jini-plugin-0b2b57a",
"right_context_start_lineno": 43,
"task_id": "project_cc_java/4450"
}
} |
cross_code_eval_java::project_cc_java/4455 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/pannous/jini/settings/AppSettingsComponent.java
// public void setAutoAddComments... | {
"prefix": "// Copyright 2000-2022 JetBrains s.r.o. and other contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.\n\npackage com.pannous.jini.settings;\n\nimport com.intellij.openapi.options.Configurable;\nimport org.jetbrains.annotations.Nls;\nimport or... | !mySettingsComponent.getCustomRefactor().equals(settings.customRefactor); | {} | {
"repository": "pannous-jini-plugin-0b2b57a",
"file": "src/main/java/com/pannous/jini/settings/AppSettingsConfigurable.java",
"task_id": "project_cc_java/4455"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/pannous/jini/settings/AppSettingsConfigurable.java",
"groundtruth_start_lineno": 47,
"repository": "pannous-jini-plugin-0b2b57a",
"right_context_start_lineno": 48,
"task_id": "project_cc_java/4455"
}
} |
cross_code_eval_java::project_cc_java/4505 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/paulgutv/currencyconverter/controller/MainController.java
// inputBoxes = new... | {
"prefix": "package com.paulgutv.currencyconverter.model;\n\nimport com.paulgutv.currencyconverter.controller.MainController;\nimport javafx.application.Platform;\nimport javafx.geometry.Insets;\nimport javafx.geometry.Pos;\nimport javafx.scene.Cursor;\nimport javafx.scene.Node;\nimport javafx.scene.control.*;\nimpo... | .setText(Utils.addSymbol(baseComboBox) + "0"); | {} | {
"repository": "paulgutv-currency-converter-d95cf08",
"file": "src/main/java/com/paulgutv/currencyconverter/model/InputBox.java",
"task_id": "project_cc_java/4505"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/paulgutv/currencyconverter/model/InputBox.java",
"groundtruth_start_lineno": 84,
"repository": "paulgutv-currency-converter-d95cf08",
"right_context_start_lineno": 85,
"task_id": "project_cc_java/4505"
}
} |
cross_code_eval_java::project_cc_java/4453 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/pannous/jini/settings/AppSettingsComponent.java
// public void setAutoAddComments... | {
"prefix": "// Copyright 2000-2022 JetBrains s.r.o. and other contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.\n\npackage com.pannous.jini.settings;\n\nimport com.intellij.openapi.options.Configurable;\nimport org.jetbrains.annotations.Nls;\nimport or... | mySettingsComponent.isAutoReplaceCode() != settings.autoReplaceCode; | {} | {
"repository": "pannous-jini-plugin-0b2b57a",
"file": "src/main/java/com/pannous/jini/settings/AppSettingsConfigurable.java",
"task_id": "project_cc_java/4453"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/pannous/jini/settings/AppSettingsConfigurable.java",
"groundtruth_start_lineno": 45,
"repository": "pannous-jini-plugin-0b2b57a",
"right_context_start_lineno": 46,
"task_id": "project_cc_java/4453"
}
} |
cross_code_eval_java::project_cc_java/4509 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/paulgutv/currencyconverter/model/Conversion.java
// return String.format("%.2... | {
"prefix": "package com.paulgutv.currencyconverter.model;\n\nimport com.paulgutv.currencyconverter.controller.MainController;\nimport javafx.application.Platform;\nimport javafx.geometry.Insets;\nimport javafx.geometry.Pos;\nimport javafx.scene.Cursor;\nimport javafx.scene.Node;\nimport javafx.scene.control.*;\nimpo... | label1.setText(Utils.addSymbol(baseComboBox) + formattedNumber); | {} | {
"repository": "paulgutv-currency-converter-d95cf08",
"file": "src/main/java/com/paulgutv/currencyconverter/model/InputBox.java",
"task_id": "project_cc_java/4509"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/paulgutv/currencyconverter/model/InputBox.java",
"groundtruth_start_lineno": 189,
"repository": "paulgutv-currency-converter-d95cf08",
"right_context_start_lineno": 190,
"task_id": "project_cc_java/4509"
}
} |
cross_code_eval_java::project_cc_java/4563 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/platzi/pizza/service/OrderService.java
// List<String> methods = Arrays.asLis... | {
"prefix": "package com.platzi.pizza.web.controller;\n\nimport com.platzi.pizza.persistence.entity.OrderEntity;\nimport com.platzi.pizza.persistence.projection.OrderSummary;\nimport com.platzi.pizza.service.OrderService;\nimport com.platzi.pizza.service.dto.RandomOrderDto;\nimport org.springframework.beans.factory.a... | ok(this.orderService.getCustomerOrders(id)); | {} | {
"repository": "platzi-curso-java-spring-data-jpa-ab96de0",
"file": "src/main/java/com/platzi/pizza/web/controller/OrderController.java",
"task_id": "project_cc_java/4563"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/platzi/pizza/web/controller/OrderController.java",
"groundtruth_start_lineno": 44,
"repository": "platzi-curso-java-spring-data-jpa-ab96de0",
"right_context_start_lineno": 45,
"task_id": "project_cc_java/4563"
}
} |
cross_code_eval_java::project_cc_java/4571 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/platzi/pizza/web/controller/OrderController.java
// return ResponseEntity.ok(... | {
"prefix": "package com.platzi.pizza.web.controller;\n\nimport com.platzi.pizza.persistence.entity.PizzaEntity;\nimport com.platzi.pizza.service.PizzaService;\nimport com.platzi.pizza.service.dto.UpdatePizzaPriceDto;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.data.dom... | ok(this.pizzaService.getCheapest(price)); | {} | {
"repository": "platzi-curso-java-spring-data-jpa-ab96de0",
"file": "src/main/java/com/platzi/pizza/web/controller/PizzaController.java",
"task_id": "project_cc_java/4571"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/platzi/pizza/web/controller/PizzaController.java",
"groundtruth_start_lineno": 66,
"repository": "platzi-curso-java-spring-data-jpa-ab96de0",
"right_context_start_lineno": 67,
"task_id": "project_cc_java/4571"
}
} |
cross_code_eval_java::project_cc_java/4557 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/platzi/pizza/web/controller/OrderController.java
// @GetMapping("/outside")
// ... | {
"prefix": "package com.platzi.pizza.service;\n\nimport com.platzi.pizza.persistence.entity.OrderEntity;\nimport com.platzi.pizza.persistence.projection.OrderSummary;\nimport com.platzi.pizza.persistence.repository.OrderRepository;\nimport com.platzi.pizza.service.dto.RandomOrderDto;\nimport org.springframework.bean... | orderRepository.findAllByMethodIn(methods); | {} | {
"repository": "platzi-curso-java-spring-data-jpa-ab96de0",
"file": "src/main/java/com/platzi/pizza/service/OrderService.java",
"task_id": "project_cc_java/4557"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/platzi/pizza/service/OrderService.java",
"groundtruth_start_lineno": 39,
"repository": "platzi-curso-java-spring-data-jpa-ab96de0",
"right_context_start_lineno": 40,
"task_id": "project_cc_java/4557"
}
} |
cross_code_eval_java::project_cc_java/4558 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/platzi/pizza/web/controller/OrderController.java
// @GetMapping("/outside")
// ... | {
"prefix": "package com.platzi.pizza.service;\n\nimport com.platzi.pizza.persistence.entity.OrderEntity;\nimport com.platzi.pizza.persistence.projection.OrderSummary;\nimport com.platzi.pizza.persistence.repository.OrderRepository;\nimport com.platzi.pizza.service.dto.RandomOrderDto;\nimport org.springframework.bean... | orderRepository.findCustomerOrders(idCustomer); | {} | {
"repository": "platzi-curso-java-spring-data-jpa-ab96de0",
"file": "src/main/java/com/platzi/pizza/service/OrderService.java",
"task_id": "project_cc_java/4558"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/platzi/pizza/service/OrderService.java",
"groundtruth_start_lineno": 43,
"repository": "platzi-curso-java-spring-data-jpa-ab96de0",
"right_context_start_lineno": 44,
"task_id": "project_cc_java/4558"
}
} |
cross_code_eval_java::project_cc_java/4576 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/platzi/pizza/web/controller/PizzaController.java
// public ResponseEntity<List<Pi... | {
"prefix": "package com.platzi.pizza.service;\n\nimport com.platzi.pizza.persistence.entity.PizzaEntity;\nimport com.platzi.pizza.persistence.repository.PizzaPagSortRepository;\nimport com.platzi.pizza.persistence.repository.PizzaRepository;\nimport com.platzi.pizza.service.dto.UpdatePizzaPriceDto;\nimport com.platz... | this.pizzaRepository.findAllByAvailableTrueAndDescriptionContainingIgnoreCase(ingredient); | {} | {
"repository": "platzi-curso-java-spring-data-jpa-ab96de0",
"file": "src/main/java/com/platzi/pizza/service/PizzaService.java",
"task_id": "project_cc_java/4576"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/platzi/pizza/service/PizzaService.java",
"groundtruth_start_lineno": 47,
"repository": "platzi-curso-java-spring-data-jpa-ab96de0",
"right_context_start_lineno": 48,
"task_id": "project_cc_java/4576"
}
} |
cross_code_eval_java::project_cc_java/4559 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/platzi/pizza/web/controller/OrderController.java
// return ResponseEntity.ok(... | {
"prefix": "package com.platzi.pizza.service;\n\nimport com.platzi.pizza.persistence.entity.OrderEntity;\nimport com.platzi.pizza.persistence.projection.OrderSummary;\nimport com.platzi.pizza.persistence.repository.OrderRepository;\nimport com.platzi.pizza.service.dto.RandomOrderDto;\nimport org.springframework.bean... | orderRepository.findSummary(orderId); | {} | {
"repository": "platzi-curso-java-spring-data-jpa-ab96de0",
"file": "src/main/java/com/platzi/pizza/service/OrderService.java",
"task_id": "project_cc_java/4559"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/platzi/pizza/service/OrderService.java",
"groundtruth_start_lineno": 47,
"repository": "platzi-curso-java-spring-data-jpa-ab96de0",
"right_context_start_lineno": 48,
"task_id": "project_cc_java/4559"
}
} |
cross_code_eval_java::project_cc_java/4575 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/platzi/pizza/web/controller/PizzaController.java
// }
// @GetMapping("/name/{... | {
"prefix": "package com.platzi.pizza.service;\n\nimport com.platzi.pizza.persistence.entity.PizzaEntity;\nimport com.platzi.pizza.persistence.repository.PizzaPagSortRepository;\nimport com.platzi.pizza.persistence.repository.PizzaRepository;\nimport com.platzi.pizza.service.dto.UpdatePizzaPriceDto;\nimport com.platz... | return this.pizzaRepository.findFirstByAvailableTrueAndNameIgnoreCase(name).orElseThrow(() -> new RuntimeException("La pizza no existe")); | {} | {
"repository": "platzi-curso-java-spring-data-jpa-ab96de0",
"file": "src/main/java/com/platzi/pizza/service/PizzaService.java",
"task_id": "project_cc_java/4575"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/platzi/pizza/service/PizzaService.java",
"groundtruth_start_lineno": 43,
"repository": "platzi-curso-java-spring-data-jpa-ab96de0",
"right_context_start_lineno": 44,
"task_id": "project_cc_java/4575"
}
} |
cross_code_eval_java::project_cc_java/4578 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/com/platzi/pizza/web/controller/PizzaController.java
// return ResponseEntity... | {
"prefix": "package com.platzi.pizza.service;\n\nimport com.platzi.pizza.persistence.entity.PizzaEntity;\nimport com.platzi.pizza.persistence.repository.PizzaPagSortRepository;\nimport com.platzi.pizza.persistence.repository.PizzaRepository;\nimport com.platzi.pizza.service.dto.UpdatePizzaPriceDto;\nimport com.platz... | .pizzaRepository.findTop3ByAvailableTrueAndPriceLessThanEqualOrderByPriceAsc(price); | {} | {
"repository": "platzi-curso-java-spring-data-jpa-ab96de0",
"file": "src/main/java/com/platzi/pizza/service/PizzaService.java",
"task_id": "project_cc_java/4578"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/platzi/pizza/service/PizzaService.java",
"groundtruth_start_lineno": 55,
"repository": "platzi-curso-java-spring-data-jpa-ab96de0",
"right_context_start_lineno": 56,
"task_id": "project_cc_java/4578"
}
} |
cross_code_eval_java::project_cc_java/4604 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// mixin-maven-plugin/src/main/java/com/playtika/maven/plugins/MixinModelCache.java
// ... | {
"prefix": "package com.playtika.maven.plugins;\n\nimport org.apache.maven.MavenExecutionException;\nimport org.apache.maven.execution.MavenSession;\nimport org.apache.maven.model.Model;\nimport org.apache.maven.project.MavenProject;\n\npublic class Mixin {\n private String groupId;\n private String artifactId... | return mergePluginManagement != null ? mergePluginManagement : mixins.isMergePluginManagement(); | {} | {
"repository": "PlaytikaOSS-maven-plugins-1781693",
"file": "mixin-maven-plugin/src/main/java/com/playtika/maven/plugins/Mixin.java",
"task_id": "project_cc_java/4604"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "mixin-maven-plugin/src/main/java/com/playtika/maven/plugins/Mixin.java",
"groundtruth_start_lineno": 60,
"repository": "PlaytikaOSS-maven-plugins-1781693",
"right_context_start_lineno": 61,
"task_id": "project_cc_java/4604"
}
} |
cross_code_eval_java::project_cc_java/4605 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// mixin-maven-plugin/src/main/java/com/playtika/maven/plugins/Mixins.java
// }
// public boolean ... | {
"prefix": "package com.playtika.maven.plugins;\n\nimport org.apache.maven.MavenExecutionException;\nimport org.apache.maven.execution.MavenSession;\nimport org.apache.maven.model.Model;\nimport org.apache.maven.project.MavenProject;\n\npublic class Mixin {\n private String groupId;\n private String artifactId... | null ? mergePlugins : mixins.isMergePlugins(); | {} | {
"repository": "PlaytikaOSS-maven-plugins-1781693",
"file": "mixin-maven-plugin/src/main/java/com/playtika/maven/plugins/Mixin.java",
"task_id": "project_cc_java/4605"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "mixin-maven-plugin/src/main/java/com/playtika/maven/plugins/Mixin.java",
"groundtruth_start_lineno": 68,
"repository": "PlaytikaOSS-maven-plugins-1781693",
"right_context_start_lineno": 69,
"task_id": "project_cc_java/4605"
}
} |
cross_code_eval_java::project_cc_java/4608 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// mixin-maven-plugin/src/main/java/com/playtika/maven/plugins/Mixins.java
// public void setMergeDist... | {
"prefix": "package com.playtika.maven.plugins;\n\nimport org.apache.maven.MavenExecutionException;\nimport org.apache.maven.execution.MavenSession;\nimport org.apache.maven.model.Model;\nimport org.apache.maven.project.MavenProject;\n\npublic class Mixin {\n private String groupId;\n private String artifactId... | null ? mergeDistributionManagement : mixins.isMergeDistributionManagement(); | {} | {
"repository": "PlaytikaOSS-maven-plugins-1781693",
"file": "mixin-maven-plugin/src/main/java/com/playtika/maven/plugins/Mixin.java",
"task_id": "project_cc_java/4608"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "mixin-maven-plugin/src/main/java/com/playtika/maven/plugins/Mixin.java",
"groundtruth_start_lineno": 92,
"repository": "PlaytikaOSS-maven-plugins-1781693",
"right_context_start_lineno": 93,
"task_id": "project_cc_java/4608"
}
} |
cross_code_eval_java::project_cc_java/4613 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// mixin-maven-plugin/src/main/java/com/playtika/maven/plugins/Mixins.java
// return activateProfi... | {
"prefix": "package com.playtika.maven.plugins;\n\nimport org.apache.maven.MavenExecutionException;\nimport org.apache.maven.execution.MavenSession;\nimport org.apache.maven.model.Model;\nimport org.apache.maven.project.MavenProject;\n\npublic class Mixin {\n private String groupId;\n private String artifactId... | != null ? activateProfiles : mixins.isActivateProfiles(); | {} | {
"repository": "PlaytikaOSS-maven-plugins-1781693",
"file": "mixin-maven-plugin/src/main/java/com/playtika/maven/plugins/Mixin.java",
"task_id": "project_cc_java/4613"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "mixin-maven-plugin/src/main/java/com/playtika/maven/plugins/Mixin.java",
"groundtruth_start_lineno": 128,
"repository": "PlaytikaOSS-maven-plugins-1781693",
"right_context_start_lineno": 129,
"task_id": "project_cc_java/4613"
}
} |
cross_code_eval_java::project_cc_java/4614 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// mixin-maven-plugin/src/main/java/com/playtika/maven/plugins/Mixins.java
// return activateProfi... | {
"prefix": "package com.playtika.maven.plugins;\n\nimport org.apache.maven.MavenExecutionException;\nimport org.apache.maven.execution.MavenSession;\nimport org.apache.maven.model.Model;\nimport org.apache.maven.project.MavenProject;\n\npublic class Mixin {\n private String groupId;\n private String artifactId... | mixins.getDefaultMixinType(); | {} | {
"repository": "PlaytikaOSS-maven-plugins-1781693",
"file": "mixin-maven-plugin/src/main/java/com/playtika/maven/plugins/Mixin.java",
"task_id": "project_cc_java/4614"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "mixin-maven-plugin/src/main/java/com/playtika/maven/plugins/Mixin.java",
"groundtruth_start_lineno": 133,
"repository": "PlaytikaOSS-maven-plugins-1781693",
"right_context_start_lineno": 134,
"task_id": "project_cc_java/4614"
}
} |
cross_code_eval_java::project_cc_java/4612 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// mixin-maven-plugin/src/main/java/com/playtika/maven/plugins/Mixins.java
// public void setMergeRepo... | {
"prefix": "package com.playtika.maven.plugins;\n\nimport org.apache.maven.MavenExecutionException;\nimport org.apache.maven.execution.MavenSession;\nimport org.apache.maven.model.Model;\nimport org.apache.maven.project.MavenProject;\n\npublic class Mixin {\n private String groupId;\n private String artifactId... | recurse != null ? recurse : mixins.isRecurse(); | {} | {
"repository": "PlaytikaOSS-maven-plugins-1781693",
"file": "mixin-maven-plugin/src/main/java/com/playtika/maven/plugins/Mixin.java",
"task_id": "project_cc_java/4612"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "mixin-maven-plugin/src/main/java/com/playtika/maven/plugins/Mixin.java",
"groundtruth_start_lineno": 120,
"repository": "PlaytikaOSS-maven-plugins-1781693",
"right_context_start_lineno": 121,
"task_id": "project_cc_java/4612"
}
} |
cross_code_eval_java::project_cc_java/4610 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// mixin-maven-plugin/src/main/java/com/playtika/maven/plugins/Mixins.java
// public void setMergeRepo... | {
"prefix": "package com.playtika.maven.plugins;\n\nimport org.apache.maven.MavenExecutionException;\nimport org.apache.maven.execution.MavenSession;\nimport org.apache.maven.model.Model;\nimport org.apache.maven.project.MavenProject;\n\npublic class Mixin {\n private String groupId;\n private String artifactId... | != null ? mergeRepositories : mixins.isMergeRepositories(); | {} | {
"repository": "PlaytikaOSS-maven-plugins-1781693",
"file": "mixin-maven-plugin/src/main/java/com/playtika/maven/plugins/Mixin.java",
"task_id": "project_cc_java/4610"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "mixin-maven-plugin/src/main/java/com/playtika/maven/plugins/Mixin.java",
"groundtruth_start_lineno": 104,
"repository": "PlaytikaOSS-maven-plugins-1781693",
"right_context_start_lineno": 105,
"task_id": "project_cc_java/4610"
}
} |
cross_code_eval_java::project_cc_java/4519 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/pecacm/backend/controllers/UserController.java
// @GetMapping("/rank")
// pub... | {
"prefix": "package com.pecacm.backend.controllers;\n\nimport com.pecacm.backend.constants.Constants;\nimport com.pecacm.backend.entities.Event;\nimport com.pecacm.backend.services.EventService;\nimport jakarta.annotation.Nullable;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springfra... | ok(eventService.getUserEvents(userId)); | {} | {
"repository": "PEC-CSS-acm-website-backend-b92d4e4",
"file": "src/main/java/com/pecacm/backend/controllers/EventsController.java",
"task_id": "project_cc_java/4519"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/pecacm/backend/controllers/EventsController.java",
"groundtruth_start_lineno": 53,
"repository": "PEC-CSS-acm-website-backend-b92d4e4",
"right_context_start_lineno": 54,
"task_id": "project_cc_java/4519"
}
} |
cross_code_eval_java::project_cc_java/4515 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/pecacm/backend/controllers/EventsController.java
// public ResponseEntity<Event> ... | {
"prefix": "package com.pecacm.backend.services;\n\nimport com.pecacm.backend.constants.ErrorConstants;\nimport com.pecacm.backend.entities.Event;\nimport com.pecacm.backend.entities.User;\nimport com.pecacm.backend.exception.AcmException;\nimport com.pecacm.backend.repository.AttendanceRepository;\nimport com.pecac... | attendanceRepository.findByUserIdAndRole(userId, role).forEach(
attendance -> events.add(attendance.getEvent())
); | {} | {
"repository": "PEC-CSS-acm-website-backend-b92d4e4",
"file": "src/main/java/com/pecacm/backend/services/EventService.java",
"task_id": "project_cc_java/4515"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/pecacm/backend/services/EventService.java",
"groundtruth_start_lineno": 64,
"repository": "PEC-CSS-acm-website-backend-b92d4e4",
"right_context_start_lineno": 67,
"task_id": "project_cc_java/4515"
}
} |
cross_code_eval_java::project_cc_java/4517 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/pecacm/backend/services/EventService.java
// public Event getSingleEvent(Integer ... | {
"prefix": "package com.pecacm.backend.controllers;\n\nimport com.pecacm.backend.constants.Constants;\nimport com.pecacm.backend.entities.Event;\nimport com.pecacm.backend.services.EventService;\nimport jakarta.annotation.Nullable;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springfra... | eventService.getSingleEvent(eventId); | {} | {
"repository": "PEC-CSS-acm-website-backend-b92d4e4",
"file": "src/main/java/com/pecacm/backend/controllers/EventsController.java",
"task_id": "project_cc_java/4517"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/pecacm/backend/controllers/EventsController.java",
"groundtruth_start_lineno": 37,
"repository": "PEC-CSS-acm-website-backend-b92d4e4",
"right_context_start_lineno": 38,
"task_id": "project_cc_java/4517"
}
} |
cross_code_eval_java::project_cc_java/4512 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/pecacm/backend/controllers/UserController.java
// }
// String jwtToke... | {
"prefix": "package com.pecacm.backend.filters;\n\nimport com.pecacm.backend.services.JwtService;\nimport com.pecacm.backend.services.UserService;\nimport jakarta.servlet.FilterChain;\nimport jakarta.servlet.ServletException;\nimport jakarta.servlet.http.HttpServletRequest;\nimport jakarta.servlet.http.HttpServletRe... | String username = jwtService.extractUsername(jwtToken); | {} | {
"repository": "PEC-CSS-acm-website-backend-b92d4e4",
"file": "src/main/java/com/pecacm/backend/filters/JwtFilter.java",
"task_id": "project_cc_java/4512"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/pecacm/backend/filters/JwtFilter.java",
"groundtruth_start_lineno": 46,
"repository": "PEC-CSS-acm-website-backend-b92d4e4",
"right_context_start_lineno": 47,
"task_id": "project_cc_java/4512"
}
} |
cross_code_eval_java::project_cc_java/4514 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/pecacm/backend/controllers/EventsController.java
// @GetMapping("/user/{userId}")... | {
"prefix": "package com.pecacm.backend.services;\n\nimport com.pecacm.backend.constants.ErrorConstants;\nimport com.pecacm.backend.entities.Event;\nimport com.pecacm.backend.entities.User;\nimport com.pecacm.backend.exception.AcmException;\nimport com.pecacm.backend.repository.AttendanceRepository;\nimport com.pecac... | attendanceRepository.findByUserId(userId).forEach(
attendance -> events.add(attendance.getEvent())
); | {} | {
"repository": "PEC-CSS-acm-website-backend-b92d4e4",
"file": "src/main/java/com/pecacm/backend/services/EventService.java",
"task_id": "project_cc_java/4514"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/pecacm/backend/services/EventService.java",
"groundtruth_start_lineno": 52,
"repository": "PEC-CSS-acm-website-backend-b92d4e4",
"right_context_start_lineno": 55,
"task_id": "project_cc_java/4514"
}
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.