problem_id
stringlengths
18
21
source
stringclasses
1 value
task_type
stringclasses
1 value
in_source_id
stringlengths
13
54
prompt
stringlengths
1.28k
64.2k
golden_diff
stringlengths
166
811
verification_info
stringlengths
604
118k
gh_patches_debug_1000
rasdani/github-patches
git_diff
getmoto__moto-1859
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- cognito-idp UserPool id format does not match AWS format The format for a Cognito UserPool Id produced by the the cognito-idp mock does not produce ids in the expected format for a Cognito UserPool - The ids ...
diff --git a/moto/cognitoidp/models.py b/moto/cognitoidp/models.py --- a/moto/cognitoidp/models.py +++ b/moto/cognitoidp/models.py @@ -24,7 +24,7 @@ def __init__(self, region, name, extended_config): self.region = region - self.id = str(uuid.uuid4()) + self.id = "{}_{}".format(self.region,...
{"golden_diff": "diff --git a/moto/cognitoidp/models.py b/moto/cognitoidp/models.py\n--- a/moto/cognitoidp/models.py\n+++ b/moto/cognitoidp/models.py\n@@ -24,7 +24,7 @@\n \n def __init__(self, region, name, extended_config):\n self.region = region\n- self.id = str(uuid.uuid4())\n+ self.id = \"...
gh_patches_debug_1001
rasdani/github-patches
git_diff
readthedocs__readthedocs.org-4910
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Validate profile fields on form Related code https://github.com/rtfd/readthedocs.org/blob/164800694a25d769234c6e7019c483f347fe9226/readthedocs/core/forms.py#L20-L46 This will raise an exception if the l...
diff --git a/readthedocs/core/forms.py b/readthedocs/core/forms.py --- a/readthedocs/core/forms.py +++ b/readthedocs/core/forms.py @@ -18,8 +18,8 @@ class UserProfileForm(forms.ModelForm): - first_name = CharField(label=_('First name'), required=False) - last_name = CharField(label=_('Last name'), required=F...
{"golden_diff": "diff --git a/readthedocs/core/forms.py b/readthedocs/core/forms.py\n--- a/readthedocs/core/forms.py\n+++ b/readthedocs/core/forms.py\n@@ -18,8 +18,8 @@\n \n \n class UserProfileForm(forms.ModelForm):\n- first_name = CharField(label=_('First name'), required=False)\n- last_name = CharField(label=_...
gh_patches_debug_1002
rasdani/github-patches
git_diff
hpcaitech__ColossalAI-5611
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [tensor] fix some unittests [tensor] fix some unittests [tensor] fix some unittests --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs....
diff --git a/examples/inference/benchmark_ops/benchmark_rmsnorm.py b/examples/inference/benchmark_ops/benchmark_rmsnorm.py --- a/examples/inference/benchmark_ops/benchmark_rmsnorm.py +++ b/examples/inference/benchmark_ops/benchmark_rmsnorm.py @@ -35,7 +35,7 @@ styles=[("red", "-"), ("blue", "-"), ("yellow", "-...
{"golden_diff": "diff --git a/examples/inference/benchmark_ops/benchmark_rmsnorm.py b/examples/inference/benchmark_ops/benchmark_rmsnorm.py\n--- a/examples/inference/benchmark_ops/benchmark_rmsnorm.py\n+++ b/examples/inference/benchmark_ops/benchmark_rmsnorm.py\n@@ -35,7 +35,7 @@\n styles=[(\"red\", \"-\"), (\"...
gh_patches_debug_1003
rasdani/github-patches
git_diff
spack__spack-19617
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Jupyter: No module named ipykernel_launcher ### Steps to reproduce the issue ```console $ spack env create my-jupyter $ spack env activate my-jupyter $ spack add py-jupyter $ spack add py-ipython $ sp...
diff --git a/var/spack/repos/builtin/packages/py-ipykernel/package.py b/var/spack/repos/builtin/packages/py-ipykernel/package.py --- a/var/spack/repos/builtin/packages/py-ipykernel/package.py +++ b/var/spack/repos/builtin/packages/py-ipykernel/package.py @@ -40,3 +40,9 @@ depends_on('py-pytest-cov', type='test') ...
{"golden_diff": "diff --git a/var/spack/repos/builtin/packages/py-ipykernel/package.py b/var/spack/repos/builtin/packages/py-ipykernel/package.py\n--- a/var/spack/repos/builtin/packages/py-ipykernel/package.py\n+++ b/var/spack/repos/builtin/packages/py-ipykernel/package.py\n@@ -40,3 +40,9 @@\n depends_on('py-pytest...
gh_patches_debug_1004
rasdani/github-patches
git_diff
spack__spack-43770
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Installation issue: nettle fails to build due to undocumented openssl dependency? ### Steps to reproduce the issue ```console $ spack spec -I <spec> Input spec -------------------------------- - nettl...
diff --git a/var/spack/repos/builtin/packages/nettle/package.py b/var/spack/repos/builtin/packages/nettle/package.py --- a/var/spack/repos/builtin/packages/nettle/package.py +++ b/var/spack/repos/builtin/packages/nettle/package.py @@ -26,7 +26,11 @@ depends_on("gmp") depends_on("m4", type="build") - depe...
{"golden_diff": "diff --git a/var/spack/repos/builtin/packages/nettle/package.py b/var/spack/repos/builtin/packages/nettle/package.py\n--- a/var/spack/repos/builtin/packages/nettle/package.py\n+++ b/var/spack/repos/builtin/packages/nettle/package.py\n@@ -26,7 +26,11 @@\n \n depends_on(\"gmp\")\n depends_on(\"m4...
gh_patches_debug_1005
rasdani/github-patches
git_diff
superduper-io__superduper-1837
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [BUG]: Variable inject for list values in a serialised component missing kwargs c = Component() c.dict() -> {some keys: [ {}, { 'v': Variable_type }] } due to ``` def _replace_variables(x, db, **kw...
diff --git a/superduperdb/base/serializable.py b/superduperdb/base/serializable.py --- a/superduperdb/base/serializable.py +++ b/superduperdb/base/serializable.py @@ -56,7 +56,7 @@ for k, v in x.items() } if isinstance(x, (list, tuple)): - return [_replace_variables(v, db) for v in x] ...
{"golden_diff": "diff --git a/superduperdb/base/serializable.py b/superduperdb/base/serializable.py\n--- a/superduperdb/base/serializable.py\n+++ b/superduperdb/base/serializable.py\n@@ -56,7 +56,7 @@\n for k, v in x.items()\n }\n if isinstance(x, (list, tuple)):\n- return [_replace_varia...
gh_patches_debug_1006
rasdani/github-patches
git_diff
DataBiosphere__toil-4528
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- WES ignores host in production When trying to run `toil server --host 0.0.0.0`, I noticed that it would always only listen on `127.0.0.1` no matter what `--host` is set to but running with `--debug` didn't ha...
diff --git a/src/toil/server/wsgi_app.py b/src/toil/server/wsgi_app.py --- a/src/toil/server/wsgi_app.py +++ b/src/toil/server/wsgi_app.py @@ -41,7 +41,7 @@ # TODO: also read from the Gunicorn config file? - for key, value in {**self.options, **vars(env_args)}.items(): + for key, value in {**...
{"golden_diff": "diff --git a/src/toil/server/wsgi_app.py b/src/toil/server/wsgi_app.py\n--- a/src/toil/server/wsgi_app.py\n+++ b/src/toil/server/wsgi_app.py\n@@ -41,7 +41,7 @@\n \n # TODO: also read from the Gunicorn config file?\n \n- for key, value in {**self.options, **vars(env_args)}.items():\n+ ...
gh_patches_debug_1007
rasdani/github-patches
git_diff
pypa__pip-1283
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Pip Generated Scripts and .py(a|w) on Windows It appears setuptools also supports `.pya` and `pyw` on Windows for generated script wrappers instead of `.exe`. We should also strip these when installing a Whee...
diff --git a/pip/wheel.py b/pip/wheel.py --- a/pip/wheel.py +++ b/pip/wheel.py @@ -199,6 +199,8 @@ matchname = name[:-4] elif name.lower().endswith('-script.py'): matchname = name[:-10] + elif name.lower().endswith(".pya"): + matchname = name[:-4] else: ...
{"golden_diff": "diff --git a/pip/wheel.py b/pip/wheel.py\n--- a/pip/wheel.py\n+++ b/pip/wheel.py\n@@ -199,6 +199,8 @@\n matchname = name[:-4]\n elif name.lower().endswith('-script.py'):\n matchname = name[:-10]\n+ elif name.lower().endswith(\".pya\"):\n+ matchname = na...
gh_patches_debug_1008
rasdani/github-patches
git_diff
translate__pootle-5619
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Priority column is missing Since the column reordering we've lost the priority column in the vfolders table --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these fi...
diff --git a/pootle/apps/virtualfolder/views.py b/pootle/apps/virtualfolder/views.py --- a/pootle/apps/virtualfolder/views.py +++ b/pootle/apps/virtualfolder/views.py @@ -122,7 +122,7 @@ _table_fields = ( 'name', 'progress', 'activity', 'total', 'need-translation', - 'suggestions', 'critic...
{"golden_diff": "diff --git a/pootle/apps/virtualfolder/views.py b/pootle/apps/virtualfolder/views.py\n--- a/pootle/apps/virtualfolder/views.py\n+++ b/pootle/apps/virtualfolder/views.py\n@@ -122,7 +122,7 @@\n _table_fields = (\n 'name', 'progress', 'activity',\n 'total', 'need-translation',\n- ...
gh_patches_debug_1009
rasdani/github-patches
git_diff
redis__redis-py-1108
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- PythonParser vs HiredisParser on_disconnect behavior PythonParser's `on_disconnect` implementation is inconsistent with HiredisParser implementation (or vice versa): ```python class PythonParser(...): ...
diff --git a/redis/connection.py b/redis/connection.py --- a/redis/connection.py +++ b/redis/connection.py @@ -276,9 +276,7 @@ def on_disconnect(self): "Called when the socket disconnects" - if self._sock is not None: - self._sock.close() - self._sock = None + self._s...
{"golden_diff": "diff --git a/redis/connection.py b/redis/connection.py\n--- a/redis/connection.py\n+++ b/redis/connection.py\n@@ -276,9 +276,7 @@\n \n def on_disconnect(self):\n \"Called when the socket disconnects\"\n- if self._sock is not None:\n- self._sock.close()\n- self._...
gh_patches_debug_1010
rasdani/github-patches
git_diff
svthalia__concrexit-3616
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Disable Sentry cron monitoring ### What? We need to disable the sentry 'cron' monitoring of periodic tasks. ### Why? Sentry is making cron monitors paid after the beta. ### How? I think it's a si...
diff --git a/website/thaliawebsite/settings.py b/website/thaliawebsite/settings.py --- a/website/thaliawebsite/settings.py +++ b/website/thaliawebsite/settings.py @@ -555,9 +555,7 @@ dsn=os.environ.get("SENTRY_DSN"), integrations=[ DjangoIntegration(), - CeleryIntegration( - ...
{"golden_diff": "diff --git a/website/thaliawebsite/settings.py b/website/thaliawebsite/settings.py\n--- a/website/thaliawebsite/settings.py\n+++ b/website/thaliawebsite/settings.py\n@@ -555,9 +555,7 @@\n dsn=os.environ.get(\"SENTRY_DSN\"),\n integrations=[\n DjangoIntegration(),\n- ...
gh_patches_debug_1011
rasdani/github-patches
git_diff
freedomofpress__securedrop-5595
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- dev server hot reload has stopped working ## Description In #5532 the `env` attribute was dropped from `SDConfig` in `sdconfig.py`. That value is checked in [`source.py`](https://github.com/freedomofpress/...
diff --git a/securedrop/sdconfig.py b/securedrop/sdconfig.py --- a/securedrop/sdconfig.py +++ b/securedrop/sdconfig.py @@ -53,7 +53,8 @@ self.WORKER_PIDFILE = _config.WORKER_PIDFILE # type: str - if _config.env == 'test': + self.env = getattr(_config, 'env', 'prod') # type: str + if ...
{"golden_diff": "diff --git a/securedrop/sdconfig.py b/securedrop/sdconfig.py\n--- a/securedrop/sdconfig.py\n+++ b/securedrop/sdconfig.py\n@@ -53,7 +53,8 @@\n \n self.WORKER_PIDFILE = _config.WORKER_PIDFILE # type: str\n \n- if _config.env == 'test':\n+ self.env = getattr(_config, 'env', 'prod') ...
gh_patches_debug_1012
rasdani/github-patches
git_diff
facebookresearch__hydra-2161
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [Bug] Link to upgrade guide crashes documentation site In `hydra-core==1.2.0dev5`, `basic_launcher` produces the following warning: ``` /home/runner/work/hydra-zen/hydra-zen/.tox/pre-release/lib/python3...
diff --git a/hydra/core/utils.py b/hydra/core/utils.py --- a/hydra/core/utils.py +++ b/hydra/core/utils.py @@ -152,7 +152,7 @@ _chdir = False if _chdir is None: - url = "https://hydra.cc/docs/upgrades/1.1_to_1.2/changes_to_job_working_dir" + url = "https://hydra.cc/docs...
{"golden_diff": "diff --git a/hydra/core/utils.py b/hydra/core/utils.py\n--- a/hydra/core/utils.py\n+++ b/hydra/core/utils.py\n@@ -152,7 +152,7 @@\n _chdir = False\n \n if _chdir is None:\n- url = \"https://hydra.cc/docs/upgrades/1.1_to_1.2/changes_to_job_working_dir\"\n+ u...
gh_patches_debug_1013
rasdani/github-patches
git_diff
keras-team__keras-19387
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- TypeError: DTypePolicy.__new__() when deepcopy(layer_instance) Hello, I use `Python==3.11.8` with `keras==3.1.1`. When I create a layer instance and try to deepcopy this layer I receive the following er...
diff --git a/keras/dtype_policies/dtype_policy.py b/keras/dtype_policies/dtype_policy.py --- a/keras/dtype_policies/dtype_policy.py +++ b/keras/dtype_policies/dtype_policy.py @@ -69,6 +69,10 @@ return FloatDTypePolicy(name) return super().__new__(cls) + def __getnewargs__(self): + # To...
{"golden_diff": "diff --git a/keras/dtype_policies/dtype_policy.py b/keras/dtype_policies/dtype_policy.py\n--- a/keras/dtype_policies/dtype_policy.py\n+++ b/keras/dtype_policies/dtype_policy.py\n@@ -69,6 +69,10 @@\n return FloatDTypePolicy(name)\n return super().__new__(cls)\n \n+ def __getnewarg...
gh_patches_debug_1014
rasdani/github-patches
git_diff
google__turbinia-602
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Configuration file not behaving as expected I was struggling a bit today with having the configuration file mapped to what I needed it to be (for launching dftimewolf with a one-off configuration of Turbinia)...
diff --git a/turbinia/config/__init__.py b/turbinia/config/__init__.py --- a/turbinia/config/__init__.py +++ b/turbinia/config/__init__.py @@ -109,7 +109,7 @@ # pattern on the config class. # pylint: disable=global-statement global CONFIG - if CONFIG: + if CONFIG and not config_file: log.debug( ...
{"golden_diff": "diff --git a/turbinia/config/__init__.py b/turbinia/config/__init__.py\n--- a/turbinia/config/__init__.py\n+++ b/turbinia/config/__init__.py\n@@ -109,7 +109,7 @@\n # pattern on the config class.\n # pylint: disable=global-statement\n global CONFIG\n- if CONFIG:\n+ if CONFIG and not config_file:...
gh_patches_debug_1015
rasdani/github-patches
git_diff
celery__celery-2349
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Internal error when embedding app Celery 3.1.13 and 3.1.16 (latest release as of this writing) I'm wrapping the celery app inside a utility class, which constructs the app and the worker: ``` python sel...
diff --git a/celery/app/trace.py b/celery/app/trace.py --- a/celery/app/trace.py +++ b/celery/app/trace.py @@ -337,7 +337,8 @@ def _trace_task_ret(name, uuid, args, kwargs, request={}, app=None, **opts): - return trace_task((app or current_app).tasks[name], + app = app or current_app + return trace_task(a...
{"golden_diff": "diff --git a/celery/app/trace.py b/celery/app/trace.py\n--- a/celery/app/trace.py\n+++ b/celery/app/trace.py\n@@ -337,7 +337,8 @@\n \n \n def _trace_task_ret(name, uuid, args, kwargs, request={}, app=None, **opts):\n- return trace_task((app or current_app).tasks[name],\n+ app = app or current_app...
gh_patches_debug_1016
rasdani/github-patches
git_diff
ansible__ansible-modules-core-3507
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Filter also branch info in has_local_mods ##### ISSUE TYPE - Bugfix Pull Request ##### COMPONENT NAME git ##### ANSIBLE VERSION ``` ansible 2.0.1.0 ``` ##### SUMMARY Filter also branch info in has_local_mo...
diff --git a/source_control/git.py b/source_control/git.py --- a/source_control/git.py +++ b/source_control/git.py @@ -356,7 +356,7 @@ if bare: return False - cmd = "%s status -s" % (git_path) + cmd = "%s status --porcelain" % (git_path) rc, stdout, stderr = module.run_command(cmd, cwd=dest) ...
{"golden_diff": "diff --git a/source_control/git.py b/source_control/git.py\n--- a/source_control/git.py\n+++ b/source_control/git.py\n@@ -356,7 +356,7 @@\n if bare:\n return False\n \n- cmd = \"%s status -s\" % (git_path)\n+ cmd = \"%s status --porcelain\" % (git_path)\n rc, stdout, stderr = modu...
gh_patches_debug_1017
rasdani/github-patches
git_diff
openai__gym-1092
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- ImportError when installing on Windows 10 and [33mWARN: gym.spaces.Box autodetected dtype as <class 'numpy.float32'> Dears, Would you please let me know how I could solve this warning and this error? (Windo...
diff --git a/gym/envs/mujoco/mujoco_env.py b/gym/envs/mujoco/mujoco_env.py --- a/gym/envs/mujoco/mujoco_env.py +++ b/gym/envs/mujoco/mujoco_env.py @@ -46,7 +46,7 @@ bounds = self.model.actuator_ctrlrange.copy() low = bounds[:, 0] high = bounds[:, 1] - self.action_space = spaces.Box(low...
{"golden_diff": "diff --git a/gym/envs/mujoco/mujoco_env.py b/gym/envs/mujoco/mujoco_env.py\n--- a/gym/envs/mujoco/mujoco_env.py\n+++ b/gym/envs/mujoco/mujoco_env.py\n@@ -46,7 +46,7 @@\n bounds = self.model.actuator_ctrlrange.copy()\n low = bounds[:, 0]\n high = bounds[:, 1]\n- self.actio...
gh_patches_debug_1018
rasdani/github-patches
git_diff
ivy-llc__ivy-13797
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- diagflat --- 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/numpy/creation_routines/...
diff --git a/ivy/functional/frontends/numpy/creation_routines/building_matrices.py b/ivy/functional/frontends/numpy/creation_routines/building_matrices.py --- a/ivy/functional/frontends/numpy/creation_routines/building_matrices.py +++ b/ivy/functional/frontends/numpy/creation_routines/building_matrices.py @@ -36,3 +36,...
{"golden_diff": "diff --git a/ivy/functional/frontends/numpy/creation_routines/building_matrices.py b/ivy/functional/frontends/numpy/creation_routines/building_matrices.py\n--- a/ivy/functional/frontends/numpy/creation_routines/building_matrices.py\n+++ b/ivy/functional/frontends/numpy/creation_routines/building_matric...
gh_patches_debug_1019
rasdani/github-patches
git_diff
beetbox__beets-3980
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Duplicate Plugin: beet dup -C "md5sum {file}" doesn't calculate checksum on Win10 cmd (incl ad-hoc fix) I was trying to check for duplicates with md5sum. And ran into several problems. ### Problem Runni...
diff --git a/beetsplug/duplicates.py b/beetsplug/duplicates.py --- a/beetsplug/duplicates.py +++ b/beetsplug/duplicates.py @@ -136,6 +136,11 @@ keys = ['mb_trackid', 'mb_albumid'] items = lib.items(decargs(args)) + # If there's nothing to do, return early. The code bel...
{"golden_diff": "diff --git a/beetsplug/duplicates.py b/beetsplug/duplicates.py\n--- a/beetsplug/duplicates.py\n+++ b/beetsplug/duplicates.py\n@@ -136,6 +136,11 @@\n keys = ['mb_trackid', 'mb_albumid']\n items = lib.items(decargs(args))\n \n+ # If there's nothing to do, re...
gh_patches_debug_1020
rasdani/github-patches
git_diff
facebookresearch__CompilerGym-548
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Improve examples documentation to make it clear that they are standalone ## 🚀 Feature Tangentially to #532, I think it would be good to add a "Usage" section to examples/README.md that makes it clear that...
diff --git a/examples/setup.py b/examples/setup.py --- a/examples/setup.py +++ b/examples/setup.py @@ -13,6 +13,8 @@ version = f.read().strip() with open("requirements.txt") as f: requirements = [ln.split("#")[0].rstrip() for ln in f.readlines()] +with open("../tests/requirements.txt") as f: + requirement...
{"golden_diff": "diff --git a/examples/setup.py b/examples/setup.py\n--- a/examples/setup.py\n+++ b/examples/setup.py\n@@ -13,6 +13,8 @@\n version = f.read().strip()\n with open(\"requirements.txt\") as f:\n requirements = [ln.split(\"#\")[0].rstrip() for ln in f.readlines()]\n+with open(\"../tests/requirements...
gh_patches_debug_1021
rasdani/github-patches
git_diff
kedro-org__kedro-2087
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Change autogeneration of node names to not contain commas ## Description Change how node names are generated to not contain commas. Currently we stringify a node's definition and set that as the node name if...
diff --git a/kedro/pipeline/node.py b/kedro/pipeline/node.py --- a/kedro/pipeline/node.py +++ b/kedro/pipeline/node.py @@ -159,7 +159,7 @@ def __str__(self): def _set_to_str(xset): - return f"[{','.join(xset)}]" + return f"[{';'.join(xset)}]" out_str = _set_to_str(self.o...
{"golden_diff": "diff --git a/kedro/pipeline/node.py b/kedro/pipeline/node.py\n--- a/kedro/pipeline/node.py\n+++ b/kedro/pipeline/node.py\n@@ -159,7 +159,7 @@\n \n def __str__(self):\n def _set_to_str(xset):\n- return f\"[{','.join(xset)}]\"\n+ return f\"[{';'.join(xset)}]\"\n \n ...
gh_patches_debug_1022
rasdani/github-patches
git_diff
encode__django-rest-framework-4973
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- A "pure" HEAD request on a ViewSet does'nt behave like a GET A HEAD request on a ViewSet let the action attribute empty. ```curl -I http://myhost/api/foo/``` It should fallback to simulate a GET request f...
diff --git a/rest_framework/viewsets.py b/rest_framework/viewsets.py --- a/rest_framework/viewsets.py +++ b/rest_framework/viewsets.py @@ -79,6 +79,9 @@ handler = getattr(self, action) setattr(self, method, handler) + if hasattr(self, 'get') and not hasattr(self, 'head'): ...
{"golden_diff": "diff --git a/rest_framework/viewsets.py b/rest_framework/viewsets.py\n--- a/rest_framework/viewsets.py\n+++ b/rest_framework/viewsets.py\n@@ -79,6 +79,9 @@\n handler = getattr(self, action)\n setattr(self, method, handler)\n \n+ if hasattr(self, 'get') and not...
gh_patches_debug_1023
rasdani/github-patches
git_diff
Cog-Creators__Red-DiscordBot-1324
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Error on [p]cog update ### Type: - [ ] Suggestion - [ X] Bug ### Brief description of the problem `[p]cog update` fails with ValueError ### Expected behavior Cogs to update normally ### Actual be...
diff --git a/redbot/cogs/downloader/repo_manager.py b/redbot/cogs/downloader/repo_manager.py --- a/redbot/cogs/downloader/repo_manager.py +++ b/redbot/cogs/downloader/repo_manager.py @@ -639,7 +639,7 @@ """ ret = {} for repo_name, _ in self._repos.items(): - repo, (old, new) = awai...
{"golden_diff": "diff --git a/redbot/cogs/downloader/repo_manager.py b/redbot/cogs/downloader/repo_manager.py\n--- a/redbot/cogs/downloader/repo_manager.py\n+++ b/redbot/cogs/downloader/repo_manager.py\n@@ -639,7 +639,7 @@\n \"\"\"\n ret = {}\n for repo_name, _ in self._repos.items():\n- ...
gh_patches_debug_1024
rasdani/github-patches
git_diff
celery__celery-1970
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Task.throws cannot be a list, misleading documentation The check at https://github.com/celery/celery/blob/b35569090c5cabfa784b00a68b55c7628fee813d/celery/worker/job.py#L456 throws this error when the `Task.th...
diff --git a/celery/app/task.py b/celery/app/task.py --- a/celery/app/task.py +++ b/celery/app/task.py @@ -313,7 +313,7 @@ #: :setting:`CELERY_ACKS_LATE` setting. acks_late = None - #: List/tuple of expected exceptions. + #: Tuple of expected exceptions. #: #: These are errors that are expec...
{"golden_diff": "diff --git a/celery/app/task.py b/celery/app/task.py\n--- a/celery/app/task.py\n+++ b/celery/app/task.py\n@@ -313,7 +313,7 @@\n #: :setting:`CELERY_ACKS_LATE` setting.\n acks_late = None\n \n- #: List/tuple of expected exceptions.\n+ #: Tuple of expected exceptions.\n #:\n #: Thes...
gh_patches_debug_1025
rasdani/github-patches
git_diff
Rapptz__discord.py-1057
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Cannot connect to voice channels Running `await voice_channel.connect()` raises `AttributeError: 'LP_EncoderStruct' object has no attribute 'value'` Relevant portions of the traceback ([and the line itsel...
diff --git a/discord/opus.py b/discord/opus.py --- a/discord/opus.py +++ b/discord/opus.py @@ -49,9 +49,10 @@ return result def _err_ne(result, func, args): - if result.value != 0: + ret = args[-1]._obj + if ret.value != 0: log.info('error has happened in {0.__name__}'.format(func)) - r...
{"golden_diff": "diff --git a/discord/opus.py b/discord/opus.py\n--- a/discord/opus.py\n+++ b/discord/opus.py\n@@ -49,9 +49,10 @@\n return result\n \n def _err_ne(result, func, args):\n- if result.value != 0:\n+ ret = args[-1]._obj\n+ if ret.value != 0:\n log.info('error has happened in {0.__name__...
gh_patches_debug_1026
rasdani/github-patches
git_diff
python-pillow__Pillow-7555
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [10.1.0 regression] Palette images save as blank PDFs Minimal example (you can use [this tiny PNG](https://github.com/python-pillow/Pillow/assets/1119169/d8d45152-7734-4fe3-a2d3-fb49839a0893) for example): ...
diff --git a/src/PIL/PdfImagePlugin.py b/src/PIL/PdfImagePlugin.py --- a/src/PIL/PdfImagePlugin.py +++ b/src/PIL/PdfImagePlugin.py @@ -96,7 +96,7 @@ dict_obj["ColorSpace"] = [ PdfParser.PdfName("Indexed"), PdfParser.PdfName("DeviceRGB"), - 255, + len(palette) // ...
{"golden_diff": "diff --git a/src/PIL/PdfImagePlugin.py b/src/PIL/PdfImagePlugin.py\n--- a/src/PIL/PdfImagePlugin.py\n+++ b/src/PIL/PdfImagePlugin.py\n@@ -96,7 +96,7 @@\n dict_obj[\"ColorSpace\"] = [\n PdfParser.PdfName(\"Indexed\"),\n PdfParser.PdfName(\"DeviceRGB\"),\n- 255,...
gh_patches_debug_1027
rasdani/github-patches
git_diff
Pyomo__pyomo-895
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- NEOS error Our current build is failing because of the error below, I speculate due to usually-untested code being triggered by a transient network failure. ``` =============================================...
diff --git a/pyomo/neos/plugins/kestrel_plugin.py b/pyomo/neos/plugins/kestrel_plugin.py --- a/pyomo/neos/plugins/kestrel_plugin.py +++ b/pyomo/neos/plugins/kestrel_plugin.py @@ -16,6 +16,7 @@ from six.moves.xmlrpc_client import ProtocolError from pyomo.opt import SolverFactory, SolverManagerFactory, OptSolver +fro...
{"golden_diff": "diff --git a/pyomo/neos/plugins/kestrel_plugin.py b/pyomo/neos/plugins/kestrel_plugin.py\n--- a/pyomo/neos/plugins/kestrel_plugin.py\n+++ b/pyomo/neos/plugins/kestrel_plugin.py\n@@ -16,6 +16,7 @@\n from six.moves.xmlrpc_client import ProtocolError\n \n from pyomo.opt import SolverFactory, SolverManager...
gh_patches_debug_1028
rasdani/github-patches
git_diff
googleapis__python-bigquery-348
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- fix(dbapi): avoid running % format when no query parameters are passed **Is your feature request related to a problem? Please describe.** It is unexpected to get format errors when a string contains `%`, ...
diff --git a/google/cloud/bigquery/dbapi/cursor.py b/google/cloud/bigquery/dbapi/cursor.py --- a/google/cloud/bigquery/dbapi/cursor.py +++ b/google/cloud/bigquery/dbapi/cursor.py @@ -441,7 +441,7 @@ if a parameter used in the operation is not found in the ``parameters`` argument. """ - ...
{"golden_diff": "diff --git a/google/cloud/bigquery/dbapi/cursor.py b/google/cloud/bigquery/dbapi/cursor.py\n--- a/google/cloud/bigquery/dbapi/cursor.py\n+++ b/google/cloud/bigquery/dbapi/cursor.py\n@@ -441,7 +441,7 @@\n if a parameter used in the operation is not found in the\n ``parameters`` a...
gh_patches_debug_1029
rasdani/github-patches
git_diff
qtile__qtile-4682
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Mirrored widgets on multi-display get wrong background transparency ### Issue description I'm trying to use the advised way of putting the same widget on multiple bars (displays). That means I define a widge...
diff --git a/libqtile/widget/base.py b/libqtile/widget/base.py --- a/libqtile/widget/base.py +++ b/libqtile/widget/base.py @@ -959,7 +959,7 @@ self._length = value def draw(self): - self.drawer.clear(self.reflects.background or self.bar.background) + self.drawer.clear_rect() self....
{"golden_diff": "diff --git a/libqtile/widget/base.py b/libqtile/widget/base.py\n--- a/libqtile/widget/base.py\n+++ b/libqtile/widget/base.py\n@@ -959,7 +959,7 @@\n self._length = value\n \n def draw(self):\n- self.drawer.clear(self.reflects.background or self.bar.background)\n+ self.drawer.cl...
gh_patches_debug_1030
rasdani/github-patches
git_diff
wagtail__wagtail-10871
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Display pages and snippets’ "First published at" as absolute value ### Is your proposal related to a problem? In side panels, we display pages and snippets’ "First published at" datetime as a relative date...
diff --git a/wagtail/admin/templatetags/wagtailadmin_tags.py b/wagtail/admin/templatetags/wagtailadmin_tags.py --- a/wagtail/admin/templatetags/wagtailadmin_tags.py +++ b/wagtail/admin/templatetags/wagtailadmin_tags.py @@ -1196,8 +1196,9 @@ @register.inclusion_tag("wagtailadmin/shared/human_readable_date.html") -d...
{"golden_diff": "diff --git a/wagtail/admin/templatetags/wagtailadmin_tags.py b/wagtail/admin/templatetags/wagtailadmin_tags.py\n--- a/wagtail/admin/templatetags/wagtailadmin_tags.py\n+++ b/wagtail/admin/templatetags/wagtailadmin_tags.py\n@@ -1196,8 +1196,9 @@\n \n \n @register.inclusion_tag(\"wagtailadmin/shared/human...
gh_patches_debug_1031
rasdani/github-patches
git_diff
getsentry__sentry-55707
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Unable to edit WHEN conditions from issue alert ### Environment SaaS (https://sentry.io/) ### Steps to Reproduce 1. Create an issue alert with a few WHEN conditions 2. Save it 3. Go to the Alert details ...
diff --git a/src/sentry/mediators/project_rules/updater.py b/src/sentry/mediators/project_rules/updater.py --- a/src/sentry/mediators/project_rules/updater.py +++ b/src/sentry/mediators/project_rules/updater.py @@ -60,8 +60,7 @@ self.rule.data["filter_match"] = self.filter_match def _update_conditio...
{"golden_diff": "diff --git a/src/sentry/mediators/project_rules/updater.py b/src/sentry/mediators/project_rules/updater.py\n--- a/src/sentry/mediators/project_rules/updater.py\n+++ b/src/sentry/mediators/project_rules/updater.py\n@@ -60,8 +60,7 @@\n self.rule.data[\"filter_match\"] = self.filter_match\n \n...
gh_patches_debug_1032
rasdani/github-patches
git_diff
xonsh__xonsh-138
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- In .xonshrc, import does not create a global name xonsh: git checkout f44013b31756ba5491f2a7e1dffb7ad64513b28e python: 3.4.1 OS: Fedora 21 With this as your .xonshrc: ``` python import subprocess def get_t...
diff --git a/xonsh/environ.py b/xonsh/environ.py --- a/xonsh/environ.py +++ b/xonsh/environ.py @@ -165,7 +165,7 @@ env = {} try: execer.filename = rcfile - execer.exec(rc, glbs={}, locs=env) + execer.exec(rc, glbs=env) except SyntaxError as err: msg = 'syntax error in xons...
{"golden_diff": "diff --git a/xonsh/environ.py b/xonsh/environ.py\n--- a/xonsh/environ.py\n+++ b/xonsh/environ.py\n@@ -165,7 +165,7 @@\n env = {}\n try:\n execer.filename = rcfile\n- execer.exec(rc, glbs={}, locs=env)\n+ execer.exec(rc, glbs=env)\n except SyntaxError as err:\n ...
gh_patches_debug_1033
rasdani/github-patches
git_diff
google__turbinia-1086
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- sphinx docs build broken Getting an error when trying to build the docs: ``` $ sphinx-build -b html -d build/doctrees docs dist/docs Running Sphinx v4.5.0 WARNING: html_static_path entry '_static' does no...
diff --git a/docs/conf.py b/docs/conf.py --- a/docs/conf.py +++ b/docs/conf.py @@ -34,8 +34,7 @@ # ones. extensions = [ 'sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.coverage', - 'sphinx.ext.viewcode', 'sphinx.ext.napoleon', 'sphinx_markdown_tables', - 'recommonmark' + 'sphinx.ext.viewcode', '...
{"golden_diff": "diff --git a/docs/conf.py b/docs/conf.py\n--- a/docs/conf.py\n+++ b/docs/conf.py\n@@ -34,8 +34,7 @@\n # ones.\n extensions = [\n 'sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.coverage',\n- 'sphinx.ext.viewcode', 'sphinx.ext.napoleon', 'sphinx_markdown_tables',\n- 'recommonmark'\n+ ...
gh_patches_debug_1034
rasdani/github-patches
git_diff
django-import-export__django-import-export-214
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Export order Is there a way to specify a partial export order ? For example, I'd like to specify that the first two columns should be "id" and "name", then I'd like to have all remaining fields in whatever or...
diff --git a/import_export/resources.py b/import_export/resources.py --- a/import_export/resources.py +++ b/import_export/resources.py @@ -371,7 +371,8 @@ return result def get_export_order(self): - return self._meta.export_order or self.fields.keys() + order = tuple (self._meta.export_ord...
{"golden_diff": "diff --git a/import_export/resources.py b/import_export/resources.py\n--- a/import_export/resources.py\n+++ b/import_export/resources.py\n@@ -371,7 +371,8 @@\n return result\n \n def get_export_order(self):\n- return self._meta.export_order or self.fields.keys()\n+ order = tup...
gh_patches_debug_1035
rasdani/github-patches
git_diff
koxudaxi__datamodel-code-generator-689
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- --enum-field-as-literal=one converts integer to string - still **Describe the bug** When using `--enum-field-as-literal=one`, literal integers get converted to strings, depending on the exact version of `dat...
diff --git a/datamodel_code_generator/types.py b/datamodel_code_generator/types.py --- a/datamodel_code_generator/types.py +++ b/datamodel_code_generator/types.py @@ -75,7 +75,7 @@ is_dict: bool = False is_list: bool = False is_custom_type: bool = False - literals: List[Union[int, str]] = [] + lite...
{"golden_diff": "diff --git a/datamodel_code_generator/types.py b/datamodel_code_generator/types.py\n--- a/datamodel_code_generator/types.py\n+++ b/datamodel_code_generator/types.py\n@@ -75,7 +75,7 @@\n is_dict: bool = False\n is_list: bool = False\n is_custom_type: bool = False\n- literals: List[Union[i...
gh_patches_debug_1036
rasdani/github-patches
git_diff
pypa__pipenv-2450
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Can not generate Pipfile.lock by installing packages with requirementx.txt on Python 2.7 Describe the issue briefly here. Run: $pipenv install -r requirements.txt Got error: Creating a virtualenv for this...
diff --git a/pipenv/project.py b/pipenv/project.py --- a/pipenv/project.py +++ b/pipenv/project.py @@ -363,7 +363,7 @@ def register_proper_name(self, name): """Registers a proper name to the database.""" with self.proper_names_db_path.open('a') as f: - f.write('{0}\n'.format(name)) + ...
{"golden_diff": "diff --git a/pipenv/project.py b/pipenv/project.py\n--- a/pipenv/project.py\n+++ b/pipenv/project.py\n@@ -363,7 +363,7 @@\n def register_proper_name(self, name):\n \"\"\"Registers a proper name to the database.\"\"\"\n with self.proper_names_db_path.open('a') as f:\n- f.w...
gh_patches_debug_1037
rasdani/github-patches
git_diff
airctic__icevision-500
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add tutorial with hard negative samples ## 📓 Documentation Update "how to use an image as background annotation" is a common question. We can provide a tutorial showing how to do that ### Racoon and dogs...
diff --git a/icevision/models/base_show_results.py b/icevision/models/base_show_results.py --- a/icevision/models/base_show_results.py +++ b/icevision/models/base_show_results.py @@ -18,7 +18,7 @@ denormalize_fn: Optional[callable] = denormalize_imagenet, show: bool = True, ) -> None: - samples = [dataset...
{"golden_diff": "diff --git a/icevision/models/base_show_results.py b/icevision/models/base_show_results.py\n--- a/icevision/models/base_show_results.py\n+++ b/icevision/models/base_show_results.py\n@@ -18,7 +18,7 @@\n denormalize_fn: Optional[callable] = denormalize_imagenet,\n show: bool = True,\n ) -> None:\...
gh_patches_debug_1038
rasdani/github-patches
git_diff
comic__grand-challenge.org-1162
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Reader study completed message is visible when study is not completed ![Screenshot_20200209_164820](https://user-images.githubusercontent.com/12661555/74105211-1931f400-4b5c-11ea-96d8-6b4663386d09.png) ---...
diff --git a/app/grandchallenge/reader_studies/templatetags/get_ground_truth.py b/app/grandchallenge/reader_studies/templatetags/get_ground_truth.py --- a/app/grandchallenge/reader_studies/templatetags/get_ground_truth.py +++ b/app/grandchallenge/reader_studies/templatetags/get_ground_truth.py @@ -5,6 +5,7 @@ @regis...
{"golden_diff": "diff --git a/app/grandchallenge/reader_studies/templatetags/get_ground_truth.py b/app/grandchallenge/reader_studies/templatetags/get_ground_truth.py\n--- a/app/grandchallenge/reader_studies/templatetags/get_ground_truth.py\n+++ b/app/grandchallenge/reader_studies/templatetags/get_ground_truth.py\n@@ -5...
gh_patches_debug_1039
rasdani/github-patches
git_diff
conan-io__conan-7509
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Removing credentials from 'url' for SCM doesn't play well with SSH git repository hosting - [x] I've read the [CONTRIBUTING guide](https://github.com/conan-io/conan/blob/develop/.github/CONTRIBUTING.md). - [...
diff --git a/conans/client/tools/scm.py b/conans/client/tools/scm.py --- a/conans/client/tools/scm.py +++ b/conans/client/tools/scm.py @@ -78,6 +78,8 @@ netloc = parsed.hostname if parsed.port: netloc += ":{}".format(parsed.port) + if parsed.username and parsed.scheme == "ssh": + ...
{"golden_diff": "diff --git a/conans/client/tools/scm.py b/conans/client/tools/scm.py\n--- a/conans/client/tools/scm.py\n+++ b/conans/client/tools/scm.py\n@@ -78,6 +78,8 @@\n netloc = parsed.hostname\n if parsed.port:\n netloc += \":{}\".format(parsed.port)\n+ if parsed.username and p...
gh_patches_debug_1040
rasdani/github-patches
git_diff
coreruleset__coreruleset-3550
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- .changes-pending.md lacks space before asterisk Our CHANGES.md has a leading space before the bullet / asterisk. The .changes-pending.md does not. --- END ISSUE --- Below are some code segments, each from a...
diff --git a/.github/create-changelog-prs.py b/.github/create-changelog-prs.py --- a/.github/create-changelog-prs.py +++ b/.github/create-changelog-prs.py @@ -106,7 +106,7 @@ pr_number = pr["number"] pr_title = pr["title"] pr_author = get_pr_author_name(pr["author"]["login"]) - new_line = f"* {pr_title} ({pr_...
{"golden_diff": "diff --git a/.github/create-changelog-prs.py b/.github/create-changelog-prs.py\n--- a/.github/create-changelog-prs.py\n+++ b/.github/create-changelog-prs.py\n@@ -106,7 +106,7 @@\n \t\tpr_number = pr[\"number\"]\n \t\tpr_title = pr[\"title\"]\n \t\tpr_author = get_pr_author_name(pr[\"author\"][\"login\"...
gh_patches_debug_1041
rasdani/github-patches
git_diff
openshift__openshift-ansible-2630
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- maximum recursion depth exceeded -- related to callback/default.py Running the `ansible-playbook -b --become-user root -i ansible-ose-inventory /usr/share/ansible/openshift-ansible/playbooks/byo/config.yml` ...
diff --git a/callback_plugins/default.py b/callback_plugins/default.py --- a/callback_plugins/default.py +++ b/callback_plugins/default.py @@ -45,6 +45,9 @@ CALLBACK_TYPE = 'stdout' CALLBACK_NAME = 'default' + def __init__(self, *args, **kwargs): + BASECLASS.__init__(self, *args, **kwargs) + ...
{"golden_diff": "diff --git a/callback_plugins/default.py b/callback_plugins/default.py\n--- a/callback_plugins/default.py\n+++ b/callback_plugins/default.py\n@@ -45,6 +45,9 @@\n CALLBACK_TYPE = 'stdout'\n CALLBACK_NAME = 'default'\n \n+ def __init__(self, *args, **kwargs):\n+ BASECLASS.__init__(self,...
gh_patches_debug_1042
rasdani/github-patches
git_diff
RedHatInsights__insights-core-3045
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- The virsh_list_all parser is raising ValueError exceptions in production The VirshListAll parser is throwing a large number of the exception ValueError("Line containing 'Id,Name,State' was not found in table"...
diff --git a/insights/parsers/virsh_list_all.py b/insights/parsers/virsh_list_all.py --- a/insights/parsers/virsh_list_all.py +++ b/insights/parsers/virsh_list_all.py @@ -76,6 +76,10 @@ self.fields = [] self.cols = [] self.keywords = [] + # Check and remove any error message, or empty ...
{"golden_diff": "diff --git a/insights/parsers/virsh_list_all.py b/insights/parsers/virsh_list_all.py\n--- a/insights/parsers/virsh_list_all.py\n+++ b/insights/parsers/virsh_list_all.py\n@@ -76,6 +76,10 @@\n self.fields = []\n self.cols = []\n self.keywords = []\n+ # Check and remove any ...
gh_patches_debug_1043
rasdani/github-patches
git_diff
cornellius-gp__gpytorch-1685
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [Bug] # 🐛 Bug: Possible error with multitask learning with additive kernel structure <!-- A clear and concise description of what the bug is. --> When I define in the class MultitaskGPModel the multitask...
diff --git a/gpytorch/kernels/kernel.py b/gpytorch/kernels/kernel.py --- a/gpytorch/kernels/kernel.py +++ b/gpytorch/kernels/kernel.py @@ -331,8 +331,8 @@ return res def named_sub_kernels(self): - for name, module in self._modules.items(): - if isinstance(module, Kernel): + for ...
{"golden_diff": "diff --git a/gpytorch/kernels/kernel.py b/gpytorch/kernels/kernel.py\n--- a/gpytorch/kernels/kernel.py\n+++ b/gpytorch/kernels/kernel.py\n@@ -331,8 +331,8 @@\n return res\n \n def named_sub_kernels(self):\n- for name, module in self._modules.items():\n- if isinstance(modul...
gh_patches_debug_1044
rasdani/github-patches
git_diff
django-oscar__django-oscar-3495
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- The postal Code validation for Israel should also take 5 digit numbers In oscar.apps.address.abstract_models.AbstractAddress: `'IL': r'^[0-9]{7}$',` Should be: `'IL': r'^([0-9]{5}|[0-9]{7})$',` For ...
diff --git a/src/oscar/apps/address/abstract_models.py b/src/oscar/apps/address/abstract_models.py --- a/src/oscar/apps/address/abstract_models.py +++ b/src/oscar/apps/address/abstract_models.py @@ -103,7 +103,7 @@ 'HT': r'^[0-9]{4}$', 'HU': r'^[0-9]{4}$', 'ID': r'^[0-9]{5}$', - 'IL': ...
{"golden_diff": "diff --git a/src/oscar/apps/address/abstract_models.py b/src/oscar/apps/address/abstract_models.py\n--- a/src/oscar/apps/address/abstract_models.py\n+++ b/src/oscar/apps/address/abstract_models.py\n@@ -103,7 +103,7 @@\n 'HT': r'^[0-9]{4}$',\n 'HU': r'^[0-9]{4}$',\n 'ID': r'^[0-9...
gh_patches_debug_1045
rasdani/github-patches
git_diff
graphql-python__graphene-django-1155
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Why `DjangoFormMutation.perform_mutate()` calls `form.save()` Django's plain (non-model) `Form`s don't have the `save()` method. Why does `DjangoFormMutation.perform_mutate()` still call that here: https:...
diff --git a/graphene_django/forms/mutation.py b/graphene_django/forms/mutation.py --- a/graphene_django/forms/mutation.py +++ b/graphene_django/forms/mutation.py @@ -101,7 +101,10 @@ @classmethod def perform_mutate(cls, form, info): - form.save() + if hasattr(form, "save"): + # `sa...
{"golden_diff": "diff --git a/graphene_django/forms/mutation.py b/graphene_django/forms/mutation.py\n--- a/graphene_django/forms/mutation.py\n+++ b/graphene_django/forms/mutation.py\n@@ -101,7 +101,10 @@\n \n @classmethod\n def perform_mutate(cls, form, info):\n- form.save()\n+ if hasattr(form, \"...
gh_patches_debug_1046
rasdani/github-patches
git_diff
DDMAL__CantusDB-845
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- "my sources"" page side panel http://206.12.88.113/my-sources/ has a "created by" side panel. This is 1. not paginated 3. includes all the sources and not just the created ones (so it's both extra- long and...
diff --git a/django/cantusdb_project/main_app/views/user.py b/django/cantusdb_project/main_app/views/user.py --- a/django/cantusdb_project/main_app/views/user.py +++ b/django/cantusdb_project/main_app/views/user.py @@ -104,7 +104,7 @@ .order_by("-date_created") .distinct() ) - ...
{"golden_diff": "diff --git a/django/cantusdb_project/main_app/views/user.py b/django/cantusdb_project/main_app/views/user.py\n--- a/django/cantusdb_project/main_app/views/user.py\n+++ b/django/cantusdb_project/main_app/views/user.py\n@@ -104,7 +104,7 @@\n .order_by(\"-date_created\")\n .distinc...
gh_patches_debug_1047
rasdani/github-patches
git_diff
CTFd__CTFd-1101
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- CTFd crash right after install ## Git + python 3.7.2 (3b1b82b9a0fbcb8731d7a3a3bbac99499c466c99) [![asciicast](https://asciinema.org/a/iHDMVNRWSYJDTZUgIy4wIBsOK.svg)](https://asciinema.org/a/iHDMVNRWSYJDTZU...
diff --git a/wsgi.py b/wsgi.py --- a/wsgi.py +++ b/wsgi.py @@ -1,8 +1,14 @@ -from gevent import monkey -monkey.patch_all() +import os + +# Detect if we're running via `flask run` and don't monkey patch +if not os.getenv("FLASK_RUN_FROM_CLI"): + from gevent import monkey + + monkey.patch_all() + from CTFd import ...
{"golden_diff": "diff --git a/wsgi.py b/wsgi.py\n--- a/wsgi.py\n+++ b/wsgi.py\n@@ -1,8 +1,14 @@\n-from gevent import monkey\n-monkey.patch_all()\n+import os\n+\n+# Detect if we're running via `flask run` and don't monkey patch\n+if not os.getenv(\"FLASK_RUN_FROM_CLI\"):\n+ from gevent import monkey\n+\n+ monkey.p...
gh_patches_debug_1048
rasdani/github-patches
git_diff
keras-team__keras-2268
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Textual information for labels? I seem unable to use text for labels, whilst using to_categorical ``` Using Theano backend. Traceback (most recent call last): File "playground.py", line 88, in <module> ...
diff --git a/keras/utils/np_utils.py b/keras/utils/np_utils.py --- a/keras/utils/np_utils.py +++ b/keras/utils/np_utils.py @@ -9,7 +9,6 @@ '''Convert class vector (integers from 0 to nb_classes) to binary class matrix, for use with categorical_crossentropy. ''' - y = np.asarray(y, dtype='int32') ...
{"golden_diff": "diff --git a/keras/utils/np_utils.py b/keras/utils/np_utils.py\n--- a/keras/utils/np_utils.py\n+++ b/keras/utils/np_utils.py\n@@ -9,7 +9,6 @@\n '''Convert class vector (integers from 0 to nb_classes)\n to binary class matrix, for use with categorical_crossentropy.\n '''\n- y = np.asarray...
gh_patches_debug_1049
rasdani/github-patches
git_diff
geopandas__geopandas-1566
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- BUG: the clip function don't take dynamically the geometry column name Hi, today i noticed that the clip function didn't work for me but then i found which was the problem. Import geodataframes with geom...
diff --git a/geopandas/tools/clip.py b/geopandas/tools/clip.py --- a/geopandas/tools/clip.py +++ b/geopandas/tools/clip.py @@ -66,7 +66,7 @@ # Clip the data with the polygon if isinstance(gdf_sub, GeoDataFrame): clipped = gdf_sub.copy() - clipped["geometry"] = gdf_sub.intersection(poly) + ...
{"golden_diff": "diff --git a/geopandas/tools/clip.py b/geopandas/tools/clip.py\n--- a/geopandas/tools/clip.py\n+++ b/geopandas/tools/clip.py\n@@ -66,7 +66,7 @@\n # Clip the data with the polygon\n if isinstance(gdf_sub, GeoDataFrame):\n clipped = gdf_sub.copy()\n- clipped[\"geometry\"] = gdf_sub...
gh_patches_debug_1050
rasdani/github-patches
git_diff
google-parfait__tensorflow-federated-1334
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Keras model in federated_learning_for_image_classification.ipynb throws warning **Describe the bug** Keras Sequential Model in [federated_learning_for_image_classification.ipynb](https://github.com/tensorflo...
diff --git a/tensorflow_federated/python/examples/remote_execution/remote_executor_example.py b/tensorflow_federated/python/examples/remote_execution/remote_executor_example.py --- a/tensorflow_federated/python/examples/remote_execution/remote_executor_example.py +++ b/tensorflow_federated/python/examples/remote_execut...
{"golden_diff": "diff --git a/tensorflow_federated/python/examples/remote_execution/remote_executor_example.py b/tensorflow_federated/python/examples/remote_execution/remote_executor_example.py\n--- a/tensorflow_federated/python/examples/remote_execution/remote_executor_example.py\n+++ b/tensorflow_federated/python/exa...
gh_patches_debug_1051
rasdani/github-patches
git_diff
holoviz__hvplot-494
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Entrypoint broken The setup.py specifies `hvplot.__main__` as a console_script but that doesn't actually exist. --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of thes...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -217,9 +217,7 @@ extras_require=extras_require, tests_require=extras_require['tests'], entry_points={ - 'console_scripts': [ - 'hvplot = hvplot.__main__:main' - ], + 'console_scripts': [], 'pandas_p...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -217,9 +217,7 @@\n extras_require=extras_require,\n tests_require=extras_require['tests'],\n entry_points={\n- 'console_scripts': [\n- 'hvplot = hvplot.__main__:main'\n- ],\n+ 'console_scrip...
gh_patches_debug_1052
rasdani/github-patches
git_diff
learningequality__kolibri-11737
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Environment variables and configuration flags for Kolibri options are persisted to the `options.ini` file by `generate_empty_options_file` ## Observed behavior When using either environment variables or conf...
diff --git a/kolibri/utils/options.py b/kolibri/utils/options.py --- a/kolibri/utils/options.py +++ b/kolibri/utils/options.py @@ -992,6 +992,12 @@ conf = read_options_file(ini_filename=ini_filename) + for section, opts in option_spec.items(): + for optname, attrs in opts.items(): + for en...
{"golden_diff": "diff --git a/kolibri/utils/options.py b/kolibri/utils/options.py\n--- a/kolibri/utils/options.py\n+++ b/kolibri/utils/options.py\n@@ -992,6 +992,12 @@\n \n conf = read_options_file(ini_filename=ini_filename)\n \n+ for section, opts in option_spec.items():\n+ for optname, attrs in opts.ite...
gh_patches_debug_1053
rasdani/github-patches
git_diff
python-poetry__poetry-578
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Poetry run: ModuleOrPackageNotFound with implicit namespace packages (PEP420) <!-- Checked checkbox should look like this: [x] --> - [x] I am on the [latest](https://github.com/sdispater/poetry/releases/late...
diff --git a/poetry/console/commands/run.py b/poetry/console/commands/run.py --- a/poetry/console/commands/run.py +++ b/poetry/console/commands/run.py @@ -47,7 +47,7 @@ poetry = self.poetry package = poetry.package path = poetry.file.parent - module = Module(package.name, path.as_posix...
{"golden_diff": "diff --git a/poetry/console/commands/run.py b/poetry/console/commands/run.py\n--- a/poetry/console/commands/run.py\n+++ b/poetry/console/commands/run.py\n@@ -47,7 +47,7 @@\n poetry = self.poetry\n package = poetry.package\n path = poetry.file.parent\n- module = Module(pac...
gh_patches_debug_1054
rasdani/github-patches
git_diff
certbot__certbot-6643
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- certbot delete list must be sorted Subj. --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `certbot/storage.py...
diff --git a/certbot/storage.py b/certbot/storage.py --- a/certbot/storage.py +++ b/certbot/storage.py @@ -41,7 +41,9 @@ :rtype: `list` of `str` """ - return glob.glob(os.path.join(config.renewal_configs_dir, "*.conf")) + result = glob.glob(os.path.join(config.renewal_configs_dir, "*.conf")) + resu...
{"golden_diff": "diff --git a/certbot/storage.py b/certbot/storage.py\n--- a/certbot/storage.py\n+++ b/certbot/storage.py\n@@ -41,7 +41,9 @@\n :rtype: `list` of `str`\n \n \"\"\"\n- return glob.glob(os.path.join(config.renewal_configs_dir, \"*.conf\"))\n+ result = glob.glob(os.path.join(config.renewal_con...
gh_patches_debug_1055
rasdani/github-patches
git_diff
open-mmlab__mmocr-633
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- IndexError when running model_inference with empty list Thanks for your error report and we appreciate it a lot. **Checklist** 1. I have searched related issues but cannot get the expected help. 2. The...
diff --git a/mmocr/apis/inference.py b/mmocr/apis/inference.py --- a/mmocr/apis/inference.py +++ b/mmocr/apis/inference.py @@ -98,6 +98,8 @@ if isinstance(imgs, (list, tuple)): is_batch = True + if len(imgs) == 0: + raise Exception('empty imgs provided, please check and try again') ...
{"golden_diff": "diff --git a/mmocr/apis/inference.py b/mmocr/apis/inference.py\n--- a/mmocr/apis/inference.py\n+++ b/mmocr/apis/inference.py\n@@ -98,6 +98,8 @@\n \n if isinstance(imgs, (list, tuple)):\n is_batch = True\n+ if len(imgs) == 0:\n+ raise Exception('empty imgs provided, please ...
gh_patches_debug_1056
rasdani/github-patches
git_diff
Kinto__kinto-889
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Crash when header contains control characters ``` Python 2.7.12 (default, Jul 1 2016, 15:12:24) [GCC 5.4.0 20160609] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> impo...
diff --git a/kinto/core/initialization.py b/kinto/core/initialization.py --- a/kinto/core/initialization.py +++ b/kinto/core/initialization.py @@ -82,7 +82,7 @@ config.route_prefix = None config.add_route(name='redirect_to_version', - pattern='/{path:(?!v[0-9]+).*}') + ...
{"golden_diff": "diff --git a/kinto/core/initialization.py b/kinto/core/initialization.py\n--- a/kinto/core/initialization.py\n+++ b/kinto/core/initialization.py\n@@ -82,7 +82,7 @@\n config.route_prefix = None\n \n config.add_route(name='redirect_to_version',\n- pattern='/{path:(?!v[0-9]+).*...
gh_patches_debug_1057
rasdani/github-patches
git_diff
Kinto__kinto-2027
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Crash with "in <string>' requires string as left operand, not int" ``` ValidationError: 'minVersion' is a required property Failed validating 'required' in schema['properties']['versionRange']['items']['p...
diff --git a/kinto/core/errors.py b/kinto/core/errors.py --- a/kinto/core/errors.py +++ b/kinto/core/errors.py @@ -148,7 +148,7 @@ description = error["description"].decode("utf-8") if name is not None: - if name in description: + if str(name) in description: message = descrip...
{"golden_diff": "diff --git a/kinto/core/errors.py b/kinto/core/errors.py\n--- a/kinto/core/errors.py\n+++ b/kinto/core/errors.py\n@@ -148,7 +148,7 @@\n description = error[\"description\"].decode(\"utf-8\")\n \n if name is not None:\n- if name in description:\n+ if str(name) in description:\n...
gh_patches_debug_1058
rasdani/github-patches
git_diff
Mailu__Mailu-719
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Alternatives useless after podop After updating to master to get all the up-to-date fixes it also moves postfix to use podop and it seems to no longer support receiving external mail from alternative domains ...
diff --git a/core/admin/mailu/internal/views/postfix.py b/core/admin/mailu/internal/views/postfix.py --- a/core/admin/mailu/internal/views/postfix.py +++ b/core/admin/mailu/internal/views/postfix.py @@ -6,7 +6,9 @@ @internal.route("/postfix/domain/<domain_name>") def postfix_mailbox_domain(domain_name): - domain...
{"golden_diff": "diff --git a/core/admin/mailu/internal/views/postfix.py b/core/admin/mailu/internal/views/postfix.py\n--- a/core/admin/mailu/internal/views/postfix.py\n+++ b/core/admin/mailu/internal/views/postfix.py\n@@ -6,7 +6,9 @@\n \n @internal.route(\"/postfix/domain/<domain_name>\")\n def postfix_mailbox_domain(...
gh_patches_debug_1059
rasdani/github-patches
git_diff
privacyidea__privacyidea-2418
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Update requirements for upcoming version 3.5 Push requirements to newest versions according to https://github.com/privacyidea/privacyidea/wiki/Development-workflow#requirements --- END ISSUE --- Below are...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -50,6 +50,7 @@ "oauth2client>=2.0.1", "passlib[bcrypt]>=1.7.0", "Pillow>=6.2.1", + "pydash>=4.7.4", "PyJWT>=1.3.0", "PyMySQL>=0.6....
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -50,6 +50,7 @@\n \"oauth2client>=2.0.1\",\n \"passlib[bcrypt]>=1.7.0\",\n \"Pillow>=6.2.1\",\n+ \"pydash>=4.7.4\",\n \"PyJWT>=1.3.0\",\...
gh_patches_debug_1060
rasdani/github-patches
git_diff
numba__numba-8723
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- `compile_ptx()` allows compilation of kernel with non-`void` return type For example: ```python from numba import cuda, int32 def f(x, y): return x[0] + y[0] ptx, resty = cuda.compile_ptx(f, (i...
diff --git a/numba/cuda/compiler.py b/numba/cuda/compiler.py --- a/numba/cuda/compiler.py +++ b/numba/cuda/compiler.py @@ -270,6 +270,10 @@ fastmath=fastmath, nvvm_options=nvvm_options) resty = cres.signature.return_type + + if resty and not device and resty != ...
{"golden_diff": "diff --git a/numba/cuda/compiler.py b/numba/cuda/compiler.py\n--- a/numba/cuda/compiler.py\n+++ b/numba/cuda/compiler.py\n@@ -270,6 +270,10 @@\n fastmath=fastmath,\n nvvm_options=nvvm_options)\n resty = cres.signature.return_type\n+\n+ if resty and...
gh_patches_debug_1061
rasdani/github-patches
git_diff
WeblateOrg__weblate-10794
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Syntax highlighting of search input ### Describe the issue 1. Go to a screenshot 2. Enter "not found" as the search term 3. A lot of strings appear as search results, most of them not containing anything r...
diff --git a/weblate/utils/forms.py b/weblate/utils/forms.py --- a/weblate/utils/forms.py +++ b/weblate/utils/forms.py @@ -25,6 +25,8 @@ kwargs["label"] = gettext_lazy("Query") if "required" not in kwargs: kwargs["required"] = False + if "widget" not in kwargs: + kwa...
{"golden_diff": "diff --git a/weblate/utils/forms.py b/weblate/utils/forms.py\n--- a/weblate/utils/forms.py\n+++ b/weblate/utils/forms.py\n@@ -25,6 +25,8 @@\n kwargs[\"label\"] = gettext_lazy(\"Query\")\n if \"required\" not in kwargs:\n kwargs[\"required\"] = False\n+ if \"widget...
gh_patches_debug_1062
rasdani/github-patches
git_diff
python-telegram-bot__python-telegram-bot-1228
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Can't change filename when send document after upgrading to v11.1.0 ### Steps to reproduce 1. Generate a pickle file "test" (I didn't test other common files yet) 2. Send this file to user `bot.send_do...
diff --git a/telegram/files/inputfile.py b/telegram/files/inputfile.py --- a/telegram/files/inputfile.py +++ b/telegram/files/inputfile.py @@ -70,7 +70,7 @@ self.filename)[0] or DEFAULT_MIME_TYPE else: self.mimetype = DEFAULT_MIME_TYPE - if not self.filename or ...
{"golden_diff": "diff --git a/telegram/files/inputfile.py b/telegram/files/inputfile.py\n--- a/telegram/files/inputfile.py\n+++ b/telegram/files/inputfile.py\n@@ -70,7 +70,7 @@\n self.filename)[0] or DEFAULT_MIME_TYPE\n else:\n self.mimetype = DEFAULT_MIME_TYPE\n- ...
gh_patches_debug_1063
rasdani/github-patches
git_diff
pypa__setuptools-4065
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [Docs] Preview pop-up on a link covers the link itself ### Summary I've come across an issue with that breaks the online documentation completely for me. Whenever I move my mouse pointer over a link to a dif...
diff --git a/docs/conf.py b/docs/conf.py --- a/docs/conf.py +++ b/docs/conf.py @@ -114,19 +114,6 @@ } ) -# Support tooltips on references -extensions += ['hoverxref.extension'] -hoverxref_auto_ref = True -hoverxref_intersphinx = [ - 'python', - 'pip', - 'build', - 'PyPUG', - 'packaging', - 'tw...
{"golden_diff": "diff --git a/docs/conf.py b/docs/conf.py\n--- a/docs/conf.py\n+++ b/docs/conf.py\n@@ -114,19 +114,6 @@\n }\n )\n \n-# Support tooltips on references\n-extensions += ['hoverxref.extension']\n-hoverxref_auto_ref = True\n-hoverxref_intersphinx = [\n- 'python',\n- 'pip',\n- 'build',\n- 'PyP...
gh_patches_debug_1064
rasdani/github-patches
git_diff
streamlit__streamlit-2711
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Color picker was not fully removed out of beta Feedback after product review of #2625 - `**st.beta_color_picker` still exists in the wheel file,** and when I use it I get a message saying it will be remov...
diff --git a/lib/streamlit/__init__.py b/lib/streamlit/__init__.py --- a/lib/streamlit/__init__.py +++ b/lib/streamlit/__init__.py @@ -197,8 +197,6 @@ return wrapped -beta_set_page_config = _beta_warning(set_page_config, "2021-01-06") -beta_color_picker = _beta_warning(_main.color_picker, "January 28, 2021") ...
{"golden_diff": "diff --git a/lib/streamlit/__init__.py b/lib/streamlit/__init__.py\n--- a/lib/streamlit/__init__.py\n+++ b/lib/streamlit/__init__.py\n@@ -197,8 +197,6 @@\n return wrapped\n \n \n-beta_set_page_config = _beta_warning(set_page_config, \"2021-01-06\")\n-beta_color_picker = _beta_warning(_main.color_pi...
gh_patches_debug_1065
rasdani/github-patches
git_diff
aio-libs__aiohttp-1532
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- reading nested multipart messages does not work correctly ## Long story short Multipart reader breaks after reading a sub multipart end boundary and starting the next part ## Expected behaviour Neste...
diff --git a/aiohttp/multipart.py b/aiohttp/multipart.py --- a/aiohttp/multipart.py +++ b/aiohttp/multipart.py @@ -639,6 +639,7 @@ pass elif chunk == self._boundary + b'--': self._at_eof = True + yield from self._readline() else: raise ValueError('Inva...
{"golden_diff": "diff --git a/aiohttp/multipart.py b/aiohttp/multipart.py\n--- a/aiohttp/multipart.py\n+++ b/aiohttp/multipart.py\n@@ -639,6 +639,7 @@\n pass\n elif chunk == self._boundary + b'--':\n self._at_eof = True\n+ yield from self._readline()\n else:\n ...
gh_patches_debug_1066
rasdani/github-patches
git_diff
pypa__pipenv-2168
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Pipenv Shell raises error if shell's path contains space This might be a windows only issue - Pipenv version 11.10.1 I am using cmder console ##### Steps to replicate 1. `set PIPENV_SHELL="c:\path_with s...
diff --git a/pipenv/patched/pew/pew.py b/pipenv/patched/pew/pew.py --- a/pipenv/patched/pew/pew.py +++ b/pipenv/patched/pew/pew.py @@ -184,7 +184,8 @@ def fork_cmder(env, cwd): shell_cmd = ['cmd'] - cmderrc_path = r'%CMDER_ROOT%\vendor\init.bat' + escaped_cmder_root = os.environ['CMDER_ROOT'].replace(' ',...
{"golden_diff": "diff --git a/pipenv/patched/pew/pew.py b/pipenv/patched/pew/pew.py\n--- a/pipenv/patched/pew/pew.py\n+++ b/pipenv/patched/pew/pew.py\n@@ -184,7 +184,8 @@\n \n def fork_cmder(env, cwd):\n shell_cmd = ['cmd']\n- cmderrc_path = r'%CMDER_ROOT%\\vendor\\init.bat'\n+ escaped_cmder_root = os.environ...
gh_patches_debug_1067
rasdani/github-patches
git_diff
napari__napari-920
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- to_labels broken in nD_shapes.py > > Hi Nicolas, > > Thanks for building such a great visualization tool for python! > > I have been trying to use (napari version `0.2.10+7.g47af135`) the `.to_labels` fu...
diff --git a/napari/layers/shapes/shape_models/shape.py b/napari/layers/shapes/shape_models/shape.py --- a/napari/layers/shapes/shape_models/shape.py +++ b/napari/layers/shapes/shape_models/shape.py @@ -521,7 +521,7 @@ displayed_order[np.argsort(displayed_order)] = list( range(len(displaye...
{"golden_diff": "diff --git a/napari/layers/shapes/shape_models/shape.py b/napari/layers/shapes/shape_models/shape.py\n--- a/napari/layers/shapes/shape_models/shape.py\n+++ b/napari/layers/shapes/shape_models/shape.py\n@@ -521,7 +521,7 @@\n displayed_order[np.argsort(displayed_order)] = list(\n ...
gh_patches_debug_1068
rasdani/github-patches
git_diff
cleanlab__cleanlab-1000
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Class Imbalance issue checker should not run if labels are not provided in Datalab ``` from cleanlab import Datalab lab = Datalab(data=df_without_labels) lab.find_issues() ``` It should not run the C...
diff --git a/cleanlab/datalab/internal/issue_finder.py b/cleanlab/datalab/internal/issue_finder.py --- a/cleanlab/datalab/internal/issue_finder.py +++ b/cleanlab/datalab/internal/issue_finder.py @@ -472,4 +472,12 @@ ) issue_types_copy.pop("outlier") + drop_class_imbalance_chec...
{"golden_diff": "diff --git a/cleanlab/datalab/internal/issue_finder.py b/cleanlab/datalab/internal/issue_finder.py\n--- a/cleanlab/datalab/internal/issue_finder.py\n+++ b/cleanlab/datalab/internal/issue_finder.py\n@@ -472,4 +472,12 @@\n )\n issue_types_copy.pop(\"outlier\")\n \n+ ...
gh_patches_debug_1069
rasdani/github-patches
git_diff
UTNkar__moore-151
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Paragraph block alignment <!-- Do you want to ask a question? Are you looking for support? The system administrator can help you: admin@utn.se --> See image: ![image](https://user-images.githubuserconte...
diff --git a/website/blocks/models.py b/website/blocks/models.py --- a/website/blocks/models.py +++ b/website/blocks/models.py @@ -89,7 +89,7 @@ WAGTAIL_STATIC_BLOCKTYPES = [ ('heading', HeadingBlock()), - ('paragraph', blocks.RichTextBlock()), + ('paragraph', blocks.RichTextBlock(template='blocks/paragra...
{"golden_diff": "diff --git a/website/blocks/models.py b/website/blocks/models.py\n--- a/website/blocks/models.py\n+++ b/website/blocks/models.py\n@@ -89,7 +89,7 @@\n \n WAGTAIL_STATIC_BLOCKTYPES = [\n ('heading', HeadingBlock()),\n- ('paragraph', blocks.RichTextBlock()),\n+ ('paragraph', blocks.RichTextBlock...
gh_patches_debug_1070
rasdani/github-patches
git_diff
e-valuation__EvaP-290
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Update installation instructions https://evap.readthedocs.org/en/latest/installation.html Someone should follow these instructions and see if they are correct and complete. The short version at https://gith...
diff --git a/evap/settings.py b/evap/settings.py --- a/evap/settings.py +++ b/evap/settings.py @@ -251,7 +251,7 @@ } } -# Create a local_settings.py if you want to override settings per machine +# Create a localsettings.py if you want to override settings per machine # or user, e.g. for development or differen...
{"golden_diff": "diff --git a/evap/settings.py b/evap/settings.py\n--- a/evap/settings.py\n+++ b/evap/settings.py\n@@ -251,7 +251,7 @@\n }\n }\n \n-# Create a local_settings.py if you want to override settings per machine\n+# Create a localsettings.py if you want to override settings per machine\n # or user, e.g. f...
gh_patches_debug_1071
rasdani/github-patches
git_diff
facebookresearch__hydra-894
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [Bug]: Nevergrad sweeper does not work with integers if there are less than 6 choices Nevergrad sweeper complains if it has less than 6 values to sweep over in a range (e.g. `lower: 1` `upper:3`) and asks to ...
diff --git a/plugins/hydra_nevergrad_sweeper/hydra_plugins/hydra_nevergrad_sweeper/core.py b/plugins/hydra_nevergrad_sweeper/hydra_plugins/hydra_nevergrad_sweeper/core.py --- a/plugins/hydra_nevergrad_sweeper/hydra_plugins/hydra_nevergrad_sweeper/core.py +++ b/plugins/hydra_nevergrad_sweeper/hydra_plugins/hydra_nevergr...
{"golden_diff": "diff --git a/plugins/hydra_nevergrad_sweeper/hydra_plugins/hydra_nevergrad_sweeper/core.py b/plugins/hydra_nevergrad_sweeper/hydra_plugins/hydra_nevergrad_sweeper/core.py\n--- a/plugins/hydra_nevergrad_sweeper/hydra_plugins/hydra_nevergrad_sweeper/core.py\n+++ b/plugins/hydra_nevergrad_sweeper/hydra_pl...
gh_patches_debug_1072
rasdani/github-patches
git_diff
huggingface__diffusers-1279
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- num_images_per_prompt=num_samples FAILS after latest commit in SD pipelines ### Describe the bug This used to wwork: images = pipe( prompt=prompt, image=image, mask_image=mask_image, g...
diff --git a/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py b/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py --- a/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py +++ b/src/diffusers/pipelines/stable_diffusion/pipeline_stable_di...
{"golden_diff": "diff --git a/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py b/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py\n--- a/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py\n+++ b/src/diffusers/pipelines/stable_diffusion...
gh_patches_debug_1073
rasdani/github-patches
git_diff
scverse__scanpy-1948
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Sphinx 4.1.0 doesn't like ScanpyConfig Update: Docs don't build with sphinx 4.1.0 due to a error triggered by `scanpydoc`. Sphinx will be pinned until this is solved (which is when this issue should be clo...
diff --git a/docs/conf.py b/docs/conf.py --- a/docs/conf.py +++ b/docs/conf.py @@ -155,6 +155,9 @@ ('py:class', 'scanpy.plotting._utils._AxesSubplot'), ('py:class', 'scanpy._utils.Empty'), ('py:class', 'numpy.random.mtrand.RandomState'), + # Will work once scipy 1.8 is released + ('py:class', 'scip...
{"golden_diff": "diff --git a/docs/conf.py b/docs/conf.py\n--- a/docs/conf.py\n+++ b/docs/conf.py\n@@ -155,6 +155,9 @@\n ('py:class', 'scanpy.plotting._utils._AxesSubplot'),\n ('py:class', 'scanpy._utils.Empty'),\n ('py:class', 'numpy.random.mtrand.RandomState'),\n+ # Will work once scipy 1.8 is released...
gh_patches_debug_1074
rasdani/github-patches
git_diff
aio-libs__aiohttp-7371
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- typo in payload.py class AsyncIterablePayload error message ### Describe the bug https://github.com/aio-libs/aiohttp/blob/bf9d753edc928e7ecbc590c32603ebd3c1fc6282/aiohttp/payload.py#L419 has a typo in place ...
diff --git a/aiohttp/payload.py b/aiohttp/payload.py --- a/aiohttp/payload.py +++ b/aiohttp/payload.py @@ -423,7 +423,7 @@ if not isinstance(value, AsyncIterable): raise TypeError( "value argument must support " - "collections.abc.AsyncIterablebe interface, " + ...
{"golden_diff": "diff --git a/aiohttp/payload.py b/aiohttp/payload.py\n--- a/aiohttp/payload.py\n+++ b/aiohttp/payload.py\n@@ -423,7 +423,7 @@\n if not isinstance(value, AsyncIterable):\n raise TypeError(\n \"value argument must support \"\n- \"collections.abc.AsyncIte...
gh_patches_debug_1075
rasdani/github-patches
git_diff
liqd__a4-meinberlin-3879
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- users should not be able to embed video in their idea **URL:** https://meinberlin-stage.liqd.net/mapideas/create/module/brainstorming-mit-kartenfunktion-36/ **user:** registered user **expected behaviour:**...
diff --git a/meinberlin/config/settings/base.py b/meinberlin/config/settings/base.py --- a/meinberlin/config/settings/base.py +++ b/meinberlin/config/settings/base.py @@ -312,7 +312,6 @@ ['Bold', 'Italic', 'Underline'], ['NumberedList', 'BulletedList'], ['Link', 'Unlink'], - ...
{"golden_diff": "diff --git a/meinberlin/config/settings/base.py b/meinberlin/config/settings/base.py\n--- a/meinberlin/config/settings/base.py\n+++ b/meinberlin/config/settings/base.py\n@@ -312,7 +312,6 @@\n ['Bold', 'Italic', 'Underline'],\n ['NumberedList', 'BulletedList'],\n ['Li...
gh_patches_debug_1076
rasdani/github-patches
git_diff
joke2k__faker-1432
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- gmail.co.uk isn't a valid free email domain in the UK * Faker version: 6.6.2 * OS: macOS 11.2.3 When generating a free email address, I got a result with the domain `gmail.co.uk`. From the source code, th...
diff --git a/faker/providers/internet/en_GB/__init__.py b/faker/providers/internet/en_GB/__init__.py --- a/faker/providers/internet/en_GB/__init__.py +++ b/faker/providers/internet/en_GB/__init__.py @@ -9,9 +9,9 @@ 'gmail.com', 'yahoo.com', 'hotmail.com', - 'gmail.co.uk', 'yah...
{"golden_diff": "diff --git a/faker/providers/internet/en_GB/__init__.py b/faker/providers/internet/en_GB/__init__.py\n--- a/faker/providers/internet/en_GB/__init__.py\n+++ b/faker/providers/internet/en_GB/__init__.py\n@@ -9,9 +9,9 @@\n 'gmail.com',\n 'yahoo.com',\n 'hotmail.com',\n- 'gma...
gh_patches_debug_1077
rasdani/github-patches
git_diff
deepchecks__deepchecks-440
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [BUG] unnecessary warnings in integrity suite Scenario: When I simply run the example from the readme. ![image](https://user-images.githubusercontent.com/20860465/147885476-3751f540-a0c8-4216-9c68-7cf0f08...
diff --git a/deepchecks/utils/features.py b/deepchecks/utils/features.py --- a/deepchecks/utils/features.py +++ b/deepchecks/utils/features.py @@ -79,6 +79,8 @@ or None if the input is incorrect """ try: + if model is None: + return None # calculate feature importance i...
{"golden_diff": "diff --git a/deepchecks/utils/features.py b/deepchecks/utils/features.py\n--- a/deepchecks/utils/features.py\n+++ b/deepchecks/utils/features.py\n@@ -79,6 +79,8 @@\n or None if the input is incorrect\n \"\"\"\n try:\n+ if model is None:\n+ return None\n # c...
gh_patches_debug_1078
rasdani/github-patches
git_diff
magenta__magenta-841
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- execfile() was removed from Python 3 https://github.com/tensorflow/magenta/blob/master/magenta/tools/pip/setup.py#L23 --- END ISSUE --- Below are some code segments, each from a relevant file. One or more o...
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 @@ -20,7 +20,8 @@ # executing __init__.py, which will end up requiring a bunch of dependencies to # execute (e.g., tensorflow, pretty_midi, etc.). # Makes the __version__ variable av...
{"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@@ -20,7 +20,8 @@\n # executing __init__.py, which will end up requiring a bunch of dependencies to\n # execute (e.g., tensorflow, pretty_midi, etc.).\n # Makes the ...
gh_patches_debug_1079
rasdani/github-patches
git_diff
celery__kombu-878
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- ValueError: Socket not connected Hello, the following error happens sometimes when publishing : ``` File "/foo/bar/lib/python2.7/site-packages/kombu/messaging.py", line 181, in publish exchange_na...
diff --git a/kombu/transport/librabbitmq.py b/kombu/transport/librabbitmq.py --- a/kombu/transport/librabbitmq.py +++ b/kombu/transport/librabbitmq.py @@ -146,7 +146,7 @@ channel.connection = None try: os.close(connection.fileno()) - except OSError: + ...
{"golden_diff": "diff --git a/kombu/transport/librabbitmq.py b/kombu/transport/librabbitmq.py\n--- a/kombu/transport/librabbitmq.py\n+++ b/kombu/transport/librabbitmq.py\n@@ -146,7 +146,7 @@\n channel.connection = None\n try:\n os.close(connection.fileno())\n- exce...
gh_patches_debug_1080
rasdani/github-patches
git_diff
DDMAL__CantusDB-900
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- we need to re-add a restart policy to docker-compose.yml A recent change to docker-compose.yml removed the `restart: always` policy we added to our containers a couple of weeks ago. We should re-instate this....
diff --git a/django/cantusdb_project/main_app/widgets.py b/django/cantusdb_project/main_app/widgets.py --- a/django/cantusdb_project/main_app/widgets.py +++ b/django/cantusdb_project/main_app/widgets.py @@ -1,6 +1,7 @@ from django.forms.widgets import TextInput, Select, Textarea, CheckboxInput from django.utils.safes...
{"golden_diff": "diff --git a/django/cantusdb_project/main_app/widgets.py b/django/cantusdb_project/main_app/widgets.py\n--- a/django/cantusdb_project/main_app/widgets.py\n+++ b/django/cantusdb_project/main_app/widgets.py\n@@ -1,6 +1,7 @@\n from django.forms.widgets import TextInput, Select, Textarea, CheckboxInput\n f...
gh_patches_debug_1081
rasdani/github-patches
git_diff
pex-tool__pex-2286
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- `venv create` no longer includes `--sources-directory` contents when all files are nested It seems like there was a regression from 2.1.148 -> 2.1.149 with the behaviour of `venv create` with a `--pex-reposit...
diff --git a/pex/util.py b/pex/util.py --- a/pex/util.py +++ b/pex/util.py @@ -87,7 +87,7 @@ hashing.dir_hash( directory=directory, digest=digest, - dir_filter=is_pyc_dir, + dir_filter=lambda d: not is_pyc_dir(d), file_filter=lambda file_path: not is...
{"golden_diff": "diff --git a/pex/util.py b/pex/util.py\n--- a/pex/util.py\n+++ b/pex/util.py\n@@ -87,7 +87,7 @@\n hashing.dir_hash(\n directory=directory,\n digest=digest,\n- dir_filter=is_pyc_dir,\n+ dir_filter=lambda d: not is_pyc_dir(d),\n file_filte...
gh_patches_debug_1082
rasdani/github-patches
git_diff
pymodbus-dev__pymodbus-945
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- AsyncioModbusSerialClient TypeError Coroutine ### Versions * Python: 3.9 * OS: Ubuntu 20.04 * Pymodbus: `3.0.0dev4` * Modbus Hardware (if used): ### Pymodbus Specific * Server: None * Client: rtu ...
diff --git a/pymodbus/client/asynchronous/factory/serial.py b/pymodbus/client/asynchronous/factory/serial.py --- a/pymodbus/client/asynchronous/factory/serial.py +++ b/pymodbus/client/asynchronous/factory/serial.py @@ -89,7 +89,7 @@ if not loop.is_running(): loop.run_until_complete(coro()) else: # l...
{"golden_diff": "diff --git a/pymodbus/client/asynchronous/factory/serial.py b/pymodbus/client/asynchronous/factory/serial.py\n--- a/pymodbus/client/asynchronous/factory/serial.py\n+++ b/pymodbus/client/asynchronous/factory/serial.py\n@@ -89,7 +89,7 @@\n if not loop.is_running():\n loop.run_until_complete(c...
gh_patches_debug_1083
rasdani/github-patches
git_diff
scikit-hep__awkward-895
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Typo in `identifier.py` https://github.com/scikit-hep/awkward-1.0/blob/a0ec3bcacacc81a47fe61a1d99b0bc512a8bb3cf/src/awkward/_v2/identifier.py#L30 --- END ISSUE --- Below are some code segments, each from a ...
diff --git a/src/awkward/_v2/identifier.py b/src/awkward/_v2/identifier.py --- a/src/awkward/_v2/identifier.py +++ b/src/awkward/_v2/identifier.py @@ -27,7 +27,7 @@ self._data = self._nplike.asarray(data, order="C") if len(self._data.shape) != 2: - raise TypeError("Identifer data must be ...
{"golden_diff": "diff --git a/src/awkward/_v2/identifier.py b/src/awkward/_v2/identifier.py\n--- a/src/awkward/_v2/identifier.py\n+++ b/src/awkward/_v2/identifier.py\n@@ -27,7 +27,7 @@\n \n self._data = self._nplike.asarray(data, order=\"C\")\n if len(self._data.shape) != 2:\n- raise TypeErro...
gh_patches_debug_1084
rasdani/github-patches
git_diff
qtile__qtile-2534
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [BUG] Configurations test notification crashes xfce4-notifyd # Issue description The notification for valid or invalid config file is displaying once and then crashing xfce4notifyd. I am not sure whose faul...
diff --git a/libqtile/utils.py b/libqtile/utils.py --- a/libqtile/utils.py +++ b/libqtile/utils.py @@ -222,7 +222,7 @@ "", # icon title, # summary message, # body - [""], # actions + [], # actions ...
{"golden_diff": "diff --git a/libqtile/utils.py b/libqtile/utils.py\n--- a/libqtile/utils.py\n+++ b/libqtile/utils.py\n@@ -222,7 +222,7 @@\n \"\", # icon\n title, # summary\n message, # body\n- [\"\"], # actions\n+ [],...
gh_patches_debug_1085
rasdani/github-patches
git_diff
openstates__openstates-scrapers-1881
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- OK failing since at least 2017-07-29 OK has been failing since 2017-07-29 Based on automated runs it appears that OK has not run successfully in 2 days (2017-07-29). ``` 02:10:09 INFO pupa: save person R...
diff --git a/openstates/ok/people.py b/openstates/ok/people.py --- a/openstates/ok/people.py +++ b/openstates/ok/people.py @@ -111,7 +111,7 @@ party = self._parties[party_text] - legislator_url = 'https://www.okhouse.gov/District.aspx?District=' + district + legislator_url = 'http...
{"golden_diff": "diff --git a/openstates/ok/people.py b/openstates/ok/people.py\n--- a/openstates/ok/people.py\n+++ b/openstates/ok/people.py\n@@ -111,7 +111,7 @@\n \n party = self._parties[party_text]\n \n- legislator_url = 'https://www.okhouse.gov/District.aspx?District=' + district\n+ ...
gh_patches_debug_1086
rasdani/github-patches
git_diff
hydroshare__hydroshare-2260
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Rename userInfo/ API endpoint to user/ Placeholder ticket --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `h...
diff --git a/hs_rest_api/urls.py b/hs_rest_api/urls.py --- a/hs_rest_api/urls.py +++ b/hs_rest_api/urls.py @@ -119,6 +119,9 @@ views.resource_rest_api.CheckTaskStatus.as_view(), name='get_task_status'), + url(r'^user/$', + views.user_rest_api.UserInfo.as_view(), name='get_logged_in_user_in...
{"golden_diff": "diff --git a/hs_rest_api/urls.py b/hs_rest_api/urls.py\n--- a/hs_rest_api/urls.py\n+++ b/hs_rest_api/urls.py\n@@ -119,6 +119,9 @@\n views.resource_rest_api.CheckTaskStatus.as_view(),\n name='get_task_status'),\n \n+ url(r'^user/$',\n+ views.user_rest_api.UserInfo.as_view(), na...
gh_patches_debug_1087
rasdani/github-patches
git_diff
jazzband__pip-tools-12
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Support Python versions lower than 2.7, too --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `setup.py` Cont...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ #include_package_data=True, zip_safe=False, platforms='any', - #install_requires=[], + install_requires=['argparse==1.2.1'], # needed for python 2.6 classifiers=[ # As from http://pypi.python.org/pypi?%3...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -18,7 +18,7 @@\n #include_package_data=True,\n zip_safe=False,\n platforms='any',\n- #install_requires=[],\n+ install_requires=['argparse==1.2.1'], # needed for python 2.6\n classifiers=[\n # As from htt...
gh_patches_debug_1088
rasdani/github-patches
git_diff
ansible-collections__community.vmware-414
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- vmware_guest_custom_attributes module crashes when trying to set a VirtualMachine attribute with the same name as an existing HostSystem attribute <!--- Verify first that your issue is not already reported on...
diff --git a/plugins/modules/vmware_guest_custom_attributes.py b/plugins/modules/vmware_guest_custom_attributes.py --- a/plugins/modules/vmware_guest_custom_attributes.py +++ b/plugins/modules/vmware_guest_custom_attributes.py @@ -199,7 +199,8 @@ def check_exists(self, field): for x in self.custom_field...
{"golden_diff": "diff --git a/plugins/modules/vmware_guest_custom_attributes.py b/plugins/modules/vmware_guest_custom_attributes.py\n--- a/plugins/modules/vmware_guest_custom_attributes.py\n+++ b/plugins/modules/vmware_guest_custom_attributes.py\n@@ -199,7 +199,8 @@\n \n def check_exists(self, field):\n for...
gh_patches_debug_1089
rasdani/github-patches
git_diff
pypa__pipenv-5778
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Requirements output different since 2023.7.1 causing pip install issues ### Issue description The output of `pipenv requirements --hash` has changed slightly in `2023.7.1` (#5757) and `pip` appears to be s...
diff --git a/pipenv/routines/requirements.py b/pipenv/routines/requirements.py --- a/pipenv/routines/requirements.py +++ b/pipenv/routines/requirements.py @@ -32,7 +32,7 @@ if include_markers and "markers" in package_info else "" ) - pip_package = f"{package_nam...
{"golden_diff": "diff --git a/pipenv/routines/requirements.py b/pipenv/routines/requirements.py\n--- a/pipenv/routines/requirements.py\n+++ b/pipenv/routines/requirements.py\n@@ -32,7 +32,7 @@\n if include_markers and \"markers\" in package_info\n else \"\"\n )\n- ...
gh_patches_debug_1090
rasdani/github-patches
git_diff
streamlink__streamlink-5911
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- plugins.showroom: streamlink unable to download any live streams from showroom.com ### Checklist - [X] This is a [plugin issue](https://streamlink.github.io/plugins.html) and not [a different kind of issue...
diff --git a/src/streamlink/plugins/showroom.py b/src/streamlink/plugins/showroom.py --- a/src/streamlink/plugins/showroom.py +++ b/src/streamlink/plugins/showroom.py @@ -84,7 +84,7 @@ ) res = self.session.http.get(url, acceptable_status=(200, 403, 404)) - if res.headers["Content-Type"] != "a...
{"golden_diff": "diff --git a/src/streamlink/plugins/showroom.py b/src/streamlink/plugins/showroom.py\n--- a/src/streamlink/plugins/showroom.py\n+++ b/src/streamlink/plugins/showroom.py\n@@ -84,7 +84,7 @@\n )\n \n res = self.session.http.get(url, acceptable_status=(200, 403, 404))\n- if res.heade...
gh_patches_debug_1091
rasdani/github-patches
git_diff
optuna__optuna-50
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- `pfnopt.minimize` fails under `strorage=None` (default) ```python import pfnopt def obj(client): x = client.sample_uniform('x', 0.1, 0.2) return x def main(): pfnopt.minimize(obj, n_...
diff --git a/pfnopt/study.py b/pfnopt/study.py --- a/pfnopt/study.py +++ b/pfnopt/study.py @@ -140,7 +140,7 @@ study=None, # type: Study ): # type: (...) -> Study - + storage = storage or storages.InMemoryStorage() study = study or create_new_study(storage=storage, sampler=sampler, pruner=pruner...
{"golden_diff": "diff --git a/pfnopt/study.py b/pfnopt/study.py\n--- a/pfnopt/study.py\n+++ b/pfnopt/study.py\n@@ -140,7 +140,7 @@\n study=None, # type: Study\n ):\n # type: (...) -> Study\n-\n+ storage = storage or storages.InMemoryStorage()\n study = study or create_new_study(storage=storage, samp...
gh_patches_debug_1092
rasdani/github-patches
git_diff
mkdocs__mkdocs-130
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Update requirements While working with Markdown extensions (c.f. #74), I noticed that mkdocs' setup.py has its dependencies [pinned to specific patch versions](https://github.com/tomchristie/mkdocs/blob/maste...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -16,11 +16,11 @@ author_email = 'tom@tomchristie.com' license = 'BSD' install_requires = [ - 'Jinja2==2.7.1', - 'Markdown==2.3.1', - 'PyYAML==3.10', - 'watchdog==0.7.0', - 'ghp-import==0.4.1' + 'Jinja2>=2.7.1', + 'Markdown>=2.3.1,...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -16,11 +16,11 @@\n author_email = 'tom@tomchristie.com'\n license = 'BSD'\n install_requires = [\n- 'Jinja2==2.7.1',\n- 'Markdown==2.3.1',\n- 'PyYAML==3.10',\n- 'watchdog==0.7.0',\n- 'ghp-import==0.4.1'\n+ 'Jinja2>=2...
gh_patches_debug_1093
rasdani/github-patches
git_diff
ray-project__ray-9141
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [tune][rllib] Windows: FileExistsError when running rllib tune job <!--Please include [tune], [rllib], [autoscaler] etc. in the issue title if relevant--> ### What is the problem? My script (available bel...
diff --git a/python/ray/tune/trial_runner.py b/python/ray/tune/trial_runner.py --- a/python/ray/tune/trial_runner.py +++ b/python/ray/tune/trial_runner.py @@ -276,7 +276,7 @@ with open(tmp_file_name, "w") as f: json.dump(runner_state, f, indent=2, cls=_TuneFunctionEncoder) - os.rename(tmp...
{"golden_diff": "diff --git a/python/ray/tune/trial_runner.py b/python/ray/tune/trial_runner.py\n--- a/python/ray/tune/trial_runner.py\n+++ b/python/ray/tune/trial_runner.py\n@@ -276,7 +276,7 @@\n with open(tmp_file_name, \"w\") as f:\n json.dump(runner_state, f, indent=2, cls=_TuneFunctionEncoder)\...
gh_patches_debug_1094
rasdani/github-patches
git_diff
interlegis__sapl-1749
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Formatar mudança de linha nos campos text do crud As mudanças de linha `\n` dos campos TextField, ao que parece, estão sendo exibidas nas telas de leitura do crud. Por exemplo no campo `observacao` de `Doc...
diff --git a/sapl/crispy_layout_mixin.py b/sapl/crispy_layout_mixin.py --- a/sapl/crispy_layout_mixin.py +++ b/sapl/crispy_layout_mixin.py @@ -132,6 +132,8 @@ value._meta.app_config.name, obj.content_type.model), args=(value.id,)), value) + elif 'TextField' in str_t...
{"golden_diff": "diff --git a/sapl/crispy_layout_mixin.py b/sapl/crispy_layout_mixin.py\n--- a/sapl/crispy_layout_mixin.py\n+++ b/sapl/crispy_layout_mixin.py\n@@ -132,6 +132,8 @@\n value._meta.app_config.name, obj.content_type.model),\n args=(value.id,)),\n value)\n+ e...
gh_patches_debug_1095
rasdani/github-patches
git_diff
graspologic-org__graspologic-491
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add tutorial for MASE --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `graspologic/embed/mase.py` Content: ...
diff --git a/graspologic/embed/mase.py b/graspologic/embed/mase.py --- a/graspologic/embed/mase.py +++ b/graspologic/embed/mase.py @@ -27,6 +27,8 @@ :math:`R^{(i)}` can be assymetric and non-square, but all graphs still share a common latent position matrices :math:`U` and :math:`V`. + Read more in the :...
{"golden_diff": "diff --git a/graspologic/embed/mase.py b/graspologic/embed/mase.py\n--- a/graspologic/embed/mase.py\n+++ b/graspologic/embed/mase.py\n@@ -27,6 +27,8 @@\n :math:`R^{(i)}` can be assymetric and non-square, but all graphs still share a\n common latent position matrices :math:`U` and :math:`V`.\n \...
gh_patches_debug_1096
rasdani/github-patches
git_diff
cisagov__manage.get.gov-1757
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Update Success Message on "Your contact information" page ### Issue description On "Your contact information page" in the Domain Management pages we have explainer text that says: Updating your contact infor...
diff --git a/src/registrar/views/domain.py b/src/registrar/views/domain.py --- a/src/registrar/views/domain.py +++ b/src/registrar/views/domain.py @@ -555,7 +555,7 @@ # Post to DB using values from the form form.save() - messages.success(self.request, "Your contact information has been update...
{"golden_diff": "diff --git a/src/registrar/views/domain.py b/src/registrar/views/domain.py\n--- a/src/registrar/views/domain.py\n+++ b/src/registrar/views/domain.py\n@@ -555,7 +555,7 @@\n # Post to DB using values from the form\n form.save()\n \n- messages.success(self.request, \"Your contact in...
gh_patches_debug_1097
rasdani/github-patches
git_diff
ray-project__ray-1413
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Worker dies when passed pandas DataFrame. ### System information - **Ray version**: 0.3.0 - **Python version**: 3.6.0 - **Exact command to reproduce**: ```python import pandas as pd import ray pd._...
diff --git a/python/ray/dataframe/__init__.py b/python/ray/dataframe/__init__.py --- a/python/ray/dataframe/__init__.py +++ b/python/ray/dataframe/__init__.py @@ -6,10 +6,5 @@ from .dataframe import from_pandas from .dataframe import to_pandas from .series import Series -import ray -import pandas as pd __all__ = ...
{"golden_diff": "diff --git a/python/ray/dataframe/__init__.py b/python/ray/dataframe/__init__.py\n--- a/python/ray/dataframe/__init__.py\n+++ b/python/ray/dataframe/__init__.py\n@@ -6,10 +6,5 @@\n from .dataframe import from_pandas\n from .dataframe import to_pandas\n from .series import Series\n-import ray\n-import p...
gh_patches_debug_1098
rasdani/github-patches
git_diff
Gallopsled__pwntools-109
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Creating multiple rop objects is veeery noisy I get this A LOT: ``` [*] Found gadgets for './ropasaurusrex-85a84f36f81e11f720b1cf5ea0d1fb0d5a603c0d' in cache '/tmp/pwntoo ls-rop-cache/ropasaurusrex-85a84f...
diff --git a/pwnlib/rop.py b/pwnlib/rop.py --- a/pwnlib/rop.py +++ b/pwnlib/rop.py @@ -360,7 +360,7 @@ filename = self.__get_cachefile_name(elf) if os.path.exists(filename): - log.info("Found gadgets for %r in cache %r" % (elf.file.name,filename)) + log.info("Found cached gadge...
{"golden_diff": "diff --git a/pwnlib/rop.py b/pwnlib/rop.py\n--- a/pwnlib/rop.py\n+++ b/pwnlib/rop.py\n@@ -360,7 +360,7 @@\n filename = self.__get_cachefile_name(elf)\n \n if os.path.exists(filename):\n- log.info(\"Found gadgets for %r in cache %r\" % (elf.file.name,filename))\n+ l...
gh_patches_debug_1099
rasdani/github-patches
git_diff
pyro-ppl__pyro-1903
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Cannot delete constrained parameter [bug] ### **Issue Description** Deleting a constrained parameter throws an error. In the function `param_store.__delitem__()`, the line `unconstrained_value = constrain...
diff --git a/pyro/params/param_store.py b/pyro/params/param_store.py --- a/pyro/params/param_store.py +++ b/pyro/params/param_store.py @@ -89,8 +89,7 @@ """ Remove a parameter from the param store. """ - constrained_value = self._params.pop(name) - unconstrained_value = constrai...
{"golden_diff": "diff --git a/pyro/params/param_store.py b/pyro/params/param_store.py\n--- a/pyro/params/param_store.py\n+++ b/pyro/params/param_store.py\n@@ -89,8 +89,7 @@\n \"\"\"\n Remove a parameter from the param store.\n \"\"\"\n- constrained_value = self._params.pop(name)\n- ...