problem_id
stringlengths
18
21
source
stringclasses
1 value
task_type
stringclasses
1 value
in_source_id
stringlengths
13
54
prompt
stringlengths
1.28k
64.2k
golden_diff
stringlengths
166
811
verification_info
stringlengths
604
118k
gh_patches_debug_500
rasdani/github-patches
git_diff
MongoEngine__mongoengine-1999
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Error in documentation? Maybe an error in Documentation: in section "2.3.2. Dynamic document schemas" you've writing that: > There is one caveat on Dynamic Documents: fields cannot start with _ But I te...
diff --git a/mongoengine/document.py b/mongoengine/document.py --- a/mongoengine/document.py +++ b/mongoengine/document.py @@ -1016,7 +1016,7 @@ .. note:: - There is one caveat on Dynamic Documents: fields cannot start with `_` + There is one caveat on Dynamic Documents: undeclared fields cannot ...
{"golden_diff": "diff --git a/mongoengine/document.py b/mongoengine/document.py\n--- a/mongoengine/document.py\n+++ b/mongoengine/document.py\n@@ -1016,7 +1016,7 @@\n \n .. note::\n \n- There is one caveat on Dynamic Documents: fields cannot start with `_`\n+ There is one caveat on Dynamic Documents: ...
gh_patches_debug_501
rasdani/github-patches
git_diff
fossasia__open-event-server-2286
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Admin: Sorting of time/dates not correct The sorting of time and dates in admin tables where this is relevant are not correct, e.g. in the users section if I sort according to "member since" the top result is...
diff --git a/app/__init__.py b/app/__init__.py --- a/app/__init__.py +++ b/app/__init__.py @@ -231,6 +231,13 @@ return humanize.naturaltime(datetime.now() - time) +@app.template_filter('time_format') +def time_filter(time): + if not time: + return "N/A" + return time + + @app.template_filter('fir...
{"golden_diff": "diff --git a/app/__init__.py b/app/__init__.py\n--- a/app/__init__.py\n+++ b/app/__init__.py\n@@ -231,6 +231,13 @@\n return humanize.naturaltime(datetime.now() - time)\n \n \n+@app.template_filter('time_format')\n+def time_filter(time):\n+ if not time:\n+ return \"N/A\"\n+ return time\...
gh_patches_debug_502
rasdani/github-patches
git_diff
pyinstaller__pyinstaller-5239
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- gevent hook unnecessarily bundles ~17MB of "stuff" ## Description of the issue The included `gevent` hook bundles about 17MB of unnecessary files. These include: - HTML documentation - `__pycache__` fol...
diff --git a/PyInstaller/hooks/hook-gevent.py b/PyInstaller/hooks/hook-gevent.py --- a/PyInstaller/hooks/hook-gevent.py +++ b/PyInstaller/hooks/hook-gevent.py @@ -16,4 +16,6 @@ datas, binaries, hiddenimports = collect_all( 'gevent', filter_submodules=lambda name: ( - "gevent.testing" not in name or "g...
{"golden_diff": "diff --git a/PyInstaller/hooks/hook-gevent.py b/PyInstaller/hooks/hook-gevent.py\n--- a/PyInstaller/hooks/hook-gevent.py\n+++ b/PyInstaller/hooks/hook-gevent.py\n@@ -16,4 +16,6 @@\n datas, binaries, hiddenimports = collect_all(\n 'gevent',\n filter_submodules=lambda name: (\n- \"gevent.t...
gh_patches_debug_503
rasdani/github-patches
git_diff
carpentries__amy-146
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Cannot validate events, missing `check_file` function I can't validate events, because `check_file` function is missing. ``` Environment: Request Method: GET Request URL: http://127.0.0.1:8000/workshops/ev...
diff --git a/workshops/views.py b/workshops/views.py --- a/workshops/views.py +++ b/workshops/views.py @@ -15,6 +15,8 @@ from workshops.forms import SearchForm, InstructorsForm, PersonBulkAddForm from workshops.util import earth_distance +from workshops.check import check_file + from workshops.models import \ ...
{"golden_diff": "diff --git a/workshops/views.py b/workshops/views.py\n--- a/workshops/views.py\n+++ b/workshops/views.py\n@@ -15,6 +15,8 @@\n from workshops.forms import SearchForm, InstructorsForm, PersonBulkAddForm\n from workshops.util import earth_distance\n \n+from workshops.check import check_file\n+\n from work...
gh_patches_debug_504
rasdani/github-patches
git_diff
pallets__click-1496
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- ClickException message goes to stdout instead of stderr with version 7.1 Thanks a lot for ``click`` - absolutely fantastic project. I've noticed the following change when upgrading to 7.1, and am not sure...
diff --git a/src/click/exceptions.py b/src/click/exceptions.py --- a/src/click/exceptions.py +++ b/src/click/exceptions.py @@ -39,7 +39,7 @@ def show(self, file=None): if file is None: file = get_text_stderr() - echo("Error: {}".format(self.format_message(), file=file)) + echo("...
{"golden_diff": "diff --git a/src/click/exceptions.py b/src/click/exceptions.py\n--- a/src/click/exceptions.py\n+++ b/src/click/exceptions.py\n@@ -39,7 +39,7 @@\n def show(self, file=None):\n if file is None:\n file = get_text_stderr()\n- echo(\"Error: {}\".format(self.format_message(), f...
gh_patches_debug_505
rasdani/github-patches
git_diff
ephios-dev__ephios-639
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- PWA does not respect orientation lock on Android --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `ephios/co...
diff --git a/ephios/core/views/pwa.py b/ephios/core/views/pwa.py --- a/ephios/core/views/pwa.py +++ b/ephios/core/views/pwa.py @@ -15,7 +15,6 @@ "start_url": "/", "display": "standalone", "scope": "/", - "orientation": "any", "background_color": "#fff", "theme_color":...
{"golden_diff": "diff --git a/ephios/core/views/pwa.py b/ephios/core/views/pwa.py\n--- a/ephios/core/views/pwa.py\n+++ b/ephios/core/views/pwa.py\n@@ -15,7 +15,6 @@\n \"start_url\": \"/\",\n \"display\": \"standalone\",\n \"scope\": \"/\",\n- \"orientation\": \"any\",\n \"backgrou...
gh_patches_debug_506
rasdani/github-patches
git_diff
oppia__oppia-4130
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Fix the "finished an exploration in a collection" experience. To reproduce: Play https://www.oppia.org/explore/DIWZiVgs0km-?collection_id=4UgTQUc1tala to the end. After it's completed, instead of seeing just ...
diff --git a/feconf.py b/feconf.py --- a/feconf.py +++ b/feconf.py @@ -495,6 +495,9 @@ u'16': 'all_interactions', u'17': 'audio_test', u'18': 'code_classifier_test.yaml', + u'19': 'example_exploration_in_collection1.yaml', + u'20': 'example_exploration_in_collection2.yaml', + u'21': 'example_exp...
{"golden_diff": "diff --git a/feconf.py b/feconf.py\n--- a/feconf.py\n+++ b/feconf.py\n@@ -495,6 +495,9 @@\n u'16': 'all_interactions',\n u'17': 'audio_test',\n u'18': 'code_classifier_test.yaml',\n+ u'19': 'example_exploration_in_collection1.yaml',\n+ u'20': 'example_exploration_in_collection2.yaml',...
gh_patches_debug_507
rasdani/github-patches
git_diff
electricitymaps__electricitymaps-contrib-1155
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Taiwan TW is offline Currently, Taiwan is grey and 24-hours-history is empty as well. - [The link ](http://data.taipower.com.tw/opendata01/apply/file/d006001/001.txt) in the [TW.py parser](https://github.c...
diff --git a/parsers/TW.py b/parsers/TW.py --- a/parsers/TW.py +++ b/parsers/TW.py @@ -5,7 +5,7 @@ import dateutil -def fetch_production(country_code='TW'): +def fetch_production(country_code='TW', session=None): url = 'http://data.taipower.com.tw/opendata01/apply/file/d006001/001.txt' response = request...
{"golden_diff": "diff --git a/parsers/TW.py b/parsers/TW.py\n--- a/parsers/TW.py\n+++ b/parsers/TW.py\n@@ -5,7 +5,7 @@\n import dateutil\n \n \n-def fetch_production(country_code='TW'):\n+def fetch_production(country_code='TW', session=None):\n url = 'http://data.taipower.com.tw/opendata01/apply/file/d006001/001.tx...
gh_patches_debug_508
rasdani/github-patches
git_diff
liqd__a4-meinberlin-3019
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- testing 2958: bplan verification mail **URL:** mail **user:** administration staff working via imperia **expected behaviour:** / **behaviour:** wording changed, see below **important screensize:**/ **dev...
diff --git a/meinberlin/apps/bplan/signals.py b/meinberlin/apps/bplan/signals.py --- a/meinberlin/apps/bplan/signals.py +++ b/meinberlin/apps/bplan/signals.py @@ -25,5 +25,5 @@ @receiver(post_save, sender=Bplan) def send_update(sender, instance, update_fields, **kwargs): - if update_fields: + if not update_fi...
{"golden_diff": "diff --git a/meinberlin/apps/bplan/signals.py b/meinberlin/apps/bplan/signals.py\n--- a/meinberlin/apps/bplan/signals.py\n+++ b/meinberlin/apps/bplan/signals.py\n@@ -25,5 +25,5 @@\n \n @receiver(post_save, sender=Bplan)\n def send_update(sender, instance, update_fields, **kwargs):\n- if update_field...
gh_patches_debug_509
rasdani/github-patches
git_diff
rasterio__rasterio-373
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Migrate to Cython 0.22 The bandaid applied in #276 is falling off. I've tagged this for 1.0 but we could do it sooner. --- END ISSUE --- Below are some code segments, each from a relevant file. One or more...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -125,6 +125,7 @@ copy_data_tree(projdatadir, 'rasterio/proj_data') ext_options = dict( + extra_compile_args=['-Wno-unused-parameter', '-Wno-unused-function'], include_dirs=include_dirs, library_dirs=library_dirs, libraries=l...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -125,6 +125,7 @@\n copy_data_tree(projdatadir, 'rasterio/proj_data')\n \n ext_options = dict(\n+ extra_compile_args=['-Wno-unused-parameter', '-Wno-unused-function'],\n include_dirs=include_dirs,\n library_dirs=libr...
gh_patches_debug_510
rasdani/github-patches
git_diff
TheAlgorithms__Python-1943
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Same name for an attribute and a function Hi, I'm new to programming and I'm not sure if it's a problem, but the code( Python/data_structures/queue/queue_on_list.py) have the same name for an attribute and a...
diff --git a/data_structures/queue/queue_on_list.py b/data_structures/queue/queue_on_list.py --- a/data_structures/queue/queue_on_list.py +++ b/data_structures/queue/queue_on_list.py @@ -43,7 +43,7 @@ """Enqueues {@code item} @return item at front of self.entries""" - def front(self): + def get_fr...
{"golden_diff": "diff --git a/data_structures/queue/queue_on_list.py b/data_structures/queue/queue_on_list.py\n--- a/data_structures/queue/queue_on_list.py\n+++ b/data_structures/queue/queue_on_list.py\n@@ -43,7 +43,7 @@\n \"\"\"Enqueues {@code item}\r\n @return item at front of self.entries\"\"\"\r\n \r\n- ...
gh_patches_debug_511
rasdani/github-patches
git_diff
kivy__kivy-5484
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- DragBehavior dispatching touch event incorrectly <!-- The issue tracker is a tool to address bugs. Please use the #kivy IRC channel on freenode or Stack Overflow for support questions, more information at ...
diff --git a/kivy/uix/behaviors/drag.py b/kivy/uix/behaviors/drag.py --- a/kivy/uix/behaviors/drag.py +++ b/kivy/uix/behaviors/drag.py @@ -227,5 +227,8 @@ return touch.ungrab(self) self._drag_touch = None + touch.push() + touch.apply_transform_2d(self.parent.to_widget) ...
{"golden_diff": "diff --git a/kivy/uix/behaviors/drag.py b/kivy/uix/behaviors/drag.py\n--- a/kivy/uix/behaviors/drag.py\n+++ b/kivy/uix/behaviors/drag.py\n@@ -227,5 +227,8 @@\n return\n touch.ungrab(self)\n self._drag_touch = None\n+ touch.push()\n+ touch.apply_transform_2d(sel...
gh_patches_debug_512
rasdani/github-patches
git_diff
sosreport__sos-3322
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- containerd plugin does not enable when containerd is installed from docker repo The Fedora/RHEL RPM follows the naming conventions [found at containerd.io](https://containerd.io/downloads/), and an rpm name o...
diff --git a/sos/report/plugins/containerd.py b/sos/report/plugins/containerd.py --- a/sos/report/plugins/containerd.py +++ b/sos/report/plugins/containerd.py @@ -14,7 +14,7 @@ short_desc = 'Containerd containers' plugin_name = 'containerd' profiles = ('container',) - packages = ('containerd',) + p...
{"golden_diff": "diff --git a/sos/report/plugins/containerd.py b/sos/report/plugins/containerd.py\n--- a/sos/report/plugins/containerd.py\n+++ b/sos/report/plugins/containerd.py\n@@ -14,7 +14,7 @@\n short_desc = 'Containerd containers'\n plugin_name = 'containerd'\n profiles = ('container',)\n- packages ...
gh_patches_debug_513
rasdani/github-patches
git_diff
blaze__blaze-1037
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- cytoolz is required to import blaze, but it's not listed in requirements_strict.txt In a fresh virtualenv, `pip install blaze && python -c "import blaze"` fails with: ``` Traceback (most recent call last): ...
diff --git a/blaze/utils.py b/blaze/utils.py --- a/blaze/utils.py +++ b/blaze/utils.py @@ -4,7 +4,11 @@ import datetime from functools import wraps -from cytoolz import nth +try: + from cytoolz import nth +except ImportError: + from toolz import nth + from itertools import islice from collections import Ite...
{"golden_diff": "diff --git a/blaze/utils.py b/blaze/utils.py\n--- a/blaze/utils.py\n+++ b/blaze/utils.py\n@@ -4,7 +4,11 @@\n import datetime\n from functools import wraps\n \n-from cytoolz import nth\n+try:\n+ from cytoolz import nth\n+except ImportError:\n+ from toolz import nth\n+\n from itertools import islic...
gh_patches_debug_514
rasdani/github-patches
git_diff
SigmaHQ__sigma-2144
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- sigmac - invalid value in STATE filter In specification it states that there are three statuses: * stable * test * experimental https://github.com/SigmaHQ/sigma/wiki/Specification#status-optional Pro...
diff --git a/tools/sigma/filter.py b/tools/sigma/filter.py --- a/tools/sigma/filter.py +++ b/tools/sigma/filter.py @@ -24,7 +24,9 @@ "high" : 2, "critical" : 3 } - STATES = ["experimental", "testing", "stable"] + STATES = ["experimental", + "test", + ...
{"golden_diff": "diff --git a/tools/sigma/filter.py b/tools/sigma/filter.py\n--- a/tools/sigma/filter.py\n+++ b/tools/sigma/filter.py\n@@ -24,7 +24,9 @@\n \"high\" : 2,\n \"critical\" : 3\n }\n- STATES = [\"experimental\", \"testing\", \"stable\"]\n+ STATES = [\"experimenta...
gh_patches_debug_515
rasdani/github-patches
git_diff
facebookresearch__hydra-1915
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Passing callable as `instantiate` `_target_` fails for nested classes Hydra's `instantiate` function allows users to pass a callable (rather than a string) via the `_target_` keyword argument. For example: ...
diff --git a/hydra/_internal/instantiate/_instantiate2.py b/hydra/_internal/instantiate/_instantiate2.py --- a/hydra/_internal/instantiate/_instantiate2.py +++ b/hydra/_internal/instantiate/_instantiate2.py @@ -70,9 +70,7 @@ def _convert_target_to_string(t: Any) -> Any: - if isinstance(t, type): - return...
{"golden_diff": "diff --git a/hydra/_internal/instantiate/_instantiate2.py b/hydra/_internal/instantiate/_instantiate2.py\n--- a/hydra/_internal/instantiate/_instantiate2.py\n+++ b/hydra/_internal/instantiate/_instantiate2.py\n@@ -70,9 +70,7 @@\n \n \n def _convert_target_to_string(t: Any) -> Any:\n- if isinstance(t...
gh_patches_debug_516
rasdani/github-patches
git_diff
certbot__certbot-4447
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- /etc/nginx.conf should probably be /etc/nginx/nginx.conf https://github.com/certbot/certbot/blob/master/certbot-nginx/certbot_nginx/configurator.py#L821 --- END ISSUE --- Below are some code segments, each ...
diff --git a/certbot-nginx/certbot_nginx/configurator.py b/certbot-nginx/certbot_nginx/configurator.py --- a/certbot-nginx/certbot_nginx/configurator.py +++ b/certbot-nginx/certbot_nginx/configurator.py @@ -820,7 +820,7 @@ self.restart() -def nginx_restart(nginx_ctl, nginx_conf="/etc/nginx.conf"): +def...
{"golden_diff": "diff --git a/certbot-nginx/certbot_nginx/configurator.py b/certbot-nginx/certbot_nginx/configurator.py\n--- a/certbot-nginx/certbot_nginx/configurator.py\n+++ b/certbot-nginx/certbot_nginx/configurator.py\n@@ -820,7 +820,7 @@\n self.restart()\n \n \n-def nginx_restart(nginx_ctl, nginx_conf=...
gh_patches_debug_517
rasdani/github-patches
git_diff
liqd__a4-meinberlin-1579
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Untranslated "Plans" ![screenshot from 2018-05-16 15-53-17](https://user-images.githubusercontent.com/2066372/40121189-48c8fe68-5921-11e8-9756-04eab5a7a83b.png) Maybe we just remove it since there is alr...
diff --git a/meinberlin/apps/plans/forms.py b/meinberlin/apps/plans/forms.py --- a/meinberlin/apps/plans/forms.py +++ b/meinberlin/apps/plans/forms.py @@ -64,7 +64,8 @@ class ProjectPlansDashboardForm(ProjectDashboardForm): - plans = CustomMultipleChoiceField(queryset=None) + plans = CustomMultipleChoiceFiel...
{"golden_diff": "diff --git a/meinberlin/apps/plans/forms.py b/meinberlin/apps/plans/forms.py\n--- a/meinberlin/apps/plans/forms.py\n+++ b/meinberlin/apps/plans/forms.py\n@@ -64,7 +64,8 @@\n \n \n class ProjectPlansDashboardForm(ProjectDashboardForm):\n- plans = CustomMultipleChoiceField(queryset=None)\n+ plans =...
gh_patches_debug_518
rasdani/github-patches
git_diff
learningequality__kolibri-2286
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Detecting if a topic is a channel ## Summary Currenty, we detect if a topic is a channel by checking that the `channel_id` and `pk` are equal. I ran into a channel where they are not equal. See 2nd channel...
diff --git a/kolibri/content/serializers.py b/kolibri/content/serializers.py --- a/kolibri/content/serializers.py +++ b/kolibri/content/serializers.py @@ -25,7 +25,7 @@ class Meta: model = ChannelMetadata - fields = ('root', 'id', 'name', 'description', 'author', 'last_updated', 'version') + ...
{"golden_diff": "diff --git a/kolibri/content/serializers.py b/kolibri/content/serializers.py\n--- a/kolibri/content/serializers.py\n+++ b/kolibri/content/serializers.py\n@@ -25,7 +25,7 @@\n \n class Meta:\n model = ChannelMetadata\n- fields = ('root', 'id', 'name', 'description', 'author', 'last_upd...
gh_patches_debug_519
rasdani/github-patches
git_diff
cloudtools__troposphere-1670
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Security Hub tags not formatted correctly Using the following code for a Security Hub resource results in tags that don't follow the structure of Security Hub Cloudformation: ``` hub = tpl.add_resource(Hu...
diff --git a/troposphere/securityhub.py b/troposphere/securityhub.py --- a/troposphere/securityhub.py +++ b/troposphere/securityhub.py @@ -8,12 +8,12 @@ from . import AWSObject -from troposphere import Tags +from .validators import json_checker class Hub(AWSObject): resource_type = "AWS::SecurityHub::Hub...
{"golden_diff": "diff --git a/troposphere/securityhub.py b/troposphere/securityhub.py\n--- a/troposphere/securityhub.py\n+++ b/troposphere/securityhub.py\n@@ -8,12 +8,12 @@\n \n \n from . import AWSObject\n-from troposphere import Tags\n+from .validators import json_checker\n \n \n class Hub(AWSObject):\n resource_...
gh_patches_debug_520
rasdani/github-patches
git_diff
nerfstudio-project__nerfstudio-913
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- tanh instead of tan bug Hi, please change tanh (hyperbolic tan) to tan https://github.com/nerfstudio-project/nerfstudio/blob/1a24f3e58c544bc0211563e770d425426284256c/nerfstudio/data/dataparsers/instant_n...
diff --git a/nerfstudio/data/dataparsers/instant_ngp_dataparser.py b/nerfstudio/data/dataparsers/instant_ngp_dataparser.py --- a/nerfstudio/data/dataparsers/instant_ngp_dataparser.py +++ b/nerfstudio/data/dataparsers/instant_ngp_dataparser.py @@ -130,7 +130,7 @@ fl_x, fl_y = 0, 0 def fov_to_focal_le...
{"golden_diff": "diff --git a/nerfstudio/data/dataparsers/instant_ngp_dataparser.py b/nerfstudio/data/dataparsers/instant_ngp_dataparser.py\n--- a/nerfstudio/data/dataparsers/instant_ngp_dataparser.py\n+++ b/nerfstudio/data/dataparsers/instant_ngp_dataparser.py\n@@ -130,7 +130,7 @@\n fl_x, fl_y = 0, 0\n \n ...
gh_patches_debug_521
rasdani/github-patches
git_diff
fidals__shopelectro-385
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- helpers.py:58-59: Move selenium timeout to env var. stb2... The puzzle `371-6673a075` from #371 has to be resolved: https://github.com/fidals/shopelectro/blob/7d319f81942692c16105a8f8703e483a7067f1ef/shopele...
diff --git a/shopelectro/settings/base.py b/shopelectro/settings/base.py --- a/shopelectro/settings/base.py +++ b/shopelectro/settings/base.py @@ -215,6 +215,8 @@ } SELENIUM_URL = os.environ.get('SELENIUM_URL', 'http://selenium:4444/wd/hub') +SELENIUM_WAIT_SECONDS = int(os.environ.get('SELENIUM_WAIT_SECONDS', 60)) ...
{"golden_diff": "diff --git a/shopelectro/settings/base.py b/shopelectro/settings/base.py\n--- a/shopelectro/settings/base.py\n+++ b/shopelectro/settings/base.py\n@@ -215,6 +215,8 @@\n }\n \n SELENIUM_URL = os.environ.get('SELENIUM_URL', 'http://selenium:4444/wd/hub')\n+SELENIUM_WAIT_SECONDS = int(os.environ.get('SELEN...
gh_patches_debug_522
rasdani/github-patches
git_diff
ManimCommunity__manim-3541
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- reST in ``MoveAlongPath`` not correct [https://docs.manim.community/en/stable/reference/manim.animation.movement.MoveAlongPath.html](https://docs.manim.community/en/stable/reference/manim.animation.movement.M...
diff --git a/manim/animation/movement.py b/manim/animation/movement.py --- a/manim/animation/movement.py +++ b/manim/animation/movement.py @@ -136,8 +136,7 @@ class MoveAlongPath(Animation): """Make one mobject move along the path of another mobject. - Example - -------- + .. manim:: MoveAlongPathExa...
{"golden_diff": "diff --git a/manim/animation/movement.py b/manim/animation/movement.py\n--- a/manim/animation/movement.py\n+++ b/manim/animation/movement.py\n@@ -136,8 +136,7 @@\n \n class MoveAlongPath(Animation):\n \"\"\"Make one mobject move along the path of another mobject.\n- Example\n- --------\n+\n ...
gh_patches_debug_523
rasdani/github-patches
git_diff
pytorch__audio-755
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- 🚀 Feature Request: Opus audio format support ## 🚀 Feature <!-- --> Add opus format ## Motivation <!-- Please outline the motivation for the proposal. Is your feature request related to a problem? e.g...
diff --git a/build_tools/setup_helpers/extension.py b/build_tools/setup_helpers/extension.py --- a/build_tools/setup_helpers/extension.py +++ b/build_tools/setup_helpers/extension.py @@ -83,6 +83,8 @@ 'libmad.a', 'libFLAC.a', 'libmp3lame.a', + 'libopusfile.a', + ...
{"golden_diff": "diff --git a/build_tools/setup_helpers/extension.py b/build_tools/setup_helpers/extension.py\n--- a/build_tools/setup_helpers/extension.py\n+++ b/build_tools/setup_helpers/extension.py\n@@ -83,6 +83,8 @@\n 'libmad.a',\n 'libFLAC.a',\n 'libmp3lame.a',\n+ 'l...
gh_patches_debug_524
rasdani/github-patches
git_diff
pydantic__pydantic-490
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- `.dict(by_alias=True)` throws an exception when trying to call with extra keys <!-- Questions, Feature Requests, and Bug Reports are all welcome --> <!-- delete as applicable: --> # Bug * OS: Mac OS * P...
diff --git a/pydantic/main.py b/pydantic/main.py --- a/pydantic/main.py +++ b/pydantic/main.py @@ -289,7 +289,7 @@ def _get_key_factory(self, by_alias: bool) -> Callable[..., str]: if by_alias: - return lambda fields, key: fields[key].alias + return lambda fields, key: fields[key]....
{"golden_diff": "diff --git a/pydantic/main.py b/pydantic/main.py\n--- a/pydantic/main.py\n+++ b/pydantic/main.py\n@@ -289,7 +289,7 @@\n \n def _get_key_factory(self, by_alias: bool) -> Callable[..., str]:\n if by_alias:\n- return lambda fields, key: fields[key].alias\n+ return lambda ...
gh_patches_debug_525
rasdani/github-patches
git_diff
getsentry__sentry-8375
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Project named "Billing" interferes with billing and usage page Hi, I'm using the hosted instance of Sentry. I have created a new project for the organization called "billing". I am trying to access the...
diff --git a/src/sentry/constants.py b/src/sentry/constants.py --- a/src/sentry/constants.py +++ b/src/sentry/constants.py @@ -93,7 +93,8 @@ RESERVED_PROJECT_SLUGS = frozenset(( 'api-keys', 'audit-log', 'auth', 'members', 'projects', - 'rate-limits', 'repos', 'settings', 'teams', + 'rate-limits', 'repos',...
{"golden_diff": "diff --git a/src/sentry/constants.py b/src/sentry/constants.py\n--- a/src/sentry/constants.py\n+++ b/src/sentry/constants.py\n@@ -93,7 +93,8 @@\n \n RESERVED_PROJECT_SLUGS = frozenset((\n 'api-keys', 'audit-log', 'auth', 'members', 'projects',\n- 'rate-limits', 'repos', 'settings', 'teams',\n+ ...
gh_patches_debug_526
rasdani/github-patches
git_diff
pypa__pip-2810
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- pip install --allow-all-external in requirements.txt file fails **With pip 7** requirements.txt file: ``` txt --allow-all-external mysql-connector-python ``` On comandline ``` bash pip install -r requireme...
diff --git a/pip/req/req_file.py b/pip/req/req_file.py --- a/pip/req/req_file.py +++ b/pip/req/req_file.py @@ -32,6 +32,7 @@ cmdoptions.find_links, cmdoptions.extra_index_url, cmdoptions.allow_external, + cmdoptions.allow_all_external, cmdoptions.no_allow_external, cmdoptions.allow_unsafe, ...
{"golden_diff": "diff --git a/pip/req/req_file.py b/pip/req/req_file.py\n--- a/pip/req/req_file.py\n+++ b/pip/req/req_file.py\n@@ -32,6 +32,7 @@\n cmdoptions.find_links,\n cmdoptions.extra_index_url,\n cmdoptions.allow_external,\n+ cmdoptions.allow_all_external,\n cmdoptions.no_allow_external,\n ...
gh_patches_debug_527
rasdani/github-patches
git_diff
googleapis__google-cloud-python-6841
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Container: Regional Cluster support for GKE clusters I'm unable to get or create regional clusters using the container_v1 client APIs. The [documentation](https://googleapis.github.io/google-cloud-python/la...
diff --git a/container/setup.py b/container/setup.py --- a/container/setup.py +++ b/container/setup.py @@ -22,7 +22,7 @@ name = 'google-cloud-container' description = 'Google Container Engine API client library' -version = '0.1.1' +version = '0.2.0' # Should be one of: # 'Development Status :: 3 - Alpha' # 'Deve...
{"golden_diff": "diff --git a/container/setup.py b/container/setup.py\n--- a/container/setup.py\n+++ b/container/setup.py\n@@ -22,7 +22,7 @@\n \n name = 'google-cloud-container'\n description = 'Google Container Engine API client library'\n-version = '0.1.1'\n+version = '0.2.0'\n # Should be one of:\n # 'Development St...
gh_patches_debug_528
rasdani/github-patches
git_diff
cocotb__cocotb-1980
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- GHDL waveform documentation I could not find how to make a cocotb+ghdl sim produce a vcd waveform. I eventually tracked it down by looking at makefile.ghdl. All that's needed is: make SIM=ghdl SIM_ARGS=--vcd...
diff --git a/documentation/source/conf.py b/documentation/source/conf.py --- a/documentation/source/conf.py +++ b/documentation/source/conf.py @@ -46,7 +46,10 @@ 'sphinx_tabs.tabs', ] -intersphinx_mapping = {'python': ('https://docs.python.org/3', None)} +intersphinx_mapping = { + 'python': ('https://doc...
{"golden_diff": "diff --git a/documentation/source/conf.py b/documentation/source/conf.py\n--- a/documentation/source/conf.py\n+++ b/documentation/source/conf.py\n@@ -46,7 +46,10 @@\n 'sphinx_tabs.tabs',\n ]\n \n-intersphinx_mapping = {'python': ('https://docs.python.org/3', None)}\n+intersphinx_mapping = {\n+ ...
gh_patches_debug_529
rasdani/github-patches
git_diff
Pyomo__pyomo-344
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Merge of improvements to CPLEX/Gurobi interfaces #331 conflicting with python virtual environments I noticed some very strange behavior running tests after the merge of #331: ``` Traceback (most recent call...
diff --git a/pyomo/solvers/plugins/solvers/GUROBI_RUN.py b/pyomo/solvers/plugins/solvers/GUROBI_RUN.py --- a/pyomo/solvers/plugins/solvers/GUROBI_RUN.py +++ b/pyomo/solvers/plugins/solvers/GUROBI_RUN.py @@ -11,8 +11,16 @@ import re + +""" +This script is run using the Gurobi/system python. Do not assume any third ...
{"golden_diff": "diff --git a/pyomo/solvers/plugins/solvers/GUROBI_RUN.py b/pyomo/solvers/plugins/solvers/GUROBI_RUN.py\n--- a/pyomo/solvers/plugins/solvers/GUROBI_RUN.py\n+++ b/pyomo/solvers/plugins/solvers/GUROBI_RUN.py\n@@ -11,8 +11,16 @@\n \n import re\n \n+\n+\"\"\"\n+This script is run using the Gurobi/system pyt...
gh_patches_debug_530
rasdani/github-patches
git_diff
streamlit__streamlit-4076
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Slider value visually overlaps with the edge of the sidebar # Summary The value label collides with the edges of the sidebar. It should change alignment when it gets close to the edges. # Steps to repr...
diff --git a/e2e/scripts/st_slider.py b/e2e/scripts/st_slider.py --- a/e2e/scripts/st_slider.py +++ b/e2e/scripts/st_slider.py @@ -14,6 +14,13 @@ import streamlit as st +s1 = st.sidebar.slider("Label A", 0, 12345678, 12345678) +st.sidebar.write("Value A:", s1) + +with st.sidebar.expander("Expander"): + s2 = st....
{"golden_diff": "diff --git a/e2e/scripts/st_slider.py b/e2e/scripts/st_slider.py\n--- a/e2e/scripts/st_slider.py\n+++ b/e2e/scripts/st_slider.py\n@@ -14,6 +14,13 @@\n \n import streamlit as st\n \n+s1 = st.sidebar.slider(\"Label A\", 0, 12345678, 12345678)\n+st.sidebar.write(\"Value A:\", s1)\n+\n+with st.sidebar.expa...
gh_patches_debug_531
rasdani/github-patches
git_diff
optuna__optuna-1717
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- LightGBMTunerCV not working for regression objective The script https://github.com/optuna/optuna/blob/master/examples/lightgbm_tuner_cv.py runs just fine as it is. However, I get a `KeyError: 'mse-mean'` if I...
diff --git a/optuna/integration/_lightgbm_tuner/alias.py b/optuna/integration/_lightgbm_tuner/alias.py --- a/optuna/integration/_lightgbm_tuner/alias.py +++ b/optuna/integration/_lightgbm_tuner/alias.py @@ -53,6 +53,10 @@ ], }, {"metric_name": "map", "alias_names": ["mean_average_precision"]}, + {...
{"golden_diff": "diff --git a/optuna/integration/_lightgbm_tuner/alias.py b/optuna/integration/_lightgbm_tuner/alias.py\n--- a/optuna/integration/_lightgbm_tuner/alias.py\n+++ b/optuna/integration/_lightgbm_tuner/alias.py\n@@ -53,6 +53,10 @@\n ],\n },\n {\"metric_name\": \"map\", \"alias_names\": [\"mea...
gh_patches_debug_532
rasdani/github-patches
git_diff
quantumlib__Cirq-6261
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- `random_rotations_between_grid_interaction_layers_circuit` output depends on the order of qubits in a pair **Description of the issue** Depending on the order of qubits and the qubits in the pairs you can ge...
diff --git a/cirq-core/cirq/experiments/random_quantum_circuit_generation.py b/cirq-core/cirq/experiments/random_quantum_circuit_generation.py --- a/cirq-core/cirq/experiments/random_quantum_circuit_generation.py +++ b/cirq-core/cirq/experiments/random_quantum_circuit_generation.py @@ -693,5 +693,5 @@ prng: 'np.ra...
{"golden_diff": "diff --git a/cirq-core/cirq/experiments/random_quantum_circuit_generation.py b/cirq-core/cirq/experiments/random_quantum_circuit_generation.py\n--- a/cirq-core/cirq/experiments/random_quantum_circuit_generation.py\n+++ b/cirq-core/cirq/experiments/random_quantum_circuit_generation.py\n@@ -693,5 +693,5 ...
gh_patches_debug_533
rasdani/github-patches
git_diff
django-oscar__django-oscar-2317
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Use the mailgun templates for our notification emails See http://blog.mailgun.com/transactional-html-email-templates/ We can use these to provide a good base template for our HTML emails. --- END ISSUE ---...
diff --git a/src/oscar/apps/customer/utils.py b/src/oscar/apps/customer/utils.py --- a/src/oscar/apps/customer/utils.py +++ b/src/oscar/apps/customer/utils.py @@ -10,6 +10,7 @@ from oscar.core.compat import user_is_authenticated from oscar.core.loading import get_model + CommunicationEvent = get_model('order', 'Co...
{"golden_diff": "diff --git a/src/oscar/apps/customer/utils.py b/src/oscar/apps/customer/utils.py\n--- a/src/oscar/apps/customer/utils.py\n+++ b/src/oscar/apps/customer/utils.py\n@@ -10,6 +10,7 @@\n from oscar.core.compat import user_is_authenticated\n from oscar.core.loading import get_model\n \n+\n CommunicationEvent...
gh_patches_debug_534
rasdani/github-patches
git_diff
nipy__nipype-1764
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- parameterize_dirs = False broken in python 3 ### Summary Using hashed dir parameterization is not working as expected. ### Actual behavior ``` File "/Users/wtriplett/git/nipype-py3/nipype/pipeline/eng...
diff --git a/nipype/pipeline/engine/nodes.py b/nipype/pipeline/engine/nodes.py --- a/nipype/pipeline/engine/nodes.py +++ b/nipype/pipeline/engine/nodes.py @@ -391,7 +391,7 @@ - Otherwise, return the parameterization unchanged. """ if len(param) > 32: - return sha1(param).hexdig...
{"golden_diff": "diff --git a/nipype/pipeline/engine/nodes.py b/nipype/pipeline/engine/nodes.py\n--- a/nipype/pipeline/engine/nodes.py\n+++ b/nipype/pipeline/engine/nodes.py\n@@ -391,7 +391,7 @@\n - Otherwise, return the parameterization unchanged.\n \"\"\"\n if len(param) > 32:\n- ...
gh_patches_debug_535
rasdani/github-patches
git_diff
digitalfabrik__integreat-cms-444
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Improve documentation of urls Explain how urls are added etc. and add docstrings of the following format: ``` """ [Summary] :param [ParamName]: [ParamDescription], defaults to [DefaultParamVal] :type [...
diff --git a/src/cms/urls.py b/src/cms/urls.py --- a/src/cms/urls.py +++ b/src/cms/urls.py @@ -1,4 +1,8 @@ -"""Provides routing to all submodules inside the application +""" +Django URL dispatcher for the cms package. +See :mod:`backend.urls` for the other namespaces of this application. + +For more information on this...
{"golden_diff": "diff --git a/src/cms/urls.py b/src/cms/urls.py\n--- a/src/cms/urls.py\n+++ b/src/cms/urls.py\n@@ -1,4 +1,8 @@\n-\"\"\"Provides routing to all submodules inside the application\n+\"\"\"\n+Django URL dispatcher for the cms package.\n+See :mod:`backend.urls` for the other namespaces of this application.\n...
gh_patches_debug_536
rasdani/github-patches
git_diff
streamlit__streamlit-5396
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- protobuf error on clean streamlit install of 1.12.3 ### Summary I installed streamlit, and couldn't use it due to a reported error from protobuf. Protobuf version 3.20.2 was installed automatically along w...
diff --git a/lib/setup.py b/lib/setup.py --- a/lib/setup.py +++ b/lib/setup.py @@ -45,7 +45,8 @@ "packaging>=14.1", "pandas>=0.21.0", "pillow>=6.2.0", - "protobuf<4,>=3.12", + # protobuf 3.20.2 is broken: https://github.com/protocolbuffers/protobuf/issues/10571 + "protobuf<4,>=3.12,!=3.20.2", ...
{"golden_diff": "diff --git a/lib/setup.py b/lib/setup.py\n--- a/lib/setup.py\n+++ b/lib/setup.py\n@@ -45,7 +45,8 @@\n \"packaging>=14.1\",\n \"pandas>=0.21.0\",\n \"pillow>=6.2.0\",\n- \"protobuf<4,>=3.12\",\n+ # protobuf 3.20.2 is broken: https://github.com/protocolbuffers/protobuf/issues/10571\n+ ...
gh_patches_debug_537
rasdani/github-patches
git_diff
gratipay__gratipay.com-3349
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- respect $10 minimum in charge failure notification From [FD1980](https://gratipay.freshdesk.com/helpdesk/tickets/1980) it appears that we're not doing this. ![screen shot 2015-04-17 at 10 38 40 am](https://c...
diff --git a/gratipay/billing/exchanges.py b/gratipay/billing/exchanges.py --- a/gratipay/billing/exchanges.py +++ b/gratipay/billing/exchanges.py @@ -179,6 +179,7 @@ # =============== cents, amount_str, charge_amount, fee = _prep_hit(amount) + amount = charge_amount - fee msg = "Holding " + amount_...
{"golden_diff": "diff --git a/gratipay/billing/exchanges.py b/gratipay/billing/exchanges.py\n--- a/gratipay/billing/exchanges.py\n+++ b/gratipay/billing/exchanges.py\n@@ -179,6 +179,7 @@\n # ===============\n \n cents, amount_str, charge_amount, fee = _prep_hit(amount)\n+ amount = charge_amount - fee\n m...
gh_patches_debug_538
rasdani/github-patches
git_diff
coala__coala-2036
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Debug output should contain files that get checked --- 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/...
diff --git a/coalib/processes/Processing.py b/coalib/processes/Processing.py --- a/coalib/processes/Processing.py +++ b/coalib/processes/Processing.py @@ -259,6 +259,8 @@ exception, log_level=LOG_LEVEL.WARNING) + log_printer.debug("Files...
{"golden_diff": "diff --git a/coalib/processes/Processing.py b/coalib/processes/Processing.py\n--- a/coalib/processes/Processing.py\n+++ b/coalib/processes/Processing.py\n@@ -259,6 +259,8 @@\n exception,\n log_level=LOG_LEVEL.WARNING)\n \n+ ...
gh_patches_debug_539
rasdani/github-patches
git_diff
uclapi__uclapi-226
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- timetable/data/departments endpoint returns 500 error The timetable/data/departments endpoint is currently returning a 500 error on any request. I know it's not a documented endpoint, but it would be nice ...
diff --git a/backend/uclapi/timetable/views.py b/backend/uclapi/timetable/views.py --- a/backend/uclapi/timetable/views.py +++ b/backend/uclapi/timetable/views.py @@ -82,7 +82,7 @@ depts["departments"].append({ "department_id": dept.deptid, "name": dept.name - }, rate_limiting_...
{"golden_diff": "diff --git a/backend/uclapi/timetable/views.py b/backend/uclapi/timetable/views.py\n--- a/backend/uclapi/timetable/views.py\n+++ b/backend/uclapi/timetable/views.py\n@@ -82,7 +82,7 @@\n depts[\"departments\"].append({\n \"department_id\": dept.deptid,\n \"name\": dept.na...
gh_patches_debug_540
rasdani/github-patches
git_diff
ansible-collections__community.vmware-1686
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- vmware_migrate_vmk: tests fail with 7.0.3 <!--- Verify first that your issue is not already reported on GitHub --> <!--- Also test if the latest release and devel branch are affected too --> <!--- Complete ...
diff --git a/plugins/modules/vmware_migrate_vmk.py b/plugins/modules/vmware_migrate_vmk.py --- a/plugins/modules/vmware_migrate_vmk.py +++ b/plugins/modules/vmware_migrate_vmk.py @@ -203,6 +203,8 @@ if vnic.spec.distributedVirtualPort.switchUuid == dvs.uuid: return "migrate...
{"golden_diff": "diff --git a/plugins/modules/vmware_migrate_vmk.py b/plugins/modules/vmware_migrate_vmk.py\n--- a/plugins/modules/vmware_migrate_vmk.py\n+++ b/plugins/modules/vmware_migrate_vmk.py\n@@ -203,6 +203,8 @@\n if vnic.spec.distributedVirtualPort.switchUuid == dvs.uuid:\n ...
gh_patches_debug_541
rasdani/github-patches
git_diff
sql-machine-learning__elasticdl-1195
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Do not check model_version_valid in ReportGradient if async. --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path...
diff --git a/elasticdl/python/master/servicer.py b/elasticdl/python/master/servicer.py --- a/elasticdl/python/master/servicer.py +++ b/elasticdl/python/master/servicer.py @@ -310,7 +310,7 @@ return empty_pb2.Empty() def ReportGradient(self, request, _): - model_version_valid = self._validate_mode...
{"golden_diff": "diff --git a/elasticdl/python/master/servicer.py b/elasticdl/python/master/servicer.py\n--- a/elasticdl/python/master/servicer.py\n+++ b/elasticdl/python/master/servicer.py\n@@ -310,7 +310,7 @@\n return empty_pb2.Empty()\n \n def ReportGradient(self, request, _):\n- model_version_val...
gh_patches_debug_542
rasdani/github-patches
git_diff
jazzband__django-axes-950
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- AXES_USE_USER_AGENT not functioning correctly This might be a duplicate of #677, but the user there did not provide enough detail for me to be sure. I am using the following versions of Django and Axes: `...
diff --git a/axes/helpers.py b/axes/helpers.py --- a/axes/helpers.py +++ b/axes/helpers.py @@ -205,7 +205,7 @@ if settings.AXES_USE_USER_AGENT: # 4. The HTTP User-Agent can be used to track e.g. one browser - filter_query.append({"user_agent": user_agent}) + filter_query[0]...
{"golden_diff": "diff --git a/axes/helpers.py b/axes/helpers.py\n--- a/axes/helpers.py\n+++ b/axes/helpers.py\n@@ -205,7 +205,7 @@\n \n if settings.AXES_USE_USER_AGENT:\n # 4. The HTTP User-Agent can be used to track e.g. one browser\n- filter_query.append({\"user_agent\": user_agent})\n+...
gh_patches_debug_543
rasdani/github-patches
git_diff
pytorch__pytorch-4788
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- unsupported Python type error from set_default_tensor_type() Hi, I've updated pytorch to the lastest master (`a54407a7`) from github, but got an error when I use `torch.set_default_tensor_type("torch.cuda.Fl...
diff --git a/torch/__init__.py b/torch/__init__.py --- a/torch/__init__.py +++ b/torch/__init__.py @@ -129,6 +129,11 @@ global Storage Tensor = _import_dotted_name(t) Storage = _import_dotted_name(t.replace('Tensor', 'Storage')) + + if 'cuda' in t: + import torch.cuda + torch.cuda.init()...
{"golden_diff": "diff --git a/torch/__init__.py b/torch/__init__.py\n--- a/torch/__init__.py\n+++ b/torch/__init__.py\n@@ -129,6 +129,11 @@\n global Storage\n Tensor = _import_dotted_name(t)\n Storage = _import_dotted_name(t.replace('Tensor', 'Storage'))\n+\n+ if 'cuda' in t:\n+ import torch.cuda\...
gh_patches_debug_544
rasdani/github-patches
git_diff
getnikola__nikola-933
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Make the template for tag index pages configurable. Tag index pages currently use the same template as other index pages. Make this configurable. --- END ISSUE --- Below are some code segments, each from a...
diff --git a/nikola/plugins/task/tags.py b/nikola/plugins/task/tags.py --- a/nikola/plugins/task/tags.py +++ b/nikola/plugins/task/tags.py @@ -189,7 +189,7 @@ return name # FIXME: deduplicate this with render_indexes - template_name = "index.tmpl" + template_name = "tagindex.tmpl" ...
{"golden_diff": "diff --git a/nikola/plugins/task/tags.py b/nikola/plugins/task/tags.py\n--- a/nikola/plugins/task/tags.py\n+++ b/nikola/plugins/task/tags.py\n@@ -189,7 +189,7 @@\n return name\n \n # FIXME: deduplicate this with render_indexes\n- template_name = \"index.tmpl\"\n+ templ...
gh_patches_debug_545
rasdani/github-patches
git_diff
apache__tvm-6881
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Do not show meta data when printing TIR Recently I found TVM will print meta when I do ```python print(tvm.lower(s, [A, B, C], simple_mode=True)) ``` Here is an example output in the tutorial website (...
diff --git a/python/tvm/ir/module.py b/python/tvm/ir/module.py --- a/python/tvm/ir/module.py +++ b/python/tvm/ir/module.py @@ -251,8 +251,7 @@ return tvm.relay.transform.InferType()(self) def __str__(self): - # TODO(jroesch): why does this hang sometimes? - return self.astext() + re...
{"golden_diff": "diff --git a/python/tvm/ir/module.py b/python/tvm/ir/module.py\n--- a/python/tvm/ir/module.py\n+++ b/python/tvm/ir/module.py\n@@ -251,8 +251,7 @@\n return tvm.relay.transform.InferType()(self)\n \n def __str__(self):\n- # TODO(jroesch): why does this hang sometimes?\n- return ...
gh_patches_debug_546
rasdani/github-patches
git_diff
encode__django-rest-framework-3815
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Rest Framework Settings file Performs an O(n) operation on settings access that could be O(1) Calling .keys() on a dictionary returns an iterable, so doing a membership test against that iterable is an O(n) o...
diff --git a/rest_framework/settings.py b/rest_framework/settings.py --- a/rest_framework/settings.py +++ b/rest_framework/settings.py @@ -196,7 +196,7 @@ return self._user_settings def __getattr__(self, attr): - if attr not in self.defaults.keys(): + if attr not in self.defaults: ...
{"golden_diff": "diff --git a/rest_framework/settings.py b/rest_framework/settings.py\n--- a/rest_framework/settings.py\n+++ b/rest_framework/settings.py\n@@ -196,7 +196,7 @@\n return self._user_settings\n \n def __getattr__(self, attr):\n- if attr not in self.defaults.keys():\n+ if attr not i...
gh_patches_debug_547
rasdani/github-patches
git_diff
encode__starlette-801
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Dangerous example regex for CORS Middleware? Looking at the docs for CORS Middlware here: https://www.starlette.io/middleware/#corsmiddleware , under the `allow_origin_regex` attribute, the example value is `...
diff --git a/starlette/middleware/cors.py b/starlette/middleware/cors.py --- a/starlette/middleware/cors.py +++ b/starlette/middleware/cors.py @@ -87,7 +87,7 @@ if self.allow_all_origins: return True - if self.allow_origin_regex is not None and self.allow_origin_regex.match( + if s...
{"golden_diff": "diff --git a/starlette/middleware/cors.py b/starlette/middleware/cors.py\n--- a/starlette/middleware/cors.py\n+++ b/starlette/middleware/cors.py\n@@ -87,7 +87,7 @@\n if self.allow_all_origins:\n return True\n \n- if self.allow_origin_regex is not None and self.allow_origin_re...
gh_patches_debug_548
rasdani/github-patches
git_diff
ckan__ckan-7518
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Activity stream plugin on CKAN 2.10 does not redirect unauthenticated dashboard to login page ## CKAN version 2.10 ## Describe the bug The dashboard views are meant to redirect to the login page if t...
diff --git a/ckanext/activity/views.py b/ckanext/activity/views.py --- a/ckanext/activity/views.py +++ b/ckanext/activity/views.py @@ -810,6 +810,10 @@ @bp.route("/dashboard/", strict_slashes=False) def dashboard() -> str: + if tk.current_user.is_anonymous: + tk.h.flash_error(tk._(u'Not authorized to see ...
{"golden_diff": "diff --git a/ckanext/activity/views.py b/ckanext/activity/views.py\n--- a/ckanext/activity/views.py\n+++ b/ckanext/activity/views.py\n@@ -810,6 +810,10 @@\n \n @bp.route(\"/dashboard/\", strict_slashes=False)\n def dashboard() -> str:\n+ if tk.current_user.is_anonymous:\n+ tk.h.flash_error(tk...
gh_patches_debug_549
rasdani/github-patches
git_diff
cisagov__manage.get.gov-1683
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Handle www. prefix when input in /availability API [PR#100 in getgov-home for additional context ](https://github.com/cisagov/getgov-home/pull/100) Handle edge case of including [www](http://www/). in the s...
diff --git a/src/registrar/models/utility/domain_helper.py b/src/registrar/models/utility/domain_helper.py --- a/src/registrar/models/utility/domain_helper.py +++ b/src/registrar/models/utility/domain_helper.py @@ -57,6 +57,9 @@ # If blank ok is true, just return the domain return domain + ...
{"golden_diff": "diff --git a/src/registrar/models/utility/domain_helper.py b/src/registrar/models/utility/domain_helper.py\n--- a/src/registrar/models/utility/domain_helper.py\n+++ b/src/registrar/models/utility/domain_helper.py\n@@ -57,6 +57,9 @@\n # If blank ok is true, just return the domain\n ...
gh_patches_debug_550
rasdani/github-patches
git_diff
netbox-community__netbox-11814
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add the ability to hide virtual interfaces ### NetBox version v3.3.5 ### Feature type New functionality ### Proposed functionality Expand on https://github.com/netbox-community/netbox/issues/4247 to add ...
diff --git a/netbox/dcim/tables/devices.py b/netbox/dcim/tables/devices.py --- a/netbox/dcim/tables/devices.py +++ b/netbox/dcim/tables/devices.py @@ -588,6 +588,7 @@ 'class': get_interface_row_class, 'data-name': lambda record: record.name, 'data-enabled': get_interface_state_att...
{"golden_diff": "diff --git a/netbox/dcim/tables/devices.py b/netbox/dcim/tables/devices.py\n--- a/netbox/dcim/tables/devices.py\n+++ b/netbox/dcim/tables/devices.py\n@@ -588,6 +588,7 @@\n 'class': get_interface_row_class,\n 'data-name': lambda record: record.name,\n 'data-enabled': ...
gh_patches_debug_551
rasdani/github-patches
git_diff
paperless-ngx__paperless-ngx-1358
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [BUG] Error starting gunicorn when IPv6 is disabled on host ### Description Paperless fails to launch in at least certain scenarios when IPv6 is disabled on the host. This was working before a change from li...
diff --git a/gunicorn.conf.py b/gunicorn.conf.py --- a/gunicorn.conf.py +++ b/gunicorn.conf.py @@ -1,6 +1,6 @@ import os -bind = f'[::]:{os.getenv("PAPERLESS_PORT", 8000)}' +bind = f'{os.getenv("PAPERLESS_BIND_ADDR", "[::]")}:{os.getenv("PAPERLESS_PORT", 8000)}' workers = int(os.getenv("PAPERLESS_WEBSERVER_WORKERS"...
{"golden_diff": "diff --git a/gunicorn.conf.py b/gunicorn.conf.py\n--- a/gunicorn.conf.py\n+++ b/gunicorn.conf.py\n@@ -1,6 +1,6 @@\n import os\n \n-bind = f'[::]:{os.getenv(\"PAPERLESS_PORT\", 8000)}'\n+bind = f'{os.getenv(\"PAPERLESS_BIND_ADDR\", \"[::]\")}:{os.getenv(\"PAPERLESS_PORT\", 8000)}'\n workers = int(os.get...
gh_patches_debug_552
rasdani/github-patches
git_diff
microsoft__ptvsd-229
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Running program to completion prints error message before exiting * Debug program without any breakpoints * Python program contains simple print statements * When run to completion debugger prints the follo...
diff --git a/ptvsd/wrapper.py b/ptvsd/wrapper.py --- a/ptvsd/wrapper.py +++ b/ptvsd/wrapper.py @@ -1350,7 +1350,7 @@ def _add_atexit_handler(proc, server_thread): - def handler(proc, server_thread): + def handler(): proc.close() if server_thread.is_alive(): server_thread.join(W...
{"golden_diff": "diff --git a/ptvsd/wrapper.py b/ptvsd/wrapper.py\n--- a/ptvsd/wrapper.py\n+++ b/ptvsd/wrapper.py\n@@ -1350,7 +1350,7 @@\n \n \n def _add_atexit_handler(proc, server_thread):\n- def handler(proc, server_thread):\n+ def handler():\n proc.close()\n if server_thread.is_alive():\n ...
gh_patches_debug_553
rasdani/github-patches
git_diff
urllib3__urllib3-729
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- conn.close() can raise OpenSSL exception after idle timeout When returning a connection to the pool, urllib3 calls `conn.close()`: ``` if conn and is_connection_dropped(conn): log.info("R...
diff --git a/urllib3/contrib/pyopenssl.py b/urllib3/contrib/pyopenssl.py --- a/urllib3/contrib/pyopenssl.py +++ b/urllib3/contrib/pyopenssl.py @@ -217,7 +217,10 @@ def close(self): if self._makefile_refs < 1: - return self.connection.close() + try: + return self.conn...
{"golden_diff": "diff --git a/urllib3/contrib/pyopenssl.py b/urllib3/contrib/pyopenssl.py\n--- a/urllib3/contrib/pyopenssl.py\n+++ b/urllib3/contrib/pyopenssl.py\n@@ -217,7 +217,10 @@\n \n def close(self):\n if self._makefile_refs < 1:\n- return self.connection.close()\n+ try:\n+ ...
gh_patches_debug_554
rasdani/github-patches
git_diff
getredash__redash-5354
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Minor Salesforce runner fix <!-- We use GitHub only for bug reports 🐛 Anything else should be posted to https://discuss.redash.io 👫 🚨For support, help & questions use https://discuss.redash.io/c/s...
diff --git a/redash/query_runner/salesforce.py b/redash/query_runner/salesforce.py --- a/redash/query_runner/salesforce.py +++ b/redash/query_runner/salesforce.py @@ -81,7 +81,7 @@ "default": DEFAULT_API_VERSION, }, }, - "required": ["username", "password", ...
{"golden_diff": "diff --git a/redash/query_runner/salesforce.py b/redash/query_runner/salesforce.py\n--- a/redash/query_runner/salesforce.py\n+++ b/redash/query_runner/salesforce.py\n@@ -81,7 +81,7 @@\n \"default\": DEFAULT_API_VERSION,\n },\n },\n- \"required\...
gh_patches_debug_555
rasdani/github-patches
git_diff
kymatio__kymatio-288
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- BUG 3D benchmark fails on GPU It doesn't call the `cuda()` function (now required) when giving a CUDA tensor input, so the scattering transform errors. --- END ISSUE --- Below are some code segments, each f...
diff --git a/examples/3d/compute_speed.py b/examples/3d/compute_speed.py --- a/examples/3d/compute_speed.py +++ b/examples/3d/compute_speed.py @@ -97,8 +97,10 @@ print(fmt_str.format(backend.NAME, device.upper())) if device == 'gpu': + scattering.cuda() x = x.cuda() else: + scatt...
{"golden_diff": "diff --git a/examples/3d/compute_speed.py b/examples/3d/compute_speed.py\n--- a/examples/3d/compute_speed.py\n+++ b/examples/3d/compute_speed.py\n@@ -97,8 +97,10 @@\n print(fmt_str.format(backend.NAME, device.upper()))\n \n if device == 'gpu':\n+ scattering.cuda()\n x = x.cuda()\...
gh_patches_debug_556
rasdani/github-patches
git_diff
liqd__a4-meinberlin-2973
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- testing 2956: add platform mail * footer needs to be changed (see comments of story in taiga) * change wording in dropdown to "Plattform-Mail" in German * pre-entered name "meinberlin" should be changed to ...
diff --git a/meinberlin/config/settings/base.py b/meinberlin/config/settings/base.py --- a/meinberlin/config/settings/base.py +++ b/meinberlin/config/settings/base.py @@ -246,7 +246,7 @@ # Wagtail settings -WAGTAIL_SITE_NAME = 'meinberlin' +WAGTAIL_SITE_NAME = 'meinBerlin' WAGTAILIMAGES_IMAGE_MODEL = 'meinberlin_...
{"golden_diff": "diff --git a/meinberlin/config/settings/base.py b/meinberlin/config/settings/base.py\n--- a/meinberlin/config/settings/base.py\n+++ b/meinberlin/config/settings/base.py\n@@ -246,7 +246,7 @@\n \n # Wagtail settings\n \n-WAGTAIL_SITE_NAME = 'meinberlin'\n+WAGTAIL_SITE_NAME = 'meinBerlin'\n WAGTAILIMAGES_...
gh_patches_debug_557
rasdani/github-patches
git_diff
ibis-project__ibis-4790
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- docs: infinite build when using `mkdocs serve` It appears that when using `mkdocs serve` the docs are repeatedly rebuilt to no end. I suspect there's a file that we're generating (maybe the operation matri...
diff --git a/gen_matrix.py b/gen_matrix.py --- a/gen_matrix.py +++ b/gen_matrix.py @@ -69,7 +69,15 @@ "backends", "support_matrix.csv", ) - table.to_csv(dst, index_label="Backends") + + if dst.exists(): + old = pd.read_csv(dst, index_col="Backends") + should_write = not old.eq...
{"golden_diff": "diff --git a/gen_matrix.py b/gen_matrix.py\n--- a/gen_matrix.py\n+++ b/gen_matrix.py\n@@ -69,7 +69,15 @@\n \"backends\",\n \"support_matrix.csv\",\n )\n- table.to_csv(dst, index_label=\"Backends\")\n+\n+ if dst.exists():\n+ old = pd.read_csv(dst, index_col=\"Backends\")...
gh_patches_debug_558
rasdani/github-patches
git_diff
urllib3__urllib3-678
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- setup.py extra_require for certifi, pyopenssl, other? Try to setup as many of https://urllib3.readthedocs.org/en/latest/security.html#security's recommended dependencies as possible. Maybe something like `pi...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -54,4 +54,15 @@ 'tornado', ], test_suite='test', + extras_require={ + 'secure;python_version<="2.7"': [ + 'pyOpenSSL', + 'ndg-httpsclient', + 'pyasn1', + 'certifi'...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -54,4 +54,15 @@\n 'tornado',\n ],\n test_suite='test',\n+ extras_require={\n+ 'secure;python_version<=\"2.7\"': [\n+ 'pyOpenSSL',\n+ 'ndg-httpsclient',\n+ 'pya...
gh_patches_debug_559
rasdani/github-patches
git_diff
kubeflow__pipelines-6691
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [sdk] dependency conflict with tensorflow 2.6.0 and seldon-core ### Environment * KFP version: 1.7 * KFP SDK version: 1.8.3 * All dependencies version: ``` [~]$ pip list | grep kfp kfp ...
diff --git a/sdk/python/setup.py b/sdk/python/setup.py --- a/sdk/python/setup.py +++ b/sdk/python/setup.py @@ -43,7 +43,7 @@ 'kfp-server-api>=1.1.2,<2.0.0', 'jsonschema>=3.0.1,<4', 'tabulate>=0.8.6,<1', - 'click>=7.1.1,<8', + 'click>=7.1.2,<9', 'Deprecated>=1.2.7,<2', 'strip-hints>=0.1.8,...
{"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@@ -43,7 +43,7 @@\n 'kfp-server-api>=1.1.2,<2.0.0',\n 'jsonschema>=3.0.1,<4',\n 'tabulate>=0.8.6,<1',\n- 'click>=7.1.1,<8',\n+ 'click>=7.1.2,<9',\n 'Deprecated>=1.2.7,<2',...
gh_patches_debug_560
rasdani/github-patches
git_diff
UTNkar__moore-144
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Wrong translation <!-- Do you want to ask a question? Are you looking for support? The system administrator can help you: admin@utn.se --> ### Prerequisites * [ ] Put an X between the brackets on this l...
diff --git a/website/home/models.py b/website/home/models.py --- a/website/home/models.py +++ b/website/home/models.py @@ -121,7 +121,7 @@ FieldPanel('title_sv'), ]), FieldPanel('text_en'), - FieldPanel('text_en'), + FieldPanel('text_sv'), FieldPanel('link'), ...
{"golden_diff": "diff --git a/website/home/models.py b/website/home/models.py\n--- a/website/home/models.py\n+++ b/website/home/models.py\n@@ -121,7 +121,7 @@\n FieldPanel('title_sv'),\n ]),\n FieldPanel('text_en'),\n- FieldPanel('text_en'),\n+ FieldPanel('text_sv'),\n ...
gh_patches_debug_561
rasdani/github-patches
git_diff
googleapis__google-api-python-client-295
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- BatchError is unprintable using default constructor (one string) This one should be pretty simple, I hope. Here's the constructor signature: `def __init__(self, reason, resp=None, content=None):`, which does...
diff --git a/googleapiclient/errors.py b/googleapiclient/errors.py --- a/googleapiclient/errors.py +++ b/googleapiclient/errors.py @@ -126,6 +126,9 @@ self.reason = reason def __repr__(self): + if getattr(self.resp, 'status', None) is None: + return '<BatchError "%s">' % (self.reason) + else: ...
{"golden_diff": "diff --git a/googleapiclient/errors.py b/googleapiclient/errors.py\n--- a/googleapiclient/errors.py\n+++ b/googleapiclient/errors.py\n@@ -126,6 +126,9 @@\n self.reason = reason\n \n def __repr__(self):\n+ if getattr(self.resp, 'status', None) is None:\n+ return '<BatchError \"%s\">' % (se...
gh_patches_debug_562
rasdani/github-patches
git_diff
python-poetry__poetry-1948
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- poetry tries to reinstall from git when using annotated tags as references - [x] I am on the [latest](https://github.com/python-poetry/poetry/releases/latest) Poetry version. - [x] I have searched the [issue...
diff --git a/poetry/vcs/git.py b/poetry/vcs/git.py --- a/poetry/vcs/git.py +++ b/poetry/vcs/git.py @@ -229,7 +229,9 @@ folder.as_posix(), ] - args += ["rev-parse", rev] + # We need "^{commit}" to ensure that the commit SHA of the commit the + # tag points to is retur...
{"golden_diff": "diff --git a/poetry/vcs/git.py b/poetry/vcs/git.py\n--- a/poetry/vcs/git.py\n+++ b/poetry/vcs/git.py\n@@ -229,7 +229,9 @@\n folder.as_posix(),\n ]\n \n- args += [\"rev-parse\", rev]\n+ # We need \"^{commit}\" to ensure that the commit SHA of the commit the\n+ ...
gh_patches_debug_563
rasdani/github-patches
git_diff
google__turbinia-531
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- turbiniactl status -u <user> should show full history The default number of days to show history for is 1, so if you do turbiniactl status -u <user> it doesn't show the full history. Right now if you want to...
diff --git a/turbinia/client.py b/turbinia/client.py --- a/turbinia/client.py +++ b/turbinia/client.py @@ -697,6 +697,8 @@ Returns: String of task status """ + if user and days == 0: + days = 1000 task_results = self.get_task_data( instance, project, region, days, task_id, request...
{"golden_diff": "diff --git a/turbinia/client.py b/turbinia/client.py\n--- a/turbinia/client.py\n+++ b/turbinia/client.py\n@@ -697,6 +697,8 @@\n Returns:\n String of task status\n \"\"\"\n+ if user and days == 0:\n+ days = 1000\n task_results = self.get_task_data(\n instance, project, ...
gh_patches_debug_564
rasdani/github-patches
git_diff
OctoPrint__OctoPrint-4389
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- GitHub tags are only read up to the first `-` character, breaking tags such as `1.0.0-rc1` ### The problem The software update plugin does a load of parsing to compare the GitHub tag version to the one from ...
diff --git a/src/octoprint/util/version.py b/src/octoprint/util/version.py --- a/src/octoprint/util/version.py +++ b/src/octoprint/util/version.py @@ -208,8 +208,6 @@ def normalize_version(version): - if "-" in version: - version = version[: version.find("-")] # Debian has the python version set t...
{"golden_diff": "diff --git a/src/octoprint/util/version.py b/src/octoprint/util/version.py\n--- a/src/octoprint/util/version.py\n+++ b/src/octoprint/util/version.py\n@@ -208,8 +208,6 @@\n \n \n def normalize_version(version):\n- if \"-\" in version:\n- version = version[: version.find(\"-\")]\n \n # Debi...
gh_patches_debug_565
rasdani/github-patches
git_diff
evennia__evennia-1515
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- @delaccount does not delete account - gives error #### Brief summary of issue: @delaccount does not delete account - gives error #### Steps to reproduce the issue: 1. Logged onto mygame as #1 account...
diff --git a/evennia/commands/default/admin.py b/evennia/commands/default/admin.py --- a/evennia/commands/default/admin.py +++ b/evennia/commands/default/admin.py @@ -301,7 +301,7 @@ # one single match - account = accounts.pop() + account = accounts.first() if not account.access(ca...
{"golden_diff": "diff --git a/evennia/commands/default/admin.py b/evennia/commands/default/admin.py\n--- a/evennia/commands/default/admin.py\n+++ b/evennia/commands/default/admin.py\n@@ -301,7 +301,7 @@\n \n # one single match\n \n- account = accounts.pop()\n+ account = accounts.first()\n \n ...
gh_patches_debug_566
rasdani/github-patches
git_diff
vyperlang__vyper-3256
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- `HashMap` no longer accepts `Enum` as key type ### Version Information * vyper Version (output of `vyper --version`): 0.3.8+commit.02339dfd * OS: OSX * Python Version (output of `python --version`): 3.8....
diff --git a/vyper/semantics/types/user.py b/vyper/semantics/types/user.py --- a/vyper/semantics/types/user.py +++ b/vyper/semantics/types/user.py @@ -41,6 +41,7 @@ # enums, but not static arrays of enums _as_darray = True _is_prim_word = True + _as_hashmap_key = True def __init__(self, name: s...
{"golden_diff": "diff --git a/vyper/semantics/types/user.py b/vyper/semantics/types/user.py\n--- a/vyper/semantics/types/user.py\n+++ b/vyper/semantics/types/user.py\n@@ -41,6 +41,7 @@\n # enums, but not static arrays of enums\n _as_darray = True\n _is_prim_word = True\n+ _as_hashmap_key = True\n \n ...
gh_patches_debug_567
rasdani/github-patches
git_diff
rotki__rotki-2296
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Maker DAO ETH deposits are double-counted ## Problem Definition My MakerDAO ETH-A vault balance seems to be counted as ETH and as WETH resulting in a double count. ### System Description Operating ...
diff --git a/rotkehlchen/chain/manager.py b/rotkehlchen/chain/manager.py --- a/rotkehlchen/chain/manager.py +++ b/rotkehlchen/chain/manager.py @@ -101,6 +101,9 @@ 'Synthetix': ['SNX'], # Ampleforth's AMPL token is in all_assets.json 'Ampleforth': ['AMPL'], + # MakerDAO vault balances are already detec...
{"golden_diff": "diff --git a/rotkehlchen/chain/manager.py b/rotkehlchen/chain/manager.py\n--- a/rotkehlchen/chain/manager.py\n+++ b/rotkehlchen/chain/manager.py\n@@ -101,6 +101,9 @@\n 'Synthetix': ['SNX'],\n # Ampleforth's AMPL token is in all_assets.json\n 'Ampleforth': ['AMPL'],\n+ # MakerDAO vault ba...
gh_patches_debug_568
rasdani/github-patches
git_diff
Lightning-AI__pytorch-lightning-274
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Make test_tube optional **Is your feature request related to a problem? Please describe.** `test_tube` is only needed when using `TestTubeLogger`, thus it should not be an install requirement like `mlflow`. ...
diff --git a/pytorch_lightning/logging/__init__.py b/pytorch_lightning/logging/__init__.py --- a/pytorch_lightning/logging/__init__.py +++ b/pytorch_lightning/logging/__init__.py @@ -1,6 +1,9 @@ from .base import LightningLoggerBase, rank_zero_only -from .test_tube_logger import TestTubeLogger +try: + from .test_...
{"golden_diff": "diff --git a/pytorch_lightning/logging/__init__.py b/pytorch_lightning/logging/__init__.py\n--- a/pytorch_lightning/logging/__init__.py\n+++ b/pytorch_lightning/logging/__init__.py\n@@ -1,6 +1,9 @@\n from .base import LightningLoggerBase, rank_zero_only\n-from .test_tube_logger import TestTubeLogger\n ...
gh_patches_debug_569
rasdani/github-patches
git_diff
cisagov__manage.get.gov-1361
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Create sandbox for Kristina ### Issue description create a dev sandbox for Kristina so she can have branches that deploy to it specifically ### Acceptance criteria -sandbox and infra is created ### Additi...
diff --git a/src/registrar/config/settings.py b/src/registrar/config/settings.py --- a/src/registrar/config/settings.py +++ b/src/registrar/config/settings.py @@ -619,6 +619,7 @@ ALLOWED_HOSTS = [ "getgov-stable.app.cloud.gov", "getgov-staging.app.cloud.gov", + "getgov-ky.app.cloud.gov", "getgov-es.a...
{"golden_diff": "diff --git a/src/registrar/config/settings.py b/src/registrar/config/settings.py\n--- a/src/registrar/config/settings.py\n+++ b/src/registrar/config/settings.py\n@@ -619,6 +619,7 @@\n ALLOWED_HOSTS = [\n \"getgov-stable.app.cloud.gov\",\n \"getgov-staging.app.cloud.gov\",\n+ \"getgov-ky.app....
gh_patches_debug_570
rasdani/github-patches
git_diff
AnalogJ__lexicon-1005
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Plesk provider not working: invalid request (error code 1014) The Plesk provider seems to be not working at all: ``` lexicon plesk --log_level DEBUG --auth-username apiuser --auth-password secret --plesk-...
diff --git a/lexicon/providers/plesk.py b/lexicon/providers/plesk.py --- a/lexicon/providers/plesk.py +++ b/lexicon/providers/plesk.py @@ -108,7 +108,7 @@ def __find_site(self): return self.__simple_request( - "site", "get", {"filter": {"name": self.domain, "dataset": {}}} + "site"...
{"golden_diff": "diff --git a/lexicon/providers/plesk.py b/lexicon/providers/plesk.py\n--- a/lexicon/providers/plesk.py\n+++ b/lexicon/providers/plesk.py\n@@ -108,7 +108,7 @@\n \n def __find_site(self):\n return self.__simple_request(\n- \"site\", \"get\", {\"filter\": {\"name\": self.domain, \"d...
gh_patches_debug_571
rasdani/github-patches
git_diff
cupy__cupy-1837
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Bundle header files for fp16 CUDA 9.2 or later allows redistribution of `cuda_fp16.h` and `cuda_fp16.hpp`. https://docs.nvidia.com/cuda/archive/9.2/eula/#attachment-a Let's bundle them into the repository...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -107,6 +107,8 @@ 'core/include/cupy/carray.cuh', 'core/include/cupy/complex.cuh', 'core/include/cupy/atomics.cuh', + 'core/include/cupy/_cuda/cuda-*/*.h', + 'core/include/cupy/_cuda/cuda-*/*.hpp', 'cuda/c...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -107,6 +107,8 @@\n 'core/include/cupy/carray.cuh',\n 'core/include/cupy/complex.cuh',\n 'core/include/cupy/atomics.cuh',\n+ 'core/include/cupy/_cuda/cuda-*/*.h',\n+ 'core/include/cupy/_cuda/cuda-*...
gh_patches_debug_572
rasdani/github-patches
git_diff
activeloopai__deeplake-1998
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [FEATURE] Add license in PyPI packages ## 🚨🚨 Feature Request - [x] A new implementation (Improvement) ### Is your feature request related to a problem? deeplake, hub and libdeeplake currently use ...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -103,6 +103,10 @@ "Documentation": "https://docs.activeloop.ai/", "Source": "https://github.com/activeloopai/deeplake", }, + "license": "MPL-2.0", + "classifiers": [ + "License :: OSI Approved :: Mozilla Public License...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -103,6 +103,10 @@\n \"Documentation\": \"https://docs.activeloop.ai/\",\n \"Source\": \"https://github.com/activeloopai/deeplake\",\n },\n+ \"license\": \"MPL-2.0\",\n+ \"classifiers\": [\n+ \"License ...
gh_patches_debug_573
rasdani/github-patches
git_diff
certbot__certbot-9813
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- AssertionError: Action corresponding to argument - is None ## My operating system is (include version): Ubuntu 22.04 ## I installed Certbot with (snap, OS package manager, pip, certbot-auto, etc): Runni...
diff --git a/certbot/certbot/_internal/cli/helpful.py b/certbot/certbot/_internal/cli/helpful.py --- a/certbot/certbot/_internal/cli/helpful.py +++ b/certbot/certbot/_internal/cli/helpful.py @@ -219,6 +219,8 @@ if '=' in arg: arg = arg.split('=')[0] + elif ' ' in a...
{"golden_diff": "diff --git a/certbot/certbot/_internal/cli/helpful.py b/certbot/certbot/_internal/cli/helpful.py\n--- a/certbot/certbot/_internal/cli/helpful.py\n+++ b/certbot/certbot/_internal/cli/helpful.py\n@@ -219,6 +219,8 @@\n \n if '=' in arg:\n arg = arg.split('=')[0]\n+ ...
gh_patches_debug_574
rasdani/github-patches
git_diff
spack__spack-5031
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Adios2 missing zeromq dependency @ax3l : I did a normal build without specifying any variants Call Stack (most recent call first): ..../cmake-3.9/Modules/FindPackageHandleStandardArgs.cmake:377 (_...
diff --git a/var/spack/repos/builtin/packages/adios2/package.py b/var/spack/repos/builtin/packages/adios2/package.py --- a/var/spack/repos/builtin/packages/adios2/package.py +++ b/var/spack/repos/builtin/packages/adios2/package.py @@ -77,6 +77,7 @@ # depends_on('pybind11@2.1.1:', when='+python') depends_on(...
{"golden_diff": "diff --git a/var/spack/repos/builtin/packages/adios2/package.py b/var/spack/repos/builtin/packages/adios2/package.py\n--- a/var/spack/repos/builtin/packages/adios2/package.py\n+++ b/var/spack/repos/builtin/packages/adios2/package.py\n@@ -77,6 +77,7 @@\n # depends_on('pybind11@2.1.1:', when='+python...
gh_patches_debug_575
rasdani/github-patches
git_diff
google__clusterfuzz-2687
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- upgrade process fails due to upload of clusterfuzz-source.manifest file So I tired to deploy the latest version for 2.5.7 and I kept getting this error that it could not upload the clusterfuzz-source.manifest...
diff --git a/src/local/butler/deploy.py b/src/local/butler/deploy.py --- a/src/local/butler/deploy.py +++ b/src/local/butler/deploy.py @@ -225,7 +225,7 @@ else: manifest_suffix = '' - common.execute('gsutil cp -a public-read %s ' + common.execute('gsutil cp %s ' 'gs://%s/clusterfuzz-source...
{"golden_diff": "diff --git a/src/local/butler/deploy.py b/src/local/butler/deploy.py\n--- a/src/local/butler/deploy.py\n+++ b/src/local/butler/deploy.py\n@@ -225,7 +225,7 @@\n else:\n manifest_suffix = ''\n \n- common.execute('gsutil cp -a public-read %s '\n+ common.execute('gsutil cp %s '\n '...
gh_patches_debug_576
rasdani/github-patches
git_diff
deepset-ai__haystack-119
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Embedding failed with large-nli-stsb model but work for base model Trying to make use of the pre-trained model in sentence-transformer. It works for base model (tried bert-base and roberta-base) but failed i...
diff --git a/haystack/database/elasticsearch.py b/haystack/database/elasticsearch.py --- a/haystack/database/elasticsearch.py +++ b/haystack/database/elasticsearch.py @@ -89,7 +89,7 @@ doc["_op_type"] = "create" doc["_index"] = self.index - bulk(self.client, documents) + bulk(s...
{"golden_diff": "diff --git a/haystack/database/elasticsearch.py b/haystack/database/elasticsearch.py\n--- a/haystack/database/elasticsearch.py\n+++ b/haystack/database/elasticsearch.py\n@@ -89,7 +89,7 @@\n doc[\"_op_type\"] = \"create\"\n doc[\"_index\"] = self.index\n \n- bulk(self.clie...
gh_patches_debug_577
rasdani/github-patches
git_diff
Qiskit__qiskit-9051
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Should be able to create CouplingMap from CouplingMap ### Environment - **Qiskit Terra version**: 0.22rc1 - **Python version**: 3.10.6 - **Operating system**: OSX ### What is happening? ```python from...
diff --git a/qiskit/transpiler/coupling.py b/qiskit/transpiler/coupling.py --- a/qiskit/transpiler/coupling.py +++ b/qiskit/transpiler/coupling.py @@ -79,6 +79,9 @@ """ return self.graph.edge_list() + def __iter__(self): + return iter(self.graph.edge_list()) + def add_physical_qubit(s...
{"golden_diff": "diff --git a/qiskit/transpiler/coupling.py b/qiskit/transpiler/coupling.py\n--- a/qiskit/transpiler/coupling.py\n+++ b/qiskit/transpiler/coupling.py\n@@ -79,6 +79,9 @@\n \"\"\"\n return self.graph.edge_list()\n \n+ def __iter__(self):\n+ return iter(self.graph.edge_list())\n+\...
gh_patches_debug_578
rasdani/github-patches
git_diff
googleapis__google-auth-library-python-937
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- new cachetools version (5.0.0+) can't work with google-auth `cachetools` has released a new version (5.0.0) which conflicts with google-auth requirements of it being <5, this prevents updates to the `cachetoo...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ DEPENDENCIES = ( - "cachetools>=2.0.0,<5.0", + "cachetools>=2.0.0,<6.0", "pyasn1-modules>=0.2.1", # rsa==4.5 is the last version to support 2.7 # https://github.com/sybrenstuvel/python-rsa/issues/152#issuecomment-...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -20,7 +20,7 @@\n \n \n DEPENDENCIES = (\n- \"cachetools>=2.0.0,<5.0\",\n+ \"cachetools>=2.0.0,<6.0\",\n \"pyasn1-modules>=0.2.1\",\n # rsa==4.5 is the last version to support 2.7\n # https://github.com/sybrenstuvel/p...
gh_patches_debug_579
rasdani/github-patches
git_diff
geopandas__geopandas-2181
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- BUG: shapely-based dissolve errors if a group contains None If you have `None` in a geometry column, `dissolve` using shapely engine errors on AttributeError. I just encountered this in #2177. ```py gpd.o...
diff --git a/geopandas/_vectorized.py b/geopandas/_vectorized.py --- a/geopandas/_vectorized.py +++ b/geopandas/_vectorized.py @@ -891,7 +891,11 @@ if compat.USE_PYGEOS: return _pygeos_to_shapely(pygeos.union_all(data)) else: - return shapely.ops.unary_union(data) + data = [g for g in d...
{"golden_diff": "diff --git a/geopandas/_vectorized.py b/geopandas/_vectorized.py\n--- a/geopandas/_vectorized.py\n+++ b/geopandas/_vectorized.py\n@@ -891,7 +891,11 @@\n if compat.USE_PYGEOS:\n return _pygeos_to_shapely(pygeos.union_all(data))\n else:\n- return shapely.ops.unary_union(data)\n+ ...
gh_patches_debug_580
rasdani/github-patches
git_diff
aio-libs__aiohttp-5928
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Python 3.10 compatibility — deprecated loop argument for asnycio.sleep/gather calls ### Describe the bug Hi, Tests currently fail with Python 3.10 beta 4 because the loop attribute was removed. ### To ...
diff --git a/aiohttp/web.py b/aiohttp/web.py --- a/aiohttp/web.py +++ b/aiohttp/web.py @@ -441,9 +441,7 @@ for task in to_cancel: task.cancel() - loop.run_until_complete( - asyncio.gather(*to_cancel, loop=loop, return_exceptions=True) - ) + loop.run_until_complete(asyncio.gather(*to_canc...
{"golden_diff": "diff --git a/aiohttp/web.py b/aiohttp/web.py\n--- a/aiohttp/web.py\n+++ b/aiohttp/web.py\n@@ -441,9 +441,7 @@\n for task in to_cancel:\n task.cancel()\n \n- loop.run_until_complete(\n- asyncio.gather(*to_cancel, loop=loop, return_exceptions=True)\n- )\n+ loop.run_until_compl...
gh_patches_debug_581
rasdani/github-patches
git_diff
aio-libs__aiohttp-5929
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Python 3.10 compatibility — deprecated loop argument for asnycio.sleep/gather calls ### Describe the bug Hi, Tests currently fail with Python 3.10 beta 4 because the loop attribute was removed. ### To ...
diff --git a/aiohttp/web.py b/aiohttp/web.py --- a/aiohttp/web.py +++ b/aiohttp/web.py @@ -442,9 +442,7 @@ for task in to_cancel: task.cancel() - loop.run_until_complete( - asyncio.gather(*to_cancel, loop=loop, return_exceptions=True) - ) + loop.run_until_complete(asyncio.gather(*to_canc...
{"golden_diff": "diff --git a/aiohttp/web.py b/aiohttp/web.py\n--- a/aiohttp/web.py\n+++ b/aiohttp/web.py\n@@ -442,9 +442,7 @@\n for task in to_cancel:\n task.cancel()\n \n- loop.run_until_complete(\n- asyncio.gather(*to_cancel, loop=loop, return_exceptions=True)\n- )\n+ loop.run_until_compl...
gh_patches_debug_582
rasdani/github-patches
git_diff
fossasia__open-event-server-5232
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- is_stripe_linked property does not set on connecting stripe account **Describe the bug** is_stripe_linked property does not set on connecting stripe account. It throws error. **Expected behavior** Proper...
diff --git a/app/api/stripe_authorization.py b/app/api/stripe_authorization.py --- a/app/api/stripe_authorization.py +++ b/app/api/stripe_authorization.py @@ -64,7 +64,7 @@ :param view_kwargs: :return: """ - event = db.session.query(Event).filter_by(id=int(data['event'])) + even...
{"golden_diff": "diff --git a/app/api/stripe_authorization.py b/app/api/stripe_authorization.py\n--- a/app/api/stripe_authorization.py\n+++ b/app/api/stripe_authorization.py\n@@ -64,7 +64,7 @@\n :param view_kwargs:\n :return:\n \"\"\"\n- event = db.session.query(Event).filter_by(id=int(da...
gh_patches_debug_583
rasdani/github-patches
git_diff
searx__searx-1978
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- RTL direction for RTL locales Arabic, Farsi, Hebrew, Urdu etc. should have page direction set to RTL. --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files m...
diff --git a/searx/webapp.py b/searx/webapp.py --- a/searx/webapp.py +++ b/searx/webapp.py @@ -144,7 +144,7 @@ babel = Babel(app) -rtl_locales = ['ar', 'arc', 'bcc', 'bqi', 'ckb', 'dv', 'fa', 'glk', 'he', +rtl_locales = ['ar', 'arc', 'bcc', 'bqi', 'ckb', 'dv', 'fa', 'fa_IR', 'glk', 'he', 'ku', 'mzn...
{"golden_diff": "diff --git a/searx/webapp.py b/searx/webapp.py\n--- a/searx/webapp.py\n+++ b/searx/webapp.py\n@@ -144,7 +144,7 @@\n \n babel = Babel(app)\n \n-rtl_locales = ['ar', 'arc', 'bcc', 'bqi', 'ckb', 'dv', 'fa', 'glk', 'he',\n+rtl_locales = ['ar', 'arc', 'bcc', 'bqi', 'ckb', 'dv', 'fa', 'fa_IR', 'glk', 'he',\n...
gh_patches_debug_584
rasdani/github-patches
git_diff
cal-itp__benefits-1044
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Desktop: Previous Page Button hover color A clear and concise description of the task. ## Acceptance Criteria <!-- Remember to consider edge cases --> - [ ] Hover color is blue, look at Figma ## A...
diff --git a/benefits/core/viewmodels.py b/benefits/core/viewmodels.py --- a/benefits/core/viewmodels.py +++ b/benefits/core/viewmodels.py @@ -93,10 +93,7 @@ @staticmethod def previous_page(url): - kwargs = {"id": "previous-page-button", "text": _("core.buttons.previous_page"), "url": url} - b...
{"golden_diff": "diff --git a/benefits/core/viewmodels.py b/benefits/core/viewmodels.py\n--- a/benefits/core/viewmodels.py\n+++ b/benefits/core/viewmodels.py\n@@ -93,10 +93,7 @@\n \n @staticmethod\n def previous_page(url):\n- kwargs = {\"id\": \"previous-page-button\", \"text\": _(\"core.buttons.previous...
gh_patches_debug_585
rasdani/github-patches
git_diff
doccano__doccano-1670
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Database table for SpanType has invalid name How to reproduce the behaviour --------- - Pull latest changes from master - ./manage.py migrate - ./api/migrations/0033_auto_20220127_0654.py will migrate th...
diff --git a/backend/api/migrations/0033_auto_20220127_0654.py b/backend/api/migrations/0033_auto_20220127_0654.py --- a/backend/api/migrations/0033_auto_20220127_0654.py +++ b/backend/api/migrations/0033_auto_20220127_0654.py @@ -34,7 +34,7 @@ ), migrations.AlterModelTable( ...
{"golden_diff": "diff --git a/backend/api/migrations/0033_auto_20220127_0654.py b/backend/api/migrations/0033_auto_20220127_0654.py\n--- a/backend/api/migrations/0033_auto_20220127_0654.py\n+++ b/backend/api/migrations/0033_auto_20220127_0654.py\n@@ -34,7 +34,7 @@\n ),\n migrations.Alter...
gh_patches_debug_586
rasdani/github-patches
git_diff
blaze__blaze-1129
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- add column names to compute.json response in blaze server xref: https://github.com/bokeh/bokeh/issues/2330 --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these fi...
diff --git a/blaze/server/server.py b/blaze/server/server.py --- a/blaze/server/server.py +++ b/blaze/server/server.py @@ -338,4 +338,8 @@ # 500: Internal Server Error return ("Computation failed with message:\n%s" % e, 500) - return serial.dumps({'datashape': str(expr.dshape), 'data': result}) +...
{"golden_diff": "diff --git a/blaze/server/server.py b/blaze/server/server.py\n--- a/blaze/server/server.py\n+++ b/blaze/server/server.py\n@@ -338,4 +338,8 @@\n # 500: Internal Server Error\n return (\"Computation failed with message:\\n%s\" % e, 500)\n \n- return serial.dumps({'datashape': str(expr....
gh_patches_debug_587
rasdani/github-patches
git_diff
bookwyrm-social__bookwyrm-1448
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- POSTGRES_PORT isn't respected during server setup **Describe the bug** `POSTGRES_PORT` isn't respected - `docker-compose up --build` starts the postgres instance on port 5432 regardless. **To Reproduce** ...
diff --git a/bookwyrm/settings.py b/bookwyrm/settings.py --- a/bookwyrm/settings.py +++ b/bookwyrm/settings.py @@ -127,7 +127,7 @@ "USER": env("POSTGRES_USER", "fedireads"), "PASSWORD": env("POSTGRES_PASSWORD", "fedireads"), "HOST": env("POSTGRES_HOST", ""), - "PORT": env("POSTGRES_POR...
{"golden_diff": "diff --git a/bookwyrm/settings.py b/bookwyrm/settings.py\n--- a/bookwyrm/settings.py\n+++ b/bookwyrm/settings.py\n@@ -127,7 +127,7 @@\n \"USER\": env(\"POSTGRES_USER\", \"fedireads\"),\n \"PASSWORD\": env(\"POSTGRES_PASSWORD\", \"fedireads\"),\n \"HOST\": env(\"POSTGRES_HOST\", ...
gh_patches_debug_588
rasdani/github-patches
git_diff
DataDog__dd-agent-1353
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [config] autorestart flag expected not present on windows ``` Python could not construct the class instance Traceback (most recent call last): File "win32\agent.pyc", line 47, in __init__ File "config.py...
diff --git a/win32/agent.py b/win32/agent.py --- a/win32/agent.py +++ b/win32/agent.py @@ -39,6 +39,7 @@ # Setup the correct options so the agent will use the forwarder opts, args = Values({ + 'autorestart': False, 'dd_url': None, 'clean': False, 'us...
{"golden_diff": "diff --git a/win32/agent.py b/win32/agent.py\n--- a/win32/agent.py\n+++ b/win32/agent.py\n@@ -39,6 +39,7 @@\n \n # Setup the correct options so the agent will use the forwarder\n opts, args = Values({\n+ 'autorestart': False,\n 'dd_url': None,\n 'clean...
gh_patches_debug_589
rasdani/github-patches
git_diff
open-telemetry__opentelemetry-python-982
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- opentelemetry-exporter-jaeger: Trace/span are reported twice if Collector is configured to bypass Agent **Describe your environment** python = "3.6" opentelemetry-sdk = "0.11b0" opentelemetry-ext-jaeger =...
diff --git a/exporter/opentelemetry-exporter-jaeger/src/opentelemetry/exporter/jaeger/__init__.py b/exporter/opentelemetry-exporter-jaeger/src/opentelemetry/exporter/jaeger/__init__.py --- a/exporter/opentelemetry-exporter-jaeger/src/opentelemetry/exporter/jaeger/__init__.py +++ b/exporter/opentelemetry-exporter-jaeger...
{"golden_diff": "diff --git a/exporter/opentelemetry-exporter-jaeger/src/opentelemetry/exporter/jaeger/__init__.py b/exporter/opentelemetry-exporter-jaeger/src/opentelemetry/exporter/jaeger/__init__.py\n--- a/exporter/opentelemetry-exporter-jaeger/src/opentelemetry/exporter/jaeger/__init__.py\n+++ b/exporter/openteleme...
gh_patches_debug_590
rasdani/github-patches
git_diff
voxel51__fiftyone-405
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Include sample fields in `dir(sample)` We should include sample fields in `dir(sample)`, so that users working from an interactive shell that are inspecting their data correctly see that they can access `samp...
diff --git a/fiftyone/core/sample.py b/fiftyone/core/sample.py --- a/fiftyone/core/sample.py +++ b/fiftyone/core/sample.py @@ -23,6 +23,9 @@ def __init__(self): self._dataset = self._get_dataset() + def __dir__(self): + return super().__dir__() + list(self.field_names) + def __getattr__(s...
{"golden_diff": "diff --git a/fiftyone/core/sample.py b/fiftyone/core/sample.py\n--- a/fiftyone/core/sample.py\n+++ b/fiftyone/core/sample.py\n@@ -23,6 +23,9 @@\n def __init__(self):\n self._dataset = self._get_dataset()\n \n+ def __dir__(self):\n+ return super().__dir__() + list(self.field_names)...
gh_patches_debug_591
rasdani/github-patches
git_diff
joke2k__faker-48
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Capital O missing an umlaut Hello, I noticed in faker/Providers/De_de/internet.py in the _to_ascii method, the capital O is missing an umlaut. It should be: ('Ö', 'Oe') Currently: replacements = ( ...
diff --git a/faker/providers/de_DE/internet.py b/faker/providers/de_DE/internet.py --- a/faker/providers/de_DE/internet.py +++ b/faker/providers/de_DE/internet.py @@ -17,7 +17,7 @@ def _to_ascii(string): replacements = ( ('ä', 'ae'), ('Ä', 'Ae'), - ('ö', 'oe'), ('O', 'Oe'), + ...
{"golden_diff": "diff --git a/faker/providers/de_DE/internet.py b/faker/providers/de_DE/internet.py\n--- a/faker/providers/de_DE/internet.py\n+++ b/faker/providers/de_DE/internet.py\n@@ -17,7 +17,7 @@\n def _to_ascii(string):\n replacements = (\n ('\u00e4', 'ae'), ('\u00c4', 'Ae'),\n- ...
gh_patches_debug_592
rasdani/github-patches
git_diff
Miserlou__Zappa-711
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- slim_handler breaks file paths & read permission <!--- Provide a general summary of the issue in the Title above --> ## Context I'm attempting to read a small data file from the root project directory at ru...
diff --git a/zappa/handler.py b/zappa/handler.py --- a/zappa/handler.py +++ b/zappa/handler.py @@ -168,6 +168,9 @@ # Add to project path sys.path.insert(0, project_folder) + + # Change working directory to project folder + os.chdir(project_folder) return True de...
{"golden_diff": "diff --git a/zappa/handler.py b/zappa/handler.py\n--- a/zappa/handler.py\n+++ b/zappa/handler.py\n@@ -168,6 +168,9 @@\n \n # Add to project path\n sys.path.insert(0, project_folder)\n+ \n+ # Change working directory to project folder\n+ os.chdir(project_folder)\n ...
gh_patches_debug_593
rasdani/github-patches
git_diff
great-expectations__great_expectations-6553
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Numpy Datetime TypeError in expect_column_pair_values_a_to_be_greater_than_b **Describe the bug** I try to use expect_column_pair_values_a_to_be_greater_than_b expectation to validate my parquet files, but ...
diff --git a/great_expectations/core/util.py b/great_expectations/core/util.py --- a/great_expectations/core/util.py +++ b/great_expectations/core/util.py @@ -228,6 +228,9 @@ if isinstance(data, (datetime.datetime, datetime.date)): return data.isoformat() + if isinstance(data, (np.datetime64)): + ...
{"golden_diff": "diff --git a/great_expectations/core/util.py b/great_expectations/core/util.py\n--- a/great_expectations/core/util.py\n+++ b/great_expectations/core/util.py\n@@ -228,6 +228,9 @@\n if isinstance(data, (datetime.datetime, datetime.date)):\n return data.isoformat()\n \n+ if isinstance(data,...
gh_patches_debug_594
rasdani/github-patches
git_diff
Rapptz__discord.py-1860
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Flattening discord.Reaction.users returns the first 100 users over and over Performing the following: ```python users = await message.reactions[0].users().flatten() ``` on a message with 1.2k+ reactions r...
diff --git a/discord/iterators.py b/discord/iterators.py --- a/discord/iterators.py +++ b/discord/iterators.py @@ -153,7 +153,7 @@ if data: self.limit -= retrieve - self.after = Object(id=int(data[0]['id'])) + self.after = Object(id=int(data[-1]['id'])) ...
{"golden_diff": "diff --git a/discord/iterators.py b/discord/iterators.py\n--- a/discord/iterators.py\n+++ b/discord/iterators.py\n@@ -153,7 +153,7 @@\n \n if data:\n self.limit -= retrieve\n- self.after = Object(id=int(data[0]['id']))\n+ self.after = Object(id=...
gh_patches_debug_595
rasdani/github-patches
git_diff
holoviz__panel-1789
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Image not scaling dynamically #### ALL software version info ``` Python 3.9.0 bokeh==2.2.3 notebook==5.7.9 panel==0.10.1 macOS Catalina 10.15.7 Chrome 85.0.4183.121 ``` #### Description of ...
diff --git a/panel/pane/image.py b/panel/pane/image.py --- a/panel/pane/image.py +++ b/panel/pane/image.py @@ -42,7 +42,7 @@ imgtype = 'None' - _rerender_params = ['alt_text', 'link_url', 'embed', 'object', 'style'] + _rerender_params = ['alt_text', 'link_url', 'embed', 'object', 'style', 'width', 'heigh...
{"golden_diff": "diff --git a/panel/pane/image.py b/panel/pane/image.py\n--- a/panel/pane/image.py\n+++ b/panel/pane/image.py\n@@ -42,7 +42,7 @@\n \n imgtype = 'None'\n \n- _rerender_params = ['alt_text', 'link_url', 'embed', 'object', 'style']\n+ _rerender_params = ['alt_text', 'link_url', 'embed', 'object',...
gh_patches_debug_596
rasdani/github-patches
git_diff
qtile__qtile-1218
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Typo in ratiotile.py https://github.com/qtile/qtile/blob/95919912b11eabedb59ad3215747544c48c522f9/libqtile/layout/ratiotile.py#L307 cmd_upn -> cmd_up --- END ISSUE --- Below are some code segments, each ...
diff --git a/libqtile/layout/ratiotile.py b/libqtile/layout/ratiotile.py --- a/libqtile/layout/ratiotile.py +++ b/libqtile/layout/ratiotile.py @@ -304,7 +304,7 @@ self.group.layoutAll() cmd_down = _SimpleLayoutBase.previous - cmd_upn = _SimpleLayoutBase.next + cmd_up = _SimpleLayoutBase.next ...
{"golden_diff": "diff --git a/libqtile/layout/ratiotile.py b/libqtile/layout/ratiotile.py\n--- a/libqtile/layout/ratiotile.py\n+++ b/libqtile/layout/ratiotile.py\n@@ -304,7 +304,7 @@\n self.group.layoutAll()\n \n cmd_down = _SimpleLayoutBase.previous\n- cmd_upn = _SimpleLayoutBase.next\n+ cmd_up =...
gh_patches_debug_597
rasdani/github-patches
git_diff
LMFDB__lmfdb-4294
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Dirichlet character compute buttons not working on production None of the compute buttons are working on https://www.lmfdb.org/Character/Dirichlet/3/2 or any of the Dirichlet character pages on the production...
diff --git a/lmfdb/app.py b/lmfdb/app.py --- a/lmfdb/app.py +++ b/lmfdb/app.py @@ -680,6 +680,10 @@ WhiteListedRoutes = [ 'ArtinRepresentation', 'Character/Dirichlet', + 'Character/calc-gauss/Dirichlet', + 'Character/calc-jacobi/Dirichlet', + 'Character/calc-kloosterman/Dirichlet', + 'Character/c...
{"golden_diff": "diff --git a/lmfdb/app.py b/lmfdb/app.py\n--- a/lmfdb/app.py\n+++ b/lmfdb/app.py\n@@ -680,6 +680,10 @@\n WhiteListedRoutes = [\n 'ArtinRepresentation',\n 'Character/Dirichlet',\n+ 'Character/calc-gauss/Dirichlet',\n+ 'Character/calc-jacobi/Dirichlet',\n+ 'Character/calc-kloosterman/Dir...
gh_patches_debug_598
rasdani/github-patches
git_diff
comic__grand-challenge.org-1275
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Zip case uploads fail if the zip file has no containing folder ``` Traceback (most recent call last): File "/opt/poetry/.venv/lib/python3.8/site-packages/celery/app/trace.py", line 385, in trace_task ...
diff --git a/app/grandchallenge/cases/tasks.py b/app/grandchallenge/cases/tasks.py --- a/app/grandchallenge/cases/tasks.py +++ b/app/grandchallenge/cases/tasks.py @@ -273,7 +273,7 @@ "path": path / filename, } ) - return max(indices.values()), new_files + return max(list(ind...
{"golden_diff": "diff --git a/app/grandchallenge/cases/tasks.py b/app/grandchallenge/cases/tasks.py\n--- a/app/grandchallenge/cases/tasks.py\n+++ b/app/grandchallenge/cases/tasks.py\n@@ -273,7 +273,7 @@\n \"path\": path / filename,\n }\n )\n- return max(indices.values()), new_file...
gh_patches_debug_599
rasdani/github-patches
git_diff
systemd__mkosi-1843
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Missing group prevents dbus installation I often install `dbus` into an image so when a `systemd-nspawn` container is booted from it I can get a shell and test things out. When using the main branch to track ...
diff --git a/mkosi/run.py b/mkosi/run.py --- a/mkosi/run.py +++ b/mkosi/run.py @@ -355,7 +355,7 @@ options: list[PathString] = [] for f in ("passwd", "group", "shadow", "gshadow"): - if not (Path("etc") / f).exists(): + if not (Path("/etc") / f).exists(): continue p = roo...
{"golden_diff": "diff --git a/mkosi/run.py b/mkosi/run.py\n--- a/mkosi/run.py\n+++ b/mkosi/run.py\n@@ -355,7 +355,7 @@\n options: list[PathString] = []\n \n for f in (\"passwd\", \"group\", \"shadow\", \"gshadow\"):\n- if not (Path(\"etc\") / f).exists():\n+ if not (Path(\"/etc\") / f).exists():\n...