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/6176
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // hybrid-multitenancy-customer-service/src/main/java/com/github/wenqiglantz/service/customer/config/DataS...
{ "prefix": "package com.github.wenqiglantz.service.customer.multitenancy.config.tenant.hibernate;\n\nimport com.github.wenqiglantz.service.customer.multitenancy.Tenant;\nimport com.github.wenqiglantz.service.customer.multitenancy.TenantRepository;\nimport com.github.wenqiglantz.service.customer.util.EncryptionServic...
= masterTenantRepository.findByTenantId(key) .orElseThrow(() -> new RuntimeException("No such tenant: " + key));
{}
{ "repository": "wenqiglantz-rds-hybrid-multitenancy-ad04a23", "file": "hybrid-multitenancy-customer-service/src/main/java/com/github/wenqiglantz/service/customer/multitenancy/config/tenant/hibernate/HybridMultiTenantConnectionProvider.java", "task_id": "project_cc_java/6176" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "hybrid-multitenancy-customer-service/src/main/java/com/github/wenqiglantz/service/customer/multitenancy/config/tenant/hibernate/HybridMultiTenantConnectionProvider.java", "groundtruth_start_lineno": 70, "repository": "wenqiglantz-rds-hybrid-multitena...
cross_code_eval_java::project_cc_java/6180
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // hybrid-multitenancy-customer-service/src/main/java/com/github/wenqiglantz/service/customer/multitenancy...
{ "prefix": "package com.github.wenqiglantz.service.customer.multitenancy.config.tenant;\n\nimport com.github.wenqiglantz.service.customer.multitenancy.Tenant;\nimport com.github.wenqiglantz.service.customer.multitenancy.TenantRepository;\nimport com.github.wenqiglantz.service.customer.multitenancy.TenantContext;\nim...
String tenant = TenantContext.getTenantId();
{}
{ "repository": "wenqiglantz-rds-hybrid-multitenancy-ad04a23", "file": "hybrid-multitenancy-customer-service/src/main/java/com/github/wenqiglantz/service/customer/multitenancy/config/tenant/TenantHibernateConfig.java", "task_id": "project_cc_java/6180" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "hybrid-multitenancy-customer-service/src/main/java/com/github/wenqiglantz/service/customer/multitenancy/config/tenant/TenantHibernateConfig.java", "groundtruth_start_lineno": 72, "repository": "wenqiglantz-rds-hybrid-multitenancy-ad04a23", "right...
cross_code_eval_java::project_cc_java/6212
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // app/src/main/java/com/juziml/read/business/read/anim/CoverAnimationEffecter.java // pre...
{ "prefix": "package com.juziml.content.gpu_test;\n\nimport android.os.Bundle;\nimport android.view.MotionEvent;\nimport android.view.View;\n\nimport androidx.annotation.Nullable;\nimport androidx.appcompat.app.AppCompatActivity;\n\nimport com.juziml.content.R;\n\n/**\n * create by zhusw on 2020-07-29 10:55\n */\npub...
gpuTestCurlAnimView.flipSetToDefault();
{}
{ "repository": "Western-parotia-BookViewProject-1727e80", "file": "gpu_test/src/main/java/com/juziml/content/gpu_test/GpuTestAct.java", "task_id": "project_cc_java/6212" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "gpu_test/src/main/java/com/juziml/content/gpu_test/GpuTestAct.java", "groundtruth_start_lineno": 37, "repository": "Western-parotia-BookViewProject-1727e80", "right_context_start_lineno": 38, "task_id": "project_cc_java/6212" } }
cross_code_eval_java::project_cc_java/6215
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // app/src/main/java/com/juziml/read/business/read/anim/SimulationAnimationEffecter.java // cm.set...
{ "prefix": "package com.juziml.content.gpu_test;\n\nimport android.content.Context;\nimport android.graphics.Bitmap;\nimport android.graphics.Canvas;\nimport android.graphics.Color;\nimport android.graphics.Paint;\nimport android.graphics.Path;\nimport android.graphics.PorterDuff;\nimport android.graphics.PorterDuff...
f.setXY(width, height);
{}
{ "repository": "Western-parotia-BookViewProject-1727e80", "file": "gpu_test/src/main/java/com/juziml/content/gpu_test/GpuTestCurlAnimView.java", "task_id": "project_cc_java/6215" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "gpu_test/src/main/java/com/juziml/content/gpu_test/GpuTestCurlAnimView.java", "groundtruth_start_lineno": 94, "repository": "Western-parotia-BookViewProject-1727e80", "right_context_start_lineno": 95, "task_id": "project_cc_java/6215" } }
cross_code_eval_java::project_cc_java/6223
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // app/src/main/java/com/juziml/read/business/read/view/BookRecyclerView.java // return false; // ...
{ "prefix": "package com.juziml.read.business.read.view;\n\nimport android.content.Context;\nimport android.graphics.Bitmap;\nimport android.graphics.Canvas;\nimport android.util.AttributeSet;\nimport android.view.MotionEvent;\nimport android.view.View;\nimport android.view.ViewParent;\n\nimport androidx.annotation.N...
animationEffecter.onScroll();
{}
{ "repository": "Western-parotia-BookViewProject-1727e80", "file": "app/src/main/java/com/juziml/read/business/read/view/PuppetView.java", "task_id": "project_cc_java/6223" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "app/src/main/java/com/juziml/read/business/read/view/PuppetView.java", "groundtruth_start_lineno": 165, "repository": "Western-parotia-BookViewProject-1727e80", "right_context_start_lineno": 166, "task_id": "project_cc_java/6223" } }
cross_code_eval_java::project_cc_java/6222
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // app/src/main/java/com/juziml/read/business/read/view/BookRecyclerView.java // return false; // ...
{ "prefix": "package com.juziml.read.business.read.view;\n\nimport android.content.Context;\nimport android.graphics.Bitmap;\nimport android.graphics.Canvas;\nimport android.util.AttributeSet;\nimport android.view.MotionEvent;\nimport android.view.View;\nimport android.view.ViewParent;\n\nimport androidx.annotation.N...
return animationEffecter.animInEffect();
{}
{ "repository": "Western-parotia-BookViewProject-1727e80", "file": "app/src/main/java/com/juziml/read/business/read/view/PuppetView.java", "task_id": "project_cc_java/6222" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "app/src/main/java/com/juziml/read/business/read/view/PuppetView.java", "groundtruth_start_lineno": 157, "repository": "Western-parotia-BookViewProject-1727e80", "right_context_start_lineno": 158, "task_id": "project_cc_java/6222" } }
cross_code_eval_java::project_cc_java/6217
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // app/src/main/java/com/juziml/read/business/read/anim/SimulationAnimationEffecter.java // * // ...
{ "prefix": "package com.juziml.content.gpu_test;\n\nimport android.content.Context;\nimport android.graphics.Bitmap;\nimport android.graphics.Canvas;\nimport android.graphics.Color;\nimport android.graphics.Paint;\nimport android.graphics.Path;\nimport android.graphics.PorterDuff;\nimport android.graphics.PorterDuff...
f.setXY(0, 0);
{}
{ "repository": "Western-parotia-BookViewProject-1727e80", "file": "gpu_test/src/main/java/com/juziml/content/gpu_test/GpuTestCurlAnimView.java", "task_id": "project_cc_java/6217" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "gpu_test/src/main/java/com/juziml/content/gpu_test/GpuTestCurlAnimView.java", "groundtruth_start_lineno": 100, "repository": "Western-parotia-BookViewProject-1727e80", "right_context_start_lineno": 101, "task_id": "project_cc_java/6217" } }
cross_code_eval_java::project_cc_java/6224
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // app/src/main/java/com/juziml/read/business/read/anim/SimulationAnimationEffecter.java // ...
{ "prefix": "package com.juziml.read.business.read.anim;\n\nimport android.graphics.Canvas;\nimport android.graphics.Paint;\nimport android.graphics.Path;\nimport android.graphics.RectF;\nimport android.graphics.drawable.GradientDrawable;\nimport android.view.MotionEvent;\nimport android.view.animation.AccelerateDece...
readAnimView.buildBitmap(coverSlideDirection);
{}
{ "repository": "Western-parotia-BookViewProject-1727e80", "file": "app/src/main/java/com/juziml/read/business/read/anim/CoverAnimationEffecter.java", "task_id": "project_cc_java/6224" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "app/src/main/java/com/juziml/read/business/read/anim/CoverAnimationEffecter.java", "groundtruth_start_lineno": 97, "repository": "Western-parotia-BookViewProject-1727e80", "right_context_start_lineno": 98, "task_id": "project_cc_java/6224" ...
cross_code_eval_java::project_cc_java/6218
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // app/src/main/java/com/juziml/read/business/read/view/BookRecyclerView.java // } // @Override //...
{ "prefix": "package com.juziml.read.business.read.view;\n\nimport android.content.Context;\nimport android.graphics.Bitmap;\nimport android.graphics.Canvas;\nimport android.util.AttributeSet;\nimport android.view.MotionEvent;\nimport android.view.View;\nimport android.view.ViewParent;\n\nimport androidx.annotation.N...
animationEffecter.onViewAttachedToWindow();
{}
{ "repository": "Western-parotia-BookViewProject-1727e80", "file": "app/src/main/java/com/juziml/read/business/read/view/PuppetView.java", "task_id": "project_cc_java/6218" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "app/src/main/java/com/juziml/read/business/read/view/PuppetView.java", "groundtruth_start_lineno": 65, "repository": "Western-parotia-BookViewProject-1727e80", "right_context_start_lineno": 66, "task_id": "project_cc_java/6218" } }
cross_code_eval_java::project_cc_java/6214
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // app/src/main/java/com/juziml/read/business/read/anim/SimulationAnimationEffecter.java // cm.set...
{ "prefix": "package com.juziml.content.gpu_test;\n\nimport android.content.Context;\nimport android.graphics.Bitmap;\nimport android.graphics.Canvas;\nimport android.graphics.Color;\nimport android.graphics.Paint;\nimport android.graphics.Path;\nimport android.graphics.PorterDuff;\nimport android.graphics.PorterDuff...
f.setXY(width, 0);
{}
{ "repository": "Western-parotia-BookViewProject-1727e80", "file": "gpu_test/src/main/java/com/juziml/content/gpu_test/GpuTestCurlAnimView.java", "task_id": "project_cc_java/6214" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "gpu_test/src/main/java/com/juziml/content/gpu_test/GpuTestCurlAnimView.java", "groundtruth_start_lineno": 92, "repository": "Western-parotia-BookViewProject-1727e80", "right_context_start_lineno": 93, "task_id": "project_cc_java/6214" } }
cross_code_eval_java::project_cc_java/6213
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // app/src/main/java/com/juziml/read/business/read/view/PaperLayout.java // || bookRecycle...
{ "prefix": "package com.juziml.content.gpu_test;\n\nimport android.content.Context;\nimport android.graphics.Bitmap;\nimport android.graphics.Canvas;\nimport android.graphics.Color;\nimport android.graphics.Paint;\nimport android.graphics.Path;\nimport android.graphics.PorterDuff;\nimport android.graphics.PorterDuff...
a.setXY(-1, -1);
{}
{ "repository": "Western-parotia-BookViewProject-1727e80", "file": "gpu_test/src/main/java/com/juziml/content/gpu_test/GpuTestCurlAnimView.java", "task_id": "project_cc_java/6213" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "gpu_test/src/main/java/com/juziml/content/gpu_test/GpuTestCurlAnimView.java", "groundtruth_start_lineno": 53, "repository": "Western-parotia-BookViewProject-1727e80", "right_context_start_lineno": 54, "task_id": "project_cc_java/6213" } }
cross_code_eval_java::project_cc_java/6219
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // app/src/main/java/com/juziml/read/business/read/view/BookRecyclerView.java // } else { // ...
{ "prefix": "package com.juziml.read.business.read.view;\n\nimport android.content.Context;\nimport android.graphics.Bitmap;\nimport android.graphics.Canvas;\nimport android.util.AttributeSet;\nimport android.view.MotionEvent;\nimport android.view.View;\nimport android.view.ViewParent;\n\nimport androidx.annotation.N...
animationEffecter.onViewSizeChanged(vWidth, vHeight);
{}
{ "repository": "Western-parotia-BookViewProject-1727e80", "file": "app/src/main/java/com/juziml/read/business/read/view/PuppetView.java", "task_id": "project_cc_java/6219" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "app/src/main/java/com/juziml/read/business/read/view/PuppetView.java", "groundtruth_start_lineno": 79, "repository": "Western-parotia-BookViewProject-1727e80", "right_context_start_lineno": 80, "task_id": "project_cc_java/6219" } }
cross_code_eval_java::project_cc_java/6267
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // net/src/main/java/com/foundation/service/urlmanager/retrofiturlmanager/parser/SuperUrlParser.java // ...
{ "prefix": "/*\n * Copyright 2017 JessYan\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 by appli...
int i = mRetrofitUrlManager.getPathSize();
{}
{ "repository": "Western-parotia-Net-accd348", "file": "net/src/main/java/com/foundation/service/urlmanager/retrofiturlmanager/parser/AdvancedUrlParser.java", "task_id": "project_cc_java/6267" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "net/src/main/java/com/foundation/service/urlmanager/retrofiturlmanager/parser/AdvancedUrlParser.java", "groundtruth_start_lineno": 86, "repository": "Western-parotia-Net-accd348", "right_context_start_lineno": 87, "task_id": "project_cc_java/...
cross_code_eval_java::project_cc_java/6233
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // app/src/main/java/com/juziml/read/business/read/anim/SimulationAnimationEffecter.java // /** // ...
{ "prefix": "package com.juziml.read.business.read.anim;\n\nimport android.graphics.Canvas;\nimport android.graphics.Paint;\nimport android.graphics.Path;\nimport android.graphics.RectF;\nimport android.graphics.drawable.GradientDrawable;\nimport android.view.MotionEvent;\nimport android.view.animation.AccelerateDece...
(readAnimView.getPreviousBitmap(), -leftOffset, 0, paint);
{}
{ "repository": "Western-parotia-BookViewProject-1727e80", "file": "app/src/main/java/com/juziml/read/business/read/anim/CoverAnimationEffecter.java", "task_id": "project_cc_java/6233" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "app/src/main/java/com/juziml/read/business/read/anim/CoverAnimationEffecter.java", "groundtruth_start_lineno": 222, "repository": "Western-parotia-BookViewProject-1727e80", "right_context_start_lineno": 223, "task_id": "project_cc_java/6233" ...
cross_code_eval_java::project_cc_java/6272
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // net/src/main/java/com/foundation/service/urlmanager/retrofiturlmanager/parser/DomainUrlParser.java // ...
{ "prefix": "/*\n * Copyright 2017 JessYan\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 by appli...
+ mRetrofitUrlManager.getPathSize();
{}
{ "repository": "Western-parotia-Net-accd348", "file": "net/src/main/java/com/foundation/service/urlmanager/retrofiturlmanager/parser/AdvancedUrlParser.java", "task_id": "project_cc_java/6272" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "net/src/main/java/com/foundation/service/urlmanager/retrofiturlmanager/parser/AdvancedUrlParser.java", "groundtruth_start_lineno": 118, "repository": "Western-parotia-Net-accd348", "right_context_start_lineno": 119, "task_id": "project_cc_jav...
cross_code_eval_java::project_cc_java/6235
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // app/src/main/java/com/juziml/read/business/read/anim/SimulationAnimationEffecter.java // if (cu...
{ "prefix": "package com.juziml.read.business.read.anim;\n\nimport android.graphics.Canvas;\nimport android.graphics.Paint;\nimport android.graphics.Path;\nimport android.graphics.RectF;\nimport android.graphics.drawable.GradientDrawable;\nimport android.view.MotionEvent;\nimport android.view.animation.AccelerateDece...
(slideDirection == AnimHelper.SLID_DIRECTION_LEFT && (null != readAnimView.getNextBitmap() && null != readAnimView.getCurrentBitmap())) {
{}
{ "repository": "Western-parotia-BookViewProject-1727e80", "file": "app/src/main/java/com/juziml/read/business/read/anim/CoverAnimationEffecter.java", "task_id": "project_cc_java/6235" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "app/src/main/java/com/juziml/read/business/read/anim/CoverAnimationEffecter.java", "groundtruth_start_lineno": 272, "repository": "Western-parotia-BookViewProject-1727e80", "right_context_start_lineno": 273, "task_id": "project_cc_java/6235" ...
cross_code_eval_java::project_cc_java/6270
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // net/src/main/java/com/foundation/service/urlmanager/retrofiturlmanager/parser/SuperUrlParser.java // ...
{ "prefix": "/*\n * Copyright 2017 JessYan\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 by appli...
+ mRetrofitUrlManager.getBaseUrl().host() + mRetrofitUrlManager.getBaseUrl().encodedPath()));
{}
{ "repository": "Western-parotia-Net-accd348", "file": "net/src/main/java/com/foundation/service/urlmanager/retrofiturlmanager/parser/AdvancedUrlParser.java", "task_id": "project_cc_java/6270" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "net/src/main/java/com/foundation/service/urlmanager/retrofiturlmanager/parser/AdvancedUrlParser.java", "groundtruth_start_lineno": 93, "repository": "Western-parotia-Net-accd348", "right_context_start_lineno": 95, "task_id": "project_cc_java/...
cross_code_eval_java::project_cc_java/6266
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // net/src/main/java/com/foundation/service/urlmanager/retrofiturlmanager/parser/SuperUrlParser.java // ...
{ "prefix": "/*\n * Copyright 2017 JessYan\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 by appli...
() > mRetrofitUrlManager.getPathSize()) {
{}
{ "repository": "Western-parotia-Net-accd348", "file": "net/src/main/java/com/foundation/service/urlmanager/retrofiturlmanager/parser/AdvancedUrlParser.java", "task_id": "project_cc_java/6266" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "net/src/main/java/com/foundation/service/urlmanager/retrofiturlmanager/parser/AdvancedUrlParser.java", "groundtruth_start_lineno": 84, "repository": "Western-parotia-Net-accd348", "right_context_start_lineno": 85, "task_id": "project_cc_java/...
cross_code_eval_java::project_cc_java/6234
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // app/src/main/java/com/juziml/read/business/read/anim/SimulationAnimationEffecter.java // /** // ...
{ "prefix": "package com.juziml.read.business.read.anim;\n\nimport android.graphics.Canvas;\nimport android.graphics.Paint;\nimport android.graphics.Path;\nimport android.graphics.RectF;\nimport android.graphics.drawable.GradientDrawable;\nimport android.view.MotionEvent;\nimport android.view.animation.AccelerateDece...
drawable = readAnimView.getAnimHelper().getCoverGradientDrawable();
{}
{ "repository": "Western-parotia-BookViewProject-1727e80", "file": "app/src/main/java/com/juziml/read/business/read/anim/CoverAnimationEffecter.java", "task_id": "project_cc_java/6234" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "app/src/main/java/com/juziml/read/business/read/anim/CoverAnimationEffecter.java", "groundtruth_start_lineno": 229, "repository": "Western-parotia-BookViewProject-1727e80", "right_context_start_lineno": 230, "task_id": "project_cc_java/6234" ...
cross_code_eval_java::project_cc_java/6241
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // app/src/main/java/com/juziml/read/business/read/view/BookRecyclerView.java // } // retu...
{ "prefix": "package com.juziml.read.business.read.anim;\n\nimport android.graphics.Canvas;\nimport android.graphics.Paint;\nimport android.graphics.Path;\nimport android.graphics.RectF;\nimport android.graphics.drawable.GradientDrawable;\nimport android.view.MotionEvent;\nimport android.view.animation.AccelerateDece...
DLog.log("touchUp coverAnimationRunning=%s", coverAnimationRunning);
{}
{ "repository": "Western-parotia-BookViewProject-1727e80", "file": "app/src/main/java/com/juziml/read/business/read/anim/CoverAnimationEffecter.java", "task_id": "project_cc_java/6241" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "app/src/main/java/com/juziml/read/business/read/anim/CoverAnimationEffecter.java", "groundtruth_start_lineno": 162, "repository": "Western-parotia-BookViewProject-1727e80", "right_context_start_lineno": 163, "task_id": "project_cc_java/6241" ...
cross_code_eval_java::project_cc_java/6257
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // app/src/main/java/com/juziml/read/business/read/view/BookView.java // return animHelper; // ...
{ "prefix": "package com.juziml.read.business.read.view;\n\nimport android.annotation.SuppressLint;\nimport android.content.Context;\nimport android.graphics.Bitmap;\nimport android.util.AttributeSet;\nimport android.view.MotionEvent;\nimport android.view.View;\n\nimport androidx.annotation.Nullable;\nimport androidx...
readLayoutManger.getBookFlipMode();
{}
{ "repository": "Western-parotia-BookViewProject-1727e80", "file": "app/src/main/java/com/juziml/read/business/read/view/BookRecyclerView.java", "task_id": "project_cc_java/6257" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "app/src/main/java/com/juziml/read/business/read/view/BookRecyclerView.java", "groundtruth_start_lineno": 204, "repository": "Western-parotia-BookViewProject-1727e80", "right_context_start_lineno": 205, "task_id": "project_cc_java/6257" } }
cross_code_eval_java::project_cc_java/6249
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // app/src/main/java/com/juziml/read/business/read/view/PaperLayout.java // } // @Override // ...
{ "prefix": "package com.juziml.read.business.read.view;\n\nimport android.annotation.SuppressLint;\nimport android.content.Context;\nimport android.graphics.Bitmap;\nimport android.util.AttributeSet;\nimport android.view.MotionEvent;\nimport android.view.View;\n\nimport androidx.annotation.Nullable;\nimport androidx...
readLayoutManger.setonStopScroller(new ItemOnScrollStop());
{}
{ "repository": "Western-parotia-BookViewProject-1727e80", "file": "app/src/main/java/com/juziml/read/business/read/view/BookRecyclerView.java", "task_id": "project_cc_java/6249" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "app/src/main/java/com/juziml/read/business/read/view/BookRecyclerView.java", "groundtruth_start_lineno": 45, "repository": "Western-parotia-BookViewProject-1727e80", "right_context_start_lineno": 46, "task_id": "project_cc_java/6249" } }
cross_code_eval_java::project_cc_java/6253
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // app/src/main/java/com/juziml/read/business/read/anim/CoverAnimationEffecter.java // ...
{ "prefix": "package com.juziml.read.business.read.view;\n\nimport android.annotation.SuppressLint;\nimport android.content.Context;\nimport android.graphics.Bitmap;\nimport android.util.AttributeSet;\nimport android.view.MotionEvent;\nimport android.view.View;\n\nimport androidx.annotation.Nullable;\nimport androidx...
readLayoutManger.setAutoLeftScroll(finallyMoveX < 10);
{}
{ "repository": "Western-parotia-BookViewProject-1727e80", "file": "app/src/main/java/com/juziml/read/business/read/view/BookRecyclerView.java", "task_id": "project_cc_java/6253" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "app/src/main/java/com/juziml/read/business/read/view/BookRecyclerView.java", "groundtruth_start_lineno": 138, "repository": "Western-parotia-BookViewProject-1727e80", "right_context_start_lineno": 139, "task_id": "project_cc_java/6253" } }
cross_code_eval_java::project_cc_java/6252
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // app/src/main/java/com/juziml/read/business/read/view/PaperLayout.java // || bookRecycle...
{ "prefix": "package com.juziml.read.business.read.view;\n\nimport android.annotation.SuppressLint;\nimport android.content.Context;\nimport android.graphics.Bitmap;\nimport android.util.AttributeSet;\nimport android.view.MotionEvent;\nimport android.view.View;\n\nimport androidx.annotation.Nullable;\nimport androidx...
readLayoutManger.onRecyclerViewSizeChange();
{}
{ "repository": "Western-parotia-BookViewProject-1727e80", "file": "app/src/main/java/com/juziml/read/business/read/view/BookRecyclerView.java", "task_id": "project_cc_java/6252" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "app/src/main/java/com/juziml/read/business/read/view/BookRecyclerView.java", "groundtruth_start_lineno": 90, "repository": "Western-parotia-BookViewProject-1727e80", "right_context_start_lineno": 91, "task_id": "project_cc_java/6252" } }
cross_code_eval_java::project_cc_java/6254
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // app/src/main/java/com/juziml/read/business/read/anim/CoverAnimationEffecter.java // ...
{ "prefix": "package com.juziml.read.business.read.view;\n\nimport android.annotation.SuppressLint;\nimport android.content.Context;\nimport android.graphics.Bitmap;\nimport android.util.AttributeSet;\nimport android.view.MotionEvent;\nimport android.view.View;\n\nimport androidx.annotation.Nullable;\nimport androidx...
readLayoutManger.setAutoLeftScroll(finallyMoveX < 0);
{}
{ "repository": "Western-parotia-BookViewProject-1727e80", "file": "app/src/main/java/com/juziml/read/business/read/view/BookRecyclerView.java", "task_id": "project_cc_java/6254" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "app/src/main/java/com/juziml/read/business/read/view/BookRecyclerView.java", "groundtruth_start_lineno": 140, "repository": "Western-parotia-BookViewProject-1727e80", "right_context_start_lineno": 141, "task_id": "project_cc_java/6254" } }
cross_code_eval_java::project_cc_java/6256
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // app/src/main/java/com/juziml/read/business/read/view/BookLayoutManager.java // return -1; /...
{ "prefix": "package com.juziml.read.business.read.view;\n\nimport android.annotation.SuppressLint;\nimport android.content.Context;\nimport android.graphics.Bitmap;\nimport android.util.AttributeSet;\nimport android.view.MotionEvent;\nimport android.view.View;\n\nimport androidx.annotation.Nullable;\nimport androidx...
readLayoutManger.setBookFlipMode(flipMode);
{}
{ "repository": "Western-parotia-BookViewProject-1727e80", "file": "app/src/main/java/com/juziml/read/business/read/view/BookRecyclerView.java", "task_id": "project_cc_java/6256" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "app/src/main/java/com/juziml/read/business/read/view/BookRecyclerView.java", "groundtruth_start_lineno": 192, "repository": "Western-parotia-BookViewProject-1727e80", "right_context_start_lineno": 193, "task_id": "project_cc_java/6256" } }
cross_code_eval_java::project_cc_java/6279
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // creatorMode/factory/methodFactory/AmericanFoodFactory.java // food = new AmericanFoodB(...
{ "prefix": "package factory.methodFactory;\n\nimport factory.methodFactory.food.Food;\n\n/**\n * @Title: Test\n * @Author bubuwang\n * @Date 2023/5/11 16:59\n * @description: 测试类 工厂方法模式是简单共产模式的进一步扩展,在一个工厂不足以满足业务语义的时候,需要用到多个工厂\n */\npublic class Test {\n public static void main(String[] args) {\n //中国食物工厂\...
Food americanFoodA = AmericanFoodFactory.produce("A");
{}
{ "repository": "WHyxrs-DesignMode-5af30b7", "file": "creatorMode/factory/methodFactory/Test.java", "task_id": "project_cc_java/6279" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "creatorMode/factory/methodFactory/Test.java", "groundtruth_start_lineno": 23, "repository": "WHyxrs-DesignMode-5af30b7", "right_context_start_lineno": 24, "task_id": "project_cc_java/6279" } }
cross_code_eval_java::project_cc_java/6247
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // app/src/main/java/com/juziml/read/business/read/anim/SimulationAnimationEffecter.java // in...
{ "prefix": "package com.juziml.read.business.read.anim;\n\nimport android.graphics.Canvas;\nimport android.graphics.Paint;\nimport android.graphics.Path;\nimport android.graphics.RectF;\nimport android.graphics.drawable.GradientDrawable;\nimport android.view.MotionEvent;\nimport android.view.animation.AccelerateDece...
DLog.log("coverAnimationRunning coverAnimationRunning=%s 结束,延时开启 状态重置", coverAnimationRunning);
{}
{ "repository": "Western-parotia-BookViewProject-1727e80", "file": "app/src/main/java/com/juziml/read/business/read/anim/CoverAnimationEffecter.java", "task_id": "project_cc_java/6247" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "app/src/main/java/com/juziml/read/business/read/anim/CoverAnimationEffecter.java", "groundtruth_start_lineno": 318, "repository": "Western-parotia-BookViewProject-1727e80", "right_context_start_lineno": 319, "task_id": "project_cc_java/6247" ...
cross_code_eval_java::project_cc_java/6250
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // app/src/main/java/com/juziml/read/business/read/view/BookView.java // public void smoothScrollToPos...
{ "prefix": "package com.juziml.read.business.read.view;\n\nimport android.annotation.SuppressLint;\nimport android.content.Context;\nimport android.graphics.Bitmap;\nimport android.util.AttributeSet;\nimport android.view.MotionEvent;\nimport android.view.View;\n\nimport androidx.annotation.Nullable;\nimport androidx...
readLayoutManger.forceScrollToPosition(position);
{}
{ "repository": "Western-parotia-BookViewProject-1727e80", "file": "app/src/main/java/com/juziml/read/business/read/view/BookRecyclerView.java", "task_id": "project_cc_java/6250" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "app/src/main/java/com/juziml/read/business/read/view/BookRecyclerView.java", "groundtruth_start_lineno": 79, "repository": "Western-parotia-BookViewProject-1727e80", "right_context_start_lineno": 80, "task_id": "project_cc_java/6250" } }
cross_code_eval_java::project_cc_java/6248
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // app/src/main/java/com/juziml/read/business/read/view/PaperLayout.java // } // @Override // ...
{ "prefix": "package com.juziml.read.business.read.view;\n\nimport android.annotation.SuppressLint;\nimport android.content.Context;\nimport android.graphics.Bitmap;\nimport android.util.AttributeSet;\nimport android.view.MotionEvent;\nimport android.view.View;\n\nimport androidx.annotation.Nullable;\nimport androidx...
readLayoutManger.setOnForceLayoutCompleted(new ItemOnForceLayoutCompleted());
{}
{ "repository": "Western-parotia-BookViewProject-1727e80", "file": "app/src/main/java/com/juziml/read/business/read/view/BookRecyclerView.java", "task_id": "project_cc_java/6248" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "app/src/main/java/com/juziml/read/business/read/view/BookRecyclerView.java", "groundtruth_start_lineno": 44, "repository": "Western-parotia-BookViewProject-1727e80", "right_context_start_lineno": 45, "task_id": "project_cc_java/6248" } }
cross_code_eval_java::project_cc_java/6280
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // creatorMode/factory/methodFactory/AmericanFoodFactory.java // food = new AmericanFoodB(...
{ "prefix": "package factory.methodFactory;\n\nimport factory.methodFactory.food.Food;\n\n/**\n * @Title: Test\n * @Author bubuwang\n * @Date 2023/5/11 16:59\n * @description: 测试类 工厂方法模式是简单共产模式的进一步扩展,在一个工厂不足以满足业务语义的时候,需要用到多个工厂\n */\npublic class Test {\n public static void main(String[] args) {\n //中国食物工厂\...
= AmericanFoodFactory.produce("A");
{}
{ "repository": "WHyxrs-DesignMode-5af30b7", "file": "creatorMode/factory/methodFactory/Test.java", "task_id": "project_cc_java/6280" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "creatorMode/factory/methodFactory/Test.java", "groundtruth_start_lineno": 26, "repository": "WHyxrs-DesignMode-5af30b7", "right_context_start_lineno": 27, "task_id": "project_cc_java/6280" } }
cross_code_eval_java::project_cc_java/6258
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // app/src/main/java/com/juziml/read/business/read/view/PuppetView.java // } // @Override // p...
{ "prefix": "package com.juziml.read.business.read.view;\n\nimport android.annotation.SuppressLint;\nimport android.content.Context;\nimport android.graphics.Bitmap;\nimport android.util.AttributeSet;\nimport android.view.MotionEvent;\nimport android.view.View;\n\nimport androidx.annotation.Nullable;\nimport androidx...
).animRunning();
{}
{ "repository": "Western-parotia-BookViewProject-1727e80", "file": "app/src/main/java/com/juziml/read/business/read/view/BookRecyclerView.java", "task_id": "project_cc_java/6258" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "app/src/main/java/com/juziml/read/business/read/view/BookRecyclerView.java", "groundtruth_start_lineno": 217, "repository": "Western-parotia-BookViewProject-1727e80", "right_context_start_lineno": 218, "task_id": "project_cc_java/6258" } }
cross_code_eval_java::project_cc_java/6259
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // app/src/main/java/com/juziml/read/business/read/view/PuppetView.java // if (null != animationEf...
{ "prefix": "package com.juziml.read.business.read.view;\n\nimport android.annotation.SuppressLint;\nimport android.content.Context;\nimport android.graphics.Bitmap;\nimport android.util.AttributeSet;\nimport android.view.MotionEvent;\nimport android.view.View;\n\nimport androidx.annotation.Nullable;\nimport androidx...
animParentView.onClickMenuArea();
{}
{ "repository": "Western-parotia-BookViewProject-1727e80", "file": "app/src/main/java/com/juziml/read/business/read/view/BookRecyclerView.java", "task_id": "project_cc_java/6259" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "app/src/main/java/com/juziml/read/business/read/view/BookRecyclerView.java", "groundtruth_start_lineno": 224, "repository": "Western-parotia-BookViewProject-1727e80", "right_context_start_lineno": 225, "task_id": "project_cc_java/6259" } }
cross_code_eval_java::project_cc_java/6298
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/xenyria/eem/mixin/PaintSquadSwimFormMixin.java // } else if(!wasSwimmingLastT...
{ "prefix": "package net.xenyria.eem.utils;\n\nimport net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents;\nimport net.fabricmc.fabric.api.client.keybinding.v1.KeyBindingHelper;\nimport net.minecraft.client.MinecraftClient;\nimport net.minecraft.client.option.KeyBinding;\nimport net.minecraft.client.ut...
PlayingSessionInformation.isOnNetwork()) {
{}
{ "repository": "XenyriaNET-xeem-b635ea0", "file": "src/main/java/net/xenyria/eem/utils/Keybinds.java", "task_id": "project_cc_java/6298" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/xenyria/eem/utils/Keybinds.java", "groundtruth_start_lineno": 69, "repository": "XenyriaNET-xeem-b635ea0", "right_context_start_lineno": 70, "task_id": "project_cc_java/6298" } }
cross_code_eval_java::project_cc_java/6301
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/xenyria/eem/discord/DiscordRichPresenceIntegration.java // if...
{ "prefix": "package net.xenyria.eem.paintsquad;\n\nimport net.xenyria.eem.config.screen.XenyriaConfigManager;\nimport net.xenyria.eem.networking.PacketListener;\nimport net.xenyria.eem.networking.XenyriaServerPacket;\nimport net.minecraft.client.MinecraftClient;\nimport org.json.JSONObject;\n\nimport java.util.concu...
!XenyriaConfigManager.getConfig().improvedShootingDetectionForPaintSquad) {
{}
{ "repository": "XenyriaNET-xeem-b635ea0", "file": "src/main/java/net/xenyria/eem/paintsquad/PaintSquadInputManager.java", "task_id": "project_cc_java/6301" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/xenyria/eem/paintsquad/PaintSquadInputManager.java", "groundtruth_start_lineno": 33, "repository": "XenyriaNET-xeem-b635ea0", "right_context_start_lineno": 34, "task_id": "project_cc_java/6301" } }
cross_code_eval_java::project_cc_java/6242
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // app/src/main/java/com/juziml/read/business/read/anim/SimulationAnimationEffecter.java // private in...
{ "prefix": "package com.juziml.read.business.read.anim;\n\nimport android.graphics.Canvas;\nimport android.graphics.Paint;\nimport android.graphics.Path;\nimport android.graphics.RectF;\nimport android.graphics.drawable.GradientDrawable;\nimport android.view.MotionEvent;\nimport android.view.animation.AccelerateDece...
DLog.log("CoverAnimationEffect draw 1");
{}
{ "repository": "Western-parotia-BookViewProject-1727e80", "file": "app/src/main/java/com/juziml/read/business/read/anim/CoverAnimationEffecter.java", "task_id": "project_cc_java/6242" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "app/src/main/java/com/juziml/read/business/read/anim/CoverAnimationEffecter.java", "groundtruth_start_lineno": 189, "repository": "Western-parotia-BookViewProject-1727e80", "right_context_start_lineno": 190, "task_id": "project_cc_java/6242" ...
cross_code_eval_java::project_cc_java/6303
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/xenyria/eem/discord/activity/DefaultDiscordActivityAccess.java // private CreateP...
{ "prefix": "package net.xenyria.eem.config.screen;\n\nimport me.shedaniel.clothconfig2.api.ConfigBuilder;\nimport me.shedaniel.clothconfig2.api.ConfigCategory;\nimport net.minecraft.text.Text;\nimport net.xenyria.eem.networking.XenyriaServerPacket;\nimport org.json.JSONException;\nimport org.json.JSONObject;\nimport...
configData = config.toJSON().toString(4);
{}
{ "repository": "XenyriaNET-xeem-b635ea0", "file": "src/main/java/net/xenyria/eem/config/screen/XenyriaConfigManager.java", "task_id": "project_cc_java/6303" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/xenyria/eem/config/screen/XenyriaConfigManager.java", "groundtruth_start_lineno": 56, "repository": "XenyriaNET-xeem-b635ea0", "right_context_start_lineno": 57, "task_id": "project_cc_java/6303" } }
cross_code_eval_java::project_cc_java/6313
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/xenyria/eem/discord/activity/IDiscordActivityAccess.java // long activity...
{ "prefix": "package net.xenyria.eem.discord;\n\nimport net.xenyria.eem.config.screen.XenyriaConfigManager;\nimport net.xenyria.eem.discord.activity.DefaultDiscordActivityAccess;\nimport net.xenyria.eem.discord.activity.IDiscordActivityAccess;\nimport org.json.JSONObject;\nimport org.slf4j.Logger;\nimport org.slf4j.L...
discordActivityAccess.start(applicationId);
{}
{ "repository": "XenyriaNET-xeem-b635ea0", "file": "src/main/java/net/xenyria/eem/discord/DiscordRichPresenceIntegration.java", "task_id": "project_cc_java/6313" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/xenyria/eem/discord/DiscordRichPresenceIntegration.java", "groundtruth_start_lineno": 114, "repository": "XenyriaNET-xeem-b635ea0", "right_context_start_lineno": 115, "task_id": "project_cc_java/6313" } }
cross_code_eval_java::project_cc_java/6310
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/xenyria/eem/networking/PacketListener.java // } // ...
{ "prefix": "package net.xenyria.eem.discord;\n\nimport net.xenyria.eem.config.screen.XenyriaConfigManager;\nimport net.xenyria.eem.discord.activity.DefaultDiscordActivityAccess;\nimport net.xenyria.eem.discord.activity.IDiscordActivityAccess;\nimport org.json.JSONObject;\nimport org.slf4j.Logger;\nimport org.slf4j.L...
!XenyriaConfigManager.getConfig().shareServerActivity) {
{}
{ "repository": "XenyriaNET-xeem-b635ea0", "file": "src/main/java/net/xenyria/eem/discord/DiscordRichPresenceIntegration.java", "task_id": "project_cc_java/6310" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/xenyria/eem/discord/DiscordRichPresenceIntegration.java", "groundtruth_start_lineno": 104, "repository": "XenyriaNET-xeem-b635ea0", "right_context_start_lineno": 105, "task_id": "project_cc_java/6310" } }
cross_code_eval_java::project_cc_java/6321
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/xenyria/eem/paintsquad/PaintSquadInputManager.java // // If a change ...
{ "prefix": "package net.xenyria.eem.networking;\n\nimport net.xenyria.eem.discord.DiscordRichPresenceIntegration;\nimport net.fabricmc.fabric.api.client.networking.v1.ClientPlayNetworking;\nimport net.minecraft.util.Identifier;\nimport net.xenyria.eem.EXenyriaServerType;\nimport net.xenyria.eem.PlayingSessionInforma...
PlayingSessionInformation.setOnNetwork(true);
{}
{ "repository": "XenyriaNET-xeem-b635ea0", "file": "src/main/java/net/xenyria/eem/networking/PacketListener.java", "task_id": "project_cc_java/6321" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/xenyria/eem/networking/PacketListener.java", "groundtruth_start_lineno": 55, "repository": "XenyriaNET-xeem-b635ea0", "right_context_start_lineno": 56, "task_id": "project_cc_java/6321" } }
cross_code_eval_java::project_cc_java/6312
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/xenyria/eem/discord/activity/IDiscordActivityAccess.java // long activity...
{ "prefix": "package net.xenyria.eem.discord;\n\nimport net.xenyria.eem.config.screen.XenyriaConfigManager;\nimport net.xenyria.eem.discord.activity.DefaultDiscordActivityAccess;\nimport net.xenyria.eem.discord.activity.IDiscordActivityAccess;\nimport org.json.JSONObject;\nimport org.slf4j.Logger;\nimport org.slf4j.L...
discordActivityAccess.stop();
{}
{ "repository": "XenyriaNET-xeem-b635ea0", "file": "src/main/java/net/xenyria/eem/discord/DiscordRichPresenceIntegration.java", "task_id": "project_cc_java/6312" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/xenyria/eem/discord/DiscordRichPresenceIntegration.java", "groundtruth_start_lineno": 113, "repository": "XenyriaNET-xeem-b635ea0", "right_context_start_lineno": 114, "task_id": "project_cc_java/6312" } }
cross_code_eval_java::project_cc_java/6330
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/xenyria/eem/paintsquad/PaintSquadInputManager.java // // If a change ...
{ "prefix": "package net.xenyria.eem.networking;\n\nimport net.xenyria.eem.discord.DiscordRichPresenceIntegration;\nimport net.fabricmc.fabric.api.client.networking.v1.ClientPlayNetworking;\nimport net.minecraft.util.Identifier;\nimport net.xenyria.eem.EXenyriaServerType;\nimport net.xenyria.eem.PlayingSessionInforma...
String instanceId = packet.getData().getString("server_id");
{}
{ "repository": "XenyriaNET-xeem-b635ea0", "file": "src/main/java/net/xenyria/eem/networking/PacketListener.java", "task_id": "project_cc_java/6330" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/xenyria/eem/networking/PacketListener.java", "groundtruth_start_lineno": 53, "repository": "XenyriaNET-xeem-b635ea0", "right_context_start_lineno": 54, "task_id": "project_cc_java/6330" } }
cross_code_eval_java::project_cc_java/6319
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/xenyria/eem/paintsquad/PaintSquadInputManager.java // // If a change ...
{ "prefix": "package net.xenyria.eem.networking;\n\nimport net.xenyria.eem.discord.DiscordRichPresenceIntegration;\nimport net.fabricmc.fabric.api.client.networking.v1.ClientPlayNetworking;\nimport net.minecraft.util.Identifier;\nimport net.xenyria.eem.EXenyriaServerType;\nimport net.xenyria.eem.PlayingSessionInforma...
EXenyriaServerType.determineServerType(instanceId) );
{}
{ "repository": "XenyriaNET-xeem-b635ea0", "file": "src/main/java/net/xenyria/eem/networking/PacketListener.java", "task_id": "project_cc_java/6319" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/xenyria/eem/networking/PacketListener.java", "groundtruth_start_lineno": 57, "repository": "XenyriaNET-xeem-b635ea0", "right_context_start_lineno": 59, "task_id": "project_cc_java/6319" } }
cross_code_eval_java::project_cc_java/6328
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/xenyria/eem/paintsquad/PaintSquadInputManager.java // // If a change ...
{ "prefix": "package net.xenyria.eem.networking;\n\nimport net.xenyria.eem.discord.DiscordRichPresenceIntegration;\nimport net.fabricmc.fabric.api.client.networking.v1.ClientPlayNetworking;\nimport net.minecraft.util.Identifier;\nimport net.xenyria.eem.EXenyriaServerType;\nimport net.xenyria.eem.PlayingSessionInforma...
setLastReceivedRichPresence(packet.getData());
{}
{ "repository": "XenyriaNET-xeem-b635ea0", "file": "src/main/java/net/xenyria/eem/networking/PacketListener.java", "task_id": "project_cc_java/6328" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/xenyria/eem/networking/PacketListener.java", "groundtruth_start_lineno": 49, "repository": "XenyriaNET-xeem-b635ea0", "right_context_start_lineno": 50, "task_id": "project_cc_java/6328" } }
cross_code_eval_java::project_cc_java/6324
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/xenyria/eem/paintsquad/PaintSquadInputManager.java // // If a change ...
{ "prefix": "package net.xenyria.eem.networking;\n\nimport net.xenyria.eem.discord.DiscordRichPresenceIntegration;\nimport net.fabricmc.fabric.api.client.networking.v1.ClientPlayNetworking;\nimport net.minecraft.util.Identifier;\nimport net.xenyria.eem.EXenyriaServerType;\nimport net.xenyria.eem.PlayingSessionInforma...
"Current server id: " + PlayingSessionInformation.getServerInstanceId());
{}
{ "repository": "XenyriaNET-xeem-b635ea0", "file": "src/main/java/net/xenyria/eem/networking/PacketListener.java", "task_id": "project_cc_java/6324" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/xenyria/eem/networking/PacketListener.java", "groundtruth_start_lineno": 70, "repository": "XenyriaNET-xeem-b635ea0", "right_context_start_lineno": 71, "task_id": "project_cc_java/6324" } }
cross_code_eval_java::project_cc_java/6331
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/xenyria/eem/mixin/DisconnectMixin.java // @Inject(at = @At("HEAD"), method = "dis...
{ "prefix": "package net.xenyria.eem.networking;\n\nimport net.xenyria.eem.discord.DiscordRichPresenceIntegration;\nimport net.fabricmc.fabric.api.client.networking.v1.ClientPlayNetworking;\nimport net.minecraft.util.Identifier;\nimport net.xenyria.eem.EXenyriaServerType;\nimport net.xenyria.eem.PlayingSessionInforma...
responsePacket.sendToServer();
{}
{ "repository": "XenyriaNET-xeem-b635ea0", "file": "src/main/java/net/xenyria/eem/networking/PacketListener.java", "task_id": "project_cc_java/6331" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/xenyria/eem/networking/PacketListener.java", "groundtruth_start_lineno": 65, "repository": "XenyriaNET-xeem-b635ea0", "right_context_start_lineno": 66, "task_id": "project_cc_java/6331" } }
cross_code_eval_java::project_cc_java/6326
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/xenyria/eem/discord/DiscordRichPresenceIntegration.java // return null; // ...
{ "prefix": "package net.xenyria.eem.networking;\n\nimport net.xenyria.eem.discord.DiscordRichPresenceIntegration;\nimport net.fabricmc.fabric.api.client.networking.v1.ClientPlayNetworking;\nimport net.minecraft.util.Identifier;\nimport net.xenyria.eem.EXenyriaServerType;\nimport net.xenyria.eem.PlayingSessionInforma...
XenyriaServerPacket packet = XenyriaServerPacket.parsePacket(rawJsonText);
{}
{ "repository": "XenyriaNET-xeem-b635ea0", "file": "src/main/java/net/xenyria/eem/networking/PacketListener.java", "task_id": "project_cc_java/6326" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/xenyria/eem/networking/PacketListener.java", "groundtruth_start_lineno": 37, "repository": "XenyriaNET-xeem-b635ea0", "right_context_start_lineno": 38, "task_id": "project_cc_java/6326" } }
cross_code_eval_java::project_cc_java/6322
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/xenyria/eem/paintsquad/PaintSquadInputManager.java // // If a change ...
{ "prefix": "package net.xenyria.eem.networking;\n\nimport net.xenyria.eem.discord.DiscordRichPresenceIntegration;\nimport net.fabricmc.fabric.api.client.networking.v1.ClientPlayNetworking;\nimport net.minecraft.util.Identifier;\nimport net.xenyria.eem.EXenyriaServerType;\nimport net.xenyria.eem.PlayingSessionInforma...
("Current network state: " + PlayingSessionInformation.isOnNetwork());
{}
{ "repository": "XenyriaNET-xeem-b635ea0", "file": "src/main/java/net/xenyria/eem/networking/PacketListener.java", "task_id": "project_cc_java/6322" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/xenyria/eem/networking/PacketListener.java", "groundtruth_start_lineno": 68, "repository": "XenyriaNET-xeem-b635ea0", "right_context_start_lineno": 69, "task_id": "project_cc_java/6322" } }
cross_code_eval_java::project_cc_java/6325
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/xenyria/eem/networking/XenyriaServerPacket.java // } // if(!jsonData....
{ "prefix": "package net.xenyria.eem.networking;\n\nimport net.xenyria.eem.discord.DiscordRichPresenceIntegration;\nimport net.fabricmc.fabric.api.client.networking.v1.ClientPlayNetworking;\nimport net.minecraft.util.Identifier;\nimport net.xenyria.eem.EXenyriaServerType;\nimport net.xenyria.eem.PlayingSessionInforma...
XenyriaConfigManager.getConfig().enableDiscordRichPresence) {
{}
{ "repository": "XenyriaNET-xeem-b635ea0", "file": "src/main/java/net/xenyria/eem/networking/PacketListener.java", "task_id": "project_cc_java/6325" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/xenyria/eem/networking/PacketListener.java", "groundtruth_start_lineno": 46, "repository": "XenyriaNET-xeem-b635ea0", "right_context_start_lineno": 47, "task_id": "project_cc_java/6325" } }
cross_code_eval_java::project_cc_java/6320
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/xenyria/eem/paintsquad/PaintSquadInputManager.java // // If a change ...
{ "prefix": "package net.xenyria.eem.networking;\n\nimport net.xenyria.eem.discord.DiscordRichPresenceIntegration;\nimport net.fabricmc.fabric.api.client.networking.v1.ClientPlayNetworking;\nimport net.minecraft.util.Identifier;\nimport net.xenyria.eem.EXenyriaServerType;\nimport net.xenyria.eem.PlayingSessionInforma...
PlayingSessionInformation.setServerInstanceId(instanceId);
{}
{ "repository": "XenyriaNET-xeem-b635ea0", "file": "src/main/java/net/xenyria/eem/networking/PacketListener.java", "task_id": "project_cc_java/6320" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/xenyria/eem/networking/PacketListener.java", "groundtruth_start_lineno": 54, "repository": "XenyriaNET-xeem-b635ea0", "right_context_start_lineno": 55, "task_id": "project_cc_java/6320" } }
cross_code_eval_java::project_cc_java/6332
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/xenyria/eem/paintsquad/PaintSquadInputManager.java // // If a change ...
{ "prefix": "package net.xenyria.eem.networking;\n\nimport net.xenyria.eem.discord.DiscordRichPresenceIntegration;\nimport net.fabricmc.fabric.api.client.networking.v1.ClientPlayNetworking;\nimport net.minecraft.util.Identifier;\nimport net.xenyria.eem.EXenyriaServerType;\nimport net.xenyria.eem.PlayingSessionInforma...
else if (packet.getPacketType() == XenyriaServerPacket.EPacketType.DEBUG) {
{}
{ "repository": "XenyriaNET-xeem-b635ea0", "file": "src/main/java/net/xenyria/eem/networking/PacketListener.java", "task_id": "project_cc_java/6332" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/xenyria/eem/networking/PacketListener.java", "groundtruth_start_lineno": 67, "repository": "XenyriaNET-xeem-b635ea0", "right_context_start_lineno": 68, "task_id": "project_cc_java/6332" } }
cross_code_eval_java::project_cc_java/6327
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/xenyria/eem/networking/XenyriaServerPacket.java // } // if(!jsonData....
{ "prefix": "package net.xenyria.eem.networking;\n\nimport net.xenyria.eem.discord.DiscordRichPresenceIntegration;\nimport net.fabricmc.fabric.api.client.networking.v1.ClientPlayNetworking;\nimport net.minecraft.util.Identifier;\nimport net.xenyria.eem.EXenyriaServerType;\nimport net.xenyria.eem.PlayingSessionInforma...
(packet.getPacketType() == XenyriaServerPacket.EPacketType.RP) {
{}
{ "repository": "XenyriaNET-xeem-b635ea0", "file": "src/main/java/net/xenyria/eem/networking/PacketListener.java", "task_id": "project_cc_java/6327" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/net/xenyria/eem/networking/PacketListener.java", "groundtruth_start_lineno": 44, "repository": "XenyriaNET-xeem-b635ea0", "right_context_start_lineno": 45, "task_id": "project_cc_java/6327" } }
cross_code_eval_java::project_cc_java/6296
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/io/wispforest/lavendermd/Lexer.java // } // } else { // ...
{ "prefix": "package io.wispforest.lavendermd;\n\nimport com.google.common.collect.ImmutableList;\nimport io.wispforest.lavendermd.compiler.MarkdownCompiler;\nimport io.wispforest.lavendermd.compiler.TextCompiler;\nimport io.wispforest.lavendermd.feature.*;\nimport net.minecraft.text.Text;\n\nimport java.util.ArrayLi...
.lexer.lex(markdown)).visit(compiler);
{}
{ "repository": "wisp-forest-lavender-md-87862e2", "file": "src/main/java/io/wispforest/lavendermd/MarkdownProcessor.java", "task_id": "project_cc_java/6296" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/io/wispforest/lavendermd/MarkdownProcessor.java", "groundtruth_start_lineno": 74, "repository": "wisp-forest-lavender-md-87862e2", "right_context_start_lineno": 75, "task_id": "project_cc_java/6296" } }
cross_code_eval_java::project_cc_java/6297
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/io/wispforest/lavendermd/compiler/MarkdownCompiler.java // * Append {@code text} to ...
{ "prefix": "package io.wispforest.lavendermd;\n\nimport com.google.common.collect.ImmutableList;\nimport io.wispforest.lavendermd.compiler.MarkdownCompiler;\nimport io.wispforest.lavendermd.compiler.TextCompiler;\nimport io.wispforest.lavendermd.feature.*;\nimport net.minecraft.text.Text;\n\nimport java.util.ArrayLi...
+ feature.name() + "' is incompatible with compiler '" + testCompiler.name() + "'");
{}
{ "repository": "wisp-forest-lavender-md-87862e2", "file": "src/main/java/io/wispforest/lavendermd/MarkdownProcessor.java", "task_id": "project_cc_java/6297" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/io/wispforest/lavendermd/MarkdownProcessor.java", "groundtruth_start_lineno": 44, "repository": "wisp-forest-lavender-md-87862e2", "right_context_start_lineno": 45, "task_id": "project_cc_java/6297" } }
cross_code_eval_java::project_cc_java/6293
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/io/wispforest/lavendermd/util/TextBuilder.java // * all internal state, ready to bui...
{ "prefix": "package io.wispforest.lavendermd.compiler;\n\nimport io.wispforest.lavendermd.util.TextBuilder;\nimport net.minecraft.text.MutableText;\nimport net.minecraft.text.Style;\nimport net.minecraft.text.Text;\nimport net.minecraft.util.Formatting;\nimport net.minecraft.util.Identifier;\n\nimport java.util.Opti...
builder.pushStyle(style -> style.withColor(Formatting.GRAY).withItalic(true));
{}
{ "repository": "wisp-forest-lavender-md-87862e2", "file": "src/main/java/io/wispforest/lavendermd/compiler/TextCompiler.java", "task_id": "project_cc_java/6293" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/io/wispforest/lavendermd/compiler/TextCompiler.java", "groundtruth_start_lineno": 71, "repository": "wisp-forest-lavender-md-87862e2", "right_context_start_lineno": 72, "task_id": "project_cc_java/6293" } }
cross_code_eval_java::project_cc_java/6294
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/io/wispforest/lavendermd/util/TextBuilder.java // this.styles.push(style.apply(th...
{ "prefix": "package io.wispforest.lavendermd.compiler;\n\nimport io.wispforest.lavendermd.util.TextBuilder;\nimport net.minecraft.text.MutableText;\nimport net.minecraft.text.Style;\nimport net.minecraft.text.Text;\nimport net.minecraft.util.Formatting;\nimport net.minecraft.util.Identifier;\n\nimport java.util.Opti...
this.builder.popStyle();
{}
{ "repository": "wisp-forest-lavender-md-87862e2", "file": "src/main/java/io/wispforest/lavendermd/compiler/TextCompiler.java", "task_id": "project_cc_java/6294" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/io/wispforest/lavendermd/compiler/TextCompiler.java", "groundtruth_start_lineno": 76, "repository": "wisp-forest-lavender-md-87862e2", "right_context_start_lineno": 77, "task_id": "project_cc_java/6294" } }
cross_code_eval_java::project_cc_java/6381
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // common/src/main/java/com/xtracr/realcamera/api/CompatExample.java // */ // private static Meth...
{ "prefix": "package com.xtracr.realcamera.api;\n\nimport com.xtracr.realcamera.RealCameraCore;\nimport com.xtracr.realcamera.config.ConfigFile;\nimport com.xtracr.realcamera.config.ModConfig;\nimport net.minecraft.client.util.math.MatrixStack;\n\nimport java.util.HashMap;\nimport java.util.Map;\nimport java.util.fun...
return RealCameraCore.isRenderingWorld && config.shouldDisableRender(modelPartName) && RealCameraCore.isActive();
{}
{ "repository": "xTracr-RealCamera-7675633", "file": "common/src/main/java/com/xtracr/realcamera/api/VirtualRenderer.java", "task_id": "project_cc_java/6381" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "common/src/main/java/com/xtracr/realcamera/api/VirtualRenderer.java", "groundtruth_start_lineno": 42, "repository": "xTracr-RealCamera-7675633", "right_context_start_lineno": 43, "task_id": "project_cc_java/6381" } }
cross_code_eval_java::project_cc_java/6378
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // common/src/main/java/com/xtracr/realcamera/api/CompatExample.java // private static ModelPart getMo...
{ "prefix": "package com.xtracr.realcamera.config;\n\nimport com.google.gson.Gson;\nimport com.google.gson.GsonBuilder;\nimport com.xtracr.realcamera.RealCamera;\nimport net.minecraft.client.MinecraftClient;\n\nimport java.io.BufferedReader;\nimport java.io.BufferedWriter;\nimport java.io.File;\nimport java.nio.file....
modConfig.set(new ModConfig());
{}
{ "repository": "xTracr-RealCamera-7675633", "file": "common/src/main/java/com/xtracr/realcamera/config/ConfigFile.java", "task_id": "project_cc_java/6378" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "common/src/main/java/com/xtracr/realcamera/config/ConfigFile.java", "groundtruth_start_lineno": 49, "repository": "xTracr-RealCamera-7675633", "right_context_start_lineno": 50, "task_id": "project_cc_java/6378" } }
cross_code_eval_java::project_cc_java/6382
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // common/src/main/java/com/xtracr/realcamera/config/ModConfig.java // if (disable.onlyInBinding &...
{ "prefix": "package com.xtracr.realcamera.api;\n\nimport com.xtracr.realcamera.RealCameraCore;\nimport com.xtracr.realcamera.config.ConfigFile;\nimport com.xtracr.realcamera.config.ModConfig;\nimport net.minecraft.client.util.math.MatrixStack;\n\nimport java.util.HashMap;\nimport java.util.Map;\nimport java.util.fun...
get(config.getModelModID()).test(tickDelta, matrixStack);
{}
{ "repository": "xTracr-RealCamera-7675633", "file": "common/src/main/java/com/xtracr/realcamera/api/VirtualRenderer.java", "task_id": "project_cc_java/6382" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "common/src/main/java/com/xtracr/realcamera/api/VirtualRenderer.java", "groundtruth_start_lineno": 46, "repository": "xTracr-RealCamera-7675633", "right_context_start_lineno": 47, "task_id": "project_cc_java/6382" } }
cross_code_eval_java::project_cc_java/6397
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // common/src/main/java/com/xtracr/realcamera/RealCameraCore.java // // GameRenderer.render //...
{ "prefix": "package com.xtracr.realcamera;\n\nimport com.xtracr.realcamera.config.ConfigFile;\nimport com.xtracr.realcamera.config.ModConfig;\nimport net.minecraft.client.MinecraftClient;\nimport net.minecraft.client.option.KeyBinding;\nimport net.minecraft.client.util.InputUtil;\nimport org.lwjgl.glfw.GLFW;\n\npubl...
else config.setAdjustOffset(!config.isAdjustingOffset());
{}
{ "repository": "xTracr-RealCamera-7675633", "file": "common/src/main/java/com/xtracr/realcamera/KeyBindings.java", "task_id": "project_cc_java/6397" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "common/src/main/java/com/xtracr/realcamera/KeyBindings.java", "groundtruth_start_lineno": 44, "repository": "xTracr-RealCamera-7675633", "right_context_start_lineno": 45, "task_id": "project_cc_java/6397" } }
cross_code_eval_java::project_cc_java/6399
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // common/src/main/java/com/xtracr/realcamera/RealCameraCore.java // // GameRenderer.render //...
{ "prefix": "package com.xtracr.realcamera;\n\nimport com.xtracr.realcamera.config.ConfigFile;\nimport com.xtracr.realcamera.config.ModConfig;\nimport net.minecraft.client.MinecraftClient;\nimport net.minecraft.client.option.KeyBinding;\nimport net.minecraft.client.util.InputUtil;\nimport org.lwjgl.glfw.GLFW;\n\npubl...
(config.isClassic()) config.adjustClassicZ(true);
{}
{ "repository": "xTracr-RealCamera-7675633", "file": "common/src/main/java/com/xtracr/realcamera/KeyBindings.java", "task_id": "project_cc_java/6399" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "common/src/main/java/com/xtracr/realcamera/KeyBindings.java", "groundtruth_start_lineno": 52, "repository": "xTracr-RealCamera-7675633", "right_context_start_lineno": 53, "task_id": "project_cc_java/6399" } }
cross_code_eval_java::project_cc_java/6396
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // common/src/main/java/com/xtracr/realcamera/config/ModConfig.java // general.enabled = value; //...
{ "prefix": "package com.xtracr.realcamera;\n\nimport com.xtracr.realcamera.config.ConfigFile;\nimport com.xtracr.realcamera.config.ModConfig;\nimport net.minecraft.client.MinecraftClient;\nimport net.minecraft.client.option.KeyBinding;\nimport net.minecraft.client.util.InputUtil;\nimport org.lwjgl.glfw.GLFW;\n\npubl...
(config.isClassic()) config.cycleClassicAdjustMode();
{}
{ "repository": "xTracr-RealCamera-7675633", "file": "common/src/main/java/com/xtracr/realcamera/KeyBindings.java", "task_id": "project_cc_java/6396" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "common/src/main/java/com/xtracr/realcamera/KeyBindings.java", "groundtruth_start_lineno": 43, "repository": "xTracr-RealCamera-7675633", "right_context_start_lineno": 44, "task_id": "project_cc_java/6396" } }
cross_code_eval_java::project_cc_java/6398
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // common/src/main/java/com/xtracr/realcamera/RealCameraCore.java // // GameRenderer.render //...
{ "prefix": "package com.xtracr.realcamera;\n\nimport com.xtracr.realcamera.config.ConfigFile;\nimport com.xtracr.realcamera.config.ModConfig;\nimport net.minecraft.client.MinecraftClient;\nimport net.minecraft.client.option.KeyBinding;\nimport net.minecraft.client.util.InputUtil;\nimport org.lwjgl.glfw.GLFW;\n\npubl...
!config.isClassic());
{}
{ "repository": "xTracr-RealCamera-7675633", "file": "common/src/main/java/com/xtracr/realcamera/KeyBindings.java", "task_id": "project_cc_java/6398" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "common/src/main/java/com/xtracr/realcamera/KeyBindings.java", "groundtruth_start_lineno": 48, "repository": "xTracr-RealCamera-7675633", "right_context_start_lineno": 49, "task_id": "project_cc_java/6398" } }
cross_code_eval_java::project_cc_java/6379
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // common/src/main/java/com/xtracr/realcamera/config/ModConfig.java // if (disable.onlyInBinding &...
{ "prefix": "package com.xtracr.realcamera.api;\n\nimport com.xtracr.realcamera.RealCameraCore;\nimport com.xtracr.realcamera.config.ConfigFile;\nimport com.xtracr.realcamera.config.ModConfig;\nimport net.minecraft.client.util.math.MatrixStack;\n\nimport java.util.HashMap;\nimport java.util.Map;\nimport java.util.fun...
RealCameraCore.isActive();
{}
{ "repository": "xTracr-RealCamera-7675633", "file": "common/src/main/java/com/xtracr/realcamera/api/VirtualRenderer.java", "task_id": "project_cc_java/6379" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "common/src/main/java/com/xtracr/realcamera/api/VirtualRenderer.java", "groundtruth_start_lineno": 42, "repository": "xTracr-RealCamera-7675633", "right_context_start_lineno": 43, "task_id": "project_cc_java/6379" } }
cross_code_eval_java::project_cc_java/6393
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // common/src/main/java/com/xtracr/realcamera/config/ConfigFile.java // PATH = configDir.toPath()....
{ "prefix": "package com.xtracr.realcamera;\n\nimport com.xtracr.realcamera.config.ConfigFile;\nimport com.xtracr.realcamera.config.ModConfig;\nimport net.minecraft.client.MinecraftClient;\nimport net.minecraft.client.option.KeyBinding;\nimport net.minecraft.client.util.InputUtil;\nimport org.lwjgl.glfw.GLFW;\n\npubl...
config.isEnabled();
{}
{ "repository": "xTracr-RealCamera-7675633", "file": "common/src/main/java/com/xtracr/realcamera/KeyBindings.java", "task_id": "project_cc_java/6393" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "common/src/main/java/com/xtracr/realcamera/KeyBindings.java", "groundtruth_start_lineno": 37, "repository": "xTracr-RealCamera-7675633", "right_context_start_lineno": 38, "task_id": "project_cc_java/6393" } }
cross_code_eval_java::project_cc_java/6395
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // common/src/main/java/com/xtracr/realcamera/config/ModConfig.java // general.enabled = value; //...
{ "prefix": "package com.xtracr.realcamera;\n\nimport com.xtracr.realcamera.config.ConfigFile;\nimport com.xtracr.realcamera.config.ModConfig;\nimport net.minecraft.client.MinecraftClient;\nimport net.minecraft.client.option.KeyBinding;\nimport net.minecraft.client.util.InputUtil;\nimport org.lwjgl.glfw.GLFW;\n\npubl...
config.isClassic()) config.cycleClassicAdjustMode();
{}
{ "repository": "xTracr-RealCamera-7675633", "file": "common/src/main/java/com/xtracr/realcamera/KeyBindings.java", "task_id": "project_cc_java/6395" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "common/src/main/java/com/xtracr/realcamera/KeyBindings.java", "groundtruth_start_lineno": 43, "repository": "xTracr-RealCamera-7675633", "right_context_start_lineno": 44, "task_id": "project_cc_java/6395" } }
cross_code_eval_java::project_cc_java/6400
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // common/src/main/java/com/xtracr/realcamera/RealCameraCore.java // // GameRenderer.render //...
{ "prefix": "package com.xtracr.realcamera;\n\nimport com.xtracr.realcamera.config.ConfigFile;\nimport com.xtracr.realcamera.config.ModConfig;\nimport net.minecraft.client.MinecraftClient;\nimport net.minecraft.client.option.KeyBinding;\nimport net.minecraft.client.util.InputUtil;\nimport org.lwjgl.glfw.GLFW;\n\npubl...
)) config.adjustClassicZ(true);
{}
{ "repository": "xTracr-RealCamera-7675633", "file": "common/src/main/java/com/xtracr/realcamera/KeyBindings.java", "task_id": "project_cc_java/6400" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "common/src/main/java/com/xtracr/realcamera/KeyBindings.java", "groundtruth_start_lineno": 52, "repository": "xTracr-RealCamera-7675633", "right_context_start_lineno": 53, "task_id": "project_cc_java/6400" } }
cross_code_eval_java::project_cc_java/6401
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // common/src/main/java/com/xtracr/realcamera/RealCameraCore.java // // GameRenderer.render //...
{ "prefix": "package com.xtracr.realcamera;\n\nimport com.xtracr.realcamera.config.ConfigFile;\nimport com.xtracr.realcamera.config.ModConfig;\nimport net.minecraft.client.MinecraftClient;\nimport net.minecraft.client.option.KeyBinding;\nimport net.minecraft.client.util.InputUtil;\nimport org.lwjgl.glfw.GLFW;\n\npubl...
config.adjustBindingZ(true);
{}
{ "repository": "xTracr-RealCamera-7675633", "file": "common/src/main/java/com/xtracr/realcamera/KeyBindings.java", "task_id": "project_cc_java/6401" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "common/src/main/java/com/xtracr/realcamera/KeyBindings.java", "groundtruth_start_lineno": 53, "repository": "xTracr-RealCamera-7675633", "right_context_start_lineno": 54, "task_id": "project_cc_java/6401" } }
cross_code_eval_java::project_cc_java/6338
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // canal-client-core/src/main/java/io/xzxj/canal/core/factory/AbstractConvertFactory.java // Class...
{ "prefix": "package io.xzxj.canal.core.factory;\n\nimport com.alibaba.otter.canal.protocol.CanalEntry;\nimport io.xzxj.canal.core.listener.EntryListener;\nimport io.xzxj.canal.core.util.TableFieldUtil;\nimport io.xzxj.canal.core.util.TableInfoUtil;\nimport org.apache.commons.lang3.StringUtils;\n\nimport java.util.Li...
TableFieldUtil.getFieldMap(r.getClass());
{}
{ "repository": "xizixuejie-canal-spring-849e5c4", "file": "canal-client-core/src/main/java/io/xzxj/canal/core/factory/EntryColumnConvertFactory.java", "task_id": "project_cc_java/6338" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "canal-client-core/src/main/java/io/xzxj/canal/core/factory/EntryColumnConvertFactory.java", "groundtruth_start_lineno": 38, "repository": "xizixuejie-canal-spring-849e5c4", "right_context_start_lineno": 39, "task_id": "project_cc_java/6338" ...
cross_code_eval_java::project_cc_java/6380
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // common/src/main/java/com/xtracr/realcamera/api/CompatExample.java // */ // private static Meth...
{ "prefix": "package com.xtracr.realcamera.api;\n\nimport com.xtracr.realcamera.RealCameraCore;\nimport com.xtracr.realcamera.config.ConfigFile;\nimport com.xtracr.realcamera.config.ModConfig;\nimport net.minecraft.client.util.math.MatrixStack;\n\nimport java.util.HashMap;\nimport java.util.Map;\nimport java.util.fun...
return config.getModModelPartName();
{}
{ "repository": "xTracr-RealCamera-7675633", "file": "common/src/main/java/com/xtracr/realcamera/api/VirtualRenderer.java", "task_id": "project_cc_java/6380" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "common/src/main/java/com/xtracr/realcamera/api/VirtualRenderer.java", "groundtruth_start_lineno": 33, "repository": "xTracr-RealCamera-7675633", "right_context_start_lineno": 34, "task_id": "project_cc_java/6380" } }
cross_code_eval_java::project_cc_java/6336
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // canal-client-core/src/main/java/io/xzxj/canal/core/factory/MapConvertFactory.java // <R> R newInsta...
{ "prefix": "package io.xzxj.canal.core.util;\n\nimport com.baomidou.mybatisplus.annotation.TableField;\nimport com.baomidou.mybatisplus.annotation.TableId;\nimport com.google.common.base.CaseFormat;\nimport org.apache.commons.lang3.StringUtils;\nimport org.apache.commons.lang3.reflect.FieldUtils;\n\nimport javax.per...
Object result = StringConvertUtil.convertType(type, value);
{}
{ "repository": "xizixuejie-canal-spring-849e5c4", "file": "canal-client-core/src/main/java/io/xzxj/canal/core/util/TableFieldUtil.java", "task_id": "project_cc_java/6336" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "canal-client-core/src/main/java/io/xzxj/canal/core/util/TableFieldUtil.java", "groundtruth_start_lineno": 79, "repository": "xizixuejie-canal-spring-849e5c4", "right_context_start_lineno": 80, "task_id": "project_cc_java/6336" } }
cross_code_eval_java::project_cc_java/6355
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // canal-spring-boot-starter/src/main/java/io/xzxj/canal/spring/autoconfigure/KafkaClientAutoConfiguration...
{ "prefix": "package io.xzxj.canal.spring.autoconfigure;\n\nimport com.alibaba.otter.canal.protocol.FlatMessage;\nimport io.xzxj.canal.core.client.AbstractCanalClient;\nimport io.xzxj.canal.core.client.RabbitMqCanalClient;\nimport io.xzxj.canal.core.factory.MapConvertFactory;\nimport io.xzxj.canal.core.handler.IMessa...
= canalProperties.getRabbitMq();
{}
{ "repository": "xizixuejie-canal-spring-849e5c4", "file": "canal-spring-boot-starter/src/main/java/io/xzxj/canal/spring/autoconfigure/RabbitMqClientAutoConfiguration.java", "task_id": "project_cc_java/6355" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "canal-spring-boot-starter/src/main/java/io/xzxj/canal/spring/autoconfigure/RabbitMqClientAutoConfiguration.java", "groundtruth_start_lineno": 65, "repository": "xizixuejie-canal-spring-849e5c4", "right_context_start_lineno": 66, "task_id": "p...
cross_code_eval_java::project_cc_java/6415
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // common/src/main/java/com/xtracr/realcamera/RealCameraCore.java // // GameRenderer.render //...
{ "prefix": "package com.xtracr.realcamera;\n\nimport com.xtracr.realcamera.config.ConfigFile;\nimport com.xtracr.realcamera.config.ModConfig;\nimport net.minecraft.client.MinecraftClient;\nimport net.minecraft.client.option.KeyBinding;\nimport net.minecraft.client.util.InputUtil;\nimport org.lwjgl.glfw.GLFW;\n\npubl...
) config.adjustClassicX(false);
{}
{ "repository": "xTracr-RealCamera-7675633", "file": "common/src/main/java/com/xtracr/realcamera/KeyBindings.java", "task_id": "project_cc_java/6415" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "common/src/main/java/com/xtracr/realcamera/KeyBindings.java", "groundtruth_start_lineno": 77, "repository": "xTracr-RealCamera-7675633", "right_context_start_lineno": 78, "task_id": "project_cc_java/6415" } }
cross_code_eval_java::project_cc_java/6440
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // common/src/main/java/com/xtracr/realcamera/mixins/MixinArmorFeatureRenderer.java // (Vi...
{ "prefix": "package com.xtracr.realcamera.mixins;\n\nimport com.xtracr.realcamera.api.VirtualRenderer;\nimport net.minecraft.client.network.AbstractClientPlayerEntity;\nimport net.minecraft.client.network.ClientPlayerEntity;\nimport net.minecraft.client.render.entity.EntityRendererFactory.Context;\nimport net.minecr...
(VirtualRenderer.shouldDisableRender("jacket")) model.jacket.visible = false;
{}
{ "repository": "xTracr-RealCamera-7675633", "file": "common/src/main/java/com/xtracr/realcamera/mixins/MixinPlayerEntityRenderer.java", "task_id": "project_cc_java/6440" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "common/src/main/java/com/xtracr/realcamera/mixins/MixinPlayerEntityRenderer.java", "groundtruth_start_lineno": 36, "repository": "xTracr-RealCamera-7675633", "right_context_start_lineno": 37, "task_id": "project_cc_java/6440" } }
cross_code_eval_java::project_cc_java/6444
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // fabric/src/main/java/com/xtracr/realcamera/mixins/GameRendererEvents.java // target = "Lnet...
{ "prefix": "package com.xtracr.realcamera.mixins;\n\nimport com.xtracr.realcamera.RealCameraCore;\nimport com.xtracr.realcamera.compat.DoABarrelRollCompat;\nimport com.xtracr.realcamera.config.ConfigFile;\nimport com.xtracr.realcamera.utils.CrosshairUtils;\nimport com.xtracr.realcamera.utils.RaycastUtils;\nimport ne...
() && DoABarrelRollCompat.modEnabled() && RealCameraCore.isActive()) {
{}
{ "repository": "xTracr-RealCamera-7675633", "file": "common/src/main/java/com/xtracr/realcamera/mixins/MixinGameRenderer.java", "task_id": "project_cc_java/6444" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "common/src/main/java/com/xtracr/realcamera/mixins/MixinGameRenderer.java", "groundtruth_start_lineno": 73, "repository": "xTracr-RealCamera-7675633", "right_context_start_lineno": 74, "task_id": "project_cc_java/6444" } }
cross_code_eval_java::project_cc_java/6443
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // fabric/src/main/java/com/xtracr/realcamera/mixins/GameRendererEvents.java // target = "Lnet...
{ "prefix": "package com.xtracr.realcamera.mixins;\n\nimport com.xtracr.realcamera.RealCameraCore;\nimport com.xtracr.realcamera.compat.DoABarrelRollCompat;\nimport com.xtracr.realcamera.config.ConfigFile;\nimport com.xtracr.realcamera.utils.CrosshairUtils;\nimport com.xtracr.realcamera.utils.RaycastUtils;\nimport ne...
.modEnabled() && RealCameraCore.isActive()) {
{}
{ "repository": "xTracr-RealCamera-7675633", "file": "common/src/main/java/com/xtracr/realcamera/mixins/MixinGameRenderer.java", "task_id": "project_cc_java/6443" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "common/src/main/java/com/xtracr/realcamera/mixins/MixinGameRenderer.java", "groundtruth_start_lineno": 73, "repository": "xTracr-RealCamera-7675633", "right_context_start_lineno": 74, "task_id": "project_cc_java/6443" } }
cross_code_eval_java::project_cc_java/6457
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Metaphor/src/main/java/com/xuanwenchao/metaphor/manager/MetaphorSubFragmentManager.java // @Overrid...
{ "prefix": "package com.xuanwenchao.metaphor.manager;\n\nimport android.util.Log;\nimport android.util.SparseArray;\n\nimport androidx.annotation.NonNull;\nimport androidx.appcompat.app.AppCompatActivity;\nimport androidx.fragment.app.Fragment;\nimport androidx.fragment.app.FragmentManager;\nimport androidx.fragment...
).OnMessageReceive(m_baseObject, code, msg);
{}
{ "repository": "xuanwenchao-Metaphor-0176f35", "file": "Metaphor/src/main/java/com/xuanwenchao/metaphor/manager/MetaphorManager.java", "task_id": "project_cc_java/6457" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Metaphor/src/main/java/com/xuanwenchao/metaphor/manager/MetaphorManager.java", "groundtruth_start_lineno": 157, "repository": "xuanwenchao-Metaphor-0176f35", "right_context_start_lineno": 158, "task_id": "project_cc_java/6457" } }
cross_code_eval_java::project_cc_java/6438
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // common/src/main/java/com/xtracr/realcamera/mixins/MixinArmorFeatureRenderer.java // (Vi...
{ "prefix": "package com.xtracr.realcamera.mixins;\n\nimport com.xtracr.realcamera.api.VirtualRenderer;\nimport net.minecraft.client.network.AbstractClientPlayerEntity;\nimport net.minecraft.client.network.ClientPlayerEntity;\nimport net.minecraft.client.render.entity.EntityRendererFactory.Context;\nimport net.minecr...
if (VirtualRenderer.shouldDisableRender("leftPants")) model.leftPants.visible = false;
{}
{ "repository": "xTracr-RealCamera-7675633", "file": "common/src/main/java/com/xtracr/realcamera/mixins/MixinPlayerEntityRenderer.java", "task_id": "project_cc_java/6438" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "common/src/main/java/com/xtracr/realcamera/mixins/MixinPlayerEntityRenderer.java", "groundtruth_start_lineno": 34, "repository": "xTracr-RealCamera-7675633", "right_context_start_lineno": 35, "task_id": "project_cc_java/6438" } }
cross_code_eval_java::project_cc_java/6442
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // common/src/main/java/com/xtracr/realcamera/mixins/MixinInGameHud.java // private void onRenderCross...
{ "prefix": "package com.xtracr.realcamera.mixins;\n\nimport com.xtracr.realcamera.RealCameraCore;\nimport com.xtracr.realcamera.compat.DoABarrelRollCompat;\nimport com.xtracr.realcamera.config.ConfigFile;\nimport com.xtracr.realcamera.utils.CrosshairUtils;\nimport com.xtracr.realcamera.utils.RaycastUtils;\nimport ne...
&& camera.isThirdPerson() && RealCameraCore.isActive() && !ConfigFile.modConfig.allowRenderingHandWhen(client)) {
{}
{ "repository": "xTracr-RealCamera-7675633", "file": "common/src/main/java/com/xtracr/realcamera/mixins/MixinGameRenderer.java", "task_id": "project_cc_java/6442" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "common/src/main/java/com/xtracr/realcamera/mixins/MixinGameRenderer.java", "groundtruth_start_lineno": 53, "repository": "xTracr-RealCamera-7675633", "right_context_start_lineno": 55, "task_id": "project_cc_java/6442" } }
cross_code_eval_java::project_cc_java/6450
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // Metaphor/src/main/java/com/xuanwenchao/metaphor/manager/MetaphorManager.java // printEr...
{ "prefix": "package com.xuanwenchao.metaphor.manager;\n\nimport androidx.annotation.NonNull;\nimport androidx.fragment.app.Fragment;\nimport androidx.fragment.app.FragmentManager;\nimport androidx.fragment.app.FragmentTransaction;\n\nimport com.xuanwenchao.metaphor.interfaces.IMetaphorMessage;\nimport com.xuanwencha...
m_metaphorManager.showFragment(strTag);
{}
{ "repository": "xuanwenchao-Metaphor-0176f35", "file": "Metaphor/src/main/java/com/xuanwenchao/metaphor/manager/MetaphorSubFragmentManager.java", "task_id": "project_cc_java/6450" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "Metaphor/src/main/java/com/xuanwenchao/metaphor/manager/MetaphorSubFragmentManager.java", "groundtruth_start_lineno": 54, "repository": "xuanwenchao-Metaphor-0176f35", "right_context_start_lineno": 55, "task_id": "project_cc_java/6450" } }
cross_code_eval_java::project_cc_java/6512
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/ksmgl/exceptionai/action/ShowSuggestionAction.java // showSuggestion(p, api...
{ "prefix": "package com.ksmgl.exceptionai.config;\n\nimport com.intellij.openapi.options.SearchableConfigurable;\nimport com.ksmgl.exceptionai.form.OpenAIAPISettingsForm;\nimport org.jetbrains.annotations.Nls;\nimport org.jetbrains.annotations.NonNls;\nimport org.jetbrains.annotations.NotNull;\nimport org.jetbrains....
settings.setTemperature(getMaxTemperatureValue(form.getTemperature()));
{}
{ "repository": "yonetmen-ExceptionAI-287a40d", "file": "src/main/java/com/ksmgl/exceptionai/config/ExceptionAIConfigurable.java", "task_id": "project_cc_java/6512" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/ksmgl/exceptionai/config/ExceptionAIConfigurable.java", "groundtruth_start_lineno": 54, "repository": "yonetmen-ExceptionAI-287a40d", "right_context_start_lineno": 55, "task_id": "project_cc_java/6512" } }
cross_code_eval_java::project_cc_java/6455
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // app/src/main/java/com/xuanwenchao/metaphor_demo/fragments/FragmentB.java // //first // ...
{ "prefix": "package com.xuanwenchao.metaphor_demo;\n\nimport androidx.appcompat.app.AppCompatActivity;\n\nimport android.os.Bundle;\nimport android.view.View;\nimport android.view.Window;\nimport android.widget.TextView;\n\nimport com.xuanwenchao.metaphor.Metaphor;\nimport com.xuanwenchao.metaphor.annotation.Metapho...
m_fx1 = FragmentX1.newInstance();
{}
{ "repository": "xuanwenchao-Metaphor-0176f35", "file": "app/src/main/java/com/xuanwenchao/metaphor_demo/MainActivity.java", "task_id": "project_cc_java/6455" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "app/src/main/java/com/xuanwenchao/metaphor_demo/MainActivity.java", "groundtruth_start_lineno": 87, "repository": "xuanwenchao-Metaphor-0176f35", "right_context_start_lineno": 88, "task_id": "project_cc_java/6455" } }
cross_code_eval_java::project_cc_java/6517
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/ksmgl/exceptionai/action/ShowSuggestionAction.java // showSuggestion(p, api...
{ "prefix": "package com.ksmgl.exceptionai.config;\n\nimport com.intellij.openapi.options.SearchableConfigurable;\nimport com.ksmgl.exceptionai.form.OpenAIAPISettingsForm;\nimport org.jetbrains.annotations.Nls;\nimport org.jetbrains.annotations.NonNls;\nimport org.jetbrains.annotations.NotNull;\nimport org.jetbrains....
!form.getTemperature().equals(String.valueOf(settings.getTemperature()));
{}
{ "repository": "yonetmen-ExceptionAI-287a40d", "file": "src/main/java/com/ksmgl/exceptionai/config/ExceptionAIConfigurable.java", "task_id": "project_cc_java/6517" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/ksmgl/exceptionai/config/ExceptionAIConfigurable.java", "groundtruth_start_lineno": 43, "repository": "yonetmen-ExceptionAI-287a40d", "right_context_start_lineno": 44, "task_id": "project_cc_java/6517" } }
cross_code_eval_java::project_cc_java/6504
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/ksmgl/exceptionai/form/OpenAIAPISettingsForm.java // } // }; // dialog....
{ "prefix": "package com.ksmgl.exceptionai.config;\n\nimport com.intellij.openapi.options.SearchableConfigurable;\nimport com.ksmgl.exceptionai.form.OpenAIAPISettingsForm;\nimport org.jetbrains.annotations.Nls;\nimport org.jetbrains.annotations.NonNls;\nimport org.jetbrains.annotations.NotNull;\nimport org.jetbrains....
return form.getMainPanel();
{}
{ "repository": "yonetmen-ExceptionAI-287a40d", "file": "src/main/java/com/ksmgl/exceptionai/config/ExceptionAIConfigurable.java", "task_id": "project_cc_java/6504" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/ksmgl/exceptionai/config/ExceptionAIConfigurable.java", "groundtruth_start_lineno": 35, "repository": "yonetmen-ExceptionAI-287a40d", "right_context_start_lineno": 36, "task_id": "project_cc_java/6504" } }
cross_code_eval_java::project_cc_java/6508
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/ksmgl/exceptionai/action/ShowSuggestionAction.java // showSuggestion(p, api...
{ "prefix": "package com.ksmgl.exceptionai.config;\n\nimport com.intellij.openapi.options.SearchableConfigurable;\nimport com.ksmgl.exceptionai.form.OpenAIAPISettingsForm;\nimport org.jetbrains.annotations.Nls;\nimport org.jetbrains.annotations.NonNls;\nimport org.jetbrains.annotations.NotNull;\nimport org.jetbrains....
form.getTemperature().equals(String.valueOf(settings.getTemperature()));
{}
{ "repository": "yonetmen-ExceptionAI-287a40d", "file": "src/main/java/com/ksmgl/exceptionai/config/ExceptionAIConfigurable.java", "task_id": "project_cc_java/6508" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/ksmgl/exceptionai/config/ExceptionAIConfigurable.java", "groundtruth_start_lineno": 43, "repository": "yonetmen-ExceptionAI-287a40d", "right_context_start_lineno": 44, "task_id": "project_cc_java/6508" } }
cross_code_eval_java::project_cc_java/6473
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/dev/yanisk/TDDPredict/view/PredictionStatisticsPanel.java // private void createCorre...
{ "prefix": "package dev.yanisk.TDDPredict.view;\n\nimport com.intellij.ide.BrowserUtil;\nimport git4idea.repo.GitRemote;\n\nimport java.util.*;\n\nimport com.intellij.openapi.project.Project;\nimport com.intellij.ui.components.JBPanel;\nimport dev.yanisk.TDDPredict.bus.TestRunEventBus;\nimport dev.yanisk.TDDPredict....
(testRun.getTestRunOutcome() == null) {
{}
{ "repository": "yakampe-TDDPredict-d2aa06b", "file": "src/main/java/dev/yanisk/TDDPredict/view/HistoryList.java", "task_id": "project_cc_java/6473" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/dev/yanisk/TDDPredict/view/HistoryList.java", "groundtruth_start_lineno": 81, "repository": "yakampe-TDDPredict-d2aa06b", "right_context_start_lineno": 82, "task_id": "project_cc_java/6473" } }
cross_code_eval_java::project_cc_java/6525
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/ksmgl/exceptionai/action/CodeEditorAction.java // } // } // private void high...
{ "prefix": "package com.ksmgl.exceptionai.action;\n\nimport com.intellij.execution.filters.Filter;\nimport com.intellij.execution.filters.HyperlinkInfo;\nimport com.intellij.openapi.application.ApplicationManager;\nimport com.intellij.openapi.editor.markup.TextAttributes;\nimport com.intellij.openapi.options.ShowSet...
apiResponse.getMessage(), String.format("%d ExceptionAI Error", apiResponse.getCode()), Messages.getErrorIcon());
{}
{ "repository": "yonetmen-ExceptionAI-287a40d", "file": "src/main/java/com/ksmgl/exceptionai/action/ShowSuggestionAction.java", "task_id": "project_cc_java/6525" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/ksmgl/exceptionai/action/ShowSuggestionAction.java", "groundtruth_start_lineno": 80, "repository": "yonetmen-ExceptionAI-287a40d", "right_context_start_lineno": 83, "task_id": "project_cc_java/6525" } }
cross_code_eval_java::project_cc_java/6524
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/ksmgl/exceptionai/action/CodeEditorAction.java // } // } // return null...
{ "prefix": "package com.ksmgl.exceptionai.action;\n\nimport com.intellij.execution.filters.Filter;\nimport com.intellij.execution.filters.HyperlinkInfo;\nimport com.intellij.openapi.application.ApplicationManager;\nimport com.intellij.openapi.editor.markup.TextAttributes;\nimport com.intellij.openapi.options.ShowSet...
"\n" + apiResponse.getMessage(), "ExceptionAI Suggestions", Messages.getInformationIcon());
{}
{ "repository": "yonetmen-ExceptionAI-287a40d", "file": "src/main/java/com/ksmgl/exceptionai/action/ShowSuggestionAction.java", "task_id": "project_cc_java/6524" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/ksmgl/exceptionai/action/ShowSuggestionAction.java", "groundtruth_start_lineno": 74, "repository": "yonetmen-ExceptionAI-287a40d", "right_context_start_lineno": 77, "task_id": "project_cc_java/6524" } }
cross_code_eval_java::project_cc_java/6474
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [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/dev/yanisk/TDDPredict/view/HistoryListTest.java // TestRun testRun = new TestRun(...
{ "prefix": "package dev.yanisk.TDDPredict.view;\n\nimport com.intellij.ide.BrowserUtil;\nimport git4idea.repo.GitRemote;\n\nimport java.util.*;\n\nimport com.intellij.openapi.project.Project;\nimport com.intellij.ui.components.JBPanel;\nimport dev.yanisk.TDDPredict.bus.TestRunEventBus;\nimport dev.yanisk.TDDPredict....
= testRun.getDateTime();
{}
{ "repository": "yakampe-TDDPredict-d2aa06b", "file": "src/main/java/dev/yanisk/TDDPredict/view/HistoryList.java", "task_id": "project_cc_java/6474" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/dev/yanisk/TDDPredict/view/HistoryList.java", "groundtruth_start_lineno": 89, "repository": "yakampe-TDDPredict-d2aa06b", "right_context_start_lineno": 90, "task_id": "project_cc_java/6474" } }
cross_code_eval_java::project_cc_java/6475
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/dev/yanisk/TDDPredict/util/ButtonColors.java // package dev.yanisk.TDDPredict.util; // im...
{ "prefix": "package dev.yanisk.TDDPredict.view;\n\nimport com.intellij.ide.BrowserUtil;\nimport git4idea.repo.GitRemote;\n\nimport java.util.*;\n\nimport com.intellij.openapi.project.Project;\nimport com.intellij.ui.components.JBPanel;\nimport dev.yanisk.TDDPredict.bus.TestRunEventBus;\nimport dev.yanisk.TDDPredict....
switch (testRun.getTestRunOutcome()) {
{}
{ "repository": "yakampe-TDDPredict-d2aa06b", "file": "src/main/java/dev/yanisk/TDDPredict/view/HistoryList.java", "task_id": "project_cc_java/6475" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/dev/yanisk/TDDPredict/view/HistoryList.java", "groundtruth_start_lineno": 110, "repository": "yakampe-TDDPredict-d2aa06b", "right_context_start_lineno": 111, "task_id": "project_cc_java/6475" } }
cross_code_eval_java::project_cc_java/6476
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/dev/yanisk/TDDPredict/models/TestRun.java // case NOT_EXECUTED: // ...
{ "prefix": "package dev.yanisk.TDDPredict.view;\n\nimport com.intellij.ide.BrowserUtil;\nimport git4idea.repo.GitRemote;\n\nimport java.util.*;\n\nimport com.intellij.openapi.project.Project;\nimport com.intellij.ui.components.JBPanel;\nimport dev.yanisk.TDDPredict.bus.TestRunEventBus;\nimport dev.yanisk.TDDPredict....
14, testRun.getCommit());
{}
{ "repository": "yakampe-TDDPredict-d2aa06b", "file": "src/main/java/dev/yanisk/TDDPredict/view/HistoryList.java", "task_id": "project_cc_java/6476" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/dev/yanisk/TDDPredict/view/HistoryList.java", "groundtruth_start_lineno": 122, "repository": "yakampe-TDDPredict-d2aa06b", "right_context_start_lineno": 123, "task_id": "project_cc_java/6476" } }
cross_code_eval_java::project_cc_java/6523
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/ksmgl/exceptionai/action/CodeEditorAction.java // } // } // return null...
{ "prefix": "package com.ksmgl.exceptionai.action;\n\nimport com.intellij.execution.filters.Filter;\nimport com.intellij.execution.filters.HyperlinkInfo;\nimport com.intellij.openapi.application.ApplicationManager;\nimport com.intellij.openapi.editor.markup.TextAttributes;\nimport com.intellij.openapi.options.ShowSet...
apiResponse.getCode() == 200) {
{}
{ "repository": "yonetmen-ExceptionAI-287a40d", "file": "src/main/java/com/ksmgl/exceptionai/action/ShowSuggestionAction.java", "task_id": "project_cc_java/6523" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/ksmgl/exceptionai/action/ShowSuggestionAction.java", "groundtruth_start_lineno": 71, "repository": "yonetmen-ExceptionAI-287a40d", "right_context_start_lineno": 72, "task_id": "project_cc_java/6523" } }
cross_code_eval_java::project_cc_java/6477
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file Context] // Here are some relevant code fragments from other files of the repo: // the below code fragment can be found in: // src/main/java/dev/yanisk/TDDPredict/view/ActionPanel.java // return buttonsPanel; // } // ...
{ "prefix": "package dev.yanisk.TDDPredict.view;\n\nimport com.intellij.ide.BrowserUtil;\nimport git4idea.repo.GitRemote;\n\nimport java.util.*;\n\nimport com.intellij.openapi.project.Project;\nimport com.intellij.ui.components.JBPanel;\nimport dev.yanisk.TDDPredict.bus.TestRunEventBus;\nimport dev.yanisk.TDDPredict....
= testRun.getPrediction() == Prediction.CORRECT ? AllIcons.RunConfigurations.TestPassed : AllIcons.RunConfigurations.TestFailed;
{}
{ "repository": "yakampe-TDDPredict-d2aa06b", "file": "src/main/java/dev/yanisk/TDDPredict/view/HistoryList.java", "task_id": "project_cc_java/6477" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/dev/yanisk/TDDPredict/view/HistoryList.java", "groundtruth_start_lineno": 128, "repository": "yakampe-TDDPredict-d2aa06b", "right_context_start_lineno": 129, "task_id": "project_cc_java/6477" } }
cross_code_eval_java::project_cc_java/6482
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/yeliheng/eventbus/SubscriberFinder.java // Subscribe annotation = method....
{ "prefix": "package com.yeliheng.eventbus;\n\nimport com.yeliheng.eventbus.enums.ThreadType;\nimport com.yeliheng.eventbus.interfaces.IEvent;\nimport com.yeliheng.eventbus.interfaces.ISubscriber;\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\n\nimport java.util.*;\nimport java.util.concurrent.Executor;\...
<Class<?>, List<ISubscriber>> registeredSubs = SubscriberFinder.find(subscriber);
{}
{ "repository": "yeliheng-EventBus-50cbec9", "file": "src/main/java/com/yeliheng/eventbus/EventBus.java", "task_id": "project_cc_java/6482" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/yeliheng/eventbus/EventBus.java", "groundtruth_start_lineno": 61, "repository": "yeliheng-EventBus-50cbec9", "right_context_start_lineno": 62, "task_id": "project_cc_java/6482" } }
cross_code_eval_java::project_cc_java/6481
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/yeliheng/eventbus/SubscriberFinder.java // Subscribe annotation = method....
{ "prefix": "package com.yeliheng.eventbus;\n\nimport com.yeliheng.eventbus.enums.ThreadType;\nimport com.yeliheng.eventbus.interfaces.IEvent;\nimport com.yeliheng.eventbus.interfaces.ISubscriber;\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\n\nimport java.util.*;\nimport java.util.concurrent.Executor;\...
subscriber.getThreadType() == ThreadType.ASYNC) {
{}
{ "repository": "yeliheng-EventBus-50cbec9", "file": "src/main/java/com/yeliheng/eventbus/EventBus.java", "task_id": "project_cc_java/6481" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/yeliheng/eventbus/EventBus.java", "groundtruth_start_lineno": 95, "repository": "yeliheng-EventBus-50cbec9", "right_context_start_lineno": 96, "task_id": "project_cc_java/6481" } }
cross_code_eval_java::project_cc_java/6480
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/yeliheng/eventbus/SubscriberFinder.java // Subscribe annotation = method....
{ "prefix": "package com.yeliheng.eventbus;\n\nimport com.yeliheng.eventbus.enums.ThreadType;\nimport com.yeliheng.eventbus.interfaces.IEvent;\nimport com.yeliheng.eventbus.interfaces.ISubscriber;\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\n\nimport java.util.*;\nimport java.util.concurrent.Executor;\...
(sub -> sub.getSubscriber() == subscriber);
{}
{ "repository": "yeliheng-EventBus-50cbec9", "file": "src/main/java/com/yeliheng/eventbus/EventBus.java", "task_id": "project_cc_java/6480" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/yeliheng/eventbus/EventBus.java", "groundtruth_start_lineno": 79, "repository": "yeliheng-EventBus-50cbec9", "right_context_start_lineno": 80, "task_id": "project_cc_java/6480" } }
cross_code_eval_java::project_cc_java/6499
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/yhzdys/litchi/transaction/TxExecutor.java // } // private Object doExecute(Tr...
{ "prefix": "package com.yhzdys.litchi.datasource;\n\nimport com.yhzdys.litchi.connection.ConnectionWrapper;\nimport com.yhzdys.litchi.connection.TxConnectionWrapper;\nimport com.yhzdys.litchi.context.DataSourceContext;\nimport com.yhzdys.litchi.context.TransactionContext;\nimport com.yhzdys.litchi.context.TxConnecti...
DataSourceContext.get();
{}
{ "repository": "yhzdys-litchi-71b57c8", "file": "src/main/java/com/yhzdys/litchi/datasource/MultiDataSource.java", "task_id": "project_cc_java/6499" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/yhzdys/litchi/datasource/MultiDataSource.java", "groundtruth_start_lineno": 60, "repository": "yhzdys-litchi-71b57c8", "right_context_start_lineno": 61, "task_id": "project_cc_java/6499" } }
cross_code_eval_java::project_cc_java/6487
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/yhzdys/litchi/transaction/Transaction.java // Class<? extends Throwable>[] getNoR...
{ "prefix": "package com.yhzdys.litchi.transaction;\n\nimport com.yhzdys.litchi.context.TransactionContext;\nimport com.yhzdys.litchi.context.TxConnectionContext;\nimport com.yhzdys.litchi.exception.TransactionException;\n\nimport java.util.Objects;\n\npublic class TxExecutor {\n\n public static final TxExecutor I...
return TransactionContext.get() != null;
{}
{ "repository": "yhzdys-litchi-71b57c8", "file": "src/main/java/com/yhzdys/litchi/transaction/TxExecutor.java", "task_id": "project_cc_java/6487" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/yhzdys/litchi/transaction/TxExecutor.java", "groundtruth_start_lineno": 58, "repository": "yhzdys-litchi-71b57c8", "right_context_start_lineno": 59, "task_id": "project_cc_java/6487" } }
cross_code_eval_java::project_cc_java/6497
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/yhzdys/litchi/context/TxConnectionContext.java // * @throws SQLException SQLExce...
{ "prefix": "package com.yhzdys.litchi.transaction;\n\nimport com.yhzdys.litchi.context.TransactionContext;\nimport com.yhzdys.litchi.context.TxConnectionContext;\nimport com.yhzdys.litchi.exception.TransactionException;\n\nimport java.util.Objects;\n\npublic class TxExecutor {\n\n public static final TxExecutor I...
= transaction.getNoRollbackFor();
{}
{ "repository": "yhzdys-litchi-71b57c8", "file": "src/main/java/com/yhzdys/litchi/transaction/TxExecutor.java", "task_id": "project_cc_java/6497" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/yhzdys/litchi/transaction/TxExecutor.java", "groundtruth_start_lineno": 98, "repository": "yhzdys-litchi-71b57c8", "right_context_start_lineno": 99, "task_id": "project_cc_java/6497" } }
cross_code_eval_java::project_cc_java/6489
cross_code_eval_java
crossfile_completion
java
Complete the next Java code line/block using the context. Return only code. [Cross-file 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/yhzdys/litchi/datasource/MultiDataSource.java // } // txConnection = ...
{ "prefix": "package com.yhzdys.litchi.transaction;\n\nimport com.yhzdys.litchi.context.TransactionContext;\nimport com.yhzdys.litchi.context.TxConnectionContext;\nimport com.yhzdys.litchi.exception.TransactionException;\n\nimport java.util.Objects;\n\npublic class TxExecutor {\n\n public static final TxExecutor I...
TransactionContext.remove();
{}
{ "repository": "yhzdys-litchi-71b57c8", "file": "src/main/java/com/yhzdys/litchi/transaction/TxExecutor.java", "task_id": "project_cc_java/6489" }
{ "type": "crossfile_reference", "family": "crossfile_completion" }
{ "metadata": { "context_start_lineno": 0, "file": "src/main/java/com/yhzdys/litchi/transaction/TxExecutor.java", "groundtruth_start_lineno": 66, "repository": "yhzdys-litchi-71b57c8", "right_context_start_lineno": 67, "task_id": "project_cc_java/6489" } }