problem_id
stringlengths
18
22
source
stringclasses
1 value
task_type
stringclasses
1 value
in_source_id
stringlengths
13
58
prompt
stringlengths
1.1k
10.2k
golden_diff
stringlengths
151
4.94k
verification_info
stringlengths
582
21k
num_tokens
int64
271
2.05k
num_tokens_diff
int64
47
1.02k
gh_patches_debug_57244
rasdani/github-patches
git_diff
meltano__meltano-6333
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Uvicorn Windows message points to wrong flag ```2022-06-30T19:52:16.704167Z [warning ] Add ff.start_uvicorn: True to your meltano.yml to supress this waring``` Should point to ff.enable_uvicorn [env: M...
diff --git a/src/meltano/api/workers/api_worker.py b/src/meltano/api/workers/api_worker.py --- a/src/meltano/api/workers/api_worker.py +++ b/src/meltano/api/workers/api_worker.py @@ -44,7 +44,7 @@ "Windows OS detected auto setting ff.enable_uvicorn" ) l...
{"golden_diff": "diff --git a/src/meltano/api/workers/api_worker.py b/src/meltano/api/workers/api_worker.py\n--- a/src/meltano/api/workers/api_worker.py\n+++ b/src/meltano/api/workers/api_worker.py\n@@ -44,7 +44,7 @@\n \"Windows OS detected auto setting ff.enable_uvicorn\"\n ...
1,612
139
gh_patches_debug_6871
rasdani/github-patches
git_diff
sql-machine-learning__elasticdl-1495
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- The worker should wait all channels are ready. If the worker has started to train and the grpc channels to connect PS are not ready, a connection error will be raised. ``` grpc._channel._Rendezvous: <_Ren...
diff --git a/elasticdl/python/worker/main.py b/elasticdl/python/worker/main.py --- a/elasticdl/python/worker/main.py +++ b/elasticdl/python/worker/main.py @@ -53,6 +53,13 @@ ), ], ) + + # Wait the channel is ready by a Future object. + grpc.channe...
{"golden_diff": "diff --git a/elasticdl/python/worker/main.py b/elasticdl/python/worker/main.py\n--- a/elasticdl/python/worker/main.py\n+++ b/elasticdl/python/worker/main.py\n@@ -53,6 +53,13 @@\n ),\n ],\n )\n+\n+ # Wait the channel is ready by a Future object....
1,012
144
gh_patches_debug_14345
rasdani/github-patches
git_diff
buildbot__buildbot-5765
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Fix reference to tuplematch in base reporters The tuplematch object was not referenced in the ReporterBase class when referenced from the GitHubStatusPush class. It seems this is not an issue when it is ex...
diff --git a/master/buildbot/reporters/base.py b/master/buildbot/reporters/base.py --- a/master/buildbot/reporters/base.py +++ b/master/buildbot/reporters/base.py @@ -19,9 +19,9 @@ from twisted.python import log from buildbot import config -from buildbot import util from buildbot.reporters import utils from build...
{"golden_diff": "diff --git a/master/buildbot/reporters/base.py b/master/buildbot/reporters/base.py\n--- a/master/buildbot/reporters/base.py\n+++ b/master/buildbot/reporters/base.py\n@@ -19,9 +19,9 @@\n from twisted.python import log\n \n from buildbot import config\n-from buildbot import util\n from buildbot.reporters...
1,344
176
gh_patches_debug_8036
rasdani/github-patches
git_diff
saleor__saleor-2345
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Featured products section should not be shown if there is none If there is no featured products, the home page should not show the empty section. ### Screenshots ![screenshot](https://i.imgur.com/KFPEPnz....
diff --git a/saleor/core/views.py b/saleor/core/views.py --- a/saleor/core/views.py +++ b/saleor/core/views.py @@ -14,9 +14,9 @@ def home(request): products = products_for_homepage()[:8] - products = products_with_availability( + products = list(products_with_availability( products, discounts=req...
{"golden_diff": "diff --git a/saleor/core/views.py b/saleor/core/views.py\n--- a/saleor/core/views.py\n+++ b/saleor/core/views.py\n@@ -14,9 +14,9 @@\n \n def home(request):\n products = products_for_homepage()[:8]\n- products = products_with_availability(\n+ products = list(products_with_availability(\n ...
728
133
gh_patches_debug_4222
rasdani/github-patches
git_diff
learningequality__kolibri-8449
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Single user syncing - Lesson completion is not restored after second setup of the same learner account ## Observed behavior I have setup a learner-only device and have completed a lesson assigned to the lear...
diff --git a/kolibri/core/exams/kolibri_plugin.py b/kolibri/core/exams/kolibri_plugin.py --- a/kolibri/core/exams/kolibri_plugin.py +++ b/kolibri/core/exams/kolibri_plugin.py @@ -1,5 +1,5 @@ # To reinstate the original functionality, please remove this header comment -# and uncomment the code below +# and uncomment th...
{"golden_diff": "diff --git a/kolibri/core/exams/kolibri_plugin.py b/kolibri/core/exams/kolibri_plugin.py\n--- a/kolibri/core/exams/kolibri_plugin.py\n+++ b/kolibri/core/exams/kolibri_plugin.py\n@@ -1,5 +1,5 @@\n # To reinstate the original functionality, please remove this header comment\n-# and uncomment the code bel...
1,845
134
gh_patches_debug_1146
rasdani/github-patches
git_diff
locustio__locust-1760
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Locust stopped working after Flast 2.0 got released in setup.py I can see: ` "flask>=1.1.2", ` I guess it should be hardcoded to ==1.1.2 for now. it crashes with: ``` File "/root/.local/share/virtualen...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ version=version, install_requires=[ "gevent>=20.9.0", - "flask>=1.1.2", + "flask==1.1.2", "Werkzeug>=1.0.1", "requests>=2.9.1", "msgpack>=0.6.2",
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -19,7 +19,7 @@\n version=version,\n install_requires=[\n \"gevent>=20.9.0\",\n- \"flask>=1.1.2\",\n+ \"flask==1.1.2\",\n \"Werkzeug>=1.0.1\",\n \"requests>=2.9.1\",\n \"msgpack>=0....
763
110
gh_patches_debug_33387
rasdani/github-patches
git_diff
scrapy__scrapy-791
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- _nons function is not used in scrapy.contrib.linkextractors.lxmlhtml There is either a bug or some stray code in https://github.com/scrapy/scrapy/blob/master/scrapy/contrib/linkextractors/lxmlhtml.py#L37: `ta...
diff --git a/scrapy/contrib/linkextractors/lxmlhtml.py b/scrapy/contrib/linkextractors/lxmlhtml.py --- a/scrapy/contrib/linkextractors/lxmlhtml.py +++ b/scrapy/contrib/linkextractors/lxmlhtml.py @@ -36,30 +36,30 @@ def _iter_links(self, document): for el in document.iter(etree.Element): - tag...
{"golden_diff": "diff --git a/scrapy/contrib/linkextractors/lxmlhtml.py b/scrapy/contrib/linkextractors/lxmlhtml.py\n--- a/scrapy/contrib/linkextractors/lxmlhtml.py\n+++ b/scrapy/contrib/linkextractors/lxmlhtml.py\n@@ -36,30 +36,30 @@\n \n def _iter_links(self, document):\n for el in document.iter(etree.Ele...
1,497
510
gh_patches_debug_4157
rasdani/github-patches
git_diff
GPflow__GPflow-648
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Reproducibility using seeds Been running some experiments, and it seems I cannot get the same reproducible result even when setting numpy and tensorflow seeds at the top of the script like ``` np.random.s...
diff --git a/gpflow/training/optimizer.py b/gpflow/training/optimizer.py --- a/gpflow/training/optimizer.py +++ b/gpflow/training/optimizer.py @@ -43,7 +43,8 @@ @staticmethod def _gen_var_list(model, var_list): var_list = var_list or [] - return list(set(model.trainable_tensors).union(var_list...
{"golden_diff": "diff --git a/gpflow/training/optimizer.py b/gpflow/training/optimizer.py\n--- a/gpflow/training/optimizer.py\n+++ b/gpflow/training/optimizer.py\n@@ -43,7 +43,8 @@\n @staticmethod\n def _gen_var_list(model, var_list):\n var_list = var_list or []\n- return list(set(model.trainable...
943
139
gh_patches_debug_3024
rasdani/github-patches
git_diff
MongoEngine__mongoengine-1454
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Rename modifier missing from update Not sure if this is intentional or not but it would be useful to have the `$rename` operator (or "modifier" for the update method for QuerySet and Document) available. I'm...
diff --git a/mongoengine/base/common.py b/mongoengine/base/common.py --- a/mongoengine/base/common.py +++ b/mongoengine/base/common.py @@ -5,7 +5,7 @@ UPDATE_OPERATORS = set(['set', 'unset', 'inc', 'dec', 'pop', 'push', 'push_all', 'pull', 'pull_all', 'add_to_set', - '...
{"golden_diff": "diff --git a/mongoengine/base/common.py b/mongoengine/base/common.py\n--- a/mongoengine/base/common.py\n+++ b/mongoengine/base/common.py\n@@ -5,7 +5,7 @@\n \n UPDATE_OPERATORS = set(['set', 'unset', 'inc', 'dec', 'pop', 'push',\n 'push_all', 'pull', 'pull_all', 'add_to_set',\n- ...
655
122
gh_patches_debug_11130
rasdani/github-patches
git_diff
elastic__apm-agent-python-1423
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Breaking change in sync httpx refactor from #1403 elastic/apm-agent-python#1403 refactored a lot of the httpx code. However it seems that the sync version of the instrumentation still calls `self._set_disttra...
diff --git a/elasticapm/instrumentation/packages/httpx/sync/httpcore.py b/elasticapm/instrumentation/packages/httpx/sync/httpcore.py --- a/elasticapm/instrumentation/packages/httpx/sync/httpcore.py +++ b/elasticapm/instrumentation/packages/httpx/sync/httpcore.py @@ -91,10 +91,6 @@ trace_parent = transaction.tr...
{"golden_diff": "diff --git a/elasticapm/instrumentation/packages/httpx/sync/httpcore.py b/elasticapm/instrumentation/packages/httpx/sync/httpcore.py\n--- a/elasticapm/instrumentation/packages/httpx/sync/httpcore.py\n+++ b/elasticapm/instrumentation/packages/httpx/sync/httpcore.py\n@@ -91,10 +91,6 @@\n trace_pa...
1,569
203
gh_patches_debug_28407
rasdani/github-patches
git_diff
pantsbuild__pants-16295
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Not able to load resources when using pants vs sbt **Describe the bug** When using sbt we are able to call `Thread.currentThread().getContextClassLoader().getResources` and get a list of URLs. When using pan...
diff --git a/src/python/pants/jvm/resources.py b/src/python/pants/jvm/resources.py --- a/src/python/pants/jvm/resources.py +++ b/src/python/pants/jvm/resources.py @@ -3,6 +3,7 @@ import itertools import logging from itertools import chain +from pathlib import Path from pants.core.target_types import ResourcesFiel...
{"golden_diff": "diff --git a/src/python/pants/jvm/resources.py b/src/python/pants/jvm/resources.py\n--- a/src/python/pants/jvm/resources.py\n+++ b/src/python/pants/jvm/resources.py\n@@ -3,6 +3,7 @@\n import itertools\n import logging\n from itertools import chain\n+from pathlib import Path\n \n from pants.core.target_...
1,430
306
gh_patches_debug_28333
rasdani/github-patches
git_diff
pypa__pip-2766
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Version self check should not warn for post releases Post releases are explicitly designed to just fix small errors that won't affect the code itself, things like doc updates. However if we release a post rel...
diff --git a/pip/utils/outdated.py b/pip/utils/outdated.py --- a/pip/utils/outdated.py +++ b/pip/utils/outdated.py @@ -7,7 +7,7 @@ import sys from pip._vendor import lockfile -from pip._vendor import pkg_resources +from pip._vendor.packaging import version as packaging_version from pip.compat import total_second...
{"golden_diff": "diff --git a/pip/utils/outdated.py b/pip/utils/outdated.py\n--- a/pip/utils/outdated.py\n+++ b/pip/utils/outdated.py\n@@ -7,7 +7,7 @@\n import sys\n \n from pip._vendor import lockfile\n-from pip._vendor import pkg_resources\n+from pip._vendor.packaging import version as packaging_version\n \n from pip...
1,691
336
gh_patches_debug_22793
rasdani/github-patches
git_diff
chainer__chainer-3770
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- F.inv behaves differently between CPU/GPU Currently, F.inv ignores error flags (info) from cuBLAS. https://github.com/chainer/chainer/blob/v3.0.0/chainer/functions/math/inv.py#L56 As a result, it behave...
diff --git a/chainer/functions/math/inv.py b/chainer/functions/math/inv.py --- a/chainer/functions/math/inv.py +++ b/chainer/functions/math/inv.py @@ -1,5 +1,6 @@ import numpy.linalg +import chainer from chainer import cuda from chainer import function_node import chainer.functions @@ -54,7 +55,11 @@ def for...
{"golden_diff": "diff --git a/chainer/functions/math/inv.py b/chainer/functions/math/inv.py\n--- a/chainer/functions/math/inv.py\n+++ b/chainer/functions/math/inv.py\n@@ -1,5 +1,6 @@\n import numpy.linalg\n \n+import chainer\n from chainer import cuda\n from chainer import function_node\n import chainer.functions\n@@ -...
1,825
318
gh_patches_debug_36518
rasdani/github-patches
git_diff
joke2k__faker-924
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Enables min and max values for pydecimal Currently is not possible to set min or max values to `pydecimal` or `pyfloat`. It would be nice if we could pass these parameters. If it makes senses I can open a ...
diff --git a/faker/providers/python/__init__.py b/faker/providers/python/__init__.py --- a/faker/providers/python/__init__.py +++ b/faker/providers/python/__init__.py @@ -32,7 +32,9 @@ ), ) - def pyfloat(self, left_digits=None, right_digits=None, positive=False): + def pyfloat(self...
{"golden_diff": "diff --git a/faker/providers/python/__init__.py b/faker/providers/python/__init__.py\n--- a/faker/providers/python/__init__.py\n+++ b/faker/providers/python/__init__.py\n@@ -32,7 +32,9 @@\n ),\n )\n \n- def pyfloat(self, left_digits=None, right_digits=None, positive=False...
1,987
558
gh_patches_debug_16100
rasdani/github-patches
git_diff
dask__distributed-4963
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add bar chart for worker occupancy We currently have bar charts for worker memory and the number of tasks processing. A similar chart to number of tasks processing would be worker occupancy, which records th...
diff --git a/distributed/dashboard/scheduler.py b/distributed/dashboard/scheduler.py --- a/distributed/dashboard/scheduler.py +++ b/distributed/dashboard/scheduler.py @@ -19,6 +19,7 @@ MemoryByKey, NBytes, NBytesCluster, + Occupancy, SystemMonitor, TaskGraph, TaskProgress, @@ -90,6 +91,...
{"golden_diff": "diff --git a/distributed/dashboard/scheduler.py b/distributed/dashboard/scheduler.py\n--- a/distributed/dashboard/scheduler.py\n+++ b/distributed/dashboard/scheduler.py\n@@ -19,6 +19,7 @@\n MemoryByKey,\n NBytes,\n NBytesCluster,\n+ Occupancy,\n SystemMonitor,\n TaskGraph,\n ...
1,460
190
gh_patches_debug_39285
rasdani/github-patches
git_diff
PrefectHQ__prefect-2310
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- `ifelse` should behave like a ternary expression Currently, our conditional `ifelse` operator just sets dependencies in a particular way, but always returns `None`. It would feel much more natural if it retu...
diff --git a/src/prefect/tasks/control_flow/conditional.py b/src/prefect/tasks/control_flow/conditional.py --- a/src/prefect/tasks/control_flow/conditional.py +++ b/src/prefect/tasks/control_flow/conditional.py @@ -82,11 +82,16 @@ The value of the `condition` task will be compared to the keys of this dict,...
{"golden_diff": "diff --git a/src/prefect/tasks/control_flow/conditional.py b/src/prefect/tasks/control_flow/conditional.py\n--- a/src/prefect/tasks/control_flow/conditional.py\n+++ b/src/prefect/tasks/control_flow/conditional.py\n@@ -82,11 +82,16 @@\n The value of the `condition` task will be compared to t...
1,921
665
gh_patches_debug_50578
rasdani/github-patches
git_diff
streamlit__streamlit-4076
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Slider value visually overlaps with the edge of the sidebar # Summary The value label collides with the edges of the sidebar. It should change alignment when it gets close to the edges. # Steps to repr...
diff --git a/e2e/scripts/st_slider.py b/e2e/scripts/st_slider.py --- a/e2e/scripts/st_slider.py +++ b/e2e/scripts/st_slider.py @@ -14,6 +14,13 @@ import streamlit as st +s1 = st.sidebar.slider("Label A", 0, 12345678, 12345678) +st.sidebar.write("Value A:", s1) + +with st.sidebar.expander("Expander"): + s2 = st....
{"golden_diff": "diff --git a/e2e/scripts/st_slider.py b/e2e/scripts/st_slider.py\n--- a/e2e/scripts/st_slider.py\n+++ b/e2e/scripts/st_slider.py\n@@ -14,6 +14,13 @@\n \n import streamlit as st\n \n+s1 = st.sidebar.slider(\"Label A\", 0, 12345678, 12345678)\n+st.sidebar.write(\"Value A:\", s1)\n+\n+with st.sidebar.expa...
994
194
gh_patches_debug_14317
rasdani/github-patches
git_diff
keras-team__keras-18911
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Error in Documentation The documentation confuses the ‘channels_last’ input format. It needs to be changed to match the correct format ==> (batch_size, height, width, channels) https://github.com/keras-tea...
diff --git a/keras/layers/convolutional/conv2d_transpose.py b/keras/layers/convolutional/conv2d_transpose.py --- a/keras/layers/convolutional/conv2d_transpose.py +++ b/keras/layers/convolutional/conv2d_transpose.py @@ -32,7 +32,7 @@ data_format: string, either `"channels_last"` or `"channels_first"`. ...
{"golden_diff": "diff --git a/keras/layers/convolutional/conv2d_transpose.py b/keras/layers/convolutional/conv2d_transpose.py\n--- a/keras/layers/convolutional/conv2d_transpose.py\n+++ b/keras/layers/convolutional/conv2d_transpose.py\n@@ -32,7 +32,7 @@\n data_format: string, either `\"channels_last\"` or `\"cha...
1,905
195
gh_patches_debug_2419
rasdani/github-patches
git_diff
e-valuation__EvaP-1321
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Evaluation preview button visibility As a teaching assistant, I might be a contributor to a given course and therefore get my own feedback in the main evaluation. If that course also has an exam evaluation, I...
diff --git a/evap/evaluation/templatetags/evaluation_filters.py b/evap/evaluation/templatetags/evaluation_filters.py --- a/evap/evaluation/templatetags/evaluation_filters.py +++ b/evap/evaluation/templatetags/evaluation_filters.py @@ -99,6 +99,10 @@ return evaluation.is_user_editor_or_delegate(user) +@register...
{"golden_diff": "diff --git a/evap/evaluation/templatetags/evaluation_filters.py b/evap/evaluation/templatetags/evaluation_filters.py\n--- a/evap/evaluation/templatetags/evaluation_filters.py\n+++ b/evap/evaluation/templatetags/evaluation_filters.py\n@@ -99,6 +99,10 @@\n return evaluation.is_user_editor_or_delegate...
1,441
141
gh_patches_debug_2890
rasdani/github-patches
git_diff
pyg-team__pytorch_geometric-8179
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Dataset is not undirected ### 🐛 Describe the bug Dataset is not undirected, despite passing ``to_undirected=True`` flag. ```python # !pip install pyg-nightly from torch_geometric.datasets import Cita...
diff --git a/torch_geometric/datasets/citation_full.py b/torch_geometric/datasets/citation_full.py --- a/torch_geometric/datasets/citation_full.py +++ b/torch_geometric/datasets/citation_full.py @@ -98,7 +98,8 @@ @property def processed_file_names(self) -> str: - return 'data.pt' + suffix = 'u...
{"golden_diff": "diff --git a/torch_geometric/datasets/citation_full.py b/torch_geometric/datasets/citation_full.py\n--- a/torch_geometric/datasets/citation_full.py\n+++ b/torch_geometric/datasets/citation_full.py\n@@ -98,7 +98,8 @@\n \n @property\n def processed_file_names(self) -> str:\n- return 'data....
2,025
135
gh_patches_debug_3654
rasdani/github-patches
git_diff
spack__spack-2961
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Fail to build libmng [AutotoolsPackage] @alalazo I got this error while installing `libmng`: ``` ... ==> Already patched libmng ==> Building libmng [AutotoolsPackage] ==> Executing phase : 'autoreconf'...
diff --git a/var/spack/repos/builtin/packages/libmng/package.py b/var/spack/repos/builtin/packages/libmng/package.py --- a/var/spack/repos/builtin/packages/libmng/package.py +++ b/var/spack/repos/builtin/packages/libmng/package.py @@ -42,3 +42,7 @@ # jpeg requires stdio to beincluded before its headrs. ...
{"golden_diff": "diff --git a/var/spack/repos/builtin/packages/libmng/package.py b/var/spack/repos/builtin/packages/libmng/package.py\n--- a/var/spack/repos/builtin/packages/libmng/package.py\n+++ b/var/spack/repos/builtin/packages/libmng/package.py\n@@ -42,3 +42,7 @@\n # jpeg requires stdio to beincluded befor...
1,312
143
gh_patches_debug_36111
rasdani/github-patches
git_diff
pantsbuild__pants-8673
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Deprecate using default `--fmt-transitive` and `--lint-transitive` in preparation for switching default to `--no-{fmt,lint}-transitive` ### Problem Will close https://github.com/pantsbuild/pants/issues/834...
diff --git a/src/python/pants/task/target_restriction_mixins.py b/src/python/pants/task/target_restriction_mixins.py --- a/src/python/pants/task/target_restriction_mixins.py +++ b/src/python/pants/task/target_restriction_mixins.py @@ -23,20 +23,6 @@ @property def act_transitively(self): - deprecated_conditio...
{"golden_diff": "diff --git a/src/python/pants/task/target_restriction_mixins.py b/src/python/pants/task/target_restriction_mixins.py\n--- a/src/python/pants/task/target_restriction_mixins.py\n+++ b/src/python/pants/task/target_restriction_mixins.py\n@@ -23,20 +23,6 @@\n \n @property\n def act_transitively(self):\n...
1,904
707
gh_patches_debug_66276
rasdani/github-patches
git_diff
python-poetry__poetry-979
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- --no-root behavior is inverted on latest develop [This](https://github.com/sdispater/poetry/commit/37ec1447b3508ee0bbdb41f8e5773ed5bfae0654#diff-427299ba040b8502b4d29846e595c2d0R59) should probably be `if sel...
diff --git a/poetry/console/commands/install.py b/poetry/console/commands/install.py --- a/poetry/console/commands/install.py +++ b/poetry/console/commands/install.py @@ -56,7 +56,7 @@ if return_code != 0: return return_code - if not self.option("no-root"): + if self.option("no-roo...
{"golden_diff": "diff --git a/poetry/console/commands/install.py b/poetry/console/commands/install.py\n--- a/poetry/console/commands/install.py\n+++ b/poetry/console/commands/install.py\n@@ -56,7 +56,7 @@\n if return_code != 0:\n return return_code\n \n- if not self.option(\"no-root\"):\n+ ...
1,257
96
gh_patches_debug_25855
rasdani/github-patches
git_diff
liqd__a4-meinberlin-4956
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- TemplateDoesNotExist: account/email/account_already_exists.de.email, account/email/account_already_exists.en.email Sentry Issue: [MEINBERLIN-DEV-81](https://sentry.liqd.net/organizations/liqd/issues/2951/?ref...
diff --git a/meinberlin/apps/users/forms.py b/meinberlin/apps/users/forms.py --- a/meinberlin/apps/users/forms.py +++ b/meinberlin/apps/users/forms.py @@ -38,7 +38,6 @@ return self.cleaned_data def clean_username(self): - username = self.cleaned_data["username"] try: user ...
{"golden_diff": "diff --git a/meinberlin/apps/users/forms.py b/meinberlin/apps/users/forms.py\n--- a/meinberlin/apps/users/forms.py\n+++ b/meinberlin/apps/users/forms.py\n@@ -38,7 +38,6 @@\n return self.cleaned_data\n \n def clean_username(self):\n-\n username = self.cleaned_data[\"username\"]\n ...
1,992
281
gh_patches_debug_1944
rasdani/github-patches
git_diff
napari__napari-277
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- blending mode update error ## 🐛 Bug When viewing multiple layers with blending, I am experiencing a bug whereby changing the blending mode doesn't result in an immediate update. The update does occur when...
diff --git a/napari/layers/_base_layer/_visual_wrapper.py b/napari/layers/_base_layer/_visual_wrapper.py --- a/napari/layers/_base_layer/_visual_wrapper.py +++ b/napari/layers/_base_layer/_visual_wrapper.py @@ -124,6 +124,7 @@ f'got {blending}') self._node.set_gl_state(blending) ...
{"golden_diff": "diff --git a/napari/layers/_base_layer/_visual_wrapper.py b/napari/layers/_base_layer/_visual_wrapper.py\n--- a/napari/layers/_base_layer/_visual_wrapper.py\n+++ b/napari/layers/_base_layer/_visual_wrapper.py\n@@ -124,6 +124,7 @@\n f'got {blending}')\n self._node.se...
2,015
118
gh_patches_debug_31555
rasdani/github-patches
git_diff
chainer__chainer-970
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- SplitAxis should return a tuple with a single element `Function.__call__` returns a `Variable` when its forward function returns only one return value. When the number of return values depends on input values...
diff --git a/chainer/functions/array/split_axis.py b/chainer/functions/array/split_axis.py --- a/chainer/functions/array/split_axis.py +++ b/chainer/functions/array/split_axis.py @@ -2,6 +2,7 @@ import six +import chainer from chainer import cuda from chainer import function from chainer.utils import type_check...
{"golden_diff": "diff --git a/chainer/functions/array/split_axis.py b/chainer/functions/array/split_axis.py\n--- a/chainer/functions/array/split_axis.py\n+++ b/chainer/functions/array/split_axis.py\n@@ -2,6 +2,7 @@\n \n import six\n \n+import chainer\n from chainer import cuda\n from chainer import function\n from chai...
1,233
420
gh_patches_debug_920
rasdani/github-patches
git_diff
speechbrain__speechbrain-1127
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Broken docs for `speechbrain.alignment.ctc_segmentation` Hi, thanks for maintaining such a wonderful library. Looks like the documentation for `speechbrain.alignment.ctc_segmentation` is broken: https://s...
diff --git a/docs/conf.py b/docs/conf.py --- a/docs/conf.py +++ b/docs/conf.py @@ -69,7 +69,7 @@ autodoc_default_options = {} # Autodoc mock extra dependencies: -autodoc_mock_imports = ["numba", "sklearn"] +autodoc_mock_imports = ["sklearn"] # Order of API items: autodoc_member_order = "bysource"
{"golden_diff": "diff --git a/docs/conf.py b/docs/conf.py\n--- a/docs/conf.py\n+++ b/docs/conf.py\n@@ -69,7 +69,7 @@\n autodoc_default_options = {}\n \n # Autodoc mock extra dependencies:\n-autodoc_mock_imports = [\"numba\", \"sklearn\"]\n+autodoc_mock_imports = [\"sklearn\"]\n \n # Order of API items:\n autodoc_member...
1,751
97
gh_patches_debug_6953
rasdani/github-patches
git_diff
svthalia__concrexit-2526
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Vacancies without partner page on homepage lead to 404 errors ### Describe the bug The vacancy view on the homepage leads to a 404 for vacancies without partner pages, as it tries to go to that page anyway. ...
diff --git a/website/partners/templatetags/frontpage_vacancies.py b/website/partners/templatetags/frontpage_vacancies.py --- a/website/partners/templatetags/frontpage_vacancies.py +++ b/website/partners/templatetags/frontpage_vacancies.py @@ -12,7 +12,7 @@ for vacancy in Vacancy.objects.order_by("?")[:6]: ...
{"golden_diff": "diff --git a/website/partners/templatetags/frontpage_vacancies.py b/website/partners/templatetags/frontpage_vacancies.py\n--- a/website/partners/templatetags/frontpage_vacancies.py\n+++ b/website/partners/templatetags/frontpage_vacancies.py\n@@ -12,7 +12,7 @@\n \n for vacancy in Vacancy.objects.ord...
634
162
gh_patches_debug_42930
rasdani/github-patches
git_diff
easybuilders__easybuild-easyblocks-2416
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Tkinter easyblock does not work with `--module-only` ``` == sanity checking... ERROR: Traceback (most recent call last): File "/project/def-sponsor00/ocaisa/easybuild/software/EasyBuild/4.3.4/lib/python3...
diff --git a/easybuild/easyblocks/t/tkinter.py b/easybuild/easyblocks/t/tkinter.py --- a/easybuild/easyblocks/t/tkinter.py +++ b/easybuild/easyblocks/t/tkinter.py @@ -39,6 +39,7 @@ from easybuild.easyblocks.generic.pythonpackage import det_pylibdir from easybuild.easyblocks.python import EB_Python from easybuild.too...
{"golden_diff": "diff --git a/easybuild/easyblocks/t/tkinter.py b/easybuild/easyblocks/t/tkinter.py\n--- a/easybuild/easyblocks/t/tkinter.py\n+++ b/easybuild/easyblocks/t/tkinter.py\n@@ -39,6 +39,7 @@\n from easybuild.easyblocks.generic.pythonpackage import det_pylibdir\n from easybuild.easyblocks.python import EB_Pyth...
2,028
937
gh_patches_debug_38534
rasdani/github-patches
git_diff
alltheplaces__alltheplaces-2338
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Spider sunoco is broken During the global build at 2021-07-21-14-42-39, spider **sunoco** failed with **0 features** and **1 errors**. Here's [the log](https://data.alltheplaces.xyz/runs/2021-07-21-14-42-39/...
diff --git a/locations/spiders/sunoco.py b/locations/spiders/sunoco.py --- a/locations/spiders/sunoco.py +++ b/locations/spiders/sunoco.py @@ -17,44 +17,34 @@ for location in json.loads(response.body_as_unicode()): opening_hours = OpeningHours() - for key in [ - 'Hrs of...
{"golden_diff": "diff --git a/locations/spiders/sunoco.py b/locations/spiders/sunoco.py\n--- a/locations/spiders/sunoco.py\n+++ b/locations/spiders/sunoco.py\n@@ -17,44 +17,34 @@\n for location in json.loads(response.body_as_unicode()):\n opening_hours = OpeningHours()\n \n- for key in [\...
1,094
707
gh_patches_debug_12828
rasdani/github-patches
git_diff
ethereum__web3.py-2320
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- dependency conflict with py-evm 0.5* series * Version: 0.5.26 * Python: 3.10 * OS: linux ### What was wrong? Current web3.py not compatible with py-evm `0.5*`. Below are the relevant lines from `pip i...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ extras_require = { 'tester': [ - "eth-tester[py-evm]==v0.6.0-beta.4", + "eth-tester[py-evm]==v0.6.0-beta.6", "py-geth>=3.7.0,<4", ], 'linter': [ @@ -77,7 +77,7 @@ install_requires=[ "aio...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -7,7 +7,7 @@\n \n extras_require = {\n 'tester': [\n- \"eth-tester[py-evm]==v0.6.0-beta.4\",\n+ \"eth-tester[py-evm]==v0.6.0-beta.6\",\n \"py-geth>=3.7.0,<4\",\n ],\n 'linter': [\n@@ -77,7 +77,7 @@\n ...
1,802
250
gh_patches_debug_4262
rasdani/github-patches
git_diff
certbot__certbot-772
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- rename /etc/letsencrypt/configs to /etc/letsencrypt/renewal Since it doesn't contain anything except renewal configuration files, people will probably find the current name confusing. --- END ISSUE --- Bel...
diff --git a/letsencrypt/constants.py b/letsencrypt/constants.py --- a/letsencrypt/constants.py +++ b/letsencrypt/constants.py @@ -88,7 +88,7 @@ TEMP_CHECKPOINT_DIR = "temp_checkpoint" """Temporary checkpoint directory (relative to `IConfig.work_dir`).""" -RENEWAL_CONFIGS_DIR = "configs" +RENEWAL_CONFIGS_DIR = "ren...
{"golden_diff": "diff --git a/letsencrypt/constants.py b/letsencrypt/constants.py\n--- a/letsencrypt/constants.py\n+++ b/letsencrypt/constants.py\n@@ -88,7 +88,7 @@\n TEMP_CHECKPOINT_DIR = \"temp_checkpoint\"\n \"\"\"Temporary checkpoint directory (relative to `IConfig.work_dir`).\"\"\"\n \n-RENEWAL_CONFIGS_DIR = \"con...
1,163
121
gh_patches_debug_34433
rasdani/github-patches
git_diff
pantsbuild__pants-14131
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- ResolveError: Directory '{mydir}' does not contain any BUILD files (when Dockerizing packages) **Describe the bug** Created a repo at https://github.com/sureshjoshi/pantsbuild-14031 to help illustrate this...
diff --git a/src/python/pants/backend/docker/util_rules/dependencies.py b/src/python/pants/backend/docker/util_rules/dependencies.py --- a/src/python/pants/backend/docker/util_rules/dependencies.py +++ b/src/python/pants/backend/docker/util_rules/dependencies.py @@ -3,6 +3,7 @@ from pants.backend.docker.subsystems.d...
{"golden_diff": "diff --git a/src/python/pants/backend/docker/util_rules/dependencies.py b/src/python/pants/backend/docker/util_rules/dependencies.py\n--- a/src/python/pants/backend/docker/util_rules/dependencies.py\n+++ b/src/python/pants/backend/docker/util_rules/dependencies.py\n@@ -3,6 +3,7 @@\n \n from pants.backe...
1,169
448
gh_patches_debug_22472
rasdani/github-patches
git_diff
mozilla__kitsune-3198
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Remove all references to ethn.io and Treejack Confirm is ethn.io is something we still use, remove otherwise https://github.com/mozilla/kitsune/blob/master/kitsune/products/jinja2/products/product.html#L9...
diff --git a/kitsune/sumo/migrations/0002_initial_data.py b/kitsune/sumo/migrations/0002_initial_data.py --- a/kitsune/sumo/migrations/0002_initial_data.py +++ b/kitsune/sumo/migrations/0002_initial_data.py @@ -23,19 +23,6 @@ perm = Permission.objects.filter(codename='bypass_ratelimit').delete() -def create_tr...
{"golden_diff": "diff --git a/kitsune/sumo/migrations/0002_initial_data.py b/kitsune/sumo/migrations/0002_initial_data.py\n--- a/kitsune/sumo/migrations/0002_initial_data.py\n+++ b/kitsune/sumo/migrations/0002_initial_data.py\n@@ -23,19 +23,6 @@\n perm = Permission.objects.filter(codename='bypass_ratelimit').delete...
1,040
304
gh_patches_debug_25252
rasdani/github-patches
git_diff
networkx__networkx-3016
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- `OrderedGraph.subgraph` does not maintain the order of the nodes A subgraph built from a `OrderedGraph` should keep the order of the nodes, yet nodes in the subgraph are neither in the order of the initial gr...
diff --git a/networkx/classes/ordered.py b/networkx/classes/ordered.py --- a/networkx/classes/ordered.py +++ b/networkx/classes/ordered.py @@ -1,5 +1,10 @@ """ Consistently ordered variants of the default base classes. +Note that if you are using Python 3.6, you shouldn't need these classes +because the dicts in Pyth...
{"golden_diff": "diff --git a/networkx/classes/ordered.py b/networkx/classes/ordered.py\n--- a/networkx/classes/ordered.py\n+++ b/networkx/classes/ordered.py\n@@ -1,5 +1,10 @@\n \"\"\"\n Consistently ordered variants of the default base classes.\n+Note that if you are using Python 3.6, you shouldn't need these classes\...
1,474
352
gh_patches_debug_16045
rasdani/github-patches
git_diff
digitalfabrik__integreat-cms-1601
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Separate XLIFF export options ### Motivation <!-- A clear and concise description of what the motivation for the new feature is, and what problem it is solving. --> Apparently, the two options to export XLI...
diff --git a/integreat_cms/cms/views/pages/page_bulk_actions.py b/integreat_cms/cms/views/pages/page_bulk_actions.py --- a/integreat_cms/cms/views/pages/page_bulk_actions.py +++ b/integreat_cms/cms/views/pages/page_bulk_actions.py @@ -100,9 +100,13 @@ messages.success( request, ...
{"golden_diff": "diff --git a/integreat_cms/cms/views/pages/page_bulk_actions.py b/integreat_cms/cms/views/pages/page_bulk_actions.py\n--- a/integreat_cms/cms/views/pages/page_bulk_actions.py\n+++ b/integreat_cms/cms/views/pages/page_bulk_actions.py\n@@ -100,9 +100,13 @@\n messages.success(\n ...
1,518
199
gh_patches_debug_40548
rasdani/github-patches
git_diff
huggingface__huggingface_hub-285
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add sentence similarity for spaCy Computing similarity is simple with `spaCy` and there is an existing [template pipeline](https://github.com/huggingface/huggingface_hub/blob/main/api-inference-community/dock...
diff --git a/api-inference-community/docker_images/spacy/app/main.py b/api-inference-community/docker_images/spacy/app/main.py --- a/api-inference-community/docker_images/spacy/app/main.py +++ b/api-inference-community/docker_images/spacy/app/main.py @@ -6,6 +6,7 @@ from api_inference_community.routes import pipeline_...
{"golden_diff": "diff --git a/api-inference-community/docker_images/spacy/app/main.py b/api-inference-community/docker_images/spacy/app/main.py\n--- a/api-inference-community/docker_images/spacy/app/main.py\n+++ b/api-inference-community/docker_images/spacy/app/main.py\n@@ -6,6 +6,7 @@\n from api_inference_community.ro...
1,458
776
gh_patches_debug_29797
rasdani/github-patches
git_diff
mathesar-foundation__mathesar-1953
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Error handler should not capture exceptions in DEBUG mode ## Description Based on the [conclusion from the discussion](https://github.com/centerofci/mathesar/discussions/1150). Improve backend's debugabil...
diff --git a/mathesar/exception_handlers.py b/mathesar/exception_handlers.py --- a/mathesar/exception_handlers.py +++ b/mathesar/exception_handlers.py @@ -1,4 +1,5 @@ import warnings +import traceback from django.conf import settings from django.db import IntegrityError as DjangoIntegrityError @@ -38,6 +39,9 @@ ...
{"golden_diff": "diff --git a/mathesar/exception_handlers.py b/mathesar/exception_handlers.py\n--- a/mathesar/exception_handlers.py\n+++ b/mathesar/exception_handlers.py\n@@ -1,4 +1,5 @@\n import warnings\n+import traceback\n \n from django.conf import settings\n from django.db import IntegrityError as DjangoIntegrityE...
1,448
356
gh_patches_debug_3010
rasdani/github-patches
git_diff
cocotb__cocotb-208
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Redhat 6.5 can no longer raise a TestError Regressions report pass but number of tests has gone done on some simulators. Icarus for instance shows this. ``` 0.00ns INFO  cocotb.gpi ...
diff --git a/cocotb/result.py b/cocotb/result.py --- a/cocotb/result.py +++ b/cocotb/result.py @@ -39,7 +39,8 @@ msg is a string """ exc_type, exc_value, exc_traceback = sys.exc_info() - if sys.version_info.major >= 3: + # 2.6 cannot use named access + if sys.version_info[0] >= 3: b...
{"golden_diff": "diff --git a/cocotb/result.py b/cocotb/result.py\n--- a/cocotb/result.py\n+++ b/cocotb/result.py\n@@ -39,7 +39,8 @@\n msg is a string\n \"\"\"\n exc_type, exc_value, exc_traceback = sys.exc_info()\n- if sys.version_info.major >= 3:\n+ # 2.6 cannot use named access\n+ if sys.ver...
1,701
127
gh_patches_debug_19252
rasdani/github-patches
git_diff
Kinto__kinto-658
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [cliquet] Add a way to change the port used when using kinto start. original: https://github.com/mozilla-services/cliquet/issues/686 All in title --- END ISSUE --- Below are some code segments, each from ...
diff --git a/kinto/__main__.py b/kinto/__main__.py --- a/kinto/__main__.py +++ b/kinto/__main__.py @@ -52,6 +52,11 @@ help='Restart when code or config changes', required=False, default=False) + parser_start.add_argument('--...
{"golden_diff": "diff --git a/kinto/__main__.py b/kinto/__main__.py\n--- a/kinto/__main__.py\n+++ b/kinto/__main__.py\n@@ -52,6 +52,11 @@\n help='Restart when code or config changes',\n required=False,\n default=False)\n+ parse...
1,128
194
gh_patches_debug_7797
rasdani/github-patches
git_diff
ESMCI__cime-4085
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- CIME mappy scripts_regression_tests in bad shape I'm seeing tons of fails: ``` FAILED (failures=48, errors=7, skipped=21) ``` --- END ISSUE --- Below are some code segments, each from a relevant file. ...
diff --git a/scripts/lib/CIME/code_checker.py b/scripts/lib/CIME/code_checker.py --- a/scripts/lib/CIME/code_checker.py +++ b/scripts/lib/CIME/code_checker.py @@ -19,7 +19,7 @@ cmd_options = " --disable=I,C,R,logging-not-lazy,wildcard-import,unused-wildcard-import" cmd_options += ",fixme,broad-except,bare-e...
{"golden_diff": "diff --git a/scripts/lib/CIME/code_checker.py b/scripts/lib/CIME/code_checker.py\n--- a/scripts/lib/CIME/code_checker.py\n+++ b/scripts/lib/CIME/code_checker.py\n@@ -19,7 +19,7 @@\n \n cmd_options = \" --disable=I,C,R,logging-not-lazy,wildcard-import,unused-wildcard-import\"\n cmd_options += \"...
1,807
158
gh_patches_debug_11000
rasdani/github-patches
git_diff
sotetsuk__pgx-907
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add `pgx.__version__` --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `setup.py` Content: ``` 1 from setupt...
diff --git a/pgx/__init__.py b/pgx/__init__.py --- a/pgx/__init__.py +++ b/pgx/__init__.py @@ -6,6 +6,8 @@ ) from pgx.v1 import Env, EnvId, State, available_envs, make +__version__ = "0.8.0" + __all__ = [ # v1 api components "State", diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -5,7 ...
{"golden_diff": "diff --git a/pgx/__init__.py b/pgx/__init__.py\n--- a/pgx/__init__.py\n+++ b/pgx/__init__.py\n@@ -6,6 +6,8 @@\n )\n from pgx.v1 import Env, EnvId, State, available_envs, make\n \n+__version__ = \"0.8.0\"\n+\n __all__ = [\n # v1 api components\n \"State\",\ndiff --git a/setup.py b/setup.py\n--- ...
755
182
gh_patches_debug_36196
rasdani/github-patches
git_diff
conda__conda-3969
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Invalid requirement while trying to use pip options Hi! I have in my pip section inside envrionment.yaml file this line ```- rep --install-option='--no-deps'``` while I am trying to update my environme...
diff --git a/conda/egg_info.py b/conda/egg_info.py --- a/conda/egg_info.py +++ b/conda/egg_info.py @@ -30,6 +30,10 @@ def get_egg_info_files(sp_dir): for fn in os.listdir(sp_dir): + if fn.endswith('.egg-link'): + with open(join(sp_dir, fn), 'r') as reader: + for egg in get_egg_i...
{"golden_diff": "diff --git a/conda/egg_info.py b/conda/egg_info.py\n--- a/conda/egg_info.py\n+++ b/conda/egg_info.py\n@@ -30,6 +30,10 @@\n \n def get_egg_info_files(sp_dir):\n for fn in os.listdir(sp_dir):\n+ if fn.endswith('.egg-link'):\n+ with open(join(sp_dir, fn), 'r') as reader:\n+ ...
1,382
715
gh_patches_debug_52514
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+++ ...
1,585
248
gh_patches_debug_65233
rasdani/github-patches
git_diff
streamlink__streamlink-4763
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- plugins.huya: As of today, Huya plugin has been broken ### Checklist - [X] This is a plugin issue and not a different kind of issue - [X] [I have read the contribution guidelines](https://github.com/streamli...
diff --git a/src/streamlink/plugins/huya.py b/src/streamlink/plugins/huya.py --- a/src/streamlink/plugins/huya.py +++ b/src/streamlink/plugins/huya.py @@ -54,7 +54,7 @@ { "data": [{ "gameLiveInfo": { - "liveId": int, + ...
{"golden_diff": "diff --git a/src/streamlink/plugins/huya.py b/src/streamlink/plugins/huya.py\n--- a/src/streamlink/plugins/huya.py\n+++ b/src/streamlink/plugins/huya.py\n@@ -54,7 +54,7 @@\n {\n \"data\": [{\n \"gameLiveInfo\": {\n- ...
1,772
97
gh_patches_debug_1132
rasdani/github-patches
git_diff
scikit-hep__pyhf-1790
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Guard SCHEMA_VERSION from version bumps I don't think it is going to be possible to guard the `SCHEMA_VERSION` from `bump2version` so we might need to look for a replacement for `bump2version` that gives guar...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -68,7 +68,7 @@ + extras_require['test'] + [ 'nbdime', - 'bump2version', + 'tbump>=6.7.0', 'ipython', 'pre-commit', 'check-manifest',
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -68,7 +68,7 @@\n + extras_require['test']\n + [\n 'nbdime',\n- 'bump2version',\n+ 'tbump>=6.7.0',\n 'ipython',\n 'pre-commit',\n 'check-manifest',\n...
1,436
84
gh_patches_debug_2914
rasdani/github-patches
git_diff
gratipay__gratipay.com-2792
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- broken facebook link when no user_name If all we have is a user_id, we construct the URL improperly. In that case we need: `http://facebook.com/profile.php?id=$ID` But we have: `http://facebook.com/None` ...
diff --git a/gratipay/elsewhere/facebook.py b/gratipay/elsewhere/facebook.py --- a/gratipay/elsewhere/facebook.py +++ b/gratipay/elsewhere/facebook.py @@ -9,7 +9,7 @@ # Platform attributes name = 'facebook' display_name = 'Facebook' - account_url = 'https://www.facebook.com/{user_name}' + account_u...
{"golden_diff": "diff --git a/gratipay/elsewhere/facebook.py b/gratipay/elsewhere/facebook.py\n--- a/gratipay/elsewhere/facebook.py\n+++ b/gratipay/elsewhere/facebook.py\n@@ -9,7 +9,7 @@\n # Platform attributes\n name = 'facebook'\n display_name = 'Facebook'\n- account_url = 'https://www.facebook.com/{us...
681
124
gh_patches_debug_6473
rasdani/github-patches
git_diff
dotkom__onlineweb4-2102
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Updating "My profile" does not save all profile fields ## What kind of an issue is this? - [x] Bug report - [ ] Feature request ## What is the expected behaviour? Seeing my post number at my [profil...
diff --git a/apps/profiles/forms.py b/apps/profiles/forms.py --- a/apps/profiles/forms.py +++ b/apps/profiles/forms.py @@ -37,9 +37,11 @@ def clean_zip_code(self): zip_code = self.cleaned_data['zip_code'] - if zip_code and len(zip_code) != 0 and not re.match(r'\d{4}', zip_code): + if not z...
{"golden_diff": "diff --git a/apps/profiles/forms.py b/apps/profiles/forms.py\n--- a/apps/profiles/forms.py\n+++ b/apps/profiles/forms.py\n@@ -37,9 +37,11 @@\n \n def clean_zip_code(self):\n zip_code = self.cleaned_data['zip_code']\n- if zip_code and len(zip_code) != 0 and not re.match(r'\\d{4}', zip...
1,908
145
gh_patches_debug_4927
rasdani/github-patches
git_diff
falconry__falcon-1997
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Code listing for app.py in "look” Tutorial has a bug In the [Serving images](https://falcon.readthedocs.io/en/stable/user/tutorial.html#serving-images) section, the code listing for `app.py` tries to import t...
diff --git a/falcon/media/validators/jsonschema.py b/falcon/media/validators/jsonschema.py --- a/falcon/media/validators/jsonschema.py +++ b/falcon/media/validators/jsonschema.py @@ -18,7 +18,7 @@ by ``jsonschema.FormatChecker``. Note: - The `jsonschema`` package must be installed separately in order...
{"golden_diff": "diff --git a/falcon/media/validators/jsonschema.py b/falcon/media/validators/jsonschema.py\n--- a/falcon/media/validators/jsonschema.py\n+++ b/falcon/media/validators/jsonschema.py\n@@ -18,7 +18,7 @@\n by ``jsonschema.FormatChecker``.\n \n Note:\n- The `jsonschema`` package must be insta...
1,975
135
gh_patches_debug_28821
rasdani/github-patches
git_diff
huggingface__text-generation-inference-114
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add typical sampling HF has TypicalWarper and `typical_p`. Would be nice to be able to pass that. --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may co...
diff --git a/server/text_generation_server/utils/tokens.py b/server/text_generation_server/utils/tokens.py --- a/server/text_generation_server/utils/tokens.py +++ b/server/text_generation_server/utils/tokens.py @@ -6,6 +6,7 @@ TemperatureLogitsWarper, TopKLogitsWarper, TopPLogitsWarper, + TypicalLogit...
{"golden_diff": "diff --git a/server/text_generation_server/utils/tokens.py b/server/text_generation_server/utils/tokens.py\n--- a/server/text_generation_server/utils/tokens.py\n+++ b/server/text_generation_server/utils/tokens.py\n@@ -6,6 +6,7 @@\n TemperatureLogitsWarper,\n TopKLogitsWarper,\n TopPLogitsWa...
1,723
333
gh_patches_debug_4842
rasdani/github-patches
git_diff
plone__Products.CMFPlone-3972
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- TypeError thrown when during groups lookup The offending code is [here](https://github.com/plone/Products.CMFPlone/blob/308aa4d03ee6c0ce9d8119ce4c37955153f0bc6f/Products/CMFPlone/controlpanel/browser/usergrou...
diff --git a/Products/CMFPlone/controlpanel/browser/usergroups_usermembership.py b/Products/CMFPlone/controlpanel/browser/usergroups_usermembership.py --- a/Products/CMFPlone/controlpanel/browser/usergroups_usermembership.py +++ b/Products/CMFPlone/controlpanel/browser/usergroups_usermembership.py @@ -63,7 +63,7 @@ ...
{"golden_diff": "diff --git a/Products/CMFPlone/controlpanel/browser/usergroups_usermembership.py b/Products/CMFPlone/controlpanel/browser/usergroups_usermembership.py\n--- a/Products/CMFPlone/controlpanel/browser/usergroups_usermembership.py\n+++ b/Products/CMFPlone/controlpanel/browser/usergroups_usermembership.py\n@...
1,356
158
gh_patches_debug_649
rasdani/github-patches
git_diff
pex-tool__pex-1997
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Release 2.1.116 On the docket: + [x] The --resolve-local-platforms option does not work with --complete-platforms #1899 --- END ISSUE --- Below are some code segments, each from a relevant file. One or mor...
diff --git a/pex/version.py b/pex/version.py --- a/pex/version.py +++ b/pex/version.py @@ -1,4 +1,4 @@ # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). -__version__ = "2.1.115" +__version__ = "2.1.116"
{"golden_diff": "diff --git a/pex/version.py b/pex/version.py\n--- a/pex/version.py\n+++ b/pex/version.py\n@@ -1,4 +1,4 @@\n # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).\n # Licensed under the Apache License, Version 2.0 (see LICENSE).\n \n-__version__ = \"2.1.115\"\n+__version__ = \"2.1.116\"\n",...
348
98
gh_patches_debug_14330
rasdani/github-patches
git_diff
pyca__cryptography-5825
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Version Scheme Change We've talked on and off for quite a few years about our versioning scheme for `cryptography`, but #5771 made it very clear that despite our [versioning documentation](https://cryptograph...
diff --git a/src/cryptography/__about__.py b/src/cryptography/__about__.py --- a/src/cryptography/__about__.py +++ b/src/cryptography/__about__.py @@ -21,7 +21,7 @@ ) __uri__ = "https://github.com/pyca/cryptography" -__version__ = "3.5.dev1" +__version__ = "35.0.0.dev1" __author__ = "The Python Cryptographic Aut...
{"golden_diff": "diff --git a/src/cryptography/__about__.py b/src/cryptography/__about__.py\n--- a/src/cryptography/__about__.py\n+++ b/src/cryptography/__about__.py\n@@ -21,7 +21,7 @@\n )\n __uri__ = \"https://github.com/pyca/cryptography\"\n \n-__version__ = \"3.5.dev1\"\n+__version__ = \"35.0.0.dev1\"\n \n __author_...
1,176
252
gh_patches_debug_26390
rasdani/github-patches
git_diff
jupyterhub__jupyterhub-835
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Remove or edit unreachable code block @minrk It looks like `_check_user_model` has a few code lines that don't seem to be reachable. Should we remove the lines after the return statement? https://github.com/j...
diff --git a/jupyterhub/apihandlers/base.py b/jupyterhub/apihandlers/base.py --- a/jupyterhub/apihandlers/base.py +++ b/jupyterhub/apihandlers/base.py @@ -140,19 +140,18 @@ def _check_user_model(self, model): """Check a request-provided user model from a REST API""" - return self._check_model(mod...
{"golden_diff": "diff --git a/jupyterhub/apihandlers/base.py b/jupyterhub/apihandlers/base.py\n--- a/jupyterhub/apihandlers/base.py\n+++ b/jupyterhub/apihandlers/base.py\n@@ -140,19 +140,18 @@\n \n def _check_user_model(self, model):\n \"\"\"Check a request-provided user model from a REST API\"\"\"\n- ...
1,952
408
gh_patches_debug_25209
rasdani/github-patches
git_diff
urllib3__urllib3-516
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Support body param in RequestMethods.request Easiest way to do this is by avoiding defining a body kw when no fields are given, then if both are given it will naturally raise a "passed twice" error. --- END...
diff --git a/urllib3/request.py b/urllib3/request.py --- a/urllib3/request.py +++ b/urllib3/request.py @@ -118,18 +118,24 @@ which is used to compose the body of the request. The random boundary string can be explicitly set with the ``multipart_boundary`` parameter. """ - if encode_mul...
{"golden_diff": "diff --git a/urllib3/request.py b/urllib3/request.py\n--- a/urllib3/request.py\n+++ b/urllib3/request.py\n@@ -118,18 +118,24 @@\n which is used to compose the body of the request. The random boundary\n string can be explicitly set with the ``multipart_boundary`` parameter.\n \"\...
1,766
351
gh_patches_debug_23722
rasdani/github-patches
git_diff
intel__dffml-585
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- docs: source: New File source tutorial The question of how to make a new data source came up [recently](https://gitter.im/dffml/community?at=5e0e4bfbfd580457e7b3e26a). We should have multiple tutorials for so...
diff --git a/dffml/source/ini.py b/dffml/source/ini.py --- a/dffml/source/ini.py +++ b/dffml/source/ini.py @@ -23,11 +23,11 @@ CONFIG = INISourceConfig - async def load_fd(self, ifile): + async def load_fd(self, fileobj): # Creating an instance of configparser parser = ConfigParser() ...
{"golden_diff": "diff --git a/dffml/source/ini.py b/dffml/source/ini.py\n--- a/dffml/source/ini.py\n+++ b/dffml/source/ini.py\n@@ -23,11 +23,11 @@\n \n CONFIG = INISourceConfig\n \n- async def load_fd(self, ifile):\n+ async def load_fd(self, fileobj):\n # Creating an instance of configparser\n ...
1,025
267
gh_patches_debug_35267
rasdani/github-patches
git_diff
pyinstaller__pyinstaller-6952
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- `hook-pkg_resources.py` is including hidden imports that are not available https://github.com/pyinstaller/pyinstaller/blob/3b5d233d02472ad9d589a798d19ad3d3df645223/PyInstaller/hooks/hook-pkg_resources.py#L20 ...
diff --git a/PyInstaller/hooks/hook-pkg_resources.py b/PyInstaller/hooks/hook-pkg_resources.py --- a/PyInstaller/hooks/hook-pkg_resources.py +++ b/PyInstaller/hooks/hook-pkg_resources.py @@ -9,26 +9,32 @@ # SPDX-License-Identifier: (GPL-2.0-or-later WITH Bootloader-exception) #----------------------------------------...
{"golden_diff": "diff --git a/PyInstaller/hooks/hook-pkg_resources.py b/PyInstaller/hooks/hook-pkg_resources.py\n--- a/PyInstaller/hooks/hook-pkg_resources.py\n+++ b/PyInstaller/hooks/hook-pkg_resources.py\n@@ -9,26 +9,32 @@\n # SPDX-License-Identifier: (GPL-2.0-or-later WITH Bootloader-exception)\n #------------------...
1,624
551
gh_patches_debug_2753
rasdani/github-patches
git_diff
SeldonIO__MLServer-1172
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Star imports from `mlserver.codecs` not working For example: ```python from mlserver.codecs import * ``` Throws an error: ```python Traceback (most recent call last): File "/home/janis/.conda/envs/...
diff --git a/mlserver/codecs/__init__.py b/mlserver/codecs/__init__.py --- a/mlserver/codecs/__init__.py +++ b/mlserver/codecs/__init__.py @@ -1,6 +1,6 @@ from .numpy import NumpyCodec, NumpyRequestCodec from .pandas import PandasCodec -from .string import StringCodec +from .string import StringCodec, StringRequestCo...
{"golden_diff": "diff --git a/mlserver/codecs/__init__.py b/mlserver/codecs/__init__.py\n--- a/mlserver/codecs/__init__.py\n+++ b/mlserver/codecs/__init__.py\n@@ -1,6 +1,6 @@\n from .numpy import NumpyCodec, NumpyRequestCodec\n from .pandas import PandasCodec\n-from .string import StringCodec\n+from .string import Stri...
895
121
gh_patches_debug_19124
rasdani/github-patches
git_diff
TheAlgorithms__Python-664
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- errors in balanced_parentheses.py https://github.com/TheAlgorithms/Python/blob/6a95bf9ad8090a1280abf76752a52ab9ee2420b7/data_structures/stacks/balanced_parentheses.py#L13-L17 `Line 16` returns wrong result...
diff --git a/data_structures/stacks/balanced_parentheses.py b/data_structures/stacks/balanced_parentheses.py --- a/data_structures/stacks/balanced_parentheses.py +++ b/data_structures/stacks/balanced_parentheses.py @@ -1,6 +1,6 @@ from __future__ import print_function from __future__ import absolute_import -from .Sta...
{"golden_diff": "diff --git a/data_structures/stacks/balanced_parentheses.py b/data_structures/stacks/balanced_parentheses.py\n--- a/data_structures/stacks/balanced_parentheses.py\n+++ b/data_structures/stacks/balanced_parentheses.py\n@@ -1,6 +1,6 @@\n from __future__ import print_function\n from __future__ import abso...
667
244
gh_patches_debug_26805
rasdani/github-patches
git_diff
streamlink__streamlink-1268
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Kanal7 Plugin defective! Hi there, can you have a look on the kanal7.py please? "error: No playable streams found on this URL" Greetings --- END ISSUE --- Below are some code segments, each from a ...
diff --git a/src/streamlink/plugins/kanal7.py b/src/streamlink/plugins/kanal7.py --- a/src/streamlink/plugins/kanal7.py +++ b/src/streamlink/plugins/kanal7.py @@ -3,6 +3,7 @@ from streamlink.plugin import Plugin from streamlink.plugin.api import http +from streamlink.plugin.api import useragents from streamlink.pl...
{"golden_diff": "diff --git a/src/streamlink/plugins/kanal7.py b/src/streamlink/plugins/kanal7.py\n--- a/src/streamlink/plugins/kanal7.py\n+++ b/src/streamlink/plugins/kanal7.py\n@@ -3,6 +3,7 @@\n \n from streamlink.plugin import Plugin\n from streamlink.plugin.api import http\n+from streamlink.plugin.api import userag...
732
317
gh_patches_debug_23275
rasdani/github-patches
git_diff
wagtail__wagtail-3304
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- draft and live action labels are unclear ![screen shot 2017-01-05 at 12 42 52](https://cloud.githubusercontent.com/assets/7290588/21680947/944efe00-d344-11e6-9cbd-870f91fe9d5f.png) I don't think it's clea...
diff --git a/wagtail/wagtailadmin/wagtail_hooks.py b/wagtail/wagtailadmin/wagtail_hooks.py --- a/wagtail/wagtailadmin/wagtail_hooks.py +++ b/wagtail/wagtailadmin/wagtail_hooks.py @@ -70,10 +70,10 @@ yield PageListingButton(_('Edit'), reverse('wagtailadmin_pages:edit', args=[page.id]), ...
{"golden_diff": "diff --git a/wagtail/wagtailadmin/wagtail_hooks.py b/wagtail/wagtailadmin/wagtail_hooks.py\n--- a/wagtail/wagtailadmin/wagtail_hooks.py\n+++ b/wagtail/wagtailadmin/wagtail_hooks.py\n@@ -70,10 +70,10 @@\n yield PageListingButton(_('Edit'), reverse('wagtailadmin_pages:edit', args=[page.id]),\n ...
1,740
301
gh_patches_debug_14487
rasdani/github-patches
git_diff
svthalia__concrexit-2853
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Make API redirects respect query params <!-- Please add the appropriate label for what change should be made: docs: changes to the documentation) refactor: refactoring production code, eg. renaming a variabl...
diff --git a/website/partners/api/v2/urls.py b/website/partners/api/v2/urls.py --- a/website/partners/api/v2/urls.py +++ b/website/partners/api/v2/urls.py @@ -16,14 +16,18 @@ path( "partners/events/", RedirectView.as_view( - pattern_name="api:v2:events:external-events-list", permanent=...
{"golden_diff": "diff --git a/website/partners/api/v2/urls.py b/website/partners/api/v2/urls.py\n--- a/website/partners/api/v2/urls.py\n+++ b/website/partners/api/v2/urls.py\n@@ -16,14 +16,18 @@\n path(\n \"partners/events/\",\n RedirectView.as_view(\n- pattern_name=\"api:v2:events:extern...
763
208
gh_patches_debug_8139
rasdani/github-patches
git_diff
readthedocs__readthedocs.org-5957
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Improve msg error for submodules with invalid url schemas We only support `http` schemas, but the error message isn't clear about that. Here is a good suggestion: https://github.com/readthedocs/readthedocs.or...
diff --git a/readthedocs/projects/exceptions.py b/readthedocs/projects/exceptions.py --- a/readthedocs/projects/exceptions.py +++ b/readthedocs/projects/exceptions.py @@ -38,7 +38,10 @@ 'Private repositories are not supported.', ) - INVALID_SUBMODULES = _('One or more submodule URLs are not valid: {}...
{"golden_diff": "diff --git a/readthedocs/projects/exceptions.py b/readthedocs/projects/exceptions.py\n--- a/readthedocs/projects/exceptions.py\n+++ b/readthedocs/projects/exceptions.py\n@@ -38,7 +38,10 @@\n 'Private repositories are not supported.',\n )\n \n- INVALID_SUBMODULES = _('One or more submodul...
877
160
gh_patches_debug_16298
rasdani/github-patches
git_diff
getsentry__sentry-python-612
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- DeprecationWarning in sqlalchemy integration At integrations/sqlalchemy.py line 28 - integration is listening for dbapi_error, this was deprecated in sqlalchemy a long time ago and should be replaced with han...
diff --git a/sentry_sdk/integrations/sqlalchemy.py b/sentry_sdk/integrations/sqlalchemy.py --- a/sentry_sdk/integrations/sqlalchemy.py +++ b/sentry_sdk/integrations/sqlalchemy.py @@ -25,7 +25,7 @@ listen(Engine, "before_cursor_execute", _before_cursor_execute) listen(Engine, "after_cursor_execute", ...
{"golden_diff": "diff --git a/sentry_sdk/integrations/sqlalchemy.py b/sentry_sdk/integrations/sqlalchemy.py\n--- a/sentry_sdk/integrations/sqlalchemy.py\n+++ b/sentry_sdk/integrations/sqlalchemy.py\n@@ -25,7 +25,7 @@\n \n listen(Engine, \"before_cursor_execute\", _before_cursor_execute)\n listen(Engine,...
948
223
gh_patches_debug_1197
rasdani/github-patches
git_diff
keras-team__keras-nlp-1166
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add compute_output_shape method to WordPieceTokenizer When we run Pretraining Transformer from Scratch guide with PyTorch and JAX backend, it raises ``` RuntimeError: Exception encountered when calling ...
diff --git a/keras_nlp/tokenizers/tokenizer.py b/keras_nlp/tokenizers/tokenizer.py --- a/keras_nlp/tokenizers/tokenizer.py +++ b/keras_nlp/tokenizers/tokenizer.py @@ -123,3 +123,6 @@ def call(self, inputs, *args, training=None, **kwargs): return self.tokenize(inputs, *args, **kwargs) + + def compute_...
{"golden_diff": "diff --git a/keras_nlp/tokenizers/tokenizer.py b/keras_nlp/tokenizers/tokenizer.py\n--- a/keras_nlp/tokenizers/tokenizer.py\n+++ b/keras_nlp/tokenizers/tokenizer.py\n@@ -123,3 +123,6 @@\n \n def call(self, inputs, *args, training=None, **kwargs):\n return self.tokenize(inputs, *args, **kwar...
1,712
120
gh_patches_debug_9283
rasdani/github-patches
git_diff
locustio__locust-1918
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- the report cant show the right time <!-- If you have a general question about how to use Locust, please check Stack Overflow first https://stackoverflow.com/questions/tagged/locust You can also ask new q...
diff --git a/locust/html.py b/locust/html.py --- a/locust/html.py +++ b/locust/html.py @@ -20,11 +20,11 @@ stats = environment.runner.stats start_ts = stats.start_time - start_time = datetime.datetime.fromtimestamp(start_ts).strftime("%Y-%m-%d %H:%M:%S") + start_time = datetime.datetime.utcfromtimesta...
{"golden_diff": "diff --git a/locust/html.py b/locust/html.py\n--- a/locust/html.py\n+++ b/locust/html.py\n@@ -20,11 +20,11 @@\n stats = environment.runner.stats\n \n start_ts = stats.start_time\n- start_time = datetime.datetime.fromtimestamp(start_ts).strftime(\"%Y-%m-%d %H:%M:%S\")\n+ start_time = datet...
1,536
192
gh_patches_debug_5105
rasdani/github-patches
git_diff
encode__httpx-2442
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Support httpcore>=0.16.0 Hi, I have a project that uses `fastapi` and `uvicorn` which demands `h11>=0.8`. Latest version of `fastapi` changed their test suite from `requests` to `httpx`. So I had to add `h...
diff --git a/httpx/__version__.py b/httpx/__version__.py --- a/httpx/__version__.py +++ b/httpx/__version__.py @@ -1,3 +1,3 @@ __title__ = "httpx" __description__ = "A next generation HTTP client, for Python 3." -__version__ = "0.23.0" +__version__ = "0.23.1" diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setu...
{"golden_diff": "diff --git a/httpx/__version__.py b/httpx/__version__.py\n--- a/httpx/__version__.py\n+++ b/httpx/__version__.py\n@@ -1,3 +1,3 @@\n __title__ = \"httpx\"\n __description__ = \"A next generation HTTP client, for Python 3.\"\n-__version__ = \"0.23.0\"\n+__version__ = \"0.23.1\"\ndiff --git a/setup.py b/s...
731
203
gh_patches_debug_210
rasdani/github-patches
git_diff
xonsh__xonsh-3049
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Exception on startup (pygments_cache) <!--- Provide a general summary of the issue in the Title above --> <!--- If you have a question along the lines of "How do I do this Bash command in xonsh" please firs...
diff --git a/xonsh/ptk2/__init__.py b/xonsh/ptk2/__init__.py --- a/xonsh/ptk2/__init__.py +++ b/xonsh/ptk2/__init__.py @@ -1,8 +0,0 @@ -# must come before ptk / pygments imports -from xonsh.lazyasd import load_module_in_background - -load_module_in_background( - "pkg_resources", - debug="XONSH_DEBUG", - replac...
{"golden_diff": "diff --git a/xonsh/ptk2/__init__.py b/xonsh/ptk2/__init__.py\n--- a/xonsh/ptk2/__init__.py\n+++ b/xonsh/ptk2/__init__.py\n@@ -1,8 +0,0 @@\n-# must come before ptk / pygments imports\n-from xonsh.lazyasd import load_module_in_background\n-\n-load_module_in_background(\n- \"pkg_resources\",\n- debu...
584
125
gh_patches_debug_33044
rasdani/github-patches
git_diff
vispy__vispy-2135
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Remove warning on import about missing networkx dependency Currently, importing vispy (or some submodule) without networkx installed results in a warning about installing networkx, even if the user/downstream...
diff --git a/vispy/visuals/graphs/layouts/networkx_layout.py b/vispy/visuals/graphs/layouts/networkx_layout.py --- a/vispy/visuals/graphs/layouts/networkx_layout.py +++ b/vispy/visuals/graphs/layouts/networkx_layout.py @@ -6,9 +6,6 @@ try: import networkx as nx except ModuleNotFoundError: - import warnings - ...
{"golden_diff": "diff --git a/vispy/visuals/graphs/layouts/networkx_layout.py b/vispy/visuals/graphs/layouts/networkx_layout.py\n--- a/vispy/visuals/graphs/layouts/networkx_layout.py\n+++ b/vispy/visuals/graphs/layouts/networkx_layout.py\n@@ -6,9 +6,6 @@\n try:\n import networkx as nx\n except ModuleNotFoundError:\...
1,333
447
gh_patches_debug_59198
rasdani/github-patches
git_diff
Nitrate__Nitrate-319
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Fix filter calls Similar with the calls to `map`, these calls must be fixed as well. --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. -...
diff --git a/tcms/testplans/helpers/email.py b/tcms/testplans/helpers/email.py --- a/tcms/testplans/helpers/email.py +++ b/tcms/testplans/helpers/email.py @@ -36,4 +36,4 @@ case_testers = plan.case.values_list('default_tester__email', flat=True) recipients...
{"golden_diff": "diff --git a/tcms/testplans/helpers/email.py b/tcms/testplans/helpers/email.py\n--- a/tcms/testplans/helpers/email.py\n+++ b/tcms/testplans/helpers/email.py\n@@ -36,4 +36,4 @@\n case_testers = plan.case.values_list('default_tester__email',\n flat=Tru...
663
103
gh_patches_debug_2599
rasdani/github-patches
git_diff
hpcaitech__ColossalAI-3323
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [tensor] fix some unittests [tensor] fix some unittests [tensor] fix some unittests --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs....
diff --git a/colossalai/fx/tracer/_tracer_utils.py b/colossalai/fx/tracer/_tracer_utils.py --- a/colossalai/fx/tracer/_tracer_utils.py +++ b/colossalai/fx/tracer/_tracer_utils.py @@ -1,6 +1,8 @@ -from typing import List, Union, Any -from ..proxy import ColoProxy, ColoAttribute +from typing import Any, List, Union + im...
{"golden_diff": "diff --git a/colossalai/fx/tracer/_tracer_utils.py b/colossalai/fx/tracer/_tracer_utils.py\n--- a/colossalai/fx/tracer/_tracer_utils.py\n+++ b/colossalai/fx/tracer/_tracer_utils.py\n@@ -1,6 +1,8 @@\n-from typing import List, Union, Any\n-from ..proxy import ColoProxy, ColoAttribute\n+from typing import...
747
144
gh_patches_debug_5791
rasdani/github-patches
git_diff
paperless-ngx__paperless-ngx-195
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [Other] Update name to paperless-ngx in docs https://github.com/paperless-ngx/paperless-ngx/issues/4#issuecomment-1039890021 > I would go through the places where the project name is mentioned and add the ...
diff --git a/src/paperless/urls.py b/src/paperless/urls.py --- a/src/paperless/urls.py +++ b/src/paperless/urls.py @@ -132,8 +132,8 @@ ] # Text in each page's <h1> (and above login form). -admin.site.site_header = "Paperless-ng" +admin.site.site_header = "Paperless-ngx" # Text at the end of each page's <title>. -a...
{"golden_diff": "diff --git a/src/paperless/urls.py b/src/paperless/urls.py\n--- a/src/paperless/urls.py\n+++ b/src/paperless/urls.py\n@@ -132,8 +132,8 @@\n ]\n \n # Text in each page's <h1> (and above login form).\n-admin.site.site_header = \"Paperless-ng\"\n+admin.site.site_header = \"Paperless-ngx\"\n # Text at the ...
1,537
163
gh_patches_debug_34903
rasdani/github-patches
git_diff
data-for-change__anyway-731
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Move load_discussions into main I can't figure out what's the purpose of this file --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. ---...
diff --git a/anyway/load_discussions.py b/anyway/load_discussions.py deleted file mode 100755 --- a/anyway/load_discussions.py +++ /dev/null @@ -1,39 +0,0 @@ -# -*- coding: utf-8 -*- -import argparse -from .models import DiscussionMarker -import re -from .database import db_session -import sys -import logging - -def ma...
{"golden_diff": "diff --git a/anyway/load_discussions.py b/anyway/load_discussions.py\ndeleted file mode 100755\n--- a/anyway/load_discussions.py\n+++ /dev/null\n@@ -1,39 +0,0 @@\n-# -*- coding: utf-8 -*-\n-import argparse\n-from .models import DiscussionMarker\n-import re\n-from .database import db_session\n-import sy...
1,183
685
gh_patches_debug_367
rasdani/github-patches
git_diff
rasterio__rasterio-1305
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add `GetMetadataItem` like method Ref: https://github.com/mapbox/rasterio/issues/1077, I'm proposing to add a new method in https://github.com/mapbox/rasterio/blob/master/rasterio/_base.pyx to replicate ...
diff --git a/rasterio/errors.py b/rasterio/errors.py --- a/rasterio/errors.py +++ b/rasterio/errors.py @@ -86,3 +86,7 @@ class RasterBlockError(RasterioError): """Raised when raster block access fails""" + + +class BandOverviewError(UserWarning): + """Raised when a band overview access fails."""
{"golden_diff": "diff --git a/rasterio/errors.py b/rasterio/errors.py\n--- a/rasterio/errors.py\n+++ b/rasterio/errors.py\n@@ -86,3 +86,7 @@\n \n class RasterBlockError(RasterioError):\n \"\"\"Raised when raster block access fails\"\"\"\n+\n+\n+class BandOverviewError(UserWarning):\n+ \"\"\"Raised when a band ov...
1,399
85
gh_patches_debug_33879
rasdani/github-patches
git_diff
TheAlgorithms__Python-9068
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Delete base85 algorithm ### Describe your change: Re #6216 Normally, I'm not in favour of just deleting algorithms, but I would make the argument that this is not an algorithm, rather just a snippet of co...
diff --git a/ciphers/base32.py b/ciphers/base32.py --- a/ciphers/base32.py +++ b/ciphers/base32.py @@ -1,42 +1,45 @@ -import base64 +""" +Base32 encoding and decoding +https://en.wikipedia.org/wiki/Base32 +""" +B32_CHARSET = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567" -def base32_encode(string: str) -> bytes: + +def base32_...
{"golden_diff": "diff --git a/ciphers/base32.py b/ciphers/base32.py\n--- a/ciphers/base32.py\n+++ b/ciphers/base32.py\n@@ -1,42 +1,45 @@\n-import base64\n+\"\"\"\n+Base32 encoding and decoding\n \n+https://en.wikipedia.org/wiki/Base32\n+\"\"\"\n+B32_CHARSET = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567\"\n \n-def base32_encode(...
1,239
855
gh_patches_debug_1834
rasdani/github-patches
git_diff
mozilla__pontoon-3003
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- GetText check fails incorrectly on newline https://pontoon.mozilla.org/en-GB/all-projects/all-resources/?string=286055 If you copy the source string, an extra line is added at the back, and that fails the ...
diff --git a/pontoon/translations/forms.py b/pontoon/translations/forms.py --- a/pontoon/translations/forms.py +++ b/pontoon/translations/forms.py @@ -51,5 +51,8 @@ return None return self.cleaned_data["plural_form"] + def clean_original(self): + return self.data.get("original", "") + ...
{"golden_diff": "diff --git a/pontoon/translations/forms.py b/pontoon/translations/forms.py\n--- a/pontoon/translations/forms.py\n+++ b/pontoon/translations/forms.py\n@@ -51,5 +51,8 @@\n return None\n return self.cleaned_data[\"plural_form\"]\n \n+ def clean_original(self):\n+ return self....
795
99
gh_patches_debug_8461
rasdani/github-patches
git_diff
deepset-ai__haystack-7603
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add e2e tests for pipeline evaluation for 2.x Test eval for 2.x with tiny dataset, check dataframes, isolated, integrated eval (migrate existing integration tests to e2e tests for 2.x) --- END ISSUE --- Bel...
diff --git a/haystack/evaluation/eval_run_result.py b/haystack/evaluation/eval_run_result.py --- a/haystack/evaluation/eval_run_result.py +++ b/haystack/evaluation/eval_run_result.py @@ -119,8 +119,8 @@ this_name = f"{this_name}_first" other_name = f"{other_name}_second" - if self.inp...
{"golden_diff": "diff --git a/haystack/evaluation/eval_run_result.py b/haystack/evaluation/eval_run_result.py\n--- a/haystack/evaluation/eval_run_result.py\n+++ b/haystack/evaluation/eval_run_result.py\n@@ -119,8 +119,8 @@\n this_name = f\"{this_name}_first\"\n other_name = f\"{other_name}_secon...
1,758
175
gh_patches_debug_13129
rasdani/github-patches
git_diff
liqd__a4-meinberlin-613
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- datetimepicker unique ids <img width="980" alt="screen shot 2017-06-01 at 15 59 21" src="https://cloud.githubusercontent.com/assets/16354712/26683219/61f8eb4c-46e3-11e7-851b-148bff927bd4.png"> --- END ISSU...
diff --git a/apps/contrib/widgets.py b/apps/contrib/widgets.py --- a/apps/contrib/widgets.py +++ b/apps/contrib/widgets.py @@ -71,12 +71,14 @@ date_attrs = self.build_attrs(attrs) date_attrs.update({ 'class': 'datepicker', - 'placeholder': formats.localize_input(datetime.date.t...
{"golden_diff": "diff --git a/apps/contrib/widgets.py b/apps/contrib/widgets.py\n--- a/apps/contrib/widgets.py\n+++ b/apps/contrib/widgets.py\n@@ -71,12 +71,14 @@\n date_attrs = self.build_attrs(attrs)\n date_attrs.update({\n 'class': 'datepicker',\n- 'placeholder': formats.locali...
1,223
159
gh_patches_debug_17569
rasdani/github-patches
git_diff
python-discord__site-304
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Make newlines visible in the deleted messages front-end The deleted messages front-end currently doesn't display newlines if they're consecutive, i.e., if the lines are otherwise empty (`"\n\n\n\n\n\n\n\n\n"`...
diff --git a/pydis_site/apps/staff/templatetags/deletedmessage_filters.py b/pydis_site/apps/staff/templatetags/deletedmessage_filters.py --- a/pydis_site/apps/staff/templatetags/deletedmessage_filters.py +++ b/pydis_site/apps/staff/templatetags/deletedmessage_filters.py @@ -7,11 +7,22 @@ @register.filter def hex_co...
{"golden_diff": "diff --git a/pydis_site/apps/staff/templatetags/deletedmessage_filters.py b/pydis_site/apps/staff/templatetags/deletedmessage_filters.py\n--- a/pydis_site/apps/staff/templatetags/deletedmessage_filters.py\n+++ b/pydis_site/apps/staff/templatetags/deletedmessage_filters.py\n@@ -7,11 +7,22 @@\n \n @regis...
659
304
gh_patches_debug_18377
rasdani/github-patches
git_diff
open-mmlab__mmdetection-4300
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Empirical attention with ResNext backbone In mmdetectiom v1 I used ResNext backbone with empirical attention 0010_dcn but in v2 I got an error. Any ideas how to fix this? My updated config file: ``` _ba...
diff --git a/mmdet/models/backbones/resnext.py b/mmdet/models/backbones/resnext.py --- a/mmdet/models/backbones/resnext.py +++ b/mmdet/models/backbones/resnext.py @@ -83,6 +83,27 @@ bias=False) self.add_module(self.norm3_name, norm3) + if self.with_plugins: + self._del_block_pl...
{"golden_diff": "diff --git a/mmdet/models/backbones/resnext.py b/mmdet/models/backbones/resnext.py\n--- a/mmdet/models/backbones/resnext.py\n+++ b/mmdet/models/backbones/resnext.py\n@@ -83,6 +83,27 @@\n bias=False)\n self.add_module(self.norm3_name, norm3)\n \n+ if self.with_plugins:\n+ ...
2,024
287
gh_patches_debug_1191
rasdani/github-patches
git_diff
huggingface__dataset-viewer-2409
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Retry jobs that finish with `ClientConnection` error? Maybe here: https://github.com/huggingface/datasets-server/blob/f311a9212aaa91dd0373e5c2d4f5da9b6bdabcb5/chart/env/prod.yaml#L209 Internal conversation...
diff --git a/libs/libcommon/src/libcommon/constants.py b/libs/libcommon/src/libcommon/constants.py --- a/libs/libcommon/src/libcommon/constants.py +++ b/libs/libcommon/src/libcommon/constants.py @@ -36,6 +36,7 @@ PARQUET_REVISION = "refs/convert/parquet" ERROR_CODES_TO_RETRY = { + "ConnectionError", "Create...
{"golden_diff": "diff --git a/libs/libcommon/src/libcommon/constants.py b/libs/libcommon/src/libcommon/constants.py\n--- a/libs/libcommon/src/libcommon/constants.py\n+++ b/libs/libcommon/src/libcommon/constants.py\n@@ -36,6 +36,7 @@\n PARQUET_REVISION = \"refs/convert/parquet\"\n \n ERROR_CODES_TO_RETRY = {\n+ \"Con...
1,260
102
gh_patches_debug_10313
rasdani/github-patches
git_diff
nilearn__nilearn-4049
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [DOC] Fix Sphinx issues related to adding new experimental module and typing ### Is there an existing issue for this? - [X] I have searched the existing issues ### Describe your proposed suggestion in d...
diff --git a/doc/sphinxext/github_link.py b/doc/sphinxext/github_link.py --- a/doc/sphinxext/github_link.py +++ b/doc/sphinxext/github_link.py @@ -40,9 +40,12 @@ class_name = info["fullname"].split(".")[0] module = __import__(info["module"], fromlist=[class_name]) - if info["module"] == "nilearn.experime...
{"golden_diff": "diff --git a/doc/sphinxext/github_link.py b/doc/sphinxext/github_link.py\n--- a/doc/sphinxext/github_link.py\n+++ b/doc/sphinxext/github_link.py\n@@ -40,9 +40,12 @@\n \n class_name = info[\"fullname\"].split(\".\")[0]\n module = __import__(info[\"module\"], fromlist=[class_name])\n- if info[...
1,580
182
gh_patches_debug_14871
rasdani/github-patches
git_diff
liqd__a4-meinberlin-2610
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- preview in text commenting does not work URL: https://meinberlin-dev.liqd.net/dashboard/projects/textkommentierung/basic/ user: initiator expected behaviour: should be able to see preview behaviour: get 40...
diff --git a/meinberlin/apps/documents/views.py b/meinberlin/apps/documents/views.py --- a/meinberlin/apps/documents/views.py +++ b/meinberlin/apps/documents/views.py @@ -1,7 +1,5 @@ -from django.http import Http404 from django.urls import reverse from django.utils.functional import cached_property -from django.utils...
{"golden_diff": "diff --git a/meinberlin/apps/documents/views.py b/meinberlin/apps/documents/views.py\n--- a/meinberlin/apps/documents/views.py\n+++ b/meinberlin/apps/documents/views.py\n@@ -1,7 +1,5 @@\n-from django.http import Http404\n from django.urls import reverse\n from django.utils.functional import cached_prop...
1,085
170
gh_patches_debug_598
rasdani/github-patches
git_diff
pex-tool__pex-1733
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Release 2.1.82 On the docket: + [x] Pex resolve checking does not allow resolved pre-releases when --no-pre. #1730 --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of...
diff --git a/pex/version.py b/pex/version.py --- a/pex/version.py +++ b/pex/version.py @@ -1,4 +1,4 @@ # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). -__version__ = "2.1.81" +__version__ = "2.1.82"
{"golden_diff": "diff --git a/pex/version.py b/pex/version.py\n--- a/pex/version.py\n+++ b/pex/version.py\n@@ -1,4 +1,4 @@\n # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).\n # Licensed under the Apache License, Version 2.0 (see LICENSE).\n \n-__version__ = \"2.1.81\"\n+__version__ = \"2.1.82\"\n", "...
347
96
gh_patches_debug_4478
rasdani/github-patches
git_diff
python-telegram-bot__python-telegram-bot-2168
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- mypy doesn't pick up type hints[BUG] <!-- Thanks for reporting issues of python-telegram-bot! Use this template to notify us if you found a bug. To make it easier for us to help you please enter detail...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -45,6 +45,7 @@ description="We have made you a wrapper you can't refuse", long_description=fd.read(), packages=packages, + package_data={'telegram': ['py.typed']}, install_requires=requirements, ...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -45,6 +45,7 @@\n description=\"We have made you a wrapper you can't refuse\",\n long_description=fd.read(),\n packages=packages,\n+ package_data={'telegram': ['py.typed']},\n install_re...
1,387
88
gh_patches_debug_4094
rasdani/github-patches
git_diff
urllib3__urllib3-841
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- PyOpenSSL: Fails to import after installation with the provided instructions The [Security documentation page](https://urllib3.readthedocs.org/en/latest/security.html#openssl-pyopenssl) indicates that to use ...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -40,7 +40,8 @@ license='MIT', packages=['urllib3', 'urllib3.packages', 'urllib3.packages.ssl_match_hostname', - 'urllib3.contrib', 'urllib3.util', + 'urllib3.packages.backports', 'urllib3.contr...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -40,7 +40,8 @@\n license='MIT',\n packages=['urllib3',\n 'urllib3.packages', 'urllib3.packages.ssl_match_hostname',\n- 'urllib3.contrib', 'urllib3.util',\n+ 'urllib3.packages.b...
1,193
111
gh_patches_debug_30146
rasdani/github-patches
git_diff
beetbox__beets-4807
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- plugins: add markunmatched ## Description Add a plugin useful for bulk importers. ## To Do - [x] Documentation. (If you've add a new command-line flag, for example, find the appropriate page under `d...
diff --git a/beetsplug/mbsubmit.py b/beetsplug/mbsubmit.py --- a/beetsplug/mbsubmit.py +++ b/beetsplug/mbsubmit.py @@ -21,11 +21,13 @@ [1] https://wiki.musicbrainz.org/History:How_To_Parse_Track_Listings """ +import subprocess from beets import ui from beets.autotag import Recommendation from beets.plugins imp...
{"golden_diff": "diff --git a/beetsplug/mbsubmit.py b/beetsplug/mbsubmit.py\n--- a/beetsplug/mbsubmit.py\n+++ b/beetsplug/mbsubmit.py\n@@ -21,11 +21,13 @@\n [1] https://wiki.musicbrainz.org/History:How_To_Parse_Track_Listings\n \"\"\"\n \n+import subprocess\n \n from beets import ui\n from beets.autotag import Recommen...
1,138
415
gh_patches_debug_2187
rasdani/github-patches
git_diff
projectmesa__mesa-989
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Color patches takes a long time to load When you hit "reset" to load the color patches example, it takes a long time to load. Not sure why. As a result, I thought it was broken. To recreate... ``` cd e...
diff --git a/examples/color_patches/color_patches/server.py b/examples/color_patches/color_patches/server.py --- a/examples/color_patches/color_patches/server.py +++ b/examples/color_patches/color_patches/server.py @@ -62,7 +62,7 @@ ColorPatches, [canvas_element], "Color Patches", - {"width": canvas_w...
{"golden_diff": "diff --git a/examples/color_patches/color_patches/server.py b/examples/color_patches/color_patches/server.py\n--- a/examples/color_patches/color_patches/server.py\n+++ b/examples/color_patches/color_patches/server.py\n@@ -62,7 +62,7 @@\n ColorPatches,\n [canvas_element],\n \"Color Patches\"...
1,170
128
gh_patches_debug_15770
rasdani/github-patches
git_diff
open-telemetry__opentelemetry-python-1793
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Documentation references old propagators module `propagators.inject` is being used [here](https://github.com/open-telemetry/opentelemetry-python/blob/main/docs/examples/auto-instrumentation/client.py#L40), `p...
diff --git a/docs/examples/auto-instrumentation/client.py b/docs/examples/auto-instrumentation/client.py --- a/docs/examples/auto-instrumentation/client.py +++ b/docs/examples/auto-instrumentation/client.py @@ -16,7 +16,8 @@ from requests import get -from opentelemetry import propagators, trace +from opentelemetry...
{"golden_diff": "diff --git a/docs/examples/auto-instrumentation/client.py b/docs/examples/auto-instrumentation/client.py\n--- a/docs/examples/auto-instrumentation/client.py\n+++ b/docs/examples/auto-instrumentation/client.py\n@@ -16,7 +16,8 @@\n \n from requests import get\n \n-from opentelemetry import propagators, t...
758
182
gh_patches_debug_17971
rasdani/github-patches
git_diff
googleapis__python-bigquery-630
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- The DB API Binary function should accept bytes. ``` (3.8) jim@ds9:~/p/g/python-bigquery-sqlalchemy$ python Python 3.8.5 (default, Jan 27 2021, 15:41:15) [GCC 9.3.0] on linux Type "help", "copyright", "cr...
diff --git a/google/cloud/bigquery/dbapi/types.py b/google/cloud/bigquery/dbapi/types.py --- a/google/cloud/bigquery/dbapi/types.py +++ b/google/cloud/bigquery/dbapi/types.py @@ -30,16 +30,28 @@ TimestampFromTicks = datetime.datetime.fromtimestamp -def Binary(string): +def Binary(data): """Contruct a DB-API b...
{"golden_diff": "diff --git a/google/cloud/bigquery/dbapi/types.py b/google/cloud/bigquery/dbapi/types.py\n--- a/google/cloud/bigquery/dbapi/types.py\n+++ b/google/cloud/bigquery/dbapi/types.py\n@@ -30,16 +30,28 @@\n TimestampFromTicks = datetime.datetime.fromtimestamp\n \n \n-def Binary(string):\n+def Binary(data):\n ...
1,340
282
gh_patches_debug_27461
rasdani/github-patches
git_diff
napari__napari-745
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Show logo during startup ## 🚀 Feature Right now napari takes a long time to launch the viewer. People can get discouraged as they wait, unsure if napari is loading, or if their data is loading, or if it is ...
diff --git a/napari/__main__.py b/napari/__main__.py --- a/napari/__main__.py +++ b/napari/__main__.py @@ -50,7 +50,7 @@ 'only a single image is given.', ) args = parser.parse_args() - with gui_qt(): + with gui_qt(startup_logo=True): v = Viewer() if len(args.images) > 0: ...
{"golden_diff": "diff --git a/napari/__main__.py b/napari/__main__.py\n--- a/napari/__main__.py\n+++ b/napari/__main__.py\n@@ -50,7 +50,7 @@\n 'only a single image is given.',\n )\n args = parser.parse_args()\n- with gui_qt():\n+ with gui_qt(startup_logo=True):\n v = Viewer()\n if ...
1,108
413
gh_patches_debug_31614
rasdani/github-patches
git_diff
GeotrekCE__Geotrek-admin-1306
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- TRAIL filters Add "communes, secteurs, type physique, type foncier..." for TRAILS filters as it is in other modules. --- END ISSUE --- Below are some code segments, each from a relevant file. One or more o...
diff --git a/geotrek/land/filters.py b/geotrek/land/filters.py --- a/geotrek/land/filters.py +++ b/geotrek/land/filters.py @@ -5,7 +5,7 @@ from geotrek.common.models import Organism from geotrek.common.filters import StructureRelatedFilterSet -from geotrek.core.filters import TopologyFilter, PathFilterSet +from geo...
{"golden_diff": "diff --git a/geotrek/land/filters.py b/geotrek/land/filters.py\n--- a/geotrek/land/filters.py\n+++ b/geotrek/land/filters.py\n@@ -5,7 +5,7 @@\n from geotrek.common.models import Organism\n from geotrek.common.filters import StructureRelatedFilterSet\n \n-from geotrek.core.filters import TopologyFilter,...
1,852
414
gh_patches_debug_47458
rasdani/github-patches
git_diff
awslabs__gluonts-1132
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Update pandas dependency As documented in #967, pandas will be fixing the breaking change that led us to fix the dependency to `<1.1`, see pandas-dev/pandas#37267 Once that is resolved, we could remove the...
diff --git a/src/gluonts/time_feature/_base.py b/src/gluonts/time_feature/_base.py --- a/src/gluonts/time_feature/_base.py +++ b/src/gluonts/time_feature/_base.py @@ -136,8 +136,8 @@ """ features_by_offsets = { - offsets.YearOffset: [], - offsets.MonthOffset: [MonthOfYear], + offsets.Ye...
{"golden_diff": "diff --git a/src/gluonts/time_feature/_base.py b/src/gluonts/time_feature/_base.py\n--- a/src/gluonts/time_feature/_base.py\n+++ b/src/gluonts/time_feature/_base.py\n@@ -136,8 +136,8 @@\n \"\"\"\n \n features_by_offsets = {\n- offsets.YearOffset: [],\n- offsets.MonthOffset: [Month...
1,928
150
gh_patches_debug_12149
rasdani/github-patches
git_diff
mindsdb__mindsdb-813
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add endpoint for mindsdb version Add HTTP route to get a version of mindsdb: /util/version/ That should return as mindsb version in JSON view: ``` { "mindsdb": "2.11.2" } ``` The new endpoint needs t...
diff --git a/mindsdb/api/http/namespaces/util.py b/mindsdb/api/http/namespaces/util.py --- a/mindsdb/api/http/namespaces/util.py +++ b/mindsdb/api/http/namespaces/util.py @@ -2,7 +2,7 @@ from flask_restx import Resource, abort from mindsdb.api.http.namespaces.configs.util import ns_conf - +from mindsdb import __abo...
{"golden_diff": "diff --git a/mindsdb/api/http/namespaces/util.py b/mindsdb/api/http/namespaces/util.py\n--- a/mindsdb/api/http/namespaces/util.py\n+++ b/mindsdb/api/http/namespaces/util.py\n@@ -2,7 +2,7 @@\n from flask_restx import Resource, abort\n \n from mindsdb.api.http.namespaces.configs.util import ns_conf\n-\n+...
568
194
gh_patches_debug_11524
rasdani/github-patches
git_diff
Cog-Creators__Red-DiscordBot-1374
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [V3/Config] Clearing a registered data group when no data has been set results in a KeyError. Please be sure to read through other issues as well to make sure what you are suggesting/reporting has not already...
diff --git a/redbot/core/drivers/red_json.py b/redbot/core/drivers/red_json.py --- a/redbot/core/drivers/red_json.py +++ b/redbot/core/drivers/red_json.py @@ -62,10 +62,11 @@ async def clear(self, *identifiers: str): partial = self.data full_identifiers = (self.unique_cog_identifier, *identifiers...
{"golden_diff": "diff --git a/redbot/core/drivers/red_json.py b/redbot/core/drivers/red_json.py\n--- a/redbot/core/drivers/red_json.py\n+++ b/redbot/core/drivers/red_json.py\n@@ -62,10 +62,11 @@\n async def clear(self, *identifiers: str):\n partial = self.data\n full_identifiers = (self.unique_cog_i...
1,062
194
gh_patches_debug_7462
rasdani/github-patches
git_diff
arviz-devs__arviz-644
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- add api docs for plot_energy https://arviz-devs.github.io/arviz/generated/arviz.plot_energy.html#arviz.plot_energy See Posterior Docs for example https://arviz-devs.github.io/arviz/generated/arviz.plot_po...
diff --git a/arviz/plots/energyplot.py b/arviz/plots/energyplot.py --- a/arviz/plots/energyplot.py +++ b/arviz/plots/energyplot.py @@ -61,6 +61,25 @@ Returns ------- ax : matplotlib axes + + Examples + -------- + Plot a default energy plot + + .. plot:: + :context: close-figs + + ...
{"golden_diff": "diff --git a/arviz/plots/energyplot.py b/arviz/plots/energyplot.py\n--- a/arviz/plots/energyplot.py\n+++ b/arviz/plots/energyplot.py\n@@ -61,6 +61,25 @@\n Returns\n -------\n ax : matplotlib axes\n+\n+ Examples\n+ --------\n+ Plot a default energy plot\n+\n+ .. plot::\n+ ...
1,536
191
gh_patches_debug_14517
rasdani/github-patches
git_diff
Qiskit__qiskit-862
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Make interactive visualizations default for Jupyter <!-- ⚠️ If you do not respect this template, your issue will be closed --> <!-- ⚠️ Make sure to browse the opened and closed issues to confirm this idea do...
diff --git a/qiskit/tools/visualization/__init__.py b/qiskit/tools/visualization/__init__.py --- a/qiskit/tools/visualization/__init__.py +++ b/qiskit/tools/visualization/__init__.py @@ -7,7 +7,18 @@ """Main QISKit visualization methods.""" +import sys + from ._circuit_visualization import circuit_drawer, plot_ci...
{"golden_diff": "diff --git a/qiskit/tools/visualization/__init__.py b/qiskit/tools/visualization/__init__.py\n--- a/qiskit/tools/visualization/__init__.py\n+++ b/qiskit/tools/visualization/__init__.py\n@@ -7,7 +7,18 @@\n \n \"\"\"Main QISKit visualization methods.\"\"\"\n \n+import sys\n+\n from ._circuit_visualizatio...
593
230
gh_patches_debug_58539
rasdani/github-patches
git_diff
ansible__molecule-4038
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- created: true is ignored in state.yml # Issue Type - Bug report # Molecule and Ansible details ``` ansible --version && molecule --version ansible [core 2.15.3] config file = None configured ...
diff --git a/src/molecule/command/create.py b/src/molecule/command/create.py --- a/src/molecule/command/create.py +++ b/src/molecule/command/create.py @@ -41,6 +41,11 @@ """ self._config.state.change_state("driver", self._config.driver.name) + if self._config.state.created: + msg =...
{"golden_diff": "diff --git a/src/molecule/command/create.py b/src/molecule/command/create.py\n--- a/src/molecule/command/create.py\n+++ b/src/molecule/command/create.py\n@@ -41,6 +41,11 @@\n \"\"\"\n self._config.state.change_state(\"driver\", self._config.driver.name)\n \n+ if self._config.stat...
2,034
121
gh_patches_debug_3440
rasdani/github-patches
git_diff
spack__spack-21932
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- shell test kcov suggestion does not work ### Steps to reproduce the issue ```console $ ./share/spack/qa/run-shell-tests ERROR: kcov is required to run this script. To install with Spack, run: $ ...
diff --git a/var/spack/repos/builtin/packages/kcov/package.py b/var/spack/repos/builtin/packages/kcov/package.py --- a/var/spack/repos/builtin/packages/kcov/package.py +++ b/var/spack/repos/builtin/packages/kcov/package.py @@ -19,6 +19,8 @@ depends_on('cmake@2.8.4:', type='build') depends_on('zlib') depe...
{"golden_diff": "diff --git a/var/spack/repos/builtin/packages/kcov/package.py b/var/spack/repos/builtin/packages/kcov/package.py\n--- a/var/spack/repos/builtin/packages/kcov/package.py\n+++ b/var/spack/repos/builtin/packages/kcov/package.py\n@@ -19,6 +19,8 @@\n depends_on('cmake@2.8.4:', type='build')\n depend...
965
144
gh_patches_debug_23351
rasdani/github-patches
git_diff
pwndbg__pwndbg-671
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- subprocess.CalledProcessError: Command '['/usr/local/bin/checksec', '--file', '/tmp/xxx']' returned non-zero exit status 2. ``` pwndbg> checksec Traceback (most recent call last): File "/root/pwndbg/pwn...
diff --git a/pwndbg/wrappers/checksec.py b/pwndbg/wrappers/checksec.py --- a/pwndbg/wrappers/checksec.py +++ b/pwndbg/wrappers/checksec.py @@ -5,6 +5,10 @@ from __future__ import print_function from __future__ import unicode_literals +import subprocess +from re import search +from subprocess import STDOUT + import...
{"golden_diff": "diff --git a/pwndbg/wrappers/checksec.py b/pwndbg/wrappers/checksec.py\n--- a/pwndbg/wrappers/checksec.py\n+++ b/pwndbg/wrappers/checksec.py\n@@ -5,6 +5,10 @@\n from __future__ import print_function\n from __future__ import unicode_literals\n \n+import subprocess\n+from re import search\n+from subproce...
1,178
360