Dataset Viewer
Auto-converted to Parquet Duplicate
instance_id
stringlengths
15
28
prompt
stringlengths
2.96k
37.3k
data_source
stringclasses
1 value
ability
stringclasses
1 value
instance
stringlengths
1.56k
38.7k
parsed_commit_content
stringlengths
3.47k
77.3k
problem_statement
stringlengths
51
8.9k
patch
stringlengths
298
6.77k
file_context
stringlengths
907
36.9k
filelevel_patches
stringlengths
215
6.58k
messages
listlengths
1
1
verification_info
stringlengths
1.42k
38.7k
num_messages_tokens
int64
714
7.98k
num_prompt_tokens
int64
707
7.97k
num_patch_tokens
int64
87
1.83k
Project-MONAI__MONAI-5093
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- ContrastiveLoss with dynamic batchsize **Is your feature request related to a problem? Please describe.** When we instantiate an instance of type class `ContrastiveLoss` we need to pass in the parameter for...
swe-gym
coding
{"FAIL_TO_PASS": ["tests/test_contrastive_loss.py::TestContrastiveLoss::test_result_1", "tests/test_contrastive_loss.py::TestContrastiveLoss::test_result_2"], "PASS_TO_PASS": ["tests/test_contrastive_loss.py::TestContrastiveLoss::test_result_0", "tests/test_contrastive_loss.py::TestContrastiveLoss::test_with_cuda", "te...
{"file_diffs":[{"old_file_content":"# Copyright (c) MONAI Consortium\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# http://www.apache.org/licenses/LICENSE-2.0\n# Unless required by...
ContrastiveLoss with dynamic batchsize **Is your feature request related to a problem? Please describe.** When we instantiate an instance of type class `ContrastiveLoss` we need to pass in the parameter for `batch_size`. This assumes that the batch size remains constant all through the training(which is not always the...
diff --git a/monai/losses/contrastive.py b/monai/losses/contrastive.py --- a/monai/losses/contrastive.py +++ b/monai/losses/contrastive.py @@ -9,6 +9,8 @@ # See the License for the specific language governing permissions and # limitations under the License. +from distutils.log import warn + import torch from torc...
{"monai/losses/contrastive.py": "# Copyright (c) MONAI Consortium\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# http://www.apache.org/licenses/LICENSE-2.0\n# Unless required by ap...
{"monai/losses/contrastive.py": "@@ -9,6 +9,8 @@\n # See the License for the specific language governing permissions and\n # limitations under the License.\n \n+from distutils.log import warn\n+\n import torch\n from torch.nn import functional as F\n from torch.nn.modules.loss import _Loss\n@@ -30,11 +32,10 @@ class Co...
[ { "content": "\nWe are currently solving the following issue within our repository. Here is the issue text:\n--- BEGIN ISSUE ---\nContrastiveLoss with dynamic batchsize\n**Is your feature request related to a problem? Please describe.**\r\nWhen we instantiate an instance of type class `ContrastiveLoss` we need ...
{"file_context": {"monai/losses/contrastive.py": "# Copyright (c) MONAI Consortium\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# http://www.apache.org/licenses/LICENSE-2.0\n# Unle...
1,273
1,266
792
facebookresearch__hydra-1560
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [callbacks] call on_*_end events in reverse order --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILE --- ``` ### hydra/...
swe-gym
coding
{"FAIL_TO_PASS": ["tests/test_callbacks.py::test_app_with_callbacks[args2-[HYDRA]"], "PASS_TO_PASS": ["tests/test_callbacks.py::test_app_with_callbacks[args1-[HYDRA]", "tests/test_callbacks.py::test_app_with_callbacks[args0-[HYDRA]"], "base_commit": "c6aeb2ea65892fd4af9f3a7d7795bab08ad7398d", "created_at": "2021-04-19T...
{"file_diffs":[{"old_file_content":"# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved\nimport warnings\nfrom typing import Any\n\nfrom omegaconf import DictConfig\n\nfrom hydra.core.utils import JobReturn\nfrom hydra.utils import instantiate\n\n\nclass Callbacks:\n def __init__(self, config: Dic...
[callbacks] call on_*_end events in reverse order
diff --git a/hydra/core/callbacks.py b/hydra/core/callbacks.py --- a/hydra/core/callbacks.py +++ b/hydra/core/callbacks.py @@ -14,8 +14,9 @@ def __init__(self, config: DictConfig) -> None: for params in config.hydra.callbacks.values(): self.callbacks.append(instantiate(params)) - def _notify(...
{"hydra/core/callbacks.py": "# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved\nimport warnings\nfrom typing import Any\n\nfrom omegaconf import DictConfig\n\nfrom hydra.core.utils import JobReturn\nfrom hydra.utils import instantiate\n\n\nclass Callbacks:\n def __init__(self, config: DictConfig...
{"hydra/core/callbacks.py": "@@ -14,8 +14,9 @@ def __init__(self, config: DictConfig) -> None:\n for params in config.hydra.callbacks.values():\n self.callbacks.append(instantiate(params))\n \n- def _notify(self, function_name: str, **kwargs: Any) -> None:\n- for c in self.callbacks:\n+ ...
[ { "content": "\nWe are currently solving the following issue within our repository. Here is the issue text:\n--- BEGIN ISSUE ---\n[callbacks] call on_*_end events in reverse order\n\n\n--- END ISSUE ---\n\nBelow are some code segments, each from a relevant file. One or more of these files may contain bugs.\n\n-...
{"file_context": {"hydra/core/callbacks.py": "# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved\nimport warnings\nfrom typing import Any\n\nfrom omegaconf import DictConfig\n\nfrom hydra.core.utils import JobReturn\nfrom hydra.utils import instantiate\n\n\nclass Callbacks:\n def __init__(self, c...
714
707
543
getmoto__moto-5043
"\nWe are currently solving the following issue within our repository. Here is the issue text:\n--- (...TRUNCATED)
swe-gym
coding
"{\"FAIL_TO_PASS\": [\"tests/test_ses/test_ses_boto3.py::test_verify_email_identity_idempotency\"], (...TRUNCATED)
"{\"file_diffs\":[{\"old_file_content\":\"import re\\nimport json\\nimport email\\nimport datetime\\(...TRUNCATED)
"SES verify_email_identity is not idempotent\nUsing `verify_email_identity` on an existing identity (...TRUNCATED)
"diff --git a/moto/ses/models.py b/moto/ses/models.py\n--- a/moto/ses/models.py\n+++ b/moto/ses/mode(...TRUNCATED)
"{\"moto/ses/models.py\": \"import re\\nimport json\\nimport email\\nimport datetime\\nfrom email.mi(...TRUNCATED)
"{\"moto/ses/models.py\": \"@@ -132,7 +132,8 @@ def _is_verified_address(self, source):\\n \\n d(...TRUNCATED)
[{"content":"\nWe are currently solving the following issue within our repository. Here is the issue(...TRUNCATED)
"{\"file_context\": {\"moto/ses/models.py\": \"import re\\nimport json\\nimport email\\nimport datet(...TRUNCATED)
4,337
4,330
122
python__mypy-10401
"\nWe are currently solving the following issue within our repository. Here is the issue text:\n--- (...TRUNCATED)
swe-gym
coding
"{\"FAIL_TO_PASS\": [\"mypy/test/testcheck.py::TypeCheckSuite::testMultipleUndefinedTypeAndTuple\", (...TRUNCATED)
"{\"file_diffs\":[{\"old_file_content\":\"\\\"\\\"\\\"Calculation of the least upper bound types (jo(...TRUNCATED)
"Unresolved references + tuples crashes mypy\n<!--\r\n Use this form only if mypy reports an \"INTE(...TRUNCATED)
"diff --git a/mypy/join.py b/mypy/join.py\n--- a/mypy/join.py\n+++ b/mypy/join.py\n@@ -7,7 +7,7 @@\n(...TRUNCATED)
"{\"mypy/join.py\": \"\\\"\\\"\\\"Calculation of the least upper bound types (joins).\\\"\\\"\\\"\\n(...TRUNCATED)
"{\"mypy/join.py\": \"@@ -7,7 +7,7 @@\\n Type, AnyType, NoneType, TypeVisitor, Instance, Unbound(...TRUNCATED)
[{"content":"\nWe are currently solving the following issue within our repository. Here is the issue(...TRUNCATED)
"{\"file_context\": {\"mypy/join.py\": \"\\\"\\\"\\\"Calculation of the least upper bound types (joi(...TRUNCATED)
6,353
6,346
344
Project-MONAI__MONAI-6034
"\nWe are currently solving the following issue within our repository. Here is the issue text:\n--- (...TRUNCATED)
swe-gym
coding
"{\"FAIL_TO_PASS\": [\"tests/test_sliding_window_inference.py::TestSlidingWindowInference::test_defa(...TRUNCATED)
"{\"file_diffs\":[{\"old_file_content\":\"# Copyright (c) MONAI Consortium\\n# Licensed under the Ap(...TRUNCATED)
"`sliding_window_inference` shouldn't remove gradient\n**Describe the bug**\r\n```py\r\nimport torch(...TRUNCATED)
"diff --git a/monai/inferers/utils.py b/monai/inferers/utils.py\n--- a/monai/inferers/utils.py\n+++ (...TRUNCATED)
"{\"monai/inferers/utils.py\": \"# Copyright (c) MONAI Consortium\\n# Licensed under the Apache Lice(...TRUNCATED)
"{\"monai/inferers/utils.py\": \"@@ -262,7 +262,7 @@ def sliding_window_inference(\\n \\n # acco(...TRUNCATED)
[{"content":"\nWe are currently solving the following issue within our repository. Here is the issue(...TRUNCATED)
"{\"file_context\": {\"monai/inferers/utils.py\": \"# Copyright (c) MONAI Consortium\\n# Licensed un(...TRUNCATED)
4,604
4,597
165
Project-MONAI__MONAI-6560
"\nWe are currently solving the following issue within our repository. Here is the issue text:\n--- (...TRUNCATED)
swe-gym
coding
"{\"FAIL_TO_PASS\": [\"tests/test_bundle_workflow.py::TestBundleWorkflow::test_train_config_0__testb(...TRUNCATED)
"{\"file_diffs\":[{\"old_file_content\":\"# Copyright (c) MONAI Consortium\\n# Licensed under the Ap(...TRUNCATED)
"Enhance `check_properties` in `monai.bundle.workflows`\nCurrently, it may not work on some optional(...TRUNCATED)
"diff --git a/monai/bundle/workflows.py b/monai/bundle/workflows.py\n--- a/monai/bundle/workflows.py(...TRUNCATED)
"{\"monai/bundle/workflows.py\": \"# Copyright (c) MONAI Consortium\\n# Licensed under the Apache Li(...TRUNCATED)
"{\"monai/bundle/workflows.py\": \"@@ -378,7 +378,8 @@ def _check_optional_id(self, name: str, prope(...TRUNCATED)
[{"content":"\nWe are currently solving the following issue within our repository. Here is the issue(...TRUNCATED)
"{\"file_context\": {\"monai/bundle/workflows.py\": \"# Copyright (c) MONAI Consortium\\n# Licensed (...TRUNCATED)
4,455
4,448
169
Project-MONAI__MONAI-3952
"\nWe are currently solving the following issue within our repository. Here is the issue text:\n--- (...TRUNCATED)
swe-gym
coding
"{\"FAIL_TO_PASS\": [\"tests/test_integration_bundle_run.py::TestBundleRun::test_tiny\"], \"PASS_TO_(...TRUNCATED)
"{\"file_diffs\":[{\"old_file_content\":\"# Copyright (c) MONAI Consortium\\n# Licensed under the Ap(...TRUNCATED)
"make 'meta_file' optional for `monai.bundle run`\n**Is your feature request related to a problem? P(...TRUNCATED)
"diff --git a/monai/bundle/scripts.py b/monai/bundle/scripts.py\n--- a/monai/bundle/scripts.py\n+++ (...TRUNCATED)
"{\"monai/bundle/scripts.py\": \"# Copyright (c) MONAI Consortium\\n# Licensed under the Apache Lice(...TRUNCATED)
"{\"monai/bundle/scripts.py\": \"@@ -133,9 +133,8 @@ def run(\\n python -m monai.bundle run (...TRUNCATED)
[{"content":"\nWe are currently solving the following issue within our repository. Here is the issue(...TRUNCATED)
"{\"file_context\": {\"monai/bundle/scripts.py\": \"# Copyright (c) MONAI Consortium\\n# Licensed un(...TRUNCATED)
3,522
3,515
1,116
getmoto__moto-7365
"\nWe are currently solving the following issue within our repository. Here is the issue text:\n--- (...TRUNCATED)
swe-gym
coding
"{\"FAIL_TO_PASS\": [\"tests/test_dynamodb/test_dynamodb_update_expressions.py::test_update_item_add(...TRUNCATED)
"{\"file_diffs\":[{\"old_file_content\":\"import base64\\nimport copy\\nimport decimal\\nfrom typing(...TRUNCATED)
"DynamoDB's `update_item` performs floating-point arithmetic with mock table created via `boto3`\nWh(...TRUNCATED)
"diff --git a/moto/dynamodb/models/dynamo_type.py b/moto/dynamodb/models/dynamo_type.py\n--- a/moto/(...TRUNCATED)
"{\"moto/dynamodb/models/dynamo_type.py\": \"import base64\\nimport copy\\nimport decimal\\nfrom typ(...TRUNCATED)
"{\"moto/dynamodb/models/dynamo_type.py\": \"@@ -1,6 +1,6 @@\\n import base64\\n import copy\\n-impo(...TRUNCATED)
[{"content":"\nWe are currently solving the following issue within our repository. Here is the issue(...TRUNCATED)
"{\"file_context\": {\"moto/dynamodb/models/dynamo_type.py\": \"import base64\\nimport copy\\nimport(...TRUNCATED)
4,848
4,841
482
conan-io__conan-10959
"\nWe are currently solving the following issue within our repository. Here is the issue text:\n--- (...TRUNCATED)
swe-gym
coding
"{\"FAIL_TO_PASS\": [\"conans/test/integration/package_id/python_requires_package_id_test.py::Python(...TRUNCATED)
"{\"file_diffs\":[{\"old_file_content\":\"import os\\n\\nfrom conans.client.build.cppstd_flags impor(...TRUNCATED)
"[bug] default_python_requires_id_mode throw an error\nI tried to change `default_python_requires_id(...TRUNCATED)
"diff --git a/conans/model/info.py b/conans/model/info.py\n--- a/conans/model/info.py\n+++ b/conans/(...TRUNCATED)
"{\"conans/model/info.py\": \"import os\\n\\nfrom conans.client.build.cppstd_flags import cppstd_def(...TRUNCATED)
"{\"conans/model/info.py\": \"@@ -349,6 +349,9 @@ def recipe_revision_mode(self):\\n self._c(...TRUNCATED)
[{"content":"\nWe are currently solving the following issue within our repository. Here is the issue(...TRUNCATED)
"{\"file_context\": {\"conans/model/info.py\": \"import os\\n\\nfrom conans.client.build.cppstd_flag(...TRUNCATED)
5,833
5,826
113
modin-project__modin-7189
"\nWe are currently solving the following issue within our repository. Here is the issue text:\n--- (...TRUNCATED)
swe-gym
coding
"{\"FAIL_TO_PASS\": [\"modin/tests/config/test_envvars.py::test_wrong_values[NPartitions]\", \"modin(...TRUNCATED)
"{\"file_diffs\":[{\"old_file_content\":\"# Licensed to Modin Development Team under one or more con(...TRUNCATED)
Add extra check for `NPartitions` and `CpuCount` classes
"diff --git a/modin/config/envvars.py b/modin/config/envvars.py\n--- a/modin/config/envvars.py\n+++ (...TRUNCATED)
"{\"modin/config/envvars.py\": \"# Licensed to Modin Development Team under one or more contributor (...TRUNCATED)
"{\"modin/config/envvars.py\": \"@@ -313,6 +313,20 @@ def _get_default(cls) -> int:\\n \\n r(...TRUNCATED)
[{"content":"\nWe are currently solving the following issue within our repository. Here is the issue(...TRUNCATED)
"{\"file_context\": {\"modin/config/envvars.py\": \"# Licensed to Modin Development Team under one o(...TRUNCATED)
6,602
6,595
653
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
19

Collection including rasdani/SkyRL-v0-293-data-oracle-8k-context