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_5289
rasdani/github-patches
git_diff
freedomofpress__securedrop-7074
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Release SecureDrop 2.7.0 This is a tracking issue for the release of SecureDrop 2.7.0 Tentatively scheduled as follows: **Pre-release announcement:** ~10-19-2023~10-26-2023 **Release date:** ~10-26-202...
diff --git a/securedrop/setup.py b/securedrop/setup.py --- a/securedrop/setup.py +++ b/securedrop/setup.py @@ -4,7 +4,7 @@ setuptools.setup( name="securedrop-app-code", - version="2.7.0~rc1", + version="2.8.0~rc1", author="Freedom of the Press Foundation", author_email="securedrop@freedom.press"...
{"golden_diff": "diff --git a/securedrop/setup.py b/securedrop/setup.py\n--- a/securedrop/setup.py\n+++ b/securedrop/setup.py\n@@ -4,7 +4,7 @@\n \n setuptools.setup(\n name=\"securedrop-app-code\",\n- version=\"2.7.0~rc1\",\n+ version=\"2.8.0~rc1\",\n author=\"Freedom of the Press Foundation\",\n auth...
1,668
175
gh_patches_debug_26784
rasdani/github-patches
git_diff
mindee__doctr-1280
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- listing the detection and recognition models not working in pytorch ### Bug description Hi, This is the list of models not working in inference: - detection models: * db_resnet_34 * linknet_r...
diff --git a/demo/backend/pytorch.py b/demo/backend/pytorch.py --- a/demo/backend/pytorch.py +++ b/demo/backend/pytorch.py @@ -9,8 +9,25 @@ from doctr.models import ocr_predictor from doctr.models.predictor import OCRPredictor -DET_ARCHS = ["db_resnet50", "db_mobilenet_v3_large", "linknet_resnet50_rotation"] -RECO_...
{"golden_diff": "diff --git a/demo/backend/pytorch.py b/demo/backend/pytorch.py\n--- a/demo/backend/pytorch.py\n+++ b/demo/backend/pytorch.py\n@@ -9,8 +9,25 @@\n from doctr.models import ocr_predictor\n from doctr.models.predictor import OCRPredictor\n \n-DET_ARCHS = [\"db_resnet50\", \"db_mobilenet_v3_large\", \"linkn...
1,653
604
gh_patches_debug_26097
rasdani/github-patches
git_diff
cloud-custodian__cloud-custodian-3709
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- eks update action https://docs.aws.amazon.com/eks/latest/userguide/cluster-endpoint.html --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bug...
diff --git a/c7n/resources/eks.py b/c7n/resources/eks.py --- a/c7n/resources/eks.py +++ b/c7n/resources/eks.py @@ -19,6 +19,8 @@ from c7n.query import QueryResourceManager from c7n.utils import local_session, type_schema +from .aws import shape_validate + @resources.register('eks') class EKS(QueryResourceManage...
{"golden_diff": "diff --git a/c7n/resources/eks.py b/c7n/resources/eks.py\n--- a/c7n/resources/eks.py\n+++ b/c7n/resources/eks.py\n@@ -19,6 +19,8 @@\n from c7n.query import QueryResourceManager\n from c7n.utils import local_session, type_schema\n \n+from .aws import shape_validate\n+\n \n @resources.register('eks')\n c...
900
383
gh_patches_debug_36103
rasdani/github-patches
git_diff
bokeh__bokeh-6504
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add synthetic data mode to spectrogram The pyaudio package is not available on all platforms. An option mode to generate synthetic dat would allow the app to be run everywhere in some capacity. @philippjf...
diff --git a/examples/app/spectrogram/audio.py b/examples/app/spectrogram/audio.py --- a/examples/app/spectrogram/audio.py +++ b/examples/app/spectrogram/audio.py @@ -1,11 +1,6 @@ from __future__ import print_function -try: - import pyaudio -except: - print("This demo requires pyaudio installed to function") -...
{"golden_diff": "diff --git a/examples/app/spectrogram/audio.py b/examples/app/spectrogram/audio.py\n--- a/examples/app/spectrogram/audio.py\n+++ b/examples/app/spectrogram/audio.py\n@@ -1,11 +1,6 @@\n from __future__ import print_function\n \n-try:\n- import pyaudio\n-except:\n- print(\"This demo requires pyaudi...
756
833
gh_patches_debug_17638
rasdani/github-patches
git_diff
joke2k__faker-283
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- ReadTheDocs spacing is off for providers http://fake-factory.readthedocs.org/en/latest/providers/internet.html The spacing makes this pretty unreadable without constantly scrolling back and forth, which is a...
diff --git a/faker/build_docs.py b/faker/build_docs.py --- a/faker/build_docs.py +++ b/faker/build_docs.py @@ -41,20 +41,11 @@ except UnicodeEncodeError: msg = 'error on "{0}" with value "{1}"'.format(signature, example) raise Exception(msg) - margin = max(30, doc.max_name_len+...
{"golden_diff": "diff --git a/faker/build_docs.py b/faker/build_docs.py\n--- a/faker/build_docs.py\n+++ b/faker/build_docs.py\n@@ -41,20 +41,11 @@\n except UnicodeEncodeError:\n msg = 'error on \"{0}\" with value \"{1}\"'.format(signature, example)\n raise Exception(msg)\n- margin...
1,645
274
gh_patches_debug_42117
rasdani/github-patches
git_diff
3cn-ecn__nantralPlatform-23
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Separer les differentes actions d'edition d'un groupe en plusieurs pages Il faudrait diviser les actions des pages d'edition en plusieurs sous pages - [ ] Convertir les pages pour utiliser le template upda...
diff --git a/server/apps/group/urls.py b/server/apps/group/urls.py --- a/server/apps/group/urls.py +++ b/server/apps/group/urls.py @@ -9,7 +9,7 @@ path('<slug:pk>/', DetailClubView.as_view(), name='detail'), path('<slug:pk>/edit', UpdateClubView.as_view(), name='update'), path('<slug:group_slug>/member/a...
{"golden_diff": "diff --git a/server/apps/group/urls.py b/server/apps/group/urls.py\n--- a/server/apps/group/urls.py\n+++ b/server/apps/group/urls.py\n@@ -9,7 +9,7 @@\n path('<slug:pk>/', DetailClubView.as_view(), name='detail'),\n path('<slug:pk>/edit', UpdateClubView.as_view(), name='update'),\n path('<sl...
1,565
909
gh_patches_debug_3326
rasdani/github-patches
git_diff
conda-forge__conda-smithy-144
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Linter: handle environ Same issue as https://github.com/conda-forge/conda-forge.github.io/issues/93. Same fix needed: https://github.com/conda-forge/conda-forge.github.io/pull/107/files Linter: handle enviro...
diff --git a/conda_smithy/lint_recipe.py b/conda_smithy/lint_recipe.py --- a/conda_smithy/lint_recipe.py +++ b/conda_smithy/lint_recipe.py @@ -15,6 +15,11 @@ def __unicode__(self): return unicode(self._undefined_name) + def __getattr__(self, name): + return unicode('{}.{}'.format(self, name)) ...
{"golden_diff": "diff --git a/conda_smithy/lint_recipe.py b/conda_smithy/lint_recipe.py\n--- a/conda_smithy/lint_recipe.py\n+++ b/conda_smithy/lint_recipe.py\n@@ -15,6 +15,11 @@\n def __unicode__(self):\n return unicode(self._undefined_name)\n \n+ def __getattr__(self, name):\n+ return unicode('{}...
1,931
142
gh_patches_debug_29489
rasdani/github-patches
git_diff
hylang__hy-112
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Unifying division Since we are effectively creating a new language, we might as well fix one of the nastiest Python portability problems between 2 and 3: division. I propose to do an implicit "from **future**...
diff --git a/hy/importer.py b/hy/importer.py --- a/hy/importer.py +++ b/hy/importer.py @@ -31,7 +31,7 @@ import sys import ast import os - +import __future__ if sys.version_info[0] >= 3: from io import StringIO @@ -39,6 +39,10 @@ from StringIO import StringIO # NOQA +def compile_(ast, filename, mod...
{"golden_diff": "diff --git a/hy/importer.py b/hy/importer.py\n--- a/hy/importer.py\n+++ b/hy/importer.py\n@@ -31,7 +31,7 @@\n import sys\n import ast\n import os\n-\n+import __future__\n \n if sys.version_info[0] >= 3:\n from io import StringIO\n@@ -39,6 +39,10 @@\n from StringIO import StringIO # NOQA\n \n \...
1,877
415
gh_patches_debug_63306
rasdani/github-patches
git_diff
scikit-hep__pyhf-363
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- consolidation: add simplemodls to __all__ # Description It would be nice if the snippet in the README could be shorter: right now this is needed ``` import pyhf import pyhf.simplemodels pdf = pyhf.s...
diff --git a/pyhf/__init__.py b/pyhf/__init__.py --- a/pyhf/__init__.py +++ b/pyhf/__init__.py @@ -82,5 +82,6 @@ from .pdf import Model +from . import simplemodels -__all__ = ['Model', 'utils', 'modifiers', '__version__'] +__all__ = ['Model', 'utils', 'modifiers', 'simplemodels', '__version__']
{"golden_diff": "diff --git a/pyhf/__init__.py b/pyhf/__init__.py\n--- a/pyhf/__init__.py\n+++ b/pyhf/__init__.py\n@@ -82,5 +82,6 @@\n \n \n from .pdf import Model\n+from . import simplemodels\n \n-__all__ = ['Model', 'utils', 'modifiers', '__version__']\n+__all__ = ['Model', 'utils', 'modifiers', 'simplemodels', '__ve...
1,190
102
gh_patches_debug_3535
rasdani/github-patches
git_diff
scikit-image__scikit-image-1206
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- canny edge detection throws AttributeError exception I was trying out http://scikit-image.org/docs/dev/auto_examples/plot_canny.html And the following lines of code: # Generate noisy image of a square im =...
diff --git a/skimage/filter/__init__.py b/skimage/filter/__init__.py --- a/skimage/filter/__init__.py +++ b/skimage/filter/__init__.py @@ -19,7 +19,7 @@ (restoration.denoise_tv_chambolle) # Backward compatibility v<0.11 -@deprecated +@deprecated('skimage.feature.canny') def canny(*args, **k...
{"golden_diff": "diff --git a/skimage/filter/__init__.py b/skimage/filter/__init__.py\n--- a/skimage/filter/__init__.py\n+++ b/skimage/filter/__init__.py\n@@ -19,7 +19,7 @@\n (restoration.denoise_tv_chambolle)\n \n # Backward compatibility v<0.11\n-@deprecated\n+@deprecated('skimage.feature.cann...
1,114
125
gh_patches_debug_31778
rasdani/github-patches
git_diff
pyqtgraph__pyqtgraph-1326
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add MultiPlotItem to docs I noticed it's missing in reviewing #1324. Also [MultiPlotWidget](https://pyqtgraph.readthedocs.io/en/latest/widgets/multiplotwidget.html) should link to it and indicate it wraps the...
diff --git a/pyqtgraph/graphicsItems/MultiPlotItem.py b/pyqtgraph/graphicsItems/MultiPlotItem.py --- a/pyqtgraph/graphicsItems/MultiPlotItem.py +++ b/pyqtgraph/graphicsItems/MultiPlotItem.py @@ -4,22 +4,33 @@ Copyright 2010 Luke Campagnola Distributed under MIT/X11 license. See license.txt for more information. """...
{"golden_diff": "diff --git a/pyqtgraph/graphicsItems/MultiPlotItem.py b/pyqtgraph/graphicsItems/MultiPlotItem.py\n--- a/pyqtgraph/graphicsItems/MultiPlotItem.py\n+++ b/pyqtgraph/graphicsItems/MultiPlotItem.py\n@@ -4,22 +4,33 @@\n Copyright 2010 Luke Campagnola\n Distributed under MIT/X11 license. See license.txt for ...
1,776
511
gh_patches_debug_33409
rasdani/github-patches
git_diff
bridgecrewio__checkov-4614
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- False positive for tests in bicep: CKV_AZURE_4, CKV_AZURE_5, CKV_AZURE_7, CKV_AZURE_8 **Describe the issue** false positive for tests CKV_AZURE_4, CKV_AZURE_5, CKV_AZURE_7, CKV_AZURE_8 **Examples** Her...
diff --git a/checkov/arm/checks/resource/AKSLoggingEnabled.py b/checkov/arm/checks/resource/AKSLoggingEnabled.py --- a/checkov/arm/checks/resource/AKSLoggingEnabled.py +++ b/checkov/arm/checks/resource/AKSLoggingEnabled.py @@ -1,18 +1,22 @@ +from __future__ import annotations + +from typing import Any + from checkov.c...
{"golden_diff": "diff --git a/checkov/arm/checks/resource/AKSLoggingEnabled.py b/checkov/arm/checks/resource/AKSLoggingEnabled.py\n--- a/checkov/arm/checks/resource/AKSLoggingEnabled.py\n+++ b/checkov/arm/checks/resource/AKSLoggingEnabled.py\n@@ -1,18 +1,22 @@\n+from __future__ import annotations\n+\n+from typing impor...
865
454
gh_patches_debug_18581
rasdani/github-patches
git_diff
scikit-image__scikit-image-219
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- message about unit tests not available If scikits-image is installed without nose, a message is printed about unit tests not being available is printed on import but it is a little bit distracting to the casu...
diff --git a/skimage/__init__.py b/skimage/__init__.py --- a/skimage/__init__.py +++ b/skimage/__init__.py @@ -72,26 +72,20 @@ try: import nose as _nose except ImportError: - print("Could not load nose. Unit tests not available.") - return None + def broken_test_func(): + ...
{"golden_diff": "diff --git a/skimage/__init__.py b/skimage/__init__.py\n--- a/skimage/__init__.py\n+++ b/skimage/__init__.py\n@@ -72,26 +72,20 @@\n try:\n import nose as _nose\n except ImportError:\n- print(\"Could not load nose. Unit tests not available.\")\n- return None\n+ def ...
1,516
265
gh_patches_debug_18589
rasdani/github-patches
git_diff
ethereum__web3.py-1763
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Upgrade Parity version in test infrastructure ### What was wrong? Our Parity tests run on version 2.3.5. According to a recent OpenEthereum [blog post](https://medium.com/openethereum/vision-for-openethere...
diff --git a/web3/middleware/validation.py b/web3/middleware/validation.py --- a/web3/middleware/validation.py +++ b/web3/middleware/validation.py @@ -9,6 +9,7 @@ apply_formatter_if, apply_formatters_to_dict, is_null, + is_string, ) from eth_utils.toolz import ( complement, @@ -20,6 +21,9 @@ ...
{"golden_diff": "diff --git a/web3/middleware/validation.py b/web3/middleware/validation.py\n--- a/web3/middleware/validation.py\n+++ b/web3/middleware/validation.py\n@@ -9,6 +9,7 @@\n apply_formatter_if,\n apply_formatters_to_dict,\n is_null,\n+ is_string,\n )\n from eth_utils.toolz import (\n compl...
1,386
236
gh_patches_debug_24807
rasdani/github-patches
git_diff
akvo__akvo-rsr-1928
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Project list widget throws an internal server error ## Test plan GIVEN the 'Grab a widget' page WHEN a project has no partners THEN the project list and project map options should not be available WHEN a p...
diff --git a/akvo/rsr/views/widgets.py b/akvo/rsr/views/widgets.py --- a/akvo/rsr/views/widgets.py +++ b/akvo/rsr/views/widgets.py @@ -86,7 +86,7 @@ def get_context_data(self, **kwargs): context = super(ProjectListView, self).get_context_data(**kwargs) order_by = self.request.GET.get('order_by', ...
{"golden_diff": "diff --git a/akvo/rsr/views/widgets.py b/akvo/rsr/views/widgets.py\n--- a/akvo/rsr/views/widgets.py\n+++ b/akvo/rsr/views/widgets.py\n@@ -86,7 +86,7 @@\n def get_context_data(self, **kwargs):\n context = super(ProjectListView, self).get_context_data(**kwargs)\n order_by = self.reque...
1,782
284
gh_patches_debug_18666
rasdani/github-patches
git_diff
mozilla__pontoon-3061
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Fluent pretranslations not serialized in canonical form Fluent pretranslations are not stored in a canonical form. For example, `key = {example}` should actually be stored as `key = { example }` (mind the whi...
diff --git a/pontoon/pretranslation/pretranslate.py b/pontoon/pretranslation/pretranslate.py --- a/pontoon/pretranslation/pretranslate.py +++ b/pontoon/pretranslation/pretranslate.py @@ -58,6 +58,10 @@ pretranslation = serializer.serialize_entry(entry) + # Parse and serialize pretranslation again in...
{"golden_diff": "diff --git a/pontoon/pretranslation/pretranslate.py b/pontoon/pretranslation/pretranslate.py\n--- a/pontoon/pretranslation/pretranslate.py\n+++ b/pontoon/pretranslation/pretranslate.py\n@@ -58,6 +58,10 @@\n \n pretranslation = serializer.serialize_entry(entry)\n \n+ # Parse and serialize...
1,575
215
gh_patches_debug_18957
rasdani/github-patches
git_diff
wagtail__wagtail-8171
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Tags field needs universal help text to explain need to quote multi-word tags Wagtail's tagging system requires multi-word tags to be quoted, to prevent a two-word tag becoming two separate tags. This appears...
diff --git a/wagtail/admin/widgets/tags.py b/wagtail/admin/widgets/tags.py --- a/wagtail/admin/widgets/tags.py +++ b/wagtail/admin/widgets/tags.py @@ -2,6 +2,7 @@ from django.conf import settings from django.urls import reverse +from django.utils.translation import gettext_lazy as _ from taggit.forms import TagWid...
{"golden_diff": "diff --git a/wagtail/admin/widgets/tags.py b/wagtail/admin/widgets/tags.py\n--- a/wagtail/admin/widgets/tags.py\n+++ b/wagtail/admin/widgets/tags.py\n@@ -2,6 +2,7 @@\n \n from django.conf import settings\n from django.urls import reverse\n+from django.utils.translation import gettext_lazy as _\n from t...
781
229
gh_patches_debug_18003
rasdani/github-patches
git_diff
rasterio__rasterio-223
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- guard_transform prevents translation of unprojected files Where by translation I mean the pattern ``` python with rasterio.open(file1.tif) as src: with rasterio.open(file2.tif, 'w', **src.meta) as dst: ...
diff --git a/rasterio/transform.py b/rasterio/transform.py --- a/rasterio/transform.py +++ b/rasterio/transform.py @@ -1,12 +1,14 @@ - import warnings from affine import Affine IDENTITY = Affine.identity() -def tastes_like_gdal(t): - return t[2] == t[4] == 0.0 and t[1] > 0 and t[5] < 0 + +def tastes_like_gd...
{"golden_diff": "diff --git a/rasterio/transform.py b/rasterio/transform.py\n--- a/rasterio/transform.py\n+++ b/rasterio/transform.py\n@@ -1,12 +1,14 @@\n-\n import warnings\n \n from affine import Affine\n \n IDENTITY = Affine.identity()\n \n-def tastes_like_gdal(t):\n- return t[2] == t[4] == 0.0 and t[1] > 0 and t...
735
286
gh_patches_debug_9370
rasdani/github-patches
git_diff
liqd__a4-product-360
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [f2f module] wording Here are the wordings: 1 Edit face-to-face participation information Informationen zur Vor-Ort-Beteiligung bearbeiten 2 Title Titel 3 Highlighted Info Hervorgehobene Infor...
diff --git a/liqd_product/apps/dashboard/blueprints.py b/liqd_product/apps/dashboard/blueprints.py --- a/liqd_product/apps/dashboard/blueprints.py +++ b/liqd_product/apps/dashboard/blueprints.py @@ -101,9 +101,11 @@ )), ('facetoface', ProjectBlueprint( - title=_('Face to Face Participation'), +...
{"golden_diff": "diff --git a/liqd_product/apps/dashboard/blueprints.py b/liqd_product/apps/dashboard/blueprints.py\n--- a/liqd_product/apps/dashboard/blueprints.py\n+++ b/liqd_product/apps/dashboard/blueprints.py\n@@ -101,9 +101,11 @@\n )),\n ('facetoface',\n ProjectBlueprint(\n- title=_('Face to...
1,631
159
gh_patches_debug_28372
rasdani/github-patches
git_diff
pypa__setuptools-4283
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Deduplicate testing dependencies by referencing `[testing-integration]` <!-- First time contributors: Take a moment to review https://setuptools.pypa.io/en/latest/development/developer-guide.html! --> <!-- R...
diff --git a/conftest.py b/conftest.py --- a/conftest.py +++ b/conftest.py @@ -24,6 +24,7 @@ def pytest_configure(config): config.addinivalue_line("markers", "integration: integration tests") config.addinivalue_line("markers", "uses_network: tests may try to download files") + _IntegrationTestSpeedups.dis...
{"golden_diff": "diff --git a/conftest.py b/conftest.py\n--- a/conftest.py\n+++ b/conftest.py\n@@ -24,6 +24,7 @@\n def pytest_configure(config):\n config.addinivalue_line(\"markers\", \"integration: integration tests\")\n config.addinivalue_line(\"markers\", \"uses_network: tests may try to download files\")\n+...
1,007
408
gh_patches_debug_63356
rasdani/github-patches
git_diff
getredash__redash-716
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Deleting and re-adding widgets to a dashboard breaks it There's a specific set of steps that has messed up some of our users' dashboards: 1. Create a new dashboard 2. Add multiple widgets to it. 3. Remove all...
diff --git a/redash/handlers/widgets.py b/redash/handlers/widgets.py --- a/redash/handlers/widgets.py +++ b/redash/handlers/widgets.py @@ -46,5 +46,7 @@ widget = models.Widget.get(models.Widget.id == widget_id) widget.delete_instance() + return {'layout': widget.dashboard.layout } + api.add_...
{"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@@ -46,5 +46,7 @@\n widget = models.Widget.get(models.Widget.id == widget_id)\n widget.delete_instance()\n \n+ return {'layout': widget.dashbo...
942
118
gh_patches_debug_1763
rasdani/github-patches
git_diff
digitalfabrik__integreat-cms-802
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Improve push notification form ### Motivation <!-- A clear and concise description of what the motivation for the new feature is, and what problem it is solving. --> ### Proposed Solution <!-- A clear ...
diff --git a/src/cms/models/push_notifications/push_notification_translation.py b/src/cms/models/push_notifications/push_notification_translation.py --- a/src/cms/models/push_notifications/push_notification_translation.py +++ b/src/cms/models/push_notifications/push_notification_translation.py @@ -16,7 +16,7 @@ ...
{"golden_diff": "diff --git a/src/cms/models/push_notifications/push_notification_translation.py b/src/cms/models/push_notifications/push_notification_translation.py\n--- a/src/cms/models/push_notifications/push_notification_translation.py\n+++ b/src/cms/models/push_notifications/push_notification_translation.py\n@@ -1...
1,182
112
gh_patches_debug_3531
rasdani/github-patches
git_diff
web2py__web2py-928
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Typo in models/db.py for mail server Hi, I found a small typo, which prohibits sending mails in models/db.py line 65: mail.settings.server = 'logging' if request.is_local else myconf.take('smtp.sender') sh...
diff --git a/applications/welcome/models/db.py b/applications/welcome/models/db.py --- a/applications/welcome/models/db.py +++ b/applications/welcome/models/db.py @@ -62,7 +62,7 @@ ## configure email mail = auth.settings.mailer -mail.settings.server = 'logging' if request.is_local else myconf.take('smtp.sender') +m...
{"golden_diff": "diff --git a/applications/welcome/models/db.py b/applications/welcome/models/db.py\n--- a/applications/welcome/models/db.py\n+++ b/applications/welcome/models/db.py\n@@ -62,7 +62,7 @@\n \n ## configure email\n mail = auth.settings.mailer\n-mail.settings.server = 'logging' if request.is_local else mycon...
1,325
121
gh_patches_debug_13859
rasdani/github-patches
git_diff
bridgecrewio__checkov-5413
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- CKV_AWS_299 Fails for Values That Can't be Set **Describe the issue** Failing on - Check: CKV_AWS_299: "Ensure DMS S3 defines in-transit encryption" When the endpoint of a DMS Migration Task has a Endpoin...
diff --git a/checkov/terraform/checks/resource/aws/DMSS3DefinesIntransitEncryption.py b/checkov/terraform/checks/resource/aws/DMSS3DefinesIntransitEncryption.py deleted file mode 100644 --- a/checkov/terraform/checks/resource/aws/DMSS3DefinesIntransitEncryption.py +++ /dev/null @@ -1,24 +0,0 @@ -from __future__ import ...
{"golden_diff": "diff --git a/checkov/terraform/checks/resource/aws/DMSS3DefinesIntransitEncryption.py b/checkov/terraform/checks/resource/aws/DMSS3DefinesIntransitEncryption.py\ndeleted file mode 100644\n--- a/checkov/terraform/checks/resource/aws/DMSS3DefinesIntransitEncryption.py\n+++ /dev/null\n@@ -1,24 +0,0 @@\n-f...
902
296
gh_patches_debug_25329
rasdani/github-patches
git_diff
pypa__pip-3540
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Show INSTALLER from PEP376 in pip show Now that #1646 is implemented, it would interesting to show this information in `pip show`. --- END ISSUE --- Below are some code segments, each from a relevant file....
diff --git a/pip/commands/show.py b/pip/commands/show.py --- a/pip/commands/show.py +++ b/pip/commands/show.py @@ -85,6 +85,14 @@ entry_points = dist.get_metadata_lines('entry_points.txt') package['entry_points'] = entry_points + installer = None + if dist.has_metadata('INSTALL...
{"golden_diff": "diff --git a/pip/commands/show.py b/pip/commands/show.py\n--- a/pip/commands/show.py\n+++ b/pip/commands/show.py\n@@ -85,6 +85,14 @@\n entry_points = dist.get_metadata_lines('entry_points.txt')\n package['entry_points'] = entry_points\n \n+ installer = None\n+ if d...
1,783
285
gh_patches_debug_27488
rasdani/github-patches
git_diff
coala__coala-2732
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- WIP: JuliaRequirement: Add installation methods --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `coalib/bea...
diff --git a/coalib/bears/requirements/JuliaRequirement.py b/coalib/bears/requirements/JuliaRequirement.py --- a/coalib/bears/requirements/JuliaRequirement.py +++ b/coalib/bears/requirements/JuliaRequirement.py @@ -1,4 +1,9 @@ +import shlex + from coalib.bears.requirements.PackageRequirement import PackageRequirement ...
{"golden_diff": "diff --git a/coalib/bears/requirements/JuliaRequirement.py b/coalib/bears/requirements/JuliaRequirement.py\n--- a/coalib/bears/requirements/JuliaRequirement.py\n+++ b/coalib/bears/requirements/JuliaRequirement.py\n@@ -1,4 +1,9 @@\n+import shlex\n+\n from coalib.bears.requirements.PackageRequirement imp...
506
446
gh_patches_debug_8769
rasdani/github-patches
git_diff
translate__translate-3429
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Multistring doesnt work as a python2 string Previously you were able to so ~~`str(multistring("foo"))`~~ but it seems this no longer works. EDIT: apologies that was a bad example it should have read somethin...
diff --git a/translate/misc/multistring.py b/translate/misc/multistring.py --- a/translate/misc/multistring.py +++ b/translate/misc/multistring.py @@ -75,6 +75,11 @@ _repr = "multistring([" + u",".join(self.strings) + "])" return _repr.encode('utf-8') if six.PY2 else _repr + def __str__(self): + ...
{"golden_diff": "diff --git a/translate/misc/multistring.py b/translate/misc/multistring.py\n--- a/translate/misc/multistring.py\n+++ b/translate/misc/multistring.py\n@@ -75,6 +75,11 @@\n _repr = \"multistring([\" + u\",\".join(self.strings) + \"])\"\n return _repr.encode('utf-8') if six.PY2 else _repr\...
1,314
167
gh_patches_debug_15897
rasdani/github-patches
git_diff
cookiecutter__cookiecutter-563
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Improve help access and prompts from the CLI A new user might enter any of the following and expect to be guided to the Help information about using the CLI: - `cookiecutter` - `cookiecutter -h` - `cookiecutt...
diff --git a/cookiecutter/cli.py b/cookiecutter/cli.py --- a/cookiecutter/cli.py +++ b/cookiecutter/cli.py @@ -30,7 +30,7 @@ return message.format(location, python_version) -@click.command() +@click.command(context_settings=dict(help_option_names=[u'-h', u'--help'])) @click.version_option(__version__, u'-V', ...
{"golden_diff": "diff --git a/cookiecutter/cli.py b/cookiecutter/cli.py\n--- a/cookiecutter/cli.py\n+++ b/cookiecutter/cli.py\n@@ -30,7 +30,7 @@\n return message.format(location, python_version)\n \n \n-@click.command()\n+@click.command(context_settings=dict(help_option_names=[u'-h', u'--help']))\n @click.version_o...
1,187
214
gh_patches_debug_9774
rasdani/github-patches
git_diff
aws-cloudformation__cfn-lint-1214
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- NoEcho password warning on a Lambda Function named AccountPassword *cfn-lint version: 0.25.1* *Description of issue.* I'm getting this warning: ``` W2501 Inappropriate map found for password on Reso...
diff --git a/src/cfnlint/rules/resources/properties/Password.py b/src/cfnlint/rules/resources/properties/Password.py --- a/src/cfnlint/rules/resources/properties/Password.py +++ b/src/cfnlint/rules/resources/properties/Password.py @@ -29,7 +29,11 @@ for password_property in password_properties: # ...
{"golden_diff": "diff --git a/src/cfnlint/rules/resources/properties/Password.py b/src/cfnlint/rules/resources/properties/Password.py\n--- a/src/cfnlint/rules/resources/properties/Password.py\n+++ b/src/cfnlint/rules/resources/properties/Password.py\n@@ -29,7 +29,11 @@\n for password_property in password_proper...
1,282
177
gh_patches_debug_20732
rasdani/github-patches
git_diff
ocf__ocfweb-124
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Stop emailing us when there's a paper jam ``` A problem was encountered and reported via ocflib: An exception occured in an ocfweb periodic function: Traceback (most recent call last): File "/usr/share/py...
diff --git a/ocfweb/stats/summary.py b/ocfweb/stats/summary.py --- a/ocfweb/stats/summary.py +++ b/ocfweb/stats/summary.py @@ -1,3 +1,4 @@ +import logging from datetime import date from datetime import datetime from operator import attrgetter @@ -19,6 +20,9 @@ from ocfweb.stats.daily_graph import get_open_close ...
{"golden_diff": "diff --git a/ocfweb/stats/summary.py b/ocfweb/stats/summary.py\n--- a/ocfweb/stats/summary.py\n+++ b/ocfweb/stats/summary.py\n@@ -1,3 +1,4 @@\n+import logging\n from datetime import date\n from datetime import datetime\n from operator import attrgetter\n@@ -19,6 +20,9 @@\n from ocfweb.stats.daily_graph...
1,847
271
gh_patches_debug_29381
rasdani/github-patches
git_diff
opensearch-project__opensearch-build-193
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Bundle system - copy opensearch-tar-install script into bundle The [opensearch-tar-install](https://github.com/opensearch-project/opensearch-build/blob/main/release/tar/linux/opensearch-tar-install.sh) script...
diff --git a/bundle-workflow/python/assemble.py b/bundle-workflow/python/assemble.py --- a/bundle-workflow/python/assemble.py +++ b/bundle-workflow/python/assemble.py @@ -6,6 +6,7 @@ import os import tempfile import argparse +import shutil from assemble_workflow.bundle import Bundle from assemble_workflow.bundle_r...
{"golden_diff": "diff --git a/bundle-workflow/python/assemble.py b/bundle-workflow/python/assemble.py\n--- a/bundle-workflow/python/assemble.py\n+++ b/bundle-workflow/python/assemble.py\n@@ -6,6 +6,7 @@\n import os\n import tempfile\n import argparse\n+import shutil\n from assemble_workflow.bundle import Bundle\n from ...
722
339
gh_patches_debug_2525
rasdani/github-patches
git_diff
kornia__kornia-679
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Enable typing support ## 🚀 Feature Enable typing support for `kornia` so other packages can benefit from the type hints. ## Motivation Currently `kornia` only uses the type hints to check for intern...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -122,6 +122,10 @@ # Package info packages=find_packages(exclude=('docs', 'test', 'examples',)), + package_data={ + "kornia": ["py.typed"], + }, + zip_safe=True, install_requires=requirements,...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -122,6 +122,10 @@\n # Package info\n packages=find_packages(exclude=('docs', 'test', 'examples',)),\n \n+ package_data={\n+ \"kornia\": [\"py.typed\"],\n+ },\n+\n zip_safe=True,\n ...
1,789
92
gh_patches_debug_5960
rasdani/github-patches
git_diff
aws-cloudformation__cfn-lint-402
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- ${aws:username} now fails *cfn-lint version: 0.8 E1029 Found an embedded parameter outside of an "Fn::Sub" at Resources/ForceMFAPolicy/Properties/PolicyDocument/Statement/3/Resource/0/arn:aws:iam::*:mfa/${...
diff --git a/src/cfnlint/rules/functions/SubNeeded.py b/src/cfnlint/rules/functions/SubNeeded.py --- a/src/cfnlint/rules/functions/SubNeeded.py +++ b/src/cfnlint/rules/functions/SubNeeded.py @@ -27,7 +27,7 @@ tags = ['functions', 'sub'] # Free-form text properties to exclude from this rule - excludes = [...
{"golden_diff": "diff --git a/src/cfnlint/rules/functions/SubNeeded.py b/src/cfnlint/rules/functions/SubNeeded.py\n--- a/src/cfnlint/rules/functions/SubNeeded.py\n+++ b/src/cfnlint/rules/functions/SubNeeded.py\n@@ -27,7 +27,7 @@\n tags = ['functions', 'sub']\n \n # Free-form text properties to exclude from this...
1,445
139
gh_patches_debug_15881
rasdani/github-patches
git_diff
svthalia__concrexit-2496
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add album to event foreign key to api Feature request (I'm making this via the Github app so the template doesn't work) See title, Julian wants this :) --- END ISSUE --- Below are some code segments, eac...
diff --git a/website/photos/api/v2/serializers/album.py b/website/photos/api/v2/serializers/album.py --- a/website/photos/api/v2/serializers/album.py +++ b/website/photos/api/v2/serializers/album.py @@ -15,7 +15,15 @@ """Meta class for the serializer.""" model = Album - fields = ("slug", "tit...
{"golden_diff": "diff --git a/website/photos/api/v2/serializers/album.py b/website/photos/api/v2/serializers/album.py\n--- a/website/photos/api/v2/serializers/album.py\n+++ b/website/photos/api/v2/serializers/album.py\n@@ -15,7 +15,15 @@\n \"\"\"Meta class for the serializer.\"\"\"\n \n model = Album\n-...
574
240
gh_patches_debug_35760
rasdani/github-patches
git_diff
sql-machine-learning__elasticdl-1406
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [PS-1] RPC service `push_gradient` async-SGD implementation Async apply gradients to non-embedding parameters. Updating embedding parameters will be supported in issue #1306 . --- END ISSUE --- Below are so...
diff --git a/elasticdl/python/ps/parameters.py b/elasticdl/python/ps/parameters.py --- a/elasticdl/python/ps/parameters.py +++ b/elasticdl/python/ps/parameters.py @@ -23,6 +23,9 @@ self.non_embedding_params = {} self.embedding_params = {} + def get_non_embedding_param(self, name, default_value=No...
{"golden_diff": "diff --git a/elasticdl/python/ps/parameters.py b/elasticdl/python/ps/parameters.py\n--- a/elasticdl/python/ps/parameters.py\n+++ b/elasticdl/python/ps/parameters.py\n@@ -23,6 +23,9 @@\n self.non_embedding_params = {}\n self.embedding_params = {}\n \n+ def get_non_embedding_param(self...
1,532
567
gh_patches_debug_6233
rasdani/github-patches
git_diff
WeblateOrg__weblate-6217
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Auth provider title and image override do not work for auth providers with '-' in it **Describe the issue** The new feature to override the name and image for an auth provider (introduced in 159ae591e91e7c...
diff --git a/weblate/accounts/templatetags/authnames.py b/weblate/accounts/templatetags/authnames.py --- a/weblate/accounts/templatetags/authnames.py +++ b/weblate/accounts/templatetags/authnames.py @@ -72,8 +72,8 @@ # Settings override settings_params = { - "name": f"SOCIAL_AUTH_{auth.upper()}_TITLE...
{"golden_diff": "diff --git a/weblate/accounts/templatetags/authnames.py b/weblate/accounts/templatetags/authnames.py\n--- a/weblate/accounts/templatetags/authnames.py\n+++ b/weblate/accounts/templatetags/authnames.py\n@@ -72,8 +72,8 @@\n \n # Settings override\n settings_params = {\n- \"name\": f\"SOCIA...
1,719
183
gh_patches_debug_33535
rasdani/github-patches
git_diff
OCHA-DAP__hdx-ckan-479
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Dataset edit: The country functionality should not be in optional and should work as it does on the Dataset Creation page --- END ISSUE --- Below are some code segments, each from a relevant file. One or m...
diff --git a/ckanext-hdx_theme/ckanext/hdx_theme/licenses.py b/ckanext-hdx_theme/ckanext/hdx_theme/licenses.py --- a/ckanext-hdx_theme/ckanext/hdx_theme/licenses.py +++ b/ckanext-hdx_theme/ckanext/hdx_theme/licenses.py @@ -19,16 +19,16 @@ def title(self): return _("Creative Commons Attribution for Intergo...
{"golden_diff": "diff --git a/ckanext-hdx_theme/ckanext/hdx_theme/licenses.py b/ckanext-hdx_theme/ckanext/hdx_theme/licenses.py\n--- a/ckanext-hdx_theme/ckanext/hdx_theme/licenses.py\n+++ b/ckanext-hdx_theme/ckanext/hdx_theme/licenses.py\n@@ -19,16 +19,16 @@\n def title(self):\n return _(\"Creative Commons ...
1,920
493
gh_patches_debug_18558
rasdani/github-patches
git_diff
litestar-org__litestar-2592
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Bug: Caching route handlers with the same path but different methods leads to overwriting of cache ### Description Caching route handlers with the same path (`/` in this example) but different methods (`GE...
diff --git a/litestar/config/response_cache.py b/litestar/config/response_cache.py --- a/litestar/config/response_cache.py +++ b/litestar/config/response_cache.py @@ -28,7 +28,8 @@ def default_cache_key_builder(request: Request[Any, Any, Any]) -> str: - """Given a request object, returns a cache key by combinin...
{"golden_diff": "diff --git a/litestar/config/response_cache.py b/litestar/config/response_cache.py\n--- a/litestar/config/response_cache.py\n+++ b/litestar/config/response_cache.py\n@@ -28,7 +28,8 @@\n \n \n def default_cache_key_builder(request: Request[Any, Any, Any]) -> str:\n- \"\"\"Given a request object, retu...
1,849
231
gh_patches_debug_696
rasdani/github-patches
git_diff
boto__botocore-658
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Pin jmespatch dependency version Can this library pin its jmespath dependency to a specific version? Currently, it depends on the development branch of the jmespath GitHub repo - which is not stable nor dete...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ from setuptools import setup, find_packages -requires = ['jmespath==0.7.1', +requires = ['jmespath>=0.7.1,<1.0.0', 'python-dateutil>=2.1,<3.0.0', 'docutils>=0.10']
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -5,7 +5,7 @@\n from setuptools import setup, find_packages\n \n \n-requires = ['jmespath==0.7.1',\n+requires = ['jmespath>=0.7.1,<1.0.0',\n 'python-dateutil>=2.1,<3.0.0',\n 'docutils>=0.10']\n", "issue": "Pin j...
973
99
gh_patches_debug_21576
rasdani/github-patches
git_diff
shuup__shuup-1707
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Admin: Product delete returns 404 --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `shuup/admin/modules/prod...
diff --git a/shuup/admin/modules/products/views/delete.py b/shuup/admin/modules/products/views/delete.py --- a/shuup/admin/modules/products/views/delete.py +++ b/shuup/admin/modules/products/views/delete.py @@ -15,18 +15,19 @@ from django.views.generic import DetailView from shuup.admin.utils.urls import get_model_...
{"golden_diff": "diff --git a/shuup/admin/modules/products/views/delete.py b/shuup/admin/modules/products/views/delete.py\n--- a/shuup/admin/modules/products/views/delete.py\n+++ b/shuup/admin/modules/products/views/delete.py\n@@ -15,18 +15,19 @@\n from django.views.generic import DetailView\n \n from shuup.admin.utils...
589
257
gh_patches_debug_9949
rasdani/github-patches
git_diff
inducer__relate-607
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Update pysaml2 to 4.6.0 (or higher) to fix CVE-2017-1000246 * https://nvd.nist.gov/vuln/detail/CVE-2017-1000246 * https://github.com/IdentityPython/pysaml2/issues/417 Currently blocked on https://github.c...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -4,10 +4,11 @@ from setuptools import setup, find_packages # This script (for now) is only intended to install the 'relate' content helper -# script. relate-validate. Its use is not needed for (and unrelated to) -# deploying RELATE as a web service....
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -4,10 +4,11 @@\n from setuptools import setup, find_packages\n \n # This script (for now) is only intended to install the 'relate' content helper\n-# script. relate-validate. Its use is not needed for (and unrelated to)\n-# deploying...
745
172
gh_patches_debug_34167
rasdani/github-patches
git_diff
PyGithub__PyGithub-1810
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Attributes "maintain" and "triage" missing in class "Permissions" Current Github API returns a permission values for `admin`, `push`, `maintain`, `triage` and `pull` (see <https://docs.github.com/en/free-pro-...
diff --git a/github/Permissions.py b/github/Permissions.py --- a/github/Permissions.py +++ b/github/Permissions.py @@ -40,8 +40,10 @@ return self.get__repr__( { "admin": self._admin.value, + "maintain": self._maintain.value, "pull": self._pull.value...
{"golden_diff": "diff --git a/github/Permissions.py b/github/Permissions.py\n--- a/github/Permissions.py\n+++ b/github/Permissions.py\n@@ -40,8 +40,10 @@\n return self.get__repr__(\n {\n \"admin\": self._admin.value,\n+ \"maintain\": self._maintain.value,\n ...
1,270
461
gh_patches_debug_7969
rasdani/github-patches
git_diff
urllib3__urllib3-3034
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add OpenGraph information to our documentation Would be good to fill in some open graph fields for our documentation so when we link to things they show up with rich output / images rather than as a standard ...
diff --git a/docs/conf.py b/docs/conf.py --- a/docs/conf.py +++ b/docs/conf.py @@ -35,8 +35,16 @@ "sphinx_copybutton", "sphinx.ext.doctest", "sphinx.ext.intersphinx", + "sphinxext.opengraph", ] +# Open Graph metadata +ogp_title = "urllib3 documentation" +ogp_site_url = "https://urllib3.readthedocs....
{"golden_diff": "diff --git a/docs/conf.py b/docs/conf.py\n--- a/docs/conf.py\n+++ b/docs/conf.py\n@@ -35,8 +35,16 @@\n \"sphinx_copybutton\",\n \"sphinx.ext.doctest\",\n \"sphinx.ext.intersphinx\",\n+ \"sphinxext.opengraph\",\n ]\n \n+# Open Graph metadata\n+ogp_title = \"urllib3 documentation\"\n+ogp_s...
1,513
178
gh_patches_debug_17514
rasdani/github-patches
git_diff
pydantic__pydantic-7883
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- @validate_call on instance method of class with `__slots__` raises "AttributeError: object attribute is read-only" ### Initial Checks - [X] I confirm that I'm using Pydantic V2 ### Description When the @va...
diff --git a/pydantic/_internal/_validate_call.py b/pydantic/_internal/_validate_call.py --- a/pydantic/_internal/_validate_call.py +++ b/pydantic/_internal/_validate_call.py @@ -108,6 +108,11 @@ bound_function = self.raw_function.__get__(obj, objtype) result = self.__class__(bound_function, self._c...
{"golden_diff": "diff --git a/pydantic/_internal/_validate_call.py b/pydantic/_internal/_validate_call.py\n--- a/pydantic/_internal/_validate_call.py\n+++ b/pydantic/_internal/_validate_call.py\n@@ -108,6 +108,11 @@\n \n bound_function = self.raw_function.__get__(obj, objtype)\n result = self.__class__(...
2,015
231
gh_patches_debug_12165
rasdani/github-patches
git_diff
ytdl-org__youtube-dl-4599
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- cannot download Daum tvpot url cannot download video from Daum tvpot which is Korean internet portal service http://tvpot.daum.net/v/vfb45BtrWBWWHKEkOwXEghB --- END ISSUE --- Below are some code segments, ...
diff --git a/youtube_dl/extractor/daum.py b/youtube_dl/extractor/daum.py --- a/youtube_dl/extractor/daum.py +++ b/youtube_dl/extractor/daum.py @@ -38,7 +38,7 @@ canonical_url = 'http://tvpot.daum.net/v/%s' % video_id webpage = self._download_webpage(canonical_url, video_id) full_id = self._se...
{"golden_diff": "diff --git a/youtube_dl/extractor/daum.py b/youtube_dl/extractor/daum.py\n--- a/youtube_dl/extractor/daum.py\n+++ b/youtube_dl/extractor/daum.py\n@@ -38,7 +38,7 @@\n canonical_url = 'http://tvpot.daum.net/v/%s' % video_id\n webpage = self._download_webpage(canonical_url, video_id)\n ...
1,217
209
gh_patches_debug_28355
rasdani/github-patches
git_diff
pymeasure__pymeasure-982
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Find USB device from hardware information The COM port of virtual Com ports via USB may change from time to time. I propose a simple helper method, which retrieves the COM port of a USB virtual port accordin...
diff --git a/pymeasure/instruments/__init__.py b/pymeasure/instruments/__init__.py --- a/pymeasure/instruments/__init__.py +++ b/pymeasure/instruments/__init__.py @@ -25,7 +25,7 @@ from ..errors import RangeError, RangeException from .channel import Channel from .instrument import Instrument -from .resources import ...
{"golden_diff": "diff --git a/pymeasure/instruments/__init__.py b/pymeasure/instruments/__init__.py\n--- a/pymeasure/instruments/__init__.py\n+++ b/pymeasure/instruments/__init__.py\n@@ -25,7 +25,7 @@\n from ..errors import RangeError, RangeException\n from .channel import Channel\n from .instrument import Instrument\n...
1,944
504
gh_patches_debug_7980
rasdani/github-patches
git_diff
opensearch-project__opensearch-build-508
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add bwctest.sh in OpenSearch and one plugin - [x] OpenSearch Core - https://github.com/opensearch-project/OpenSearch/pull/1150 - [x] Anomaly Detection Plugin - https://github.com/opensearch-project/anomaly-d...
diff --git a/bundle-workflow/src/paths/script_finder.py b/bundle-workflow/src/paths/script_finder.py --- a/bundle-workflow/src/paths/script_finder.py +++ b/bundle-workflow/src/paths/script_finder.py @@ -85,3 +85,16 @@ ] return cls.__find_script("install.sh", paths) + + @classmethod + def find_...
{"golden_diff": "diff --git a/bundle-workflow/src/paths/script_finder.py b/bundle-workflow/src/paths/script_finder.py\n--- a/bundle-workflow/src/paths/script_finder.py\n+++ b/bundle-workflow/src/paths/script_finder.py\n@@ -85,3 +85,16 @@\n ]\n \n return cls.__find_script(\"install.sh\", paths)\n+\n+ ...
1,200
206
gh_patches_debug_645
rasdani/github-patches
git_diff
zulip__zulip-12366
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Scrollbar drag can result in unintended click actions Split off from #11792: > * on the settings pages, if you click on the scrollbar, drag it down, and then release your click when the mouse is outside th...
diff --git a/version.py b/version.py --- a/version.py +++ b/version.py @@ -11,4 +11,4 @@ # Typically, adding a dependency only requires a minor version bump, and # removing a dependency requires a major version bump. -PROVISION_VERSION = '32.0' +PROVISION_VERSION = '32.1'
{"golden_diff": "diff --git a/version.py b/version.py\n--- a/version.py\n+++ b/version.py\n@@ -11,4 +11,4 @@\n # Typically, adding a dependency only requires a minor version bump, and\n # removing a dependency requires a major version bump.\n \n-PROVISION_VERSION = '32.0'\n+PROVISION_VERSION = '32.1'\n", "issue": "Scro...
584
80
gh_patches_debug_13680
rasdani/github-patches
git_diff
sanic-org__sanic-2919
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- (websockets 12.0) DeprecationWarning: websockets.connection was renamed to websockets.protocol and Connection was renamed to Protocol ### Is there an existing issue for this? - [X] I have searched the existi...
diff --git a/sanic/server/protocols/websocket_protocol.py b/sanic/server/protocols/websocket_protocol.py --- a/sanic/server/protocols/websocket_protocol.py +++ b/sanic/server/protocols/websocket_protocol.py @@ -1,12 +1,12 @@ from typing import Optional, Sequence, cast -try: # websockets < 11.0 - from websocket...
{"golden_diff": "diff --git a/sanic/server/protocols/websocket_protocol.py b/sanic/server/protocols/websocket_protocol.py\n--- a/sanic/server/protocols/websocket_protocol.py\n+++ b/sanic/server/protocols/websocket_protocol.py\n@@ -1,12 +1,12 @@\n from typing import Optional, Sequence, cast\n \n \n-try: # websockets < ...
2,029
218
gh_patches_debug_10296
rasdani/github-patches
git_diff
getredash__redash-3634
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Queries search is not working on release/7.0.x ### Issue Summary I try building docker image with the redash dockerfile and start by docker-compose. But queries search is not working ### Steps to Reprod...
diff --git a/redash/cli/database.py b/redash/cli/database.py --- a/redash/cli/database.py +++ b/redash/cli/database.py @@ -1,5 +1,6 @@ import time +import sqlalchemy from flask.cli import AppGroup from flask_migrate import stamp from sqlalchemy.exc import DatabaseError @@ -25,6 +26,8 @@ from redash.models im...
{"golden_diff": "diff --git a/redash/cli/database.py b/redash/cli/database.py\n--- a/redash/cli/database.py\n+++ b/redash/cli/database.py\n@@ -1,5 +1,6 @@\n import time\n \n+import sqlalchemy\n from flask.cli import AppGroup\n from flask_migrate import stamp\n from sqlalchemy.exc import DatabaseError\n@@ -25,6 +26,8 @@...
749
142
gh_patches_debug_27768
rasdani/github-patches
git_diff
svthalia__concrexit-2021
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Registration message in calendar wrong ### Describe the bug In the calendar, when you have to register for an event, it says in the block; You can register on ....... However, this seems to be the date of w...
diff --git a/website/events/api/calendarjs/serializers.py b/website/events/api/calendarjs/serializers.py --- a/website/events/api/calendarjs/serializers.py +++ b/website/events/api/calendarjs/serializers.py @@ -50,7 +50,7 @@ return _("You are registered for this event") # Optional registration...
{"golden_diff": "diff --git a/website/events/api/calendarjs/serializers.py b/website/events/api/calendarjs/serializers.py\n--- a/website/events/api/calendarjs/serializers.py\n+++ b/website/events/api/calendarjs/serializers.py\n@@ -50,7 +50,7 @@\n return _(\"You are registered for this event\")\n ...
1,358
306
gh_patches_debug_43117
rasdani/github-patches
git_diff
spyder-ide__spyder-7902
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- 4.0beta1 is offered as an update when using a development version and a virtualenv We need to avoid showing beta versions when checking for updates --- END ISSUE --- Below are some code segments, each from ...
diff --git a/spyder/workers/updates.py b/spyder/workers/updates.py --- a/spyder/workers/updates.py +++ b/spyder/workers/updates.py @@ -7,6 +7,7 @@ # Standard library imports import json import os +import re import ssl import sys @@ -37,34 +38,41 @@ """ sig_ready = Signal() - def __init__(self, par...
{"golden_diff": "diff --git a/spyder/workers/updates.py b/spyder/workers/updates.py\n--- a/spyder/workers/updates.py\n+++ b/spyder/workers/updates.py\n@@ -7,6 +7,7 @@\n # Standard library imports\n import json\n import os\n+import re\n import ssl\n import sys\n \n@@ -37,34 +38,41 @@\n \"\"\"\n sig_ready = Signa...
1,582
868
gh_patches_debug_28096
rasdani/github-patches
git_diff
open-mmlab__mmpretrain-149
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- bug report The attribute **meta_keys** is lost in Collect. ```python @PIPELINES.register_module() class Collect(object): """ Collect data from the loader relevant to the specific task. This ...
diff --git a/mmcls/datasets/pipelines/formating.py b/mmcls/datasets/pipelines/formating.py --- a/mmcls/datasets/pipelines/formating.py +++ b/mmcls/datasets/pipelines/formating.py @@ -3,6 +3,7 @@ import mmcv import numpy as np import torch +from mmcv.parallel import DataContainer as DC from PIL import Image from ...
{"golden_diff": "diff --git a/mmcls/datasets/pipelines/formating.py b/mmcls/datasets/pipelines/formating.py\n--- a/mmcls/datasets/pipelines/formating.py\n+++ b/mmcls/datasets/pipelines/formating.py\n@@ -3,6 +3,7 @@\n import mmcv\n import numpy as np\n import torch\n+from mmcv.parallel import DataContainer as DC\n from ...
1,809
421
gh_patches_debug_28586
rasdani/github-patches
git_diff
uccser__cs-unplugged-764
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Provide clearer entry points for new visitors on website Landing page interface redesign Current: https://cs-unplugged-dev.appspot.com/en/ Proposed new design: ![a thing](https://user-images.githubuserc...
diff --git a/csunplugged/general/urls.py b/csunplugged/general/urls.py --- a/csunplugged/general/urls.py +++ b/csunplugged/general/urls.py @@ -15,11 +15,21 @@ views.GeneralAboutView.as_view(), name="about" ), + url( + r"^what-is-computer-science/$", + views.WhatIsCSView.as_view()...
{"golden_diff": "diff --git a/csunplugged/general/urls.py b/csunplugged/general/urls.py\n--- a/csunplugged/general/urls.py\n+++ b/csunplugged/general/urls.py\n@@ -15,11 +15,21 @@\n views.GeneralAboutView.as_view(),\n name=\"about\"\n ),\n+ url(\n+ r\"^what-is-computer-science/$\",\n+ ...
1,027
437
gh_patches_debug_16392
rasdani/github-patches
git_diff
cal-itp__benefits-864
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Improve checks in `oauth` `authorize` view We ran into a case while deploying #862 where our `auth_provider` model is configured with a `scope`, but the response from the Auth server doesn't actually contain ...
diff --git a/benefits/oauth/views.py b/benefits/oauth/views.py --- a/benefits/oauth/views.py +++ b/benefits/oauth/views.py @@ -66,10 +66,15 @@ if verifier_claim: userinfo = token.get("userinfo") - # the claim comes back in userinfo like { "claim": "True" | "False" } - claim_flag = (userinf...
{"golden_diff": "diff --git a/benefits/oauth/views.py b/benefits/oauth/views.py\n--- a/benefits/oauth/views.py\n+++ b/benefits/oauth/views.py\n@@ -66,10 +66,15 @@\n \n if verifier_claim:\n userinfo = token.get(\"userinfo\")\n- # the claim comes back in userinfo like { \"claim\": \"True\" | \"False\" ...
1,522
259
gh_patches_debug_32597
rasdani/github-patches
git_diff
RedHatInsights__insights-core-2401
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add version command/flag to the Insights CLI Add `version` command and `--version` flag/arg to print version info from `insights.get_nvr()`. --- END ISSUE --- Below are some code segments, each from a rel...
diff --git a/insights/command_parser.py b/insights/command_parser.py --- a/insights/command_parser.py +++ b/insights/command_parser.py @@ -19,6 +19,7 @@ info View info and docs for Insights Core components. ocpshell Interactive evaluation of archives, directories, or individual yaml files. run ...
{"golden_diff": "diff --git a/insights/command_parser.py b/insights/command_parser.py\n--- a/insights/command_parser.py\n+++ b/insights/command_parser.py\n@@ -19,6 +19,7 @@\n info View info and docs for Insights Core components.\n ocpshell Interactive evaluation of archives, directories, or individua...
1,161
392
gh_patches_debug_865
rasdani/github-patches
git_diff
kubeflow__pipelines-1666
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- `pip install kfp` does not install CLI **What happened:** ``` $ virtualenv .venv ... $ pip install kfp==0.1.23 ... $ kfp Traceback (most recent call last): File "/private/tmp/.venv/bin/kfp", line ...
diff --git a/sdk/python/setup.py b/sdk/python/setup.py --- a/sdk/python/setup.py +++ b/sdk/python/setup.py @@ -45,6 +45,7 @@ install_requires=REQUIRES, packages=[ 'kfp', + 'kfp.cli', 'kfp.compiler', 'kfp.components', 'kfp.components.structures',
{"golden_diff": "diff --git a/sdk/python/setup.py b/sdk/python/setup.py\n--- a/sdk/python/setup.py\n+++ b/sdk/python/setup.py\n@@ -45,6 +45,7 @@\n install_requires=REQUIRES,\n packages=[\n 'kfp',\n+ 'kfp.cli',\n 'kfp.compiler',\n 'kfp.components',\n 'kfp.components.structu...
1,474
82
gh_patches_debug_48074
rasdani/github-patches
git_diff
OpenMined__PySyft-1792
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Modify documentation generation code to use napoleon Napoleon https://www.sphinx-doc.org/en/master/usage/extensions/napoleon.html allows for us to use google style documentation with sphinx. This issue enable...
diff --git a/docs/conf.py b/docs/conf.py --- a/docs/conf.py +++ b/docs/conf.py @@ -35,12 +35,13 @@ # ones. extensions = [ "sphinx.ext.autodoc", - "sphinx.ext.todo", + "sphinx.ext.autosummary", "sphinx.ext.coverage", + "sphinx.ext.githubpages", "sphinx.ext.mathjax", + "sphinx.ext.napoleon", ...
{"golden_diff": "diff --git a/docs/conf.py b/docs/conf.py\n--- a/docs/conf.py\n+++ b/docs/conf.py\n@@ -35,12 +35,13 @@\n # ones.\n extensions = [\n \"sphinx.ext.autodoc\",\n- \"sphinx.ext.todo\",\n+ \"sphinx.ext.autosummary\",\n \"sphinx.ext.coverage\",\n+ \"sphinx.ext.githubpages\",\n \"sphinx.ext...
1,952
159
gh_patches_debug_3094
rasdani/github-patches
git_diff
streamlit__streamlit-2611
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- st.expander cuts off sliders # Summary Expander in sidebar cuts off sliders and potentially other stuff # Steps to reproduce Run the following code ``` import streamlit as st sidebar_expander = st...
diff --git a/e2e/scripts/st_expander.py b/e2e/scripts/st_expander.py --- a/e2e/scripts/st_expander.py +++ b/e2e/scripts/st_expander.py @@ -19,6 +19,8 @@ expander = st.beta_expander("Collapse me!", expanded=True) expander.write("I can collapse") +expander.slider("I don't get cut off") +expander.button("I'm also not ...
{"golden_diff": "diff --git a/e2e/scripts/st_expander.py b/e2e/scripts/st_expander.py\n--- a/e2e/scripts/st_expander.py\n+++ b/e2e/scripts/st_expander.py\n@@ -19,6 +19,8 @@\n \n expander = st.beta_expander(\"Collapse me!\", expanded=True)\n expander.write(\"I can collapse\")\n+expander.slider(\"I don't get cut off\")\n...
821
125
gh_patches_debug_57166
rasdani/github-patches
git_diff
unionai-oss__pandera-69
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- update readme on release of next version suggest replacing ```**Supports:** python 2.7, 3.5, 3.6``` with: ```[![PyPI pyversions](https://img.shields.io/pypi/pyversions/pandera.svg)](https://pypi.pyth...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -35,6 +35,7 @@ 'Operating System :: OS Independent', 'Intended Audience :: Science/Research', 'Programming Language :: Python', + 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', ...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -35,6 +35,7 @@\n 'Operating System :: OS Independent',\n 'Intended Audience :: Science/Research',\n 'Programming Language :: Python',\n+ 'Programming Language :: Python :: 2.7',\n 'Programming La...
844
104
gh_patches_debug_61695
rasdani/github-patches
git_diff
mdn__kuma-7256
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- "Report a content problem" gets wrong title **Summary** You end up on https://github.com/mdn/sprints/issues/new?template=issue-template.md&projects=mdn/sprints/2&labels=user-report&title=%2Fen-US That pre...
diff --git a/kuma/wiki/templatetags/ssr.py b/kuma/wiki/templatetags/ssr.py --- a/kuma/wiki/templatetags/ssr.py +++ b/kuma/wiki/templatetags/ssr.py @@ -41,7 +41,6 @@ "url": url, "documentData": document_data, } - if ssr: return server_side_render(component_name, data) else:
{"golden_diff": "diff --git a/kuma/wiki/templatetags/ssr.py b/kuma/wiki/templatetags/ssr.py\n--- a/kuma/wiki/templatetags/ssr.py\n+++ b/kuma/wiki/templatetags/ssr.py\n@@ -41,7 +41,6 @@\n \"url\": url,\n \"documentData\": document_data,\n }\n-\n if ssr:\n return server_side_render(compone...
1,979
103
gh_patches_debug_3801
rasdani/github-patches
git_diff
open-telemetry__opentelemetry-python-167
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Host docs, build on release Decide where to host generated docs, configure CI to generate (and possibly upload) new docs on each release. See #6 for CI bootstrapping. --- END ISSUE --- Below are some cod...
diff --git a/docs/conf.py b/docs/conf.py --- a/docs/conf.py +++ b/docs/conf.py @@ -42,6 +42,9 @@ "sphinx.ext.viewcode", # Link to other sphinx docs "sphinx.ext.intersphinx", + # Add a .nojekyll file to the generated HTML docs + # https://help.github.com/en/articles/files-that-start-with-an-undersco...
{"golden_diff": "diff --git a/docs/conf.py b/docs/conf.py\n--- a/docs/conf.py\n+++ b/docs/conf.py\n@@ -42,6 +42,9 @@\n \"sphinx.ext.viewcode\",\n # Link to other sphinx docs\n \"sphinx.ext.intersphinx\",\n+ # Add a .nojekyll file to the generated HTML docs\n+ # https://help.github.com/en/articles/file...
1,057
129
gh_patches_debug_641
rasdani/github-patches
git_diff
pex-tool__pex-2219
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Release 2.1.143 On the docket: + [x] pex fails to build pycryptodome due to filename too long #2087 --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files ma...
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.142" +__version__ = "2.1.143"
{"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.142\"\n+__version__ = \"2.1.143\"\n",...
348
98
gh_patches_debug_21265
rasdani/github-patches
git_diff
scikit-hep__pyhf-436
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Test Deploy feature is broken # Description See https://github.com/FaradayRF/faradayio/issues/35 for a related issue - I think. Failing job on master here: https://travis-ci.org/diana-hep/pyhf/builds/51767...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -56,6 +56,29 @@ } extras_require['complete'] = sorted(set(sum(extras_require.values(), []))) + +def _is_test_pypi(): + """ + Determine if the Travis CI environment has TESTPYPI_UPLOAD defined and + set to true (c.f. .travis.yml) + + The u...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -56,6 +56,29 @@\n }\n extras_require['complete'] = sorted(set(sum(extras_require.values(), [])))\n \n+\n+def _is_test_pypi():\n+ \"\"\"\n+ Determine if the Travis CI environment has TESTPYPI_UPLOAD defined and\n+ set to true ...
1,452
326
gh_patches_debug_29031
rasdani/github-patches
git_diff
python-telegram-bot__python-telegram-bot-1495
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Forbid setting user and chat data attributes Inevitably users will attempt to do `context.user_data = {'my': 'dict'}` or `context.chat_data = whatever`. This will lead to confusing behaviour. I propose mak...
diff --git a/telegram/ext/callbackcontext.py b/telegram/ext/callbackcontext.py --- a/telegram/ext/callbackcontext.py +++ b/telegram/ext/callbackcontext.py @@ -73,13 +73,31 @@ raise ValueError('CallbackContext should not be used with a non context aware ' 'dispatcher!') ...
{"golden_diff": "diff --git a/telegram/ext/callbackcontext.py b/telegram/ext/callbackcontext.py\n--- a/telegram/ext/callbackcontext.py\n+++ b/telegram/ext/callbackcontext.py\n@@ -73,13 +73,31 @@\n raise ValueError('CallbackContext should not be used with a non context aware '\n ...
2,020
386
gh_patches_debug_30825
rasdani/github-patches
git_diff
mathesar-foundation__mathesar-2484
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Ordering by a non-orderable column (implicitly or explicitly) causes a backend crash ## Bug Brent [writes](https://github.com/centerofci/mathesar/pull/2253#pullrequestreview-1251718380): > At one point,...
diff --git a/db/records/operations/sort.py b/db/records/operations/sort.py --- a/db/records/operations/sort.py +++ b/db/records/operations/sort.py @@ -44,27 +44,37 @@ To be used when we have failed to find any other ordering criteria, since ordering by all columns is inherently inefficient. - Note the fi...
{"golden_diff": "diff --git a/db/records/operations/sort.py b/db/records/operations/sort.py\n--- a/db/records/operations/sort.py\n+++ b/db/records/operations/sort.py\n@@ -44,27 +44,37 @@\n To be used when we have failed to find any other ordering criteria,\n since ordering by all columns is inherently inefficie...
1,791
467
gh_patches_debug_3357
rasdani/github-patches
git_diff
nipy__nipype-1574
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [BUG] Build documentation fails if dipy is not installed --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `n...
diff --git a/nipype/interfaces/dipy/base.py b/nipype/interfaces/dipy/base.py --- a/nipype/interfaces/dipy/base.py +++ b/nipype/interfaces/dipy/base.py @@ -36,7 +36,7 @@ """ def __init__(self, **inputs): if no_dipy(): - IFLOGGER.error('dipy was not found') + IFLOGGER.warn('dipy w...
{"golden_diff": "diff --git a/nipype/interfaces/dipy/base.py b/nipype/interfaces/dipy/base.py\n--- a/nipype/interfaces/dipy/base.py\n+++ b/nipype/interfaces/dipy/base.py\n@@ -36,7 +36,7 @@\n \"\"\"\n def __init__(self, **inputs):\n if no_dipy():\n- IFLOGGER.error('dipy was not found')\n+ ...
1,005
123
gh_patches_debug_60523
rasdani/github-patches
git_diff
streamlit__streamlit-2811
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Sliders should show current value [regression] [Baseweb] # Summary (via @tvst: ) Our sliders right now require you to hover in order to see the selected value. This makes it really hard to understand wh...
diff --git a/e2e/scripts/st_columns.py b/e2e/scripts/st_columns.py --- a/e2e/scripts/st_columns.py +++ b/e2e/scripts/st_columns.py @@ -27,5 +27,5 @@ # Variable-width columns -for c in st.beta_columns((1, 2, 4, 8)): +for c in st.beta_columns((1, 2, 3, 4)): c.image(CAT_IMAGE, use_column_width=True)
{"golden_diff": "diff --git a/e2e/scripts/st_columns.py b/e2e/scripts/st_columns.py\n--- a/e2e/scripts/st_columns.py\n+++ b/e2e/scripts/st_columns.py\n@@ -27,5 +27,5 @@\n \n \n # Variable-width columns\n-for c in st.beta_columns((1, 2, 4, 8)):\n+for c in st.beta_columns((1, 2, 3, 4)):\n c.image(CAT_IMAGE, use_colum...
1,005
107
gh_patches_debug_11279
rasdani/github-patches
git_diff
abey79__vpype-440
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Replace cKDTree by KDTree see note here: https://docs.scipy.org/doc/scipy/reference/generated/scipy.spatial.cKDTree.html#scipy.spatial.cKDTree --- END ISSUE --- Below are some code segments, each from a rel...
diff --git a/vpype/line_index.py b/vpype/line_index.py --- a/vpype/line_index.py +++ b/vpype/line_index.py @@ -4,14 +4,14 @@ from typing import Iterable import numpy as np -from scipy.spatial import cKDTree as KDTree +from scipy.spatial import KDTree # REMINDER: anything added here must be added to docs/api.rst ...
{"golden_diff": "diff --git a/vpype/line_index.py b/vpype/line_index.py\n--- a/vpype/line_index.py\n+++ b/vpype/line_index.py\n@@ -4,14 +4,14 @@\n from typing import Iterable\n \n import numpy as np\n-from scipy.spatial import cKDTree as KDTree\n+from scipy.spatial import KDTree\n \n # REMINDER: anything added here mus...
1,997
168
gh_patches_debug_32004
rasdani/github-patches
git_diff
OCA__bank-payment-18
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- many transactions not regonized After importing a dutch bank statements file from the ING, I got the following screen: ![import_log](https://cloud.githubusercontent.com/assets/890128/3571378/ca510fa0-0b5c-11...
diff --git a/account_banking/res_partner_bank.py b/account_banking/res_partner_bank.py --- a/account_banking/res_partner_bank.py +++ b/account_banking/res_partner_bank.py @@ -44,6 +44,27 @@ '''Flag an arg as term or otherwise''' return isinstance(arg, (list, tuple)) and len(arg) == 3 + ...
{"golden_diff": "diff --git a/account_banking/res_partner_bank.py b/account_banking/res_partner_bank.py\n--- a/account_banking/res_partner_bank.py\n+++ b/account_banking/res_partner_bank.py\n@@ -44,6 +44,27 @@\n '''Flag an arg as term or otherwise'''\n return isinstance(arg, (list, tuple)) and l...
1,504
452
gh_patches_debug_31740
rasdani/github-patches
git_diff
alltheplaces__alltheplaces-2808
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Spider arby is broken During the global build at 2021-05-26-14-42-23, spider **arby** failed with **0 features** and **0 errors**. Here's [the log](https://data.alltheplaces.xyz/runs/2021-05-26-14-42-23/logs...
diff --git a/locations/spiders/arbys.py b/locations/spiders/arbys.py --- a/locations/spiders/arbys.py +++ b/locations/spiders/arbys.py @@ -12,24 +12,31 @@ allowed_domains = ["locations.arbys.com"] download_delay = 0.2 start_urls = ( - 'https://locations.arbys.com/browse/', + 'https://locati...
{"golden_diff": "diff --git a/locations/spiders/arbys.py b/locations/spiders/arbys.py\n--- a/locations/spiders/arbys.py\n+++ b/locations/spiders/arbys.py\n@@ -12,24 +12,31 @@\n allowed_domains = [\"locations.arbys.com\"]\n download_delay = 0.2\n start_urls = (\n- 'https://locations.arbys.com/browse/'...
1,062
446
gh_patches_debug_33993
rasdani/github-patches
git_diff
mozilla__kitsune-3175
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Improve performance of _get_creator_counts util function `kitsune.community.utils._get_creator_counts` until function is DB heavy and takes a lot of time to execute. Evaluate its usefulness and provide a way ...
diff --git a/kitsune/community/utils.py b/kitsune/community/utils.py --- a/kitsune/community/utils.py +++ b/kitsune/community/utils.py @@ -7,8 +7,7 @@ from kitsune.products.models import Product from kitsune.questions.models import Answer -from kitsune.users.models import User -from kitsune.users.templatetags.jinja...
{"golden_diff": "diff --git a/kitsune/community/utils.py b/kitsune/community/utils.py\n--- a/kitsune/community/utils.py\n+++ b/kitsune/community/utils.py\n@@ -7,8 +7,7 @@\n \n from kitsune.products.models import Product\n from kitsune.questions.models import Answer\n-from kitsune.users.models import User\n-from kitsune...
1,881
584
gh_patches_debug_55589
rasdani/github-patches
git_diff
wagtail__wagtail-8800
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- patternlibrary_override_tags breaks all non-development installations #8665 added a `patternlibrary_override_tags` tag library to wagtail.admin, which depends on the django-pattern-library package listed in o...
diff --git a/wagtail/admin/templatetags/patternlibrary_override_tags.py b/wagtail/admin/templatetags/patternlibrary_override_tags.py deleted file mode 100644 --- a/wagtail/admin/templatetags/patternlibrary_override_tags.py +++ /dev/null @@ -1,5 +0,0 @@ -from pattern_library.monkey_utils import override_tag - -from wagt...
{"golden_diff": "diff --git a/wagtail/admin/templatetags/patternlibrary_override_tags.py b/wagtail/admin/templatetags/patternlibrary_override_tags.py\ndeleted file mode 100644\n--- a/wagtail/admin/templatetags/patternlibrary_override_tags.py\n+++ /dev/null\n@@ -1,5 +0,0 @@\n-from pattern_library.monkey_utils import ove...
507
121
gh_patches_debug_17682
rasdani/github-patches
git_diff
DataDog__dd-trace-py-3868
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- mypy invalid syntax error with python 2 ### Which version of dd-trace-py are you using? v1.2.0 ### Which version of pip are you using? 22.1.2 ### Which version of the libraries are you using? `...
diff --git a/ddtrace/contrib/redis/patch.py b/ddtrace/contrib/redis/patch.py --- a/ddtrace/contrib/redis/patch.py +++ b/ddtrace/contrib/redis/patch.py @@ -1,4 +1,5 @@ import redis +from six import PY3 from ddtrace import config from ddtrace.vendor import wrapt @@ -36,7 +37,8 @@ _w("redis", "Redis.pipeline...
{"golden_diff": "diff --git a/ddtrace/contrib/redis/patch.py b/ddtrace/contrib/redis/patch.py\n--- a/ddtrace/contrib/redis/patch.py\n+++ b/ddtrace/contrib/redis/patch.py\n@@ -1,4 +1,5 @@\n import redis\n+from six import PY3\n \n from ddtrace import config\n from ddtrace.vendor import wrapt\n@@ -36,7 +37,8 @@\n ...
1,578
213
gh_patches_debug_14674
rasdani/github-patches
git_diff
beeware__toga-1626
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Android: `paths.app` doesn't work in event handlers **Describe the bug** On Android, `paths.app` returns `/` when called outside of the `startup` method, e.g. in an event handler. This is because the `__ma...
diff --git a/src/android/toga_android/paths.py b/src/android/toga_android/paths.py --- a/src/android/toga_android/paths.py +++ b/src/android/toga_android/paths.py @@ -13,18 +13,13 @@ def __context(self): return App.app._impl.native.getApplicationContext() + def __init__(self): + # On Android, ...
{"golden_diff": "diff --git a/src/android/toga_android/paths.py b/src/android/toga_android/paths.py\n--- a/src/android/toga_android/paths.py\n+++ b/src/android/toga_android/paths.py\n@@ -13,18 +13,13 @@\n def __context(self):\n return App.app._impl.native.getApplicationContext()\n \n+ def __init__(self):...
986
238
gh_patches_debug_43832
rasdani/github-patches
git_diff
weecology__retriever-401
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Reserved keyword 'order' not being properly replaced `clean_column_name()` in `table.py` should replace the column name `order` with `sporder`. It does not appear to be doing this in #286. --- END ISSUE ---...
diff --git a/lib/table.py b/lib/table.py --- a/lib/table.py +++ b/lib/table.py @@ -1,7 +1,8 @@ -from retriever.lib.cleanup import * import csv import StringIO +from retriever.lib.cleanup import * + class Table: """Information about a database table.""" @@ -19,6 +20,7 @@ self.replace_columns = [] ...
{"golden_diff": "diff --git a/lib/table.py b/lib/table.py\n--- a/lib/table.py\n+++ b/lib/table.py\n@@ -1,7 +1,8 @@\n-from retriever.lib.cleanup import *\n import csv\n import StringIO\n \n+from retriever.lib.cleanup import *\n+\n \n class Table:\n \"\"\"Information about a database table.\"\"\"\n@@ -19,6 +20,7 @@\n...
1,800
974
gh_patches_debug_2178
rasdani/github-patches
git_diff
rucio__rucio-1028
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Move conveyor transfers to third_party_copy_operation Motivation ---------- At the moment read is used for source and write is used for destination, for both third_party_copy should be used. --- END ISSUE ...
diff --git a/lib/rucio/vcsversion.py b/lib/rucio/vcsversion.py --- a/lib/rucio/vcsversion.py +++ b/lib/rucio/vcsversion.py @@ -4,8 +4,8 @@ ''' VERSION_INFO = { 'final': True, - 'version': '1.15.3', - 'branch_nick': 'patch-0-Rucio_1_15_3_preparation', - 'revision_id': 'cd14416223d0b81a940312cb180a07778f8...
{"golden_diff": "diff --git a/lib/rucio/vcsversion.py b/lib/rucio/vcsversion.py\n--- a/lib/rucio/vcsversion.py\n+++ b/lib/rucio/vcsversion.py\n@@ -4,8 +4,8 @@\n '''\n VERSION_INFO = {\n 'final': True,\n- 'version': '1.15.3',\n- 'branch_nick': 'patch-0-Rucio_1_15_3_preparation',\n- 'revision_id': 'cd1441622...
430
247
gh_patches_debug_16727
rasdani/github-patches
git_diff
learningequality__kolibri-6191
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- recipients column in coach tools in not accurate ### Observed behavior recipients column always indicates assignment to the entire class, even when that's not true: ![groups](https://user-images.githu...
diff --git a/kolibri/core/lessons/viewsets.py b/kolibri/core/lessons/viewsets.py --- a/kolibri/core/lessons/viewsets.py +++ b/kolibri/core/lessons/viewsets.py @@ -4,6 +4,7 @@ from django.db import connection from django.db.models import CharField +from django.db.models import F from django_filters.rest_framework i...
{"golden_diff": "diff --git a/kolibri/core/lessons/viewsets.py b/kolibri/core/lessons/viewsets.py\n--- a/kolibri/core/lessons/viewsets.py\n+++ b/kolibri/core/lessons/viewsets.py\n@@ -4,6 +4,7 @@\n \n from django.db import connection\n from django.db.models import CharField\n+from django.db.models import F\n from django...
1,614
198
gh_patches_debug_26403
rasdani/github-patches
git_diff
sql-machine-learning__elasticdl-2188
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Set version for develop branch. According to [PEP 440](https://www.python.org/dev/peps/pep-0440/#developmental-releases), we should set version `X.YaN.devM`. --- END ISSUE --- Below are some code segments, ...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -24,7 +24,7 @@ setup( name="elasticdl", - version="develop", + version="0.2.0rc3.dev0", description="A Kubernetes-native Deep Learning Framework", long_description="ElasticDL is a Kubernetes-native deep learning framework" " ...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -24,7 +24,7 @@\n \n setup(\n name=\"elasticdl\",\n- version=\"develop\",\n+ version=\"0.2.0rc3.dev0\",\n description=\"A Kubernetes-native Deep Learning Framework\",\n long_description=\"ElasticDL is a Kubernetes-nat...
1,689
322
gh_patches_debug_1874
rasdani/github-patches
git_diff
cloudtools__troposphere-120
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Update metadata to include property keys Within the CloudFormation metadata object for auto scaling launch configurations, it'd be nice to be able to rely on the validators within the template to sanity check...
diff --git a/troposphere/cloudformation.py b/troposphere/cloudformation.py --- a/troposphere/cloudformation.py +++ b/troposphere/cloudformation.py @@ -67,7 +67,13 @@ class InitConfig(AWSProperty): props = { - 'files': (dict, False) + 'groups': (dict, False), + 'users': (dict, False), + ...
{"golden_diff": "diff --git a/troposphere/cloudformation.py b/troposphere/cloudformation.py\n--- a/troposphere/cloudformation.py\n+++ b/troposphere/cloudformation.py\n@@ -67,7 +67,13 @@\n \n class InitConfig(AWSProperty):\n props = {\n- 'files': (dict, False)\n+ 'groups': (dict, False),\n+ 'use...
1,144
143
gh_patches_debug_21385
rasdani/github-patches
git_diff
joke2k__faker-529
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Decrease binary dummy length `fake.binary(length=1048576)` generate too huge binary data but it is useless at docs build time. I tested two case, 1048576 and 1024. ``` console (faker) [item4@item4-mbp docs]...
diff --git a/faker/documentor.py b/faker/documentor.py --- a/faker/documentor.py +++ b/faker/documentor.py @@ -39,12 +39,16 @@ formatters = {} for name, method in inspect.getmembers(provider, inspect.ismethod): - # skip 'private' method and inherited methods if name.startsw...
{"golden_diff": "diff --git a/faker/documentor.py b/faker/documentor.py\n--- a/faker/documentor.py\n+++ b/faker/documentor.py\n@@ -39,12 +39,16 @@\n formatters = {}\n \n for name, method in inspect.getmembers(provider, inspect.ismethod):\n-\n # skip 'private' method and inherited methods\n ...
1,732
208
gh_patches_debug_18357
rasdani/github-patches
git_diff
pyca__cryptography-414
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Binding.is_avaialble can print to stderr Specifically it'll print an error message, you can see this if you run `tests/hazmat/bindings/test_bindings.py` --- END ISSUE --- Below are some code segments, each...
diff --git a/cryptography/hazmat/bindings/openssl/binding.py b/cryptography/hazmat/bindings/openssl/binding.py --- a/cryptography/hazmat/bindings/openssl/binding.py +++ b/cryptography/hazmat/bindings/openssl/binding.py @@ -13,9 +13,8 @@ from __future__ import absolute_import, division, print_function -from cryptog...
{"golden_diff": "diff --git a/cryptography/hazmat/bindings/openssl/binding.py b/cryptography/hazmat/bindings/openssl/binding.py\n--- a/cryptography/hazmat/bindings/openssl/binding.py\n+++ b/cryptography/hazmat/bindings/openssl/binding.py\n@@ -13,9 +13,8 @@\n \n from __future__ import absolute_import, division, print_fu...
2,005
302
gh_patches_debug_20421
rasdani/github-patches
git_diff
psychopy__psychopy-1123
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Builder 'Aperture' component cannot have indefinite duration If a Builder 'Aperture' component is set to have an indefinite duration, the actual result is that it is enabled and then immediately disabled. Hen...
diff --git a/psychopy/app/builder/components/aperture.py b/psychopy/app/builder/components/aperture.py --- a/psychopy/app/builder/components/aperture.py +++ b/psychopy/app/builder/components/aperture.py @@ -78,11 +78,12 @@ buff.writeIndented("%(name)s.enabled = True\n" % self.params) # to get out of t...
{"golden_diff": "diff --git a/psychopy/app/builder/components/aperture.py b/psychopy/app/builder/components/aperture.py\n--- a/psychopy/app/builder/components/aperture.py\n+++ b/psychopy/app/builder/components/aperture.py\n@@ -78,11 +78,12 @@\n buff.writeIndented(\"%(name)s.enabled = True\\n\" % self.params)\n ...
1,802
290
gh_patches_debug_64631
rasdani/github-patches
git_diff
quantumlib__Cirq-2370
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Escape unicode characters when producing latex Currently, the qcircuit to latex code passes through unicode characters like ↺ ↻. LaTeX may not be happy about this. We should replace the unicode characters wit...
diff --git a/cirq/contrib/qcircuit/qcircuit_pdf.py b/cirq/contrib/qcircuit/qcircuit_pdf.py --- a/cirq/contrib/qcircuit/qcircuit_pdf.py +++ b/cirq/contrib/qcircuit/qcircuit_pdf.py @@ -50,6 +50,7 @@ doc = Document(documentclass=documentclass, document_options='dvips') doc.packages.append(Package('amsmath')) ...
{"golden_diff": "diff --git a/cirq/contrib/qcircuit/qcircuit_pdf.py b/cirq/contrib/qcircuit/qcircuit_pdf.py\n--- a/cirq/contrib/qcircuit/qcircuit_pdf.py\n+++ b/cirq/contrib/qcircuit/qcircuit_pdf.py\n@@ -50,6 +50,7 @@\n doc = Document(documentclass=documentclass, document_options='dvips')\n doc.packages.append(P...
967
152
gh_patches_debug_38801
rasdani/github-patches
git_diff
TheAlgorithms__Python-9083
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Returning index instead of boolean when knuth_morris_pratt matches. In [knuth morris pratt algorithm](https://github.com/TheAlgorithms/Python/blob/master/strings/knuth_morris_pratt.py), I think it's better to...
diff --git a/strings/knuth_morris_pratt.py b/strings/knuth_morris_pratt.py --- a/strings/knuth_morris_pratt.py +++ b/strings/knuth_morris_pratt.py @@ -1,7 +1,7 @@ from __future__ import annotations -def kmp(pattern: str, text: str) -> bool: +def knuth_morris_pratt(text: str, pattern: str) -> int: """ The...
{"golden_diff": "diff --git a/strings/knuth_morris_pratt.py b/strings/knuth_morris_pratt.py\n--- a/strings/knuth_morris_pratt.py\n+++ b/strings/knuth_morris_pratt.py\n@@ -1,7 +1,7 @@\n from __future__ import annotations\n \n \n-def kmp(pattern: str, text: str) -> bool:\n+def knuth_morris_pratt(text: str, pattern: str) ...
1,155
808
gh_patches_debug_19094
rasdani/github-patches
git_diff
bridgecrewio__checkov-4875
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- CKV_AWS_300 S3 MPU lifecycle alert **Issue** Alert ID - CKV_AWS_300 Checkov sends false alert for MPU "aws_s3_bucket_lifecycle_configuration" despite having the correct rule configuration. In my scenario I...
diff --git a/checkov/terraform/checks/resource/aws/S3AbortIncompleteUploads.py b/checkov/terraform/checks/resource/aws/S3AbortIncompleteUploads.py --- a/checkov/terraform/checks/resource/aws/S3AbortIncompleteUploads.py +++ b/checkov/terraform/checks/resource/aws/S3AbortIncompleteUploads.py @@ -23,12 +23,13 @@ ...
{"golden_diff": "diff --git a/checkov/terraform/checks/resource/aws/S3AbortIncompleteUploads.py b/checkov/terraform/checks/resource/aws/S3AbortIncompleteUploads.py\n--- a/checkov/terraform/checks/resource/aws/S3AbortIncompleteUploads.py\n+++ b/checkov/terraform/checks/resource/aws/S3AbortIncompleteUploads.py\n@@ -23,12...
886
263
gh_patches_debug_53987
rasdani/github-patches
git_diff
getredash__redash-784
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- AttributeError: 'datetime.timedelta' object has no attribute 'isoformat' On the latest 0.9.2-rc: ``` [2016-01-21 14:30:36,838: ERROR/MainProcess] Task redash.tasks.execute_query[766d3f9f-68a6-4a64-8cd9-b7e4e...
diff --git a/redash/utils.py b/redash/utils.py --- a/redash/utils.py +++ b/redash/utils.py @@ -53,9 +53,12 @@ if isinstance(o, decimal.Decimal): return float(o) - if isinstance(o, (datetime.date, datetime.time, datetime.timedelta)): + if isinstance(o, (datetime.date, datetime.time)...
{"golden_diff": "diff --git a/redash/utils.py b/redash/utils.py\n--- a/redash/utils.py\n+++ b/redash/utils.py\n@@ -53,9 +53,12 @@\n if isinstance(o, decimal.Decimal):\n return float(o)\n \n- if isinstance(o, (datetime.date, datetime.time, datetime.timedelta)):\n+ if isinstance(o, (date...
1,685
119
gh_patches_debug_23933
rasdani/github-patches
git_diff
ietf-tools__datatracker-5109
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- secr.middleware.dbquery.QueryCountDebugMiddleware is unused. Is this still needed in the source tree? Can it be removed? cc @rpcross --- END ISSUE --- Below are some code segments, each from a relevant fil...
diff --git a/ietf/secr/middleware/dbquery.py b/ietf/secr/middleware/dbquery.py deleted file mode 100644 --- a/ietf/secr/middleware/dbquery.py +++ /dev/null @@ -1,35 +0,0 @@ -# Copyright The IETF Trust 2014-2019, All Rights Reserved -#import logging - -from django.db import connection -from django.utils.log import getLo...
{"golden_diff": "diff --git a/ietf/secr/middleware/dbquery.py b/ietf/secr/middleware/dbquery.py\ndeleted file mode 100644\n--- a/ietf/secr/middleware/dbquery.py\n+++ /dev/null\n@@ -1,35 +0,0 @@\n-# Copyright The IETF Trust 2014-2019, All Rights Reserved\n-#import logging\n-\n-from django.db import connection\n-from dja...
691
426
gh_patches_debug_50452
rasdani/github-patches
git_diff
jupyterhub__jupyterhub-364
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- 404 on single user notebook server anytime I restart jupyterhub I just deployed jupyterhub from scratch using my ansible scripts this morning. The script are unchanged from 2-3 weeks ago when I did it previou...
diff --git a/jupyterhub/handlers/pages.py b/jupyterhub/handlers/pages.py --- a/jupyterhub/handlers/pages.py +++ b/jupyterhub/handlers/pages.py @@ -71,7 +71,7 @@ self.finish(html) else: # not running, no form. Trigger spawn. - url = url_path_join(self.base_url, 'users', user...
{"golden_diff": "diff --git a/jupyterhub/handlers/pages.py b/jupyterhub/handlers/pages.py\n--- a/jupyterhub/handlers/pages.py\n+++ b/jupyterhub/handlers/pages.py\n@@ -71,7 +71,7 @@\n self.finish(html)\n else:\n # not running, no form. Trigger spawn.\n- url = url_path_join(self...
1,971
121
gh_patches_debug_395
rasdani/github-patches
git_diff
wright-group__WrightTools-640
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- CITATION text file not distributed --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `setup.py` Content: ``` ...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -18,6 +18,7 @@ "datasets/*/*", "datasets/*/*/*", "datasets/*/*/*/*", + "CITATION", "VERSION", "WT5_VERSION", ]
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -18,6 +18,7 @@\n \"datasets/*/*\",\n \"datasets/*/*/*\",\n \"datasets/*/*/*/*\",\n+ \"CITATION\",\n \"VERSION\",\n \"WT5_VERSION\",\n ]\n", "issue": "CITATION text file not distribute...
882
72
gh_patches_debug_24933
rasdani/github-patches
git_diff
urllib3__urllib3-1665
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Multipart mixed responses generate warnings If you read a multipart/mixed response, the connectionpool issues a couple of warnings about defects in the message. I'm not sure what the expected, correct behavio...
diff --git a/src/urllib3/util/response.py b/src/urllib3/util/response.py --- a/src/urllib3/util/response.py +++ b/src/urllib3/util/response.py @@ -1,4 +1,5 @@ from __future__ import absolute_import +from email.errors import StartBoundaryNotFoundDefect, MultipartInvariantViolationDefect from ..packages.six.moves impor...
{"golden_diff": "diff --git a/src/urllib3/util/response.py b/src/urllib3/util/response.py\n--- a/src/urllib3/util/response.py\n+++ b/src/urllib3/util/response.py\n@@ -1,4 +1,5 @@\n from __future__ import absolute_import\n+from email.errors import StartBoundaryNotFoundDefect, MultipartInvariantViolationDefect\n from ..p...
1,698
347
gh_patches_debug_22952
rasdani/github-patches
git_diff
pwndbg__pwndbg-648
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- xuntil doesn't work with PIE binaries before being run `xuntil` was added in #604 and works except that it doesn't work with PIE binaries before being run. This is because it expects an int argument. I'll lo...
diff --git a/pwndbg/commands/peda.py b/pwndbg/commands/peda.py --- a/pwndbg/commands/peda.py +++ b/pwndbg/commands/peda.py @@ -30,18 +30,27 @@ parser = argparse.ArgumentParser(description='Continue execution until an address or function.') -parser.add_argument('target', help='Address or function to stop execution ...
{"golden_diff": "diff --git a/pwndbg/commands/peda.py b/pwndbg/commands/peda.py\n--- a/pwndbg/commands/peda.py\n+++ b/pwndbg/commands/peda.py\n@@ -30,18 +30,27 @@\n \n \n parser = argparse.ArgumentParser(description='Continue execution until an address or function.')\n-parser.add_argument('target', help='Address or fun...
761
351
gh_patches_debug_17968
rasdani/github-patches
git_diff
Pycord-Development__pycord-621
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Cog.get_commands() does not return ext.commands commands ### Summary `Cog.get_commands()` no longer returns anything but slash/interaction based commands, breaking all help commands ### Reproduction Ste...
diff --git a/discord/ext/commands/cog.py b/discord/ext/commands/cog.py --- a/discord/ext/commands/cog.py +++ b/discord/ext/commands/cog.py @@ -27,7 +27,7 @@ import discord from ...cog import Cog -from typing import Any, Callable, Generator, TYPE_CHECKING, TypeVar, Type +from typing import Any, Callable, Generator, ...
{"golden_diff": "diff --git a/discord/ext/commands/cog.py b/discord/ext/commands/cog.py\n--- a/discord/ext/commands/cog.py\n+++ b/discord/ext/commands/cog.py\n@@ -27,7 +27,7 @@\n import discord\n from ...cog import Cog\n \n-from typing import Any, Callable, Generator, TYPE_CHECKING, TypeVar, Type\n+from typing import A...
1,315
249
gh_patches_debug_34006
rasdani/github-patches
git_diff
conan-io__conan-5846
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [question] How to not include some libs in conanbuildinfo.props Conan version 1.19.0 I have a dependency on boost (boost/1.71.0@conan/stable). I'm using the visual_studio generator with VS2017 This a...
diff --git a/conans/client/generators/visualstudio.py b/conans/client/generators/visualstudio.py --- a/conans/client/generators/visualstudio.py +++ b/conans/client/generators/visualstudio.py @@ -18,13 +18,15 @@ <ItemGroup /> </Project>''' - properties_template = ''' <PropertyGroup Label="ConanVariables"{condi...
{"golden_diff": "diff --git a/conans/client/generators/visualstudio.py b/conans/client/generators/visualstudio.py\n--- a/conans/client/generators/visualstudio.py\n+++ b/conans/client/generators/visualstudio.py\n@@ -18,13 +18,15 @@\n <ItemGroup />\n </Project>'''\n \n- properties_template = ''' <PropertyGroup Labe...
1,964
462
gh_patches_debug_32036
rasdani/github-patches
git_diff
strawberry-graphql__strawberry-851
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Improve errors logging Right now errors are being caught by GraphQL core and sent into the `errors` fields of the GraphQL response. Unfortunately that makes things harder to debug locally; we should print bet...
diff --git a/strawberry/schema/schema.py b/strawberry/schema/schema.py --- a/strawberry/schema/schema.py +++ b/strawberry/schema/schema.py @@ -1,3 +1,4 @@ +import logging from typing import Any, Dict, List, Optional, Sequence, Type, Union from graphql import ( @@ -7,6 +8,7 @@ parse, validate_schema, ) +f...
{"golden_diff": "diff --git a/strawberry/schema/schema.py b/strawberry/schema/schema.py\n--- a/strawberry/schema/schema.py\n+++ b/strawberry/schema/schema.py\n@@ -1,3 +1,4 @@\n+import logging\n from typing import Any, Dict, List, Optional, Sequence, Type, Union\n \n from graphql import (\n@@ -7,6 +8,7 @@\n parse,\n...
2,023
353
gh_patches_debug_17155
rasdani/github-patches
git_diff
cloudtools__troposphere-1157
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- RDS VPC example instance classes are out of date https://github.com/cloudtools/troposphere/blob/565247a50bd27a8f45c3e408b466b193473cb9a6/examples/RDS_VPC.py#L67-L76 The current list of instance classes is ...
diff --git a/examples/RDS_VPC.py b/examples/RDS_VPC.py --- a/examples/RDS_VPC.py +++ b/examples/RDS_VPC.py @@ -70,8 +70,17 @@ Description="Database instance class", Type="String", AllowedValues=[ - "db.m1.small", "db.m1.large", "db.m1.xlarge", "db.m2.xlarge", - "db.m2.2xlarge", "db.m2.4xlar...
{"golden_diff": "diff --git a/examples/RDS_VPC.py b/examples/RDS_VPC.py\n--- a/examples/RDS_VPC.py\n+++ b/examples/RDS_VPC.py\n@@ -70,8 +70,17 @@\n Description=\"Database instance class\",\n Type=\"String\",\n AllowedValues=[\n- \"db.m1.small\", \"db.m1.large\", \"db.m1.xlarge\", \"db.m2.xlarge\",\n-...
1,546
461
gh_patches_debug_30972
rasdani/github-patches
git_diff
saleor__saleor-3639
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Expose in API list of supported payment gateways In API we expose the `GatewaysEnum` enum which contains all the available payment gateways, but there is no way for the Storefront 2.0 to determine which of th...
diff --git a/saleor/graphql/checkout/types.py b/saleor/graphql/checkout/types.py --- a/saleor/graphql/checkout/types.py +++ b/saleor/graphql/checkout/types.py @@ -1,11 +1,13 @@ import graphene import graphene_django_optimizer as gql_optimizer +from django.conf import settings from ...checkout import models from ....
{"golden_diff": "diff --git a/saleor/graphql/checkout/types.py b/saleor/graphql/checkout/types.py\n--- a/saleor/graphql/checkout/types.py\n+++ b/saleor/graphql/checkout/types.py\n@@ -1,11 +1,13 @@\n import graphene\n import graphene_django_optimizer as gql_optimizer\n+from django.conf import settings\n \n from ...check...
1,230
318
gh_patches_debug_17205
rasdani/github-patches
git_diff
fidals__shopelectro-532
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- tracking.es6:30-33: Send `purchase` event to YA and GA... The puzzle `504-30170dc3` from #504 has to be resolved: https://github.com/fidals/shopelectro/blob/4e607fb856842b43192511b1b4eaff19d2052b9a/front/js/...
diff --git a/shopelectro/views/ecommerce.py b/shopelectro/views/ecommerce.py --- a/shopelectro/views/ecommerce.py +++ b/shopelectro/views/ecommerce.py @@ -1,4 +1,5 @@ from django.conf import settings +from django.core import serializers from django.http import HttpResponse, JsonResponse from django.shortcuts import ...
{"golden_diff": "diff --git a/shopelectro/views/ecommerce.py b/shopelectro/views/ecommerce.py\n--- a/shopelectro/views/ecommerce.py\n+++ b/shopelectro/views/ecommerce.py\n@@ -1,4 +1,5 @@\n from django.conf import settings\n+from django.core import serializers\n from django.http import HttpResponse, JsonResponse\n from ...
1,559
232
gh_patches_debug_32456
rasdani/github-patches
git_diff
PlasmaPy__PlasmaPy-217
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Create physics exceptions and warnings Several of the exceptions and warnings that come up in PlasmaPy result from when we try to violate the laws of physics. Most of the time these violations cause a `UserW...
diff --git a/plasmapy/utils/exceptions.py b/plasmapy/utils/exceptions.py --- a/plasmapy/utils/exceptions.py +++ b/plasmapy/utils/exceptions.py @@ -18,14 +18,51 @@ already knows how to handle a ValueError, it won't need any specific modification. """ + pass class PhysicsError(PlasmaPyError, ValueE...
{"golden_diff": "diff --git a/plasmapy/utils/exceptions.py b/plasmapy/utils/exceptions.py\n--- a/plasmapy/utils/exceptions.py\n+++ b/plasmapy/utils/exceptions.py\n@@ -18,14 +18,51 @@\n already knows how to handle a ValueError, it won't need any specific\n modification.\n \"\"\"\n+ pass\n \n \n class Phys...
824
492
gh_patches_debug_916
rasdani/github-patches
git_diff
facebookresearch__ParlAI-581
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Can we keep a mturk task from outside parlai/mturk/tasks? Hi @JackUrb, I have a few questions regarding the mturk evaluation: 1. This link (http://parl.ai/static/docs/mturk.html#running-a-task) says that ...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -30,4 +30,5 @@ packages=find_packages(exclude=( 'data', 'docs', 'downloads', 'examples', 'logs', 'tests')), install_requires=reqs.strip().split('\n'), + include_package_data=True, )
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -30,4 +30,5 @@\n packages=find_packages(exclude=(\n 'data', 'docs', 'downloads', 'examples', 'logs', 'tests')),\n install_requires=reqs.strip().split('\\n'),\n+ include_package_data=True,\n )\n", "issue": "Can we ke...
737
77