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/500 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/br/com/uniamerica/estacionamento/controller/ModeloController.java
// */
// @GetM... | {
"prefix": "package br.com.uniamerica.estacionamento.controller;\n\nimport br.com.uniamerica.estacionamento.entity.Marca;\nimport br.com.uniamerica.estacionamento.repository.MarcaRepository;\nimport br.com.uniamerica.estacionamento.repository.ModeloRepository;\nimport br.com.uniamerica.estacionamento.service.MarcaSe... | ok(marcaRepository.findAllAtivo()); | {} | {
"repository": "bouchraakl-LotMaster-Backend-eae3cc8",
"file": "src/main/java/br/com/uniamerica/estacionamento/controller/MarcaController.java",
"task_id": "project_cc_java/500"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/br/com/uniamerica/estacionamento/controller/MarcaController.java",
"groundtruth_start_lineno": 70,
"repository": "bouchraakl-LotMaster-Backend-eae3cc8",
"right_context_start_lineno": 71,
"task_id": "project_cc_java/500"
}
} |
cross_code_eval_java::project_cc_java/514 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/br/com/uniamerica/estacionamento/controller/VeiculoController.java
// /**
// * R... | {
"prefix": "package br.com.uniamerica.estacionamento.controller;\n\nimport br.com.uniamerica.estacionamento.entity.Marca;\nimport br.com.uniamerica.estacionamento.entity.Movimentacao;\nimport br.com.uniamerica.estacionamento.repository.MovimentacaoRepository;\nimport br.com.uniamerica.estacionamento.service.Moviment... | <Movimentacao> movimentacoes = movimentacaoRepository.findMovimentacoesAbertasByPlaca(placa); | {} | {
"repository": "bouchraakl-LotMaster-Backend-eae3cc8",
"file": "src/main/java/br/com/uniamerica/estacionamento/controller/MovimentacaoController.java",
"task_id": "project_cc_java/514"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/br/com/uniamerica/estacionamento/controller/MovimentacaoController.java",
"groundtruth_start_lineno": 56,
"repository": "bouchraakl-LotMaster-Backend-eae3cc8",
"right_context_start_lineno": 57,
"task_id": "project_cc_java/514"
... |
cross_code_eval_java::project_cc_java/509 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/br/com/uniamerica/estacionamento/controller/VeiculoController.java
// }
// }
... | {
"prefix": "package br.com.uniamerica.estacionamento.controller;\n\nimport br.com.uniamerica.estacionamento.entity.Marca;\nimport br.com.uniamerica.estacionamento.entity.Modelo;\nimport br.com.uniamerica.estacionamento.repository.ModeloRepository;\nimport br.com.uniamerica.estacionamento.repository.VeiculoRepository... | .ok(this.modeloRepository.findByNome(nome)); | {} | {
"repository": "bouchraakl-LotMaster-Backend-eae3cc8",
"file": "src/main/java/br/com/uniamerica/estacionamento/controller/ModeloController.java",
"task_id": "project_cc_java/509"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/br/com/uniamerica/estacionamento/controller/ModeloController.java",
"groundtruth_start_lineno": 73,
"repository": "bouchraakl-LotMaster-Backend-eae3cc8",
"right_context_start_lineno": 74,
"task_id": "project_cc_java/509"
}
} |
cross_code_eval_java::project_cc_java/508 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/br/com/uniamerica/estacionamento/controller/MarcaController.java
// /**
// * Reg... | {
"prefix": "package br.com.uniamerica.estacionamento.controller;\n\nimport br.com.uniamerica.estacionamento.entity.Marca;\nimport br.com.uniamerica.estacionamento.entity.Modelo;\nimport br.com.uniamerica.estacionamento.repository.ModeloRepository;\nimport br.com.uniamerica.estacionamento.repository.VeiculoRepository... | > modeloList = modeloRepository.findAllAtivo(); | {} | {
"repository": "bouchraakl-LotMaster-Backend-eae3cc8",
"file": "src/main/java/br/com/uniamerica/estacionamento/controller/ModeloController.java",
"task_id": "project_cc_java/508"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/br/com/uniamerica/estacionamento/controller/ModeloController.java",
"groundtruth_start_lineno": 63,
"repository": "bouchraakl-LotMaster-Backend-eae3cc8",
"right_context_start_lineno": 64,
"task_id": "project_cc_java/508"
}
} |
cross_code_eval_java::project_cc_java/498 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/br/com/uniamerica/estacionamento/controller/CondutorController.java
// @GetMapping
//... | {
"prefix": "package br.com.uniamerica.estacionamento.controller;\n\nimport br.com.uniamerica.estacionamento.entity.Configuracao;\nimport br.com.uniamerica.estacionamento.repository.ConfiguracaoRepository;\nimport br.com.uniamerica.estacionamento.service.ConfiguracaoService;\nimport org.springframework.beans.factory.... | .ok(configuracaoRepository.ultimaConfiguracao()); | {} | {
"repository": "bouchraakl-LotMaster-Backend-eae3cc8",
"file": "src/main/java/br/com/uniamerica/estacionamento/controller/ConfiguracaoController.java",
"task_id": "project_cc_java/498"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/br/com/uniamerica/estacionamento/controller/ConfiguracaoController.java",
"groundtruth_start_lineno": 37,
"repository": "bouchraakl-LotMaster-Backend-eae3cc8",
"right_context_start_lineno": 38,
"task_id": "project_cc_java/498"
... |
cross_code_eval_java::project_cc_java/515 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/br/com/uniamerica/estacionamento/controller/VeiculoController.java
// /**
// * R... | {
"prefix": "package br.com.uniamerica.estacionamento.controller;\n\nimport br.com.uniamerica.estacionamento.entity.Marca;\nimport br.com.uniamerica.estacionamento.entity.Movimentacao;\nimport br.com.uniamerica.estacionamento.repository.MovimentacaoRepository;\nimport br.com.uniamerica.estacionamento.service.Moviment... | Movimentacao> movimentacoes = movimentacaoRepository.findAllAbertas(); | {} | {
"repository": "bouchraakl-LotMaster-Backend-eae3cc8",
"file": "src/main/java/br/com/uniamerica/estacionamento/controller/MovimentacaoController.java",
"task_id": "project_cc_java/515"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/br/com/uniamerica/estacionamento/controller/MovimentacaoController.java",
"groundtruth_start_lineno": 60,
"repository": "bouchraakl-LotMaster-Backend-eae3cc8",
"right_context_start_lineno": 61,
"task_id": "project_cc_java/515"
... |
cross_code_eval_java::project_cc_java/521 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/br/com/uniamerica/estacionamento/service/MarcaService.java
// this.marcaRepos... | {
"prefix": "package br.com.uniamerica.estacionamento.service;\n\nimport br.com.uniamerica.estacionamento.entity.Marca;\nimport br.com.uniamerica.estacionamento.entity.Modelo;\nimport br.com.uniamerica.estacionamento.entity.Veiculo;\nimport br.com.uniamerica.estacionamento.repository.MarcaRepository;\nimport br.com.u... | if (!this.modeloRepository.findByMarcaId(id).isEmpty()) { | {} | {
"repository": "bouchraakl-LotMaster-Backend-eae3cc8",
"file": "src/main/java/br/com/uniamerica/estacionamento/service/ModeloService.java",
"task_id": "project_cc_java/521"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/br/com/uniamerica/estacionamento/service/ModeloService.java",
"groundtruth_start_lineno": 90,
"repository": "bouchraakl-LotMaster-Backend-eae3cc8",
"right_context_start_lineno": 91,
"task_id": "project_cc_java/521"
}
} |
cross_code_eval_java::project_cc_java/520 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/br/com/uniamerica/estacionamento/service/MarcaService.java
// *
// * @param id ... | {
"prefix": "package br.com.uniamerica.estacionamento.service;\n\nimport br.com.uniamerica.estacionamento.entity.Marca;\nimport br.com.uniamerica.estacionamento.entity.Modelo;\nimport br.com.uniamerica.estacionamento.entity.Veiculo;\nimport br.com.uniamerica.estacionamento.repository.MarcaRepository;\nimport br.com.u... | = marcaRepository.findActiveElement(marcaId); | {} | {
"repository": "bouchraakl-LotMaster-Backend-eae3cc8",
"file": "src/main/java/br/com/uniamerica/estacionamento/service/ModeloService.java",
"task_id": "project_cc_java/520"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/br/com/uniamerica/estacionamento/service/ModeloService.java",
"groundtruth_start_lineno": 118,
"repository": "bouchraakl-LotMaster-Backend-eae3cc8",
"right_context_start_lineno": 119,
"task_id": "project_cc_java/520"
}
} |
cross_code_eval_java::project_cc_java/519 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/br/com/uniamerica/estacionamento/controller/VeiculoController.java
// return ... | {
"prefix": "package br.com.uniamerica.estacionamento.controller;\n\nimport br.com.uniamerica.estacionamento.entity.Marca;\nimport br.com.uniamerica.estacionamento.entity.Movimentacao;\nimport br.com.uniamerica.estacionamento.repository.MovimentacaoRepository;\nimport br.com.uniamerica.estacionamento.service.Moviment... | movimentacaoService.validarDeleteMovimentacao(id); | {} | {
"repository": "bouchraakl-LotMaster-Backend-eae3cc8",
"file": "src/main/java/br/com/uniamerica/estacionamento/controller/MovimentacaoController.java",
"task_id": "project_cc_java/519"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/br/com/uniamerica/estacionamento/controller/MovimentacaoController.java",
"groundtruth_start_lineno": 133,
"repository": "bouchraakl-LotMaster-Backend-eae3cc8",
"right_context_start_lineno": 134,
"task_id": "project_cc_java/519"... |
cross_code_eval_java::project_cc_java/497 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// graphql-spring-boot-example/src/main/java/bnymellon/jpe/graphql/example/dao/ComposerRepository.java
// ... | {
"prefix": "/*\n * Copyright 2023 The Bank of New York Mellon.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\... | <Boolean>newResult().data(dao.deleteComposition(composerId, title)).build(); | {} | {
"repository": "BNYMellon-graphql-kata-48706d4",
"file": "graphql-spring-boot-example/src/main/java/bnymellon/jpe/graphql/example/controllers/ComposersController.java",
"task_id": "project_cc_java/497"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "graphql-spring-boot-example/src/main/java/bnymellon/jpe/graphql/example/controllers/ComposersController.java",
"groundtruth_start_lineno": 98,
"repository": "BNYMellon-graphql-kata-48706d4",
"right_context_start_lineno": 99,
"task_id": "proje... |
cross_code_eval_java::project_cc_java/495 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// graphql-composers-domain/src/main/java/bnymellon/jpe/graphql/kata/ComposersSchema.java
// }
// ... | {
"prefix": "/*\n * Copyright 2023 The Bank of New York Mellon.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\... | (dao.allComposers()).detect(c -> id == c.id()); | {} | {
"repository": "BNYMellon-graphql-kata-48706d4",
"file": "graphql-spring-boot-example/src/main/java/bnymellon/jpe/graphql/example/controllers/ComposersController.java",
"task_id": "project_cc_java/495"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "graphql-spring-boot-example/src/main/java/bnymellon/jpe/graphql/example/controllers/ComposersController.java",
"groundtruth_start_lineno": 57,
"repository": "BNYMellon-graphql-kata-48706d4",
"right_context_start_lineno": 58,
"task_id": "proje... |
cross_code_eval_java::project_cc_java/559 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/net/burningtnt/webp/vp8l/VP8LDecoder.java
// RGBABuffer colorTableRGBABuf... | {
"prefix": "/*\n * Copyright (c) 2022, Harald Kuhr\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistributions of source code must retain the above copyright notice,\n * ... | symbolNum = lsbBitReader.readBit() + 1; | {} | {
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"file": "src/main/java/net/burningtnt/webp/vp8l/huffman/HuffmanTable.java",
"task_id": "project_cc_java/559"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/burningtnt/webp/vp8l/huffman/HuffmanTable.java",
"groundtruth_start_lineno": 86,
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"right_context_start_lineno": 87,
"task_id": "project_cc_java/559"
}
} |
cross_code_eval_java::project_cc_java/496 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// graphql-composers-domain/src/main/java/bnymellon/jpe/graphql/kata/ComposersSchema.java
// {
// ... | {
"prefix": "/*\n * Copyright 2023 The Bank of New York Mellon.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\... | (Lists.adapt(dao.allComposers())); | {} | {
"repository": "BNYMellon-graphql-kata-48706d4",
"file": "graphql-spring-boot-example/src/main/java/bnymellon/jpe/graphql/example/controllers/ComposersController.java",
"task_id": "project_cc_java/496"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "graphql-spring-boot-example/src/main/java/bnymellon/jpe/graphql/example/controllers/ComposersController.java",
"groundtruth_start_lineno": 72,
"repository": "BNYMellon-graphql-kata-48706d4",
"right_context_start_lineno": 73,
"task_id": "proje... |
cross_code_eval_java::project_cc_java/566 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/net/burningtnt/webp/vp8l/huffman/HuffmanCodeGroup.java
// distanceCode = new Huff... | {
"prefix": "/*\n * Copyright (c) 2022, Harald Kuhr\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistributions of source code must retain the above copyright notice,\n * ... | int) (2 + 2 * lsbBitReader.readBits(3)); | {} | {
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"file": "src/main/java/net/burningtnt/webp/vp8l/huffman/HuffmanTable.java",
"task_id": "project_cc_java/566"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/burningtnt/webp/vp8l/huffman/HuffmanTable.java",
"groundtruth_start_lineno": 258,
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"right_context_start_lineno": 259,
"task_id": "project_cc_java/566"
}
} |
cross_code_eval_java::project_cc_java/564 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/net/burningtnt/webp/vp8l/VP8LDecoder.java
// xSize = subSampleSize(xSize,... | {
"prefix": "/*\n * Copyright (c) 2022, Harald Kuhr\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistributions of source code must retain the above copyright notice,\n * ... | short len = (short) lsbBitReader.readBits(3); | {} | {
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"file": "src/main/java/net/burningtnt/webp/vp8l/huffman/HuffmanTable.java",
"task_id": "project_cc_java/564"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/burningtnt/webp/vp8l/huffman/HuffmanTable.java",
"groundtruth_start_lineno": 109,
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"right_context_start_lineno": 110,
"task_id": "project_cc_java/564"
}
} |
cross_code_eval_java::project_cc_java/572 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/net/burningtnt/webp/utils/LSBBitInputStream.java
// return (buffer >>> bitOff... | {
"prefix": "/*\n * Copyright (c) 2022, Harald Kuhr\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistributions of source code must retain the above copyright notice,\n * ... | lsbBitReader.readBits(length); | {} | {
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"file": "src/main/java/net/burningtnt/webp/vp8l/huffman/HuffmanTable.java",
"task_id": "project_cc_java/572"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/burningtnt/webp/vp8l/huffman/HuffmanTable.java",
"groundtruth_start_lineno": 339,
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"right_context_start_lineno": 340,
"task_id": "project_cc_java/572"
}
} |
cross_code_eval_java::project_cc_java/563 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/net/burningtnt/webp/vp8l/VP8LDecoder.java
// xSize = subSampleSize(xSize,... | {
"prefix": "/*\n * Copyright (c) 2022, Harald Kuhr\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistributions of source code must retain the above copyright notice,\n * ... | int) (lsbBitReader.readBits(4) + 4); | {} | {
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"file": "src/main/java/net/burningtnt/webp/vp8l/huffman/HuffmanTable.java",
"task_id": "project_cc_java/563"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/burningtnt/webp/vp8l/huffman/HuffmanTable.java",
"groundtruth_start_lineno": 104,
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"right_context_start_lineno": 105,
"task_id": "project_cc_java/563"
}
} |
cross_code_eval_java::project_cc_java/570 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/net/burningtnt/webp/vp8l/VP8LDecoder.java
// int distanceCode = lz77decode(distan... | {
"prefix": "/*\n * Copyright (c) 2022, Harald Kuhr\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistributions of source code must retain the above copyright notice,\n * ... | lsbBitReader.readBits(LEVEL1_BITS); | {} | {
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"file": "src/main/java/net/burningtnt/webp/vp8l/huffman/HuffmanTable.java",
"task_id": "project_cc_java/570"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/burningtnt/webp/vp8l/huffman/HuffmanTable.java",
"groundtruth_start_lineno": 333,
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"right_context_start_lineno": 334,
"task_id": "project_cc_java/570"
}
} |
cross_code_eval_java::project_cc_java/562 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/net/burningtnt/webp/vp8l/VP8LDecoder.java
// huffmanYSize = subSampleSize(ySi... | {
"prefix": "/*\n * Copyright (c) 2022, Harald Kuhr\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistributions of source code must retain the above copyright notice,\n * ... | short symbol2 = (short) lsbBitReader.readBits(8); | {} | {
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"file": "src/main/java/net/burningtnt/webp/vp8l/huffman/HuffmanTable.java",
"task_id": "project_cc_java/562"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/burningtnt/webp/vp8l/huffman/HuffmanTable.java",
"groundtruth_start_lineno": 91,
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"right_context_start_lineno": 92,
"task_id": "project_cc_java/562"
}
} |
cross_code_eval_java::project_cc_java/568 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/net/burningtnt/webp/vp8l/VP8LDecoder.java
// private HuffmanInfo readHuffmanCodes(int... | {
"prefix": "/*\n * Copyright (c) 2022, Harald Kuhr\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistributions of source code must retain the above copyright notice,\n * ... | (int) (lsbBitReader.readBits(extraBits) + repeatOffset); | {} | {
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"file": "src/main/java/net/burningtnt/webp/vp8l/huffman/HuffmanTable.java",
"task_id": "project_cc_java/568"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/burningtnt/webp/vp8l/huffman/HuffmanTable.java",
"groundtruth_start_lineno": 300,
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"right_context_start_lineno": 301,
"task_id": "project_cc_java/568"
}
} |
cross_code_eval_java::project_cc_java/558 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/net/burningtnt/webp/vp8l/VP8LDecoder.java
// RGBABuffer colorTableRGBABuf... | {
"prefix": "/*\n * Copyright (c) 2022, Harald Kuhr\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistributions of source code must retain the above copyright notice,\n * ... | simpleLengthCode = lsbBitReader.readBit() == 1; | {} | {
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"file": "src/main/java/net/burningtnt/webp/vp8l/huffman/HuffmanTable.java",
"task_id": "project_cc_java/558"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/burningtnt/webp/vp8l/huffman/HuffmanTable.java",
"groundtruth_start_lineno": 83,
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"right_context_start_lineno": 84,
"task_id": "project_cc_java/558"
}
} |
cross_code_eval_java::project_cc_java/571 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/net/burningtnt/webp/vp8l/VP8LDecoder.java
// int distanceCode = lz77decode(distan... | {
"prefix": "/*\n * Copyright (c) 2022, Harald Kuhr\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistributions of source code must retain the above copyright notice,\n * ... | level2Index = (int) lsbBitReader.peekBits(length - LEVEL1_BITS); | {} | {
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"file": "src/main/java/net/burningtnt/webp/vp8l/huffman/HuffmanTable.java",
"task_id": "project_cc_java/571"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/burningtnt/webp/vp8l/huffman/HuffmanTable.java",
"groundtruth_start_lineno": 334,
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"right_context_start_lineno": 335,
"task_id": "project_cc_java/571"
}
} |
cross_code_eval_java::project_cc_java/561 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/net/burningtnt/webp/vp8l/VP8LDecoder.java
// huffmanYSize = subSampleSize(ySi... | {
"prefix": "/*\n * Copyright (c) 2022, Harald Kuhr\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistributions of source code must retain the above copyright notice,\n * ... | short symbol1 = (short) lsbBitReader.readBits(first8Bits ? 8 : 1); | {} | {
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"file": "src/main/java/net/burningtnt/webp/vp8l/huffman/HuffmanTable.java",
"task_id": "project_cc_java/561"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/burningtnt/webp/vp8l/huffman/HuffmanTable.java",
"groundtruth_start_lineno": 88,
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"right_context_start_lineno": 89,
"task_id": "project_cc_java/561"
}
} |
cross_code_eval_java::project_cc_java/569 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/net/burningtnt/webp/vp8l/VP8LDecoder.java
// RGBABuffer colorTableRGBABuf... | {
"prefix": "/*\n * Copyright (c) 2022, Harald Kuhr\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistributions of source code must retain the above copyright notice,\n * ... | ) lsbBitReader.peekBits(LEVEL1_BITS); | {} | {
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"file": "src/main/java/net/burningtnt/webp/vp8l/huffman/HuffmanTable.java",
"task_id": "project_cc_java/569"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/burningtnt/webp/vp8l/huffman/HuffmanTable.java",
"groundtruth_start_lineno": 326,
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"right_context_start_lineno": 327,
"task_id": "project_cc_java/569"
}
} |
cross_code_eval_java::project_cc_java/579 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/net/burningtnt/webp/vp8l/transform/ColorIndexingTransform.java
// int com... | {
"prefix": "/*\n * Copyright (c) 2022, Harald Kuhr\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistributions of source code must retain the above copyright notice,\n * ... | data.getDataElements(x >> bits, y >> bits, rgba); | {} | {
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"file": "src/main/java/net/burningtnt/webp/vp8l/transform/ColorTransform.java",
"task_id": "project_cc_java/579"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/burningtnt/webp/vp8l/transform/ColorTransform.java",
"groundtruth_start_lineno": 56,
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"right_context_start_lineno": 57,
"task_id": "project_cc_java/579"
}
} |
cross_code_eval_java::project_cc_java/567 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/net/burningtnt/webp/vp8l/huffman/HuffmanCodeGroup.java
// distanceCode = new Huff... | {
"prefix": "/*\n * Copyright (c) 2022, Harald Kuhr\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistributions of source code must retain the above copyright notice,\n * ... | int) (2 + lsbBitReader.readBits(maxSymbolBitLength)); | {} | {
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"file": "src/main/java/net/burningtnt/webp/vp8l/huffman/HuffmanTable.java",
"task_id": "project_cc_java/567"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/burningtnt/webp/vp8l/huffman/HuffmanTable.java",
"groundtruth_start_lineno": 259,
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"right_context_start_lineno": 260,
"task_id": "project_cc_java/567"
}
} |
cross_code_eval_java::project_cc_java/592 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/net/burningtnt/webp/vp8l/transform/SubtractGreenTransform.java
// rgb[0] = (byte)... | {
"prefix": "/*\n * Copyright (c) 2022, Harald Kuhr\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistributions of source code must retain the above copyright notice,\n * ... | raster.setDataElements(x, 0, rgba); | {} | {
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"file": "src/main/java/net/burningtnt/webp/vp8l/transform/PredictorTransform.java",
"task_id": "project_cc_java/592"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/burningtnt/webp/vp8l/transform/PredictorTransform.java",
"groundtruth_start_lineno": 91,
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"right_context_start_lineno": 92,
"task_id": "project_cc_java/592"
}
} |
cross_code_eval_java::project_cc_java/523 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/brokiem/bedrockreplay/bedrock/network/handler/downstream/DownstreamPacketHandler.java... | {
"prefix": "/**\n * Copyright (c) 2023 brokiem\n * This project is licensed under the MIT License\n */\n\npackage com.brokiem.bedrockreplay.replay.server.player;\n\nimport com.brokiem.bedrockreplay.replay.ReplayManager;\nimport lombok.Getter;\nimport lombok.Setter;\nimport org.cloudburstmc.protocol.bedrock.BedrockSe... | ReplayManager.getInstance().despawnPlayerClone(this); | {} | {
"repository": "brokiem-BedrockReplay-adc9701",
"file": "src/main/java/com/brokiem/bedrockreplay/replay/server/player/ViewerPlayer.java",
"task_id": "project_cc_java/523"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/brokiem/bedrockreplay/replay/server/player/ViewerPlayer.java",
"groundtruth_start_lineno": 86,
"repository": "brokiem-BedrockReplay-adc9701",
"right_context_start_lineno": 87,
"task_id": "project_cc_java/523"
}
} |
cross_code_eval_java::project_cc_java/588 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/net/burningtnt/webp/vp8l/transform/ColorTransform.java
// int green_to_re... | {
"prefix": "/*\n * Copyright (c) 2022, Harald Kuhr\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistributions of source code must retain the above copyright notice,\n * ... | raster.getDataElements(0, 0, rgba); | {} | {
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"file": "src/main/java/net/burningtnt/webp/vp8l/transform/PredictorTransform.java",
"task_id": "project_cc_java/588"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/burningtnt/webp/vp8l/transform/PredictorTransform.java",
"groundtruth_start_lineno": 78,
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"right_context_start_lineno": 79,
"task_id": "project_cc_java/588"
}
} |
cross_code_eval_java::project_cc_java/529 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/brokiem/bedrockreplay/replay/ReplayData.java
// executor.shutdown();
// ... | {
"prefix": "/*\n * Copyright (c) 2023 brokiem\n * This project is licensed under the MIT License\n */\n\npackage com.brokiem.bedrockreplay;\n\nimport com.alibaba.fastjson.JSONObject;\nimport com.brokiem.bedrockreplay.account.AccountManager;\nimport com.brokiem.bedrockreplay.auth.Live;\nimport com.brokiem.bedrockrepl... | Live.getInstance().requestLiveToken(
(deviceCode, userCode, verificationUrl, expiresIn, interval) -> { | {} | {
"repository": "brokiem-BedrockReplay-adc9701",
"file": "src/main/java/com/brokiem/bedrockreplay/BedrockReplay.java",
"task_id": "project_cc_java/529"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/brokiem/bedrockreplay/BedrockReplay.java",
"groundtruth_start_lineno": 84,
"repository": "brokiem-BedrockReplay-adc9701",
"right_context_start_lineno": 86,
"task_id": "project_cc_java/529"
}
} |
cross_code_eval_java::project_cc_java/589 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/net/burningtnt/webp/vp8l/transform/ColorTransform.java
// int green_to_re... | {
"prefix": "/*\n * Copyright (c) 2022, Harald Kuhr\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistributions of source code must retain the above copyright notice,\n * ... | raster.setDataElements(0, 0, rgba); | {} | {
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"file": "src/main/java/net/burningtnt/webp/vp8l/transform/PredictorTransform.java",
"task_id": "project_cc_java/589"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/burningtnt/webp/vp8l/transform/PredictorTransform.java",
"groundtruth_start_lineno": 80,
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"right_context_start_lineno": 81,
"task_id": "project_cc_java/589"
}
} |
cross_code_eval_java::project_cc_java/526 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/brokiem/bedrockreplay/replay/server/ReplayViewerServer.java
// }
// @SneakyTh... | {
"prefix": "/**\n * Copyright (c) 2023 brokiem\n * This project is licensed under the MIT License\n */\n\npackage com.brokiem.bedrockreplay.bedrock.data;\n\nimport com.alibaba.fastjson.JSON;\nimport com.alibaba.fastjson.TypeReference;\nimport com.brokiem.bedrockreplay.utils.FileManager;\nimport lombok.SneakyThrows;\... | String data = FileManager.getFileResourceAsString("bedrock-data/required_item_list.json"); | {} | {
"repository": "brokiem-BedrockReplay-adc9701",
"file": "src/main/java/com/brokiem/bedrockreplay/bedrock/data/BedrockData.java",
"task_id": "project_cc_java/526"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/brokiem/bedrockreplay/bedrock/data/BedrockData.java",
"groundtruth_start_lineno": 53,
"repository": "brokiem-BedrockReplay-adc9701",
"right_context_start_lineno": 54,
"task_id": "project_cc_java/526"
}
} |
cross_code_eval_java::project_cc_java/522 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/brokiem/bedrockreplay/bedrock/network/handler/downstream/DownstreamPacketHandler.java... | {
"prefix": "/**\n * Copyright (c) 2023 brokiem\n * This project is licensed under the MIT License\n */\n\npackage com.brokiem.bedrockreplay.replay.server.player;\n\nimport com.brokiem.bedrockreplay.replay.ReplayManager;\nimport lombok.Getter;\nimport lombok.Setter;\nimport org.cloudburstmc.protocol.bedrock.BedrockSe... | ReplayManager.getInstance().spawnPlayerClone(this); | {} | {
"repository": "brokiem-BedrockReplay-adc9701",
"file": "src/main/java/com/brokiem/bedrockreplay/replay/server/player/ViewerPlayer.java",
"task_id": "project_cc_java/522"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/brokiem/bedrockreplay/replay/server/player/ViewerPlayer.java",
"groundtruth_start_lineno": 84,
"repository": "brokiem-BedrockReplay-adc9701",
"right_context_start_lineno": 85,
"task_id": "project_cc_java/522"
}
} |
cross_code_eval_java::project_cc_java/537 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/brokiem/bedrockreplay/bedrock/server/ProxyServer.java
// if (isRunning) {
// ... | {
"prefix": "/*\n * Copyright (c) 2023 brokiem\n * This project is licensed under the MIT License\n */\n\npackage com.brokiem.bedrockreplay;\n\nimport com.alibaba.fastjson.JSONObject;\nimport com.brokiem.bedrockreplay.account.AccountManager;\nimport com.brokiem.bedrockreplay.auth.Live;\nimport com.brokiem.bedrockrepl... | OutputWindow.print("Proxy server Listening on " + bindAddress); | {} | {
"repository": "brokiem-BedrockReplay-adc9701",
"file": "src/main/java/com/brokiem/bedrockreplay/BedrockReplay.java",
"task_id": "project_cc_java/537"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/brokiem/bedrockreplay/BedrockReplay.java",
"groundtruth_start_lineno": 53,
"repository": "brokiem-BedrockReplay-adc9701",
"right_context_start_lineno": 54,
"task_id": "project_cc_java/537"
}
} |
cross_code_eval_java::project_cc_java/534 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/brokiem/bedrockreplay/bedrock/server/ProxyServer.java
// if (isRunning) {
// ... | {
"prefix": "/*\n * Copyright (c) 2023 brokiem\n * This project is licensed under the MIT License\n */\n\npackage com.brokiem.bedrockreplay;\n\nimport com.alibaba.fastjson.JSONObject;\nimport com.brokiem.bedrockreplay.account.AccountManager;\nimport com.brokiem.bedrockreplay.auth.Live;\nimport com.brokiem.bedrockrepl... | proxyServer.start(); | {} | {
"repository": "brokiem-BedrockReplay-adc9701",
"file": "src/main/java/com/brokiem/bedrockreplay/BedrockReplay.java",
"task_id": "project_cc_java/534"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/brokiem/bedrockreplay/BedrockReplay.java",
"groundtruth_start_lineno": 52,
"repository": "brokiem-BedrockReplay-adc9701",
"right_context_start_lineno": 53,
"task_id": "project_cc_java/534"
}
} |
cross_code_eval_java::project_cc_java/540 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/brokiem/bedrockreplay/bedrock/network/handler/downstream/DownstreamPacketHandler.java... | {
"prefix": "/*\n * Copyright (c) 2023 brokiem\n * This project is licensed under the MIT License\n */\n\npackage com.brokiem.bedrockreplay;\n\nimport com.alibaba.fastjson.JSONObject;\nimport com.brokiem.bedrockreplay.account.AccountManager;\nimport com.brokiem.bedrockreplay.auth.Live;\nimport com.brokiem.bedrockrepl... | OutputWindow.print("Successfully loaded your account!"); | {} | {
"repository": "brokiem-BedrockReplay-adc9701",
"file": "src/main/java/com/brokiem/bedrockreplay/BedrockReplay.java",
"task_id": "project_cc_java/540"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/brokiem/bedrockreplay/BedrockReplay.java",
"groundtruth_start_lineno": 71,
"repository": "brokiem-BedrockReplay-adc9701",
"right_context_start_lineno": 72,
"task_id": "project_cc_java/540"
}
} |
cross_code_eval_java::project_cc_java/584 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/net/burningtnt/webp/vp8l/transform/ColorTransform.java
// int green_to_re... | {
"prefix": "/*\n * Copyright (c) 2022, Harald Kuhr\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistributions of source code must retain the above copyright notice,\n * ... | raster.getSample(xC, y, 1); | {} | {
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"file": "src/main/java/net/burningtnt/webp/vp8l/transform/ColorIndexingTransform.java",
"task_id": "project_cc_java/584"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/burningtnt/webp/vp8l/transform/ColorIndexingTransform.java",
"groundtruth_start_lineno": 62,
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"right_context_start_lineno": 63,
"task_id": "project_cc_java/584"
}
} |
cross_code_eval_java::project_cc_java/539 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/brokiem/bedrockreplay/bedrock/server/ProxyServer.java
// if (isRunning) {
// ... | {
"prefix": "/*\n * Copyright (c) 2023 brokiem\n * This project is licensed under the MIT License\n */\n\npackage com.brokiem.bedrockreplay;\n\nimport com.alibaba.fastjson.JSONObject;\nimport com.brokiem.bedrockreplay.account.AccountManager;\nimport com.brokiem.bedrockreplay.auth.Live;\nimport com.brokiem.bedrockrepl... | OutputWindow.print("Done (took " + (System.currentTimeMillis() / 1000L - startTime) + "s)!"); | {} | {
"repository": "brokiem-BedrockReplay-adc9701",
"file": "src/main/java/com/brokiem/bedrockreplay/BedrockReplay.java",
"task_id": "project_cc_java/539"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/brokiem/bedrockreplay/BedrockReplay.java",
"groundtruth_start_lineno": 62,
"repository": "brokiem-BedrockReplay-adc9701",
"right_context_start_lineno": 63,
"task_id": "project_cc_java/539"
}
} |
cross_code_eval_java::project_cc_java/590 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/net/burningtnt/webp/vp8l/transform/SubtractGreenTransform.java
// rgb[0] = (byte)... | {
"prefix": "/*\n * Copyright (c) 2022, Harald Kuhr\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistributions of source code must retain the above copyright notice,\n * ... | raster.getDataElements(x, 0, rgba); | {} | {
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"file": "src/main/java/net/burningtnt/webp/vp8l/transform/PredictorTransform.java",
"task_id": "project_cc_java/590"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/burningtnt/webp/vp8l/transform/PredictorTransform.java",
"groundtruth_start_lineno": 88,
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"right_context_start_lineno": 89,
"task_id": "project_cc_java/590"
}
} |
cross_code_eval_java::project_cc_java/591 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/net/burningtnt/webp/vp8l/transform/SubtractGreenTransform.java
// rgb[0] = (byte)... | {
"prefix": "/*\n * Copyright (c) 2022, Harald Kuhr\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistributions of source code must retain the above copyright notice,\n * ... | raster.getDataElements(x - 1, 0, predictor); | {} | {
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"file": "src/main/java/net/burningtnt/webp/vp8l/transform/PredictorTransform.java",
"task_id": "project_cc_java/591"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/burningtnt/webp/vp8l/transform/PredictorTransform.java",
"groundtruth_start_lineno": 89,
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"right_context_start_lineno": 90,
"task_id": "project_cc_java/591"
}
} |
cross_code_eval_java::project_cc_java/527 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/brokiem/bedrockreplay/utils/Utils.java
// value >>= 8L;
// }
// ... | {
"prefix": "/*\n * Copyright (c) 2023 brokiem\n * This project is licensed under the MIT License\n */\n\npackage com.brokiem.bedrockreplay.auth;\n\nimport com.alibaba.fastjson.JSON;\nimport com.alibaba.fastjson.JSONObject;\nimport com.brokiem.bedrockreplay.auth.interfaces.DevicePollResult;\nimport com.brokiem.bedroc... | callback.onComplete(accessToken, refreshToken); | {} | {
"repository": "brokiem-BedrockReplay-adc9701",
"file": "src/main/java/com/brokiem/bedrockreplay/auth/Live.java",
"task_id": "project_cc_java/527"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/brokiem/bedrockreplay/auth/Live.java",
"groundtruth_start_lineno": 61,
"repository": "brokiem-BedrockReplay-adc9701",
"right_context_start_lineno": 62,
"task_id": "project_cc_java/527"
}
} |
cross_code_eval_java::project_cc_java/544 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/brokiem/bedrockreplay/auth/Live.java
// if (json.containsKey("error")) {
// ... | {
"prefix": "/*\n * Copyright (c) 2023 brokiem\n * This project is licensed under the MIT License\n */\n\npackage com.brokiem.bedrockreplay.auth;\n\nimport com.alibaba.fastjson.JSONObject;\nimport com.brokiem.bedrockreplay.bedrock.server.ProxyServer;\nimport com.brokiem.bedrockreplay.utils.FileManager;\nimport com.br... | FileManager.getFileContents(connection.getInputStream()); | {} | {
"repository": "brokiem-BedrockReplay-adc9701",
"file": "src/main/java/com/brokiem/bedrockreplay/auth/Xbox.java",
"task_id": "project_cc_java/544"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/brokiem/bedrockreplay/auth/Xbox.java",
"groundtruth_start_lineno": 82,
"repository": "brokiem-BedrockReplay-adc9701",
"right_context_start_lineno": 83,
"task_id": "project_cc_java/544"
}
} |
cross_code_eval_java::project_cc_java/541 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/brokiem/bedrockreplay/utils/FileManager.java
// String line;
// ... | {
"prefix": "/*\n * Copyright (c) 2023 brokiem\n * This project is licensed under the MIT License\n */\n\npackage com.brokiem.bedrockreplay;\n\nimport com.alibaba.fastjson.JSONObject;\nimport com.brokiem.bedrockreplay.account.AccountManager;\nimport com.brokiem.bedrockreplay.auth.Live;\nimport com.brokiem.bedrockrepl... | OutputWindow.print("Failed to load your account, please authenticate with your Microsoft account again."); | {} | {
"repository": "brokiem-BedrockReplay-adc9701",
"file": "src/main/java/com/brokiem/bedrockreplay/BedrockReplay.java",
"task_id": "project_cc_java/541"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/brokiem/bedrockreplay/BedrockReplay.java",
"groundtruth_start_lineno": 74,
"repository": "brokiem-BedrockReplay-adc9701",
"right_context_start_lineno": 75,
"task_id": "project_cc_java/541"
}
} |
cross_code_eval_java::project_cc_java/547 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/brokiem/bedrockreplay/utils/FileManager.java
// }
// byteArra... | {
"prefix": "/*\n * Copyright (c) 2023 brokiem\n * This project is licensed under the MIT License\n */\n\npackage com.brokiem.bedrockreplay.auth;\n\nimport com.alibaba.fastjson.JSONObject;\nimport com.brokiem.bedrockreplay.bedrock.server.ProxyServer;\nimport com.brokiem.bedrockreplay.utils.FileManager;\nimport com.br... | Utils.toByteArray(currentTime)); | {} | {
"repository": "brokiem-BedrockReplay-adc9701",
"file": "src/main/java/com/brokiem/bedrockreplay/auth/Xbox.java",
"task_id": "project_cc_java/547"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/brokiem/bedrockreplay/auth/Xbox.java",
"groundtruth_start_lineno": 166,
"repository": "brokiem-BedrockReplay-adc9701",
"right_context_start_lineno": 167,
"task_id": "project_cc_java/547"
}
} |
cross_code_eval_java::project_cc_java/542 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/brokiem/bedrockreplay/replay/ReplayData.java
// executor.shutdown();
// ... | {
"prefix": "/*\n * Copyright (c) 2023 brokiem\n * This project is licensed under the MIT License\n */\n\npackage com.brokiem.bedrockreplay;\n\nimport com.alibaba.fastjson.JSONObject;\nimport com.brokiem.bedrockreplay.account.AccountManager;\nimport com.brokiem.bedrockreplay.auth.Live;\nimport com.brokiem.bedrockrepl... | OutputWindow.print("First time running BedrockReplay, please authenticate with your Microsoft account first."); | {} | {
"repository": "brokiem-BedrockReplay-adc9701",
"file": "src/main/java/com/brokiem/bedrockreplay/BedrockReplay.java",
"task_id": "project_cc_java/542"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/brokiem/bedrockreplay/BedrockReplay.java",
"groundtruth_start_lineno": 78,
"repository": "brokiem-BedrockReplay-adc9701",
"right_context_start_lineno": 79,
"task_id": "project_cc_java/542"
}
} |
cross_code_eval_java::project_cc_java/596 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/net/burningtnt/webp/vp8l/transform/SubtractGreenTransform.java
// rgb[0] = (byte)... | {
"prefix": "/*\n * Copyright (c) 2022, Harald Kuhr\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistributions of source code must retain the above copyright notice,\n * ... | int transformType = data.getSample(x >> bits, y >> bits, 1); | {} | {
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"file": "src/main/java/net/burningtnt/webp/vp8l/transform/PredictorTransform.java",
"task_id": "project_cc_java/596"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/burningtnt/webp/vp8l/transform/PredictorTransform.java",
"groundtruth_start_lineno": 104,
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"right_context_start_lineno": 105,
"task_id": "project_cc_java/596"
}
} |
cross_code_eval_java::project_cc_java/546 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/brokiem/bedrockreplay/bedrock/server/ProxyServer.java
// if (isRunning) {
// ... | {
"prefix": "/*\n * Copyright (c) 2023 brokiem\n * This project is licensed under the MIT License\n */\n\npackage com.brokiem.bedrockreplay.auth;\n\nimport com.alibaba.fastjson.JSONObject;\nimport com.brokiem.bedrockreplay.bedrock.server.ProxyServer;\nimport com.brokiem.bedrockreplay.utils.FileManager;\nimport com.br... | return FileManager.getFileContents(connection.getInputStream()); | {} | {
"repository": "brokiem-BedrockReplay-adc9701",
"file": "src/main/java/com/brokiem/bedrockreplay/auth/Xbox.java",
"task_id": "project_cc_java/546"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/brokiem/bedrockreplay/auth/Xbox.java",
"groundtruth_start_lineno": 142,
"repository": "brokiem-BedrockReplay-adc9701",
"right_context_start_lineno": 143,
"task_id": "project_cc_java/546"
}
} |
cross_code_eval_java::project_cc_java/550 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/brokiem/bedrockreplay/BedrockReplay.java
// FileManager.write... | {
"prefix": "/**\n * Copyright (c) 2023 brokiem\n * This project is licensed under the MIT License\n */\n\npackage com.brokiem.bedrockreplay.replay;\n\nimport com.brokiem.bedrockreplay.bedrock.player.cache.PlayerPacketCache;\nimport com.brokiem.bedrockreplay.replay.server.ReplayViewerServer;\nimport com.brokiem.bedro... | callback.onFailure("Failed to save replay: " + e.getMessage()); | {} | {
"repository": "brokiem-BedrockReplay-adc9701",
"file": "src/main/java/com/brokiem/bedrockreplay/replay/ReplayData.java",
"task_id": "project_cc_java/550"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/brokiem/bedrockreplay/replay/ReplayData.java",
"groundtruth_start_lineno": 132,
"repository": "brokiem-BedrockReplay-adc9701",
"right_context_start_lineno": 133,
"task_id": "project_cc_java/550"
}
} |
cross_code_eval_java::project_cc_java/554 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/brokiem/bedrockreplay/auth/Xbox.java
// //so sometimes getAffineX/Y toByteArray r... | {
"prefix": "/*\n * Copyright (c) 2023 brokiem\n * This project is licensed under the MIT License\n */\n\npackage com.brokiem.bedrockreplay.bedrock.player;\n\nimport com.alibaba.fastjson.JSONArray;\nimport com.alibaba.fastjson.JSONObject;\nimport com.brokiem.bedrockreplay.account.AccountManager;\nimport com.brokiem.b... | = xbox.getDeviceToken((ECPublicKey) this.keyPair.getPublic(), (ECPrivateKey) this.keyPair.getPrivate()); | {} | {
"repository": "brokiem-BedrockReplay-adc9701",
"file": "src/main/java/com/brokiem/bedrockreplay/bedrock/player/ProxiedPlayer.java",
"task_id": "project_cc_java/554"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/brokiem/bedrockreplay/bedrock/player/ProxiedPlayer.java",
"groundtruth_start_lineno": 157,
"repository": "brokiem-BedrockReplay-adc9701",
"right_context_start_lineno": 158,
"task_id": "project_cc_java/554"
}
} |
cross_code_eval_java::project_cc_java/556 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/brokiem/bedrockreplay/utils/JwtUtils.java
// URI x5u = URI.create(publicKeyBa... | {
"prefix": "/*\n * Copyright (c) 2023 brokiem\n * This project is licensed under the MIT License\n */\n\npackage com.brokiem.bedrockreplay.bedrock.player;\n\nimport com.alibaba.fastjson.JSONArray;\nimport com.alibaba.fastjson.JSONObject;\nimport com.brokiem.bedrockreplay.account.AccountManager;\nimport com.brokiem.b... | xbox.requestMinecraftChain(xsts, (ECPublicKey) this.keyPair.getPublic()); | {} | {
"repository": "brokiem-BedrockReplay-adc9701",
"file": "src/main/java/com/brokiem/bedrockreplay/bedrock/player/ProxiedPlayer.java",
"task_id": "project_cc_java/556"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/brokiem/bedrockreplay/bedrock/player/ProxiedPlayer.java",
"groundtruth_start_lineno": 161,
"repository": "brokiem-BedrockReplay-adc9701",
"right_context_start_lineno": 162,
"task_id": "project_cc_java/556"
}
} |
cross_code_eval_java::project_cc_java/603 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/net/burningtnt/webp/vp8l/transform/SubtractGreenTransform.java
// rgb[0] = (byte)... | {
"prefix": "/*\n * Copyright (c) 2022, Harald Kuhr\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistributions of source code must retain the above copyright notice,\n * ... | raster.getDataElements(trX, trY, predictor2); | {} | {
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"file": "src/main/java/net/burningtnt/webp/vp8l/transform/PredictorTransform.java",
"task_id": "project_cc_java/603"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/burningtnt/webp/vp8l/transform/PredictorTransform.java",
"groundtruth_start_lineno": 136,
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"right_context_start_lineno": 137,
"task_id": "project_cc_java/603"
}
} |
cross_code_eval_java::project_cc_java/553 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/brokiem/bedrockreplay/bedrock/network/handler/downstream/DownstreamPacketHandler.java... | {
"prefix": "/**\n * Copyright (c) 2023 brokiem\n * This project is licensed under the MIT License\n */\n\npackage com.brokiem.bedrockreplay.replay.server;\n\nimport com.brokiem.bedrockreplay.bedrock.data.BedrockData;\nimport com.brokiem.bedrockreplay.bedrock.network.registry.FakeDefinitionRegistry;\nimport com.broki... | CODEC_HELPER.setBlockDefinitions(FakeDefinitionRegistry.createBlockRegistry()); | {} | {
"repository": "brokiem-BedrockReplay-adc9701",
"file": "src/main/java/com/brokiem/bedrockreplay/replay/server/ReplayViewerServer.java",
"task_id": "project_cc_java/553"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/brokiem/bedrockreplay/replay/server/ReplayViewerServer.java",
"groundtruth_start_lineno": 77,
"repository": "brokiem-BedrockReplay-adc9701",
"right_context_start_lineno": 78,
"task_id": "project_cc_java/553"
}
} |
cross_code_eval_java::project_cc_java/616 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/net/burningtnt/webp/vp8l/transform/SubtractGreenTransform.java
// rgb[0] = (byte)... | {
"prefix": "/*\n * Copyright (c) 2022, Harald Kuhr\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistributions of source code must retain the above copyright notice,\n * ... | raster.getDataElements(trX, trY, predictor3); | {} | {
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"file": "src/main/java/net/burningtnt/webp/vp8l/transform/PredictorTransform.java",
"task_id": "project_cc_java/616"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/burningtnt/webp/vp8l/transform/PredictorTransform.java",
"groundtruth_start_lineno": 176,
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"right_context_start_lineno": 177,
"task_id": "project_cc_java/616"
}
} |
cross_code_eval_java::project_cc_java/555 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/brokiem/bedrockreplay/auth/Xbox.java
// bytesToSign.write(new byte[]{0, 0, 0,... | {
"prefix": "/*\n * Copyright (c) 2023 brokiem\n * This project is licensed under the MIT License\n */\n\npackage com.brokiem.bedrockreplay.bedrock.player;\n\nimport com.alibaba.fastjson.JSONArray;\nimport com.alibaba.fastjson.JSONObject;\nimport com.brokiem.bedrockreplay.account.AccountManager;\nimport com.brokiem.b... | xbox.getXBLToken((ECPublicKey) this.keyPair.getPublic(), (ECPrivateKey) this.keyPair.getPrivate(), deviceToken); | {} | {
"repository": "brokiem-BedrockReplay-adc9701",
"file": "src/main/java/com/brokiem/bedrockreplay/bedrock/player/ProxiedPlayer.java",
"task_id": "project_cc_java/555"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/brokiem/bedrockreplay/bedrock/player/ProxiedPlayer.java",
"groundtruth_start_lineno": 158,
"repository": "brokiem-BedrockReplay-adc9701",
"right_context_start_lineno": 159,
"task_id": "project_cc_java/555"
}
} |
cross_code_eval_java::project_cc_java/598 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/net/burningtnt/webp/vp8l/transform/ColorIndexingTransform.java
// int com... | {
"prefix": "/*\n * Copyright (c) 2022, Harald Kuhr\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistributions of source code must retain the above copyright notice,\n * ... | raster.getDataElements(lX, y, predictor); | {} | {
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"file": "src/main/java/net/burningtnt/webp/vp8l/transform/PredictorTransform.java",
"task_id": "project_cc_java/598"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/burningtnt/webp/vp8l/transform/PredictorTransform.java",
"groundtruth_start_lineno": 119,
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"right_context_start_lineno": 120,
"task_id": "project_cc_java/598"
}
} |
cross_code_eval_java::project_cc_java/604 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/net/burningtnt/webp/vp8l/transform/SubtractGreenTransform.java
// rgb[0] = (byte)... | {
"prefix": "/*\n * Copyright (c) 2022, Harald Kuhr\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistributions of source code must retain the above copyright notice,\n * ... | raster.getDataElements(x, tY, predictor2); | {} | {
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"file": "src/main/java/net/burningtnt/webp/vp8l/transform/PredictorTransform.java",
"task_id": "project_cc_java/604"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/burningtnt/webp/vp8l/transform/PredictorTransform.java",
"groundtruth_start_lineno": 138,
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"right_context_start_lineno": 139,
"task_id": "project_cc_java/604"
}
} |
cross_code_eval_java::project_cc_java/619 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/net/burningtnt/webp/vp8l/transform/SubtractGreenTransform.java
// rgb[0] = (byte)... | {
"prefix": "/*\n * Copyright (c) 2022, Harald Kuhr\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistributions of source code must retain the above copyright notice,\n * ... | raster.getDataElements(lX, tY, predictor3); | {} | {
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"file": "src/main/java/net/burningtnt/webp/vp8l/transform/PredictorTransform.java",
"task_id": "project_cc_java/619"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/burningtnt/webp/vp8l/transform/PredictorTransform.java",
"groundtruth_start_lineno": 186,
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"right_context_start_lineno": 187,
"task_id": "project_cc_java/619"
}
} |
cross_code_eval_java::project_cc_java/627 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/net/burningtnt/webp/vp8l/huffman/HuffmanTable.java
// );
// ... | {
"prefix": "/*\n * Copyright (c) 2017, Harald Kuhr\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistributions of source code must retain the above copyright notice,\n * ... | lsbBitInputStream.readBits(14); | {} | {
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"file": "src/main/java/net/burningtnt/webp/vp8l/VP8LDecoder.java",
"task_id": "project_cc_java/627"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/burningtnt/webp/vp8l/VP8LDecoder.java",
"groundtruth_start_lineno": 113,
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"right_context_start_lineno": 114,
"task_id": "project_cc_java/627"
}
} |
cross_code_eval_java::project_cc_java/633 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/net/burningtnt/webp/vp8l/huffman/HuffmanCodeGroup.java
// distanceCode = new Huff... | {
"prefix": "/*\n * Copyright (c) 2017, Harald Kuhr\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistributions of source code must retain the above copyright notice,\n * ... | colorCacheBits = (int) lsbBitReader.readBits(4); | {} | {
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"file": "src/main/java/net/burningtnt/webp/vp8l/VP8LDecoder.java",
"task_id": "project_cc_java/633"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/burningtnt/webp/vp8l/VP8LDecoder.java",
"groundtruth_start_lineno": 140,
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"right_context_start_lineno": 141,
"task_id": "project_cc_java/633"
}
} |
cross_code_eval_java::project_cc_java/629 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/net/burningtnt/webp/vp8l/huffman/HuffmanTable.java
// );
// ... | {
"prefix": "/*\n * Copyright (c) 2017, Harald Kuhr\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistributions of source code must retain the above copyright notice,\n * ... | lsbBitInputStream.readBit(); | {} | {
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"file": "src/main/java/net/burningtnt/webp/vp8l/VP8LDecoder.java",
"task_id": "project_cc_java/629"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/burningtnt/webp/vp8l/VP8LDecoder.java",
"groundtruth_start_lineno": 115,
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"right_context_start_lineno": 116,
"task_id": "project_cc_java/629"
}
} |
cross_code_eval_java::project_cc_java/630 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/net/burningtnt/webp/vp8l/huffman/HuffmanTable.java
// } else {
// cod... | {
"prefix": "/*\n * Copyright (c) 2017, Harald Kuhr\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistributions of source code must retain the above copyright notice,\n * ... | (int) lsbBitInputStream.readBits(3) != 0) { | {} | {
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"file": "src/main/java/net/burningtnt/webp/vp8l/VP8LDecoder.java",
"task_id": "project_cc_java/630"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/burningtnt/webp/vp8l/VP8LDecoder.java",
"groundtruth_start_lineno": 117,
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"right_context_start_lineno": 118,
"task_id": "project_cc_java/630"
}
} |
cross_code_eval_java::project_cc_java/634 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/net/burningtnt/webp/utils/LSBBitInputStream.java
// byte readByte = (byte) in... | {
"prefix": "/*\n * Copyright (c) 2017, Harald Kuhr\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistributions of source code must retain the above copyright notice,\n * ... | + (int) lsbBitReader.readBits(extraBits) + 1; | {} | {
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"file": "src/main/java/net/burningtnt/webp/vp8l/VP8LDecoder.java",
"task_id": "project_cc_java/634"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/burningtnt/webp/vp8l/VP8LDecoder.java",
"groundtruth_start_lineno": 298,
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"right_context_start_lineno": 299,
"task_id": "project_cc_java/634"
}
} |
cross_code_eval_java::project_cc_java/635 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/net/burningtnt/webp/vp8l/huffman/HuffmanTable.java
// } else {
// cod... | {
"prefix": "/*\n * Copyright (c) 2017, Harald Kuhr\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistributions of source code must retain the above copyright notice,\n * ... | int transformType = (int) lsbBitReader.readBits(2); | {} | {
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"file": "src/main/java/net/burningtnt/webp/vp8l/VP8LDecoder.java",
"task_id": "project_cc_java/635"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/burningtnt/webp/vp8l/VP8LDecoder.java",
"groundtruth_start_lineno": 303,
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"right_context_start_lineno": 304,
"task_id": "project_cc_java/635"
}
} |
cross_code_eval_java::project_cc_java/641 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/net/burningtnt/webp/vp8l/huffman/HuffmanCodeGroup.java
// distanceCode = new Huff... | {
"prefix": "/*\n * Copyright (c) 2017, Harald Kuhr\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistributions of source code must retain the above copyright notice,\n * ... | decodeRaster = RGBABuffer.createRelativeImage(raster, 0, 0, xSize, height); | {} | {
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"file": "src/main/java/net/burningtnt/webp/vp8l/VP8LDecoder.java",
"task_id": "project_cc_java/641"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/burningtnt/webp/vp8l/VP8LDecoder.java",
"groundtruth_start_lineno": 159,
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"right_context_start_lineno": 160,
"task_id": "project_cc_java/641"
}
} |
cross_code_eval_java::project_cc_java/638 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/net/burningtnt/webp/vp8l/huffman/HuffmanInfo.java
// this.huffmanMetaCodes = huff... | {
"prefix": "/*\n * Copyright (c) 2017, Harald Kuhr\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistributions of source code must retain the above copyright notice,\n * ... | && lsbBitReader.readBit() == 1) { | {} | {
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"file": "src/main/java/net/burningtnt/webp/vp8l/VP8LDecoder.java",
"task_id": "project_cc_java/638"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/burningtnt/webp/vp8l/VP8LDecoder.java",
"groundtruth_start_lineno": 399,
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"right_context_start_lineno": 400,
"task_id": "project_cc_java/638"
}
} |
cross_code_eval_java::project_cc_java/640 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/net/burningtnt/webp/vp8l/huffman/HuffmanTable.java
// } else {
// cod... | {
"prefix": "/*\n * Copyright (c) 2017, Harald Kuhr\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistributions of source code must retain the above copyright notice,\n * ... | RGBABuffer outputBuffer = RGBABuffer.createAbsoluteImage(width, height); | {} | {
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"file": "src/main/java/net/burningtnt/webp/vp8l/VP8LDecoder.java",
"task_id": "project_cc_java/640"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/burningtnt/webp/vp8l/VP8LDecoder.java",
"groundtruth_start_lineno": 121,
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"right_context_start_lineno": 122,
"task_id": "project_cc_java/640"
}
} |
cross_code_eval_java::project_cc_java/636 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/net/burningtnt/webp/vp8l/transform/PredictorTransform.java
// bre... | {
"prefix": "/*\n * Copyright (c) 2017, Harald Kuhr\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistributions of source code must retain the above copyright notice,\n * ... | byte) (lsbBitReader.readBits(3) + 2); | {} | {
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"file": "src/main/java/net/burningtnt/webp/vp8l/VP8LDecoder.java",
"task_id": "project_cc_java/636"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/burningtnt/webp/vp8l/VP8LDecoder.java",
"groundtruth_start_lineno": 311,
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"right_context_start_lineno": 312,
"task_id": "project_cc_java/636"
}
} |
cross_code_eval_java::project_cc_java/637 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/net/burningtnt/webp/vp8l/transform/PredictorTransform.java
// ras... | {
"prefix": "/*\n * Copyright (c) 2017, Harald Kuhr\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistributions of source code must retain the above copyright notice,\n * ... | colorTableSize = ((int) lsbBitReader.readBits(8)) + 1; | {} | {
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"file": "src/main/java/net/burningtnt/webp/vp8l/VP8LDecoder.java",
"task_id": "project_cc_java/637"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/burningtnt/webp/vp8l/VP8LDecoder.java",
"groundtruth_start_lineno": 336,
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"right_context_start_lineno": 337,
"task_id": "project_cc_java/637"
}
} |
cross_code_eval_java::project_cc_java/717 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/ckmu32/service/MessageService.java
// var isBroadcaster = badges.contains("broadca... | {
"prefix": "package com.ckmu32;\n\nimport java.io.FileInputStream;\nimport java.io.IOException;\nimport java.util.Arrays;\nimport java.util.Properties;\n\nimport com.ckmu32.config.ConfigVariables;\nimport com.ckmu32.service.TwitchChatService;\n\n/**\n * Hello world!\n *\n */\npublic class App {\n private static f... | configVariables.setClientID(System.getenv("BOT_CLIENT_ID")); | {} | {
"repository": "ckmu32-Bot-Checker-c582a74",
"file": "src/main/java/com/ckmu32/App.java",
"task_id": "project_cc_java/717"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/ckmu32/App.java",
"groundtruth_start_lineno": 52,
"repository": "ckmu32-Bot-Checker-c582a74",
"right_context_start_lineno": 53,
"task_id": "project_cc_java/717"
}
} |
cross_code_eval_java::project_cc_java/639 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/net/burningtnt/webp/vp8l/huffman/HuffmanInfo.java
// this.huffmanMetaCodes = huff... | {
"prefix": "/*\n * Copyright (c) 2017, Harald Kuhr\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistributions of source code must retain the above copyright notice,\n * ... | (int) lsbBitReader.readBits(3) + 2; | {} | {
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"file": "src/main/java/net/burningtnt/webp/vp8l/VP8LDecoder.java",
"task_id": "project_cc_java/639"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/burningtnt/webp/vp8l/VP8LDecoder.java",
"groundtruth_start_lineno": 401,
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"right_context_start_lineno": 402,
"task_id": "project_cc_java/639"
}
} |
cross_code_eval_java::project_cc_java/715 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/ckmu32/service/TwitchChatService.java
// if (twitchAPI.banChatter... | {
"prefix": "package com.ckmu32;\n\nimport java.io.FileInputStream;\nimport java.io.IOException;\nimport java.util.Arrays;\nimport java.util.Properties;\n\nimport com.ckmu32.config.ConfigVariables;\nimport com.ckmu32.service.TwitchChatService;\n\n/**\n * Hello world!\n *\n */\npublic class App {\n private static f... | configVariables.setUser(System.getenv("BOT_USER")); | {} | {
"repository": "ckmu32-Bot-Checker-c582a74",
"file": "src/main/java/com/ckmu32/App.java",
"task_id": "project_cc_java/715"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/ckmu32/App.java",
"groundtruth_start_lineno": 50,
"repository": "ckmu32-Bot-Checker-c582a74",
"right_context_start_lineno": 51,
"task_id": "project_cc_java/715"
}
} |
cross_code_eval_java::project_cc_java/648 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/net/burningtnt/webp/vp8l/transform/PredictorTransform.java
// bre... | {
"prefix": "/*\n * Copyright (c) 2017, Harald Kuhr\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistributions of source code must retain the above copyright notice,\n * ... | RGBABuffer.createAbsoluteImage(blockWidth, blockHeight); | {} | {
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"file": "src/main/java/net/burningtnt/webp/vp8l/VP8LDecoder.java",
"task_id": "project_cc_java/648"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/burningtnt/webp/vp8l/VP8LDecoder.java",
"groundtruth_start_lineno": 317,
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"right_context_start_lineno": 318,
"task_id": "project_cc_java/648"
}
} |
cross_code_eval_java::project_cc_java/649 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/net/burningtnt/webp/vp8l/huffman/HuffmanTable.java
// * table and value as the index of ... | {
"prefix": "/*\n * Copyright (c) 2017, Harald Kuhr\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistributions of source code must retain the above copyright notice,\n * ... | RGBABuffer colorTableRGBABuffer = RGBABuffer.createAbsoluteImage(colorTableSize, 1); | {} | {
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"file": "src/main/java/net/burningtnt/webp/vp8l/VP8LDecoder.java",
"task_id": "project_cc_java/649"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/burningtnt/webp/vp8l/VP8LDecoder.java",
"groundtruth_start_lineno": 352,
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"right_context_start_lineno": 353,
"task_id": "project_cc_java/649"
}
} |
cross_code_eval_java::project_cc_java/646 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/net/burningtnt/webp/vp8l/transform/PredictorTransform.java
// bre... | {
"prefix": "/*\n * Copyright (c) 2017, Harald Kuhr\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistributions of source code must retain the above copyright notice,\n * ... | raster.getDataElements(x1, ySrc, rgba); | {} | {
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"file": "src/main/java/net/burningtnt/webp/vp8l/VP8LDecoder.java",
"task_id": "project_cc_java/646"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/burningtnt/webp/vp8l/VP8LDecoder.java",
"groundtruth_start_lineno": 275,
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"right_context_start_lineno": 276,
"task_id": "project_cc_java/646"
}
} |
cross_code_eval_java::project_cc_java/631 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/net/burningtnt/webp/vp8l/transform/SubtractGreenTransform.java
// byte[] rgba = n... | {
"prefix": "/*\n * Copyright (c) 2017, Harald Kuhr\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistributions of source code must retain the above copyright notice,\n * ... | topLevel && lsbBitReader.readBit() == 1) { | {} | {
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"file": "src/main/java/net/burningtnt/webp/vp8l/VP8LDecoder.java",
"task_id": "project_cc_java/631"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/burningtnt/webp/vp8l/VP8LDecoder.java",
"groundtruth_start_lineno": 133,
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"right_context_start_lineno": 134,
"task_id": "project_cc_java/631"
}
} |
cross_code_eval_java::project_cc_java/650 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/net/burningtnt/webp/vp8l/transform/PredictorTransform.java
// }
// // (0,... | {
"prefix": "/*\n * Copyright (c) 2017, Harald Kuhr\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistributions of source code must retain the above copyright notice,\n * ... | colorTableRGBABuffer.getDataElements(x, 0, colorTableRGBACopyBuffer); | {} | {
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"file": "src/main/java/net/burningtnt/webp/vp8l/VP8LDecoder.java",
"task_id": "project_cc_java/650"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/burningtnt/webp/vp8l/VP8LDecoder.java",
"groundtruth_start_lineno": 362,
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"right_context_start_lineno": 363,
"task_id": "project_cc_java/650"
}
} |
cross_code_eval_java::project_cc_java/726 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/ckmu32/config/ConfigVariables.java
// }
// public void setChattersToIgnore(Li... | {
"prefix": "package com.ckmu32.service;\n\nimport java.io.IOException;\nimport java.net.URI;\nimport java.text.MessageFormat;\nimport java.util.HashMap;\nimport java.util.List;\nimport java.util.Map;\nimport java.util.StringJoiner;\nimport java.util.concurrent.ExecutorService;\nimport java.util.concurrent.Executors;... | userID = twitchAPI.getUserID(user).orElse(""); | {} | {
"repository": "ckmu32-Bot-Checker-c582a74",
"file": "src/main/java/com/ckmu32/service/TwitchChatService.java",
"task_id": "project_cc_java/726"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/ckmu32/service/TwitchChatService.java",
"groundtruth_start_lineno": 57,
"repository": "ckmu32-Bot-Checker-c582a74",
"right_context_start_lineno": 58,
"task_id": "project_cc_java/726"
}
} |
cross_code_eval_java::project_cc_java/655 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/net/burningtnt/webp/vp8l/transform/ColorIndexingTransform.java
// int com... | {
"prefix": "/*\n * Copyright (c) 2017, Harald Kuhr\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistributions of source code must retain the above copyright notice,\n * ... | int argb = colorCache.lookup(code - 256 - 24); | {} | {
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"file": "src/main/java/net/burningtnt/webp/vp8l/VP8LDecoder.java",
"task_id": "project_cc_java/655"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/net/burningtnt/webp/vp8l/VP8LDecoder.java",
"groundtruth_start_lineno": 216,
"repository": "burningtnt-SimpleWEBP-0bdd60c",
"right_context_start_lineno": 217,
"task_id": "project_cc_java/655"
}
} |
cross_code_eval_java::project_cc_java/724 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/ckmu32/service/MessageService.java
// continue;
// if(userIDMap.containsKey(... | {
"prefix": "package com.ckmu32.service;\n\nimport java.io.IOException;\nimport java.net.URI;\nimport java.text.MessageFormat;\nimport java.util.HashMap;\nimport java.util.List;\nimport java.util.Map;\nimport java.util.StringJoiner;\nimport java.util.concurrent.ExecutorService;\nimport java.util.concurrent.Executors;... | = botsAPI.getOnlineBots(); | {} | {
"repository": "ckmu32-Bot-Checker-c582a74",
"file": "src/main/java/com/ckmu32/service/TwitchChatService.java",
"task_id": "project_cc_java/724"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/ckmu32/service/TwitchChatService.java",
"groundtruth_start_lineno": 137,
"repository": "ckmu32-Bot-Checker-c582a74",
"right_context_start_lineno": 138,
"task_id": "project_cc_java/724"
}
} |
cross_code_eval_java::project_cc_java/723 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/ckmu32/service/TwitchChatService.java
// message.channel()));... | {
"prefix": "package com.ckmu32.service;\n\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.List;\nimport java.util.Map;\nimport java.util.Optional;\nimport java.util.stream.Collectors;\n\nimport com.ckmu32.api.TwitchAPI;\nimport com.ckmu32.model.TwitchJoinMessage;\nimport com.ckmu32.model.Twi... | twitchAPI.getUserID(userName.trim()); | {} | {
"repository": "ckmu32-Bot-Checker-c582a74",
"file": "src/main/java/com/ckmu32/service/MessageService.java",
"task_id": "project_cc_java/723"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/ckmu32/service/MessageService.java",
"groundtruth_start_lineno": 100,
"repository": "ckmu32-Bot-Checker-c582a74",
"right_context_start_lineno": 101,
"task_id": "project_cc_java/723"
}
} |
cross_code_eval_java::project_cc_java/727 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/ckmu32/config/ConfigVariables.java
// public String getToken() {
// retur... | {
"prefix": "package com.ckmu32.service;\n\nimport java.io.IOException;\nimport java.net.URI;\nimport java.text.MessageFormat;\nimport java.util.HashMap;\nimport java.util.List;\nimport java.util.Map;\nimport java.util.StringJoiner;\nimport java.util.concurrent.ExecutorService;\nimport java.util.concurrent.Executors;... | broadcasterID = twitchAPI.getUserID(channel.trim()); | {} | {
"repository": "ckmu32-Bot-Checker-c582a74",
"file": "src/main/java/com/ckmu32/service/TwitchChatService.java",
"task_id": "project_cc_java/727"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/ckmu32/service/TwitchChatService.java",
"groundtruth_start_lineno": 63,
"repository": "ckmu32-Bot-Checker-c582a74",
"right_context_start_lineno": 64,
"task_id": "project_cc_java/727"
}
} |
cross_code_eval_java::project_cc_java/658 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// template-generator-maven-plugin/src/main/java/org/camunda/community/template/generator/Generator.java
/... | {
"prefix": "package org.camunda.community.template.generator;\n\nimport java.net.MalformedURLException;\nimport java.net.URL;\nimport org.apache.maven.artifact.DependencyResolutionRequiredException;\nimport org.apache.maven.plugin.AbstractMojo;\nimport org.apache.maven.plugin.MojoExecutionException;\nimport org.apac... | Generator().generate(schemaVersion, scanPackages, outputDir, skipValidation); | {} | {
"repository": "camunda-community-hub-camunda-modeler-template-generator-155826e",
"file": "template-generator-maven-plugin/src/main/java/org/camunda/community/template/generator/GeneratorPlugin.java",
"task_id": "project_cc_java/658"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "template-generator-maven-plugin/src/main/java/org/camunda/community/template/generator/GeneratorPlugin.java",
"groundtruth_start_lineno": 49,
"repository": "camunda-community-hub-camunda-modeler-template-generator-155826e",
"right_context_start_l... |
cross_code_eval_java::project_cc_java/661 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// template-generator-maven-plugin/src/main/java/org/camunda/community/template/generator/objectmodel/Temp... | {
"prefix": "package org.camunda.community.template.generator;\n\nimport io.github.classgraph.*;\nimport java.util.*;\nimport java.util.AbstractMap.SimpleEntry;\nimport org.camunda.community.template.generator.objectmodel.*;\nimport org.camunda.community.template.generator.objectmodel.Choice;\nimport org.camunda.comm... | template.setTemplateName(templateName); | {} | {
"repository": "camunda-community-hub-camunda-modeler-template-generator-155826e",
"file": "template-generator-maven-plugin/src/main/java/org/camunda/community/template/generator/GeneratorParser.java",
"task_id": "project_cc_java/661"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "template-generator-maven-plugin/src/main/java/org/camunda/community/template/generator/GeneratorParser.java",
"groundtruth_start_lineno": 193,
"repository": "camunda-community-hub-camunda-modeler-template-generator-155826e",
"right_context_start_... |
cross_code_eval_java::project_cc_java/660 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// template-generator-maven-plugin/src/test/java/org/camunda/community/template/generator/test/GeneratorTe... | {
"prefix": "package org.camunda.community.template.generator;\n\nimport io.github.classgraph.*;\nimport java.util.*;\nimport java.util.AbstractMap.SimpleEntry;\nimport org.camunda.community.template.generator.objectmodel.*;\nimport org.camunda.community.template.generator.objectmodel.Choice;\nimport org.camunda.comm... | template.setAppliesTo((String[]) methodParameters.get(APPLIES_TO)); | {} | {
"repository": "camunda-community-hub-camunda-modeler-template-generator-155826e",
"file": "template-generator-maven-plugin/src/main/java/org/camunda/community/template/generator/GeneratorParser.java",
"task_id": "project_cc_java/660"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "template-generator-maven-plugin/src/main/java/org/camunda/community/template/generator/GeneratorParser.java",
"groundtruth_start_lineno": 189,
"repository": "camunda-community-hub-camunda-modeler-template-generator-155826e",
"right_context_start_... |
cross_code_eval_java::project_cc_java/659 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// template-generator-core/src/main/java/org/camunda/community/template/generator/Template.java
// * clas... | {
"prefix": "package org.camunda.community.template.generator;\n\nimport io.github.classgraph.*;\nimport java.util.*;\nimport java.util.AbstractMap.SimpleEntry;\nimport org.camunda.community.template.generator.objectmodel.*;\nimport org.camunda.community.template.generator.objectmodel.Choice;\nimport org.camunda.comm... | template.setEntriesVisible(((Boolean) (methodParameters.get(ENTRIES_VISIBLE))).booleanValue()); | {} | {
"repository": "camunda-community-hub-camunda-modeler-template-generator-155826e",
"file": "template-generator-maven-plugin/src/main/java/org/camunda/community/template/generator/GeneratorParser.java",
"task_id": "project_cc_java/659"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "template-generator-maven-plugin/src/main/java/org/camunda/community/template/generator/GeneratorParser.java",
"groundtruth_start_lineno": 187,
"repository": "camunda-community-hub-camunda-modeler-template-generator-155826e",
"right_context_start_... |
cross_code_eval_java::project_cc_java/748 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/software/coley/treemap/content/HierarchicalTreeContent.java
// TreeMapPane<TreeContent> ... | {
"prefix": "package software.coley.treemap.content;\n\nimport javafx.beans.property.ListProperty;\nimport javafx.beans.value.ObservableValue;\nimport software.coley.treemap.TreeMapPane;\n\nimport javax.annotation.Nonnull;\n\n/**\n * Simple implementation of {@link HierarchicalTreeContent}.\n *\n * @author Matt Coley... | treeMapPane = TreeMapPane.forTreeContent(); | {} | {
"repository": "Col-E-TreeMapFX-226ef8c",
"file": "src/main/java/software/coley/treemap/content/SimpleHierarchicalTreeContent.java",
"task_id": "project_cc_java/748"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/software/coley/treemap/content/SimpleHierarchicalTreeContent.java",
"groundtruth_start_lineno": 30,
"repository": "Col-E-TreeMapFX-226ef8c",
"right_context_start_lineno": 31,
"task_id": "project_cc_java/748"
}
} |
cross_code_eval_java::project_cc_java/750 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// therlock/src/main/java/com/conena/therlock/BlockedThreadDetectorBuilder.java
// @Nullable
// pr... | {
"prefix": "/*\n * Copyright (C) 2023 Fabian Andera\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required... | (exemption != null && exemption.isExemptionActive()) { | {} | {
"repository": "conena-therlock-0000c84",
"file": "therlock/src/main/java/com/conena/therlock/BlockedThreadDetector.java",
"task_id": "project_cc_java/750"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "therlock/src/main/java/com/conena/therlock/BlockedThreadDetector.java",
"groundtruth_start_lineno": 195,
"repository": "conena-therlock-0000c84",
"right_context_start_lineno": 196,
"task_id": "project_cc_java/750"
}
} |
cross_code_eval_java::project_cc_java/751 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// therlock/src/main/java/com/conena/therlock/BlockedThreadEvent.java
// /**
// * @param blockedD... | {
"prefix": "/*\n * Copyright (C) 2023 Fabian Andera\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required... | final ThreadInfo threadInfo = ThreadInfo.fromThread(thread); | {} | {
"repository": "conena-therlock-0000c84",
"file": "therlock/src/main/java/com/conena/therlock/BlockedThreadDetector.java",
"task_id": "project_cc_java/751"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "therlock/src/main/java/com/conena/therlock/BlockedThreadDetector.java",
"groundtruth_start_lineno": 234,
"repository": "conena-therlock-0000c84",
"right_context_start_lineno": 235,
"task_id": "project_cc_java/751"
}
} |
cross_code_eval_java::project_cc_java/781 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/coralblocks/coralme/OrderBook.java
// StringBuilder sb = new StringBuilder(1024);
/... | {
"prefix": "/* \n * Copyright 2023 (c) CoralBlocks - http://www.coralblocks.com\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE... | (" executePrice=" + DoubleUtils.toDouble(executePrice)); | {} | {
"repository": "coralblocks-CoralME-ec2b736",
"file": "src/main/java/com/coralblocks/coralme/OrderBookLogger.java",
"task_id": "project_cc_java/781"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/coralblocks/coralme/OrderBookLogger.java",
"groundtruth_start_lineno": 83,
"repository": "coralblocks-CoralME-ec2b736",
"right_context_start_lineno": 84,
"task_id": "project_cc_java/781"
}
} |
cross_code_eval_java::project_cc_java/684 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/ee/carlrobert/openai/client/completion/CompletionEventSourceListener.java
// try {
//... | {
"prefix": "package ee.carlrobert.openai.client.completion;\n\nimport com.fasterxml.jackson.core.JsonProcessingException;\nimport com.fasterxml.jackson.core.type.TypeReference;\nimport com.fasterxml.jackson.databind.ObjectMapper;\nimport ee.carlrobert.openai.client.Client;\nimport ee.carlrobert.openai.client.ClientC... | messages = body.getMessages(); | {} | {
"repository": "carlrobertoh-openai-client-7a73e99",
"file": "src/main/java/ee/carlrobert/openai/client/completion/CompletionClient.java",
"task_id": "project_cc_java/684"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/ee/carlrobert/openai/client/completion/CompletionClient.java",
"groundtruth_start_lineno": 102,
"repository": "carlrobertoh-openai-client-7a73e99",
"right_context_start_lineno": 103,
"task_id": "project_cc_java/684"
}
} |
cross_code_eval_java::project_cc_java/779 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/coralblocks/coralme/Order.java
// sb.append("Order [id=").append(id).append(", clie... | {
"prefix": "/* \n * Copyright 2023 (c) CoralBlocks - http://www.coralblocks.com\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE... | cancel(ts.nanoEpoch()); | {} | {
"repository": "coralblocks-CoralME-ec2b736",
"file": "src/main/java/com/coralblocks/coralme/example/NoGCTest.java",
"task_id": "project_cc_java/779"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/coralblocks/coralme/example/NoGCTest.java",
"groundtruth_start_lineno": 111,
"repository": "coralblocks-CoralME-ec2b736",
"right_context_start_lineno": 112,
"task_id": "project_cc_java/779"
}
} |
cross_code_eval_java::project_cc_java/773 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/coralblocks/coralme/example/Example.java
// orderBook=AAPL
// time=16827310... | {
"prefix": "/* \n * Copyright 2023 (c) CoralBlocks - http://www.coralblocks.com\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE... | ts = book.getTimestamper(); | {} | {
"repository": "coralblocks-CoralME-ec2b736",
"file": "src/main/java/com/coralblocks/coralme/example/NoGCTest.java",
"task_id": "project_cc_java/773"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/coralblocks/coralme/example/NoGCTest.java",
"groundtruth_start_lineno": 77,
"repository": "coralblocks-CoralME-ec2b736",
"right_context_start_lineno": 78,
"task_id": "project_cc_java/773"
}
} |
cross_code_eval_java::project_cc_java/760 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/coralblocks/coralme/OrderBook.java
// }
// public final PriceLevel head(Side side) ... | {
"prefix": "/* \n * Copyright 2023 (c) CoralBlocks - http://www.coralblocks.com\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE... | .cancel(orderBook.getTimestamper().nanoEpoch()); | {} | {
"repository": "coralblocks-CoralME-ec2b736",
"file": "src/main/java/com/coralblocks/coralme/example/Example.java",
"task_id": "project_cc_java/760"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/coralblocks/coralme/example/Example.java",
"groundtruth_start_lineno": 194,
"repository": "coralblocks-CoralME-ec2b736",
"right_context_start_lineno": 195,
"task_id": "project_cc_java/760"
}
} |
cross_code_eval_java::project_cc_java/777 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/coralblocks/coralme/Order.java
// sb.append("Order [id=").append(id).append(", clie... | {
"prefix": "/* \n * Copyright 2023 (c) CoralBlocks - http://www.coralblocks.com\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE... | ts.nanoEpoch(), 100); | {} | {
"repository": "coralblocks-CoralME-ec2b736",
"file": "src/main/java/com/coralblocks/coralme/example/NoGCTest.java",
"task_id": "project_cc_java/777"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/coralblocks/coralme/example/NoGCTest.java",
"groundtruth_start_lineno": 108,
"repository": "coralblocks-CoralME-ec2b736",
"right_context_start_lineno": 109,
"task_id": "project_cc_java/777"
}
} |
cross_code_eval_java::project_cc_java/776 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/coralblocks/coralme/example/Example.java
// 500 @ 156.43 (orders=1)
// 15... | {
"prefix": "/* \n * Copyright 2023 (c) CoralBlocks - http://www.coralblocks.com\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE... | if (!book.isEmpty()) throw new IllegalStateException("Book must be empty here!"); | {} | {
"repository": "coralblocks-CoralME-ec2b736",
"file": "src/main/java/com/coralblocks/coralme/example/NoGCTest.java",
"task_id": "project_cc_java/776"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/coralblocks/coralme/example/NoGCTest.java",
"groundtruth_start_lineno": 127,
"repository": "coralblocks-CoralME-ec2b736",
"right_context_start_lineno": 128,
"task_id": "project_cc_java/776"
}
} |
cross_code_eval_java::project_cc_java/683 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/main/java/ee/carlrobert/openai/client/completion/CompletionEventSourceListener.java
// }
// ... | {
"prefix": "package ee.carlrobert.openai.client.completion;\n\nimport com.fasterxml.jackson.core.JsonProcessingException;\nimport com.fasterxml.jackson.core.type.TypeReference;\nimport com.fasterxml.jackson.databind.ObjectMapper;\nimport ee.carlrobert.openai.client.Client;\nimport ee.carlrobert.openai.client.ClientC... | (listeners, client.isRetryOnReadTimeout(), (response) -> { | {} | {
"repository": "carlrobertoh-openai-client-7a73e99",
"file": "src/main/java/ee/carlrobert/openai/client/completion/CompletionClient.java",
"task_id": "project_cc_java/683"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/ee/carlrobert/openai/client/completion/CompletionClient.java",
"groundtruth_start_lineno": 90,
"repository": "carlrobertoh-openai-client-7a73e99",
"right_context_start_lineno": 91,
"task_id": "project_cc_java/683"
}
} |
cross_code_eval_java::project_cc_java/758 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/coralblocks/coralme/OrderBook.java
// }
// public final PriceLevel head(Side side) ... | {
"prefix": "/* \n * Copyright 2023 (c) CoralBlocks - http://www.coralblocks.com\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE... | (orderBook.getTimestamper().nanoEpoch(), 100); | {} | {
"repository": "coralblocks-CoralME-ec2b736",
"file": "src/main/java/com/coralblocks/coralme/example/Example.java",
"task_id": "project_cc_java/758"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/coralblocks/coralme/example/Example.java",
"groundtruth_start_lineno": 169,
"repository": "coralblocks-CoralME-ec2b736",
"right_context_start_lineno": 170,
"task_id": "project_cc_java/758"
}
} |
cross_code_eval_java::project_cc_java/753 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/coralblocks/coralme/Order.java
// }
// sb.append("]");
// return sb;
// }
// }... | {
"prefix": "/* \n * Copyright 2023 (c) CoralBlocks - http://www.coralblocks.com\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE... | orderBook.showOrders(); | {} | {
"repository": "coralblocks-CoralME-ec2b736",
"file": "src/main/java/com/coralblocks/coralme/example/Example.java",
"task_id": "project_cc_java/753"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/coralblocks/coralme/example/Example.java",
"groundtruth_start_lineno": 59,
"repository": "coralblocks-CoralME-ec2b736",
"right_context_start_lineno": 60,
"task_id": "project_cc_java/753"
}
} |
cross_code_eval_java::project_cc_java/677 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file Context]
// Here are some relevant code fragments from other files of the repo:
// the below code fragment can be found in:
// src/test/java/ee/carlrobert/openai/http/LocalCallbackServer.java
// expectations.add(expectation);
... | {
"prefix": "package ee.carlrobert.openai.client.completion;\n\nimport static java.lang.String.format;\n\nimport com.fasterxml.jackson.core.JsonProcessingException;\nimport java.io.IOException;\nimport java.net.SocketTimeoutException;\nimport java.util.function.Consumer;\nimport okhttp3.Response;\nimport okhttp3.inte... | listeners.onComplete(messageBuilder); | {} | {
"repository": "carlrobertoh-openai-client-7a73e99",
"file": "src/main/java/ee/carlrobert/openai/client/completion/CompletionEventSourceListener.java",
"task_id": "project_cc_java/677"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/ee/carlrobert/openai/client/completion/CompletionEventSourceListener.java",
"groundtruth_start_lineno": 71,
"repository": "carlrobertoh-openai-client-7a73e99",
"right_context_start_lineno": 72,
"task_id": "project_cc_java/677"
... |
cross_code_eval_java::project_cc_java/769 | cross_code_eval_java | crossfile_completion | java | Complete the next Java code line/block using the context. Return only code.
[Cross-file 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/coralblocks/coralme/OrderBook.java
// }
// orders.remove(order.getId());
// ORD... | {
"prefix": "/* \n * Copyright 2023 (c) CoralBlocks - http://www.coralblocks.com\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE... | += order.getOpenSize(); | {} | {
"repository": "coralblocks-CoralME-ec2b736",
"file": "src/main/java/com/coralblocks/coralme/PriceLevel.java",
"task_id": "project_cc_java/769"
} | {
"type": "crossfile_reference",
"family": "crossfile_completion"
} | {
"metadata": {
"context_start_lineno": 0,
"file": "src/main/java/com/coralblocks/coralme/PriceLevel.java",
"groundtruth_start_lineno": 124,
"repository": "coralblocks-CoralME-ec2b736",
"right_context_start_lineno": 125,
"task_id": "project_cc_java/769"
}
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.