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_700 | rasdani/github-patches | git_diff | iterative__dvc-985 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Trouble installing dvc with pip: No matching distribution found for futures>=3.2.0 (from dvc)
I'm on a fresh ubuntu 18.04 and I want to install DVC. But I run into some dependency problems. Never had that pro... | diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -23,11 +23,9 @@
"jsonpath-rw==1.4.0",
"reflink==0.2.0",
"requests>=2.18.4",
+ 'futures; python_version == "2.7"',
]
-if sys.version_info[0] == 2:
- install_requires.append("futures>=3.2.0")
-
# Extra dependencies for remote integ... | {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -23,11 +23,9 @@\n \"jsonpath-rw==1.4.0\",\n \"reflink==0.2.0\",\n \"requests>=2.18.4\",\n+ 'futures; python_version == \"2.7\"',\n ]\n \n-if sys.version_info[0] == 2:\n- install_requires.append(\"futures>=3.2.0\")\n-... |
gh_patches_debug_701 | rasdani/github-patches | git_diff | boto__boto-3399 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
EMR ListSteps Doesn't Properly Filter Based on cluster_states
I believe this issue is related to Boto as I tried verifying in Java SDK and it works as I expect: I will only see steps that match the cluster st... | diff --git a/boto/emr/connection.py b/boto/emr/connection.py
--- a/boto/emr/connection.py
+++ b/boto/emr/connection.py
@@ -265,7 +265,7 @@
params['Marker'] = marker
if step_states:
- self.build_list_params(params, step_states, 'StepStateList.member')
+ self.build_list_param... | {"golden_diff": "diff --git a/boto/emr/connection.py b/boto/emr/connection.py\n--- a/boto/emr/connection.py\n+++ b/boto/emr/connection.py\n@@ -265,7 +265,7 @@\n params['Marker'] = marker\n \n if step_states:\n- self.build_list_params(params, step_states, 'StepStateList.member')\n+ ... |
gh_patches_debug_702 | rasdani/github-patches | git_diff | PennyLaneAI__pennylane-2525 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[BUG] The `_controlled` method of `DiagonalQubitUnitary` returns the wrong operation
### Expected behavior
`DiagonalQubitUnitary(D, wires=wires)._controlled(control=control)` queues the controlled version of... | diff --git a/pennylane/ops/qubit/matrix_ops.py b/pennylane/ops/qubit/matrix_ops.py
--- a/pennylane/ops/qubit/matrix_ops.py
+++ b/pennylane/ops/qubit/matrix_ops.py
@@ -441,7 +441,7 @@
def _controlled(self, control):
DiagonalQubitUnitary(
- qml.math.concatenate([np.array([1, 1]), self.parameter... | {"golden_diff": "diff --git a/pennylane/ops/qubit/matrix_ops.py b/pennylane/ops/qubit/matrix_ops.py\n--- a/pennylane/ops/qubit/matrix_ops.py\n+++ b/pennylane/ops/qubit/matrix_ops.py\n@@ -441,7 +441,7 @@\n \n def _controlled(self, control):\n DiagonalQubitUnitary(\n- qml.math.concatenate([np.array... |
gh_patches_debug_703 | rasdani/github-patches | git_diff | conda__conda-7211 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
canary: mkdir option removed from conda create on a minor bump
On conda 4.5
```bash
$ conda create -n testmkdir --mkdir
```
It works
On 4.6 on canary
```bash
$ conda create -n testmkdir --mkdir
``... | diff --git a/conda/cli/conda_argparse.py b/conda/cli/conda_argparse.py
--- a/conda/cli/conda_argparse.py
+++ b/conda/cli/conda_argparse.py
@@ -529,6 +529,11 @@
action="store_true",
help='Ignore create_default_packages in the .condarc file.',
)
+ p.add_argument(
+ '-m', "--mkdir",
+ ... | {"golden_diff": "diff --git a/conda/cli/conda_argparse.py b/conda/cli/conda_argparse.py\n--- a/conda/cli/conda_argparse.py\n+++ b/conda/cli/conda_argparse.py\n@@ -529,6 +529,11 @@\n action=\"store_true\",\n help='Ignore create_default_packages in the .condarc file.',\n )\n+ p.add_argument(\n+ ... |
gh_patches_debug_704 | rasdani/github-patches | git_diff | UTNkar__moore-794 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Translations for footer_en missing in production
I noticed that in the settings the footer option is called footer_en. Seems like a translation has gone missing

class FooterSettings(BaseSetting):
class Meta:
- verbose_name = _('footer_en') # quickfix
+ verbose_name = _('foote... | {"golden_diff": "diff --git a/src/branding/models.py b/src/branding/models.py\n--- a/src/branding/models.py\n+++ b/src/branding/models.py\n@@ -13,7 +13,7 @@\n @register_setting(icon='fa-window-minimize')\n class FooterSettings(BaseSetting):\n class Meta:\n- verbose_name = _('footer_en') # quickfix\n+ ... |
gh_patches_debug_705 | rasdani/github-patches | git_diff | django-oscar__django-oscar-1243 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
The wysiwyg should not be initialized for the raw html body textarea.
Since the wysiwyg is set by default for all dashboard promotions
the raw html body field does not render proper HTML since it gets
process... | diff --git a/oscar/apps/dashboard/promotions/forms.py b/oscar/apps/dashboard/promotions/forms.py
--- a/oscar/apps/dashboard/promotions/forms.py
+++ b/oscar/apps/dashboard/promotions/forms.py
@@ -27,6 +27,10 @@
model = RawHTML
exclude = ('display_type',)
+ def __init__(self, *args, **kwargs):
+ ... | {"golden_diff": "diff --git a/oscar/apps/dashboard/promotions/forms.py b/oscar/apps/dashboard/promotions/forms.py\n--- a/oscar/apps/dashboard/promotions/forms.py\n+++ b/oscar/apps/dashboard/promotions/forms.py\n@@ -27,6 +27,10 @@\n model = RawHTML\n exclude = ('display_type',)\n \n+ def __init__(self... |
gh_patches_debug_706 | rasdani/github-patches | git_diff | carpentries__amy-1793 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Bug: assignment form queryset may return duplicate results
Introduced in v2.16, AssignmentForm contains a queryset that may yield duplicate results due to the filtering used.
--- END ISSUE ---
Below are som... | diff --git a/amy/dashboard/forms.py b/amy/dashboard/forms.py
--- a/amy/dashboard/forms.py
+++ b/amy/dashboard/forms.py
@@ -27,7 +27,7 @@
required=False,
queryset=Person.objects.filter(
Q(is_superuser=True) | Q(groups__name="administrators")
- ),
+ ).distinct(),
widg... | {"golden_diff": "diff --git a/amy/dashboard/forms.py b/amy/dashboard/forms.py\n--- a/amy/dashboard/forms.py\n+++ b/amy/dashboard/forms.py\n@@ -27,7 +27,7 @@\n required=False,\n queryset=Person.objects.filter(\n Q(is_superuser=True) | Q(groups__name=\"administrators\")\n- ),\n+ ... |
gh_patches_debug_707 | rasdani/github-patches | git_diff | xonsh__xonsh-2240 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Can't use neovim (previously: Alias resolution in threadable prediction is broken again?)
I use neovim (aliased to vim as aliases['vi'] = 'nvim'). Finding a commit where it works without touching `__xonsh_com... | diff --git a/xonsh/commands_cache.py b/xonsh/commands_cache.py
--- a/xonsh/commands_cache.py
+++ b/xonsh/commands_cache.py
@@ -353,6 +353,7 @@
'mvim': predict_help_ver,
'mutt': predict_help_ver,
'nano': predict_help_ver,
+ 'nvim': predict_false,
'psql': predict_false,
... | {"golden_diff": "diff --git a/xonsh/commands_cache.py b/xonsh/commands_cache.py\n--- a/xonsh/commands_cache.py\n+++ b/xonsh/commands_cache.py\n@@ -353,6 +353,7 @@\n 'mvim': predict_help_ver,\n 'mutt': predict_help_ver,\n 'nano': predict_help_ver,\n+ 'nvim': predict_false,\n 'psql'... |
gh_patches_debug_708 | rasdani/github-patches | git_diff | quantumlib__Cirq-3358 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
upgrade to numpy 1.19
Discover all the issues / test failures related to numpy 0.19 and upgrade our requirements.txt.
More context: https://github.com/quantumlib/Cirq/pull/3106
--- END ISSUE ---
Below are ... | diff --git a/cirq/optimizers/decompositions.py b/cirq/optimizers/decompositions.py
--- a/cirq/optimizers/decompositions.py
+++ b/cirq/optimizers/decompositions.py
@@ -139,7 +139,7 @@
When M is controlled, the control must be rotated around the Z axis to
apply g.
"""
- vals, vecs = np.linalg.ei... | {"golden_diff": "diff --git a/cirq/optimizers/decompositions.py b/cirq/optimizers/decompositions.py\n--- a/cirq/optimizers/decompositions.py\n+++ b/cirq/optimizers/decompositions.py\n@@ -139,7 +139,7 @@\n When M is controlled, the control must be rotated around the Z axis to\n apply g.\n \"\"\"\n- ... |
gh_patches_debug_709 | rasdani/github-patches | git_diff | rucio__rucio-2079 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Upgrade of dependencies for 1.19.0
Modification
------------
# pip-requires
SQLAlchemy 1.2.7 --> 1.2.16
alembic 0.9.9 --> 1.0.6
python-dateutil 2.7.2 --> 2.7.5
s3cmd 2.0.1 --> 2.0.2
stomp.py 4.1.20 -->... | diff --git a/lib/rucio/db/sqla/migrate_repo/versions/3345511706b8_replicas_table_pk_definition_is_in_.py b/lib/rucio/db/sqla/migrate_repo/versions/3345511706b8_replicas_table_pk_definition_is_in_.py
--- a/lib/rucio/db/sqla/migrate_repo/versions/3345511706b8_replicas_table_pk_definition_is_in_.py
+++ b/lib/rucio/db/sqla... | {"golden_diff": "diff --git a/lib/rucio/db/sqla/migrate_repo/versions/3345511706b8_replicas_table_pk_definition_is_in_.py b/lib/rucio/db/sqla/migrate_repo/versions/3345511706b8_replicas_table_pk_definition_is_in_.py\n--- a/lib/rucio/db/sqla/migrate_repo/versions/3345511706b8_replicas_table_pk_definition_is_in_.py\n+++ ... |
gh_patches_debug_710 | rasdani/github-patches | git_diff | jazzband__pip-tools-822 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Option --pre doesn't work in requirements.in
The option `--pre` set in `requirements.in` doesn't work as expected. Neither `--pre package` or `package==0.0.1 --pre`. If `--pre` passed to the CLI it works like... | diff --git a/piptools/scripts/compile.py b/piptools/scripts/compile.py
--- a/piptools/scripts/compile.py
+++ b/piptools/scripts/compile.py
@@ -348,7 +348,7 @@
resolver = Resolver(
constraints,
repository,
- prereleases=pre,
+ prereleases=repository.finder.allow_a... | {"golden_diff": "diff --git a/piptools/scripts/compile.py b/piptools/scripts/compile.py\n--- a/piptools/scripts/compile.py\n+++ b/piptools/scripts/compile.py\n@@ -348,7 +348,7 @@\n resolver = Resolver(\n constraints,\n repository,\n- prereleases=pre,\n+ prereleases=... |
gh_patches_debug_711 | rasdani/github-patches | git_diff | interlegis__sapl-2110 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Relatório Normas Jurídicas: segundo critério de ordem
O relatório de normas jurídicas tem, por primeiro critério de ordem, a data por ordem decrescente. O segundo critério é o Número, em ordem crescente, que ... | diff --git a/sapl/norma/views.py b/sapl/norma/views.py
--- a/sapl/norma/views.py
+++ b/sapl/norma/views.py
@@ -72,7 +72,7 @@
def get_queryset(self):
qs = super().get_queryset()
- qs.select_related('tipo', 'materia')
+ qs = qs.extra({'norma_i': "CAST(regexp_replace(numero,'[^0-9]','', 'g') ... | {"golden_diff": "diff --git a/sapl/norma/views.py b/sapl/norma/views.py\n--- a/sapl/norma/views.py\n+++ b/sapl/norma/views.py\n@@ -72,7 +72,7 @@\n def get_queryset(self):\n qs = super().get_queryset()\n \n- qs.select_related('tipo', 'materia')\n+ qs = qs.extra({'norma_i': \"CAST(regexp_replace... |
gh_patches_debug_712 | rasdani/github-patches | git_diff | Theano__Theano-5675 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
GpuAdvancedSubtensor of tensor3/4 gives incorrect output with new gpuarray backend.
I've found an inconsistency in the output of advanced indexing on 3D/4D tensors with the gpuarray backend (I wasn't able to ... | diff --git a/theano/gpuarray/subtensor.py b/theano/gpuarray/subtensor.py
--- a/theano/gpuarray/subtensor.py
+++ b/theano/gpuarray/subtensor.py
@@ -552,7 +552,7 @@
# build the strides
strides = [1]
for i in range(p - 1, 0, -1):
- stride = x.shape[i] * strides[-1]
+ stride... | {"golden_diff": "diff --git a/theano/gpuarray/subtensor.py b/theano/gpuarray/subtensor.py\n--- a/theano/gpuarray/subtensor.py\n+++ b/theano/gpuarray/subtensor.py\n@@ -552,7 +552,7 @@\n # build the strides\n strides = [1]\n for i in range(p - 1, 0, -1):\n- stride = x.shape[i] * strides... |
gh_patches_debug_713 | rasdani/github-patches | git_diff | xonsh__xonsh-3497 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
xdg-open doesn't go to background by itself
## Current Behavior
When using `xdg-open doc.pdf`, okular (my default pdf reader) opens as expected. Terminal is blocked until okular is closed. Unless ` &` is use... | diff --git a/xonsh/commands_cache.py b/xonsh/commands_cache.py
--- a/xonsh/commands_cache.py
+++ b/xonsh/commands_cache.py
@@ -510,6 +510,7 @@
"weechat": predict_help_ver,
"wget": predict_true,
"xclip": predict_help_ver,
+ "xdg-open": predict_false,
"xo": predict_help_ver,
... | {"golden_diff": "diff --git a/xonsh/commands_cache.py b/xonsh/commands_cache.py\n--- a/xonsh/commands_cache.py\n+++ b/xonsh/commands_cache.py\n@@ -510,6 +510,7 @@\n \"weechat\": predict_help_ver,\n \"wget\": predict_true,\n \"xclip\": predict_help_ver,\n+ \"xdg-open\": predict_false,\n ... |
gh_patches_debug_714 | rasdani/github-patches | git_diff | cloudtools__troposphere-552 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Support AutoScalingCreationPolicy
From the docs, this is a top-level property of a [CreationPolicy](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-creationpolicy.html#cfn-attribut... | diff --git a/troposphere/policies.py b/troposphere/policies.py
--- a/troposphere/policies.py
+++ b/troposphere/policies.py
@@ -40,7 +40,14 @@
}
+class AutoScalingCreationPolicy(AWSProperty):
+ props = {
+ 'MinSuccessfulInstancesPercent': (integer, False),
+ }
+
+
class CreationPolicy(AWSAttribute... | {"golden_diff": "diff --git a/troposphere/policies.py b/troposphere/policies.py\n--- a/troposphere/policies.py\n+++ b/troposphere/policies.py\n@@ -40,7 +40,14 @@\n }\n \n \n+class AutoScalingCreationPolicy(AWSProperty):\n+ props = {\n+ 'MinSuccessfulInstancesPercent': (integer, False),\n+ }\n+\n+\n cla... |
gh_patches_debug_715 | rasdani/github-patches | git_diff | archlinux__archinstall-1322 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Please remove packagekit from GNOME profile
Speaking as the maintainer of GNOME on Arch, please remove packagekit from the `gnome` profile.
It's split out from the rest of gnome-software for a reason - pac... | diff --git a/profiles/gnome.py b/profiles/gnome.py
--- a/profiles/gnome.py
+++ b/profiles/gnome.py
@@ -8,8 +8,7 @@
__packages__ = [
"gnome",
"gnome-tweaks",
- "gdm",
- "gnome-software-packagekit-plugin",
+ "gdm"
]
diff --git a/profiles/kde.py b/profiles/kde.py
--- a/profiles/kde.py
+++ b/profiles/kde.py
@@ -1... | {"golden_diff": "diff --git a/profiles/gnome.py b/profiles/gnome.py\n--- a/profiles/gnome.py\n+++ b/profiles/gnome.py\n@@ -8,8 +8,7 @@\n __packages__ = [\n \t\"gnome\",\n \t\"gnome-tweaks\",\n-\t\"gdm\",\n-\t\"gnome-software-packagekit-plugin\",\n+\t\"gdm\"\n ]\n \n \ndiff --git a/profiles/kde.py b/profiles/kde.py\n---... |
gh_patches_debug_716 | rasdani/github-patches | git_diff | sopel-irc__sopel-2154 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Add `.clearpronouns` command
### The problem
Users might set their pronouns by mistake or just to test the functionality and then they are stuck.
### The solution
Add an "unsetpronouns" that deletes pr... | diff --git a/sopel/modules/pronouns.py b/sopel/modules/pronouns.py
--- a/sopel/modules/pronouns.py
+++ b/sopel/modules/pronouns.py
@@ -120,3 +120,10 @@
bot.reply(
"Thanks for telling me! I'll remember you use {}.{}".format(pronouns, disambig)
)
+
+
+@plugin.command('clearpronouns')
+def unset_pronoun... | {"golden_diff": "diff --git a/sopel/modules/pronouns.py b/sopel/modules/pronouns.py\n--- a/sopel/modules/pronouns.py\n+++ b/sopel/modules/pronouns.py\n@@ -120,3 +120,10 @@\n bot.reply(\n \"Thanks for telling me! I'll remember you use {}.{}\".format(pronouns, disambig)\n )\n+\n+\n+@plugin.command('clearp... |
gh_patches_debug_717 | rasdani/github-patches | git_diff | zestedesavoir__zds-site-2120 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Nombre délirant de requêtes sur les pages forum
Petite analyse sur les requêtes SQL :
Même [avec mon fix](https://github.com/zestedesavoir/zds-site/pull/2093), en mode connecté, je compte :
- 665 requêtes su... | diff --git a/zds/forum/models.py b/zds/forum/models.py
--- a/zds/forum/models.py
+++ b/zds/forum/models.py
@@ -120,13 +120,6 @@
else:
return False
- def is_read(self):
- """Checks if there are topics never read in the forum."""
- for current_topic in Topic.objects.filter... | {"golden_diff": "diff --git a/zds/forum/models.py b/zds/forum/models.py\n--- a/zds/forum/models.py\n+++ b/zds/forum/models.py\n@@ -120,13 +120,6 @@\n else:\n return False\n \n- def is_read(self):\n- \"\"\"Checks if there are topics never read in the forum.\"\"\"\n- for curre... |
gh_patches_debug_718 | rasdani/github-patches | git_diff | getpelican__pelican-3124 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
More flexible page content testing for unit tests
- [x] I have searched the [issues](https://github.com/getpelican/pelican/issues?q=is%3Aissue) (including closed ones) and believe that this is not a duplicate... | diff --git a/pelican/utils.py b/pelican/utils.py
--- a/pelican/utils.py
+++ b/pelican/utils.py
@@ -155,7 +155,9 @@
def __get__(self, obj, objtype):
'''Support instance methods.'''
- return partial(self.__call__, obj)
+ fn = partial(self.__call__, obj)
+ fn.cache = self.cache
+ ... | {"golden_diff": "diff --git a/pelican/utils.py b/pelican/utils.py\n--- a/pelican/utils.py\n+++ b/pelican/utils.py\n@@ -155,7 +155,9 @@\n \n def __get__(self, obj, objtype):\n '''Support instance methods.'''\n- return partial(self.__call__, obj)\n+ fn = partial(self.__call__, obj)\n+ fn.... |
gh_patches_debug_719 | rasdani/github-patches | git_diff | conda__conda-build-2367 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
source hash not verified
The md5 or sha256 hash of a source tarball is not checked prior to building a package. For example the following recipe build successfully regardless of which md5 line is un-commente... | diff --git a/conda_build/source.py b/conda_build/source.py
--- a/conda_build/source.py
+++ b/conda_build/source.py
@@ -90,7 +90,7 @@
hashed = None
for tp in ('md5', 'sha1', 'sha256'):
- if 'tp' in source_dict:
+ if tp in source_dict:
expected_hash = source_dict[tp]
ha... | {"golden_diff": "diff --git a/conda_build/source.py b/conda_build/source.py\n--- a/conda_build/source.py\n+++ b/conda_build/source.py\n@@ -90,7 +90,7 @@\n \n hashed = None\n for tp in ('md5', 'sha1', 'sha256'):\n- if 'tp' in source_dict:\n+ if tp in source_dict:\n expected_hash = sourc... |
gh_patches_debug_720 | rasdani/github-patches | git_diff | ansible__ansible-lint-1147 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
ansible-lint no longer auto-detects Playbooks in version 4.3
##### Summary
Ansible Lint 4.2 was able to correctly identify the Playbooks and Roles within our repo, version 4.3 is not.
I'd like some clarif... | diff --git a/lib/ansiblelint/utils.py b/lib/ansiblelint/utils.py
--- a/lib/ansiblelint/utils.py
+++ b/lib/ansiblelint/utils.py
@@ -687,7 +687,7 @@
else:
if (
isinstance(f, AnsibleSequence) and
- hasattr(f, 'keys') and
+ hasattr(next(iter(f), {}), 'keys') and
... | {"golden_diff": "diff --git a/lib/ansiblelint/utils.py b/lib/ansiblelint/utils.py\n--- a/lib/ansiblelint/utils.py\n+++ b/lib/ansiblelint/utils.py\n@@ -687,7 +687,7 @@\n else:\n if (\n isinstance(f, AnsibleSequence) and\n- hasattr(f, 'keys') and\n+ hasattr(next(iter(f), {}),... |
gh_patches_debug_721 | rasdani/github-patches | git_diff | DataDog__dd-trace-py-3108 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
aioredis integration: Tracing breaks pipeline as context managers
Hello,
looks like the `aioredis` integration breaks the interface of `Pipeline` objects as context managers:
```py
RuntimeWarning: coro... | diff --git a/ddtrace/contrib/aioredis/patch.py b/ddtrace/contrib/aioredis/patch.py
--- a/ddtrace/contrib/aioredis/patch.py
+++ b/ddtrace/contrib/aioredis/patch.py
@@ -70,8 +70,8 @@
return await func(*args, **kwargs)
-async def traced_pipeline(func, instance, args, kwargs):
- pipeline = await func(*args,... | {"golden_diff": "diff --git a/ddtrace/contrib/aioredis/patch.py b/ddtrace/contrib/aioredis/patch.py\n--- a/ddtrace/contrib/aioredis/patch.py\n+++ b/ddtrace/contrib/aioredis/patch.py\n@@ -70,8 +70,8 @@\n return await func(*args, **kwargs)\n \n \n-async def traced_pipeline(func, instance, args, kwargs):\n- pip... |
gh_patches_debug_722 | rasdani/github-patches | git_diff | plotly__dash-2024 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Missing `f` prefix on f-strings
Some strings looks like they're meant to be f-strings but are missing the `f` prefix meaning variable interpolation won't happen.
https://github.com/plotly/dash/blob/f6b51a841... | diff --git a/dash/development/update_components.py b/dash/development/update_components.py
--- a/dash/development/update_components.py
+++ b/dash/development/update_components.py
@@ -45,7 +45,7 @@
if status or not out:
print(
- "🚨 Failed installing npm dependencies for component packages: {s... | {"golden_diff": "diff --git a/dash/development/update_components.py b/dash/development/update_components.py\n--- a/dash/development/update_components.py\n+++ b/dash/development/update_components.py\n@@ -45,7 +45,7 @@\n \n if status or not out:\n print(\n- \"\ud83d\udea8 Failed installing npm depe... |
gh_patches_debug_723 | rasdani/github-patches | git_diff | googleapis__google-cloud-python-6027 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Please cut a release of Video Intelligence
Need to unblock tests of samples
--- END ISSUE ---
Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN ... | diff --git a/videointelligence/setup.py b/videointelligence/setup.py
--- a/videointelligence/setup.py
+++ b/videointelligence/setup.py
@@ -22,7 +22,7 @@
name = 'google-cloud-videointelligence'
description = 'Google Cloud Video Intelligence API client library'
-version = '1.3.0'
+version = '1.4.0'
# Should be one o... | {"golden_diff": "diff --git a/videointelligence/setup.py b/videointelligence/setup.py\n--- a/videointelligence/setup.py\n+++ b/videointelligence/setup.py\n@@ -22,7 +22,7 @@\n \n name = 'google-cloud-videointelligence'\n description = 'Google Cloud Video Intelligence API client library'\n-version = '1.3.0'\n+version = '... |
gh_patches_debug_724 | rasdani/github-patches | git_diff | celery__celery-4037 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
celery.contrib.sphinx fails with Sphinx 1.6.1
When using the `celery.contrib.sphinx` extension with Sphinx 1.6.1 with Celery 4.0.2 the following occurs:
```
Exception occurred:
File "/home/ubuntu/virtu... | diff --git a/celery/contrib/sphinx.py b/celery/contrib/sphinx.py
--- a/celery/contrib/sphinx.py
+++ b/celery/contrib/sphinx.py
@@ -69,5 +69,5 @@
def setup(app):
"""Setup Sphinx extension."""
app.add_autodocumenter(TaskDocumenter)
- app.domains['py'].directives['task'] = TaskDirective
+ app.add_directiv... | {"golden_diff": "diff --git a/celery/contrib/sphinx.py b/celery/contrib/sphinx.py\n--- a/celery/contrib/sphinx.py\n+++ b/celery/contrib/sphinx.py\n@@ -69,5 +69,5 @@\n def setup(app):\n \"\"\"Setup Sphinx extension.\"\"\"\n app.add_autodocumenter(TaskDocumenter)\n- app.domains['py'].directives['task'] = TaskD... |
gh_patches_debug_725 | rasdani/github-patches | git_diff | sanic-org__sanic-1222 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Sanic `Request` object is falsey
```python
@app.route('/myroute')
async def someroute(request):
if request:
return 'some data'
raise Exception("Woops")
```
This code will raise the ex... | diff --git a/sanic/request.py b/sanic/request.py
--- a/sanic/request.py
+++ b/sanic/request.py
@@ -78,6 +78,11 @@
self.method,
self.path)
+ def __bool__(self):
+ if self.transport:
+ return True
+ return False
... | {"golden_diff": "diff --git a/sanic/request.py b/sanic/request.py\n--- a/sanic/request.py\n+++ b/sanic/request.py\n@@ -78,6 +78,11 @@\n self.method,\n self.path)\n \n+ def __bool__(self):\n+ if self.transport:\n+ return T... |
gh_patches_debug_726 | rasdani/github-patches | git_diff | netbox-community__netbox-13686 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Cannot exit maintenance mode
### NetBox version
v3.6.0
### Python version
3.10
### Steps to Reproduce
1. Go to Current Config
2. Click on edit
3. Enable Maintenance mode
4. Go back to Curren... | diff --git a/netbox/netbox/settings.py b/netbox/netbox/settings.py
--- a/netbox/netbox/settings.py
+++ b/netbox/netbox/settings.py
@@ -496,6 +496,7 @@
# All URLs starting with a string listed here are exempt from maintenance mode enforcement
MAINTENANCE_EXEMPT_PATHS = (
f'/{BASE_PATH}admin/',
+ f'/{BASE_PATH}... | {"golden_diff": "diff --git a/netbox/netbox/settings.py b/netbox/netbox/settings.py\n--- a/netbox/netbox/settings.py\n+++ b/netbox/netbox/settings.py\n@@ -496,6 +496,7 @@\n # All URLs starting with a string listed here are exempt from maintenance mode enforcement\n MAINTENANCE_EXEMPT_PATHS = (\n f'/{BASE_PATH}admin... |
gh_patches_debug_727 | rasdani/github-patches | git_diff | internetarchive__openlibrary-5966 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Some ISBN searches error
<!-- What problem are we solving? What does the experience look like today? What are the symptoms? -->
### Evidence / Screenshot (if possible)
Example:
**Errors:**
https://ope... | diff --git a/openlibrary/core/models.py b/openlibrary/core/models.py
--- a/openlibrary/core/models.py
+++ b/openlibrary/core/models.py
@@ -409,6 +409,8 @@
return None # consider raising ValueError
isbn13 = to_isbn_13(isbn)
+ if isbn13 is None:
+ return None # consider raising... | {"golden_diff": "diff --git a/openlibrary/core/models.py b/openlibrary/core/models.py\n--- a/openlibrary/core/models.py\n+++ b/openlibrary/core/models.py\n@@ -409,6 +409,8 @@\n return None # consider raising ValueError\n \n isbn13 = to_isbn_13(isbn)\n+ if isbn13 is None:\n+ return... |
gh_patches_debug_728 | rasdani/github-patches | git_diff | pwr-Solaar__Solaar-747 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
solaar 1.0.1 loses receiver occasionally
**Information**
- Solaar version: 1.0.1 from late December 2019
- Distribution: github
**Describe the bug**
Pairing a M310 mouse results in Solaar not showin... | diff --git a/lib/solaar/ui/window.py b/lib/solaar/ui/window.py
--- a/lib/solaar/ui/window.py
+++ b/lib/solaar/ui/window.py
@@ -783,7 +783,6 @@
# receiver
is_alive = bool(device)
item = _receiver_row(device.path, device if is_alive else None)
- assert item
if is_alive and item:
was_pairing = bool(_mod... | {"golden_diff": "diff --git a/lib/solaar/ui/window.py b/lib/solaar/ui/window.py\n--- a/lib/solaar/ui/window.py\n+++ b/lib/solaar/ui/window.py\n@@ -783,7 +783,6 @@\n \t\t# receiver\n \t\tis_alive = bool(device)\n \t\titem = _receiver_row(device.path, device if is_alive else None)\n-\t\tassert item\n \n \t\tif is_alive a... |
gh_patches_debug_729 | rasdani/github-patches | git_diff | ray-project__ray-5429 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[Tune] Experiment Analysis get_best behaviour
Hi,
In their current version, the [`get_best_config`](https://github.com/ray-project/ray/blob/ed89897a311fbe63afdd5fa05a4ef8b7576ca6a4/python/ray/tune/analysis/e... | diff --git a/python/ray/tune/analysis/experiment_analysis.py b/python/ray/tune/analysis/experiment_analysis.py
--- a/python/ray/tune/analysis/experiment_analysis.py
+++ b/python/ray/tune/analysis/experiment_analysis.py
@@ -75,7 +75,7 @@
mode (str): One of [min, max].
"""
- df = self.dataf... | {"golden_diff": "diff --git a/python/ray/tune/analysis/experiment_analysis.py b/python/ray/tune/analysis/experiment_analysis.py\n--- a/python/ray/tune/analysis/experiment_analysis.py\n+++ b/python/ray/tune/analysis/experiment_analysis.py\n@@ -75,7 +75,7 @@\n mode (str): One of [min, max].\n \n \"\"\... |
gh_patches_debug_730 | rasdani/github-patches | git_diff | readthedocs__readthedocs.org-5308 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Extra slash in "Edit on GitHub" link
## Details
* Read the Docs project URL: http://glom.readthedocs.io/
* GitHub URL: https://github.com/mahmoud/glom
* Build URL (if applicable): N/A
* Read the Docs us... | diff --git a/readthedocs/projects/forms.py b/readthedocs/projects/forms.py
--- a/readthedocs/projects/forms.py
+++ b/readthedocs/projects/forms.py
@@ -131,6 +131,10 @@
return name
+ def clean_repo(self):
+ repo = self.cleaned_data.get('repo', '')
+ return repo.rstrip('/')
+
def clean_... | {"golden_diff": "diff --git a/readthedocs/projects/forms.py b/readthedocs/projects/forms.py\n--- a/readthedocs/projects/forms.py\n+++ b/readthedocs/projects/forms.py\n@@ -131,6 +131,10 @@\n \n return name\n \n+ def clean_repo(self):\n+ repo = self.cleaned_data.get('repo', '')\n+ return repo.rst... |
gh_patches_debug_731 | rasdani/github-patches | git_diff | ourownstory__neural_prophet-1100 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[bug] Adding country holidays triggers Error when using global/glocal model
Adding country holidays with `m.add_country_holidays()` triggers an index error when the input df contains multiple time series (i.... | diff --git a/neuralprophet/time_dataset.py b/neuralprophet/time_dataset.py
--- a/neuralprophet/time_dataset.py
+++ b/neuralprophet/time_dataset.py
@@ -508,7 +508,7 @@
np.array
All multiplicative event features (both user specified and country specific)
"""
-
+ df = df.reset_index(drop=True... | {"golden_diff": "diff --git a/neuralprophet/time_dataset.py b/neuralprophet/time_dataset.py\n--- a/neuralprophet/time_dataset.py\n+++ b/neuralprophet/time_dataset.py\n@@ -508,7 +508,7 @@\n np.array\n All multiplicative event features (both user specified and country specific)\n \"\"\"\n-\n+ d... |
gh_patches_debug_732 | rasdani/github-patches | git_diff | litestar-org__litestar-2017 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Bug: route with path parameters matches longer paths
### Description
A route registered for `/{param:str}`, in addition to matching `/foo` matches also `/foo/bar` (but not `/foo/bar/baz`).
### URL to code c... | diff --git a/litestar/_asgi/routing_trie/traversal.py b/litestar/_asgi/routing_trie/traversal.py
--- a/litestar/_asgi/routing_trie/traversal.py
+++ b/litestar/_asgi/routing_trie/traversal.py
@@ -51,8 +51,7 @@
path_params.append(component)
continue
- if i != len(path_components) - 1 or... | {"golden_diff": "diff --git a/litestar/_asgi/routing_trie/traversal.py b/litestar/_asgi/routing_trie/traversal.py\n--- a/litestar/_asgi/routing_trie/traversal.py\n+++ b/litestar/_asgi/routing_trie/traversal.py\n@@ -51,8 +51,7 @@\n path_params.append(component)\n continue\n \n- if i != len... |
gh_patches_debug_733 | rasdani/github-patches | git_diff | mozilla__bugbug-3158 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
bugbug check components task failing because of "Component 'Preferences' of product 'Firefox' have 0 bugs or less in it, failure"
--- END ISSUE ---
Below are some code segments, each from a relevant file. ... | diff --git a/bugbug/bugzilla.py b/bugbug/bugzilla.py
--- a/bugbug/bugzilla.py
+++ b/bugbug/bugzilla.py
@@ -326,6 +326,9 @@
continue
value = int(raw_value)
+ # If there are no bugs, the product/component pair doesn't exist.
+ if value == 0:
+ continue
... | {"golden_diff": "diff --git a/bugbug/bugzilla.py b/bugbug/bugzilla.py\n--- a/bugbug/bugzilla.py\n+++ b/bugbug/bugzilla.py\n@@ -326,6 +326,9 @@\n continue\n \n value = int(raw_value)\n+ # If there are no bugs, the product/component pair doesn't exist.\n+ if value == 0:\n... |
gh_patches_debug_734 | rasdani/github-patches | git_diff | pallets__click-773 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Dynamic bash autocompletion should escape blanks
Thanks for #755, wonderful feature! I found an issue when my completion callback returns entries that have (legitimate) blanks in them. In this case, entries g... | diff --git a/click/_bashcomplete.py b/click/_bashcomplete.py
--- a/click/_bashcomplete.py
+++ b/click/_bashcomplete.py
@@ -12,6 +12,7 @@
COMPLETION_SCRIPT = '''
%(complete_func)s() {
+ local IFS=$'\n'
COMPREPLY=( $( env COMP_WORDS="${COMP_WORDS[*]}" \\
COMP_CWORD=$COMP_CWORD \\
... | {"golden_diff": "diff --git a/click/_bashcomplete.py b/click/_bashcomplete.py\n--- a/click/_bashcomplete.py\n+++ b/click/_bashcomplete.py\n@@ -12,6 +12,7 @@\n \n COMPLETION_SCRIPT = '''\n %(complete_func)s() {\n+ local IFS=$'\\n'\n COMPREPLY=( $( env COMP_WORDS=\"${COMP_WORDS[*]}\" \\\\\n COMP... |
gh_patches_debug_735 | rasdani/github-patches | git_diff | scverse__scanpy-1087 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
sc.datasets.ebi_expression_atlas errors
I wanted to use ` sc.datasets.ebi_expression_atlas` but I get an error that seems to be related to code only valid in python 3.8. This error happens with python versio... | diff --git a/scanpy/readwrite.py b/scanpy/readwrite.py
--- a/scanpy/readwrite.py
+++ b/scanpy/readwrite.py
@@ -876,7 +876,8 @@
urlretrieve(url, str(path), reporthook=update_to)
except Exception:
# Make sure file doesn’t exist half-downloaded
- path.unlink(missing_ok=True)
+... | {"golden_diff": "diff --git a/scanpy/readwrite.py b/scanpy/readwrite.py\n--- a/scanpy/readwrite.py\n+++ b/scanpy/readwrite.py\n@@ -876,7 +876,8 @@\n urlretrieve(url, str(path), reporthook=update_to)\n except Exception:\n # Make sure file doesn\u2019t exist half-downloaded\n- p... |
gh_patches_debug_736 | rasdani/github-patches | git_diff | pre-commit__pre-commit-944 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Not working from SmartGit
I know that this issue may not be caused by `pre-commit` directly, but figured out you guys could help me. Trying to commit directly from `SmartGit` prints this:
```
~/Developmen... | diff --git a/pre_commit/git.py b/pre_commit/git.py
--- a/pre_commit/git.py
+++ b/pre_commit/git.py
@@ -29,7 +29,8 @@
# GIT_INDEX_FILE: Causes 'error invalid object ...' during commit
return {
k: v for k, v in os.environ.items()
- if not k.startswith('GIT_') or k in {'GIT_SSH', 'GIT_SSH_COMMAND... | {"golden_diff": "diff --git a/pre_commit/git.py b/pre_commit/git.py\n--- a/pre_commit/git.py\n+++ b/pre_commit/git.py\n@@ -29,7 +29,8 @@\n # GIT_INDEX_FILE: Causes 'error invalid object ...' during commit\n return {\n k: v for k, v in os.environ.items()\n- if not k.startswith('GIT_') or k in {'GI... |
gh_patches_debug_737 | rasdani/github-patches | git_diff | lhotse-speech__lhotse-957 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Do not discard custom arrays in to_mono()
Calling `MultiCut.to_mono` discards custom field from the cut. https://github.com/lhotse-speech/lhotse/blob/8082876f153bd32a3046a66f17c8f0028dcabe4f/lhotse/cut/multi.... | diff --git a/lhotse/cut/multi.py b/lhotse/cut/multi.py
--- a/lhotse/cut/multi.py
+++ b/lhotse/cut/multi.py
@@ -387,6 +387,7 @@
for s in self.supervisions
if is_equal_or_contains(s.channel, channel)
],
+ custom=self.custom,
)
... | {"golden_diff": "diff --git a/lhotse/cut/multi.py b/lhotse/cut/multi.py\n--- a/lhotse/cut/multi.py\n+++ b/lhotse/cut/multi.py\n@@ -387,6 +387,7 @@\n for s in self.supervisions\n if is_equal_or_contains(s.channel, channel)\n ],\n+ custom=self.custom,... |
gh_patches_debug_738 | rasdani/github-patches | git_diff | apache__airflow-18228 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
tests/core/test_providers_manager.py::TestProviderManager::test_hooks broken on 3.6
### Apache Airflow version
main (development)
### Operating System
Any
### Versions of Apache Airflow Providers
... | diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -507,12 +507,11 @@
'freezegun',
'github3.py',
'gitpython',
- 'importlib-resources~=1.4',
'ipdb',
'jira',
'jsondiff',
'mongomock',
- 'moto~=2.2, >=2.2.1.dev9',
+ 'moto~=2.2, >=2.2.1',
'mypy==0.770',
'p... | {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -507,12 +507,11 @@\n 'freezegun',\n 'github3.py',\n 'gitpython',\n- 'importlib-resources~=1.4',\n 'ipdb',\n 'jira',\n 'jsondiff',\n 'mongomock',\n- 'moto~=2.2, >=2.2.1.dev9',\n+ 'moto~=2.2, >=2.2.1... |
gh_patches_debug_739 | rasdani/github-patches | git_diff | bokeh__bokeh-3570 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
ImageURL example in reference guide is broken
The example doesn't render an image, just a gridded, empty plot.
http://bokeh.pydata.org/en/latest/docs/reference/models/glyphs.html#bokeh.models.glyphs.ImageURL... | diff --git a/examples/glyphs/image_url.py b/examples/glyphs/image_url.py
--- a/examples/glyphs/image_url.py
+++ b/examples/glyphs/image_url.py
@@ -8,7 +8,7 @@
from bokeh.models import ColumnDataSource, Range1d, Plot, LinearAxis, Grid
from bokeh.resources import INLINE
-url = "http://bokeh.pydata.org/en/latest/_stat... | {"golden_diff": "diff --git a/examples/glyphs/image_url.py b/examples/glyphs/image_url.py\n--- a/examples/glyphs/image_url.py\n+++ b/examples/glyphs/image_url.py\n@@ -8,7 +8,7 @@\n from bokeh.models import ColumnDataSource, Range1d, Plot, LinearAxis, Grid\n from bokeh.resources import INLINE\n \n-url = \"http://bokeh.p... |
gh_patches_debug_740 | rasdani/github-patches | git_diff | qutip__qutip-885 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
enr_fock is broken
enr_fock is incompatible with enr_destroy.
Minimal code:
```
x = enr_destroy([3,3],2)
y = enr_fock([3,3],2,[1,1])
x[0]*y
```
returns an error.
I believe the problem is that the ... | diff --git a/qutip/states.py b/qutip/states.py
--- a/qutip/states.py
+++ b/qutip/states.py
@@ -927,7 +927,7 @@
raise ValueError("The state tuple %s is not in the restricted "
"state space" % str(tuple(state)))
- return Qobj(data, dims=[dims, 1])
+ return Qobj(data, dims=[dims,... | {"golden_diff": "diff --git a/qutip/states.py b/qutip/states.py\n--- a/qutip/states.py\n+++ b/qutip/states.py\n@@ -927,7 +927,7 @@\n raise ValueError(\"The state tuple %s is not in the restricted \"\n \"state space\" % str(tuple(state)))\n \n- return Qobj(data, dims=[dims, 1])\n+ ... |
gh_patches_debug_741 | rasdani/github-patches | git_diff | LibraryOfCongress__concordia-567 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
"Images in this project" is incorrect on campaign report
**What behavior did you observe? Please describe the bug**
The number of Images in this project is incorrect. It doesn't match the actual number of pu... | diff --git a/concordia/views.py b/concordia/views.py
--- a/concordia/views.py
+++ b/concordia/views.py
@@ -822,6 +822,7 @@
asset_count=Count(
"item__asset",
filter=Q(item__published=True, item__asset__published=True),
+ distinct=True
)
... | {"golden_diff": "diff --git a/concordia/views.py b/concordia/views.py\n--- a/concordia/views.py\n+++ b/concordia/views.py\n@@ -822,6 +822,7 @@\n asset_count=Count(\n \"item__asset\",\n filter=Q(item__published=True, item__asset__published=True),\n+ distinct=Tru... |
gh_patches_debug_742 | rasdani/github-patches | git_diff | ManimCommunity__manim-1588 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Multiple animations are saved in the same file when a Scene is not specified
## Description of bug / unexpected behavior
I've made a file with different `Scenes` _(A, B, C & D)_ called bug.py . When trying t... | diff --git a/manim/utils/module_ops.py b/manim/utils/module_ops.py
--- a/manim/utils/module_ops.py
+++ b/manim/utils/module_ops.py
@@ -94,6 +94,7 @@
def prompt_user_for_choice(scene_classes):
num_to_class = {}
+ config["write_all"] = True
for count, scene_class in enumerate(scene_classes):
coun... | {"golden_diff": "diff --git a/manim/utils/module_ops.py b/manim/utils/module_ops.py\n--- a/manim/utils/module_ops.py\n+++ b/manim/utils/module_ops.py\n@@ -94,6 +94,7 @@\n \n def prompt_user_for_choice(scene_classes):\n num_to_class = {}\n+ config[\"write_all\"] = True\n for count, scene_class in enumerate(sc... |
gh_patches_debug_743 | rasdani/github-patches | git_diff | wemake-services__wemake-python-styleguide-1596 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
WPS515 has a wrong description
# Bug report
<!--
Hi, thanks for submitting a bug. We appreciate that.
But, we will need some information about what's wrong to help you.
-->
## What's wrong
<!-- ... | diff --git a/wemake_python_styleguide/violations/refactoring.py b/wemake_python_styleguide/violations/refactoring.py
--- a/wemake_python_styleguide/violations/refactoring.py
+++ b/wemake_python_styleguide/violations/refactoring.py
@@ -670,7 +670,7 @@
@final
class OpenWithoutContextManagerViolation(ASTViolation):
... | {"golden_diff": "diff --git a/wemake_python_styleguide/violations/refactoring.py b/wemake_python_styleguide/violations/refactoring.py\n--- a/wemake_python_styleguide/violations/refactoring.py\n+++ b/wemake_python_styleguide/violations/refactoring.py\n@@ -670,7 +670,7 @@\n @final\n class OpenWithoutContextManagerViolati... |
gh_patches_debug_744 | rasdani/github-patches | git_diff | saulpw__visidata-1921 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Pasting from Clipboard in Windows 10
**Small description**
I cannot get any results pasted from the clipboard onto a visidata cell, selected cell or range of cells.
On the most basic test:
- Create new ... | diff --git a/visidata/clipboard.py b/visidata/clipboard.py
--- a/visidata/clipboard.py
+++ b/visidata/clipboard.py
@@ -12,7 +12,7 @@
if sys.platform == 'win32':
syscopy_cmd_default = 'clip.exe'
- syspaste_cmd_default = 'clip.exe'
+ syspaste_cmd_default = 'powershell -command Get-Clipboard'
elif sys.platf... | {"golden_diff": "diff --git a/visidata/clipboard.py b/visidata/clipboard.py\n--- a/visidata/clipboard.py\n+++ b/visidata/clipboard.py\n@@ -12,7 +12,7 @@\n \n if sys.platform == 'win32':\n syscopy_cmd_default = 'clip.exe'\n- syspaste_cmd_default = 'clip.exe'\n+ syspaste_cmd_default = 'powershell -command Get-C... |
gh_patches_debug_745 | rasdani/github-patches | git_diff | numpy__numpy-317 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Build with NPY_SEPARATE_COMPILATION=1 fails
Building with
```
export NPY_SEPARATE_COMPILATION=1
python setup.py build
```
fails after recent changes (works still in 651ef74c4ebe7d):
```
gcc -pthread -shar... | diff --git a/numpy/core/setup.py b/numpy/core/setup.py
--- a/numpy/core/setup.py
+++ b/numpy/core/setup.py
@@ -13,8 +13,8 @@
# Set to True to enable multiple file compilations (experimental)
try:
- os.environ['NPY_SEPARATE_COMPILATION']
- ENABLE_SEPARATE_COMPILATION = True
+ val = os.environ['NPY_SEPARATE_... | {"golden_diff": "diff --git a/numpy/core/setup.py b/numpy/core/setup.py\n--- a/numpy/core/setup.py\n+++ b/numpy/core/setup.py\n@@ -13,8 +13,8 @@\n \n # Set to True to enable multiple file compilations (experimental)\n try:\n- os.environ['NPY_SEPARATE_COMPILATION']\n- ENABLE_SEPARATE_COMPILATION = True\n+ val =... |
gh_patches_debug_746 | rasdani/github-patches | git_diff | pyqtgraph__pyqtgraph-921 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Numpy FutureWarning when setting bins in ImageItem.getHistogram()
If I set the `bins` parameter of the `ImageItem.getHistogram()` method to a Numpy array, I get the following Future warning...
```
/Users/... | diff --git a/pyqtgraph/graphicsItems/ImageItem.py b/pyqtgraph/graphicsItems/ImageItem.py
--- a/pyqtgraph/graphicsItems/ImageItem.py
+++ b/pyqtgraph/graphicsItems/ImageItem.py
@@ -488,7 +488,7 @@
step = (step, step)
stepData = self.image[::step[0], ::step[1]]
- if bins == 'auto':
+ ... | {"golden_diff": "diff --git a/pyqtgraph/graphicsItems/ImageItem.py b/pyqtgraph/graphicsItems/ImageItem.py\n--- a/pyqtgraph/graphicsItems/ImageItem.py\n+++ b/pyqtgraph/graphicsItems/ImageItem.py\n@@ -488,7 +488,7 @@\n step = (step, step)\n stepData = self.image[::step[0], ::step[1]]\n \n- if b... |
gh_patches_debug_747 | rasdani/github-patches | git_diff | readthedocs__readthedocs.org-4810 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Find out where/why rtd activates a version after building it
Not sure how to classify this issue, but we kind of need to figure out why are we activating a version after building it, it may be a bug or it is ... | diff --git a/readthedocs/projects/tasks.py b/readthedocs/projects/tasks.py
--- a/readthedocs/projects/tasks.py
+++ b/readthedocs/projects/tasks.py
@@ -605,7 +605,6 @@
if html:
version = api_v2.version(self.version.pk)
version.patch({
- 'active': True,
... | {"golden_diff": "diff --git a/readthedocs/projects/tasks.py b/readthedocs/projects/tasks.py\n--- a/readthedocs/projects/tasks.py\n+++ b/readthedocs/projects/tasks.py\n@@ -605,7 +605,6 @@\n if html:\n version = api_v2.version(self.version.pk)\n version.patch({\n- ... |
gh_patches_debug_748 | rasdani/github-patches | git_diff | Nitrate__Nitrate-380 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Add more information links to package
Add these links to `project_urls` argument of `setup.py`.
- Source Code: https://github.com/Nitrate/Nitrate
- Issue Tracker: https://github.com/Nitrate/Nitrate/issues... | diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -105,4 +105,9 @@
'Topic :: Software Development :: Quality Assurance',
'Topic :: Software Development :: Testing',
],
+ project_urls={
+ 'Issue Tracker': 'https://github.com/Nitrate/Nitrate/issues',
+ 'Source Code'... | {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -105,4 +105,9 @@\n 'Topic :: Software Development :: Quality Assurance',\n 'Topic :: Software Development :: Testing',\n ],\n+ project_urls={\n+ 'Issue Tracker': 'https://github.com/Nitrate/Nitrate/issues... |
gh_patches_debug_749 | rasdani/github-patches | git_diff | psychopy__psychopy-2846 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Math formulas not rendering in documentation
Math formulas are not rendered in documentation on website, for example on https://www.psychopy.org/general/gamma.html. See image:
<img width="362" alt="gamma" ... | diff --git a/docs/source/conf.py b/docs/source/conf.py
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -208,5 +208,5 @@
# If false, no module index is generated.
#latex_use_modindex = True
-# path to mathjax on a public server (or could put on our own in static path?)
-mathjax_path = 'http://mathjax.connectm... | {"golden_diff": "diff --git a/docs/source/conf.py b/docs/source/conf.py\n--- a/docs/source/conf.py\n+++ b/docs/source/conf.py\n@@ -208,5 +208,5 @@\n # If false, no module index is generated.\n #latex_use_modindex = True\n \n-# path to mathjax on a public server (or could put on our own in static path?)\n-mathjax_path =... |
gh_patches_debug_750 | rasdani/github-patches | git_diff | cobbler__cobbler-3183 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
grubx86.efi vs grubx64.efi (DHCPv4 -> EFI does not work)
### Either settings.yaml and dhcp6.template are wrong, or dhcp.template, documentation, and tests are wrong
In dhcp.template, cobbler currently refe... | diff --git a/cobbler/settings/__init__.py b/cobbler/settings/__init__.py
--- a/cobbler/settings/__init__.py
+++ b/cobbler/settings/__init__.py
@@ -87,7 +87,7 @@
"extra_modules": ["net", "ofnet"],
},
"x86_64-efi": {
- "binary_name": "grubx86.efi",
+ ... | {"golden_diff": "diff --git a/cobbler/settings/__init__.py b/cobbler/settings/__init__.py\n--- a/cobbler/settings/__init__.py\n+++ b/cobbler/settings/__init__.py\n@@ -87,7 +87,7 @@\n \"extra_modules\": [\"net\", \"ofnet\"],\n },\n \"x86_64-efi\": {\n- \"binary_name... |
gh_patches_debug_751 | rasdani/github-patches | git_diff | scikit-image__scikit-image-5529 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Pooch update breaks import
## Description
Pooch recently updated to version 1.5.0. This moved the hash functions to their own module, so the current method of importing them now fails. Further, the fallb... | diff --git a/skimage/data/__init__.py b/skimage/data/__init__.py
--- a/skimage/data/__init__.py
+++ b/skimage/data/__init__.py
@@ -62,7 +62,7 @@
skimage_distribution_dir = osp.join(legacy_data_dir, '..')
try:
- from pooch.utils import file_hash
+ from pooch import file_hash
except ModuleNotFoundError:
#... | {"golden_diff": "diff --git a/skimage/data/__init__.py b/skimage/data/__init__.py\n--- a/skimage/data/__init__.py\n+++ b/skimage/data/__init__.py\n@@ -62,7 +62,7 @@\n skimage_distribution_dir = osp.join(legacy_data_dir, '..')\n \n try:\n- from pooch.utils import file_hash\n+ from pooch import file_hash\n except M... |
gh_patches_debug_752 | rasdani/github-patches | git_diff | biolab__orange3-1995 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Sample data: remaining data output is wrong with replicable sampling
##### Orange version
master
##### Actual behavior
I was using iris or titanic on input. I was using "Fixed proportion of data" type ... | diff --git a/Orange/widgets/data/owdatasampler.py b/Orange/widgets/data/owdatasampler.py
--- a/Orange/widgets/data/owdatasampler.py
+++ b/Orange/widgets/data/owdatasampler.py
@@ -377,7 +377,8 @@
def __call__(self, table):
n = int(math.ceil(len(table) * self.p))
- return SampleRandomN(n, self.stra... | {"golden_diff": "diff --git a/Orange/widgets/data/owdatasampler.py b/Orange/widgets/data/owdatasampler.py\n--- a/Orange/widgets/data/owdatasampler.py\n+++ b/Orange/widgets/data/owdatasampler.py\n@@ -377,7 +377,8 @@\n \n def __call__(self, table):\n n = int(math.ceil(len(table) * self.p))\n- return Sa... |
gh_patches_debug_753 | rasdani/github-patches | git_diff | evennia__evennia-1368 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
IRC Bot Sends Raw |h Symbol
#### Brief summary of issue / Description of requested feature:
The IRC bot sends |h as-is.
#### Steps to reproduce the issue / Reasons for adding feature:
1. Connect an IRC... | diff --git a/evennia/server/portal/irc.py b/evennia/server/portal/irc.py
--- a/evennia/server/portal/irc.py
+++ b/evennia/server/portal/irc.py
@@ -93,6 +93,7 @@
(r'|_', " "), # space
(r'|*', ""), # invert
(r'|^', ""), # blinking text
+ (r'|h', IRC_BOLD), # highlight, use b... | {"golden_diff": "diff --git a/evennia/server/portal/irc.py b/evennia/server/portal/irc.py\n--- a/evennia/server/portal/irc.py\n+++ b/evennia/server/portal/irc.py\n@@ -93,6 +93,7 @@\n (r'|_', \" \"), # space\n (r'|*', \"\"), # invert\n (r'|^', \"\"), # blinking text\n+ (r'|h', IR... |
gh_patches_debug_754 | rasdani/github-patches | git_diff | coala__coala-bears-310 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
GitCommitBear: body_line_length shall be 72 and not 73
The standard git commit guidelines suggest wrapping the body at 72 chars. So just replace the default of 73 with 72.
--- END ISSUE ---
Below are some ... | diff --git a/bears/vcs/git/GitCommitBear.py b/bears/vcs/git/GitCommitBear.py
--- a/bears/vcs/git/GitCommitBear.py
+++ b/bears/vcs/git/GitCommitBear.py
@@ -19,7 +19,7 @@
def run(self,
shortlog_length: int=50,
- body_line_length: int=73,
+ body_line_length: int=72,
f... | {"golden_diff": "diff --git a/bears/vcs/git/GitCommitBear.py b/bears/vcs/git/GitCommitBear.py\n--- a/bears/vcs/git/GitCommitBear.py\n+++ b/bears/vcs/git/GitCommitBear.py\n@@ -19,7 +19,7 @@\n \n def run(self,\n shortlog_length: int=50,\n- body_line_length: int=73,\n+ body_line_lengt... |
gh_patches_debug_755 | rasdani/github-patches | git_diff | mars-project__mars-1462 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[BUG] `astype` cannot accept ExtensionDtype
<!--
Thank you for your contribution!
Please review https://github.com/mars-project/mars/blob/master/CONTRIBUTING.rst before opening an issue.
-->
**Describ... | diff --git a/mars/dataframe/arrays.py b/mars/dataframe/arrays.py
--- a/mars/dataframe/arrays.py
+++ b/mars/dataframe/arrays.py
@@ -157,6 +157,9 @@
for x in chunk.buffers()
if x is not None)
+ def memory_usage(self, deep=True) -> int:
+ return self.nbytes
+
@stati... | {"golden_diff": "diff --git a/mars/dataframe/arrays.py b/mars/dataframe/arrays.py\n--- a/mars/dataframe/arrays.py\n+++ b/mars/dataframe/arrays.py\n@@ -157,6 +157,9 @@\n for x in chunk.buffers()\n if x is not None)\n \n+ def memory_usage(self, deep=True) -> int:\n+ return ... |
gh_patches_debug_756 | rasdani/github-patches | git_diff | netket__netket-506 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
ExactSampler is not resetting at construction time
Exact Sampler should call Reset at construction time
--- END ISSUE ---
Below are some code segments, each from a relevant file. One or more of these fil... | diff --git a/netket/sampler/exact_sampler.py b/netket/sampler/exact_sampler.py
--- a/netket/sampler/exact_sampler.py
+++ b/netket/sampler/exact_sampler.py
@@ -33,6 +33,7 @@
else:
self.hilbert = machine.hilbert
self._machine_pow = 2.0
+ self.reset()
def reset(self, init_rando... | {"golden_diff": "diff --git a/netket/sampler/exact_sampler.py b/netket/sampler/exact_sampler.py\n--- a/netket/sampler/exact_sampler.py\n+++ b/netket/sampler/exact_sampler.py\n@@ -33,6 +33,7 @@\n else:\n self.hilbert = machine.hilbert\n self._machine_pow = 2.0\n+ self.reset()\n \n ... |
gh_patches_debug_757 | rasdani/github-patches | git_diff | pymodbus-dev__pymodbus-1090 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
ModbusRtuFramer object is not callable
<!--
Please use the Pymodbus gitter channel at https://gitter.im/pymodbus_dev/Lobby or Stack Overflow(tag [pymodbus](https://stackoverflow.com/questions/tagged/pymodbus... | diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
if __name__ == "__main__":
- asyncio.run(run_async_server("."), debug=True)
+ asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/e... | {"golden_diff": "diff --git a/examples/server_async.py b/examples/server_async.py\n--- a/examples/server_async.py\n+++ b/examples/server_async.py\n@@ -313,4 +313,4 @@\n \n \n if __name__ == \"__main__\":\n- asyncio.run(run_async_server(\".\"), debug=True)\n+ asyncio.run(run_async_server(), debug=True)\ndiff --git... |
gh_patches_debug_758 | rasdani/github-patches | git_diff | modin-project__modin-3237 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Documentation broken link
### System information
- **OS Platform and Distribution (e.g., Linux Ubuntu 16.04)**: Any
- **Modin version**: 6c23a23f3b4d2d83d57219ec8a0c94f6932f259a
<!--
You can obtain the ... | diff --git a/modin/engines/base/io/io.py b/modin/engines/base/io/io.py
--- a/modin/engines/base/io/io.py
+++ b/modin/engines/base/io/io.py
@@ -266,7 +266,7 @@
return pd_obj
@classmethod
- @_inherit_docstrings(pandas.read_json, apilink="pandas.read_json")
+ @_inherit_docstrings(pandas.read_json, ap... | {"golden_diff": "diff --git a/modin/engines/base/io/io.py b/modin/engines/base/io/io.py\n--- a/modin/engines/base/io/io.py\n+++ b/modin/engines/base/io/io.py\n@@ -266,7 +266,7 @@\n return pd_obj\n \n @classmethod\n- @_inherit_docstrings(pandas.read_json, apilink=\"pandas.read_json\")\n+ @_inherit_docs... |
gh_patches_debug_759 | rasdani/github-patches | git_diff | microsoft__nni-4787 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
`nni.trace` + `pickle` don't play well together under non-linux envs
Test case:
```python
def test_multiprocessing_dataloader():
# check whether multi-processing works
# it's possible to have pi... | diff --git a/docs/source/conf.py b/docs/source/conf.py
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -115,9 +115,6 @@
# Set bibliography style
bibtex_default_style = 'plain'
-# Bibliography files
-bibtex_bibfiles = ['refs.bib']
-
# Sphinx gallery examples
sphinx_gallery_conf = {
'examples_dirs': '..... | {"golden_diff": "diff --git a/docs/source/conf.py b/docs/source/conf.py\n--- a/docs/source/conf.py\n+++ b/docs/source/conf.py\n@@ -115,9 +115,6 @@\n # Set bibliography style\n bibtex_default_style = 'plain'\n \n-# Bibliography files\n-bibtex_bibfiles = ['refs.bib']\n-\n # Sphinx gallery examples\n sphinx_gallery_conf =... |
gh_patches_debug_760 | rasdani/github-patches | git_diff | beeware__toga-1009 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Toga scrollbar breaks with macOS Natural Scrolling preference
## Expected Behavior
Scrolling in Toga windows should be reflected in the scrollbar.
## Current Behavior
When debugging the Toga ``DetailedLi... | diff --git a/src/cocoa/toga_cocoa/widgets/internal/refresh.py b/src/cocoa/toga_cocoa/widgets/internal/refresh.py
--- a/src/cocoa/toga_cocoa/widgets/internal/refresh.py
+++ b/src/cocoa/toga_cocoa/widgets/internal/refresh.py
@@ -48,10 +48,6 @@
return constrained
- @objc_method
- def isFlipped(self):
- ... | {"golden_diff": "diff --git a/src/cocoa/toga_cocoa/widgets/internal/refresh.py b/src/cocoa/toga_cocoa/widgets/internal/refresh.py\n--- a/src/cocoa/toga_cocoa/widgets/internal/refresh.py\n+++ b/src/cocoa/toga_cocoa/widgets/internal/refresh.py\n@@ -48,10 +48,6 @@\n \n return constrained\n \n- @objc_method\n- ... |
gh_patches_debug_761 | rasdani/github-patches | git_diff | vllm-project__vllm-3176 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
why vllm==0.3.3 need to access google

--- END ISSUE ---
Below are some code segments, each... | diff --git a/vllm/utils.py b/vllm/utils.py
--- a/vllm/utils.py
+++ b/vllm/utils.py
@@ -173,7 +173,7 @@
# try ipv4
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
try:
- s.connect(("dns.google", 80)) # Doesn't need to be reachable
+ s.connect(("8.8.8.8", 80)) # Doesn't need to be reac... | {"golden_diff": "diff --git a/vllm/utils.py b/vllm/utils.py\n--- a/vllm/utils.py\n+++ b/vllm/utils.py\n@@ -173,7 +173,7 @@\n # try ipv4\n s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)\n try:\n- s.connect((\"dns.google\", 80)) # Doesn't need to be reachable\n+ s.connect((\"8.8.8.8\", 80... |
gh_patches_debug_762 | rasdani/github-patches | git_diff | GoogleCloudPlatform__PerfKitBenchmarker-556 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
BaseVirtualMachine.__str__() method returns non-string object in some cases.
I intentionally tried to throw an exception before running a test when one of the conditions was not met (see `_CheckPrerequisites... | diff --git a/perfkitbenchmarker/virtual_machine.py b/perfkitbenchmarker/virtual_machine.py
--- a/perfkitbenchmarker/virtual_machine.py
+++ b/perfkitbenchmarker/virtual_machine.py
@@ -123,7 +123,9 @@
self.ip_address, self.internal_ip)
def __str__(self):
- return self.ip_address
+ if self.ip_address:
... | {"golden_diff": "diff --git a/perfkitbenchmarker/virtual_machine.py b/perfkitbenchmarker/virtual_machine.py\n--- a/perfkitbenchmarker/virtual_machine.py\n+++ b/perfkitbenchmarker/virtual_machine.py\n@@ -123,7 +123,9 @@\n self.ip_address, self.internal_ip)\n \n def __str__(self):\n- return self.ip_address\n... |
gh_patches_debug_763 | rasdani/github-patches | git_diff | scrapy__scrapy-3825 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Issue with Twisted and Python 3.4
Twisted had a patch 3 days ago and it's causing test suite to fail for py34 environment.
Twisted , according to their Readme, support Python 3.5+. This needs to be fixed i... | diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -65,7 +65,8 @@
],
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
install_requires=[
- 'Twisted>=13.1.0',
+ 'Twisted>=13.1.0;python_version!="3.4"',
+ 'Twisted>=13.1.0,<=19.2.0;python_version=="3.4"',
... | {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -65,7 +65,8 @@\n ],\n python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',\n install_requires=[\n- 'Twisted>=13.1.0',\n+ 'Twisted>=13.1.0;python_version!=\"3.4\"',\n+ 'Twisted>=13.1.0,<=19.2.0;... |
gh_patches_debug_764 | rasdani/github-patches | git_diff | sunpy__sunpy-7594 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Support the use of SunPyBaseCoordinateFrame outside of core library
### Describe the feature
* It would be useful to be able to use `SunPyBaseCoordinateFrame` outside of sunpy but currently doing so is alk... | diff --git a/sunpy/coordinates/wcs_utils.py b/sunpy/coordinates/wcs_utils.py
--- a/sunpy/coordinates/wcs_utils.py
+++ b/sunpy/coordinates/wcs_utils.py
@@ -191,6 +191,9 @@
xcoord = 'HGLN' + '-' + projection
ycoord = 'HGLT' + '-' + projection
wcs.wcs.cunit = ['deg', 'deg']
+ ... | {"golden_diff": "diff --git a/sunpy/coordinates/wcs_utils.py b/sunpy/coordinates/wcs_utils.py\n--- a/sunpy/coordinates/wcs_utils.py\n+++ b/sunpy/coordinates/wcs_utils.py\n@@ -191,6 +191,9 @@\n xcoord = 'HGLN' + '-' + projection\n ycoord = 'HGLT' + '-' + projection\n wcs.wcs.cunit = [... |
gh_patches_debug_765 | rasdani/github-patches | git_diff | zestedesavoir__zds-site-5120 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Erreur 403 après recherche dans la bibliothèque
> Bonjour,
>
> Je tombe sur une erreur 403 "Vous n’avez pas les droits suffisants pour accéder à cette page." après une recherche dans les cours présents dan... | diff --git a/zds/searchv2/forms.py b/zds/searchv2/forms.py
--- a/zds/searchv2/forms.py
+++ b/zds/searchv2/forms.py
@@ -31,7 +31,12 @@
models = forms.MultipleChoiceField(
label='',
- widget=forms.CheckboxSelectMultiple,
+ widget=forms.CheckboxSelectMultiple(
+ attrs={
+ ... | {"golden_diff": "diff --git a/zds/searchv2/forms.py b/zds/searchv2/forms.py\n--- a/zds/searchv2/forms.py\n+++ b/zds/searchv2/forms.py\n@@ -31,7 +31,12 @@\n \n models = forms.MultipleChoiceField(\n label='',\n- widget=forms.CheckboxSelectMultiple,\n+ widget=forms.CheckboxSelectMultiple(\n+ ... |
gh_patches_debug_766 | rasdani/github-patches | git_diff | LibraryOfCongress__concordia-307 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Images in an item should be sorted sequentially not alphabetically
**What behavior did you observe? Please describe the bug**
Items with more than 10 or more than 100 images don't display in the correct orde... | diff --git a/concordia/views.py b/concordia/views.py
--- a/concordia/views.py
+++ b/concordia/views.py
@@ -266,7 +266,7 @@
slug=self.kwargs["slug"],
)
- asset_qs = self.item.asset_set.all()
+ asset_qs = self.item.asset_set.all().order_by("sequence")
asset_qs = asset_qs.sel... | {"golden_diff": "diff --git a/concordia/views.py b/concordia/views.py\n--- a/concordia/views.py\n+++ b/concordia/views.py\n@@ -266,7 +266,7 @@\n slug=self.kwargs[\"slug\"],\n )\n \n- asset_qs = self.item.asset_set.all()\n+ asset_qs = self.item.asset_set.all().order_by(\"sequence\")\n ... |
gh_patches_debug_767 | rasdani/github-patches | git_diff | pwndbg__pwndbg-953 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
heap command failed on glibc 2.34
### Description
I try to use pwndbg to inspect heap in the new glibc 2.34 (Ubuntu GLIBC 2.34-0ubuntu1).
But it shows the message below:
```python3
pwndbg> heap
'heap... | diff --git a/pwndbg/heap/ptmalloc.py b/pwndbg/heap/ptmalloc.py
--- a/pwndbg/heap/ptmalloc.py
+++ b/pwndbg/heap/ptmalloc.py
@@ -549,6 +549,8 @@
def is_initialized(self):
addr = pwndbg.symbol.address('__libc_malloc_initialized')
+ if addr is None:
+ addr = pwndbg.symbol.address('__malloc... | {"golden_diff": "diff --git a/pwndbg/heap/ptmalloc.py b/pwndbg/heap/ptmalloc.py\n--- a/pwndbg/heap/ptmalloc.py\n+++ b/pwndbg/heap/ptmalloc.py\n@@ -549,6 +549,8 @@\n \n def is_initialized(self):\n addr = pwndbg.symbol.address('__libc_malloc_initialized')\n+ if addr is None:\n+ addr = pwndbg... |
gh_patches_debug_768 | rasdani/github-patches | git_diff | shuup__shuup-1665 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Add option to remove coupon code from basket
There isn't option to remove coupon code from basket. Should likely be done with basket command at basket view [this](https://github.com/shuup/shuup/blob/master/sh... | diff --git a/shuup/front/basket/commands.py b/shuup/front/basket/commands.py
--- a/shuup/front/basket/commands.py
+++ b/shuup/front/basket/commands.py
@@ -7,5 +7,5 @@
# LICENSE file in the root directory of this source tree.
from shuup.core.basket.commands import ( # noqa
handle_add, handle_add_campaign_code, h... | {"golden_diff": "diff --git a/shuup/front/basket/commands.py b/shuup/front/basket/commands.py\n--- a/shuup/front/basket/commands.py\n+++ b/shuup/front/basket/commands.py\n@@ -7,5 +7,5 @@\n # LICENSE file in the root directory of this source tree.\n from shuup.core.basket.commands import ( # noqa\n handle_add, hand... |
gh_patches_debug_769 | rasdani/github-patches | git_diff | GeotrekCE__Geotrek-admin-2598 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Bug affichage intervention selon niveau de zoom
Bonjour, sur la 2.49.0 selon le niveau de zoom sélectionné, certaines interventions apparaissent et disparaissent. Faire glisser la carte provoque aussi ce comp... | diff --git a/geotrek/maintenance/filters.py b/geotrek/maintenance/filters.py
--- a/geotrek/maintenance/filters.py
+++ b/geotrek/maintenance/filters.py
@@ -25,6 +25,9 @@
def filter(self, qs, values):
if not values:
return qs
+ if not isinstance(values, list):
+ values = [valu... | {"golden_diff": "diff --git a/geotrek/maintenance/filters.py b/geotrek/maintenance/filters.py\n--- a/geotrek/maintenance/filters.py\n+++ b/geotrek/maintenance/filters.py\n@@ -25,6 +25,9 @@\n def filter(self, qs, values):\n if not values:\n return qs\n+ if not isinstance(values, list):\n+ ... |
gh_patches_debug_770 | rasdani/github-patches | git_diff | ansible-collections__community.general-4838 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
redhat_subscription module broken with RHEL 9
### Summary
When I try to ensure that a system does not have a subscription active, I get a failed task for a RHEL 9 system.
Example:
```yaml
- name: Ensu... | diff --git a/plugins/modules/packaging/os/redhat_subscription.py b/plugins/modules/packaging/os/redhat_subscription.py
--- a/plugins/modules/packaging/os/redhat_subscription.py
+++ b/plugins/modules/packaging/os/redhat_subscription.py
@@ -468,7 +468,7 @@
items = ["--all"]
if items:
- ... | {"golden_diff": "diff --git a/plugins/modules/packaging/os/redhat_subscription.py b/plugins/modules/packaging/os/redhat_subscription.py\n--- a/plugins/modules/packaging/os/redhat_subscription.py\n+++ b/plugins/modules/packaging/os/redhat_subscription.py\n@@ -468,7 +468,7 @@\n items = [\"--all\"]\n \n ... |
gh_patches_debug_771 | rasdani/github-patches | git_diff | joke2k__faker-305 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Fail to run the tests
Another problem I have when building the RPM is when I try to run the tests. This is in a minimal build environment, so maybe some library is missing. I have tried to use PYTHONPATH like... | diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -49,7 +49,7 @@
author_email='joke2k@gmail.com',
url='http://github.com/joke2k/faker',
license='MIT License',
- packages=find_packages(exclude=['*.tests']),
+ packages=find_packages(),
platforms=["any"],
test_suite='faker.te... | {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -49,7 +49,7 @@\n author_email='joke2k@gmail.com',\n url='http://github.com/joke2k/faker',\n license='MIT License',\n- packages=find_packages(exclude=['*.tests']),\n+ packages=find_packages(),\n platforms=[\"any\"... |
gh_patches_debug_772 | rasdani/github-patches | git_diff | scikit-image__scikit-image-1380 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
viewer_examples/plugins/watershed_demo.py: AttributeError 'BlitManager' object has no attribute 'artist'
The demo seems to work, but upon pressing `OK`, this error is printet to console:
```
----------------... | diff --git a/skimage/viewer/viewers/core.py b/skimage/viewer/viewers/core.py
--- a/skimage/viewer/viewers/core.py
+++ b/skimage/viewer/viewers/core.py
@@ -60,7 +60,7 @@
def remove_artists(self, artists):
for artist in artists:
- self.artist.remove(artist)
+ self.artists.remove(arti... | {"golden_diff": "diff --git a/skimage/viewer/viewers/core.py b/skimage/viewer/viewers/core.py\n--- a/skimage/viewer/viewers/core.py\n+++ b/skimage/viewer/viewers/core.py\n@@ -60,7 +60,7 @@\n \n def remove_artists(self, artists):\n for artist in artists:\n- self.artist.remove(artist)\n+ ... |
gh_patches_debug_773 | rasdani/github-patches | git_diff | pyro-ppl__pyro-1704 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
make test: no attribute 'optim' error in 'examples/contrib/oed/ab_test.py'
### Issue Description
On the latest dev branch, `make test` gives the following error:
_
examples/contrib/oed/ab_test.py:12: in... | diff --git a/examples/contrib/oed/gp_bayes_opt.py b/examples/contrib/oed/gp_bayes_opt.py
--- a/examples/contrib/oed/gp_bayes_opt.py
+++ b/examples/contrib/oed/gp_bayes_opt.py
@@ -3,9 +3,9 @@
import torch.optim as optim
from torch.distributions import transform_to
-import pyro
import pyro.contrib.gp as gp
from pyr... | {"golden_diff": "diff --git a/examples/contrib/oed/gp_bayes_opt.py b/examples/contrib/oed/gp_bayes_opt.py\n--- a/examples/contrib/oed/gp_bayes_opt.py\n+++ b/examples/contrib/oed/gp_bayes_opt.py\n@@ -3,9 +3,9 @@\n import torch.optim as optim\n from torch.distributions import transform_to\n \n-import pyro\n import pyro.c... |
gh_patches_debug_774 | rasdani/github-patches | git_diff | data-for-change__anyway-1848 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Fix walla scraping - see test_scrape_sanity_online_walla
--- END ISSUE ---
Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `a... | diff --git a/anyway/parsers/rss_sites.py b/anyway/parsers/rss_sites.py
--- a/anyway/parsers/rss_sites.py
+++ b/anyway/parsers/rss_sites.py
@@ -8,7 +8,7 @@
# For some reason there's html here
description = BeautifulSoup(item_rss["summary"], features="lxml").text
- author = html_soup.find("div", class_="au... | {"golden_diff": "diff --git a/anyway/parsers/rss_sites.py b/anyway/parsers/rss_sites.py\n--- a/anyway/parsers/rss_sites.py\n+++ b/anyway/parsers/rss_sites.py\n@@ -8,7 +8,7 @@\n # For some reason there's html here\n description = BeautifulSoup(item_rss[\"summary\"], features=\"lxml\").text\n \n- author = html... |
gh_patches_debug_775 | rasdani/github-patches | git_diff | holoviz__panel-3326 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
CrossSelector does not respect disabled=True
#### ALL software version info
panel = "0.13.0a46"
#### Description of expected behavior and the observed behavior
When setting `disabled=True`, the CrossSe... | diff --git a/panel/widgets/select.py b/panel/widgets/select.py
--- a/panel/widgets/select.py
+++ b/panel/widgets/select.py
@@ -636,6 +636,8 @@
self._selections = {False: [], True: []}
self._query = {False: '', True: ''}
+ self._update_disabled()
+
@param.depends('size', watch=True)
... | {"golden_diff": "diff --git a/panel/widgets/select.py b/panel/widgets/select.py\n--- a/panel/widgets/select.py\n+++ b/panel/widgets/select.py\n@@ -636,6 +636,8 @@\n self._selections = {False: [], True: []}\n self._query = {False: '', True: ''}\n \n+ self._update_disabled()\n+\n @param.depends... |
gh_patches_debug_776 | rasdani/github-patches | git_diff | apache__airflow-1296 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Inconsistent 'owner' field in examples
Dear Airflow Maintainers,
### Environment
- Version of Airflow (e.g. a release version, running your own fork, running off master -- provide a git log snippet): **1.7.0*... | diff --git a/airflow/example_dags/example_trigger_controller_dag.py b/airflow/example_dags/example_trigger_controller_dag.py
--- a/airflow/example_dags/example_trigger_controller_dag.py
+++ b/airflow/example_dags/example_trigger_controller_dag.py
@@ -37,7 +37,7 @@
# Define the DAG
dag = DAG(dag_id='example_trigger_... | {"golden_diff": "diff --git a/airflow/example_dags/example_trigger_controller_dag.py b/airflow/example_dags/example_trigger_controller_dag.py\n--- a/airflow/example_dags/example_trigger_controller_dag.py\n+++ b/airflow/example_dags/example_trigger_controller_dag.py\n@@ -37,7 +37,7 @@\n \n # Define the DAG\n dag = DAG(d... |
gh_patches_debug_777 | rasdani/github-patches | git_diff | spack__spack-1688 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
`spack reindex` broke
I see this:
```
$ spack reindex
Traceback (most recent call last):
File "/Users/eschnett/src/spack/bin/spack", line 179, in <module>
main()
File "/Users/eschnett/src/spack/bin/s... | diff --git a/lib/spack/spack/database.py b/lib/spack/spack/database.py
--- a/lib/spack/spack/database.py
+++ b/lib/spack/spack/database.py
@@ -436,7 +436,7 @@
self._data[key] = InstallRecord(spec.copy(), path, installed)
- for dep in spec.dependencies('link'):
+ for dep in spec.de... | {"golden_diff": "diff --git a/lib/spack/spack/database.py b/lib/spack/spack/database.py\n--- a/lib/spack/spack/database.py\n+++ b/lib/spack/spack/database.py\n@@ -436,7 +436,7 @@\n \n self._data[key] = InstallRecord(spec.copy(), path, installed)\n \n- for dep in spec.dependencies('link'):\n+ ... |
gh_patches_debug_778 | rasdani/github-patches | git_diff | jupyterhub__jupyterhub-364 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
404 on single user notebook server anytime I restart jupyterhub
I just deployed jupyterhub from scratch using my ansible scripts this morning. The script are unchanged from 2-3 weeks ago when I did it previou... | diff --git a/jupyterhub/handlers/pages.py b/jupyterhub/handlers/pages.py
--- a/jupyterhub/handlers/pages.py
+++ b/jupyterhub/handlers/pages.py
@@ -71,7 +71,7 @@
self.finish(html)
else:
# not running, no form. Trigger spawn.
- url = url_path_join(self.base_url, 'users', user... | {"golden_diff": "diff --git a/jupyterhub/handlers/pages.py b/jupyterhub/handlers/pages.py\n--- a/jupyterhub/handlers/pages.py\n+++ b/jupyterhub/handlers/pages.py\n@@ -71,7 +71,7 @@\n self.finish(html)\n else:\n # not running, no form. Trigger spawn.\n- url = url_path_join(self... |
gh_patches_debug_779 | rasdani/github-patches | git_diff | microsoft__torchgeo-424 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
CDL dataset error
When calling `ds = CDL(root, download=True)`, the following error occurs: `rasterio._err.CPLE_AppDefinedError: The transformation is already "north up" or a transformation between pixel/line... | diff --git a/torchgeo/datasets/cdl.py b/torchgeo/datasets/cdl.py
--- a/torchgeo/datasets/cdl.py
+++ b/torchgeo/datasets/cdl.py
@@ -31,7 +31,7 @@
* https://www.nass.usda.gov/Research_and_Science/Cropland/sarsfaqs2.php#Section1_14.0
""" # noqa: E501
- filename_glob = "*_30m_cdls.*"
+ filename_glob = "*... | {"golden_diff": "diff --git a/torchgeo/datasets/cdl.py b/torchgeo/datasets/cdl.py\n--- a/torchgeo/datasets/cdl.py\n+++ b/torchgeo/datasets/cdl.py\n@@ -31,7 +31,7 @@\n * https://www.nass.usda.gov/Research_and_Science/Cropland/sarsfaqs2.php#Section1_14.0\n \"\"\" # noqa: E501\n \n- filename_glob = \"*_30m_cdl... |
gh_patches_debug_780 | rasdani/github-patches | git_diff | scikit-hep__pyhf-483 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
TensorFlow einsum behavior change
# Description
In the test suite the `test_einsum[tensorflow]` [test is failing](https://travis-ci.org/diana-hep/pyhf/jobs/548493214#L689-L714) for `tensorflow` `v1.14.0`.
... | diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -12,7 +12,7 @@
extras_require = {
'tensorflow': [
- 'tensorflow~=1.13',
+ 'tensorflow~=1.14',
'tensorflow-probability~=0.5',
'numpy<=1.14.5,>=1.14.0', # Lower of 1.14.0 instead of 1.13.3 to ensure doctest pass
... | {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -12,7 +12,7 @@\n \n extras_require = {\n 'tensorflow': [\n- 'tensorflow~=1.13',\n+ 'tensorflow~=1.14',\n 'tensorflow-probability~=0.5',\n 'numpy<=1.14.5,>=1.14.0', # Lower of 1.14.0 instead of 1.13.3... |
gh_patches_debug_781 | rasdani/github-patches | git_diff | netbox-community__netbox-13247 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Unable to Align Markdown Tables Values
### NetBox version
3.5.1 (also tested on 3.5.4)
### Python version
3.10
### Steps to Reproduce
1. Edit any object that supports the Comments field
2. Add... | diff --git a/netbox/utilities/utils.py b/netbox/utilities/utils.py
--- a/netbox/utilities/utils.py
+++ b/netbox/utilities/utils.py
@@ -519,6 +519,8 @@
"h1": ["id"], "h2": ["id"], "h3": ["id"], "h4": ["id"], "h5": ["id"], "h6": ["id"],
"a": ["href", "title"],
"img": ["src", "title", "alt"],
+ ... | {"golden_diff": "diff --git a/netbox/utilities/utils.py b/netbox/utilities/utils.py\n--- a/netbox/utilities/utils.py\n+++ b/netbox/utilities/utils.py\n@@ -519,6 +519,8 @@\n \"h1\": [\"id\"], \"h2\": [\"id\"], \"h3\": [\"id\"], \"h4\": [\"id\"], \"h5\": [\"id\"], \"h6\": [\"id\"],\n \"a\": [\"href\", \"t... |
gh_patches_debug_782 | rasdani/github-patches | git_diff | adamchainz__django-cors-headers-200 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Support "null" origin
A PR for this (#101) was recently rejected with the comment "I couldn't find a source that said setting `Origin` to `null` is part of the standard". I want to at least document that this... | diff --git a/corsheaders/middleware.py b/corsheaders/middleware.py
--- a/corsheaders/middleware.py
+++ b/corsheaders/middleware.py
@@ -145,6 +145,7 @@
def origin_found_in_white_lists(self, origin, url):
return (
url.netloc in conf.CORS_ORIGIN_WHITELIST or
+ (origin == 'null' and or... | {"golden_diff": "diff --git a/corsheaders/middleware.py b/corsheaders/middleware.py\n--- a/corsheaders/middleware.py\n+++ b/corsheaders/middleware.py\n@@ -145,6 +145,7 @@\n def origin_found_in_white_lists(self, origin, url):\n return (\n url.netloc in conf.CORS_ORIGIN_WHITELIST or\n+ ... |
gh_patches_debug_783 | rasdani/github-patches | git_diff | StackStorm__st2-5038 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Web Hook Rules check http headers in case sensitive manner
## SUMMARY
The case used for the header name in trigger.headers[<headername>] in a web-hook rule is treated in a case sensitive manner. HTTP heade... | diff --git a/st2api/st2api/controllers/v1/webhooks.py b/st2api/st2api/controllers/v1/webhooks.py
--- a/st2api/st2api/controllers/v1/webhooks.py
+++ b/st2api/st2api/controllers/v1/webhooks.py
@@ -172,6 +172,7 @@
payload = {}
payload["headers"] = headers
+ payload["headers_lower"] =... | {"golden_diff": "diff --git a/st2api/st2api/controllers/v1/webhooks.py b/st2api/st2api/controllers/v1/webhooks.py\n--- a/st2api/st2api/controllers/v1/webhooks.py\n+++ b/st2api/st2api/controllers/v1/webhooks.py\n@@ -172,6 +172,7 @@\n payload = {}\n \n payload[\"headers\"] = headers\n+ ... |
gh_patches_debug_784 | rasdani/github-patches | git_diff | enthought__chaco-904 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Wx BitmapFromBufferRGBA deprecated in favor of Bitmap.FromBufferRGBA
```
c:\users\rporuri\work\github\ets\chaco\chaco\tools\toolbars\toolbar_buttons.py:190: wxPyDeprecationWarning: Call to deprecated item Bi... | diff --git a/chaco/tools/toolbars/toolbar_buttons.py b/chaco/tools/toolbars/toolbar_buttons.py
--- a/chaco/tools/toolbars/toolbar_buttons.py
+++ b/chaco/tools/toolbars/toolbar_buttons.py
@@ -196,7 +196,7 @@
def _perform_wx(self, width, height, gc):
import wx
- bitmap = wx.BitmapFromBufferRGBA(
+ ... | {"golden_diff": "diff --git a/chaco/tools/toolbars/toolbar_buttons.py b/chaco/tools/toolbars/toolbar_buttons.py\n--- a/chaco/tools/toolbars/toolbar_buttons.py\n+++ b/chaco/tools/toolbars/toolbar_buttons.py\n@@ -196,7 +196,7 @@\n def _perform_wx(self, width, height, gc):\n import wx\n \n- bitmap = wx.... |
gh_patches_debug_785 | rasdani/github-patches | git_diff | numpy__numpy-13449 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Azure no longer passes on 32 bit linux.
See https://dev.azure.com/numpy/numpy/_build/results?buildId=3152. Probably related to the failing PR #13336. @mattip Could you take a look?
--- END ISSUE ---
Bel... | diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -79,7 +79,7 @@
try:
out = _minimal_ext_cmd(['git', 'rev-parse', 'HEAD'])
GIT_REVISION = out.strip().decode('ascii')
- except subprocess.SubprocessError:
+ except (subprocess.SubprocessError, OSError):
GIT_REVISION = ... | {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -79,7 +79,7 @@\n try:\n out = _minimal_ext_cmd(['git', 'rev-parse', 'HEAD'])\n GIT_REVISION = out.strip().decode('ascii')\n- except subprocess.SubprocessError:\n+ except (subprocess.SubprocessError, OSError):... |
gh_patches_debug_786 | rasdani/github-patches | git_diff | lutris__lutris-2319 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[Flatpak] 'libgamemodeauto.so' from LD_PRELOAD cannot be preloaded
**Describe the bug**
The full path of libgamemodeauto.so is hard-coded. For this reason, [Feral's Gamemode does not work when using Flatpa... | diff --git a/lutris/game.py b/lutris/game.py
--- a/lutris/game.py
+++ b/lutris/game.py
@@ -470,7 +470,7 @@
path
for path in [
env.get("LD_PRELOAD"),
- "/usr/$LIB/libgamemodeauto.so",
+ "libgamemodeauto.so",
... | {"golden_diff": "diff --git a/lutris/game.py b/lutris/game.py\n--- a/lutris/game.py\n+++ b/lutris/game.py\n@@ -470,7 +470,7 @@\n path\n for path in [\n env.get(\"LD_PRELOAD\"),\n- \"/usr/$LIB/libgamemodeauto.so\",\n+ ... |
gh_patches_debug_787 | rasdani/github-patches | git_diff | PaddlePaddle__models-399 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
使用 generate_sequence_by_rnn_lm 进行train的时候报错
在 generate_sequence_by_rnn_lm 这个模型下运行 train.py 的时候,当测试文件的路径不存在的时候会报错。错误的原因是把conf写成了config。错误行数是train.py 的112行
--- END ISSUE ---
Below are some code segments, each... | diff --git a/generate_sequence_by_rnn_lm/train.py b/generate_sequence_by_rnn_lm/train.py
--- a/generate_sequence_by_rnn_lm/train.py
+++ b/generate_sequence_by_rnn_lm/train.py
@@ -109,7 +109,7 @@
test_reader = paddle.batch(
paddle.reader.shuffle(
reader.rnn_reader(**reader_args), b... | {"golden_diff": "diff --git a/generate_sequence_by_rnn_lm/train.py b/generate_sequence_by_rnn_lm/train.py\n--- a/generate_sequence_by_rnn_lm/train.py\n+++ b/generate_sequence_by_rnn_lm/train.py\n@@ -109,7 +109,7 @@\n test_reader = paddle.batch(\n paddle.reader.shuffle(\n reader.rnn_r... |
gh_patches_debug_788 | rasdani/github-patches | git_diff | huggingface__diffusers-2003 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
issue with DDIM scheduler for google/ddpm-celebahq-256 example
### Describe the bug
Referring to the example "Unconditional Diffusion with discrete scheduler" at https://github.com/huggingface/diffusers#ru... | diff --git a/src/diffusers/pipelines/pndm/pipeline_pndm.py b/src/diffusers/pipelines/pndm/pipeline_pndm.py
--- a/src/diffusers/pipelines/pndm/pipeline_pndm.py
+++ b/src/diffusers/pipelines/pndm/pipeline_pndm.py
@@ -39,6 +39,9 @@
def __init__(self, unet: UNet2DModel, scheduler: PNDMScheduler):
super().__... | {"golden_diff": "diff --git a/src/diffusers/pipelines/pndm/pipeline_pndm.py b/src/diffusers/pipelines/pndm/pipeline_pndm.py\n--- a/src/diffusers/pipelines/pndm/pipeline_pndm.py\n+++ b/src/diffusers/pipelines/pndm/pipeline_pndm.py\n@@ -39,6 +39,9 @@\n \n def __init__(self, unet: UNet2DModel, scheduler: PNDMScheduler... |
gh_patches_debug_789 | rasdani/github-patches | git_diff | microsoft__torchgeo-80 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Determine minimum supported dependency versions
Before releasing, we should determine the minimum supported version of each dependency. We should also consider a test with this version just to make sure it do... | diff --git a/docs/conf.py b/docs/conf.py
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -46,6 +46,10 @@
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = ["_build"]
+# Sphinx 3.0+ required for:
+# autodoc_typehints = "description"
+needs_sphinx = "3.0"
+
nitpicky = True
nitpick_ignore... | {"golden_diff": "diff --git a/docs/conf.py b/docs/conf.py\n--- a/docs/conf.py\n+++ b/docs/conf.py\n@@ -46,6 +46,10 @@\n # This pattern also affects html_static_path and html_extra_path.\n exclude_patterns = [\"_build\"]\n \n+# Sphinx 3.0+ required for:\n+# autodoc_typehints = \"description\"\n+needs_sphinx = \"3.0\"\n+... |
gh_patches_debug_790 | rasdani/github-patches | git_diff | sanic-org__sanic-2635 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
AttributeError: 'NoneType' object has no attribute 'share' when using the async server
**Describe the bug**
I'm trying to run a slightly modified version of https://github.com/sanic-org/sanic/blob/main/examp... | diff --git a/sanic/server/runners.py b/sanic/server/runners.py
--- a/sanic/server/runners.py
+++ b/sanic/server/runners.py
@@ -200,7 +200,7 @@
asyncio_server_kwargs = (
asyncio_server_kwargs if asyncio_server_kwargs else {}
)
- if OS_IS_WINDOWS:
+ if OS_IS_WINDOWS and sock:
pid = os.ge... | {"golden_diff": "diff --git a/sanic/server/runners.py b/sanic/server/runners.py\n--- a/sanic/server/runners.py\n+++ b/sanic/server/runners.py\n@@ -200,7 +200,7 @@\n asyncio_server_kwargs = (\n asyncio_server_kwargs if asyncio_server_kwargs else {}\n )\n- if OS_IS_WINDOWS:\n+ if OS_IS_WINDOWS and s... |
gh_patches_debug_791 | rasdani/github-patches | git_diff | DDMAL__CantusDB-1464 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Django debug toolbar is not working
I just noticed that while working in my development environment (devcontainer setup), the Django debug toolbar doesn't show. Perhaps this was as a result of #1454?
--- EN... | diff --git a/django/cantusdb_project/cantusdb/settings.py b/django/cantusdb_project/cantusdb/settings.py
--- a/django/cantusdb_project/cantusdb/settings.py
+++ b/django/cantusdb_project/cantusdb/settings.py
@@ -197,6 +197,9 @@
"debug_toolbar.panels.redirects.RedirectsPanel",
"debug_toolbar.panels.prof... | {"golden_diff": "diff --git a/django/cantusdb_project/cantusdb/settings.py b/django/cantusdb_project/cantusdb/settings.py\n--- a/django/cantusdb_project/cantusdb/settings.py\n+++ b/django/cantusdb_project/cantusdb/settings.py\n@@ -197,6 +197,9 @@\n \"debug_toolbar.panels.redirects.RedirectsPanel\",\n \"... |
gh_patches_debug_792 | rasdani/github-patches | git_diff | google__jax-7879 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Jax PRNGKeyArray.shape is a method, not a property
Was this an intended change?
```python
>>> import jax
>>> jax.config.update('jax_enable_custom_prng', True)
>>> k=jax.random.PRNGKey(0)
>>> k.shape
... | diff --git a/jax/_src/prng.py b/jax/_src/prng.py
--- a/jax/_src/prng.py
+++ b/jax/_src/prng.py
@@ -125,6 +125,7 @@
'deprecated `dtype` attribute of PRNG key arrays', FutureWarning)
return np.uint32
+ @property
def shape(self):
# TODO(frostig): simplify once we always enable_custom_prng
... | {"golden_diff": "diff --git a/jax/_src/prng.py b/jax/_src/prng.py\n--- a/jax/_src/prng.py\n+++ b/jax/_src/prng.py\n@@ -125,6 +125,7 @@\n 'deprecated `dtype` attribute of PRNG key arrays', FutureWarning)\n return np.uint32\n \n+ @property\n def shape(self):\n # TODO(frostig): simplify once we alwa... |
gh_patches_debug_793 | rasdani/github-patches | git_diff | Flexget__Flexget-3314 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[imdb_list] Unknown IMDB type entry received: tvspecial. Skipping
### Expected behaviour:
All entries from `imdb_list` input are accepted. Particularly, entries with type `tvspecial` are treated as movies... | diff --git a/flexget/components/managed_lists/lists/imdb_list.py b/flexget/components/managed_lists/lists/imdb_list.py
--- a/flexget/components/managed_lists/lists/imdb_list.py
+++ b/flexget/components/managed_lists/lists/imdb_list.py
@@ -29,7 +29,7 @@
Base = db_schema.versioned_base('imdb_list', 0)
-MOVIE_TYPES =... | {"golden_diff": "diff --git a/flexget/components/managed_lists/lists/imdb_list.py b/flexget/components/managed_lists/lists/imdb_list.py\n--- a/flexget/components/managed_lists/lists/imdb_list.py\n+++ b/flexget/components/managed_lists/lists/imdb_list.py\n@@ -29,7 +29,7 @@\n \n Base = db_schema.versioned_base('imdb_list... |
gh_patches_debug_794 | rasdani/github-patches | git_diff | sublimelsp__LSP-1281 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Possibility to click on the comment links
Some documentation blocks has links to more complete documentation. It would be interesting to be able to click on these links directly from the popup.
## ACTUAL B... | diff --git a/plugin/core/views.py b/plugin/core/views.py
--- a/plugin/core/views.py
+++ b/plugin/core/views.py
@@ -415,6 +415,11 @@
"hardbreak": False,
"nbsp": False
}
+ },
+ {
+ "pymdownx.magiclink":... | {"golden_diff": "diff --git a/plugin/core/views.py b/plugin/core/views.py\n--- a/plugin/core/views.py\n+++ b/plugin/core/views.py\n@@ -415,6 +415,11 @@\n \"hardbreak\": False,\n \"nbsp\": False\n }\n+ },\n+ {\n+ ... |
gh_patches_debug_795 | rasdani/github-patches | git_diff | pyca__cryptography-2302 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
SSL_renegotiate is not present in OpenSSL bindings
The function 'SSL_renegotiate' is present in OpenSSL but does not appear to be present in the bindings.
--- END ISSUE ---
Below are some code segments, ea... | diff --git a/src/_cffi_src/openssl/ssl.py b/src/_cffi_src/openssl/ssl.py
--- a/src/_cffi_src/openssl/ssl.py
+++ b/src/_cffi_src/openssl/ssl.py
@@ -205,6 +205,7 @@
int SSL_get_error(const SSL *, int);
int SSL_do_handshake(SSL *);
int SSL_shutdown(SSL *);
+int SSL_renegotiate(SSL *);
const char *SSL_get_cipher_list(c... | {"golden_diff": "diff --git a/src/_cffi_src/openssl/ssl.py b/src/_cffi_src/openssl/ssl.py\n--- a/src/_cffi_src/openssl/ssl.py\n+++ b/src/_cffi_src/openssl/ssl.py\n@@ -205,6 +205,7 @@\n int SSL_get_error(const SSL *, int);\n int SSL_do_handshake(SSL *);\n int SSL_shutdown(SSL *);\n+int SSL_renegotiate(SSL *);\n const ch... |
gh_patches_debug_796 | rasdani/github-patches | git_diff | mirumee__ariadne-840 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Update Starlette dependency to 0.19
Starlette 0.19 has been released, we should bump Ariadne's version to it before releasing 0.15
--- END ISSUE ---
Below are some code segments, each from a relevant file.... | diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -33,7 +33,7 @@
include_package_data=True,
install_requires=[
"graphql-core>=3.2.0,<3.3",
- "starlette<0.19",
+ "starlette>0.17<0.20",
"typing_extensions>=3.6.0",
],
extras_require={"asgi-file-uploads": ... | {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -33,7 +33,7 @@\n include_package_data=True,\n install_requires=[\n \"graphql-core>=3.2.0,<3.3\",\n- \"starlette<0.19\",\n+ \"starlette>0.17<0.20\",\n \"typing_extensions>=3.6.0\",\n ],\n e... |
gh_patches_debug_797 | rasdani/github-patches | git_diff | openai__gym-1456 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
BUG - KellyCoinflip episode should end when the agent reaches the maximum wealth.
# Bug description
The episode does not end when agent reaches the maximum wealth. This is not consistent with the information... | diff --git a/gym/envs/toy_text/kellycoinflip.py b/gym/envs/toy_text/kellycoinflip.py
--- a/gym/envs/toy_text/kellycoinflip.py
+++ b/gym/envs/toy_text/kellycoinflip.py
@@ -177,7 +177,7 @@
self.losses += 1
done = self.wealth < 0.01 or self.wealth == self.max_wealth or not self.rounds
- rewa... | {"golden_diff": "diff --git a/gym/envs/toy_text/kellycoinflip.py b/gym/envs/toy_text/kellycoinflip.py\n--- a/gym/envs/toy_text/kellycoinflip.py\n+++ b/gym/envs/toy_text/kellycoinflip.py\n@@ -177,7 +177,7 @@\n self.losses += 1\n \n done = self.wealth < 0.01 or self.wealth == self.max_wealth or not se... |
gh_patches_debug_798 | rasdani/github-patches | git_diff | angr__angr-1175 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Difference between Dominator and Dominating Set
Code in https://github.com/angr/angr/blob/master/angr/analyses/veritesting.py#L578 may confuse the concepts of dominator and dominating set. To my best knowledg... | diff --git a/angr/analyses/veritesting.py b/angr/analyses/veritesting.py
--- a/angr/analyses/veritesting.py
+++ b/angr/analyses/veritesting.py
@@ -575,7 +575,7 @@
:returns bool: True/False.
"""
- ds = networkx.dominating_set(reversed_graph, n1)
+ ds = networkx... | {"golden_diff": "diff --git a/angr/analyses/veritesting.py b/angr/analyses/veritesting.py\n--- a/angr/analyses/veritesting.py\n+++ b/angr/analyses/veritesting.py\n@@ -575,7 +575,7 @@\n :returns bool: True/False.\n \"\"\"\n \n- ds = networkx.dominating_set(reversed_graph,... |
gh_patches_debug_799 | rasdani/github-patches | git_diff | gratipay__gratipay.com-3788 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
log spam during test
What's this `TypeError` about? Seems spurious ...
```
pid-13897 thread-4384100352 (Thread-1) Traceback (most recent call last):
pid-13897 thread-4384100352 (Thread-1) File "/Users/whit... | diff --git a/gratipay/utils/__init__.py b/gratipay/utils/__init__.py
--- a/gratipay/utils/__init__.py
+++ b/gratipay/utils/__init__.py
@@ -136,7 +136,7 @@
nusers = website.db.one("""
SELECT nusers FROM paydays
ORDER BY ts_end DESC LIMIT 1
- """, default=(0.0, 0))
+ """, default=0)
nrec... | {"golden_diff": "diff --git a/gratipay/utils/__init__.py b/gratipay/utils/__init__.py\n--- a/gratipay/utils/__init__.py\n+++ b/gratipay/utils/__init__.py\n@@ -136,7 +136,7 @@\n nusers = website.db.one(\"\"\"\n SELECT nusers FROM paydays\n ORDER BY ts_end DESC LIMIT 1\n- \"\"\", default=(0.0, 0))\... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.