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_8326
rasdani/github-patches
git_diff
google__clusterfuzz-1163
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Command field empty in OSS-Fuzz testcases See https://oss-fuzz.com/testcase-detail/5204819744915456 for example. --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of the...
diff --git a/src/python/bot/untrusted_runner/tasks_impl.py b/src/python/bot/untrusted_runner/tasks_impl.py --- a/src/python/bot/untrusted_runner/tasks_impl.py +++ b/src/python/bot/untrusted_runner/tasks_impl.py @@ -151,6 +151,7 @@ request.testcase_path, ...
{"golden_diff": "diff --git a/src/python/bot/untrusted_runner/tasks_impl.py b/src/python/bot/untrusted_runner/tasks_impl.py\n--- a/src/python/bot/untrusted_runner/tasks_impl.py\n+++ b/src/python/bot/untrusted_runner/tasks_impl.py\n@@ -151,6 +151,7 @@\n request.testcase_path,...
1,942
118
gh_patches_debug_3051
rasdani/github-patches
git_diff
googleapis__google-cloud-python-2533
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Pubsub message getting wrong attribute for publishTime According the [REST docs](https://cloud.google.com/pubsub/docs/reference/rest/v1/PubsubMessage), a `PubsubMessage` has the field `publishTime` In [messa...
diff --git a/pubsub/google/cloud/pubsub/message.py b/pubsub/google/cloud/pubsub/message.py --- a/pubsub/google/cloud/pubsub/message.py +++ b/pubsub/google/cloud/pubsub/message.py @@ -89,5 +89,5 @@ instance = cls( data=data, message_id=api_repr['messageId'], attributes=api_repr.get('at...
{"golden_diff": "diff --git a/pubsub/google/cloud/pubsub/message.py b/pubsub/google/cloud/pubsub/message.py\n--- a/pubsub/google/cloud/pubsub/message.py\n+++ b/pubsub/google/cloud/pubsub/message.py\n@@ -89,5 +89,5 @@\n instance = cls(\n data=data, message_id=api_repr['messageId'],\n attr...
1,805
115
gh_patches_debug_13455
rasdani/github-patches
git_diff
cloud-custodian__cloud-custodian-3811
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- gcp serverless runtime error on implicit boto dependency reported in gitter, gcp functions should not need to depend on boto3, looks like some of the securityhub work caused an implicit dependency on boto3. ...
diff --git a/c7n/filters/securityhub.py b/c7n/filters/securityhub.py --- a/c7n/filters/securityhub.py +++ b/c7n/filters/securityhub.py @@ -16,7 +16,6 @@ from c7n.utils import local_session, type_schema from .core import Filter from c7n.manager import resources -from c7n.resources import aws class SecurityHubFin...
{"golden_diff": "diff --git a/c7n/filters/securityhub.py b/c7n/filters/securityhub.py\n--- a/c7n/filters/securityhub.py\n+++ b/c7n/filters/securityhub.py\n@@ -16,7 +16,6 @@\n from c7n.utils import local_session, type_schema\n from .core import Filter\n from c7n.manager import resources\n-from c7n.resources import aws\n...
1,411
163
gh_patches_debug_20277
rasdani/github-patches
git_diff
bookwyrm-social__bookwyrm-1080
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Reduce detail level of timestamp on posts **Is your feature request related to a problem? Please describe.** I think the time when a post was posted is a tad too detailed. For posts in the last 24h, it chang...
diff --git a/bookwyrm/templatetags/status_display.py b/bookwyrm/templatetags/status_display.py --- a/bookwyrm/templatetags/status_display.py +++ b/bookwyrm/templatetags/status_display.py @@ -1,6 +1,8 @@ """ template filters """ +from dateutil.relativedelta import relativedelta from django import template - +from djan...
{"golden_diff": "diff --git a/bookwyrm/templatetags/status_display.py b/bookwyrm/templatetags/status_display.py\n--- a/bookwyrm/templatetags/status_display.py\n+++ b/bookwyrm/templatetags/status_display.py\n@@ -1,6 +1,8 @@\n \"\"\" template filters \"\"\"\n+from dateutil.relativedelta import relativedelta\n from django...
910
291
gh_patches_debug_35071
rasdani/github-patches
git_diff
microsoft__playwright-python-53
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Auto release on PyPi on tags General interest in that? Should be pretty easy with GitHub Actions, only have to set the a Pypi API key on your end. Example: https://github.com/microsoft/playwright-python/ne...
diff --git a/playwright/__init__.py b/playwright/__init__.py --- a/playwright/__init__.py +++ b/playwright/__init__.py @@ -12,6 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. +from playwright._repo_version import version as __version__ # noqa:F401 f...
{"golden_diff": "diff --git a/playwright/__init__.py b/playwright/__init__.py\n--- a/playwright/__init__.py\n+++ b/playwright/__init__.py\n@@ -12,6 +12,7 @@\n # See the License for the specific language governing permissions and\n # limitations under the License.\n \n+from playwright._repo_version import version as __v...
1,251
579
gh_patches_debug_36108
rasdani/github-patches
git_diff
svthalia__concrexit-1463
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- User creation in the admin is broken Sentry Issue: [CONCREXIT-3F](https://sentry.io/organizations/thalia/issues/1844597243/?referrer=github_integration) ``` FieldError: Unknown field(s) (password2, password1...
diff --git a/website/members/forms.py b/website/members/forms.py --- a/website/members/forms.py +++ b/website/members/forms.py @@ -1,13 +1,10 @@ """Forms defined by the members package.""" from django import forms -from django.conf import settings -from django.contrib.auth import get_user_model from django.contrib.a...
{"golden_diff": "diff --git a/website/members/forms.py b/website/members/forms.py\n--- a/website/members/forms.py\n+++ b/website/members/forms.py\n@@ -1,13 +1,10 @@\n \"\"\"Forms defined by the members package.\"\"\"\n from django import forms\n-from django.conf import settings\n-from django.contrib.auth import get_use...
1,880
575
gh_patches_debug_166
rasdani/github-patches
git_diff
goauthentik__authentik-9516
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- 2024.4.0 LongRunningTransaction **Describe the bug** Prometheus alert for a long running transaction. I think the transaction is ``` SELECT pg_advisory_unlock($1) ``` **To Reproduce** No activity...
diff --git a/lifecycle/migrate.py b/lifecycle/migrate.py --- a/lifecycle/migrate.py +++ b/lifecycle/migrate.py @@ -117,6 +117,8 @@ ) finally: release_lock(curr) + curr.close() + conn.close() if __name__ == "__main__":
{"golden_diff": "diff --git a/lifecycle/migrate.py b/lifecycle/migrate.py\n--- a/lifecycle/migrate.py\n+++ b/lifecycle/migrate.py\n@@ -117,6 +117,8 @@\n )\n finally:\n release_lock(curr)\n+ curr.close()\n+ conn.close()\n \n \n if __name__ == \"__main__\":\n", "issue": "2024.4.0 LongRun...
1,540
75
gh_patches_debug_31693
rasdani/github-patches
git_diff
mlflow__mlflow-10923
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [BUG] Security Vulnerability Please check it here https://huntr.com/bounties/e3d7a994-bfd6-4772-ac9b-9aee1aa16a5f/ --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of t...
diff --git a/mlflow/store/artifact/local_artifact_repo.py b/mlflow/store/artifact/local_artifact_repo.py --- a/mlflow/store/artifact/local_artifact_repo.py +++ b/mlflow/store/artifact/local_artifact_repo.py @@ -9,6 +9,7 @@ mkdir, relative_path_to_artifact_path, ) +from mlflow.utils.uri import validate_path_i...
{"golden_diff": "diff --git a/mlflow/store/artifact/local_artifact_repo.py b/mlflow/store/artifact/local_artifact_repo.py\n--- a/mlflow/store/artifact/local_artifact_repo.py\n+++ b/mlflow/store/artifact/local_artifact_repo.py\n@@ -9,6 +9,7 @@\n mkdir,\n relative_path_to_artifact_path,\n )\n+from mlflow.utils.ur...
1,642
377
gh_patches_debug_25018
rasdani/github-patches
git_diff
magenta__magenta-1851
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- KeyError: 'tfds_data_dir'(GANSynth) Hi, I got this error on GANSynth demo colab . How can I resolve it? ![image](https://user-images.githubusercontent.com/43649503/91554417-0a7d2400-e96a-11ea-9905-893c535b...
diff --git a/magenta/models/gansynth/gansynth_generate.py b/magenta/models/gansynth/gansynth_generate.py --- a/magenta/models/gansynth/gansynth_generate.py +++ b/magenta/models/gansynth/gansynth_generate.py @@ -50,6 +50,9 @@ absl.flags.DEFINE_float('secs_per_instrument', 6.0, 'In random interp...
{"golden_diff": "diff --git a/magenta/models/gansynth/gansynth_generate.py b/magenta/models/gansynth/gansynth_generate.py\n--- a/magenta/models/gansynth/gansynth_generate.py\n+++ b/magenta/models/gansynth/gansynth_generate.py\n@@ -50,6 +50,9 @@\n absl.flags.DEFINE_float('secs_per_instrument', 6.0,\n ...
1,760
357
gh_patches_debug_38325
rasdani/github-patches
git_diff
encode__starlette-8
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Request should present a scope-like interface The `Request` class should present a dict-like interface so that it can be used in the same way as `scope`. Should also allow it to be instantiated without a `rec...
diff --git a/starlette/decorators.py b/starlette/decorators.py --- a/starlette/decorators.py +++ b/starlette/decorators.py @@ -5,8 +5,10 @@ def asgi_application(func): def app(scope: Scope) -> ASGIInstance: + request = Request(scope) + async def awaitable(receive: Receive, send: Send) -> None: -...
{"golden_diff": "diff --git a/starlette/decorators.py b/starlette/decorators.py\n--- a/starlette/decorators.py\n+++ b/starlette/decorators.py\n@@ -5,8 +5,10 @@\n \n def asgi_application(func):\n def app(scope: Scope) -> ASGIInstance:\n+ request = Request(scope)\n+\n async def awaitable(receive: Recei...
1,126
599
gh_patches_debug_16899
rasdani/github-patches
git_diff
open-mmlab__mmdetection-1099
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- ImportError: cannot import name 'build_sampler' from 'mmdet.core.bbox.assign_sampling' I have successful install the mmdetection by the command "pip install -v -e .". But I have the problem in the test. Woul...
diff --git a/mmdet/core/bbox/__init__.py b/mmdet/core/bbox/__init__.py --- a/mmdet/core/bbox/__init__.py +++ b/mmdet/core/bbox/__init__.py @@ -1,4 +1,3 @@ -from .assign_sampling import assign_and_sample, build_assigner, build_sampler from .assigners import AssignResult, BaseAssigner, MaxIoUAssigner from .bbox_target ...
{"golden_diff": "diff --git a/mmdet/core/bbox/__init__.py b/mmdet/core/bbox/__init__.py\n--- a/mmdet/core/bbox/__init__.py\n+++ b/mmdet/core/bbox/__init__.py\n@@ -1,4 +1,3 @@\n-from .assign_sampling import assign_and_sample, build_assigner, build_sampler\n from .assigners import AssignResult, BaseAssigner, MaxIoUAssign...
1,217
217
gh_patches_debug_35992
rasdani/github-patches
git_diff
safe-global__safe-config-service-8
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add Safe App Provider information The service should (optionally) include information about the provider of the application. The provider information should have at least the following fields: ```json ...
diff --git a/src/safe_apps/admin.py b/src/safe_apps/admin.py --- a/src/safe_apps/admin.py +++ b/src/safe_apps/admin.py @@ -1,5 +1,6 @@ from django.contrib import admin -from .models import SafeApp +from .models import SafeApp, Provider -admin.site.register(SafeApp) +models = [SafeApp, Provider] +admin.site.registe...
{"golden_diff": "diff --git a/src/safe_apps/admin.py b/src/safe_apps/admin.py\n--- a/src/safe_apps/admin.py\n+++ b/src/safe_apps/admin.py\n@@ -1,5 +1,6 @@\n from django.contrib import admin\n \n-from .models import SafeApp\n+from .models import SafeApp, Provider\n \n-admin.site.register(SafeApp)\n+models = [SafeApp, Pr...
674
634
gh_patches_debug_17476
rasdani/github-patches
git_diff
ray-project__ray-840
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Not possible to install Ray from git I want to install Ray for Python 3. ``` $ apt-get install -y cmake pkg-config python3-dev build-essential autoconf curl libtool libboost-all-dev unzip $ pip3 install ...
diff --git a/python/setup.py b/python/setup.py --- a/python/setup.py +++ b/python/setup.py @@ -81,12 +81,15 @@ # The BinaryDistribution argument triggers build_ext. distclass=BinaryDistribution, install_requires=["numpy", + "cython", "funcsigs", ...
{"golden_diff": "diff --git a/python/setup.py b/python/setup.py\n--- a/python/setup.py\n+++ b/python/setup.py\n@@ -81,12 +81,15 @@\n # The BinaryDistribution argument triggers build_ext.\n distclass=BinaryDistribution,\n install_requires=[\"numpy\",\n+ \"cython\",\n ...
1,409
156
gh_patches_debug_15745
rasdani/github-patches
git_diff
pwndbg__pwndbg-874
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- pwndbg gets stuck in GDB 10.1 <!-- Before reporting a new issue, make sure that we do not have any duplicates already open. If there is one it might be good to take part in the discussion there. Please m...
diff --git a/pwndbg/heap/__init__.py b/pwndbg/heap/__init__.py --- a/pwndbg/heap/__init__.py +++ b/pwndbg/heap/__init__.py @@ -8,18 +8,8 @@ heap_chain_limit = pwndbg.config.Parameter('heap-dereference-limit', 8, 'number of bins to dereference') -@pwndbg.events.new_objfile +@pwndbg.events.start def update(): - ...
{"golden_diff": "diff --git a/pwndbg/heap/__init__.py b/pwndbg/heap/__init__.py\n--- a/pwndbg/heap/__init__.py\n+++ b/pwndbg/heap/__init__.py\n@@ -8,18 +8,8 @@\n \n heap_chain_limit = pwndbg.config.Parameter('heap-dereference-limit', 8, 'number of bins to dereference')\n \n-@pwndbg.events.new_objfile\n+@pwndbg.events.s...
1,027
326
gh_patches_debug_20387
rasdani/github-patches
git_diff
unionai-oss__pandera-416
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- improve contribution instructions and expose in the docs #### Location of the documentation NA #### Documentation problem Currently, the contribution documentation is in [github](https://github.com/p...
diff --git a/docs/source/conf.py b/docs/source/conf.py --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -14,6 +14,7 @@ # documentation root, use os.path.abspath to make it absolute, like shown here. # import os +import shutil import sys from sphinx.util import logging @@ -40,6 +41,7 @@ "sphinx.ext.doc...
{"golden_diff": "diff --git a/docs/source/conf.py b/docs/source/conf.py\n--- a/docs/source/conf.py\n+++ b/docs/source/conf.py\n@@ -14,6 +14,7 @@\n # documentation root, use os.path.abspath to make it absolute, like shown here.\n #\n import os\n+import shutil\n import sys\n \n from sphinx.util import logging\n@@ -40,6 +...
1,895
259
gh_patches_debug_14934
rasdani/github-patches
git_diff
hylang__hy-932
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Multiple implementations overwrite each others' entrypoint hooks It's not uncommon to find Python 2 and Python 3 coexisting on the same system, and it's not unreasonable for the user to also want Hy for both ...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -52,6 +52,8 @@ if os.name == 'nt': install_requires.append('pyreadline==2.0') +ver = sys.version_info[0] + setup( name=PKG, version=__version__, @@ -59,8 +61,11 @@ entry_points={ 'console_scripts': [ 'hy = hy...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -52,6 +52,8 @@\n if os.name == 'nt':\n install_requires.append('pyreadline==2.0')\n \n+ver = sys.version_info[0]\n+\n setup(\n name=PKG,\n version=__version__,\n@@ -59,8 +61,11 @@\n entry_points={\n 'console_sc...
1,593
203
gh_patches_debug_28507
rasdani/github-patches
git_diff
sql-machine-learning__elasticdl-1815
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Worker hangs when connects to PS. The worker will wait the grpc channel of PS is ready using `channel_ready_future`. We should set timeout and retry. ![image](https://user-images.githubusercontent.com/180713...
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 @@ -5,6 +5,9 @@ from elasticdl.python.common.grpc_utils import build_channel from elasticdl.python.worker.worker import Worker +CONNECT_PS_MAX_RETRIES = 3 +CONNE...
{"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@@ -5,6 +5,9 @@\n from elasticdl.python.common.grpc_utils import build_channel\n from elasticdl.python.worker.worker import Worker\n \n+CONNECT_P...
712
397
gh_patches_debug_31741
rasdani/github-patches
git_diff
pyro-ppl__pyro-738
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Support arbitrary sample_shape in Rejector This will require the `proposal` to accept an optional `sample_shape` arg and the `log_prob_accept()` method to support broadcasting. --- END ISSUE --- Below are s...
diff --git a/pyro/distributions/rejector.py b/pyro/distributions/rejector.py --- a/pyro/distributions/rejector.py +++ b/pyro/distributions/rejector.py @@ -12,7 +12,8 @@ Rejection sampled distribution given an acceptance rate function. :param Distribution propose: A proposal distribution that samples batched...
{"golden_diff": "diff --git a/pyro/distributions/rejector.py b/pyro/distributions/rejector.py\n--- a/pyro/distributions/rejector.py\n+++ b/pyro/distributions/rejector.py\n@@ -12,7 +12,8 @@\n Rejection sampled distribution given an acceptance rate function.\n \n :param Distribution propose: A proposal distributi...
1,041
398
gh_patches_debug_10405
rasdani/github-patches
git_diff
e-valuation__EvaP-340
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- A user must never evaluate him/herself In rare cases a user can be participant and contributor in a course (e.g. participating student and tutor for the exercises at the same time). The system has to make sur...
diff --git a/evap/student/views.py b/evap/student/views.py --- a/evap/student/views.py +++ b/evap/student/views.py @@ -45,6 +45,8 @@ forms = SortedDict() for questionnaire, contribution in questionnaires_and_contributions(course): form = QuestionsForm(request.POST or None, contribution=contribution, ...
{"golden_diff": "diff --git a/evap/student/views.py b/evap/student/views.py\n--- a/evap/student/views.py\n+++ b/evap/student/views.py\n@@ -45,6 +45,8 @@\n forms = SortedDict()\n for questionnaire, contribution in questionnaires_and_contributions(course):\n form = QuestionsForm(request.POST or None, cont...
1,051
134
gh_patches_debug_5905
rasdani/github-patches
git_diff
scoutapp__scout_apm_python-746
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Deprecation notice about urllib3[secure] ### Description pyOpenSSL and urllib3[secure] are deprecated in the upcoming release (1.26.12) https://github.com/urllib3/urllib3/issues/2680 Removed 'urllib3...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -66,7 +66,7 @@ 'importlib-metadata ; python_version < "3.8"', "psutil>=5,<6", 'urllib3[secure] < 1.25 ; python_version < "3.5"', - 'urllib3[secure] < 2 ; python_version >= "3.5"', + 'urllib3 < 2 ; python_version >...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -66,7 +66,7 @@\n 'importlib-metadata ; python_version < \"3.8\"',\n \"psutil>=5,<6\",\n 'urllib3[secure] < 1.25 ; python_version < \"3.5\"',\n- 'urllib3[secure] < 2 ; python_version >= \"3.5\"',\n+ ...
1,511
146
gh_patches_debug_31075
rasdani/github-patches
git_diff
databricks__koalas-104
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Fix pypi description See https://pypi.org/project/databricks-koalas/ It just pulls in our entire README in markdown format. --- END ISSUE --- Below are some code segments, each from a relevant file. On...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -18,24 +18,46 @@ from setuptools import setup +DESCRIPTION = "Pandas DataFrame API on Apache Spark" -install_requires = [ - 'pandas>=0.23', - 'decorator', - 'pyarrow>=0.10,<0.11', # See https://github.com/databricks/spark-pandas/issues/2...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -18,24 +18,46 @@\n \n from setuptools import setup\n \n+DESCRIPTION = \"Pandas DataFrame API on Apache Spark\"\n \n-install_requires = [\n- 'pandas>=0.23',\n- 'decorator',\n- 'pyarrow>=0.10,<0.11', # See https://github.com/d...
705
597
gh_patches_debug_31276
rasdani/github-patches
git_diff
pulp__pulpcore-3857
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Global tasks like repair or reclaim should probably not run in parallel **Version** Please provide the versions of the pulpcore and plugin packages in use, and how they are installed. If you are using Pulp ...
diff --git a/pulpcore/app/views/repair.py b/pulpcore/app/views/repair.py --- a/pulpcore/app/views/repair.py +++ b/pulpcore/app/views/repair.py @@ -1,4 +1,5 @@ from drf_spectacular.utils import extend_schema +from django.conf import settings from rest_framework.views import APIView from pulpcore.app.response import...
{"golden_diff": "diff --git a/pulpcore/app/views/repair.py b/pulpcore/app/views/repair.py\n--- a/pulpcore/app/views/repair.py\n+++ b/pulpcore/app/views/repair.py\n@@ -1,4 +1,5 @@\n from drf_spectacular.utils import extend_schema\n+from django.conf import settings\n from rest_framework.views import APIView\n \n from pul...
1,123
433
gh_patches_debug_6402
rasdani/github-patches
git_diff
engnadeau__pybotics-425
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Strip links/badges/images from README for PyPi - While the new PyPi Warehouse supports markdown, images/badges/links are slow to load and will not work if they use relative paths (e.g., https://test.pypi.org/...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ long_description=get_readme(), long_description_content_type='text/markdown', use_scm_version=True, - setup_requires=['setuptools_scm'], + setup_requires=['setuptools', 'setuptools_scm'], ...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -18,7 +18,7 @@\n long_description=get_readme(),\n long_description_content_type='text/markdown',\n use_scm_version=True,\n- setup_requires=['setuptools_scm'],\n+ setup_requires=['setupto...
1,043
101
gh_patches_debug_32678
rasdani/github-patches
git_diff
raspiblitz__raspiblitz-1227
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Move BlitzTUI log to RAM disk The RAM disk (`/var/cache/raspiblitz/`) is a nice way to avoid reads and writes to either the SD card or the external disk for non-persistent data. Several things can be moved; t...
diff --git a/home.admin/BlitzTUI/blitztui/file_logger.py b/home.admin/BlitzTUI/blitztui/file_logger.py --- a/home.admin/BlitzTUI/blitztui/file_logger.py +++ b/home.admin/BlitzTUI/blitztui/file_logger.py @@ -1,3 +1,4 @@ +import getpass import json import logging import logging.config @@ -20,7 +21,14 @@ if IS...
{"golden_diff": "diff --git a/home.admin/BlitzTUI/blitztui/file_logger.py b/home.admin/BlitzTUI/blitztui/file_logger.py\n--- a/home.admin/BlitzTUI/blitztui/file_logger.py\n+++ b/home.admin/BlitzTUI/blitztui/file_logger.py\n@@ -1,3 +1,4 @@\n+import getpass\n import json\n import logging\n import logging.config\n@@ -20,7...
951
523
gh_patches_debug_1532
rasdani/github-patches
git_diff
mne-tools__mne-bids-259
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Update text before release The setup.py still states that this is experimental. I think it's grown up a fair bit :) this is the text that ends up on pypi. we should update it to reflect the package's aim h...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -14,7 +14,8 @@ raise RuntimeError('Could not determine version') -descr = """Experimental code for BIDS using MNE.""" +descr = ('An MNE project for organizing and formatting MEG and EEG data ' + 'according to the BIDS specification.') ...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -14,7 +14,8 @@\n raise RuntimeError('Could not determine version')\n \n \n-descr = \"\"\"Experimental code for BIDS using MNE.\"\"\"\n+descr = ('An MNE project for organizing and formatting MEG and EEG data '\n+ 'according...
847
97
gh_patches_debug_22071
rasdani/github-patches
git_diff
pre-commit__pre-commit-1919
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Failure to get the container id With #1888 in place, there's a regression when running inside a container. There's an assumption in https://github.com/pre-commit/pre-commit/blob/master/pre_commit/languages/do...
diff --git a/pre_commit/languages/docker.py b/pre_commit/languages/docker.py --- a/pre_commit/languages/docker.py +++ b/pre_commit/languages/docker.py @@ -1,7 +1,6 @@ import hashlib import json import os -import socket from typing import Sequence from typing import Tuple @@ -26,12 +25,24 @@ return False...
{"golden_diff": "diff --git a/pre_commit/languages/docker.py b/pre_commit/languages/docker.py\n--- a/pre_commit/languages/docker.py\n+++ b/pre_commit/languages/docker.py\n@@ -1,7 +1,6 @@\n import hashlib\n import json\n import os\n-import socket\n from typing import Sequence\n from typing import Tuple\n \n@@ -26,12 +25...
1,658
332
gh_patches_debug_6310
rasdani/github-patches
git_diff
kornia__kornia-1421
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- PyPI tarball missing required files ### Describe the bug The tarball uploaded to PyPI does not contain `requirements/*` files which are required to run the `setup.py` file. ### Reproduction steps ```...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -63,6 +63,7 @@ tests_require=['pytest'], packages=find_packages(exclude=('docs', 'test', 'examples')), package_data={"kornia": ["py.typed"]}, + data_files=[('', ['requirements/x.txt', 'requirements/dev.txt'])], ...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -63,6 +63,7 @@\n tests_require=['pytest'],\n packages=find_packages(exclude=('docs', 'test', 'examples')),\n package_data={\"kornia\": [\"py.typed\"]},\n+ data_files=[('', ['requirements/x.txt', 'require...
1,654
103
gh_patches_debug_16698
rasdani/github-patches
git_diff
GeotrekCE__Geotrek-admin-2462
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Outdoor - Orientations - [x] Ajouter les noms des champs dans les filtres --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FI...
diff --git a/mapentity/filters.py b/mapentity/filters.py --- a/mapentity/filters.py +++ b/mapentity/filters.py @@ -2,6 +2,7 @@ from django.conf import settings from django_filters import FilterSet, Filter +from django_filters.fields import ChoiceField from django_filters.filterset import get_model_field from djan...
{"golden_diff": "diff --git a/mapentity/filters.py b/mapentity/filters.py\n--- a/mapentity/filters.py\n+++ b/mapentity/filters.py\n@@ -2,6 +2,7 @@\n from django.conf import settings\n \n from django_filters import FilterSet, Filter\n+from django_filters.fields import ChoiceField\n from django_filters.filterset import g...
1,188
186
gh_patches_debug_27824
rasdani/github-patches
git_diff
pytorch__ignite-976
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Improve Frequency ## 🚀 Feature If we would like to log datapoints/second every 100 iterations, we most probably do like this ```python wps_metric = Frequency(output_transformer=lambda x: x['ntokens']) ...
diff --git a/ignite/metrics/frequency.py b/ignite/metrics/frequency.py --- a/ignite/metrics/frequency.py +++ b/ignite/metrics/frequency.py @@ -19,8 +19,21 @@ wps_metric.attach(trainer, name='wps') # Logging with TQDM ProgressBar(persist=True).attach(trainer, metric_names=['wps']) ...
{"golden_diff": "diff --git a/ignite/metrics/frequency.py b/ignite/metrics/frequency.py\n--- a/ignite/metrics/frequency.py\n+++ b/ignite/metrics/frequency.py\n@@ -19,8 +19,21 @@\n wps_metric.attach(trainer, name='wps')\n # Logging with TQDM\n ProgressBar(persist=True).attach(trainer,...
1,421
425
gh_patches_debug_24002
rasdani/github-patches
git_diff
bridgecrewio__checkov-831
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- CKV_K8S_31 failure with RuntimeDefault configured for workloads **Describe the bug** Please see #710 **To Reproduce** Please see #710 **Expected behavior** Please see #710 **Additional context** ...
diff --git a/checkov/kubernetes/checks/Seccomp.py b/checkov/kubernetes/checks/Seccomp.py --- a/checkov/kubernetes/checks/Seccomp.py +++ b/checkov/kubernetes/checks/Seccomp.py @@ -34,6 +34,20 @@ return CheckResult.PASSED if security_profile == 'RuntimeDefault' else CheckResult.FAILED if "me...
{"golden_diff": "diff --git a/checkov/kubernetes/checks/Seccomp.py b/checkov/kubernetes/checks/Seccomp.py\n--- a/checkov/kubernetes/checks/Seccomp.py\n+++ b/checkov/kubernetes/checks/Seccomp.py\n@@ -34,6 +34,20 @@\n return CheckResult.PASSED if security_profile == 'RuntimeDefault' else CheckResult.FAILE...
1,215
338
gh_patches_debug_18031
rasdani/github-patches
git_diff
mathesar-foundation__mathesar-2725
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Internal server error when importing CSVs with long names Follow the same steps as reported in #2634 and observer the error from the screenshot below: API: `http://localhost/api/db/v0/tables/12/records/?l...
diff --git a/db/identifiers.py b/db/identifiers.py --- a/db/identifiers.py +++ b/db/identifiers.py @@ -1,6 +1,9 @@ import hashlib +POSTGRES_IDENTIFIER_SIZE_LIMIT = 63 + + def truncate_if_necessary(identifier): """ Takes an identifier and returns it, truncating it, if it is too long. The truncated versio...
{"golden_diff": "diff --git a/db/identifiers.py b/db/identifiers.py\n--- a/db/identifiers.py\n+++ b/db/identifiers.py\n@@ -1,6 +1,9 @@\n import hashlib\n \n \n+POSTGRES_IDENTIFIER_SIZE_LIMIT = 63\n+\n+\n def truncate_if_necessary(identifier):\n \"\"\"\n Takes an identifier and returns it, truncating it, if it i...
1,081
240
gh_patches_debug_63591
rasdani/github-patches
git_diff
openai__gym-1092
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- ImportError when installing on Windows 10 and [33mWARN: gym.spaces.Box autodetected dtype as <class 'numpy.float32'> Dears, Would you please let me know how I could solve this warning and this error? (Windo...
diff --git a/gym/envs/mujoco/mujoco_env.py b/gym/envs/mujoco/mujoco_env.py --- a/gym/envs/mujoco/mujoco_env.py +++ b/gym/envs/mujoco/mujoco_env.py @@ -46,7 +46,7 @@ bounds = self.model.actuator_ctrlrange.copy() low = bounds[:, 0] high = bounds[:, 1] - self.action_space = spaces.Box(low...
{"golden_diff": "diff --git a/gym/envs/mujoco/mujoco_env.py b/gym/envs/mujoco/mujoco_env.py\n--- a/gym/envs/mujoco/mujoco_env.py\n+++ b/gym/envs/mujoco/mujoco_env.py\n@@ -46,7 +46,7 @@\n bounds = self.model.actuator_ctrlrange.copy()\n low = bounds[:, 0]\n high = bounds[:, 1]\n- self.actio...
1,828
155
gh_patches_debug_7763
rasdani/github-patches
git_diff
plotly__dash-808
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Defer `pytest` import? Looks like `pytest` isn't the safest dependency, causing issues with scikit-learn: https://community.plot.ly/t/pytest-transient-dependency/25383 Could we move the `import pytest` int...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -26,7 +26,10 @@ long_description=io.open("README.md", encoding="utf-8").read(), long_description_content_type="text/markdown", install_requires=read_req_file("install"), - extras_require={"ci": read_req_file("ci")}, + extras_require=...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -26,7 +26,10 @@\n long_description=io.open(\"README.md\", encoding=\"utf-8\").read(),\n long_description_content_type=\"text/markdown\",\n install_requires=read_req_file(\"install\"),\n- extras_require={\"ci\": read_req...
1,028
131
gh_patches_debug_42715
rasdani/github-patches
git_diff
openai__gym-1878
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Box bound precision warning I get this warning a lot when using Box environments: ``` .../gym/logger.py:30: UserWarning: WARN: Box bound precision lowered by casting to float32 ``` This is particularly ...
diff --git a/gym/spaces/box.py b/gym/spaces/box.py --- a/gym/spaces/box.py +++ b/gym/spaces/box.py @@ -9,13 +9,13 @@ A (possibly unbounded) box in R^n. Specifically, a Box represents the Cartesian product of n closed intervals. Each interval has the form of one of [a, b], (-oo, b], [a, oo), or (-oo, oo)....
{"golden_diff": "diff --git a/gym/spaces/box.py b/gym/spaces/box.py\n--- a/gym/spaces/box.py\n+++ b/gym/spaces/box.py\n@@ -9,13 +9,13 @@\n A (possibly unbounded) box in R^n. Specifically, a Box represents the\n Cartesian product of n closed intervals. Each interval has the form of one\n of [a, b], (-oo, b],...
1,765
769
gh_patches_debug_23301
rasdani/github-patches
git_diff
chainer__chainer-2266
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- matplotlib.use('Agg') conflicts with user code In this line in `chainer/chainer/training/extensions/plot_report.py` the `matplotlib` backend is changed [Source](https://github.com/pfnet/chainer/blob/master/ch...
diff --git a/chainer/training/extensions/plot_report.py b/chainer/training/extensions/plot_report.py --- a/chainer/training/extensions/plot_report.py +++ b/chainer/training/extensions/plot_report.py @@ -11,9 +11,6 @@ import chainer.training.trigger as trigger_module try: - import matplotlib - - matplotlib.use...
{"golden_diff": "diff --git a/chainer/training/extensions/plot_report.py b/chainer/training/extensions/plot_report.py\n--- a/chainer/training/extensions/plot_report.py\n+++ b/chainer/training/extensions/plot_report.py\n@@ -11,9 +11,6 @@\n import chainer.training.trigger as trigger_module\n \n try:\n- import matplotl...
2,014
306
gh_patches_debug_30451
rasdani/github-patches
git_diff
bids-standard__pybids-447
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Update prep_zenodo.py to only count commits in grabbit up to 0.2.6 With #369, we're dropping the grabbit dependency, so changes there will no longer contribute to pybids. --- END ISSUE --- Below are some co...
diff --git a/tools/prep_zenodo.py b/tools/prep_zenodo.py --- a/tools/prep_zenodo.py +++ b/tools/prep_zenodo.py @@ -11,7 +11,7 @@ # List of repositories whose commits should be counted as contributions -codependents = ['https://github.com/grabbles/grabbit.git'] +codependents = [('https://github.com/grabbles/grabbit...
{"golden_diff": "diff --git a/tools/prep_zenodo.py b/tools/prep_zenodo.py\n--- a/tools/prep_zenodo.py\n+++ b/tools/prep_zenodo.py\n@@ -11,7 +11,7 @@\n \n \n # List of repositories whose commits should be counted as contributions\n-codependents = ['https://github.com/grabbles/grabbit.git']\n+codependents = [('https://gi...
1,124
484
gh_patches_debug_33722
rasdani/github-patches
git_diff
DataDog__dd-trace-py-1225
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- redis-py-cluster new API 2.0.0 ### Which version of dd-trace-py are you using? lastest 0.34.0 ### Which version of the libraries are you using? redis-py-cluster 2.0.0 ### How can we reproduce your...
diff --git a/ddtrace/contrib/rediscluster/patch.py b/ddtrace/contrib/rediscluster/patch.py --- a/ddtrace/contrib/rediscluster/patch.py +++ b/ddtrace/contrib/rediscluster/patch.py @@ -12,6 +12,11 @@ from ..redis.util import format_command_args +# DEV: In `2.0.0` `__version__` is a string and `VERSION` is a tuple, +...
{"golden_diff": "diff --git a/ddtrace/contrib/rediscluster/patch.py b/ddtrace/contrib/rediscluster/patch.py\n--- a/ddtrace/contrib/rediscluster/patch.py\n+++ b/ddtrace/contrib/rediscluster/patch.py\n@@ -12,6 +12,11 @@\n from ..redis.util import format_command_args\n \n \n+# DEV: In `2.0.0` `__version__` is a string and...
990
613
gh_patches_debug_34609
rasdani/github-patches
git_diff
microsoft__botbuilder-python-285
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add support for Message Reactions to ActivityHandler ActivityHandler should be extended to include MessageReactions. This has now been added to the C# and The JavaScript. Here is a pointer to the JavaScri...
diff --git a/libraries/botbuilder-core/botbuilder/core/activity_handler.py b/libraries/botbuilder-core/botbuilder/core/activity_handler.py --- a/libraries/botbuilder-core/botbuilder/core/activity_handler.py +++ b/libraries/botbuilder-core/botbuilder/core/activity_handler.py @@ -1,7 +1,8 @@ # Copyright (c) Microsoft Co...
{"golden_diff": "diff --git a/libraries/botbuilder-core/botbuilder/core/activity_handler.py b/libraries/botbuilder-core/botbuilder/core/activity_handler.py\n--- a/libraries/botbuilder-core/botbuilder/core/activity_handler.py\n+++ b/libraries/botbuilder-core/botbuilder/core/activity_handler.py\n@@ -1,7 +1,8 @@\n # Copyr...
1,103
474
gh_patches_debug_4811
rasdani/github-patches
git_diff
pytorch__text-254
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Use getattr rather than __dict__ in Batch (adds support for __slots__ in Example subclasses) This is a proposal to change [one line of code](https://github.com/pytorch/text/blob/c839a7934930819be7e240ea972e4d...
diff --git a/torchtext/data/batch.py b/torchtext/data/batch.py --- a/torchtext/data/batch.py +++ b/torchtext/data/batch.py @@ -24,7 +24,7 @@ for (name, field) in dataset.fields.items(): if field is not None: - batch = [x.__dict__[name] for x in data] + ...
{"golden_diff": "diff --git a/torchtext/data/batch.py b/torchtext/data/batch.py\n--- a/torchtext/data/batch.py\n+++ b/torchtext/data/batch.py\n@@ -24,7 +24,7 @@\n \n for (name, field) in dataset.fields.items():\n if field is not None:\n- batch = [x.__dict__[name] for x in ...
1,247
124
gh_patches_debug_4743
rasdani/github-patches
git_diff
netket__netket-1112
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Upgrade `flakehell` in the pre-commit hook It seems that `flakehell` is not actively maintained, and it is incompatible with `flake8 4.x` released in last October (see flakehell/flakehell#22). That issue is n...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -6,10 +6,9 @@ "coverage>=5", "pytest-cov>=2.10.1", "networkx~=2.4", - "flaky>=3.7", - "pre-commit", + "pre-commit>=2.7", "black==22.1.0", - "flakehell>=0.9", + "flake8==4.0.1", ] MPI_DEPENDENCIES = ["mpi4py>=3.0.1, <4...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -6,10 +6,9 @@\n \"coverage>=5\",\n \"pytest-cov>=2.10.1\",\n \"networkx~=2.4\",\n- \"flaky>=3.7\",\n- \"pre-commit\",\n+ \"pre-commit>=2.7\",\n \"black==22.1.0\",\n- \"flakehell>=0.9\",\n+ \"flake8==4.0....
1,084
175
gh_patches_debug_27640
rasdani/github-patches
git_diff
wagtail__wagtail-6301
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Wagtail should not change month name translations ### Issue Summary Wagtail translations overrides month name translations (at least for Slovenian language) which changes how dates are formatted. ### St...
diff --git a/wagtail/admin/localization.py b/wagtail/admin/localization.py --- a/wagtail/admin/localization.py +++ b/wagtail/admin/localization.py @@ -1,6 +1,7 @@ import pytz from django.conf import settings +from django.utils.dates import MONTHS, WEEKDAYS, WEEKDAYS_ABBR from django.utils.translation import gettex...
{"golden_diff": "diff --git a/wagtail/admin/localization.py b/wagtail/admin/localization.py\n--- a/wagtail/admin/localization.py\n+++ b/wagtail/admin/localization.py\n@@ -1,6 +1,7 @@\n import pytz\n \n from django.conf import settings\n+from django.utils.dates import MONTHS, WEEKDAYS, WEEKDAYS_ABBR\n from django.utils....
1,696
431
gh_patches_debug_29474
rasdani/github-patches
git_diff
borgbackup__borg-1193
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- borgbackup build failure when using OpenSSL 1.1.0 https://groups.google.com/d/msg/linux.debian.devel/53fq9S-Qpp4/V_0pPtdzBQAJ --- END ISSUE --- Below are some code segments, each from a relevant file. One ...
diff --git a/borg/testsuite/crypto.py b/borg/testsuite/crypto.py --- a/borg/testsuite/crypto.py +++ b/borg/testsuite/crypto.py @@ -1,6 +1,7 @@ from binascii import hexlify from ..crypto import AES, bytes_to_long, bytes_to_int, long_to_bytes +from ..crypto import increment_iv, bytes16_to_int, int_to_bytes16 from . ...
{"golden_diff": "diff --git a/borg/testsuite/crypto.py b/borg/testsuite/crypto.py\n--- a/borg/testsuite/crypto.py\n+++ b/borg/testsuite/crypto.py\n@@ -1,6 +1,7 @@\n from binascii import hexlify\n \n from ..crypto import AES, bytes_to_long, bytes_to_int, long_to_bytes\n+from ..crypto import increment_iv, bytes16_to_int,...
709
779
gh_patches_debug_7561
rasdani/github-patches
git_diff
mdn__kuma-6693
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- T - TypeError 'count.toLocaleString' in SSR https://sentry.prod.mozaws.net/operations/mdn-prod/issues/7090931/ ``` TypeError: Cannot read property 'toLocaleString' of undefined File "/app/kuma/javascript/d...
diff --git a/kuma/search/views.py b/kuma/search/views.py --- a/kuma/search/views.py +++ b/kuma/search/views.py @@ -33,6 +33,10 @@ # If q is returned in the data, there was a validation error for that field, # so return 400 status. status = 200 if results.get("q") is None else 400 + # If there was an e...
{"golden_diff": "diff --git a/kuma/search/views.py b/kuma/search/views.py\n--- a/kuma/search/views.py\n+++ b/kuma/search/views.py\n@@ -33,6 +33,10 @@\n # If q is returned in the data, there was a validation error for that field,\n # so return 400 status.\n status = 200 if results.get(\"q\") is None else 400...
1,357
156
gh_patches_debug_40463
rasdani/github-patches
git_diff
elastic__apm-agent-python-1371
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Django Celery trace.id integration **Is your feature request related to a problem? Please describe.** As of now, it is impossible to keep the same trace id between a Django view and a Celery task launched fr...
diff --git a/elasticapm/contrib/celery/__init__.py b/elasticapm/contrib/celery/__init__.py --- a/elasticapm/contrib/celery/__init__.py +++ b/elasticapm/contrib/celery/__init__.py @@ -27,13 +27,15 @@ # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER # CAUSED AND ON ANY THEORY OF LIABILITY,...
{"golden_diff": "diff --git a/elasticapm/contrib/celery/__init__.py b/elasticapm/contrib/celery/__init__.py\n--- a/elasticapm/contrib/celery/__init__.py\n+++ b/elasticapm/contrib/celery/__init__.py\n@@ -27,13 +27,15 @@\n # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n # CAUSED AND ON AN...
1,809
738
gh_patches_debug_66285
rasdani/github-patches
git_diff
python-poetry__poetry-578
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Poetry run: ModuleOrPackageNotFound with implicit namespace packages (PEP420) <!-- Checked checkbox should look like this: [x] --> - [x] I am on the [latest](https://github.com/sdispater/poetry/releases/late...
diff --git a/poetry/console/commands/run.py b/poetry/console/commands/run.py --- a/poetry/console/commands/run.py +++ b/poetry/console/commands/run.py @@ -47,7 +47,7 @@ poetry = self.poetry package = poetry.package path = poetry.file.parent - module = Module(package.name, path.as_posix...
{"golden_diff": "diff --git a/poetry/console/commands/run.py b/poetry/console/commands/run.py\n--- a/poetry/console/commands/run.py\n+++ b/poetry/console/commands/run.py\n@@ -47,7 +47,7 @@\n poetry = self.poetry\n package = poetry.package\n path = poetry.file.parent\n- module = Module(pac...
1,238
121
gh_patches_debug_25695
rasdani/github-patches
git_diff
bokeh__bokeh-6665
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- export_csv example under 0.12.7dev11 doesn't resize table Running example export_csv from https://github.com/bokeh/bokeh/tree/master/examples/app/export_csv under 0.12.7dev11 the table doesn't resize and e...
diff --git a/examples/app/export_csv/main.py b/examples/app/export_csv/main.py --- a/examples/app/export_csv/main.py +++ b/examples/app/export_csv/main.py @@ -4,7 +4,7 @@ from bokeh.layouts import row, widgetbox from bokeh.models import ColumnDataSource, CustomJS -from bokeh.models.widgets import Slider, Button, Da...
{"golden_diff": "diff --git a/examples/app/export_csv/main.py b/examples/app/export_csv/main.py\n--- a/examples/app/export_csv/main.py\n+++ b/examples/app/export_csv/main.py\n@@ -4,7 +4,7 @@\n \n from bokeh.layouts import row, widgetbox\n from bokeh.models import ColumnDataSource, CustomJS\n-from bokeh.models.widgets i...
797
361
gh_patches_debug_21709
rasdani/github-patches
git_diff
Lightning-AI__pytorch-lightning-706
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- TensorBoardLogger and ModelCheckpoint are not using the same folder by default ## 🐛 Bug (master branch) By default, the TensorBoardLogger writes logs into `lightning_logs/0` but ModelCheckpoint writes chec...
diff --git a/pytorch_lightning/logging/tensorboard.py b/pytorch_lightning/logging/tensorboard.py --- a/pytorch_lightning/logging/tensorboard.py +++ b/pytorch_lightning/logging/tensorboard.py @@ -63,7 +63,7 @@ root_dir = os.path.join(self.save_dir, self.name) os.makedirs(root_dir, exist_ok=True) - ...
{"golden_diff": "diff --git a/pytorch_lightning/logging/tensorboard.py b/pytorch_lightning/logging/tensorboard.py\n--- a/pytorch_lightning/logging/tensorboard.py\n+++ b/pytorch_lightning/logging/tensorboard.py\n@@ -63,7 +63,7 @@\n \n root_dir = os.path.join(self.save_dir, self.name)\n os.makedirs(root_d...
1,627
285
gh_patches_debug_17184
rasdani/github-patches
git_diff
comic__grand-challenge.org-33
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Do not print page title above each page Having a h1 HOME on your home page looks stupid. Either remove this completely and show currently selected page in menu, or put page title at top of content by default,...
diff --git a/django/comicsite/views.py b/django/comicsite/views.py --- a/django/comicsite/views.py +++ b/django/comicsite/views.py @@ -27,7 +27,7 @@ pages = getPages(site_short_name) - return render_to_response('page.html', {'site': site, 'page': pages[0], "pages":pages },context_ins...
{"golden_diff": "diff --git a/django/comicsite/views.py b/django/comicsite/views.py\n--- a/django/comicsite/views.py\n+++ b/django/comicsite/views.py\n@@ -27,7 +27,7 @@\n \n pages = getPages(site_short_name)\n \n- return render_to_response('page.html', {'site': site, 'page': pages[0], \"p...
1,377
245
gh_patches_debug_19590
rasdani/github-patches
git_diff
comic__grand-challenge.org-1913
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Change order of the blog posts Currently all blog posts that are published on grand-challenge are sorted based on the date the post was initially created. We would like to change this to the date the post was...
diff --git a/app/grandchallenge/blogs/models.py b/app/grandchallenge/blogs/models.py --- a/app/grandchallenge/blogs/models.py +++ b/app/grandchallenge/blogs/models.py @@ -1,6 +1,7 @@ from django.conf import settings from django.contrib.auth import get_user_model from django.db import models +from django.utils import...
{"golden_diff": "diff --git a/app/grandchallenge/blogs/models.py b/app/grandchallenge/blogs/models.py\n--- a/app/grandchallenge/blogs/models.py\n+++ b/app/grandchallenge/blogs/models.py\n@@ -1,6 +1,7 @@\n from django.conf import settings\n from django.contrib.auth import get_user_model\n from django.db import models\n+...
823
238
gh_patches_debug_16154
rasdani/github-patches
git_diff
bornhack__bornhack-website-378
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- backoffice: show quantity of products ordered after scanning qr code backoffice: show quantity of products ordered after scanning qr code --- END ISSUE --- Below are some code segments, each from a releva...
diff --git a/src/tickets/models.py b/src/tickets/models.py --- a/src/tickets/models.py +++ b/src/tickets/models.py @@ -93,8 +93,7 @@ formatdict = {"ticket": self} if self.ticket_type.single_ticket_per_product and self.shortname == "shop": - orp = self.get_orp() - formatdict["qu...
{"golden_diff": "diff --git a/src/tickets/models.py b/src/tickets/models.py\n--- a/src/tickets/models.py\n+++ b/src/tickets/models.py\n@@ -93,8 +93,7 @@\n formatdict = {\"ticket\": self}\n \n if self.ticket_type.single_ticket_per_product and self.shortname == \"shop\":\n- orp = self.get_orp()...
1,873
190
gh_patches_debug_643
rasdani/github-patches
git_diff
pex-tool__pex-1925
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Release 2.1.107 On the docket: + [x] `git` username replaced with `****` redaction in lockfile for `git+ssh` direct references #1918 --- END ISSUE --- Below are some code segments, each from a relevant fil...
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.106" +__version__ = "2.1.107"
{"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.106\"\n+__version__ = \"2.1.107\"\n",...
355
98
gh_patches_debug_1877
rasdani/github-patches
git_diff
conan-io__conan-2921
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- local cache inconsistent after enabling short_paths in a recipe To help us debug your issue please explain: - [x] I've read the [CONTRIBUTING guide](https://raw.githubusercontent.com/conan-io/conan/develop...
diff --git a/conans/util/windows.py b/conans/util/windows.py --- a/conans/util/windows.py +++ b/conans/util/windows.py @@ -45,6 +45,9 @@ elif short_paths is None: return path + if os.path.exists(path): + rmdir(path) + short_home = os.getenv("CONAN_USER_HOME_SHORT") if not short_home:...
{"golden_diff": "diff --git a/conans/util/windows.py b/conans/util/windows.py\n--- a/conans/util/windows.py\n+++ b/conans/util/windows.py\n@@ -45,6 +45,9 @@\n elif short_paths is None:\n return path\n \n+ if os.path.exists(path):\n+ rmdir(path)\n+\n short_home = os.getenv(\"CONAN_USER_HOME_SHO...
1,576
100
gh_patches_debug_28256
rasdani/github-patches
git_diff
meltano__meltano-8355
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- feature: Install multiple plugins of any type ### Feature scope CLI (options, error messages, logging, etc.) ### Description Currently, you can only leverage `meltano install` in parallel for all plu...
diff --git a/src/meltano/cli/install.py b/src/meltano/cli/install.py --- a/src/meltano/cli/install.py +++ b/src/meltano/cli/install.py @@ -18,13 +18,15 @@ from meltano.core.project import Project from meltano.core.tracking import Tracker +ANY = "-" + logger = structlog.getLogger(__name__) @click.comma...
{"golden_diff": "diff --git a/src/meltano/cli/install.py b/src/meltano/cli/install.py\n--- a/src/meltano/cli/install.py\n+++ b/src/meltano/cli/install.py\n@@ -18,13 +18,15 @@\n from meltano.core.project import Project\n from meltano.core.tracking import Tracker\n \n+ANY = \"-\"\n+\n logger = structlog.getLogger...
1,742
309
gh_patches_debug_3785
rasdani/github-patches
git_diff
Mailu__Mailu-744
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Why a print statement in this code? @kaiyou, according git blame this is yours. I wonder if it was included for debugging purposes and not taken out anymore? https://github.com/Mailu/Mailu/blob/5c243901141...
diff --git a/core/admin/mailu/internal/views/dovecot.py b/core/admin/mailu/internal/views/dovecot.py --- a/core/admin/mailu/internal/views/dovecot.py +++ b/core/admin/mailu/internal/views/dovecot.py @@ -13,7 +13,6 @@ allow_nets.append(app.config["SUBNET"]) if app.config["POD_ADDRESS_RANGE"]: allow_ne...
{"golden_diff": "diff --git a/core/admin/mailu/internal/views/dovecot.py b/core/admin/mailu/internal/views/dovecot.py\n--- a/core/admin/mailu/internal/views/dovecot.py\n+++ b/core/admin/mailu/internal/views/dovecot.py\n@@ -13,7 +13,6 @@\n allow_nets.append(app.config[\"SUBNET\"])\n if app.config[\"POD_ADDRESS_R...
860
126
gh_patches_debug_23963
rasdani/github-patches
git_diff
optuna__optuna-3182
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Improve visualization tutorial <!-- Please write a clear and concise description of what content in https://optuna.readthedocs.io/ is an issue. --> I suggest updating the [visualization tutorial](https://o...
diff --git a/tutorial/10_key_features/005_visualization.py b/tutorial/10_key_features/005_visualization.py --- a/tutorial/10_key_features/005_visualization.py +++ b/tutorial/10_key_features/005_visualization.py @@ -7,6 +7,9 @@ Optuna provides various visualization features in :mod:`optuna.visualization` to analyze opt...
{"golden_diff": "diff --git a/tutorial/10_key_features/005_visualization.py b/tutorial/10_key_features/005_visualization.py\n--- a/tutorial/10_key_features/005_visualization.py\n+++ b/tutorial/10_key_features/005_visualization.py\n@@ -7,6 +7,9 @@\n Optuna provides various visualization features in :mod:`optuna.visualiz...
1,613
253
gh_patches_debug_58736
rasdani/github-patches
git_diff
goauthentik__authentik-6081
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Not sure that OAuth2 client source should use authorization header I've been testing authentik using an Auth0 openIDC source as well as a google source. I have gotten both to work, but Auth0 was not working b...
diff --git a/authentik/sources/oauth/types/oidc.py b/authentik/sources/oauth/types/oidc.py --- a/authentik/sources/oauth/types/oidc.py +++ b/authentik/sources/oauth/types/oidc.py @@ -20,7 +20,7 @@ class OpenIDConnectOAuth2Callback(OAuthCallback): """OpenIDConnect OAuth2 Callback""" - client_class: Userprofil...
{"golden_diff": "diff --git a/authentik/sources/oauth/types/oidc.py b/authentik/sources/oauth/types/oidc.py\n--- a/authentik/sources/oauth/types/oidc.py\n+++ b/authentik/sources/oauth/types/oidc.py\n@@ -20,7 +20,7 @@\n class OpenIDConnectOAuth2Callback(OAuthCallback):\n \"\"\"OpenIDConnect OAuth2 Callback\"\"\"\n \...
983
132
gh_patches_debug_18320
rasdani/github-patches
git_diff
mkdocs__mkdocs-1453
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Tornado 5.0 raises error on install with older Python versions. changed to `"tornado>=4.1,<5.0"` in setup.py This broke installation via pip for me. --- END ISSUE --- Below are some code segments, each ...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -61,8 +61,9 @@ 'livereload>=2.5.1', 'Markdown>=2.3.1', 'PyYAML>=3.10', - 'tornado>=4.1', + 'tornado>=5.0', ], + python_requires='>=2.7.9,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*', entry_points={ 'cons...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -61,8 +61,9 @@\n 'livereload>=2.5.1',\n 'Markdown>=2.3.1',\n 'PyYAML>=3.10',\n- 'tornado>=4.1',\n+ 'tornado>=5.0',\n ],\n+ python_requires='>=2.7.9,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*',\n e...
1,320
235
gh_patches_debug_38298
rasdani/github-patches
git_diff
jupyterhub__jupyterhub-121
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- redirect loop on invalid single-user auth token when the single-user server's API request fails with 403, it's handled as failed login (302) causing a redirect loop, when it should be handled as "500: oh noes...
diff --git a/jupyterhub/singleuser.py b/jupyterhub/singleuser.py --- a/jupyterhub/singleuser.py +++ b/jupyterhub/singleuser.py @@ -9,6 +9,7 @@ import requests from tornado import ioloop +from tornado.web import HTTPError from IPython.utils.traitlets import Unicode @@ -35,7 +36,7 @@ @staticmethod ...
{"golden_diff": "diff --git a/jupyterhub/singleuser.py b/jupyterhub/singleuser.py\n--- a/jupyterhub/singleuser.py\n+++ b/jupyterhub/singleuser.py\n@@ -9,6 +9,7 @@\n import requests\n \n from tornado import ioloop\n+from tornado.web import HTTPError\n \n from IPython.utils.traitlets import Unicode\n \n@@ -35,7 +36,7 @@\...
1,601
573
gh_patches_debug_40215
rasdani/github-patches
git_diff
alltheplaces__alltheplaces-2869
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Spider regis_uk is broken During the global build at 2021-05-26-14-42-23, spider **regis_uk** failed with **33 features** and **35 errors**. Here's [the log](https://data.alltheplaces.xyz/runs/2021-05-26-14-...
diff --git a/locations/spiders/regis_salon_uk.py b/locations/spiders/regis_salon_uk.py --- a/locations/spiders/regis_salon_uk.py +++ b/locations/spiders/regis_salon_uk.py @@ -11,6 +11,7 @@ item_attributes = { 'brand': "Regis Salon" } allowed_domains = ["www.regissalons.co.uk"] start_urls = ['https://www....
{"golden_diff": "diff --git a/locations/spiders/regis_salon_uk.py b/locations/spiders/regis_salon_uk.py\n--- a/locations/spiders/regis_salon_uk.py\n+++ b/locations/spiders/regis_salon_uk.py\n@@ -11,6 +11,7 @@\n item_attributes = { 'brand': \"Regis Salon\" }\n allowed_domains = [\"www.regissalons.co.uk\"]\n ...
1,379
613
gh_patches_debug_27291
rasdani/github-patches
git_diff
uccser__cs-unplugged-302
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Django Debug Toolbar doesn't display in local Docker development environment Created from work in #193. --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files ...
diff --git a/csunplugged/config/settings/local.py b/csunplugged/config/settings/local.py --- a/csunplugged/config/settings/local.py +++ b/csunplugged/config/settings/local.py @@ -9,8 +9,6 @@ - Use console backend for emails """ -import socket -import os from .base import * # noqa: F403 # DATABASE CONFIGURATION...
{"golden_diff": "diff --git a/csunplugged/config/settings/local.py b/csunplugged/config/settings/local.py\n--- a/csunplugged/config/settings/local.py\n+++ b/csunplugged/config/settings/local.py\n@@ -9,8 +9,6 @@\n - Use console backend for emails\n \"\"\"\n \n-import socket\n-import os\n from .base import * # noqa: F40...
1,046
373
gh_patches_debug_12025
rasdani/github-patches
git_diff
Showndarya__Hacktoberfest-435
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Travis test ignore first letter of filename for some reason I'll try and figure out why, thought about simply renaming every file in the travis script but that requires alot of work and overhead for little ga...
diff --git a/.travis.py b/.travis.py --- a/.travis.py +++ b/.travis.py @@ -19,13 +19,13 @@ if re.search(r"\.json$", changed_file): changed_files_json.append(changed_file) - + # Iterate over list of changed JSON files. for changed_file_json in changed_files_json: print(f"Checking file {ch...
{"golden_diff": "diff --git a/.travis.py b/.travis.py\n--- a/.travis.py\n+++ b/.travis.py\n@@ -19,13 +19,13 @@\n if re.search(r\"\\.json$\", changed_file):\n changed_files_json.append(changed_file)\n \n-\n+ \n # Iterate over list of changed JSON files.\n for changed_file_json in changed_files_json:\...
942
152
gh_patches_debug_1870
rasdani/github-patches
git_diff
dbt-labs__dbt-core-1743
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Support for Snowflake Secure Views ### Adding support for Secure View in Snowflake When using the Materialize feature where setting the type of materialization, adding secure-view to the {{ config(materializ...
diff --git a/plugins/snowflake/dbt/adapters/snowflake/impl.py b/plugins/snowflake/dbt/adapters/snowflake/impl.py --- a/plugins/snowflake/dbt/adapters/snowflake/impl.py +++ b/plugins/snowflake/dbt/adapters/snowflake/impl.py @@ -9,7 +9,7 @@ ConnectionManager = SnowflakeConnectionManager AdapterSpecificConfigs...
{"golden_diff": "diff --git a/plugins/snowflake/dbt/adapters/snowflake/impl.py b/plugins/snowflake/dbt/adapters/snowflake/impl.py\n--- a/plugins/snowflake/dbt/adapters/snowflake/impl.py\n+++ b/plugins/snowflake/dbt/adapters/snowflake/impl.py\n@@ -9,7 +9,7 @@\n ConnectionManager = SnowflakeConnectionManager\n \n ...
921
136
gh_patches_debug_1805
rasdani/github-patches
git_diff
Mailu__Mailu-840
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Document the new setup utility Title says all --- 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/server....
diff --git a/setup/server.py b/setup/server.py --- a/setup/server.py +++ b/setup/server.py @@ -11,7 +11,7 @@ import hashlib -version = os.getenv("this_version") +version = os.getenv("this_version", "master") static_url_path = "/" + version + "/static" app = flask.Flask(__name__, static_url_path=static_url_path) ...
{"golden_diff": "diff --git a/setup/server.py b/setup/server.py\n--- a/setup/server.py\n+++ b/setup/server.py\n@@ -11,7 +11,7 @@\n import hashlib\n \n \n-version = os.getenv(\"this_version\")\n+version = os.getenv(\"this_version\", \"master\")\n static_url_path = \"/\" + version + \"/static\"\n app = flask.Flask(__name...
1,296
93
gh_patches_debug_1293
rasdani/github-patches
git_diff
CTPUG__wafer-643
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add support for Django 4.0 Currently failing tests (See #632) --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ 'bleach', 'bleach-allowlist', 'diff-match-patch', - 'django-bakery>=0.12.0', + 'django-bakery>=0.13.0', 'django-crispy-forms', 'django-markitup>=4.0.0', 'django-registration-redux',
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -8,7 +8,7 @@\n 'bleach',\n 'bleach-allowlist',\n 'diff-match-patch',\n- 'django-bakery>=0.12.0',\n+ 'django-bakery>=0.13.0',\n 'django-crispy-forms',\n 'django-markitup>=4.0.0',\n 'django-registration-red...
969
108
gh_patches_debug_23755
rasdani/github-patches
git_diff
akvo__akvo-rsr-2111
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Budget without value makes IATI export crash ## Test plan GIVEN the IATI export (bottom right on project page) WHEN a budget of the project has no value, but does have a value date / currency / label THEN th...
diff --git a/akvo/iati/exports/elements/budget.py b/akvo/iati/exports/elements/budget.py --- a/akvo/iati/exports/elements/budget.py +++ b/akvo/iati/exports/elements/budget.py @@ -40,18 +40,17 @@ value_element = etree.SubElement(element, "value") value_element.text = str(budget_item.amo...
{"golden_diff": "diff --git a/akvo/iati/exports/elements/budget.py b/akvo/iati/exports/elements/budget.py\n--- a/akvo/iati/exports/elements/budget.py\n+++ b/akvo/iati/exports/elements/budget.py\n@@ -40,18 +40,17 @@\n value_element = etree.SubElement(element, \"value\")\n value_element.te...
930
346
gh_patches_debug_14561
rasdani/github-patches
git_diff
meltano__meltano-6276
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Address warning in Airflow plugin version check > not super urgent, but as we move into supporting newer Python versions > (https://github.com/meltano/meltano/pull/6135) and bumping Meltano's dependencies (...
diff --git a/src/meltano/core/plugin/airflow.py b/src/meltano/core/plugin/airflow.py --- a/src/meltano/core/plugin/airflow.py +++ b/src/meltano/core/plugin/airflow.py @@ -3,7 +3,8 @@ import logging import os import subprocess -from distutils.version import StrictVersion + +from packaging.version import Version fr...
{"golden_diff": "diff --git a/src/meltano/core/plugin/airflow.py b/src/meltano/core/plugin/airflow.py\n--- a/src/meltano/core/plugin/airflow.py\n+++ b/src/meltano/core/plugin/airflow.py\n@@ -3,7 +3,8 @@\n import logging\n import os\n import subprocess\n-from distutils.version import StrictVersion\n+\n+from packaging.ve...
2,013
207
gh_patches_debug_13904
rasdani/github-patches
git_diff
pyqtgraph__pyqtgraph-2930
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Changed exportDialog This pull request fixes #2367. The code has been changed as it was suggested in the issue. ![image](https://user-images.githubusercontent.com/79045568/198548982-d69eeda1-6868-4c29-9ce5...
diff --git a/pyqtgraph/GraphicsScene/exportDialog.py b/pyqtgraph/GraphicsScene/exportDialog.py --- a/pyqtgraph/GraphicsScene/exportDialog.py +++ b/pyqtgraph/GraphicsScene/exportDialog.py @@ -51,10 +51,11 @@ self.selectBox.setVisible(True) if not self.shown: self.shown = True - ...
{"golden_diff": "diff --git a/pyqtgraph/GraphicsScene/exportDialog.py b/pyqtgraph/GraphicsScene/exportDialog.py\n--- a/pyqtgraph/GraphicsScene/exportDialog.py\n+++ b/pyqtgraph/GraphicsScene/exportDialog.py\n@@ -51,10 +51,11 @@\n self.selectBox.setVisible(True)\n if not self.shown:\n self.sho...
1,781
220
gh_patches_debug_21441
rasdani/github-patches
git_diff
mozilla__bugbug-197
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- In the DevDocNeeded model, consider bugs for which the dev-doc-needed keyword was removed as negative examples See also #79. --- END ISSUE --- Below are some code segments, each from a relevant file. One or...
diff --git a/bugbug/models/devdocneeded.py b/bugbug/models/devdocneeded.py --- a/bugbug/models/devdocneeded.py +++ b/bugbug/models/devdocneeded.py @@ -73,7 +73,14 @@ for entry in bug_data['history']: for change in entry['changes']: - if change['field_name'] == 'keyword...
{"golden_diff": "diff --git a/bugbug/models/devdocneeded.py b/bugbug/models/devdocneeded.py\n--- a/bugbug/models/devdocneeded.py\n+++ b/bugbug/models/devdocneeded.py\n@@ -73,7 +73,14 @@\n \n for entry in bug_data['history']:\n for change in entry['changes']:\n- if change['...
1,080
311
gh_patches_debug_34208
rasdani/github-patches
git_diff
e-valuation__EvaP-353
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Grade preview There must be an option for FSR members to see the grades for a course before publishing it. This should be available in "in evaluation", "evaluated" and "reviewed". --- END ISSUE --- Below a...
diff --git a/evap/results/views.py b/evap/results/views.py --- a/evap/results/views.py +++ b/evap/results/views.py @@ -63,7 +63,13 @@ @login_required def course_detail(request, semester_id, course_id): semester = get_object_or_404(Semester, id=semester_id) - course = get_object_or_404(semester.course_set.filt...
{"golden_diff": "diff --git a/evap/results/views.py b/evap/results/views.py\n--- a/evap/results/views.py\n+++ b/evap/results/views.py\n@@ -63,7 +63,13 @@\n @login_required\n def course_detail(request, semester_id, course_id):\n semester = get_object_or_404(Semester, id=semester_id)\n- course = get_object_or_404(...
1,343
552
gh_patches_debug_58558
rasdani/github-patches
git_diff
roboflow__supervision-219
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Developement - version issue ### Search before asking - [X] I have searched the Supervision [issues](https://github.com/roboflow/supervision/issues) and found no similar bug report. ### Bug I have not ins...
diff --git a/supervision/__init__.py b/supervision/__init__.py --- a/supervision/__init__.py +++ b/supervision/__init__.py @@ -1,6 +1,10 @@ import importlib.metadata as importlib_metadata -__version__ = importlib_metadata.version(__package__) +try: + # This will read version from pyproject.toml + __version__ =...
{"golden_diff": "diff --git a/supervision/__init__.py b/supervision/__init__.py\n--- a/supervision/__init__.py\n+++ b/supervision/__init__.py\n@@ -1,6 +1,10 @@\n import importlib.metadata as importlib_metadata\n \n-__version__ = importlib_metadata.version(__package__)\n+try:\n+ # This will read version from pyprojec...
839
136
gh_patches_debug_5710
rasdani/github-patches
git_diff
getredash__redash-2062
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- More flexible widgets grid (allow finer control over height/width) ## User should be able to control widget's placement, width and height ### Current implementation Currently editing a dashboard works a...
diff --git a/redash/handlers/widgets.py b/redash/handlers/widgets.py --- a/redash/handlers/widgets.py +++ b/redash/handlers/widgets.py @@ -82,6 +82,7 @@ require_object_modify_permission(widget.dashboard, self.current_user) widget_properties = request.get_json(force=True) widget.text = widget_...
{"golden_diff": "diff --git a/redash/handlers/widgets.py b/redash/handlers/widgets.py\n--- a/redash/handlers/widgets.py\n+++ b/redash/handlers/widgets.py\n@@ -82,6 +82,7 @@\n require_object_modify_permission(widget.dashboard, self.current_user)\n widget_properties = request.get_json(force=True)\n ...
1,758
107
gh_patches_debug_20122
rasdani/github-patches
git_diff
Kinto__kinto-771
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [cliquet] Split tests from kinto package original : https://github.com/mozilla-services/cliquet/issues/267 Should we have tests within the kinto package or outside ? that was discussed but I don't think a de...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -54,6 +54,15 @@ 'kinto_redis' ] +SETUP_REQUIRES = [ + 'pytest-runner' +] + +TEST_REQUIREMENTS = [ + 'pytest', + 'WebTest' +] + DEPENDENCY_LINKS = [ ] @@ -100,6 +109,8 @@ package_data={'': ['*.rst', '*.py']}, include_pac...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -54,6 +54,15 @@\n 'kinto_redis'\n ]\n \n+SETUP_REQUIRES = [\n+ 'pytest-runner'\n+]\n+\n+TEST_REQUIREMENTS = [\n+ 'pytest',\n+ 'WebTest'\n+]\n+\n DEPENDENCY_LINKS = [\n ]\n \n@@ -100,6 +109,8 @@\n package_data={'': [...
1,501
243
gh_patches_debug_8204
rasdani/github-patches
git_diff
vas3k__vas3k.club-381
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Баг с пажинацией в разделе «Коммьюнити» STR: 1. Открыть https://vas3k.club/people/ 2. Отфильтровать по первым 4 фильтрам 3. Перейти на 2 страницу выдачи ER: Фильтры сохранены AR: Фильтры частично потер...
diff --git a/posts/templatetags/query_params.py b/posts/templatetags/query_params.py --- a/posts/templatetags/query_params.py +++ b/posts/templatetags/query_params.py @@ -1,4 +1,4 @@ -from urllib.parse import urlencode +from copy import deepcopy from django import template @@ -7,6 +7,6 @@ @register.simple_tag(t...
{"golden_diff": "diff --git a/posts/templatetags/query_params.py b/posts/templatetags/query_params.py\n--- a/posts/templatetags/query_params.py\n+++ b/posts/templatetags/query_params.py\n@@ -1,4 +1,4 @@\n-from urllib.parse import urlencode\n+from copy import deepcopy\n \n from django import template\n \n@@ -7,6 +7,6 @@...
446
150
gh_patches_debug_10785
rasdani/github-patches
git_diff
chainer__chainer-916
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Show output of nvcc after stacktrace In the current implementation, `nvcc` prints error messages in stdout/stderr before stack trace is printed. It is hard to read. --- END ISSUE --- Below are some code se...
diff --git a/cupy/cuda/compiler.py b/cupy/cuda/compiler.py --- a/cupy/cuda/compiler.py +++ b/cupy/cuda/compiler.py @@ -34,7 +34,14 @@ def _run_nvcc(cmd, cwd): try: - return subprocess.check_output(cmd, cwd=cwd) + return subprocess.check_output(cmd, cwd=cwd, stderr=subprocess.STDOUT) + except su...
{"golden_diff": "diff --git a/cupy/cuda/compiler.py b/cupy/cuda/compiler.py\n--- a/cupy/cuda/compiler.py\n+++ b/cupy/cuda/compiler.py\n@@ -34,7 +34,14 @@\n \n def _run_nvcc(cmd, cwd):\n try:\n- return subprocess.check_output(cmd, cwd=cwd)\n+ return subprocess.check_output(cmd, cwd=cwd, stderr=subproce...
1,605
205
gh_patches_debug_23660
rasdani/github-patches
git_diff
pypi__warehouse-3894
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Tune Elasticsearch client for reindex separately from main search client #3892 was necessary to alleviate the hard outage experienced due to ES cluster being down. We were waiting 30s per request for Elast...
diff --git a/warehouse/search/tasks.py b/warehouse/search/tasks.py --- a/warehouse/search/tasks.py +++ b/warehouse/search/tasks.py @@ -11,11 +11,15 @@ # limitations under the License. import binascii +import urllib import os from elasticsearch.helpers import parallel_bulk +from elasticsearch_dsl import serializ...
{"golden_diff": "diff --git a/warehouse/search/tasks.py b/warehouse/search/tasks.py\n--- a/warehouse/search/tasks.py\n+++ b/warehouse/search/tasks.py\n@@ -11,11 +11,15 @@\n # limitations under the License.\n \n import binascii\n+import urllib\n import os\n \n from elasticsearch.helpers import parallel_bulk\n+from elast...
1,951
281
gh_patches_debug_26736
rasdani/github-patches
git_diff
PlasmaPy__PlasmaPy-446
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- add axis labels to ITER parameters plot The ITER parameters plot [here](http://docs.plasmapy.org/en/stable/auto_examples/plot_physics.html#sphx-glr-auto-examples-plot-physics-py) could use some labels and uni...
diff --git a/plasmapy/__init__.py b/plasmapy/__init__.py --- a/plasmapy/__init__.py +++ b/plasmapy/__init__.py @@ -33,6 +33,29 @@ from . import physics from . import utils +def online_help(query): + """ + Search the online PlasmaPy documentation for the given query from plasmapy.org + Opens the res...
{"golden_diff": "diff --git a/plasmapy/__init__.py b/plasmapy/__init__.py\n--- a/plasmapy/__init__.py\n+++ b/plasmapy/__init__.py\n@@ -33,6 +33,29 @@\n from . import physics\n from . import utils\n \n+def online_help(query):\n+ \"\"\"\n+ Search the online PlasmaPy documentation for the given query from pl...
1,450
501
gh_patches_debug_1817
rasdani/github-patches
git_diff
pyca__cryptography-8318
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Incorrect docstrings in x25519 and x448 `.public_key()` methods See: https://github.com/pyca/cryptography/blob/127a2860740c77f45362e68e0ed7d2d108a39033/src/cryptography/hazmat/primitives/asymmetric/x25519....
diff --git a/src/cryptography/hazmat/primitives/asymmetric/x25519.py b/src/cryptography/hazmat/primitives/asymmetric/x25519.py --- a/src/cryptography/hazmat/primitives/asymmetric/x25519.py +++ b/src/cryptography/hazmat/primitives/asymmetric/x25519.py @@ -60,7 +60,7 @@ @abc.abstractmethod def public_key(self) ...
{"golden_diff": "diff --git a/src/cryptography/hazmat/primitives/asymmetric/x25519.py b/src/cryptography/hazmat/primitives/asymmetric/x25519.py\n--- a/src/cryptography/hazmat/primitives/asymmetric/x25519.py\n+++ b/src/cryptography/hazmat/primitives/asymmetric/x25519.py\n@@ -60,7 +60,7 @@\n @abc.abstractmethod\n ...
1,270
148
gh_patches_debug_18999
rasdani/github-patches
git_diff
opsdroid__opsdroid-1270
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Update regex pattern for the envvar construtor You can use envvars on your configuration, but they need to follow this pattern `$ENVVARNAME` the regex pattern should be updated to allow users to use either `$...
diff --git a/opsdroid/configuration/__init__.py b/opsdroid/configuration/__init__.py --- a/opsdroid/configuration/__init__.py +++ b/opsdroid/configuration/__init__.py @@ -7,7 +7,7 @@ import logging import yaml -from opsdroid.const import DEFAULT_CONFIG_PATH, EXAMPLE_CONFIG_FILE +from opsdroid.const import DEFAULT_C...
{"golden_diff": "diff --git a/opsdroid/configuration/__init__.py b/opsdroid/configuration/__init__.py\n--- a/opsdroid/configuration/__init__.py\n+++ b/opsdroid/configuration/__init__.py\n@@ -7,7 +7,7 @@\n import logging\n import yaml\n \n-from opsdroid.const import DEFAULT_CONFIG_PATH, EXAMPLE_CONFIG_FILE\n+from opsdro...
1,983
299
gh_patches_debug_20188
rasdani/github-patches
git_diff
getsentry__sentry-python-2080
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Threading integration breaks OpenCensus' threading integration ### How do you use Sentry? Sentry Saas (sentry.io) ### Version 1.21.1 ### Steps to Reproduce 1. Enable threading Sentry integratio...
diff --git a/sentry_sdk/integrations/threading.py b/sentry_sdk/integrations/threading.py --- a/sentry_sdk/integrations/threading.py +++ b/sentry_sdk/integrations/threading.py @@ -1,6 +1,7 @@ from __future__ import absolute_import import sys +from functools import wraps from threading import Thread, current_thread ...
{"golden_diff": "diff --git a/sentry_sdk/integrations/threading.py b/sentry_sdk/integrations/threading.py\n--- a/sentry_sdk/integrations/threading.py\n+++ b/sentry_sdk/integrations/threading.py\n@@ -1,6 +1,7 @@\n from __future__ import absolute_import\n \n import sys\n+from functools import wraps\n from threading impor...
1,729
238
gh_patches_debug_29915
rasdani/github-patches
git_diff
deepchecks__deepchecks-398
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- BUG: confusion matrix chart displays wrong output To reproduce: https://www.kaggle.com/itay94/notebook05f499eb19 ![image](https://user-images.githubusercontent.com/20860465/147875903-9701bdc8-a094-4fb5-80...
diff --git a/deepchecks/checks/performance/confusion_matrix_report.py b/deepchecks/checks/performance/confusion_matrix_report.py --- a/deepchecks/checks/performance/confusion_matrix_report.py +++ b/deepchecks/checks/performance/confusion_matrix_report.py @@ -9,11 +9,10 @@ # --------------------------------------------...
{"golden_diff": "diff --git a/deepchecks/checks/performance/confusion_matrix_report.py b/deepchecks/checks/performance/confusion_matrix_report.py\n--- a/deepchecks/checks/performance/confusion_matrix_report.py\n+++ b/deepchecks/checks/performance/confusion_matrix_report.py\n@@ -9,11 +9,10 @@\n # -----------------------...
1,020
399
gh_patches_debug_42763
rasdani/github-patches
git_diff
getredash__redash-1002
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add events to track embeds usage Add events to track embeds usage --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --...
diff --git a/redash/handlers/base.py b/redash/handlers/base.py --- a/redash/handlers/base.py +++ b/redash/handlers/base.py @@ -5,7 +5,7 @@ from peewee import DoesNotExist from redash import settings -from redash.tasks import record_event +from redash.tasks import record_event as record_event_task from redash.model...
{"golden_diff": "diff --git a/redash/handlers/base.py b/redash/handlers/base.py\n--- a/redash/handlers/base.py\n+++ b/redash/handlers/base.py\n@@ -5,7 +5,7 @@\n from peewee import DoesNotExist\n \n from redash import settings\n-from redash.tasks import record_event\n+from redash.tasks import record_event as record_even...
1,634
886
gh_patches_debug_23847
rasdani/github-patches
git_diff
AppDaemon__appdaemon-1661
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Improve packaging system The `requirements.txt` file is used in a bit confusing way. It it usual practice for this file to contain all the dependencies present in the project virtualenv, created using `pip fr...
diff --git a/setup.py b/setup.py deleted file mode 100755 --- a/setup.py +++ /dev/null @@ -1,44 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- - -from setuptools import setup, find_packages - -from appdaemon.version import __version__ - -# sudo apt-get install python3-aiohttp-dbg - -with open("requirements.txt...
{"golden_diff": "diff --git a/setup.py b/setup.py\ndeleted file mode 100755\n--- a/setup.py\n+++ /dev/null\n@@ -1,44 +0,0 @@\n-#!/usr/bin/env python\n-# -*- coding: utf-8 -*-\n-\n-from setuptools import setup, find_packages\n-\n-from appdaemon.version import __version__\n-\n-# sudo apt-get install python3-aiohttp-dbg\n...
1,025
427
gh_patches_debug_6209
rasdani/github-patches
git_diff
gratipay__gratipay.com-3021
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- A suspicious user trying to log in results in a 500 https://app.getsentry.com/gratipay/gratipay-com/group/32039756/ <bountysource-plugin> --- Want to back this issue? **[Place a bounty on it!](https://www....
diff --git a/gratipay/security/user.py b/gratipay/security/user.py --- a/gratipay/security/user.py +++ b/gratipay/security/user.py @@ -92,9 +92,7 @@ @property def ANON(self): - return self.participant is None or self.participant.is_suspicious is True - # Append "is True" here because otherwise...
{"golden_diff": "diff --git a/gratipay/security/user.py b/gratipay/security/user.py\n--- a/gratipay/security/user.py\n+++ b/gratipay/security/user.py\n@@ -92,9 +92,7 @@\n \n @property\n def ANON(self):\n- return self.participant is None or self.participant.is_suspicious is True\n- # Append \"is Tr...
1,586
145
gh_patches_debug_2497
rasdani/github-patches
git_diff
DataDog__dd-agent-1047
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Windows agent connection error agent version: 4.4 OS: Windows 2008 Standard, SP2. case: https://datadog.desk.com/agent/case/11902 - log snippet: > 2014-06-24 13:45:04 Eastern Daylight Time | ERROR | forwarde...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -94,6 +94,7 @@ 'optimize': 0, 'compressed': True, 'bundle_files': 3, + 'dll_excludes': [ "IPHLPAPI.DLL", "NSI.dll", "WINNSI.DLL", "WTSAPI32.dll"], }, }, 'c...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -94,6 +94,7 @@\n 'optimize': 0,\n 'compressed': True,\n 'bundle_files': 3,\n+ 'dll_excludes': [ \"IPHLPAPI.DLL\", \"NSI.dll\", \"WINNSI.DLL\", \"WTSAPI32.dll\"],\n ...
2,032
106
gh_patches_debug_14055
rasdani/github-patches
git_diff
spack__spack-12932
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Installation issue: py-adios ### Steps to reproduce the issue ```console $ spack install -j 64 py-adios ^python@3.0: ``` The result is lots of errors like: ```adios_mpi.cpp:47080:21: error: 'PyThreadSt...
diff --git a/var/spack/repos/builtin/packages/py-adios/package.py b/var/spack/repos/builtin/packages/py-adios/package.py --- a/var/spack/repos/builtin/packages/py-adios/package.py +++ b/var/spack/repos/builtin/packages/py-adios/package.py @@ -35,6 +35,14 @@ when='@{0} +mpi'.format(v), ...
{"golden_diff": "diff --git a/var/spack/repos/builtin/packages/py-adios/package.py b/var/spack/repos/builtin/packages/py-adios/package.py\n--- a/var/spack/repos/builtin/packages/py-adios/package.py\n+++ b/var/spack/repos/builtin/packages/py-adios/package.py\n@@ -35,6 +35,14 @@\n when='@{0} +mpi'.form...
1,459
278
gh_patches_debug_11980
rasdani/github-patches
git_diff
pypi__warehouse-1659
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Update elasticsearch-dsl to 5.1.0 There's a new version of [elasticsearch-dsl](https://pypi.python.org/pypi/elasticsearch-dsl) available. You are currently using **5.0.0**. I have updated it to **5.1.0** ...
diff --git a/warehouse/search.py b/warehouse/search.py --- a/warehouse/search.py +++ b/warehouse/search.py @@ -16,7 +16,7 @@ import elasticsearch import venusian -from elasticsearch_dsl import Index +from elasticsearch_dsl import Index, serializer def doc_type(cls): @@ -64,6 +64,7 @@ ca_certs=certifi....
{"golden_diff": "diff --git a/warehouse/search.py b/warehouse/search.py\n--- a/warehouse/search.py\n+++ b/warehouse/search.py\n@@ -16,7 +16,7 @@\n import elasticsearch\n import venusian\n \n-from elasticsearch_dsl import Index\n+from elasticsearch_dsl import Index, serializer\n \n \n def doc_type(cls):\n@@ -64,6 +64,7 ...
1,228
153
gh_patches_debug_638
rasdani/github-patches
git_diff
pex-tool__pex-2278
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Release 2.1.150 On the docket: + [x] Add support for Pip 23.3.1. #2276 + [x] Support .egg-info dist metadata. #2264 --- END ISSUE --- Below are some code segments, each from a relevant file. One or more o...
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.149" +__version__ = "2.1.150"
{"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.149\"\n+__version__ = \"2.1.150\"\n",...
362
98
gh_patches_debug_2529
rasdani/github-patches
git_diff
systemd__mkosi-1847
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- tput smam breaks build Using latest on Debian Sid. ``` ‣ Running finalize script… ‣ Creating tar archive /home/ander/Desktop/mkosi/tools/mkosi.workspace/.mkosi-tmp9zitpbja/staging/image.tar… ‣ /home/...
diff --git a/mkosi/__main__.py b/mkosi/__main__.py --- a/mkosi/__main__.py +++ b/mkosi/__main__.py @@ -51,8 +51,8 @@ run_verb(args, presets) finally: if sys.stderr.isatty() and shutil.which("tput"): - run(["tput", "cnorm"]) - run(["tput", "smam"]) + run(["tput", "...
{"golden_diff": "diff --git a/mkosi/__main__.py b/mkosi/__main__.py\n--- a/mkosi/__main__.py\n+++ b/mkosi/__main__.py\n@@ -51,8 +51,8 @@\n run_verb(args, presets)\n finally:\n if sys.stderr.isatty() and shutil.which(\"tput\"):\n- run([\"tput\", \"cnorm\"])\n- run([\"tput\", \"s...
948
136
gh_patches_debug_28259
rasdani/github-patches
git_diff
pre-commit__pre-commit-302
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add option to pass additional dependencies to hooks I am currently working on implementing this framework and one of the things I am trying to run is eslint. As part of that I have a number of plugins that ar...
diff --git a/pre_commit/languages/python.py b/pre_commit/languages/python.py --- a/pre_commit/languages/python.py +++ b/pre_commit/languages/python.py @@ -31,15 +31,18 @@ def norm_version(version): - version = os.path.expanduser(version) if os.name == 'nt': # pragma: no cover (windows) - if not dis...
{"golden_diff": "diff --git a/pre_commit/languages/python.py b/pre_commit/languages/python.py\n--- a/pre_commit/languages/python.py\n+++ b/pre_commit/languages/python.py\n@@ -31,15 +31,18 @@\n \n \n def norm_version(version):\n- version = os.path.expanduser(version)\n if os.name == 'nt': # pragma: no cover (win...
1,913
477
gh_patches_debug_18579
rasdani/github-patches
git_diff
falconry__falcon-62
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Remove responder exception handling Can hide problems, encourage bad coding practices. --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs...
diff --git a/falcon/api.py b/falcon/api.py --- a/falcon/api.py +++ b/falcon/api.py @@ -16,8 +16,6 @@ """ -import traceback - from .request import Request from .response import Response from . import responders @@ -69,25 +67,6 @@ if req.client_accepts_json(): resp.body = ex.json() ...
{"golden_diff": "diff --git a/falcon/api.py b/falcon/api.py\n--- a/falcon/api.py\n+++ b/falcon/api.py\n@@ -16,8 +16,6 @@\n \n \"\"\"\n \n-import traceback\n-\n from .request import Request\n from .response import Response\n from . import responders\n@@ -69,25 +67,6 @@\n if req.client_accepts_json():\n ...
1,651
223
gh_patches_debug_8483
rasdani/github-patches
git_diff
PaddlePaddle__PaddleSpeech-2171
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- 切换英文语音合成报错 get_input_ids() got an unexpected keyword argument 'get_tone_ids' 要切换成英文语音合成时,更改了/paddlespeech/server/conf/application.yaml这个配置文件中的tts_python里面的声学模型和声码器,声学模型用的是fastspeech2_ljspeech,声码器用的pwgan_ljspe...
diff --git a/paddlespeech/server/engine/engine_warmup.py b/paddlespeech/server/engine/engine_warmup.py --- a/paddlespeech/server/engine/engine_warmup.py +++ b/paddlespeech/server/engine/engine_warmup.py @@ -60,7 +60,10 @@ else: st = time.time() - connection_han...
{"golden_diff": "diff --git a/paddlespeech/server/engine/engine_warmup.py b/paddlespeech/server/engine/engine_warmup.py\n--- a/paddlespeech/server/engine/engine_warmup.py\n+++ b/paddlespeech/server/engine/engine_warmup.py\n@@ -60,7 +60,10 @@\n \n else:\n st = time.time()\n- ...
1,158
149
gh_patches_debug_35491
rasdani/github-patches
git_diff
aws__aws-cli-4874
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Proposal: aws ecr get-login-password This is a proposal for a new AWS CLI command for ECR ``` $ aws ecr get-login-password cGFzc3dvcmQ= ``` This command can be used in the following ways: ``` $ a...
diff --git a/awscli/customizations/ecr.py b/awscli/customizations/ecr.py --- a/awscli/customizations/ecr.py +++ b/awscli/customizations/ecr.py @@ -18,15 +18,16 @@ def register_ecr_commands(cli): - cli.register('building-command-table.ecr', _inject_get_login) + cli.register('building-command-table.ecr', _inje...
{"golden_diff": "diff --git a/awscli/customizations/ecr.py b/awscli/customizations/ecr.py\n--- a/awscli/customizations/ecr.py\n+++ b/awscli/customizations/ecr.py\n@@ -18,15 +18,16 @@\n \n \n def register_ecr_commands(cli):\n- cli.register('building-command-table.ecr', _inject_get_login)\n+ cli.register('building-...
1,372
576
gh_patches_debug_13272
rasdani/github-patches
git_diff
arviz-devs__arviz-1133
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add `Matplotlib` framework classifier to `setup.py` `Matplotlib` now has a [trove classifier on pypi](https://twitter.com/matplotlib/status/1235216347925286913). We can add: ```python classifiers = [ ...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -59,4 +59,19 @@ long_description=get_long_description(), long_description_content_type="text/markdown", include_package_data=True, + classifiers=[ + "Development Status :: 4 - Beta", + "Framework :: Matplotlib", + "...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -59,4 +59,19 @@\n long_description=get_long_description(),\n long_description_content_type=\"text/markdown\",\n include_package_data=True,\n+ classifiers=[\n+ \"Development Status :: 4 - Beta\",\n+ \"Frame...
1,122
204
gh_patches_debug_30956
rasdani/github-patches
git_diff
alltheplaces__alltheplaces-3602
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Spider superdrug is broken During the global build at 2021-06-30-14-42-26, spider **superdrug** failed with **0 features** and **2 errors**. Here's [the log](https://data.alltheplaces.xyz/runs/2021-06-30-14-...
diff --git a/locations/spiders/superdrug.py b/locations/spiders/superdrug.py --- a/locations/spiders/superdrug.py +++ b/locations/spiders/superdrug.py @@ -4,6 +4,7 @@ import scrapy from locations.items import GeojsonPointItem +from locations.hours import OpeningHours class SuperdrugSpider(scrapy.Spider): @@ -1...
{"golden_diff": "diff --git a/locations/spiders/superdrug.py b/locations/spiders/superdrug.py\n--- a/locations/spiders/superdrug.py\n+++ b/locations/spiders/superdrug.py\n@@ -4,6 +4,7 @@\n import scrapy\n \n from locations.items import GeojsonPointItem\n+from locations.hours import OpeningHours\n \n \n class SuperdrugS...
921
444
gh_patches_debug_1104
rasdani/github-patches
git_diff
blaze__blaze-872
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Truncate column name is too verbose Do we have to have a unique name for the result of such operations? How about having it renamed to the unit, i.e. instead of `when_datetimetruncate` we use `when_day` or `...
diff --git a/blaze/expr/datetime.py b/blaze/expr/datetime.py --- a/blaze/expr/datetime.py +++ b/blaze/expr/datetime.py @@ -135,6 +135,10 @@ else: return datashape.datetime_ + @property + def _name(self): + return self._child._name + def truncate(expr, *args, **kwargs): """ T...
{"golden_diff": "diff --git a/blaze/expr/datetime.py b/blaze/expr/datetime.py\n--- a/blaze/expr/datetime.py\n+++ b/blaze/expr/datetime.py\n@@ -135,6 +135,10 @@\n else:\n return datashape.datetime_\n \n+ @property\n+ def _name(self):\n+ return self._child._name\n+\n \n def truncate(expr,...
1,999
106
gh_patches_debug_59056
rasdani/github-patches
git_diff
google__jax-19166
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Unexpected behavior of `jax.scipy.stats.binom.pmf` ### Description pmf of a random variable should be zero outside of its range. While plotting the graph for `jax.scipy.stats.binom.pmf`, I notice that for ...
diff --git a/jax/_src/scipy/stats/binom.py b/jax/_src/scipy/stats/binom.py --- a/jax/_src/scipy/stats/binom.py +++ b/jax/_src/scipy/stats/binom.py @@ -33,7 +33,7 @@ ) log_linear_term = lax.add(xlogy(y, p), xlog1py(lax.sub(n, y), lax.neg(p))) log_probs = lax.add(comb_term, log_linear_term) - return jnp...
{"golden_diff": "diff --git a/jax/_src/scipy/stats/binom.py b/jax/_src/scipy/stats/binom.py\n--- a/jax/_src/scipy/stats/binom.py\n+++ b/jax/_src/scipy/stats/binom.py\n@@ -33,7 +33,7 @@\n )\n log_linear_term = lax.add(xlogy(y, p), xlog1py(lax.sub(n, y), lax.neg(p)))\n log_probs = lax.add(comb_term, log_linea...
1,092
178
gh_patches_debug_1261
rasdani/github-patches
git_diff
swcarpentry__python-novice-inflammation-736
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Lesson 10 - numpy.mean(data) and data.mean In lesson 10, when the lesson refers to readings_03.py, the code shows that to calculate the mean over 'data' across all days, numpy.mean is used: numpy.mean(data, a...
diff --git a/code/readings_03.py b/code/readings_03.py --- a/code/readings_03.py +++ b/code/readings_03.py @@ -6,7 +6,7 @@ script = sys.argv[0] for filename in sys.argv[1:]: data = numpy.loadtxt(filename, delimiter=',') - for m in data.mean(axis=1): + for m in numpy.mean(data, axis=1): ...
{"golden_diff": "diff --git a/code/readings_03.py b/code/readings_03.py\n--- a/code/readings_03.py\n+++ b/code/readings_03.py\n@@ -6,7 +6,7 @@\n script = sys.argv[0]\n for filename in sys.argv[1:]:\n data = numpy.loadtxt(filename, delimiter=',')\n- for m in data.mean(axis=1):\n+ for m in n...
502
105
gh_patches_debug_6547
rasdani/github-patches
git_diff
lk-geimfari__mimesis-376
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- I can't compile my project by pyinstaller I have a script with code: ``` from mimesis import Personal person = Personal('en') person.full_name() ``` and it works well, but after compiling this code to ....
diff --git a/mimesis/utils.py b/mimesis/utils.py --- a/mimesis/utils.py +++ b/mimesis/utils.py @@ -96,7 +96,7 @@ :param locale_name: Locale name. :return: Content of JSON file as dict. """ - file_path = path.join(DATA_DIR + '/' + locale_name, file) + file_path = path.join(DATA_D...
{"golden_diff": "diff --git a/mimesis/utils.py b/mimesis/utils.py\n--- a/mimesis/utils.py\n+++ b/mimesis/utils.py\n@@ -96,7 +96,7 @@\n :param locale_name: Locale name.\n :return: Content of JSON file as dict.\n \"\"\"\n- file_path = path.join(DATA_DIR + '/' + locale_name, file)\n+ ...
1,790
129
gh_patches_debug_11035
rasdani/github-patches
git_diff
python-pillow__Pillow-821
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- PyPy performance on test_image_point is awful Hoisted from #476, test_image_point.py takes ~ 2 minutes to run, vs < 1 sec for cpython. --- END ISSUE --- Below are some code segments, each from a relevant f...
diff --git a/profile-installed.py b/profile-installed.py --- a/profile-installed.py +++ b/profile-installed.py @@ -21,14 +21,6 @@ # Make sure that nose doesn't muck with our paths. if ('--no-path-adjustment' not in sys.argv) and ('-P' not in sys.argv): sys.argv.insert(1, '--no-path-adjustment') - -if 'NOSE_PROCE...
{"golden_diff": "diff --git a/profile-installed.py b/profile-installed.py\n--- a/profile-installed.py\n+++ b/profile-installed.py\n@@ -21,14 +21,6 @@\n # Make sure that nose doesn't muck with our paths.\n if ('--no-path-adjustment' not in sys.argv) and ('-P' not in sys.argv):\n sys.argv.insert(1, '--no-path-adjustm...
647
194
gh_patches_debug_2448
rasdani/github-patches
git_diff
docker__docker-py-3200
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Can't create config object Much like https://github.com/docker/docker-py/issues/2025 the config model is failing to create a new object due to 'name' KeyError ``` Traceback (most recent call last): Fil...
diff --git a/docker/models/configs.py b/docker/models/configs.py --- a/docker/models/configs.py +++ b/docker/models/configs.py @@ -30,6 +30,7 @@ def create(self, **kwargs): obj = self.client.api.create_config(**kwargs) + obj.setdefault("Spec", {})["Name"] = kwargs.get("name") return self...
{"golden_diff": "diff --git a/docker/models/configs.py b/docker/models/configs.py\n--- a/docker/models/configs.py\n+++ b/docker/models/configs.py\n@@ -30,6 +30,7 @@\n \n def create(self, **kwargs):\n obj = self.client.api.create_config(**kwargs)\n+ obj.setdefault(\"Spec\", {})[\"Name\"] = kwargs.get(...
948
101