problem_id
stringlengths
18
22
source
stringclasses
1 value
task_type
stringclasses
1 value
in_source_id
stringlengths
13
58
prompt
stringlengths
1.1k
10.2k
golden_diff
stringlengths
151
4.94k
verification_info
stringlengths
582
21k
num_tokens
int64
271
2.05k
num_tokens_diff
int64
47
1.02k
gh_patches_debug_17764
rasdani/github-patches
git_diff
joke2k__faker-2038
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- BE Vat Numbers should have a modulo 97 check and start wit 1 or 0 * Faker version: 25 * OS: OS. X Monterery VAT Numbers generated in Belgium (currently set-up in the provider ssn for locale nl_BE should s...
diff --git a/faker/providers/ssn/nl_BE/__init__.py b/faker/providers/ssn/nl_BE/__init__.py --- a/faker/providers/ssn/nl_BE/__init__.py +++ b/faker/providers/ssn/nl_BE/__init__.py @@ -57,8 +57,24 @@ vat_id_formats = ("BE##########",) def vat_id(self) -> str: + + vat_id_random_section = ( + ...
{"golden_diff": "diff --git a/faker/providers/ssn/nl_BE/__init__.py b/faker/providers/ssn/nl_BE/__init__.py\n--- a/faker/providers/ssn/nl_BE/__init__.py\n+++ b/faker/providers/ssn/nl_BE/__init__.py\n@@ -57,8 +57,24 @@\n vat_id_formats = (\"BE##########\",)\n \n def vat_id(self) -> str:\n+\n+ vat_id_rando...
1,165
329
gh_patches_debug_21801
rasdani/github-patches
git_diff
SciTools__cartopy-2287
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Remove "cfeature.LAND" from "Feature Creation" example ? In the nice example provided on the [Feature Creation page](https://scitools.org.uk/cartopy/docs/latest/gallery/feature_creation.html), you could proba...
diff --git a/examples/lines_and_polygons/feature_creation.py b/examples/lines_and_polygons/feature_creation.py --- a/examples/lines_and_polygons/feature_creation.py +++ b/examples/lines_and_polygons/feature_creation.py @@ -28,7 +28,7 @@ # Put a background image on for nice sea rendering. ax.stock_img() - ...
{"golden_diff": "diff --git a/examples/lines_and_polygons/feature_creation.py b/examples/lines_and_polygons/feature_creation.py\n--- a/examples/lines_and_polygons/feature_creation.py\n+++ b/examples/lines_and_polygons/feature_creation.py\n@@ -28,7 +28,7 @@\n # Put a background image on for nice sea rendering.\n ...
1,016
293
gh_patches_debug_26290
rasdani/github-patches
git_diff
scrapy__scrapy-4052
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Exception when using DummyStatsCollector ### Description Using the DummyStatsCollector results in an exception: ``` 2019-09-09 13:51:23 [scrapy.utils.signal] ERROR: Error caught on signal handler: <bou...
diff --git a/scrapy/extensions/corestats.py b/scrapy/extensions/corestats.py --- a/scrapy/extensions/corestats.py +++ b/scrapy/extensions/corestats.py @@ -1,14 +1,16 @@ """ Extension for collecting core stats like items scraped and start/finish times """ -import datetime +from datetime import datetime from scrapy...
{"golden_diff": "diff --git a/scrapy/extensions/corestats.py b/scrapy/extensions/corestats.py\n--- a/scrapy/extensions/corestats.py\n+++ b/scrapy/extensions/corestats.py\n@@ -1,14 +1,16 @@\n \"\"\"\n Extension for collecting core stats like items scraped and start/finish times\n \"\"\"\n-import datetime\n+from datetime...
1,305
297
gh_patches_debug_12903
rasdani/github-patches
git_diff
optuna__optuna-1814
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Improvement proposal for TensorBoard integration ## Motivation - Improve the display of TensorBoard ## Description ### 1. Trial ID I guess using directory name as trial ID is helpful to find a goo...
diff --git a/optuna/integration/tensorboard.py b/optuna/integration/tensorboard.py --- a/optuna/integration/tensorboard.py +++ b/optuna/integration/tensorboard.py @@ -49,8 +49,8 @@ run_name = "trial-%d" % trial.number run_dir = os.path.join(self._dirname, run_name) with tf.summary.create_file...
{"golden_diff": "diff --git a/optuna/integration/tensorboard.py b/optuna/integration/tensorboard.py\n--- a/optuna/integration/tensorboard.py\n+++ b/optuna/integration/tensorboard.py\n@@ -49,8 +49,8 @@\n run_name = \"trial-%d\" % trial.number\n run_dir = os.path.join(self._dirname, run_name)\n wi...
1,777
196
gh_patches_debug_29
rasdani/github-patches
git_diff
MongoEngine__mongoengine-2424
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- When will be new release? When are you planning a new release? Some features has been added since last one in May. Thanks! --- END ISSUE --- Below are some code segments, each from a relevant file. One or m...
diff --git a/mongoengine/__init__.py b/mongoengine/__init__.py --- a/mongoengine/__init__.py +++ b/mongoengine/__init__.py @@ -28,7 +28,7 @@ ) -VERSION = (0, 20, 0) +VERSION = (0, 21, 0) def get_version():
{"golden_diff": "diff --git a/mongoengine/__init__.py b/mongoengine/__init__.py\n--- a/mongoengine/__init__.py\n+++ b/mongoengine/__init__.py\n@@ -28,7 +28,7 @@\n )\n \n \n-VERSION = (0, 20, 0)\n+VERSION = (0, 21, 0)\n \n \n def get_version():\n", "issue": "When will be new release?\nWhen are you planning a new release...
644
85
gh_patches_debug_37916
rasdani/github-patches
git_diff
dotkom__onlineweb4-1122
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add redirect to newly created item after creating it in dashboard inventory As title states. --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contai...
diff --git a/apps/inventory/dashboard/views.py b/apps/inventory/dashboard/views.py --- a/apps/inventory/dashboard/views.py +++ b/apps/inventory/dashboard/views.py @@ -47,9 +47,9 @@ if not inventory_form.is_valid(): messages.error(request, u'Noen av de påkrevde feltene inneholder feil.') e...
{"golden_diff": "diff --git a/apps/inventory/dashboard/views.py b/apps/inventory/dashboard/views.py\n--- a/apps/inventory/dashboard/views.py\n+++ b/apps/inventory/dashboard/views.py\n@@ -47,9 +47,9 @@\n if not inventory_form.is_valid():\n messages.error(request, u'Noen av de p\u00e5krevde feltene in...
1,870
659
gh_patches_debug_1519
rasdani/github-patches
git_diff
databricks__koalas-1959
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- plot does not work in Ubuntu Plotting with `matplotlib` 3.3.0+ causes an exception because of Pillow dependency added at https://github.com/matplotlib/matplotlib/commit/370e9a2d5d9e637abc90b3270d368642c69f66c...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -57,7 +57,7 @@ 'pandas>=0.23.2', 'pyarrow>=0.10', 'numpy>=1.14', - 'matplotlib>=3.0.0', + 'matplotlib>=3.0.0,<3.3.0', ], author="Databricks", author_email="koalas@databricks.com",
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -57,7 +57,7 @@\n 'pandas>=0.23.2',\n 'pyarrow>=0.10',\n 'numpy>=1.14',\n- 'matplotlib>=3.0.0',\n+ 'matplotlib>=3.0.0,<3.3.0',\n ],\n author=\"Databricks\",\n author_email=\"koalas@data...
1,319
112
gh_patches_debug_30358
rasdani/github-patches
git_diff
nvaccess__nvda-10338
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- winVersion.isWin10: modify it to return early if major is not 10 Hi, This feature request should not be done for 2019.3 in order to avoid introducing possible regressions, but perhaps defer it to 2020.1: ...
diff --git a/source/winVersion.py b/source/winVersion.py --- a/source/winVersion.py +++ b/source/winVersion.py @@ -26,34 +26,35 @@ def isUwpOcrAvailable(): return os.path.isdir(UWP_OCR_DATA_PATH) -def isWin10(version=1507, atLeast=True): + +WIN10_VERSIONS_TO_BUILDS = { + 1507: 10240, + 1511: 10586, + 1607:...
{"golden_diff": "diff --git a/source/winVersion.py b/source/winVersion.py\n--- a/source/winVersion.py\n+++ b/source/winVersion.py\n@@ -26,34 +26,35 @@\n def isUwpOcrAvailable():\r\n \treturn os.path.isdir(UWP_OCR_DATA_PATH)\r\n \r\n-def isWin10(version=1507, atLeast=True):\r\n+\r\n+WIN10_VERSIONS_TO_BUILDS = {\r\n+\t15...
1,375
657
gh_patches_debug_15883
rasdani/github-patches
git_diff
mampfes__hacs_waste_collection_schedule-1311
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- South Glos UK doesn't return all Recycling / Food Bin dates The South Gloucester UK source is only returning the Food Bin and Recycling bins every other week, when they should be every week. Calendar in HA...
diff --git a/custom_components/waste_collection_schedule/waste_collection_schedule/source/southglos_gov_uk.py b/custom_components/waste_collection_schedule/waste_collection_schedule/source/southglos_gov_uk.py --- a/custom_components/waste_collection_schedule/waste_collection_schedule/source/southglos_gov_uk.py +++ b/cu...
{"golden_diff": "diff --git a/custom_components/waste_collection_schedule/waste_collection_schedule/source/southglos_gov_uk.py b/custom_components/waste_collection_schedule/waste_collection_schedule/source/southglos_gov_uk.py\n--- a/custom_components/waste_collection_schedule/waste_collection_schedule/source/southglos_...
1,329
280
gh_patches_debug_64458
rasdani/github-patches
git_diff
aws-cloudformation__cfn-lint-1834
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- E3021 after upgrading to cfn_lint-0.44.0 cfn-lint version: cfn_lint-0.44.0 Hi! After upgrading to version cfn_lint 0.44.0 don't validate AWS::Events::Rule This was reported valid since yesterday: ...
diff --git a/src/cfnlint/rules/resources/events/RuleTargetsLimit.py b/src/cfnlint/rules/resources/events/RuleTargetsLimit.py --- a/src/cfnlint/rules/resources/events/RuleTargetsLimit.py +++ b/src/cfnlint/rules/resources/events/RuleTargetsLimit.py @@ -21,6 +21,9 @@ self.resource_property_types = ['AWS::Events::...
{"golden_diff": "diff --git a/src/cfnlint/rules/resources/events/RuleTargetsLimit.py b/src/cfnlint/rules/resources/events/RuleTargetsLimit.py\n--- a/src/cfnlint/rules/resources/events/RuleTargetsLimit.py\n+++ b/src/cfnlint/rules/resources/events/RuleTargetsLimit.py\n@@ -21,6 +21,9 @@\n self.resource_property_ty...
1,058
136
gh_patches_debug_32851
rasdani/github-patches
git_diff
liqd__a4-meinberlin-447
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Initiator dashboard: too many notification I get notifications of any projects of my organization, even it's not my project. I'm not sure if I want to see all changes in all projects of my organization. I thi...
diff --git a/apps/notifications/signals.py b/apps/notifications/signals.py --- a/apps/notifications/signals.py +++ b/apps/notifications/signals.py @@ -6,7 +6,6 @@ from adhocracy4.follows.models import Follow from adhocracy4.phases.models import Phase from adhocracy4.projects.models import Project -from apps.organisa...
{"golden_diff": "diff --git a/apps/notifications/signals.py b/apps/notifications/signals.py\n--- a/apps/notifications/signals.py\n+++ b/apps/notifications/signals.py\n@@ -6,7 +6,6 @@\n from adhocracy4.follows.models import Follow\n from adhocracy4.phases.models import Phase\n from adhocracy4.projects.models import Proj...
1,181
451
gh_patches_debug_1020
rasdani/github-patches
git_diff
liqd__a4-meinberlin-1970
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- district, topic and localisation for external projects and bplans external projects also need district, topic and localisation as the other projects do. same is true for b-plans as not all of them come vi...
diff --git a/meinberlin/apps/bplan/tasks.py b/meinberlin/apps/bplan/tasks.py --- a/meinberlin/apps/bplan/tasks.py +++ b/meinberlin/apps/bplan/tasks.py @@ -74,4 +74,5 @@ .format(bplan.identifier, bplan) ) bplan.point = point - bplan.save(update_fields=['point', 'administrative_district']) +...
{"golden_diff": "diff --git a/meinberlin/apps/bplan/tasks.py b/meinberlin/apps/bplan/tasks.py\n--- a/meinberlin/apps/bplan/tasks.py\n+++ b/meinberlin/apps/bplan/tasks.py\n@@ -74,4 +74,5 @@\n .format(bplan.identifier, bplan)\n )\n bplan.point = point\n- bplan.save(update_fields=['point', 'admi...
980
123
gh_patches_debug_3356
rasdani/github-patches
git_diff
pypa__setuptools-3106
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [BUG] Entry points are missing when supplied as a string. ### setuptools version setuptools==60.9.0 ### Python version 3.8.12 ### OS Debian ### Additional environment information _No resp...
diff --git a/setuptools/_entry_points.py b/setuptools/_entry_points.py --- a/setuptools/_entry_points.py +++ b/setuptools/_entry_points.py @@ -53,7 +53,16 @@ @load.register(str) def _(eps): - return validate(metadata.EntryPoints._from_text(eps)) + r""" + >>> ep, = load('[console_scripts]\nfoo=bar') + >>...
{"golden_diff": "diff --git a/setuptools/_entry_points.py b/setuptools/_entry_points.py\n--- a/setuptools/_entry_points.py\n+++ b/setuptools/_entry_points.py\n@@ -53,7 +53,16 @@\n \n @load.register(str)\n def _(eps):\n- return validate(metadata.EntryPoints._from_text(eps))\n+ r\"\"\"\n+ >>> ep, = load('[consol...
1,343
156
gh_patches_debug_14850
rasdani/github-patches
git_diff
liqd__adhocracy4-893
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- django-admin: place comment's is_blocked next to is_censored **URL:** **user:** **expected behaviour:** As is_removed, is_censored and is_blocked have a very similar behaviour, the is_blocked field should...
diff --git a/adhocracy4/comments/admin.py b/adhocracy4/comments/admin.py --- a/adhocracy4/comments/admin.py +++ b/adhocracy4/comments/admin.py @@ -7,13 +7,13 @@ class CommentAdmin(admin.ModelAdmin): fields = ( 'content_type', 'content_object', 'comment', 'is_removed', - 'is_censored', 'is_moderato...
{"golden_diff": "diff --git a/adhocracy4/comments/admin.py b/adhocracy4/comments/admin.py\n--- a/adhocracy4/comments/admin.py\n+++ b/adhocracy4/comments/admin.py\n@@ -7,13 +7,13 @@\n class CommentAdmin(admin.ModelAdmin):\n fields = (\n 'content_type', 'content_object', 'comment', 'is_removed',\n- 'is...
679
224
gh_patches_debug_3853
rasdani/github-patches
git_diff
spack__spack-29252
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Fix neovim install on M1 With #29228 and #29229 in, the `spack install neovim` fails with: ``` 1022 undef: _tigetstr 1023 undef: _cur_term 1024 undef: _setupterm >> 1025 Unde...
diff --git a/var/spack/repos/builtin/packages/libtermkey/package.py b/var/spack/repos/builtin/packages/libtermkey/package.py --- a/var/spack/repos/builtin/packages/libtermkey/package.py +++ b/var/spack/repos/builtin/packages/libtermkey/package.py @@ -19,7 +19,7 @@ version('0.14', sha256='3d114d4509499b80a583ea39cd...
{"golden_diff": "diff --git a/var/spack/repos/builtin/packages/libtermkey/package.py b/var/spack/repos/builtin/packages/libtermkey/package.py\n--- a/var/spack/repos/builtin/packages/libtermkey/package.py\n+++ b/var/spack/repos/builtin/packages/libtermkey/package.py\n@@ -19,7 +19,7 @@\n version('0.14', sha256='3d114...
1,349
190
gh_patches_debug_4404
rasdani/github-patches
git_diff
pallets__werkzeug-930
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add an 'extras_require' entry to setup.py for watchdog The reloader feature has an optional dependency on the watchdog package: http://werkzeug.pocoo.org/docs/0.11/serving/#reloader Whilst people can just ad...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -109,6 +109,9 @@ 'Topic :: Software Development :: Libraries :: Python Modules' ], packages=['werkzeug', 'werkzeug.debug', 'werkzeug.contrib'], + extras_require={ + 'watchdog': ['watchdog'], + }, cmdclass=dict(test=Te...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -109,6 +109,9 @@\n 'Topic :: Software Development :: Libraries :: Python Modules'\n ],\n packages=['werkzeug', 'werkzeug.debug', 'werkzeug.contrib'],\n+ extras_require={\n+ 'watchdog': ['watchdog'],\n+ },\...
1,476
102
gh_patches_debug_1694
rasdani/github-patches
git_diff
iterative__dvc-4826
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Unexpected error on `dvc diff` ## Bug Report When running `dvc diff staging`, I got a KeyError, here is the traceback: ``` Traceback (most recent call last): File "/home/ubuntu/.local/share/virtualenvs/...
diff --git a/dvc/repo/diff.py b/dvc/repo/diff.py --- a/dvc/repo/diff.py +++ b/dvc/repo/diff.py @@ -122,5 +122,5 @@ metadata = repo_tree.metadata(path) if metadata.is_dvc: out = metadata.outs[0] - if out.status()[str(out)] == "not in cache": + if out.status().get(str(...
{"golden_diff": "diff --git a/dvc/repo/diff.py b/dvc/repo/diff.py\n--- a/dvc/repo/diff.py\n+++ b/dvc/repo/diff.py\n@@ -122,5 +122,5 @@\n metadata = repo_tree.metadata(path)\n if metadata.is_dvc:\n out = metadata.outs[0]\n- if out.status()[str(out)] == \"not in cache\":\n+ ...
1,925
113
gh_patches_debug_39452
rasdani/github-patches
git_diff
wagtail__wagtail-1375
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- SnippetChooserPanel cannot take model string in model argument We should update `SnippetChooserPanel` to use `resolve_model_string` (https://github.com/torchbox/wagtail/blob/master/wagtail/wagtailcore/utils.p...
diff --git a/wagtail/wagtailsnippets/edit_handlers.py b/wagtail/wagtailsnippets/edit_handlers.py --- a/wagtail/wagtailsnippets/edit_handlers.py +++ b/wagtail/wagtailsnippets/edit_handlers.py @@ -4,28 +4,42 @@ from django.contrib.contenttypes.models import ContentType from django.utils.safestring import mark_safe fro...
{"golden_diff": "diff --git a/wagtail/wagtailsnippets/edit_handlers.py b/wagtail/wagtailsnippets/edit_handlers.py\n--- a/wagtail/wagtailsnippets/edit_handlers.py\n+++ b/wagtail/wagtailsnippets/edit_handlers.py\n@@ -4,28 +4,42 @@\n from django.contrib.contenttypes.models import ContentType\n from django.utils.safestring...
804
679
gh_patches_debug_27915
rasdani/github-patches
git_diff
pulp__pulpcore-193
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Verify if domain name has more than 50 chars fixes: #4976 --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `p...
diff --git a/pulpcore/app/viewsets/upload.py b/pulpcore/app/viewsets/upload.py --- a/pulpcore/app/viewsets/upload.py +++ b/pulpcore/app/viewsets/upload.py @@ -10,19 +10,33 @@ from pulpcore.app.models import Upload from pulpcore.app.serializers import UploadChunkSerializer, UploadCommitSerializer, UploadSerializer -...
{"golden_diff": "diff --git a/pulpcore/app/viewsets/upload.py b/pulpcore/app/viewsets/upload.py\n--- a/pulpcore/app/viewsets/upload.py\n+++ b/pulpcore/app/viewsets/upload.py\n@@ -10,19 +10,33 @@\n \n from pulpcore.app.models import Upload\n from pulpcore.app.serializers import UploadChunkSerializer, UploadCommitSeriali...
1,170
349
gh_patches_debug_10530
rasdani/github-patches
git_diff
pytorch__examples-1084
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- The GPU load is unbalanced https://github.com/pytorch/examples/blob/2ee8d43dbe420be152fd5ce0d80b43b419a0e352/distributed/ddp-tutorial-series/multigpu_torchrun.py#L39 When I run the code and resume from a exi...
diff --git a/distributed/ddp-tutorial-series/multinode.py b/distributed/ddp-tutorial-series/multinode.py --- a/distributed/ddp-tutorial-series/multinode.py +++ b/distributed/ddp-tutorial-series/multinode.py @@ -37,7 +37,8 @@ self.model = DDP(self.model, device_ids=[self.local_rank]) def _load_snapshot(s...
{"golden_diff": "diff --git a/distributed/ddp-tutorial-series/multinode.py b/distributed/ddp-tutorial-series/multinode.py\n--- a/distributed/ddp-tutorial-series/multinode.py\n+++ b/distributed/ddp-tutorial-series/multinode.py\n@@ -37,7 +37,8 @@\n self.model = DDP(self.model, device_ids=[self.local_rank])\n \n ...
1,544
171
gh_patches_debug_22395
rasdani/github-patches
git_diff
cookiecutter__cookiecutter-1858
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Update CONTRIBUTING, README and package metadata ### Description: - [x] Update `CONTRIBUTING.md` to mention the usage of `nox` instead of `tox` - [x] Reorganize `README.md` - [x] Update `setup.py` to add...
diff --git a/noxfile.py b/noxfile.py --- a/noxfile.py +++ b/noxfile.py @@ -28,12 +28,14 @@ def tests(session): """Run test suite with pytest.""" session = base_install(session) + posargs = session.posargs or "" session.run( "pytest", "--cov-report=html", "--cov-report=xml",...
{"golden_diff": "diff --git a/noxfile.py b/noxfile.py\n--- a/noxfile.py\n+++ b/noxfile.py\n@@ -28,12 +28,14 @@\n def tests(session):\n \"\"\"Run test suite with pytest.\"\"\"\n session = base_install(session)\n+ posargs = session.posargs or \"\"\n session.run(\n \"pytest\",\n \"--cov-repo...
1,737
289
gh_patches_debug_40014
rasdani/github-patches
git_diff
DDMAL__CantusDB-1352
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- we should clean up CantusDB/django/cantusdb_project ```shell root@7aa2f88fb303:/code/django/cantusdb_project# ls align_text_mel.py create_fixtures.sh error_log.txt manage.py requirements.txt ...
diff --git a/django/cantusdb_project/old_users_list.py b/django/cantusdb_project/old_users_list.py deleted file mode 100755 --- a/django/cantusdb_project/old_users_list.py +++ /dev/null @@ -1,106 +0,0 @@ -import csv -import lxml.html as lh -import requests - -with open("oldcantususer_uid_role.csv", "r") as csvinput: - ...
{"golden_diff": "diff --git a/django/cantusdb_project/old_users_list.py b/django/cantusdb_project/old_users_list.py\ndeleted file mode 100755\n--- a/django/cantusdb_project/old_users_list.py\n+++ /dev/null\n@@ -1,106 +0,0 @@\n-import csv\n-import lxml.html as lh\n-import requests\n-\n-with open(\"oldcantususer_uid_role...
1,482
808
gh_patches_debug_19105
rasdani/github-patches
git_diff
dotkom__onlineweb4-321
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Registering with an existing e-mail creates the user When registering: Choose a username Enter an email-adresse already in use. The user will be created, and your chosen username will be taken! Registering ...
diff --git a/apps/authentication/forms.py b/apps/authentication/forms.py --- a/apps/authentication/forms.py +++ b/apps/authentication/forms.py @@ -7,7 +7,7 @@ from django.contrib import auth from django.utils.translation import ugettext as _ -from apps.authentication.models import OnlineUser as User +from apps.auth...
{"golden_diff": "diff --git a/apps/authentication/forms.py b/apps/authentication/forms.py\n--- a/apps/authentication/forms.py\n+++ b/apps/authentication/forms.py\n@@ -7,7 +7,7 @@\n from django.contrib import auth\n from django.utils.translation import ugettext as _\n \n-from apps.authentication.models import OnlineUser...
1,504
199
gh_patches_debug_8087
rasdani/github-patches
git_diff
ansible__ansible-11609
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- set_fact skipping The following code works under ansible 1.9 but fails on the latest devel checkout. It runs the same rules, but skips the set_fact command. ``` - name: Set zookeeper ID facts gather_facts:...
diff --git a/lib/ansible/executor/task_result.py b/lib/ansible/executor/task_result.py --- a/lib/ansible/executor/task_result.py +++ b/lib/ansible/executor/task_result.py @@ -40,7 +40,14 @@ return self._check_key('changed') def is_skipped(self): - return self._check_key('skipped') + if 're...
{"golden_diff": "diff --git a/lib/ansible/executor/task_result.py b/lib/ansible/executor/task_result.py\n--- a/lib/ansible/executor/task_result.py\n+++ b/lib/ansible/executor/task_result.py\n@@ -40,7 +40,14 @@\n return self._check_key('changed')\n \n def is_skipped(self):\n- return self._check_key('s...
1,042
178
gh_patches_debug_28365
rasdani/github-patches
git_diff
learningequality__kolibri-8691
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Learner - Cannot change username and full name ## Observed behavior The fields for editing a learner's username and full name are disabled and I cannot change them. ## Expected behavior It should be poss...
diff --git a/kolibri/core/auth/middleware.py b/kolibri/core/auth/middleware.py --- a/kolibri/core/auth/middleware.py +++ b/kolibri/core/auth/middleware.py @@ -6,6 +6,7 @@ from django.contrib.sessions.middleware import SessionMiddleware from django.core.cache import cache from django.core.exceptions import Improperly...
{"golden_diff": "diff --git a/kolibri/core/auth/middleware.py b/kolibri/core/auth/middleware.py\n--- a/kolibri/core/auth/middleware.py\n+++ b/kolibri/core/auth/middleware.py\n@@ -6,6 +6,7 @@\n from django.contrib.sessions.middleware import SessionMiddleware\n from django.core.cache import cache\n from django.core.excep...
1,762
310
gh_patches_debug_24177
rasdani/github-patches
git_diff
pre-commit__pre-commit-756
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- venv tests break virtualenv's `pip` when run from a `-mvirtualenv` virtualenv Here's a reproduction, not exactly sure what's happening here: ``` $ tox -e py36 -r --notest GLOB sdist-make: /home/asottile/...
diff --git a/pre_commit/languages/python_venv.py b/pre_commit/languages/python_venv.py --- a/pre_commit/languages/python_venv.py +++ b/pre_commit/languages/python_venv.py @@ -1,14 +1,46 @@ from __future__ import unicode_literals +import os.path + from pre_commit.languages import python +from pre_commit.util import ...
{"golden_diff": "diff --git a/pre_commit/languages/python_venv.py b/pre_commit/languages/python_venv.py\n--- a/pre_commit/languages/python_venv.py\n+++ b/pre_commit/languages/python_venv.py\n@@ -1,14 +1,46 @@\n from __future__ import unicode_literals\n \n+import os.path\n+\n from pre_commit.languages import python\n+fr...
1,765
436
gh_patches_debug_35079
rasdani/github-patches
git_diff
microsoft__botbuilder-python-962
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [PORT] [Certificate Authentication] Expose sendX5c parameter > Port this change from botbuilder-dotnet/master branch: https://github.com/microsoft/botbuilder-dotnet/pull/3741 This parameter enables applicati...
diff --git a/libraries/botframework-connector/botframework/connector/auth/certificate_app_credentials.py b/libraries/botframework-connector/botframework/connector/auth/certificate_app_credentials.py --- a/libraries/botframework-connector/botframework/connector/auth/certificate_app_credentials.py +++ b/libraries/botfram...
{"golden_diff": "diff --git a/libraries/botframework-connector/botframework/connector/auth/certificate_app_credentials.py b/libraries/botframework-connector/botframework/connector/auth/certificate_app_credentials.py\n--- a/libraries/botframework-connector/botframework/connector/auth/certificate_app_credentials.py\n+++ ...
1,613
528
gh_patches_debug_19257
rasdani/github-patches
git_diff
ESMCI__cime-1240
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- PR #1230 appears to break batch systems After merging #1230 I get an error from Z_FullSystemTest: Traceback (most recent call last): File "./scripts_regression_tests.py", line 1175, in test_full_system...
diff --git a/scripts/lib/CIME/case_submit.py b/scripts/lib/CIME/case_submit.py --- a/scripts/lib/CIME/case_submit.py +++ b/scripts/lib/CIME/case_submit.py @@ -71,9 +71,13 @@ casebaseid = case.get_value("CASEBASEID") # This should take care of the race condition where the submitted job # begin...
{"golden_diff": "diff --git a/scripts/lib/CIME/case_submit.py b/scripts/lib/CIME/case_submit.py\n--- a/scripts/lib/CIME/case_submit.py\n+++ b/scripts/lib/CIME/case_submit.py\n@@ -71,9 +71,13 @@\n casebaseid = case.get_value(\"CASEBASEID\")\n # This should take care of the race condition where the submit...
1,617
269
gh_patches_debug_18728
rasdani/github-patches
git_diff
TheAlgorithms__Python-6190
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [suggestion] use relative path in DIRECTORY.md when openning DIRECTORY.md in local machine, the links in it refers to https://github.com/TheAlgorithms/Python/blob/master/xxx. it's not convinient for readin...
diff --git a/scripts/build_directory_md.py b/scripts/build_directory_md.py --- a/scripts/build_directory_md.py +++ b/scripts/build_directory_md.py @@ -3,8 +3,6 @@ import os from typing import Iterator -URL_BASE = "https://github.com/TheAlgorithms/Python/blob/master" - def good_file_paths(top_dir: str = ".") -> I...
{"golden_diff": "diff --git a/scripts/build_directory_md.py b/scripts/build_directory_md.py\n--- a/scripts/build_directory_md.py\n+++ b/scripts/build_directory_md.py\n@@ -3,8 +3,6 @@\n import os\n from typing import Iterator\n \n-URL_BASE = \"https://github.com/TheAlgorithms/Python/blob/master\"\n-\n \n def good_file_p...
828
220
gh_patches_debug_14360
rasdani/github-patches
git_diff
huggingface__dataset-viewer-2811
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- opus decoding error see https://huggingface.co/datasets/stable-speech/mls_eng_10k/discussions/1#65ef6e9d440a5fc3d94a40ad To fix this maybe we should pin `soundfile` library to `>=1.0.31` (first version tha...
diff --git a/libs/libcommon/src/libcommon/viewer_utils/asset.py b/libs/libcommon/src/libcommon/viewer_utils/asset.py --- a/libs/libcommon/src/libcommon/viewer_utils/asset.py +++ b/libs/libcommon/src/libcommon/viewer_utils/asset.py @@ -108,9 +108,7 @@ # might spawn a process to convert the audio file using ...
{"golden_diff": "diff --git a/libs/libcommon/src/libcommon/viewer_utils/asset.py b/libs/libcommon/src/libcommon/viewer_utils/asset.py\n--- a/libs/libcommon/src/libcommon/viewer_utils/asset.py\n+++ b/libs/libcommon/src/libcommon/viewer_utils/asset.py\n@@ -108,9 +108,7 @@\n # might spawn a process to convert ...
1,539
186
gh_patches_debug_538
rasdani/github-patches
git_diff
bokeh__bokeh-5378
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Correct comment in Dimension example plot The comment in [this example](http://bokeh.pydata.org/en/latest/docs/user_guide/styling.html#dimensions) says `# create a new plot with a title`. I expect this examp...
diff --git a/sphinx/source/docs/user_guide/source_examples/styling_dimensions.py b/sphinx/source/docs/user_guide/source_examples/styling_dimensions.py --- a/sphinx/source/docs/user_guide/source_examples/styling_dimensions.py +++ b/sphinx/source/docs/user_guide/source_examples/styling_dimensions.py @@ -2,7 +2,7 @@ ou...
{"golden_diff": "diff --git a/sphinx/source/docs/user_guide/source_examples/styling_dimensions.py b/sphinx/source/docs/user_guide/source_examples/styling_dimensions.py\n--- a/sphinx/source/docs/user_guide/source_examples/styling_dimensions.py\n+++ b/sphinx/source/docs/user_guide/source_examples/styling_dimensions.py\n@...
452
116
gh_patches_debug_3795
rasdani/github-patches
git_diff
magenta__magenta-541
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- documentation: missing dependencies I installed magenta from scratch on a clean Mac using the README and some tests from`bazel test //magenta/...` were failing because of the missing dependencies: ``` pip...
diff --git a/magenta/tools/pip/setup.py b/magenta/tools/pip/setup.py --- a/magenta/tools/pip/setup.py +++ b/magenta/tools/pip/setup.py @@ -24,13 +24,14 @@ REQUIRED_PACKAGES = [ + 'IPython', + 'Pillow >= 3.4.2', 'intervaltree >= 2.1.0', + 'matplotlib >= 1.5.3', 'mido >= 1.1.17', - 'Pillow >= 3...
{"golden_diff": "diff --git a/magenta/tools/pip/setup.py b/magenta/tools/pip/setup.py\n--- a/magenta/tools/pip/setup.py\n+++ b/magenta/tools/pip/setup.py\n@@ -24,13 +24,14 @@\n \n \n REQUIRED_PACKAGES = [\n+ 'IPython',\n+ 'Pillow >= 3.4.2',\n 'intervaltree >= 2.1.0',\n+ 'matplotlib >= 1.5.3',\n 'mido >...
1,450
185
gh_patches_debug_19493
rasdani/github-patches
git_diff
xorbitsai__inference-566
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- ENH: configurable XINFERENCE_HOME ### Is your feature request related to a problem? Please describe XINFERENCE_HOME should be configurable. ### Describe the solution you'd like We could starts with suppo...
diff --git a/xinference/constants.py b/xinference/constants.py --- a/xinference/constants.py +++ b/xinference/constants.py @@ -15,7 +15,16 @@ import os from pathlib import Path -XINFERENCE_HOME = str(Path.home() / ".xinference") +XINFERENCE_ENV_ENDPOINT = "XINFERENCE_ENDPOINT" +XINFERENCE_ENV_MODEL_SRC = "XINFERENC...
{"golden_diff": "diff --git a/xinference/constants.py b/xinference/constants.py\n--- a/xinference/constants.py\n+++ b/xinference/constants.py\n@@ -15,7 +15,16 @@\n import os\n from pathlib import Path\n \n-XINFERENCE_HOME = str(Path.home() / \".xinference\")\n+XINFERENCE_ENV_ENDPOINT = \"XINFERENCE_ENDPOINT\"\n+XINFERE...
697
294
gh_patches_debug_60837
rasdani/github-patches
git_diff
openedx__ecommerce-348
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Running migrations for Travis builds We run migrations to ensure no migrations are missing, and they work on fresh installs. --- END ISSUE --- Below are some code segments, each from a relevant file. One o...
diff --git a/ecommerce/extensions/order/migrations/0003_auto_20150224_1520.py b/ecommerce/extensions/order/migrations/0003_auto_20150224_1520.py --- a/ecommerce/extensions/order/migrations/0003_auto_20150224_1520.py +++ b/ecommerce/extensions/order/migrations/0003_auto_20150224_1520.py @@ -13,8 +13,7 @@ """ #...
{"golden_diff": "diff --git a/ecommerce/extensions/order/migrations/0003_auto_20150224_1520.py b/ecommerce/extensions/order/migrations/0003_auto_20150224_1520.py\n--- a/ecommerce/extensions/order/migrations/0003_auto_20150224_1520.py\n+++ b/ecommerce/extensions/order/migrations/0003_auto_20150224_1520.py\n@@ -13,8 +13,...
522
207
gh_patches_debug_6915
rasdani/github-patches
git_diff
bridgecrewio__checkov-3596
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- CKV_DOCKER_1 rule not failed when using EXPOSE 22/TCP **Issue** If it is related to an existing check, CKV_DOCKER_1. Dockerfile EXPOSE can accept port using tcp proto by defaut if not specified or you can a...
diff --git a/checkov/dockerfile/checks/ExposePort22.py b/checkov/dockerfile/checks/ExposePort22.py --- a/checkov/dockerfile/checks/ExposePort22.py +++ b/checkov/dockerfile/checks/ExposePort22.py @@ -19,7 +19,7 @@ def scan_resource_conf(self, conf: list[_Instruction]) -> tuple[CheckResult, list[_Instruction] | No...
{"golden_diff": "diff --git a/checkov/dockerfile/checks/ExposePort22.py b/checkov/dockerfile/checks/ExposePort22.py\n--- a/checkov/dockerfile/checks/ExposePort22.py\n+++ b/checkov/dockerfile/checks/ExposePort22.py\n@@ -19,7 +19,7 @@\n \n def scan_resource_conf(self, conf: list[_Instruction]) -> tuple[CheckResult, l...
729
170
gh_patches_debug_51284
rasdani/github-patches
git_diff
open-telemetry__opentelemetry-python-2093
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- RuntimeError: Requested component 'jaeger' not found in entry points for 'opentelemetry_exporter' From the exporters selection of [spec](https://github.com/open-telemetry/opentelemetry-specification/blob/main...
diff --git a/opentelemetry-sdk/src/opentelemetry/sdk/_configuration/__init__.py b/opentelemetry-sdk/src/opentelemetry/sdk/_configuration/__init__.py --- a/opentelemetry-sdk/src/opentelemetry/sdk/_configuration/__init__.py +++ b/opentelemetry-sdk/src/opentelemetry/sdk/_configuration/__init__.py @@ -109,7 +109,7 @@ ...
{"golden_diff": "diff --git a/opentelemetry-sdk/src/opentelemetry/sdk/_configuration/__init__.py b/opentelemetry-sdk/src/opentelemetry/sdk/_configuration/__init__.py\n--- a/opentelemetry-sdk/src/opentelemetry/sdk/_configuration/__init__.py\n+++ b/opentelemetry-sdk/src/opentelemetry/sdk/_configuration/__init__.py\n@@ -1...
1,932
158
gh_patches_debug_22205
rasdani/github-patches
git_diff
freedomofpress__securedrop-4523
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- The Source Interface's /journalist-key endpoint returns a 404 instead of the Submission Key ## Description The submission key should be available via the Source Interface at the URL http://[Onion address]/...
diff --git a/securedrop/source_app/info.py b/securedrop/source_app/info.py --- a/securedrop/source_app/info.py +++ b/securedrop/source_app/info.py @@ -1,8 +1,12 @@ # -*- coding: utf-8 -*- - -from io import StringIO +import six from flask import Blueprint, render_template, send_file, current_app +if six.PY2: + fr...
{"golden_diff": "diff --git a/securedrop/source_app/info.py b/securedrop/source_app/info.py\n--- a/securedrop/source_app/info.py\n+++ b/securedrop/source_app/info.py\n@@ -1,8 +1,12 @@\n # -*- coding: utf-8 -*-\n-\n-from io import StringIO\n+import six\n from flask import Blueprint, render_template, send_file, current_a...
1,891
260
gh_patches_debug_32547
rasdani/github-patches
git_diff
buildbot__buildbot-6996
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- There's a small window where events will be missed by reporters during reconfig The code in `ReporterBase.reconfigService()` stops consuming events for all event keys and then starts consuming events for all ...
diff --git a/master/buildbot/reporters/base.py b/master/buildbot/reporters/base.py --- a/master/buildbot/reporters/base.py +++ b/master/buildbot/reporters/base.py @@ -35,7 +35,7 @@ def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.generators = None - self._event_c...
{"golden_diff": "diff --git a/master/buildbot/reporters/base.py b/master/buildbot/reporters/base.py\n--- a/master/buildbot/reporters/base.py\n+++ b/master/buildbot/reporters/base.py\n@@ -35,7 +35,7 @@\n def __init__(self, *args, **kwargs):\n super().__init__(*args, **kwargs)\n self.generators = None...
1,621
446
gh_patches_debug_17794
rasdani/github-patches
git_diff
wagtail__wagtail-7701
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Stray checkbox on locked pages report ### Issue Summary The Locked Pages report (and possibly others inheriting from PageReportView) has a stray additional column with a checkbox, presumably from the bulk ...
diff --git a/wagtail/admin/views/pages/listing.py b/wagtail/admin/views/pages/listing.py --- a/wagtail/admin/views/pages/listing.py +++ b/wagtail/admin/views/pages/listing.py @@ -95,6 +95,8 @@ paginator = Paginator(pages, per_page=50) pages = paginator.get_page(request.GET.get('p')) + show_orderi...
{"golden_diff": "diff --git a/wagtail/admin/views/pages/listing.py b/wagtail/admin/views/pages/listing.py\n--- a/wagtail/admin/views/pages/listing.py\n+++ b/wagtail/admin/views/pages/listing.py\n@@ -95,6 +95,8 @@\n paginator = Paginator(pages, per_page=50)\n pages = paginator.get_page(request.GET.get('p...
1,793
229
gh_patches_debug_13512
rasdani/github-patches
git_diff
larq__larq-596
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- __version__ ### Feature motivation Is there a way to dynamically poll the version of larq (or lce or larq-zoo for that matter)? If not, could it be done using `__version__` as usual for standard library mod...
diff --git a/larq/__init__.py b/larq/__init__.py --- a/larq/__init__.py +++ b/larq/__init__.py @@ -12,6 +12,14 @@ utils, ) +try: + from importlib import metadata # type: ignore +except ImportError: + # Running on pre-3.8 Python; use importlib-metadata package + import importlib_metadata as metadata #...
{"golden_diff": "diff --git a/larq/__init__.py b/larq/__init__.py\n--- a/larq/__init__.py\n+++ b/larq/__init__.py\n@@ -12,6 +12,14 @@\n utils,\n )\n \n+try:\n+ from importlib import metadata # type: ignore\n+except ImportError:\n+ # Running on pre-3.8 Python; use importlib-metadata package\n+ import impor...
1,154
249
gh_patches_debug_36493
rasdani/github-patches
git_diff
pwndbg__pwndbg-2087
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Port checksec command to native command and add colors This is annoying IMHO. I want colors and no pwntools update checks here! ![image](https://github.com/pwndbg/pwndbg/assets/10009354/9d1affbb-413c-43d7-87...
diff --git a/pwndbg/commands/checksec.py b/pwndbg/commands/checksec.py --- a/pwndbg/commands/checksec.py +++ b/pwndbg/commands/checksec.py @@ -1,10 +1,18 @@ from __future__ import annotations +import argparse + import pwndbg.color import pwndbg.commands import pwndbg.gdblib.file import pwndbg.wrappers.checksec ...
{"golden_diff": "diff --git a/pwndbg/commands/checksec.py b/pwndbg/commands/checksec.py\n--- a/pwndbg/commands/checksec.py\n+++ b/pwndbg/commands/checksec.py\n@@ -1,10 +1,18 @@\n from __future__ import annotations\n \n+import argparse\n+\n import pwndbg.color\n import pwndbg.commands\n import pwndbg.gdblib.file\n impor...
1,054
776
gh_patches_debug_38547
rasdani/github-patches
git_diff
cornellius-gp__gpytorch-584
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Linear kernel's variance prior is broken Repro: [linear_kernel_prior_issue.ipynb.txt](https://github.com/cornellius-gp/gpytorch/files/2979717/linear_kernel_prior_issue.ipynb.txt) --- END ISSUE --- Below...
diff --git a/gpytorch/kernels/linear_kernel.py b/gpytorch/kernels/linear_kernel.py --- a/gpytorch/kernels/linear_kernel.py +++ b/gpytorch/kernels/linear_kernel.py @@ -1,6 +1,7 @@ #!/usr/bin/env python3 import torch +import warnings from .kernel import Kernel from ..lazy import MatmulLazyTensor, RootLazyTensor @...
{"golden_diff": "diff --git a/gpytorch/kernels/linear_kernel.py b/gpytorch/kernels/linear_kernel.py\n--- a/gpytorch/kernels/linear_kernel.py\n+++ b/gpytorch/kernels/linear_kernel.py\n@@ -1,6 +1,7 @@\n #!/usr/bin/env python3\n \n import torch\n+import warnings\n from .kernel import Kernel\n from ..lazy import MatmulLazy...
1,446
717
gh_patches_debug_16953
rasdani/github-patches
git_diff
saleor__saleor-1503
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Hide 'Clear filters' when list view has page in GET ### What I'm trying to achieve Clear filters button should appear only when some filters are applied. ### Steps to reproduce the problem 1. Go to d...
diff --git a/saleor/core/filters.py b/saleor/core/filters.py --- a/saleor/core/filters.py +++ b/saleor/core/filters.py @@ -5,16 +5,11 @@ ''' Base class for filtersets used in dashboard views. Adds flag is_bound_unsorted to indicate if FilterSet has data from filters other - than sort_by. + than sor...
{"golden_diff": "diff --git a/saleor/core/filters.py b/saleor/core/filters.py\n--- a/saleor/core/filters.py\n+++ b/saleor/core/filters.py\n@@ -5,16 +5,11 @@\n '''\n Base class for filtersets used in dashboard views. Adds flag\n is_bound_unsorted to indicate if FilterSet has data from filters other\n- tha...
649
282
gh_patches_debug_54080
rasdani/github-patches
git_diff
e-valuation__EvaP-728
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Warning in courses with small number of participants In courses with 5 or less participants a warning should be shown above the course's questionnaire: _This course has only a small number of participants. P...
diff --git a/evap/student/views.py b/evap/student/views.py --- a/evap/student/views.py +++ b/evap/student/views.py @@ -76,6 +76,7 @@ course_form_group=course_form_group, contributor_form_groups=contributor_form_groups, course=course, + participants_warni...
{"golden_diff": "diff --git a/evap/student/views.py b/evap/student/views.py\n--- a/evap/student/views.py\n+++ b/evap/student/views.py\n@@ -76,6 +76,7 @@\n course_form_group=course_form_group,\n contributor_form_groups=contributor_form_groups,\n course=course,\n+ ...
1,650
102
gh_patches_debug_23212
rasdani/github-patches
git_diff
open-mmlab__mmdetection-3966
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- support for validate with batch size > 1 Hi, glad to know we could run the inference with batch size > 1, any plan to support validation during training with batch size > 1? According to https://github.com/...
diff --git a/mmdet/apis/train.py b/mmdet/apis/train.py --- a/mmdet/apis/train.py +++ b/mmdet/apis/train.py @@ -8,7 +8,8 @@ from mmcv.utils import build_from_cfg from mmdet.core import DistEvalHook, EvalHook -from mmdet.datasets import build_dataloader, build_dataset +from mmdet.datasets import (build_dataloader, bu...
{"golden_diff": "diff --git a/mmdet/apis/train.py b/mmdet/apis/train.py\n--- a/mmdet/apis/train.py\n+++ b/mmdet/apis/train.py\n@@ -8,7 +8,8 @@\n from mmcv.utils import build_from_cfg\n \n from mmdet.core import DistEvalHook, EvalHook\n-from mmdet.datasets import build_dataloader, build_dataset\n+from mmdet.datasets imp...
1,856
284
gh_patches_debug_16108
rasdani/github-patches
git_diff
aws-cloudformation__cfn-lint-1620
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- E3503 does not match CloudFormation - requires ValidationDomain when CF does not want it *cfn-lint version: (`cfn-lint --version`)* cfn-lint 0.33.2 *Description of issue.* I created an ACM certificat...
diff --git a/src/cfnlint/rules/resources/certificatemanager/DomainValidationOptions.py b/src/cfnlint/rules/resources/certificatemanager/DomainValidationOptions.py --- a/src/cfnlint/rules/resources/certificatemanager/DomainValidationOptions.py +++ b/src/cfnlint/rules/resources/certificatemanager/DomainValidationOptions....
{"golden_diff": "diff --git a/src/cfnlint/rules/resources/certificatemanager/DomainValidationOptions.py b/src/cfnlint/rules/resources/certificatemanager/DomainValidationOptions.py\n--- a/src/cfnlint/rules/resources/certificatemanager/DomainValidationOptions.py\n+++ b/src/cfnlint/rules/resources/certificatemanager/Domai...
1,205
194
gh_patches_debug_18653
rasdani/github-patches
git_diff
frappe__frappe-26417
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- (List View): In sidebar filter link field show Title of Field if set **Is your feature request related to a problem? Please describe.** In sidebar filter link field show field.name but not field.title **D...
diff --git a/frappe/desk/listview.py b/frappe/desk/listview.py --- a/frappe/desk/listview.py +++ b/frappe/desk/listview.py @@ -60,10 +60,12 @@ .run(as_dict=True) ) - if not frappe.get_meta(doctype).has_field(field) and not is_default_field(field): + meta = frappe.get_meta(doctype) + + if not meta.has_field(fie...
{"golden_diff": "diff --git a/frappe/desk/listview.py b/frappe/desk/listview.py\n--- a/frappe/desk/listview.py\n+++ b/frappe/desk/listview.py\n@@ -60,10 +60,12 @@\n \t\t\t.run(as_dict=True)\n \t\t)\n \n-\tif not frappe.get_meta(doctype).has_field(field) and not is_default_field(field):\n+\tmeta = frappe.get_meta(doctyp...
1,060
302
gh_patches_debug_9424
rasdani/github-patches
git_diff
napari__napari-6057
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [ipython] File > Save Screenshot... warns about replacing if extension is provided ## 🐛 Bug If a napari viewer is launched from ipython and you use File > Save Screenshot... then everything works fine if ...
diff --git a/napari/_qt/dialogs/screenshot_dialog.py b/napari/_qt/dialogs/screenshot_dialog.py --- a/napari/_qt/dialogs/screenshot_dialog.py +++ b/napari/_qt/dialogs/screenshot_dialog.py @@ -62,8 +62,9 @@ QMessageBox.No, ) if res != QMessageBox.Yes: - ...
{"golden_diff": "diff --git a/napari/_qt/dialogs/screenshot_dialog.py b/napari/_qt/dialogs/screenshot_dialog.py\n--- a/napari/_qt/dialogs/screenshot_dialog.py\n+++ b/napari/_qt/dialogs/screenshot_dialog.py\n@@ -62,8 +62,9 @@\n QMessageBox.No,\n )\n if res != QMessageB...
1,571
180
gh_patches_debug_14823
rasdani/github-patches
git_diff
kornia__kornia-2620
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- expose `average_endpoint_error` on `kornia.metrics.__init__.py` can you expose it on kornia.metrics.__init__.py ? - to use as `kornia.metrics.average_endpoint_error` too _Originally posted by...
diff --git a/kornia/metrics/__init__.py b/kornia/metrics/__init__.py --- a/kornia/metrics/__init__.py +++ b/kornia/metrics/__init__.py @@ -1,7 +1,7 @@ from .accuracy import accuracy from .average_meter import AverageMeter from .confusion_matrix import confusion_matrix -from .endpoint_error import AEPE, aepe +from .e...
{"golden_diff": "diff --git a/kornia/metrics/__init__.py b/kornia/metrics/__init__.py\n--- a/kornia/metrics/__init__.py\n+++ b/kornia/metrics/__init__.py\n@@ -1,7 +1,7 @@\n from .accuracy import accuracy\n from .average_meter import AverageMeter\n from .confusion_matrix import confusion_matrix\n-from .endpoint_error im...
570
195
gh_patches_debug_56929
rasdani/github-patches
git_diff
kivy__python-for-android-575
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- HTTP 302 recipe download file Downloading from sourceforge autoselecting an mirror results in a HTTP 302 instead of a direct download. Trying to build this clean recipe below results in: ``` RAN: '/bin/tar x...
diff --git a/pythonforandroid/util.py b/pythonforandroid/util.py --- a/pythonforandroid/util.py +++ b/pythonforandroid/util.py @@ -21,12 +21,10 @@ unistr = unicode -class ChromeDownloader(FancyURLopener): - version = ( - 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 ' - '(KHTML, like Gec...
{"golden_diff": "diff --git a/pythonforandroid/util.py b/pythonforandroid/util.py\n--- a/pythonforandroid/util.py\n+++ b/pythonforandroid/util.py\n@@ -21,12 +21,10 @@\n unistr = unicode\n \n \n-class ChromeDownloader(FancyURLopener):\n- version = (\n- 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 '\...
1,835
180
gh_patches_debug_26242
rasdani/github-patches
git_diff
bokeh__bokeh-4929
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Checkbox example is not working as expected The new checkbox example in master (examples/plotting/file/line_on_off.py) is not working as expected, the plotted lines are depend on how many checkbox are ticked ...
diff --git a/examples/plotting/file/line_on_off.py b/examples/plotting/file/line_on_off.py --- a/examples/plotting/file/line_on_off.py +++ b/examples/plotting/file/line_on_off.py @@ -12,24 +12,6 @@ output_file("line_on_off.html", title="line_on_off.py example") -code = """ - if (0 in checkbox.active) { - ...
{"golden_diff": "diff --git a/examples/plotting/file/line_on_off.py b/examples/plotting/file/line_on_off.py\n--- a/examples/plotting/file/line_on_off.py\n+++ b/examples/plotting/file/line_on_off.py\n@@ -12,24 +12,6 @@\n \n output_file(\"line_on_off.html\", title=\"line_on_off.py example\")\n \n-code = \"\"\"\n- if (...
828
500
gh_patches_debug_33573
rasdani/github-patches
git_diff
pre-commit__pre-commit-966
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Improve platform command line length limits I have a question related to #510 When I run `pre-commit run` all hooks work as expected (processing just changed files), but `pre-commit run -a` divides a list...
diff --git a/pre_commit/xargs.py b/pre_commit/xargs.py --- a/pre_commit/xargs.py +++ b/pre_commit/xargs.py @@ -5,6 +5,7 @@ import concurrent.futures import contextlib import math +import os import sys import six @@ -13,10 +14,24 @@ from pre_commit.util import cmd_output -# TODO: properly compute max_length ...
{"golden_diff": "diff --git a/pre_commit/xargs.py b/pre_commit/xargs.py\n--- a/pre_commit/xargs.py\n+++ b/pre_commit/xargs.py\n@@ -5,6 +5,7 @@\n import concurrent.futures\n import contextlib\n import math\n+import os\n import sys\n \n import six\n@@ -13,10 +14,24 @@\n from pre_commit.util import cmd_output\n \n \n-# TO...
1,573
566
gh_patches_debug_97
rasdani/github-patches
git_diff
uccser__cs-unplugged-434
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Check desired orientation of binary to alphabet resource Currently is displayed in portrait but half the page is unused. May be better to switch to landscape which will increase the size of table cells. --- ...
diff --git a/csunplugged/resources/views/binary_to_alphabet.py b/csunplugged/resources/views/binary_to_alphabet.py --- a/csunplugged/resources/views/binary_to_alphabet.py +++ b/csunplugged/resources/views/binary_to_alphabet.py @@ -78,6 +78,7 @@ base_coord_y += 54 + image = image.rotate(90, expand=Tr...
{"golden_diff": "diff --git a/csunplugged/resources/views/binary_to_alphabet.py b/csunplugged/resources/views/binary_to_alphabet.py\n--- a/csunplugged/resources/views/binary_to_alphabet.py\n+++ b/csunplugged/resources/views/binary_to_alphabet.py\n@@ -78,6 +78,7 @@\n \n base_coord_y += 54\n \n+ image = im...
1,296
99
gh_patches_debug_12983
rasdani/github-patches
git_diff
scikit-image__scikit-image-7211
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Consistently use lazy loading for all `skimage.*` submodules ### Description: With `lazy_loader` successfully being used for `skimage`, `skimage.data` and `skimage.filters` why not use it for every of our ...
diff --git a/skimage/metrics/__init__.py b/skimage/metrics/__init__.py --- a/skimage/metrics/__init__.py +++ b/skimage/metrics/__init__.py @@ -1,24 +1,3 @@ -from ._adapted_rand_error import adapted_rand_error -from ._contingency_table import contingency_table -from ._structural_similarity import structural_similarity -...
{"golden_diff": "diff --git a/skimage/metrics/__init__.py b/skimage/metrics/__init__.py\n--- a/skimage/metrics/__init__.py\n+++ b/skimage/metrics/__init__.py\n@@ -1,24 +1,3 @@\n-from ._adapted_rand_error import adapted_rand_error\n-from ._contingency_table import contingency_table\n-from ._structural_similarity import ...
598
263
gh_patches_debug_4682
rasdani/github-patches
git_diff
ethereum__web3.py-709
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Use EthereumTesterProvider backed by eth-tester in default import `from web3 import EthereumTesterProvider` should use the eth-tester one, not the testrpc one. --- END ISSUE --- Below are some code segments...
diff --git a/web3/__init__.py b/web3/__init__.py --- a/web3/__init__.py +++ b/web3/__init__.py @@ -9,9 +9,11 @@ from web3.providers.rpc import ( # noqa: E402 HTTPProvider, ) +from web3.providers.eth_tester import ( # noqa: E402 + EthereumTesterProvider, +) from web3.providers.tester import ( # noqa: E402 ...
{"golden_diff": "diff --git a/web3/__init__.py b/web3/__init__.py\n--- a/web3/__init__.py\n+++ b/web3/__init__.py\n@@ -9,9 +9,11 @@\n from web3.providers.rpc import ( # noqa: E402\n HTTPProvider,\n )\n+from web3.providers.eth_tester import ( # noqa: E402\n+ EthereumTesterProvider,\n+)\n from web3.providers.tes...
545
145
gh_patches_debug_19778
rasdani/github-patches
git_diff
Mailu__Mailu-1198
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Make access logging of admin server dependent on log level Currently, admin logs all access logs to the console, regardless of which log level is set. This is caused by starting gunicorn with `--access-logfi...
diff --git a/core/admin/start.py b/core/admin/start.py --- a/core/admin/start.py +++ b/core/admin/start.py @@ -1,6 +1,10 @@ #!/usr/bin/python3 import os +import logging as log +import sys + +log.basicConfig(stream=sys.stderr, level=os.environ.get("LOG_LEVEL", "INFO")) os.system("flask mailu advertise") os.syste...
{"golden_diff": "diff --git a/core/admin/start.py b/core/admin/start.py\n--- a/core/admin/start.py\n+++ b/core/admin/start.py\n@@ -1,6 +1,10 @@\n #!/usr/bin/python3\n \n import os\n+import logging as log\n+import sys\n+\n+log.basicConfig(stream=sys.stderr, level=os.environ.get(\"LOG_LEVEL\", \"INFO\"))\n \n os.system(\...
516
304
gh_patches_debug_4918
rasdani/github-patches
git_diff
rlworkgroup__garage-1639
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Docs page "Ensure your experiments are reproducible" See #1426 --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Pa...
diff --git a/src/garage/envs/point_env.py b/src/garage/envs/point_env.py --- a/src/garage/envs/point_env.py +++ b/src/garage/envs/point_env.py @@ -24,11 +24,11 @@ """ def __init__( - self, - goal=np.array((1., 1.), dtype=np.float32), - arena_size=5., - done_bonus=...
{"golden_diff": "diff --git a/src/garage/envs/point_env.py b/src/garage/envs/point_env.py\n--- a/src/garage/envs/point_env.py\n+++ b/src/garage/envs/point_env.py\n@@ -24,11 +24,11 @@\n \"\"\"\n \n def __init__(\n- self,\n- goal=np.array((1., 1.), dtype=np.float32),\n- arena_size...
1,635
178
gh_patches_debug_25231
rasdani/github-patches
git_diff
litestar-org__litestar-1286
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Bug: `SessionCookieConfig` import DeprecationWarning - suggested import path does not exist **Describe the bug** In Starlite >= 1.47, the statement `from starlite.middleware.session.cookie_backend import Coo...
diff --git a/starlite/middleware/session/__init__.py b/starlite/middleware/session/__init__.py --- a/starlite/middleware/session/__init__.py +++ b/starlite/middleware/session/__init__.py @@ -8,7 +8,7 @@ def __getattr__(name: str) -> Any: """Provide lazy importing as per https://peps.python.org/pep-0562/""" - ...
{"golden_diff": "diff --git a/starlite/middleware/session/__init__.py b/starlite/middleware/session/__init__.py\n--- a/starlite/middleware/session/__init__.py\n+++ b/starlite/middleware/session/__init__.py\n@@ -8,7 +8,7 @@\n def __getattr__(name: str) -> Any:\n \"\"\"Provide lazy importing as per https://peps.pytho...
1,003
342
gh_patches_debug_7119
rasdani/github-patches
git_diff
Netflix__lemur-148
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Error messages not displaying long enough Currently error messages are displayed for only a period of time. They should be displayed until the user acknowledges the error. --- END ISSUE --- Below are some...
diff --git a/lemur/common/utils.py b/lemur/common/utils.py --- a/lemur/common/utils.py +++ b/lemur/common/utils.py @@ -63,9 +63,9 @@ if hasattr(e, 'data'): return {'message': e.data['message']}, 400 else: - return {'message': 'unk...
{"golden_diff": "diff --git a/lemur/common/utils.py b/lemur/common/utils.py\n--- a/lemur/common/utils.py\n+++ b/lemur/common/utils.py\n@@ -63,9 +63,9 @@\n if hasattr(e, 'data'):\n return {'message': e.data['message']}, 400\n else:\n- ...
1,077
146
gh_patches_debug_12176
rasdani/github-patches
git_diff
dotkom__onlineweb4-1818
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Unable to remove image from event in dashboard If an image has been selected for an event there is currently no way to remove the image after saving. A shitty workaround is to inspect the hidden input fie...
diff --git a/apps/gallery/widgets.py b/apps/gallery/widgets.py --- a/apps/gallery/widgets.py +++ b/apps/gallery/widgets.py @@ -15,7 +15,9 @@ <a href="#" class="btn btn-primary" id="add-responsive-image">\r\n <i class="fa fa-plus fa-lg"></i> Velg</a>\r\n <a href="{}" class="btn btn-primary" target="_blank">\r\n -<i c...
{"golden_diff": "diff --git a/apps/gallery/widgets.py b/apps/gallery/widgets.py\n--- a/apps/gallery/widgets.py\n+++ b/apps/gallery/widgets.py\n@@ -15,7 +15,9 @@\n <a href=\"#\" class=\"btn btn-primary\" id=\"add-responsive-image\">\\r\\n\n <i class=\"fa fa-plus fa-lg\"></i> Velg</a>\\r\\n\n <a href=\"{}\" class=\"btn b...
1,281
229
gh_patches_debug_28339
rasdani/github-patches
git_diff
mlflow__mlflow-5914
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Replace `unittest.TestCase.assertRaises` with `unittest.TestCase.assertRaisesRegex` Some tests use `unittest.TestCase.assertRaises` to test an exception is raised for illegal operations, but they need to be r...
diff --git a/pylint_plugins/unittest_assert_raises.py b/pylint_plugins/unittest_assert_raises.py --- a/pylint_plugins/unittest_assert_raises.py +++ b/pylint_plugins/unittest_assert_raises.py @@ -1,5 +1,3 @@ -import os - import astroid from pylint.interfaces import IAstroidChecker from pylint.checkers import BaseChec...
{"golden_diff": "diff --git a/pylint_plugins/unittest_assert_raises.py b/pylint_plugins/unittest_assert_raises.py\n--- a/pylint_plugins/unittest_assert_raises.py\n+++ b/pylint_plugins/unittest_assert_raises.py\n@@ -1,5 +1,3 @@\n-import os\n-\n import astroid\n from pylint.interfaces import IAstroidChecker\n from pylint...
1,383
391
gh_patches_debug_40242
rasdani/github-patches
git_diff
SCons__scons-3862
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add timestamp override to Zip builder Zip should have an option to override the timestamp on files in the archive instead of taking it from the file system. This can be useful for repeatable builds or for ano...
diff --git a/SCons/Tool/zip.py b/SCons/Tool/zip.py --- a/SCons/Tool/zip.py +++ b/SCons/Tool/zip.py @@ -8,8 +8,9 @@ """ +# MIT License # -# __COPYRIGHT__ +# Copyright The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documenta...
{"golden_diff": "diff --git a/SCons/Tool/zip.py b/SCons/Tool/zip.py\n--- a/SCons/Tool/zip.py\n+++ b/SCons/Tool/zip.py\n@@ -8,8 +8,9 @@\n \n \"\"\"\n \n+# MIT License\n #\n-# __COPYRIGHT__\n+# Copyright The SCons Foundation\n #\n # Permission is hereby granted, free of charge, to any person obtaining\n # a copy of this ...
1,254
810
gh_patches_debug_23861
rasdani/github-patches
git_diff
openstates__openstates-scrapers-1669
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- IL: Capture "Subject Matter" for `event`s IL events have a Subject Matter field on the legislature's website, which we should capture, probably as the `description` value for that `event` object. For examp...
diff --git a/openstates/il/events.py b/openstates/il/events.py --- a/openstates/il/events.py +++ b/openstates/il/events.py @@ -4,7 +4,6 @@ from openstates.utils import LXMLMixin from billy.scrape.events import Event, EventScraper -import lxml.html import pytz urls = { @@ -20,8 +19,8 @@ def scrape_page(self...
{"golden_diff": "diff --git a/openstates/il/events.py b/openstates/il/events.py\n--- a/openstates/il/events.py\n+++ b/openstates/il/events.py\n@@ -4,7 +4,6 @@\n from openstates.utils import LXMLMixin\n from billy.scrape.events import Event, EventScraper\n \n-import lxml.html\n import pytz\n \n urls = {\n@@ -20,8 +19,8 ...
1,217
285
gh_patches_debug_13472
rasdani/github-patches
git_diff
freqtrade__freqtrade-3798
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Telegram Balance not updating correctly after sell ## Describe your environment * Operating system: Ubuntu 18.04 * Python Version: 2.7.17 * CCXT version: 1.34.7 * Freqtrade Version: develop-4c3...
diff --git a/freqtrade/wallets.py b/freqtrade/wallets.py --- a/freqtrade/wallets.py +++ b/freqtrade/wallets.py @@ -2,6 +2,7 @@ """ Wallet """ import logging +from copy import deepcopy from typing import Any, Dict, NamedTuple import arrow @@ -93,6 +94,10 @@ balances[currency].get('used', None), ...
{"golden_diff": "diff --git a/freqtrade/wallets.py b/freqtrade/wallets.py\n--- a/freqtrade/wallets.py\n+++ b/freqtrade/wallets.py\n@@ -2,6 +2,7 @@\n \"\"\" Wallet \"\"\"\n \n import logging\n+from copy import deepcopy\n from typing import Any, Dict, NamedTuple\n \n import arrow\n@@ -93,6 +94,10 @@\n bal...
1,821
173
gh_patches_debug_16602
rasdani/github-patches
git_diff
svthalia__concrexit-2500
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Partner page partner blocks keep showing the loading animation ### Describe the bug Partner page partner blocks keep showing the loading animation. ### How to reproduce Steps to reproduce the behaviour: ...
diff --git a/website/partners/templatetags/partner_cards.py b/website/partners/templatetags/partner_cards.py --- a/website/partners/templatetags/partner_cards.py +++ b/website/partners/templatetags/partner_cards.py @@ -27,6 +27,7 @@ url=partner.get_absolute_url, image_url=image_url, class_nam...
{"golden_diff": "diff --git a/website/partners/templatetags/partner_cards.py b/website/partners/templatetags/partner_cards.py\n--- a/website/partners/templatetags/partner_cards.py\n+++ b/website/partners/templatetags/partner_cards.py\n@@ -27,6 +27,7 @@\n url=partner.get_absolute_url,\n image_url=image_u...
1,249
267
gh_patches_debug_19699
rasdani/github-patches
git_diff
ibis-project__ibis-3990
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- bug: comparing bool expr to bool literal generates invalid sql It looks like one of the recent refactorings may have broken comparisons of boolean to boolean: This test: ```python def test_bool_bool():...
diff --git a/ibis/backends/base/sql/registry/helpers.py b/ibis/backends/base/sql/registry/helpers.py --- a/ibis/backends/base/sql/registry/helpers.py +++ b/ibis/backends/base/sql/registry/helpers.py @@ -22,32 +22,34 @@ return name -def needs_parens(op): - if isinstance(op, ir.Expr): - op = op.op(...
{"golden_diff": "diff --git a/ibis/backends/base/sql/registry/helpers.py b/ibis/backends/base/sql/registry/helpers.py\n--- a/ibis/backends/base/sql/registry/helpers.py\n+++ b/ibis/backends/base/sql/registry/helpers.py\n@@ -22,32 +22,34 @@\n return name\n \n \n-def needs_parens(op):\n- if isinstance(op, ir.Ex...
1,070
430
gh_patches_debug_5310
rasdani/github-patches
git_diff
pantsbuild__pants-6499
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Allow `compatibility` attribute to be passed through to generated python targets To do this: - Override ` _copy_target_attributes` in `ApacheThriftPyGen` to include 'compatibility', so it looks like this:...
diff --git a/src/python/pants/backend/codegen/thrift/python/apache_thrift_py_gen.py b/src/python/pants/backend/codegen/thrift/python/apache_thrift_py_gen.py --- a/src/python/pants/backend/codegen/thrift/python/apache_thrift_py_gen.py +++ b/src/python/pants/backend/codegen/thrift/python/apache_thrift_py_gen.py @@ -51,6 ...
{"golden_diff": "diff --git a/src/python/pants/backend/codegen/thrift/python/apache_thrift_py_gen.py b/src/python/pants/backend/codegen/thrift/python/apache_thrift_py_gen.py\n--- a/src/python/pants/backend/codegen/thrift/python/apache_thrift_py_gen.py\n+++ b/src/python/pants/backend/codegen/thrift/python/apache_thrift_...
1,114
176
gh_patches_debug_1357
rasdani/github-patches
git_diff
aws__aws-cli-4334
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Broken docutils==0.15 Hi community, Today docutils were updated to 0.15 (https://pypi.org/project/docutils/#history) and it breaks awscli running on Python 2. ``` # aws --version Traceback (most recen...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -25,7 +25,7 @@ requires = ['botocore==1.12.191', 'colorama>=0.2.5,<=0.3.9', - 'docutils>=0.10', + 'docutils>=0.10,<0.15', 'rsa>=3.1.2,<=3.5.0', 's3transfer>=0.2.0,<0.3.0']
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -25,7 +25,7 @@\n \n requires = ['botocore==1.12.191',\n 'colorama>=0.2.5,<=0.3.9',\n- 'docutils>=0.10',\n+ 'docutils>=0.10,<0.15',\n 'rsa>=3.1.2,<=3.5.0',\n 's3transfer>=0.2.0,...
1,521
129
gh_patches_debug_29112
rasdani/github-patches
git_diff
crytic__slither-2239
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [False-Positive]:`msg.value` in a loop when `msg.value` is not transferred ### Describe the issue: In the following code snippet, Slither detects the following: <img width="1309" alt="image" src="https://...
diff --git a/slither/detectors/statements/msg_value_in_loop.py b/slither/detectors/statements/msg_value_in_loop.py --- a/slither/detectors/statements/msg_value_in_loop.py +++ b/slither/detectors/statements/msg_value_in_loop.py @@ -8,6 +8,9 @@ from slither.slithir.operations import InternalCall from slither.core.decla...
{"golden_diff": "diff --git a/slither/detectors/statements/msg_value_in_loop.py b/slither/detectors/statements/msg_value_in_loop.py\n--- a/slither/detectors/statements/msg_value_in_loop.py\n+++ b/slither/detectors/statements/msg_value_in_loop.py\n@@ -8,6 +8,9 @@\n from slither.slithir.operations import InternalCall\n f...
1,596
386
gh_patches_debug_8866
rasdani/github-patches
git_diff
tensorflow__addons-618
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Use package manager to pin TF dependency Per https://github.com/tensorflow/community/pull/135 we should be using pip/conda to specify which Addons releases work with which TF versions. This is blocked unt...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -69,9 +69,9 @@ if project_name == TFA_RELEASE: # TODO: remove if-else condition when tf supports package consolidation. if platform.system() == 'Linux': - REQUIRED_PACKAGES.append('tensorflow-gpu == 2.0.0') + REQUIRED_PACKAGES.ap...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -69,9 +69,9 @@\n if project_name == TFA_RELEASE:\n # TODO: remove if-else condition when tf supports package consolidation.\n if platform.system() == 'Linux':\n- REQUIRED_PACKAGES.append('tensorflow-gpu == 2.0.0')\n+ ...
1,434
155
gh_patches_debug_5541
rasdani/github-patches
git_diff
conda__conda-build-3118
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Can't get conda index to work with channel_name From the updated docs on 3.14.0, `channel_name` is now a positional argument. However, when I do ```bash $ conda index <build_dir> <channel_name> ``` I get ...
diff --git a/conda_build/cli/main_index.py b/conda_build/cli/main_index.py --- a/conda_build/cli/main_index.py +++ b/conda_build/cli/main_index.py @@ -30,10 +30,8 @@ package's metadata needs to be updated.""", ) p.add_argument( - 'channel_name', - help='Adding a channel name will create...
{"golden_diff": "diff --git a/conda_build/cli/main_index.py b/conda_build/cli/main_index.py\n--- a/conda_build/cli/main_index.py\n+++ b/conda_build/cli/main_index.py\n@@ -30,10 +30,8 @@\n package's metadata needs to be updated.\"\"\",\n )\n p.add_argument(\n- 'channel_name',\n- help='Addin...
953
145
gh_patches_debug_14395
rasdani/github-patches
git_diff
ethereum__web3.py-3027
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Fix logger for AsyncHTTPProvider AsyncHTTPProvider is getting the logger for `web3.providers.HTTPProvider` but should instead use `web3.providers.AsyncHTTPProvider` --- END ISSUE --- Below are some code seg...
diff --git a/web3/providers/__init__.py b/web3/providers/__init__.py --- a/web3/providers/__init__.py +++ b/web3/providers/__init__.py @@ -1,6 +1,9 @@ from .async_base import ( # noqa: F401 AsyncBaseProvider, ) +from .async_rpc import ( # noqa: F401 + AsyncHTTPProvider, +) from .base import ( # noqa: F401...
{"golden_diff": "diff --git a/web3/providers/__init__.py b/web3/providers/__init__.py\n--- a/web3/providers/__init__.py\n+++ b/web3/providers/__init__.py\n@@ -1,6 +1,9 @@\n from .async_base import ( # noqa: F401\n AsyncBaseProvider,\n )\n+from .async_rpc import ( # noqa: F401\n+ AsyncHTTPProvider,\n+)\n from ....
1,303
237
gh_patches_debug_700
rasdani/github-patches
git_diff
saulpw__visidata-1304
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [undo develop] undoing a reload blanks the entire sheet Since v2.5 undo for reload has been removed, and replaced with quitguard+confirm! However, in that case an undo should not be set. Current behaviour ...
diff --git a/visidata/undo.py b/visidata/undo.py --- a/visidata/undo.py +++ b/visidata/undo.py @@ -7,7 +7,7 @@ vd.option('undo', True, 'enable undo/redo') -nonUndo = '''commit open-file'''.split() +nonUndo = '''commit open-file reload-sheet'''.split() def isUndoableCommand(longname): for n in nonUndo:
{"golden_diff": "diff --git a/visidata/undo.py b/visidata/undo.py\n--- a/visidata/undo.py\n+++ b/visidata/undo.py\n@@ -7,7 +7,7 @@\n \n vd.option('undo', True, 'enable undo/redo')\n \n-nonUndo = '''commit open-file'''.split()\n+nonUndo = '''commit open-file reload-sheet'''.split()\n \n def isUndoableCommand(longname):\...
1,574
102
gh_patches_debug_22422
rasdani/github-patches
git_diff
pypi__warehouse-1335
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Handle Translation of the <title> tag Currently we can't really translate the `<title>` tag because our block doesn't allow a template to add a l20n ID to it. --- END ISSUE --- Below are some code segments...
diff --git a/warehouse/i18n/__init__.py b/warehouse/i18n/__init__.py --- a/warehouse/i18n/__init__.py +++ b/warehouse/i18n/__init__.py @@ -35,7 +35,3 @@ "format_rfc822_datetime", "warehouse.i18n.filters:format_rfc822_datetime", ) - - # Register our utility functions with Jinja2 - jglobals =...
{"golden_diff": "diff --git a/warehouse/i18n/__init__.py b/warehouse/i18n/__init__.py\n--- a/warehouse/i18n/__init__.py\n+++ b/warehouse/i18n/__init__.py\n@@ -35,7 +35,3 @@\n \"format_rfc822_datetime\",\n \"warehouse.i18n.filters:format_rfc822_datetime\",\n )\n-\n- # Register our utility function...
1,040
477
gh_patches_debug_28516
rasdani/github-patches
git_diff
microsoft__botbuilder-python-1399
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Avoid sending typing activity when bot is invoked as skill We should port this once the C# PR is merged. See [parent](https://github.com/microsoft/botframework-sdk/issues/6049) --- END ISSUE --- Below are ...
diff --git a/libraries/botbuilder-core/botbuilder/core/show_typing_middleware.py b/libraries/botbuilder-core/botbuilder/core/show_typing_middleware.py --- a/libraries/botbuilder-core/botbuilder/core/show_typing_middleware.py +++ b/libraries/botbuilder-core/botbuilder/core/show_typing_middleware.py @@ -4,7 +4,9 @@ from...
{"golden_diff": "diff --git a/libraries/botbuilder-core/botbuilder/core/show_typing_middleware.py b/libraries/botbuilder-core/botbuilder/core/show_typing_middleware.py\n--- a/libraries/botbuilder-core/botbuilder/core/show_typing_middleware.py\n+++ b/libraries/botbuilder-core/botbuilder/core/show_typing_middleware.py\n@...
1,125
374
gh_patches_debug_1724
rasdani/github-patches
git_diff
translate__pootle-5621
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Stats are wrong for children where the child name is repeated in the childs descendants this is causing stats to foo --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of...
diff --git a/pootle/apps/pootle_data/directory_data.py b/pootle/apps/pootle_data/directory_data.py --- a/pootle/apps/pootle_data/directory_data.py +++ b/pootle/apps/pootle_data/directory_data.py @@ -54,6 +54,5 @@ return children def get_root_child_path(self, child): - return ( - child[...
{"golden_diff": "diff --git a/pootle/apps/pootle_data/directory_data.py b/pootle/apps/pootle_data/directory_data.py\n--- a/pootle/apps/pootle_data/directory_data.py\n+++ b/pootle/apps/pootle_data/directory_data.py\n@@ -54,6 +54,5 @@\n return children\n \n def get_root_child_path(self, child):\n- retu...
831
143
gh_patches_debug_34545
rasdani/github-patches
git_diff
feast-dev__feast-1771
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- FeatureService should support "description" as first class named-value argument as Entity does ## Expected Behavior ... ``` # Define your feature service and the features it will serve driver_fs = Featur...
diff --git a/sdk/python/feast/feature_service.py b/sdk/python/feast/feature_service.py --- a/sdk/python/feast/feature_service.py +++ b/sdk/python/feast/feature_service.py @@ -31,6 +31,7 @@ name: str features: List[FeatureViewProjection] tags: Dict[str, str] + description: Optional[str] = None cre...
{"golden_diff": "diff --git a/sdk/python/feast/feature_service.py b/sdk/python/feast/feature_service.py\n--- a/sdk/python/feast/feature_service.py\n+++ b/sdk/python/feast/feature_service.py\n@@ -31,6 +31,7 @@\n name: str\n features: List[FeatureViewProjection]\n tags: Dict[str, str]\n+ description: Optio...
1,985
383
gh_patches_debug_15810
rasdani/github-patches
git_diff
zulip__zulip-9272
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Remove the "Delete streams" administrative tab Now that we have a "Delete stream" button in the main streams UI, which has lots more context on description/traffic/subscribers, this page is useless. We shoul...
diff --git a/zerver/lib/bugdown/help_settings_links.py b/zerver/lib/bugdown/help_settings_links.py --- a/zerver/lib/bugdown/help_settings_links.py +++ b/zerver/lib/bugdown/help_settings_links.py @@ -35,8 +35,6 @@ 'deactivated-users-admin': ['Manage organization', 'Deactivated users', ...
{"golden_diff": "diff --git a/zerver/lib/bugdown/help_settings_links.py b/zerver/lib/bugdown/help_settings_links.py\n--- a/zerver/lib/bugdown/help_settings_links.py\n+++ b/zerver/lib/bugdown/help_settings_links.py\n@@ -35,8 +35,6 @@\n 'deactivated-users-admin': ['Manage organization', 'Deactivated users',\n ...
1,653
173
gh_patches_debug_4644
rasdani/github-patches
git_diff
opendatacube__datacube-core-1399
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Online API documentation has gone missing ### Expected behaviour I should be able to find API documentation online. ### Actual behaviour ![image](https://user-images.githubusercontent.com/108979/21714896...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -14,12 +14,13 @@ ] doc_require = [ 'Sphinx', - 'sphinx_rtd_theme', 'sphinx_autodoc_typehints', # Propagate mypy info into docs 'sphinx-click', 'recommonmark', - 'setuptools', # version related dependencies - 'setuptools_s...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -14,12 +14,13 @@\n ]\n doc_require = [\n 'Sphinx',\n- 'sphinx_rtd_theme',\n 'sphinx_autodoc_typehints', # Propagate mypy info into docs\n 'sphinx-click',\n 'recommonmark',\n- 'setuptools', # version related dep...
1,857
151
gh_patches_debug_25523
rasdani/github-patches
git_diff
bridgecrewio__checkov-2648
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- feat: add support for terraform AKS role_based_access_control_enabled **Describe the issue** `CKV_AZURE_5` Recently, azurerm [2.99.0](https://github.com/hashicorp/terraform-provider-azurerm/releases/tag/v2....
diff --git a/checkov/terraform/checks/resource/azure/AKSRbacEnabled.py b/checkov/terraform/checks/resource/azure/AKSRbacEnabled.py --- a/checkov/terraform/checks/resource/azure/AKSRbacEnabled.py +++ b/checkov/terraform/checks/resource/azure/AKSRbacEnabled.py @@ -1,17 +1,32 @@ -from checkov.common.models.enums import Ch...
{"golden_diff": "diff --git a/checkov/terraform/checks/resource/azure/AKSRbacEnabled.py b/checkov/terraform/checks/resource/azure/AKSRbacEnabled.py\n--- a/checkov/terraform/checks/resource/azure/AKSRbacEnabled.py\n+++ b/checkov/terraform/checks/resource/azure/AKSRbacEnabled.py\n@@ -1,17 +1,32 @@\n-from checkov.common.m...
694
447
gh_patches_debug_57408
rasdani/github-patches
git_diff
kornia__kornia-1861
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Bugs when using RandomRGBShift ### Describe the bug When running RandomRGBShift augmentation on gpus I came across this error ``` File "/usr/local/lib/python3.8/dist-packages/kornia/augmentation/_2d...
diff --git a/kornia/enhance/shift_rgb.py b/kornia/enhance/shift_rgb.py --- a/kornia/enhance/shift_rgb.py +++ b/kornia/enhance/shift_rgb.py @@ -14,6 +14,6 @@ shifts = [r_shift, g_shift, b_shift] - shifted = (image + torch.Tensor(shifts).view(1, 3, 1, 1).to(image)).clamp_(min=0, max=1) + shifted = (image +...
{"golden_diff": "diff --git a/kornia/enhance/shift_rgb.py b/kornia/enhance/shift_rgb.py\n--- a/kornia/enhance/shift_rgb.py\n+++ b/kornia/enhance/shift_rgb.py\n@@ -14,6 +14,6 @@\n \n shifts = [r_shift, g_shift, b_shift]\n \n- shifted = (image + torch.Tensor(shifts).view(1, 3, 1, 1).to(image)).clamp_(min=0, max=1)...
1,002
160
gh_patches_debug_18264
rasdani/github-patches
git_diff
aws-cloudformation__cfn-lint-2912
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- E0002: Unknown exception while processing rule E2530: 'dict' object has no attribute 'startswith' ### CloudFormation Lint Version 0.82.0 ### What operating system are you using? windows 11 ### Describe th...
diff --git a/src/cfnlint/rules/resources/lmbd/SnapStartEnabled.py b/src/cfnlint/rules/resources/lmbd/SnapStartEnabled.py --- a/src/cfnlint/rules/resources/lmbd/SnapStartEnabled.py +++ b/src/cfnlint/rules/resources/lmbd/SnapStartEnabled.py @@ -23,7 +23,7 @@ self.resource_property_types.append("AWS::Lambda::Func...
{"golden_diff": "diff --git a/src/cfnlint/rules/resources/lmbd/SnapStartEnabled.py b/src/cfnlint/rules/resources/lmbd/SnapStartEnabled.py\n--- a/src/cfnlint/rules/resources/lmbd/SnapStartEnabled.py\n+++ b/src/cfnlint/rules/resources/lmbd/SnapStartEnabled.py\n@@ -23,7 +23,7 @@\n self.resource_property_types.appe...
1,806
285
gh_patches_debug_51453
rasdani/github-patches
git_diff
lutris__lutris-402
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Running game changes to default X cursor in main window ![cursor](https://i.imgbox.com/uyN4gDZq.png) I think [this is the code](https://github.com/lutris/lutris/blob/cbe6f5d5d982543a66f95aa62f0d8e26dd462470/...
diff --git a/lutris/util/display.py b/lutris/util/display.py --- a/lutris/util/display.py +++ b/lutris/util/display.py @@ -6,14 +6,10 @@ def set_cursor(name, window, display=None): """Set a named mouse cursor for the given window.""" - cursors = { - 'default': Gdk.CursorType.ARROW, - 'wait': Gd...
{"golden_diff": "diff --git a/lutris/util/display.py b/lutris/util/display.py\n--- a/lutris/util/display.py\n+++ b/lutris/util/display.py\n@@ -6,14 +6,10 @@\n \n def set_cursor(name, window, display=None):\n \"\"\"Set a named mouse cursor for the given window.\"\"\"\n- cursors = {\n- 'default': Gdk.Cursor...
1,488
150
gh_patches_debug_21203
rasdani/github-patches
git_diff
akvo__akvo-rsr-4237
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Show project's locations in EUTF Syria custom project report. --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Pat...
diff --git a/akvo/rsr/views/py_reports/results_indicators_with_map_pdf_reports.py b/akvo/rsr/views/py_reports/results_indicators_with_map_pdf_reports.py --- a/akvo/rsr/views/py_reports/results_indicators_with_map_pdf_reports.py +++ b/akvo/rsr/views/py_reports/results_indicators_with_map_pdf_reports.py @@ -109,6 +109,7 ...
{"golden_diff": "diff --git a/akvo/rsr/views/py_reports/results_indicators_with_map_pdf_reports.py b/akvo/rsr/views/py_reports/results_indicators_with_map_pdf_reports.py\n--- a/akvo/rsr/views/py_reports/results_indicators_with_map_pdf_reports.py\n+++ b/akvo/rsr/views/py_reports/results_indicators_with_map_pdf_reports.p...
2,038
260
gh_patches_debug_35621
rasdani/github-patches
git_diff
streamlink__streamlink-5443
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- plugins.rtvs: No playable streams found on ### Checklist - [X] This is a plugin issue and not a different kind of issue - [X] [I have read the contribution guidelines](https://github.com/streamlink/streamlin...
diff --git a/src/streamlink/plugins/rtvs.py b/src/streamlink/plugins/rtvs.py --- a/src/streamlink/plugins/rtvs.py +++ b/src/streamlink/plugins/rtvs.py @@ -6,47 +6,52 @@ """ import re +from urllib.parse import urlparse from streamlink.plugin import Plugin, pluginmatcher from streamlink.plugin.api import validate...
{"golden_diff": "diff --git a/src/streamlink/plugins/rtvs.py b/src/streamlink/plugins/rtvs.py\n--- a/src/streamlink/plugins/rtvs.py\n+++ b/src/streamlink/plugins/rtvs.py\n@@ -6,47 +6,52 @@\n \"\"\"\n \n import re\n+from urllib.parse import urlparse\n \n from streamlink.plugin import Plugin, pluginmatcher\n from streaml...
1,222
603
gh_patches_debug_7581
rasdani/github-patches
git_diff
ivy-llc__ivy-18346
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Sort --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `ivy/functional/frontends/paddle/tensor/search.py` Con...
diff --git a/ivy/functional/frontends/paddle/tensor/search.py b/ivy/functional/frontends/paddle/tensor/search.py --- a/ivy/functional/frontends/paddle/tensor/search.py +++ b/ivy/functional/frontends/paddle/tensor/search.py @@ -33,6 +33,15 @@ return ivy.argsort(x, axis=axis, descending=descending) +@with_suppor...
{"golden_diff": "diff --git a/ivy/functional/frontends/paddle/tensor/search.py b/ivy/functional/frontends/paddle/tensor/search.py\n--- a/ivy/functional/frontends/paddle/tensor/search.py\n+++ b/ivy/functional/frontends/paddle/tensor/search.py\n@@ -33,6 +33,15 @@\n return ivy.argsort(x, axis=axis, descending=descendi...
964
230
gh_patches_debug_29121
rasdani/github-patches
git_diff
Lightning-AI__torchmetrics-2235
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Perplexity dtype restriction too strict ## 🐛 Bug The perplexity metric requires the input dtype to be either fp32 or fp64, but this doesn't work with e.g. fp16, and users need to manually recast. https...
diff --git a/src/torchmetrics/functional/text/perplexity.py b/src/torchmetrics/functional/text/perplexity.py --- a/src/torchmetrics/functional/text/perplexity.py +++ b/src/torchmetrics/functional/text/perplexity.py @@ -16,9 +16,6 @@ import torch from torch import Tensor -from torch.nn import functional as F # noqa...
{"golden_diff": "diff --git a/src/torchmetrics/functional/text/perplexity.py b/src/torchmetrics/functional/text/perplexity.py\n--- a/src/torchmetrics/functional/text/perplexity.py\n+++ b/src/torchmetrics/functional/text/perplexity.py\n@@ -16,9 +16,6 @@\n \n import torch\n from torch import Tensor\n-from torch.nn import...
2,040
419
gh_patches_debug_6988
rasdani/github-patches
git_diff
napari__napari-4264
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- 'napari._vispy.layers.image' is not a package ## Activating experimental rendering features causes persistent ModuleNotFoundError Recently, I discovered the two "experimental" features designed to enhance ...
diff --git a/napari/_vispy/utils/visual.py b/napari/_vispy/utils/visual.py --- a/napari/_vispy/utils/visual.py +++ b/napari/_vispy/utils/visual.py @@ -36,8 +36,8 @@ if async_octree: - from ..layers.image.experimental.octree_image import _OctreeImageBase - from .experimental.vispy_tiled_image_layer import Vis...
{"golden_diff": "diff --git a/napari/_vispy/utils/visual.py b/napari/_vispy/utils/visual.py\n--- a/napari/_vispy/utils/visual.py\n+++ b/napari/_vispy/utils/visual.py\n@@ -36,8 +36,8 @@\n \n \n if async_octree:\n- from ..layers.image.experimental.octree_image import _OctreeImageBase\n- from .experimental.vispy_til...
1,767
179
gh_patches_debug_4034
rasdani/github-patches
git_diff
facebookresearch__ParlAI-1334
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Messenger - qa_data_collection task Running the messenger qa_data_collection task, it gives me te following error: Exception in user code: Traceback (most recent call last): File "/home/micol/PycharmPro...
diff --git a/parlai/messenger/tasks/qa_data_collection/run.py b/parlai/messenger/tasks/qa_data_collection/run.py --- a/parlai/messenger/tasks/qa_data_collection/run.py +++ b/parlai/messenger/tasks/qa_data_collection/run.py @@ -27,7 +27,7 @@ class_name = 'DefaultTeacher' my_module = importlib.import_module(mod...
{"golden_diff": "diff --git a/parlai/messenger/tasks/qa_data_collection/run.py b/parlai/messenger/tasks/qa_data_collection/run.py\n--- a/parlai/messenger/tasks/qa_data_collection/run.py\n+++ b/parlai/messenger/tasks/qa_data_collection/run.py\n@@ -27,7 +27,7 @@\n class_name = 'DefaultTeacher'\n my_module = impor...
1,793
143
gh_patches_debug_36930
rasdani/github-patches
git_diff
kedro-org__kedro-1761
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Improve Jupyter workflow when configuration is broken ## Description > Is your feature request related to a problem? A clear and concise description of what the problem is: "I'm always frustrated when ..." ...
diff --git a/kedro/extras/extensions/ipython.py b/kedro/extras/extensions/ipython.py --- a/kedro/extras/extensions/ipython.py +++ b/kedro/extras/extensions/ipython.py @@ -1,4 +1,4 @@ -# pylint: disable=import-outside-toplevel,global-statement,invalid-name +# pylint: disable=import-outside-toplevel,global-statement,inva...
{"golden_diff": "diff --git a/kedro/extras/extensions/ipython.py b/kedro/extras/extensions/ipython.py\n--- a/kedro/extras/extensions/ipython.py\n+++ b/kedro/extras/extensions/ipython.py\n@@ -1,4 +1,4 @@\n-# pylint: disable=import-outside-toplevel,global-statement,invalid-name\n+# pylint: disable=import-outside-toplevel...
1,794
521
gh_patches_debug_43422
rasdani/github-patches
git_diff
encode__starlette-92
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add `allow_origin_regex` to CORSMiddleware. It'd be helpful if `CORSMiddleware` supported an `allow_origin_regex`, so that users could do... ```python # Enforce a subdomain CORS policy app.add_middleware...
diff --git a/starlette/middleware/cors.py b/starlette/middleware/cors.py --- a/starlette/middleware/cors.py +++ b/starlette/middleware/cors.py @@ -3,6 +3,7 @@ from starlette.types import ASGIApp, ASGIInstance, Scope import functools import typing +import re ALL_METHODS = ("DELETE", "GET", "OPTIONS", "PATCH", "P...
{"golden_diff": "diff --git a/starlette/middleware/cors.py b/starlette/middleware/cors.py\n--- a/starlette/middleware/cors.py\n+++ b/starlette/middleware/cors.py\n@@ -3,6 +3,7 @@\n from starlette.types import ASGIApp, ASGIInstance, Scope\n import functools\n import typing\n+import re\n \n \n ALL_METHODS = (\"DELETE\", ...
1,739
732
gh_patches_debug_12814
rasdani/github-patches
git_diff
HypothesisWorks__hypothesis-1178
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Run tests with warnings as errors This is harder than it sounds, because practically everything in a Python stack emits warnings. See #1124, #1149, and #1169 for previous work on this. One lead is to chec...
diff --git a/src/hypothesis/internal/coverage.py b/src/hypothesis/internal/coverage.py --- a/src/hypothesis/internal/coverage.py +++ b/src/hypothesis/internal/coverage.py @@ -57,7 +57,8 @@ if IN_COVERAGE_TESTS: - log = open('branch-check', 'w') + with open('branch-check', 'w'): + pass written = s...
{"golden_diff": "diff --git a/src/hypothesis/internal/coverage.py b/src/hypothesis/internal/coverage.py\n--- a/src/hypothesis/internal/coverage.py\n+++ b/src/hypothesis/internal/coverage.py\n@@ -57,7 +57,8 @@\n \n \n if IN_COVERAGE_TESTS:\n- log = open('branch-check', 'w')\n+ with open('branch-check', 'w'):\n+ ...
1,634
205
gh_patches_debug_18261
rasdani/github-patches
git_diff
liqd__a4-meinberlin-4296
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Missing template translations confirm-email **URL:** https://meinberlin-dev.liqd.net/accounts/confirm-email/ **user:** user who want to register **expected behaviour:** Translation is shown https://github...
diff --git a/meinberlin/apps/contrib/django_standard_messages.py b/meinberlin/apps/contrib/django_standard_messages.py --- a/meinberlin/apps/contrib/django_standard_messages.py +++ b/meinberlin/apps/contrib/django_standard_messages.py @@ -12,7 +12,13 @@ "you do not receive it within a few minutes."), _("We ...
{"golden_diff": "diff --git a/meinberlin/apps/contrib/django_standard_messages.py b/meinberlin/apps/contrib/django_standard_messages.py\n--- a/meinberlin/apps/contrib/django_standard_messages.py\n+++ b/meinberlin/apps/contrib/django_standard_messages.py\n@@ -12,7 +12,13 @@\n \"you do not receive it within a few m...
926
267
gh_patches_debug_9637
rasdani/github-patches
git_diff
pre-commit__pre-commit-2029
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- `check-useless-excludes` meta hook doesn't seem to work well with broken symlinks Repro steps 1. Add a submodule 2. Add a symlink to somewhere inside this submodule 3. Use `check-symlinks` 4. Deinit submo...
diff --git a/pre_commit/meta_hooks/check_useless_excludes.py b/pre_commit/meta_hooks/check_useless_excludes.py --- a/pre_commit/meta_hooks/check_useless_excludes.py +++ b/pre_commit/meta_hooks/check_useless_excludes.py @@ -43,6 +43,9 @@ for repo in config['repos']: for hook in repo['hooks']: + ...
{"golden_diff": "diff --git a/pre_commit/meta_hooks/check_useless_excludes.py b/pre_commit/meta_hooks/check_useless_excludes.py\n--- a/pre_commit/meta_hooks/check_useless_excludes.py\n+++ b/pre_commit/meta_hooks/check_useless_excludes.py\n@@ -43,6 +43,9 @@\n \n for repo in config['repos']:\n for hook in rep...
1,100
159
gh_patches_debug_4164
rasdani/github-patches
git_diff
lutris__lutris-1859
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- get_children_pids_of_thread(): process.py:57:get_children_pids_of_thread:ProcessLookupError: [Errno 3] No such process: '/proc/25892/task/25892/children' Here's another Fedora report. https://bugzilla.redh...
diff --git a/lutris/util/process.py b/lutris/util/process.py --- a/lutris/util/process.py +++ b/lutris/util/process.py @@ -56,7 +56,7 @@ try: with open(children_path) as children_file: children_content = children_file.read() - except FileNotFoundError: + except (File...
{"golden_diff": "diff --git a/lutris/util/process.py b/lutris/util/process.py\n--- a/lutris/util/process.py\n+++ b/lutris/util/process.py\n@@ -56,7 +56,7 @@\n try:\n with open(children_path) as children_file:\n children_content = children_file.read()\n- except FileNotFoundErro...
1,908
98
gh_patches_debug_24181
rasdani/github-patches
git_diff
ansible__awx-13528
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Exception handling for Conjur Secrets Manager Lookup not working properly ### Please confirm the following - [X] I agree to follow this project's [code of conduct](https://docs.ansible.com/ansible/latest/com...
diff --git a/awx/main/credential_plugins/conjur.py b/awx/main/credential_plugins/conjur.py --- a/awx/main/credential_plugins/conjur.py +++ b/awx/main/credential_plugins/conjur.py @@ -70,7 +70,8 @@ auth_kwargs['verify'] = cert try: resp = requests.post(urljoin(url, '/'.join(['authn', accou...
{"golden_diff": "diff --git a/awx/main/credential_plugins/conjur.py b/awx/main/credential_plugins/conjur.py\n--- a/awx/main/credential_plugins/conjur.py\n+++ b/awx/main/credential_plugins/conjur.py\n@@ -70,7 +70,8 @@\n auth_kwargs['verify'] = cert\n try:\n resp = requests.post(urljoin(url, '...
1,621
268
gh_patches_debug_15683
rasdani/github-patches
git_diff
openstates__openstates-scrapers-2556
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- ME failing since at least 2018-10-25 ME has been failing since 2018-10-25 Based on automated runs it appears that ME has not run successfully in 2 days (2018-10-25). ``` loaded Open States pupa settings....
diff --git a/openstates/me/__init__.py b/openstates/me/__init__.py --- a/openstates/me/__init__.py +++ b/openstates/me/__init__.py @@ -60,7 +60,9 @@ "end_date": "2017-06-14", } ] - ignored_scraped_sessions = [] + ignored_scraped_sessions = [ + '2001-2002' + ] def get_or...
{"golden_diff": "diff --git a/openstates/me/__init__.py b/openstates/me/__init__.py\n--- a/openstates/me/__init__.py\n+++ b/openstates/me/__init__.py\n@@ -60,7 +60,9 @@\n \"end_date\": \"2017-06-14\",\n }\n ]\n- ignored_scraped_sessions = []\n+ ignored_scraped_sessions = [\n+ '2001-...
1,725
208
gh_patches_debug_3041
rasdani/github-patches
git_diff
ethereum__web3.py-1107
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Backport 1094 to v4 branch ### What was wrong? https://github.com/ethereum/web3.py/issues/1094#issuecomment-428259232 needs to be backported to the v4 branch. --- END ISSUE --- Below are some code segmen...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -80,7 +80,7 @@ "pypiwin32>=223;platform_system=='Windows'", ], setup_requires=['setuptools-markdown'], - python_requires='>=3.5, <4', + python_requires='>=3.5.3,<4', extras_require=extras_require, py_modules=['web3', 'e...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -80,7 +80,7 @@\n \"pypiwin32>=223;platform_system=='Windows'\",\n ],\n setup_requires=['setuptools-markdown'],\n- python_requires='>=3.5, <4',\n+ python_requires='>=3.5.3,<4',\n extras_require=extras_require,...
1,409
109
gh_patches_debug_11266
rasdani/github-patches
git_diff
marshmallow-code__webargs-943
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Testsuite fails under pytest==8.2.0 with `'AsyncHTTPTestCase' has no attribute 'runTest'` We currently have some test failures in basically all python versions, starting ~2 days ago. At first glance, it looks...
diff --git a/src/webargs/__init__.py b/src/webargs/__init__.py --- a/src/webargs/__init__.py +++ b/src/webargs/__init__.py @@ -14,8 +14,8 @@ __version__ = importlib.metadata.version("webargs") __parsed_version__ = Version(__version__) __version_info__: tuple[int, int, int] | tuple[int, int, int, str, int] = ( - _...
{"golden_diff": "diff --git a/src/webargs/__init__.py b/src/webargs/__init__.py\n--- a/src/webargs/__init__.py\n+++ b/src/webargs/__init__.py\n@@ -14,8 +14,8 @@\n __version__ = importlib.metadata.version(\"webargs\")\n __parsed_version__ = Version(__version__)\n __version_info__: tuple[int, int, int] | tuple[int, int, ...
907
174
gh_patches_debug_22777
rasdani/github-patches
git_diff
openstates__openstates-scrapers-1370
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- NC - Committee assignments missing for a house member State: NC There may be more, I just happen to find this today. Jay Adams is missing committee assignments. The API does not show any in roles. http...
diff --git a/openstates/nc/committees.py b/openstates/nc/committees.py --- a/openstates/nc/committees.py +++ b/openstates/nc/committees.py @@ -17,10 +17,23 @@ mtype, members = row.getchildren() if mtype.text == 'Members': for m in members.getchildren(): - co...
{"golden_diff": "diff --git a/openstates/nc/committees.py b/openstates/nc/committees.py\n--- a/openstates/nc/committees.py\n+++ b/openstates/nc/committees.py\n@@ -17,10 +17,23 @@\n mtype, members = row.getchildren()\n if mtype.text == 'Members':\n for m in members.getchildren():\...
913
317