problem_id stringlengths 18 22 | source stringclasses 1
value | task_type stringclasses 1
value | in_source_id stringlengths 13 58 | prompt stringlengths 1.1k 25.4k | golden_diff stringlengths 145 5.13k | verification_info stringlengths 582 39.1k | num_tokens int64 271 4.1k | num_tokens_diff int64 47 1.02k |
|---|---|---|---|---|---|---|---|---|
gh_patches_debug_24340 | rasdani/github-patches | git_diff | apache__airflow-17850 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
ExasolHook get_pandas_df does not return pandas dataframe but None
When calling the exasol hooks get_pandas_df function (https://github.com/apache/airflow/blob/main/airflow/providers/exasol/hooks/exasol.py)... | diff --git a/airflow/providers/exasol/hooks/exasol.py b/airflow/providers/exasol/hooks/exasol.py
--- a/airflow/providers/exasol/hooks/exasol.py
+++ b/airflow/providers/exasol/hooks/exasol.py
@@ -19,6 +19,7 @@
from contextlib import closing
from typing import Any, Dict, List, Optional, Tuple, Union
+import pandas as... | {"golden_diff": "diff --git a/airflow/providers/exasol/hooks/exasol.py b/airflow/providers/exasol/hooks/exasol.py\n--- a/airflow/providers/exasol/hooks/exasol.py\n+++ b/airflow/providers/exasol/hooks/exasol.py\n@@ -19,6 +19,7 @@\n from contextlib import closing\n from typing import Any, Dict, List, Optional, Tuple, Uni... | 3,552 | 317 |
gh_patches_debug_11327 | rasdani/github-patches | git_diff | cloud-custodian__cloud-custodian-9504 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Add support for backup in timestream backup
### Describe the feature
This will use AWS backup service to take time-stream backup.
### Extra information or context
_No response_
--- END ISSUE ---
Below ar... | diff --git a/c7n/resources/timestream.py b/c7n/resources/timestream.py
--- a/c7n/resources/timestream.py
+++ b/c7n/resources/timestream.py
@@ -9,6 +9,7 @@
Tag as TagAction,
RemoveTag as RemoveTagAction
)
+from c7n.filters.backup import ConsecutiveAwsBackupsFilter
class DescribeTimestream(DescribeSource)... | {"golden_diff": "diff --git a/c7n/resources/timestream.py b/c7n/resources/timestream.py\n--- a/c7n/resources/timestream.py\n+++ b/c7n/resources/timestream.py\n@@ -9,6 +9,7 @@\n Tag as TagAction,\n RemoveTag as RemoveTagAction\n )\n+from c7n.filters.backup import ConsecutiveAwsBackupsFilter\n \n \n class Describ... | 1,656 | 168 |
gh_patches_debug_8455 | rasdani/github-patches | git_diff | gratipay__gratipay.com-1769 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Integrate SASS compilation into development environment
This started in [IRC](https://botbot.me/freenode/gittip/msg/8682409/).
The goal here is to use the same SASS compiler that we use in production, in dev... | diff --git a/gittip/wireup.py b/gittip/wireup.py
--- a/gittip/wireup.py
+++ b/gittip/wireup.py
@@ -208,6 +208,7 @@
website.js_src = envvar('GITTIP_JS_SRC') \
.replace('%version', website.version)
website.cache_static = is_yesish(envvar('GITTIP_CACHE_STATIC'))
+ we... | {"golden_diff": "diff --git a/gittip/wireup.py b/gittip/wireup.py\n--- a/gittip/wireup.py\n+++ b/gittip/wireup.py\n@@ -208,6 +208,7 @@\n website.js_src = envvar('GITTIP_JS_SRC') \\\n .replace('%version', website.version)\n website.cache_static = is_yesish(envvar('GITTIP... | 3,168 | 148 |
gh_patches_debug_13691 | rasdani/github-patches | git_diff | pre-commit__pre-commit-2187 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
doesn't work in visual studio 2019 on Windows
### describe your issue
When I try to commit from visual studio 2019, I get the following message:
```
/usr/bin/env: ‘bash’: No such file or directory
```
... | diff --git a/pre_commit/commands/install_uninstall.py b/pre_commit/commands/install_uninstall.py
--- a/pre_commit/commands/install_uninstall.py
+++ b/pre_commit/commands/install_uninstall.py
@@ -82,6 +82,13 @@
before, rest = contents.split(TEMPLATE_START)
_, after = rest.split(TEMPLATE_END)
+ ... | {"golden_diff": "diff --git a/pre_commit/commands/install_uninstall.py b/pre_commit/commands/install_uninstall.py\n--- a/pre_commit/commands/install_uninstall.py\n+++ b/pre_commit/commands/install_uninstall.py\n@@ -82,6 +82,13 @@\n before, rest = contents.split(TEMPLATE_START)\n _, after = rest.split(TE... | 2,097 | 222 |
gh_patches_debug_23069 | rasdani/github-patches | git_diff | bokeh__bokeh-6911 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Bokeh DateRangeSlider returns tuple of integers instead of dates
In 0.12.7 the DateRangeSlider `.value` returns a tuple of integers. Additionally, in order to convert them back to dates you have to divide by ... | diff --git a/bokeh/models/widgets/sliders.py b/bokeh/models/widgets/sliders.py
--- a/bokeh/models/widgets/sliders.py
+++ b/bokeh/models/widgets/sliders.py
@@ -3,6 +3,9 @@
"""
from __future__ import absolute_import
+from datetime import datetime
+import numbers
+
from ...core.has_props import abstract
from ...core... | {"golden_diff": "diff --git a/bokeh/models/widgets/sliders.py b/bokeh/models/widgets/sliders.py\n--- a/bokeh/models/widgets/sliders.py\n+++ b/bokeh/models/widgets/sliders.py\n@@ -3,6 +3,9 @@\n \"\"\"\n from __future__ import absolute_import\n \n+from datetime import datetime\n+import numbers\n+\n from ...core.has_props... | 1,639 | 320 |
gh_patches_debug_10102 | rasdani/github-patches | git_diff | fossasia__open-event-server-4882 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Session allowed to be created without an associated Track
**Describe the bug**
<!-- A clear and concise description of what the bug is. -->
Sessions can be created without being associated with a Track
... | diff --git a/app/api/sessions.py b/app/api/sessions.py
--- a/app/api/sessions.py
+++ b/app/api/sessions.py
@@ -32,7 +32,7 @@
:param data:
:return:
"""
- require_relationship(['event'], data)
+ require_relationship(['event', 'track'], data)
data['creator_id'] = current_i... | {"golden_diff": "diff --git a/app/api/sessions.py b/app/api/sessions.py\n--- a/app/api/sessions.py\n+++ b/app/api/sessions.py\n@@ -32,7 +32,7 @@\n :param data:\n :return:\n \"\"\"\n- require_relationship(['event'], data)\n+ require_relationship(['event', 'track'], data)\n d... | 2,224 | 133 |
gh_patches_debug_13467 | rasdani/github-patches | git_diff | python-telegram-bot__python-telegram-bot-155 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
httplib exceptions
Running my bot continuously, I sometimes get rare exceptions. This traceback was with Python 2.7 and python-telegram-bot 3.2:
```
File "/home/rahiel/BismillahBot/bismillah.py", line 99,... | diff --git a/telegram/utils/request.py b/telegram/utils/request.py
--- a/telegram/utils/request.py
+++ b/telegram/utils/request.py
@@ -25,6 +25,13 @@
import socket
from ssl import SSLError
+try:
+ # python2
+ from httplib import HTTPException
+except ImportError:
+ # python3
+ from http.client import HT... | {"golden_diff": "diff --git a/telegram/utils/request.py b/telegram/utils/request.py\n--- a/telegram/utils/request.py\n+++ b/telegram/utils/request.py\n@@ -25,6 +25,13 @@\n import socket\n from ssl import SSLError\n \n+try:\n+ # python2\n+ from httplib import HTTPException\n+except ImportError:\n+ # python3\n+ ... | 2,549 | 174 |
gh_patches_debug_30011 | rasdani/github-patches | git_diff | microsoft__botbuilder-python-1889 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Teams Task Module - Deserialization Error on Teams mobile app for iOS
## Version
botbuilder-integration-aiohttp 4.14.0
Python 3.8.6
## Describe the bug
Error when loading Task Module on iOS iOS 14.8.1 ... | diff --git a/libraries/botbuilder-core/botbuilder/core/serializer_helper.py b/libraries/botbuilder-core/botbuilder/core/serializer_helper.py
--- a/libraries/botbuilder-core/botbuilder/core/serializer_helper.py
+++ b/libraries/botbuilder-core/botbuilder/core/serializer_helper.py
@@ -1,6 +1,6 @@
# Copyright (c) Microsof... | {"golden_diff": "diff --git a/libraries/botbuilder-core/botbuilder/core/serializer_helper.py b/libraries/botbuilder-core/botbuilder/core/serializer_helper.py\n--- a/libraries/botbuilder-core/botbuilder/core/serializer_helper.py\n+++ b/libraries/botbuilder-core/botbuilder/core/serializer_helper.py\n@@ -1,6 +1,6 @@\n # C... | 1,722 | 428 |
gh_patches_debug_2288 | rasdani/github-patches | git_diff | bookwyrm-social__bookwyrm-1577 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
"Your Books" doesn't display my most recent title
**Describe the bug**
For the last couple of months, your books is not showing anything I've read recently
**To Reproduce**

+ .order_by("-shelfbook__shelved_date")
.prefetch_related("authors")[:limit],
... | {"golden_diff": "diff --git a/bookwyrm/views/feed.py b/bookwyrm/views/feed.py\n--- a/bookwyrm/views/feed.py\n+++ b/bookwyrm/views/feed.py\n@@ -224,6 +224,7 @@\n .filter(\n shelfbook__shelf=shelf,\n )\n+ .order_by(\"-shelfbook__shelved_date\")\n .prefetch_re... | 2,983 | 99 |
gh_patches_debug_25990 | rasdani/github-patches | git_diff | pwndbg__pwndbg-1826 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
heap_config should give an example format for GLIBC version
The UX for the glibc version setting is not great.
1. The `heap_config` should give user an example format of GLIBC version we do expect. Current... | diff --git a/pwndbg/glibc.py b/pwndbg/glibc.py
--- a/pwndbg/glibc.py
+++ b/pwndbg/glibc.py
@@ -21,6 +21,7 @@
import pwndbg.heap
import pwndbg.lib.cache
import pwndbg.search
+from pwndbg.color import message
safe_lnk = pwndbg.gdblib.config.add_param(
"safe-linking",
@@ -30,21 +31,28 @@
)
glibc_version = p... | {"golden_diff": "diff --git a/pwndbg/glibc.py b/pwndbg/glibc.py\n--- a/pwndbg/glibc.py\n+++ b/pwndbg/glibc.py\n@@ -21,6 +21,7 @@\n import pwndbg.heap\n import pwndbg.lib.cache\n import pwndbg.search\n+from pwndbg.color import message\n \n safe_lnk = pwndbg.gdblib.config.add_param(\n \"safe-linking\",\n@@ -30,21 +31... | 2,561 | 455 |
gh_patches_debug_35119 | rasdani/github-patches | git_diff | Azure__azure-cli-extensions-74 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
az webapp new throws an exception when it can't detect a project type.
### Extension name (the extension in question)
webapp
### Description of issue (in as much detail as possible)
This should fail grac... | diff --git a/src/webapp/azext_webapp/create_util.py b/src/webapp/azext_webapp/create_util.py
--- a/src/webapp/azext_webapp/create_util.py
+++ b/src/webapp/azext_webapp/create_util.py
@@ -106,16 +106,17 @@
def get_lang_from_content(src_path):
import glob
- # NODE: package.json should exisit in the application... | {"golden_diff": "diff --git a/src/webapp/azext_webapp/create_util.py b/src/webapp/azext_webapp/create_util.py\n--- a/src/webapp/azext_webapp/create_util.py\n+++ b/src/webapp/azext_webapp/create_util.py\n@@ -106,16 +106,17 @@\n \n def get_lang_from_content(src_path):\n import glob\n- # NODE: package.json should e... | 2,842 | 499 |
gh_patches_debug_41802 | rasdani/github-patches | git_diff | ESMCI__cime-1034 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
check_input_data not supporting input files outside of input data repo
@erichlf has asked for support for the following use case:
* Create a partition file in his home directory
* Point namelist files to us... | diff --git a/utils/python/CIME/check_input_data.py b/utils/python/CIME/check_input_data.py
--- a/utils/python/CIME/check_input_data.py
+++ b/utils/python/CIME/check_input_data.py
@@ -148,32 +148,45 @@
# expand xml variables
full_path = case.get_resolved_value(full_path)
... | {"golden_diff": "diff --git a/utils/python/CIME/check_input_data.py b/utils/python/CIME/check_input_data.py\n--- a/utils/python/CIME/check_input_data.py\n+++ b/utils/python/CIME/check_input_data.py\n@@ -148,32 +148,45 @@\n # expand xml variables\n full_path = case.get_resolved_va... | 2,593 | 860 |
gh_patches_debug_17031 | rasdani/github-patches | git_diff | paperless-ngx__paperless-ngx-680 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[BUG] Mail rule filter attachment filename is case sensitive
### Description
The "Mail rules" interface says the Filter attachment filename should be case insensitive:
> Only consume documents which ent... | diff --git a/src/paperless_mail/mail.py b/src/paperless_mail/mail.py
--- a/src/paperless_mail/mail.py
+++ b/src/paperless_mail/mail.py
@@ -253,7 +253,7 @@
return total_processed_files
- def handle_message(self, message, rule):
+ def handle_message(self, message, rule) -> int:
if not message.... | {"golden_diff": "diff --git a/src/paperless_mail/mail.py b/src/paperless_mail/mail.py\n--- a/src/paperless_mail/mail.py\n+++ b/src/paperless_mail/mail.py\n@@ -253,7 +253,7 @@\n \n return total_processed_files\n \n- def handle_message(self, message, rule):\n+ def handle_message(self, message, rule) -> int:... | 3,686 | 198 |
gh_patches_debug_4889 | rasdani/github-patches | git_diff | readthedocs__readthedocs.org-4990 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Remove $ before shell commands in docs
The developers have a [preference](https://github.com/rtfd/readthedocs.org/pull/4676#discussion_r221400605) to not have a `$` before shell commands in the docs. This mak... | diff --git a/docs/conf.py b/docs/conf.py
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -28,6 +28,7 @@
'djangodocs',
'doc_extensions',
'sphinx_tabs.tabs',
+ 'sphinx-prompt',
]
templates_path = ['_templates']
@@ -82,3 +83,7 @@
# Activate autosectionlabel plugin
autosectionlabel_prefix_document = True... | {"golden_diff": "diff --git a/docs/conf.py b/docs/conf.py\n--- a/docs/conf.py\n+++ b/docs/conf.py\n@@ -28,6 +28,7 @@\n 'djangodocs',\n 'doc_extensions',\n 'sphinx_tabs.tabs',\n+ 'sphinx-prompt',\n ]\n templates_path = ['_templates']\n \n@@ -82,3 +83,7 @@\n \n # Activate autosectionlabel plugin\n autosect... | 1,070 | 122 |
gh_patches_debug_36067 | rasdani/github-patches | git_diff | mampfes__hacs_waste_collection_schedule-594 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
provide custom HEADERS in ical source
Hello,
I'm trying to download an ics schedule from my providers homepage. It only works when a "Referer":"<url>" Header is set. Otherwise a 403 Error occure. I manual... | diff --git a/custom_components/waste_collection_schedule/waste_collection_schedule/source/ics.py b/custom_components/waste_collection_schedule/waste_collection_schedule/source/ics.py
--- a/custom_components/waste_collection_schedule/waste_collection_schedule/source/ics.py
+++ b/custom_components/waste_collection_schedu... | {"golden_diff": "diff --git a/custom_components/waste_collection_schedule/waste_collection_schedule/source/ics.py b/custom_components/waste_collection_schedule/waste_collection_schedule/source/ics.py\n--- a/custom_components/waste_collection_schedule/waste_collection_schedule/source/ics.py\n+++ b/custom_components/wast... | 3,643 | 629 |
gh_patches_debug_19225 | rasdani/github-patches | git_diff | docker__docker-py-971 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
tlsv1 alert protocol version on 1.7.1 and 1.7.2 but not on 1.7.0
Similar to #949 I'm discovering issues with latest versions of `docker-py` running against docker 1.10.2 instance. I'm using `docker.utils.kwar... | diff --git a/docker/tls.py b/docker/tls.py
--- a/docker/tls.py
+++ b/docker/tls.py
@@ -1,4 +1,5 @@
import os
+import ssl
from . import errors
from .ssladapter import ssladapter
@@ -19,10 +20,14 @@
# here, but also disable any public/default CA pool verification by
# leaving tls_verify=False
- ... | {"golden_diff": "diff --git a/docker/tls.py b/docker/tls.py\n--- a/docker/tls.py\n+++ b/docker/tls.py\n@@ -1,4 +1,5 @@\n import os\n+import ssl\n \n from . import errors\n from .ssladapter import ssladapter\n@@ -19,10 +20,14 @@\n # here, but also disable any public/default CA pool verification by\n # le... | 1,174 | 223 |
gh_patches_debug_36965 | rasdani/github-patches | git_diff | mne-tools__mne-bids-750 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
STY: Move to pydata-sphinx-theme
Now that NumPy, SciPy (in progress), pandas, and (most importantly I think) MNE-Python have moved to pydata-sphinx-theme, it might be nice to move `mne-bids` over, too, for co... | diff --git a/doc/conf.py b/doc/conf.py
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -5,7 +5,6 @@
import sphinx_gallery # noqa: F401
from sphinx_gallery.sorting import ExampleTitleSortKey
-import sphinx_bootstrap_theme
import mne_bids
@@ -74,7 +73,7 @@
master_doc = 'index'
# General information about the project... | {"golden_diff": "diff --git a/doc/conf.py b/doc/conf.py\n--- a/doc/conf.py\n+++ b/doc/conf.py\n@@ -5,7 +5,6 @@\n \n import sphinx_gallery # noqa: F401\n from sphinx_gallery.sorting import ExampleTitleSortKey\n-import sphinx_bootstrap_theme\n \n import mne_bids\n \n@@ -74,7 +73,7 @@\n master_doc = 'index'\n \n # Genera... | 2,325 | 719 |
gh_patches_debug_12849 | rasdani/github-patches | git_diff | OCA__server-tools-37 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[Bug] mass_editing - Search in ir.model.fields not working
I setup the mass_editing for res.partner then i go to:
Settings -> Technical -> Database Structure -> Fields
and go to the Filter with ('model_id','=... | diff --git a/mass_editing/mass_editing.py b/mass_editing/mass_editing.py
--- a/mass_editing/mass_editing.py
+++ b/mass_editing/mass_editing.py
@@ -32,10 +32,11 @@
count=False):
model_domain = []
for domain in args:
- if domain[0] == 'model_id' and domain[2]\
- ... | {"golden_diff": "diff --git a/mass_editing/mass_editing.py b/mass_editing/mass_editing.py\n--- a/mass_editing/mass_editing.py\n+++ b/mass_editing/mass_editing.py\n@@ -32,10 +32,11 @@\n count=False):\n model_domain = []\n for domain in args:\n- if domain[0] == 'model_id' and domain... | 2,147 | 220 |
gh_patches_debug_12926 | rasdani/github-patches | git_diff | bokeh__bokeh-6804 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Automatic configuration of Slider.format
Integer sliders should use integer formatting.
--- END ISSUE ---
Below are some code segments, each from a relevant file. One or more of these files may contain bu... | diff --git a/bokeh/models/widgets/sliders.py b/bokeh/models/widgets/sliders.py
--- a/bokeh/models/widgets/sliders.py
+++ b/bokeh/models/widgets/sliders.py
@@ -74,7 +74,7 @@
The step between consecutive values.
""")
- format = Override(default="0,0.00")
+ format = Override(default="0[.]00")
class Ra... | {"golden_diff": "diff --git a/bokeh/models/widgets/sliders.py b/bokeh/models/widgets/sliders.py\n--- a/bokeh/models/widgets/sliders.py\n+++ b/bokeh/models/widgets/sliders.py\n@@ -74,7 +74,7 @@\n The step between consecutive values.\n \"\"\")\n \n- format = Override(default=\"0,0.00\")\n+ format = Override... | 1,411 | 178 |
gh_patches_debug_11006 | rasdani/github-patches | git_diff | urllib3__urllib3-818 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
UnicodeDecodeError in format_header_params
This issue was discussed here: https://github.com/kennethreitz/requests/issues/2639 and it seemed like the consensus was that this should be fixed in urllib3.
---... | diff --git a/urllib3/fields.py b/urllib3/fields.py
--- a/urllib3/fields.py
+++ b/urllib3/fields.py
@@ -36,11 +36,11 @@
result = '%s="%s"' % (name, value)
try:
result.encode('ascii')
- except UnicodeEncodeError:
+ except (UnicodeEncodeError, UnicodeDecodeError):
... | {"golden_diff": "diff --git a/urllib3/fields.py b/urllib3/fields.py\n--- a/urllib3/fields.py\n+++ b/urllib3/fields.py\n@@ -36,11 +36,11 @@\n result = '%s=\"%s\"' % (name, value)\n try:\n result.encode('ascii')\n- except UnicodeEncodeError:\n+ except (UnicodeEncodeError, Unicode... | 2,046 | 187 |
gh_patches_debug_17063 | rasdani/github-patches | git_diff | elastic__ecs-813 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Honor reusable.top_level: false for generated ES templates
When setting `reusable.top_level: false` the generated Elasticsearch template still includes the field in the template at the top level. I would not ... | diff --git a/scripts/generator.py b/scripts/generator.py
--- a/scripts/generator.py
+++ b/scripts/generator.py
@@ -13,6 +13,9 @@
def main():
args = argument_parser()
+ # Get rid of empty include
+ if args.include and [''] == args.include:
+ args.include.clear()
ecs_version = read_version()
... | {"golden_diff": "diff --git a/scripts/generator.py b/scripts/generator.py\n--- a/scripts/generator.py\n+++ b/scripts/generator.py\n@@ -13,6 +13,9 @@\n \n def main():\n args = argument_parser()\n+ # Get rid of empty include\n+ if args.include and [''] == args.include:\n+ args.include.clear()\n \n ec... | 4,080 | 262 |
gh_patches_debug_22902 | rasdani/github-patches | git_diff | Lightning-AI__pytorch-lightning-720 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
W&B: Allow for passing experiment into the WandbLogger (and logging semantics)
Currently, the WandbLogger will automatically create a new internal experiment (run) whenever you create a new WandbLogger.
# ... | diff --git a/pytorch_lightning/logging/wandb.py b/pytorch_lightning/logging/wandb.py
--- a/pytorch_lightning/logging/wandb.py
+++ b/pytorch_lightning/logging/wandb.py
@@ -33,7 +33,7 @@
"""
def __init__(self, name=None, save_dir=None, offline=False, id=None, anonymous=False,
- version=None, p... | {"golden_diff": "diff --git a/pytorch_lightning/logging/wandb.py b/pytorch_lightning/logging/wandb.py\n--- a/pytorch_lightning/logging/wandb.py\n+++ b/pytorch_lightning/logging/wandb.py\n@@ -33,7 +33,7 @@\n \"\"\"\n \n def __init__(self, name=None, save_dir=None, offline=False, id=None, anonymous=False,\n- ... | 1,425 | 262 |
gh_patches_debug_8178 | rasdani/github-patches | git_diff | kartoza__prj.app-1077 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Please include project name in certifying org admin
<img width="895" alt="image" src="https://user-images.githubusercontent.com/178003/67474466-6ab98000-f64c-11e9-8a69-95e12e8bd404.png">
We have two Kart... | diff --git a/django_project/certification/admin.py b/django_project/certification/admin.py
--- a/django_project/certification/admin.py
+++ b/django_project/certification/admin.py
@@ -141,7 +141,7 @@
filter_horizontal = ('organisation_owners',)
search_fields = ['name']
- list_display = ('name', 'country',... | {"golden_diff": "diff --git a/django_project/certification/admin.py b/django_project/certification/admin.py\n--- a/django_project/certification/admin.py\n+++ b/django_project/certification/admin.py\n@@ -141,7 +141,7 @@\n \n filter_horizontal = ('organisation_owners',)\n search_fields = ['name']\n- list_displ... | 1,921 | 153 |
gh_patches_debug_26619 | rasdani/github-patches | git_diff | benoitc__gunicorn-826 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Upcoming Tornado change breaks gunicorn.workers.gtornado
The next release of Tornado (will be 4.0 when released, although the current master branch hasn't been updated to change all mentions of 3.3 to 4.0) ma... | diff --git a/gunicorn/workers/gtornado.py b/gunicorn/workers/gtornado.py
--- a/gunicorn/workers/gtornado.py
+++ b/gunicorn/workers/gtornado.py
@@ -68,20 +68,31 @@
# will help gunicorn shutdown the worker if max_requests
# is exceeded.
httpserver = sys.modules["tornado.httpserver"]
- ol... | {"golden_diff": "diff --git a/gunicorn/workers/gtornado.py b/gunicorn/workers/gtornado.py\n--- a/gunicorn/workers/gtornado.py\n+++ b/gunicorn/workers/gtornado.py\n@@ -68,20 +68,31 @@\n # will help gunicorn shutdown the worker if max_requests\n # is exceeded.\n httpserver = sys.modules[\"tornado.... | 1,455 | 373 |
gh_patches_debug_4286 | rasdani/github-patches | git_diff | mozilla__pontoon-2379 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Redirected to a non-existing page while tring to translate to en-US
## Description
When I try to translate an application to `en-US`, I am redirected (`301`) to a non-existing page:

urlpatterns = [
- # Legacy: Locale redirect for compatibility with i18n ready URL scheme
- path("en-US<path:url>", RedirectView.as_vie... | {"golden_diff": "diff --git a/pontoon/urls.py b/pontoon/urls.py\n--- a/pontoon/urls.py\n+++ b/pontoon/urls.py\n@@ -22,8 +22,6 @@\n server_error_view = TemplateView.as_view(template_name=\"500.html\")\n \n urlpatterns = [\n- # Legacy: Locale redirect for compatibility with i18n ready URL scheme\n- path(\"en-US<pat... | 1,952 | 130 |
gh_patches_debug_1582 | rasdani/github-patches | git_diff | ansible__ansible-modules-core-4645 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Fix #4412: os_security_group_rule support numbered protocols
##### ISSUE TYPE
- Bugfix Pull Request
##### COMPONENT NAME
cloud/openstack/os_security_group_rule.py
##### ANSIBLE VERSION
```
ansible 2.1.1.0
... | diff --git a/cloud/openstack/os_security_group_rule.py b/cloud/openstack/os_security_group_rule.py
--- a/cloud/openstack/os_security_group_rule.py
+++ b/cloud/openstack/os_security_group_rule.py
@@ -38,7 +38,7 @@
required: true
protocol:
description:
- - IP protocol
+ - IP protocols TCP U... | {"golden_diff": "diff --git a/cloud/openstack/os_security_group_rule.py b/cloud/openstack/os_security_group_rule.py\n--- a/cloud/openstack/os_security_group_rule.py\n+++ b/cloud/openstack/os_security_group_rule.py\n@@ -38,7 +38,7 @@\n required: true\n protocol:\n description:\n- - IP protocol\n+ ... | 3,879 | 119 |
gh_patches_debug_61381 | rasdani/github-patches | git_diff | tensorflow__addons-1213 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Proposal: Upload the nightlies at each commit on the master branch
We already build the wheels already anyway. It's just missing the push to pypi. Yes/No?
--- END ISSUE ---
Below are some code segments, eac... | diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -52,7 +52,7 @@
exec(fp.read(), version)
if project_name == TFA_NIGHTLY:
- version["__version__"] += datetime.strftime(datetime.today(), "%Y%m%d")
+ version["__version__"] += datetime.now().strftime("%Y%m%d%H%M%S")
with open("requirements... | {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -52,7 +52,7 @@\n exec(fp.read(), version)\n \n if project_name == TFA_NIGHTLY:\n- version[\"__version__\"] += datetime.strftime(datetime.today(), \"%Y%m%d\")\n+ version[\"__version__\"] += datetime.now().strftime(\"%Y%m%d%H%... | 1,293 | 111 |
gh_patches_debug_35842 | rasdani/github-patches | git_diff | dmlc__dgl-5543 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[Sparse] Support SparseMatrix element-wise multiplication with different sparsities.
## 🔨Work Item
**IMPORTANT:**
* This template is only for dev team to track project progress. For feature request or bu... | diff --git a/python/dgl/sparse/elementwise_op_sp.py b/python/dgl/sparse/elementwise_op_sp.py
--- a/python/dgl/sparse/elementwise_op_sp.py
+++ b/python/dgl/sparse/elementwise_op_sp.py
@@ -14,6 +14,13 @@
)
+def spsp_mul(A, B):
+ """Invoke C++ sparse library for multiplication"""
+ return SparseMatrix(
+ ... | {"golden_diff": "diff --git a/python/dgl/sparse/elementwise_op_sp.py b/python/dgl/sparse/elementwise_op_sp.py\n--- a/python/dgl/sparse/elementwise_op_sp.py\n+++ b/python/dgl/sparse/elementwise_op_sp.py\n@@ -14,6 +14,13 @@\n )\n \n \n+def spsp_mul(A, B):\n+ \"\"\"Invoke C++ sparse library for multiplication\"\"\"... | 2,674 | 756 |
gh_patches_debug_34411 | rasdani/github-patches | git_diff | ESMCI__cime-3079 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Branch a single instance case from a multi-instance case
When a multi-instance CAM forecast fails, I want to use one of the failed instances
as an exact restart in a single instance case, to speed debugging.... | diff --git a/scripts/lib/CIME/Servers/wget.py b/scripts/lib/CIME/Servers/wget.py
--- a/scripts/lib/CIME/Servers/wget.py
+++ b/scripts/lib/CIME/Servers/wget.py
@@ -15,9 +15,9 @@
self._args += "--password {} ".format(passwd)
self._server_loc = address
- err = run_cmd("wget {} --spider {}".f... | {"golden_diff": "diff --git a/scripts/lib/CIME/Servers/wget.py b/scripts/lib/CIME/Servers/wget.py\n--- a/scripts/lib/CIME/Servers/wget.py\n+++ b/scripts/lib/CIME/Servers/wget.py\n@@ -15,9 +15,9 @@\n self._args += \"--password {} \".format(passwd)\n self._server_loc = address\n \n- err = run_c... | 1,280 | 572 |
gh_patches_debug_14006 | rasdani/github-patches | git_diff | alltheplaces__alltheplaces-3341 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Spider northern_california_breweries is broken
During the global build at 2021-06-23-14-42-18, spider **northern_california_breweries** failed with **0 features** and **1 errors**.
Here's [the log](https://d... | diff --git a/locations/spiders/northern_california_breweries.py b/locations/spiders/northern_california_breweries.py
--- a/locations/spiders/northern_california_breweries.py
+++ b/locations/spiders/northern_california_breweries.py
@@ -18,10 +18,19 @@
breweryList = json.loads(jsonData)
for item in brewer... | {"golden_diff": "diff --git a/locations/spiders/northern_california_breweries.py b/locations/spiders/northern_california_breweries.py\n--- a/locations/spiders/northern_california_breweries.py\n+++ b/locations/spiders/northern_california_breweries.py\n@@ -18,10 +18,19 @@\n breweryList = json.loads(jsonData)\n \n ... | 756 | 221 |
gh_patches_debug_59836 | rasdani/github-patches | git_diff | angr__angr-4105 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Duplicate member docs on subclasses
### Description
e.g. the documentation on SimCC's members is also present on SimCCUsercall. This is a huge problem considering that the api docs page is already fucking gi... | diff --git a/docs/conf.py b/docs/conf.py
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -37,7 +37,6 @@
autodoc_default_options = {
"members": True,
"member-order": "bysource",
- "inherited-members": True,
"show-inheritance": True,
"special-members": "__init__",
"undoc-members": True,
| {"golden_diff": "diff --git a/docs/conf.py b/docs/conf.py\n--- a/docs/conf.py\n+++ b/docs/conf.py\n@@ -37,7 +37,6 @@\n autodoc_default_options = {\n \"members\": True,\n \"member-order\": \"bysource\",\n- \"inherited-members\": True,\n \"show-inheritance\": True,\n \"special-members\": \"__init__\",\... | 1,179 | 93 |
gh_patches_debug_40226 | rasdani/github-patches | git_diff | hpcaitech__ColossalAI-3113 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[tensor] fix some unittests
[tensor] fix some unittests
[tensor] fix some unittests
--- END ISSUE ---
Below are some code segments, each from a relevant file. One or more of these files may contain bugs.... | diff --git a/applications/ChatGPT/chatgpt/models/gpt/gpt_actor.py b/applications/ChatGPT/chatgpt/models/gpt/gpt_actor.py
--- a/applications/ChatGPT/chatgpt/models/gpt/gpt_actor.py
+++ b/applications/ChatGPT/chatgpt/models/gpt/gpt_actor.py
@@ -14,12 +14,16 @@
pretrained (str): Pretrained model name or path.
... | {"golden_diff": "diff --git a/applications/ChatGPT/chatgpt/models/gpt/gpt_actor.py b/applications/ChatGPT/chatgpt/models/gpt/gpt_actor.py\n--- a/applications/ChatGPT/chatgpt/models/gpt/gpt_actor.py\n+++ b/applications/ChatGPT/chatgpt/models/gpt/gpt_actor.py\n@@ -14,12 +14,16 @@\n pretrained (str): Pretrained mo... | 1,270 | 810 |
gh_patches_debug_10701 | rasdani/github-patches | git_diff | scikit-image__scikit-image-1360 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
skimage.novice not handling alpha values (or maybe something worse)
We'd like to use `skimage.novice` to teach image manipulation in Software Carpentry, but it looks like `skimage.novice` isn't handling alpha... | diff --git a/skimage/io/_plugins/pil_plugin.py b/skimage/io/_plugins/pil_plugin.py
--- a/skimage/io/_plugins/pil_plugin.py
+++ b/skimage/io/_plugins/pil_plugin.py
@@ -73,7 +73,7 @@
frame = im
- if not img_num is None and img_num != i:
+ if img_num is not None and img_num != i:
im... | {"golden_diff": "diff --git a/skimage/io/_plugins/pil_plugin.py b/skimage/io/_plugins/pil_plugin.py\n--- a/skimage/io/_plugins/pil_plugin.py\n+++ b/skimage/io/_plugins/pil_plugin.py\n@@ -73,7 +73,7 @@\n \n frame = im\n \n- if not img_num is None and img_num != i:\n+ if img_num is not None and img_... | 3,775 | 182 |
gh_patches_debug_31808 | rasdani/github-patches | git_diff | GPflow__GPflow-1843 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Anisotropic lengthscales
Currently, by default, all stationary kernels impose a positive transform on the lengthscales Parameter. For the case of AnisotropicStationary kernels, this reduces the viable paramet... | diff --git a/gpflow/kernels/stationaries.py b/gpflow/kernels/stationaries.py
--- a/gpflow/kernels/stationaries.py
+++ b/gpflow/kernels/stationaries.py
@@ -41,7 +41,7 @@
:param variance: the (initial) value for the variance parameter.
:param lengthscales: the (initial) value for the lengthscale
... | {"golden_diff": "diff --git a/gpflow/kernels/stationaries.py b/gpflow/kernels/stationaries.py\n--- a/gpflow/kernels/stationaries.py\n+++ b/gpflow/kernels/stationaries.py\n@@ -41,7 +41,7 @@\n :param variance: the (initial) value for the variance parameter.\n :param lengthscales: the (initial) value for t... | 3,372 | 501 |
gh_patches_debug_35660 | rasdani/github-patches | git_diff | Lightning-AI__torchmetrics-1709 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
mismatch for docs in `perplexity`
## 📚 Documentation
I am working on the NLP models and find that the implementation of `perplexity` in https://github.com/Lightning-AI/torchmetrics/blob/e4df07109586d1f605... | diff --git a/src/torchmetrics/functional/text/perplexity.py b/src/torchmetrics/functional/text/perplexity.py
--- a/src/torchmetrics/functional/text/perplexity.py
+++ b/src/torchmetrics/functional/text/perplexity.py
@@ -26,7 +26,8 @@
Args:
preds:
- Probabilities assigned to each token in a seq... | {"golden_diff": "diff --git a/src/torchmetrics/functional/text/perplexity.py b/src/torchmetrics/functional/text/perplexity.py\n--- a/src/torchmetrics/functional/text/perplexity.py\n+++ b/src/torchmetrics/functional/text/perplexity.py\n@@ -26,7 +26,8 @@\n \n Args:\n preds:\n- Probabilities assigne... | 3,551 | 592 |
gh_patches_debug_21007 | rasdani/github-patches | git_diff | joke2k__faker-213 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
`.prefix`/`.suffix` returns a tuple instead of a single value
`.prefix` (and `.suffix`) can occasionally return a tuple of values instead of a single value when `prefixes_male` and `prefixes_female` (or `suff... | diff --git a/faker/providers/person/__init__.py b/faker/providers/person/__init__.py
--- a/faker/providers/person/__init__.py
+++ b/faker/providers/person/__init__.py
@@ -71,7 +71,8 @@
if hasattr(cls, 'prefixes'):
return cls.random_element(cls.prefixes)
if hasattr(cls, 'prefixes_male') an... | {"golden_diff": "diff --git a/faker/providers/person/__init__.py b/faker/providers/person/__init__.py\n--- a/faker/providers/person/__init__.py\n+++ b/faker/providers/person/__init__.py\n@@ -71,7 +71,8 @@\n if hasattr(cls, 'prefixes'):\n return cls.random_element(cls.prefixes)\n if hasattr(c... | 1,318 | 252 |
gh_patches_debug_5043 | rasdani/github-patches | git_diff | dask__distributed-3652 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Variable delete raises KeyError
It seems that there is an unhandled KeyError in the scheduler variable delete logic.
If using the asynchronous API only visible in the scheduler logs but it does mean that V... | diff --git a/distributed/variable.py b/distributed/variable.py
--- a/distributed/variable.py
+++ b/distributed/variable.py
@@ -113,8 +113,10 @@
else:
if old["type"] == "Future":
await self.release(old["value"], name)
- del self.waiting_conditions[name]
- ... | {"golden_diff": "diff --git a/distributed/variable.py b/distributed/variable.py\n--- a/distributed/variable.py\n+++ b/distributed/variable.py\n@@ -113,8 +113,10 @@\n else:\n if old[\"type\"] == \"Future\":\n await self.release(old[\"value\"], name)\n- del self.... | 2,988 | 120 |
gh_patches_debug_23955 | rasdani/github-patches | git_diff | arviz-devs__arviz-615 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Return value of plot_pair is numvars the same
The return value of `plot_pair` is a list that contains `numvars` times the array of subplots. I guess it comes from the original version with gridspec.
Line ... | diff --git a/arviz/plots/pairplot.py b/arviz/plots/pairplot.py
--- a/arviz/plots/pairplot.py
+++ b/arviz/plots/pairplot.py
@@ -192,7 +192,6 @@
ax.set_xlabel("{}".format(flat_var_names[0]), fontsize=ax_labelsize, wrap=True)
ax.set_ylabel("{}".format(flat_var_names[1]), fontsize=ax_labelsize, wrap=True)... | {"golden_diff": "diff --git a/arviz/plots/pairplot.py b/arviz/plots/pairplot.py\n--- a/arviz/plots/pairplot.py\n+++ b/arviz/plots/pairplot.py\n@@ -192,7 +192,6 @@\n ax.set_xlabel(\"{}\".format(flat_var_names[0]), fontsize=ax_labelsize, wrap=True)\n ax.set_ylabel(\"{}\".format(flat_var_names[1]), fontsiz... | 3,285 | 273 |
gh_patches_debug_44407 | rasdani/github-patches | git_diff | google__mobly-227 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
`snippet_shell` is broken for python3
```
$ snippet_shell.py --mbs
s.logINFO:root:[AndroidDevice|HT67K0300103] Launching snippet apk com.google.android.mobly.snippet.bundled with protocol v1
VTraceback (mo... | diff --git a/mobly/controllers/android_device_lib/snippet_client.py b/mobly/controllers/android_device_lib/snippet_client.py
--- a/mobly/controllers/android_device_lib/snippet_client.py
+++ b/mobly/controllers/android_device_lib/snippet_client.py
@@ -1,11 +1,11 @@
# Copyright 2016 Google Inc.
-#
+#
# Licensed under ... | {"golden_diff": "diff --git a/mobly/controllers/android_device_lib/snippet_client.py b/mobly/controllers/android_device_lib/snippet_client.py\n--- a/mobly/controllers/android_device_lib/snippet_client.py\n+++ b/mobly/controllers/android_device_lib/snippet_client.py\n@@ -1,11 +1,11 @@\n # Copyright 2016 Google Inc.\n-# ... | 3,416 | 1,011 |
gh_patches_debug_13248 | rasdani/github-patches | git_diff | graspologic-org__graspologic-965 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Fix to repeated compilation of numba
- [x] Does this PR have a descriptive title that could go in our release notes?
- [ ] Does this PR add any new dependencies?
- [ ] Does this PR modify any existing APIs?... | diff --git a/graspologic/models/edge_swaps.py b/graspologic/models/edge_swaps.py
--- a/graspologic/models/edge_swaps.py
+++ b/graspologic/models/edge_swaps.py
@@ -73,7 +73,7 @@
else:
# for numpy input, use numba for JIT compilation
# NOTE: not convinced numba is helping much here, loo... | {"golden_diff": "diff --git a/graspologic/models/edge_swaps.py b/graspologic/models/edge_swaps.py\n--- a/graspologic/models/edge_swaps.py\n+++ b/graspologic/models/edge_swaps.py\n@@ -73,7 +73,7 @@\n else:\n # for numpy input, use numba for JIT compilation\n # NOTE: not convinced numba is... | 2,724 | 195 |
gh_patches_debug_36010 | rasdani/github-patches | git_diff | cal-itp__benefits-396 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Track sign in status in user session
## Background
Once the user successfully signs in to their Login.gov account, we will receive a response from the authentication server indicating their status. We can ... | diff --git a/benefits/core/session.py b/benefits/core/session.py
--- a/benefits/core/session.py
+++ b/benefits/core/session.py
@@ -16,6 +16,7 @@
_AGENCY = "agency"
+_AUTH = "auth"
_DEBUG = "debug"
_DID = "did"
_ELIGIBILITY = "eligibility"
@@ -50,11 +51,18 @@
return a and a.active
+def auth(request):
+ ... | {"golden_diff": "diff --git a/benefits/core/session.py b/benefits/core/session.py\n--- a/benefits/core/session.py\n+++ b/benefits/core/session.py\n@@ -16,6 +16,7 @@\n \n \n _AGENCY = \"agency\"\n+_AUTH = \"auth\"\n _DEBUG = \"debug\"\n _DID = \"did\"\n _ELIGIBILITY = \"eligibility\"\n@@ -50,11 +51,18 @@\n return a ... | 3,194 | 520 |
gh_patches_debug_36715 | rasdani/github-patches | git_diff | Mailu__Mailu-1968 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Insufficient input validation in /internal endpoint
It seems like it is possible to crash a thread of flask by sending an invalid utf-8 username.
As far as i can see, this can not be used to gain access (sh... | diff --git a/core/admin/mailu/internal/nginx.py b/core/admin/mailu/internal/nginx.py
--- a/core/admin/mailu/internal/nginx.py
+++ b/core/admin/mailu/internal/nginx.py
@@ -71,16 +71,6 @@
}
# Authenticated user
elif method == "plain":
- server, port = get_server(headers["Auth-Protocol"], Tru... | {"golden_diff": "diff --git a/core/admin/mailu/internal/nginx.py b/core/admin/mailu/internal/nginx.py\n--- a/core/admin/mailu/internal/nginx.py\n+++ b/core/admin/mailu/internal/nginx.py\n@@ -71,16 +71,6 @@\n }\n # Authenticated user\n elif method == \"plain\":\n- server, port = get_server(hea... | 2,417 | 770 |
gh_patches_debug_27115 | rasdani/github-patches | git_diff | nonebot__nonebot2-135 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Bug: 错误删除未执行过的`temp matcher`
**描述问题:**
处理事件时错误地删除了未执行过的 `temp matcher`
**环境信息:**
- OS: any
- Python Version: any
- Nonebot Version: 2.0.0a8
--- END ISSUE ---
Below are some code segments, ea... | diff --git a/nonebot/message.py b/nonebot/message.py
--- a/nonebot/message.py
+++ b/nonebot/message.py
@@ -117,8 +117,7 @@
return None
async def _check_expire(Matcher: Type[Matcher]) -> Optional[Type[Matcher]]:
- if Matcher.temp or (Matcher.expire_time and
- datetime.no... | {"golden_diff": "diff --git a/nonebot/message.py b/nonebot/message.py\n--- a/nonebot/message.py\n+++ b/nonebot/message.py\n@@ -117,8 +117,7 @@\n return None\n \n async def _check_expire(Matcher: Type[Matcher]) -> Optional[Type[Matcher]]:\n- if Matcher.temp or (Matcher.expire_time and\n- ... | 3,073 | 340 |
gh_patches_debug_1452 | rasdani/github-patches | git_diff | wagtail__wagtail-11660 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Wagtail Documentation favicon icon is missing (Not Found)
<!--
Summarise the documentation change you’re suggesting in the Issue title.
-->
### Pertinent section of the Wagtail docs
<!--
Copy the... | diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -73,7 +73,7 @@
"sphinxcontrib-spelling>=7,<8",
"Sphinx>=1.5.2",
"sphinx-autobuild>=0.6.0",
- "sphinx-wagtail-theme==6.2.0",
+ "sphinx-wagtail-theme==6.3.0",
"myst_parser==2.0.0",
"sphinx_copybutton>=0.5,<1.0",
]
| {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -73,7 +73,7 @@\n \"sphinxcontrib-spelling>=7,<8\",\n \"Sphinx>=1.5.2\",\n \"sphinx-autobuild>=0.6.0\",\n- \"sphinx-wagtail-theme==6.2.0\",\n+ \"sphinx-wagtail-theme==6.3.0\",\n \"myst_parser==2.0.0\",\n \"sph... | 2,424 | 129 |
gh_patches_debug_2792 | rasdani/github-patches | git_diff | docker__docker-py-3257 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Breaks with requests 2.32.0: Not supported URL scheme http+docker
With requests 2.32.0 (released about an hour ago as I write this), the docker library as called by [tox-docker](https://github.com/tox-dev/tox... | diff --git a/docker/transport/basehttpadapter.py b/docker/transport/basehttpadapter.py
--- a/docker/transport/basehttpadapter.py
+++ b/docker/transport/basehttpadapter.py
@@ -6,3 +6,8 @@
super().close()
if hasattr(self, 'pools'):
self.pools.clear()
+
+ # Fix for requests 2.32.2+:
+ ... | {"golden_diff": "diff --git a/docker/transport/basehttpadapter.py b/docker/transport/basehttpadapter.py\n--- a/docker/transport/basehttpadapter.py\n+++ b/docker/transport/basehttpadapter.py\n@@ -6,3 +6,8 @@\n super().close()\n if hasattr(self, 'pools'):\n self.pools.clear()\n+\n+ # Fix fo... | 2,080 | 170 |
gh_patches_debug_32124 | rasdani/github-patches | git_diff | translate__pootle-5451 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Remove SubfieldBase from MultiStringField
In django 1.9 SubFieldBase is deprecated, and removed in 1.10
Related Stackoverflow - http://stackoverflow.com/questions/35166085/how-to-deal-with-subfieldbase-has-b... | diff --git a/pootle/apps/pootle_store/fields.py b/pootle/apps/pootle_store/fields.py
--- a/pootle/apps/pootle_store/fields.py
+++ b/pootle/apps/pootle_store/fields.py
@@ -48,10 +48,30 @@
return multistring(value, encoding="UTF-8")
+class CastOnAssignDescriptor(object):
+ """
+ A property descriptor w... | {"golden_diff": "diff --git a/pootle/apps/pootle_store/fields.py b/pootle/apps/pootle_store/fields.py\n--- a/pootle/apps/pootle_store/fields.py\n+++ b/pootle/apps/pootle_store/fields.py\n@@ -48,10 +48,30 @@\n return multistring(value, encoding=\"UTF-8\")\n \n \n+class CastOnAssignDescriptor(object):\n+ \"\"\... | 2,653 | 507 |
gh_patches_debug_14953 | rasdani/github-patches | git_diff | python-poetry__poetry-1909 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Setting credentials through env. variable are not working
<!-- Checked checkbox should look like this: [x] -->
- [ x ] I am on the [latest](https://github.com/python-poetry/poetry/releases/latest) Poetry ver... | diff --git a/poetry/utils/password_manager.py b/poetry/utils/password_manager.py
--- a/poetry/utils/password_manager.py
+++ b/poetry/utils/password_manager.py
@@ -155,11 +155,14 @@
def get_http_auth(self, name):
auth = self._config.get("http-basic.{}".format(name))
if not auth:
- retur... | {"golden_diff": "diff --git a/poetry/utils/password_manager.py b/poetry/utils/password_manager.py\n--- a/poetry/utils/password_manager.py\n+++ b/poetry/utils/password_manager.py\n@@ -155,11 +155,14 @@\n def get_http_auth(self, name):\n auth = self._config.get(\"http-basic.{}\".format(name))\n if not... | 2,865 | 225 |
gh_patches_debug_24821 | rasdani/github-patches | git_diff | nilearn__nilearn-3077 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
nilearn.plotting overrides the matplotlib backend, causing troubles on remote SSH development
I am working on a remote settings, accessing a machine (drago/margaret for INRIA context) through a PyCharm Remote... | diff --git a/nilearn/plotting/__init__.py b/nilearn/plotting/__init__.py
--- a/nilearn/plotting/__init__.py
+++ b/nilearn/plotting/__init__.py
@@ -2,9 +2,8 @@
Plotting code for nilearn
"""
# Original Authors: Chris Filo Gorgolewski, Gael Varoquaux
-import os
-import sys
import importlib
+import warnings
######... | {"golden_diff": "diff --git a/nilearn/plotting/__init__.py b/nilearn/plotting/__init__.py\n--- a/nilearn/plotting/__init__.py\n+++ b/nilearn/plotting/__init__.py\n@@ -2,9 +2,8 @@\n Plotting code for nilearn\n \"\"\"\n # Original Authors: Chris Filo Gorgolewski, Gael Varoquaux\n-import os\n-import sys\n import importlib... | 1,642 | 337 |
gh_patches_debug_130 | rasdani/github-patches | git_diff | svthalia__concrexit-1750 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Event registration member serializer should be read only
### Describe the bug
https://github.com/svthalia/concrexit/blob/4ab37961f50e398cc52422cdc1df66f6ab8ff2ee/website/events/api/v2/serializers/event_regis... | diff --git a/website/events/api/v2/serializers/event_registration.py b/website/events/api/v2/serializers/event_registration.py
--- a/website/events/api/v2/serializers/event_registration.py
+++ b/website/events/api/v2/serializers/event_registration.py
@@ -31,4 +31,4 @@
"name",
)
- member = Mem... | {"golden_diff": "diff --git a/website/events/api/v2/serializers/event_registration.py b/website/events/api/v2/serializers/event_registration.py\n--- a/website/events/api/v2/serializers/event_registration.py\n+++ b/website/events/api/v2/serializers/event_registration.py\n@@ -31,4 +31,4 @@\n \"name\",\n ... | 653 | 103 |
gh_patches_debug_32911 | rasdani/github-patches | git_diff | openstates__openstates-scrapers-2745 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
CA not running with new image
it seems like CA isn't running right now w/ the switch to Alpine, need to investigate
--- END ISSUE ---
Below are some code segments, each from a relevant file. One or more of ... | diff --git a/openstates/ca/models.py b/openstates/ca/models.py
--- a/openstates/ca/models.py
+++ b/openstates/ca/models.py
@@ -1,7 +1,7 @@
from sqlalchemy import (Column, Integer, String, ForeignKey,
DateTime, Numeric, UnicodeText)
from sqlalchemy.sql import and_
-from sqlalchemy.orm import b... | {"golden_diff": "diff --git a/openstates/ca/models.py b/openstates/ca/models.py\n--- a/openstates/ca/models.py\n+++ b/openstates/ca/models.py\n@@ -1,7 +1,7 @@\n from sqlalchemy import (Column, Integer, String, ForeignKey,\n DateTime, Numeric, UnicodeText)\n from sqlalchemy.sql import and_\n-from... | 3,195 | 408 |
gh_patches_debug_30897 | rasdani/github-patches | git_diff | encode__starlette-186 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Session middleware is highly insecure
The session middleware does not have any timestamp component to it, which means that if a session happens to be somehow leaked, it can be reused any time in the future.
... | diff --git a/starlette/middleware/sessions.py b/starlette/middleware/sessions.py
--- a/starlette/middleware/sessions.py
+++ b/starlette/middleware/sessions.py
@@ -3,6 +3,7 @@
from base64 import b64decode, b64encode
import itsdangerous
+from itsdangerous.exc import BadTimeSignature, SignatureExpired
from starlett... | {"golden_diff": "diff --git a/starlette/middleware/sessions.py b/starlette/middleware/sessions.py\n--- a/starlette/middleware/sessions.py\n+++ b/starlette/middleware/sessions.py\n@@ -3,6 +3,7 @@\n from base64 import b64decode, b64encode\n \n import itsdangerous\n+from itsdangerous.exc import BadTimeSignature, Signature... | 933 | 428 |
gh_patches_debug_21051 | rasdani/github-patches | git_diff | geopandas__geopandas-512 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
BUG/COMPAT: missing values handling / fillna no longer working with shapely 1.6
See https://github.com/Toblerity/Shapely/issues/510 for more detailed exploration of the problem
Temporarily pinned our CI to... | diff --git a/geopandas/geoseries.py b/geopandas/geoseries.py
--- a/geopandas/geoseries.py
+++ b/geopandas/geoseries.py
@@ -184,14 +184,14 @@
"method" is currently not implemented for pandas <= 0.12.
"""
if value is None:
- value = Point()
+ value = BaseGeometry()
... | {"golden_diff": "diff --git a/geopandas/geoseries.py b/geopandas/geoseries.py\n--- a/geopandas/geoseries.py\n+++ b/geopandas/geoseries.py\n@@ -184,14 +184,14 @@\n \"method\" is currently not implemented for pandas <= 0.12.\n \"\"\"\n if value is None:\n- value = Point()\n+ ... | 3,288 | 202 |
gh_patches_debug_13477 | rasdani/github-patches | git_diff | dj-stripe__dj-stripe-547 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Error: Cannot resolve keyword 'customer' into field.
All,
Cannot get past the step
`python manage.py djstripe_init_customers`
in the installation.
Running Python 3.6.0, Django 1.11, and the late... | diff --git a/djstripe/management/commands/djstripe_init_customers.py b/djstripe/management/commands/djstripe_init_customers.py
--- a/djstripe/management/commands/djstripe_init_customers.py
+++ b/djstripe/management/commands/djstripe_init_customers.py
@@ -22,7 +22,7 @@
def handle(self, *args, **options):
... | {"golden_diff": "diff --git a/djstripe/management/commands/djstripe_init_customers.py b/djstripe/management/commands/djstripe_init_customers.py\n--- a/djstripe/management/commands/djstripe_init_customers.py\n+++ b/djstripe/management/commands/djstripe_init_customers.py\n@@ -22,7 +22,7 @@\n \n def handle(self, *args... | 1,415 | 182 |
gh_patches_debug_12626 | rasdani/github-patches | git_diff | cowrie__cowrie-415 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
^M for carriage return in telnet
Trying to log in via telnet to cowrie results in the following:
$telnet xx.yy.zz.aa
Trying xx.yy.zz.aa
Connected to xx.yy.zz.aa.
Escape character is '^]'.
login: icantp... | diff --git a/cowrie/telnet/transport.py b/cowrie/telnet/transport.py
--- a/cowrie/telnet/transport.py
+++ b/cowrie/telnet/transport.py
@@ -180,15 +180,17 @@
if opt == ECHO:
return True
elif opt == SGA:
- return True
+ return False
+ #return True
e... | {"golden_diff": "diff --git a/cowrie/telnet/transport.py b/cowrie/telnet/transport.py\n--- a/cowrie/telnet/transport.py\n+++ b/cowrie/telnet/transport.py\n@@ -180,15 +180,17 @@\n if opt == ECHO:\n return True\n elif opt == SGA:\n- return True\n+ return False\n+ ... | 3,346 | 197 |
gh_patches_debug_48141 | rasdani/github-patches | git_diff | google__flax-270 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
`typing._ClassVar` cannot be accessed in the iPython shell – dataclasses package seems to mess up on Python 3.7
### Problem you have encountered:
I just installed flax and tried to import it from the iPyth... | diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -30,7 +30,7 @@
"numpy>=1.12",
"jax>=0.1.59",
"matplotlib", # only needed for tensorboard export
- "dataclasses", # will only install on py3.6
+ "dataclasses;python_version<'3.7'", # will only install on py3.6
"msgpack",
]
| {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -30,7 +30,7 @@\n \"numpy>=1.12\",\n \"jax>=0.1.59\",\n \"matplotlib\", # only needed for tensorboard export\n- \"dataclasses\", # will only install on py3.6\n+ \"dataclasses;python_version<'3.7'\", # will only inst... | 1,546 | 111 |
gh_patches_debug_58693 | rasdani/github-patches | git_diff | google-parfait__tensorflow-federated-1334 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Keras model in federated_learning_for_image_classification.ipynb throws warning
**Describe the bug**
Keras Sequential Model in [federated_learning_for_image_classification.ipynb](https://github.com/tensorflo... | diff --git a/tensorflow_federated/python/examples/remote_execution/remote_executor_example.py b/tensorflow_federated/python/examples/remote_execution/remote_executor_example.py
--- a/tensorflow_federated/python/examples/remote_execution/remote_executor_example.py
+++ b/tensorflow_federated/python/examples/remote_execut... | {"golden_diff": "diff --git a/tensorflow_federated/python/examples/remote_execution/remote_executor_example.py b/tensorflow_federated/python/examples/remote_execution/remote_executor_example.py\n--- a/tensorflow_federated/python/examples/remote_execution/remote_executor_example.py\n+++ b/tensorflow_federated/python/exa... | 2,040 | 156 |
gh_patches_debug_32843 | rasdani/github-patches | git_diff | nextcloud__appstore-693 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Password reset sends outdated reset token
When requesting a password reset link from apps.nextcloud.com, the token in the link of the reset e-mail does not work, the website reports:
> Bad API Token
>
... | diff --git a/nextcloudappstore/user/forms.py b/nextcloudappstore/user/forms.py
--- a/nextcloudappstore/user/forms.py
+++ b/nextcloudappstore/user/forms.py
@@ -1,3 +1,4 @@
+from allauth.account.forms import EmailAwarePasswordResetTokenGenerator
from allauth.account.utils import filter_users_by_email, user_username, \
... | {"golden_diff": "diff --git a/nextcloudappstore/user/forms.py b/nextcloudappstore/user/forms.py\n--- a/nextcloudappstore/user/forms.py\n+++ b/nextcloudappstore/user/forms.py\n@@ -1,3 +1,4 @@\n+from allauth.account.forms import EmailAwarePasswordResetTokenGenerator\n from allauth.account.utils import filter_users_by_ema... | 1,646 | 350 |
gh_patches_debug_24199 | rasdani/github-patches | git_diff | LibraryOfCongress__concordia-782 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Remove Latest page URL, in nav bar, and redirect
Community managers want to consolidate `/latest` in to the `/about`. Most of the communication and everyday updates happen in History Hub, there is less usage ... | diff --git a/concordia/urls.py b/concordia/urls.py
--- a/concordia/urls.py
+++ b/concordia/urls.py
@@ -4,6 +4,7 @@
from django.http import Http404, HttpResponseForbidden
from django.urls import include, path
from django.views.defaults import page_not_found, permission_denied, server_error
+from django.views.generic ... | {"golden_diff": "diff --git a/concordia/urls.py b/concordia/urls.py\n--- a/concordia/urls.py\n+++ b/concordia/urls.py\n@@ -4,6 +4,7 @@\n from django.http import Http404, HttpResponseForbidden\n from django.urls import include, path\n from django.views.defaults import page_not_found, permission_denied, server_error\n+fr... | 1,836 | 258 |
gh_patches_debug_34612 | rasdani/github-patches | git_diff | Textualize__textual-2305 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
It's possible to somehow break the working of `TabbedContent`
This one isn't exactly easy to explain, but hopefully easy to see and recreate with the following code (which is a distilled version of what I'm d... | diff --git a/src/textual/widgets/_tabbed_content.py b/src/textual/widgets/_tabbed_content.py
--- a/src/textual/widgets/_tabbed_content.py
+++ b/src/textual/widgets/_tabbed_content.py
@@ -83,9 +83,6 @@
}
"""
- active: reactive[str] = reactive("", init=False)
- """The ID of the active tab, or empty stri... | {"golden_diff": "diff --git a/src/textual/widgets/_tabbed_content.py b/src/textual/widgets/_tabbed_content.py\n--- a/src/textual/widgets/_tabbed_content.py\n+++ b/src/textual/widgets/_tabbed_content.py\n@@ -83,9 +83,6 @@\n }\n \"\"\"\n \n- active: reactive[str] = reactive(\"\", init=False)\n- \"\"\"The ID... | 2,717 | 495 |
gh_patches_debug_27308 | rasdani/github-patches | git_diff | pytorch__text-208 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
text/test/translation.py fails for custom paths
`text/test/translation.py` currently fails on the last section:
```python
train, val = datasets.TranslationDataset.splits(
path='.data/multi30k/', trai... | diff --git a/torchtext/datasets/translation.py b/torchtext/datasets/translation.py
--- a/torchtext/datasets/translation.py
+++ b/torchtext/datasets/translation.py
@@ -40,12 +40,13 @@
super(TranslationDataset, self).__init__(examples, fields, **kwargs)
@classmethod
- def splits(cls, exts, fields, root... | {"golden_diff": "diff --git a/torchtext/datasets/translation.py b/torchtext/datasets/translation.py\n--- a/torchtext/datasets/translation.py\n+++ b/torchtext/datasets/translation.py\n@@ -40,12 +40,13 @@\n super(TranslationDataset, self).__init__(examples, fields, **kwargs)\n \n @classmethod\n- def splits... | 3,041 | 299 |
gh_patches_debug_35444 | rasdani/github-patches | git_diff | InstaPy__InstaPy-831 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Cannot focus element error
I'm running the script on mac and after some time i get this error:
Message: unknown error: cannot focus element
(Session info: chrome=61.0.3163.100)
(Driver info: chromedr... | diff --git a/instapy/comment_util.py b/instapy/comment_util.py
--- a/instapy/comment_util.py
+++ b/instapy/comment_util.py
@@ -2,8 +2,31 @@
"""Module which handles the commenting features"""
from random import choice
from .time_util import sleep
+from selenium.common.exceptions import WebDriverException
import emoj... | {"golden_diff": "diff --git a/instapy/comment_util.py b/instapy/comment_util.py\n--- a/instapy/comment_util.py\n+++ b/instapy/comment_util.py\n@@ -2,8 +2,31 @@\n \"\"\"Module which handles the commenting features\"\"\"\n from random import choice\n from .time_util import sleep\n+from selenium.common.exceptions import W... | 753 | 549 |
gh_patches_debug_14352 | rasdani/github-patches | git_diff | gratipay__gratipay.com-2429 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
preclude adding stub participants as team members
Reticketed from #2362.
preclude adding stub participants as team members
Reticketed from #2362.
--- END ISSUE ---
Below are some code segments, each from ... | diff --git a/gittip/models/_mixin_team.py b/gittip/models/_mixin_team.py
--- a/gittip/models/_mixin_team.py
+++ b/gittip/models/_mixin_team.py
@@ -7,6 +7,7 @@
class MemberLimitReached(Exception): pass
+class StubParticipantAdded(Exception): pass
class MixinTeam(object):
"""This class provides methods for w... | {"golden_diff": "diff --git a/gittip/models/_mixin_team.py b/gittip/models/_mixin_team.py\n--- a/gittip/models/_mixin_team.py\n+++ b/gittip/models/_mixin_team.py\n@@ -7,6 +7,7 @@\n \n class MemberLimitReached(Exception): pass\n \n+class StubParticipantAdded(Exception): pass\n \n class MixinTeam(object):\n \"\"\"Thi... | 2,531 | 178 |
gh_patches_debug_24835 | rasdani/github-patches | git_diff | napari__napari-589 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
novel gene discovery in Napari (a.k.a. imperfect layer name incrementing)
## 🐛 Bug
napari does a smart thing and adds an integer to the name of a layer if the name is already in use in the viewer. It then ... | diff --git a/napari/util/naming.py b/napari/util/naming.py
--- a/napari/util/naming.py
+++ b/napari/util/naming.py
@@ -7,7 +7,9 @@
sep = ' '
start = 1
-numbered_patt = re.compile(r'(?<!\d)(?:\d+|)$')
+# Match integer between square brackets at end of string if after space
+# or at beginning of string or just match ... | {"golden_diff": "diff --git a/napari/util/naming.py b/napari/util/naming.py\n--- a/napari/util/naming.py\n+++ b/napari/util/naming.py\n@@ -7,7 +7,9 @@\n sep = ' '\n start = 1\n \n-numbered_patt = re.compile(r'(?<!\\d)(?:\\d+|)$')\n+# Match integer between square brackets at end of string if after space\n+# or at beginn... | 843 | 361 |
gh_patches_debug_1164 | rasdani/github-patches | git_diff | microsoft__botbuilder-python-1907 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
German language is not appropiate used when using Confirmprompts
### The Issue
I am building a chatbot for german users. I am sending the local "de-de" as user, and can confirm this actual arrives the bot. W... | diff --git a/libraries/botbuilder-dialogs/botbuilder/dialogs/prompts/prompt_culture_models.py b/libraries/botbuilder-dialogs/botbuilder/dialogs/prompts/prompt_culture_models.py
--- a/libraries/botbuilder-dialogs/botbuilder/dialogs/prompts/prompt_culture_models.py
+++ b/libraries/botbuilder-dialogs/botbuilder/dialogs/pr... | {"golden_diff": "diff --git a/libraries/botbuilder-dialogs/botbuilder/dialogs/prompts/prompt_culture_models.py b/libraries/botbuilder-dialogs/botbuilder/dialogs/prompts/prompt_culture_models.py\n--- a/libraries/botbuilder-dialogs/botbuilder/dialogs/prompts/prompt_culture_models.py\n+++ b/libraries/botbuilder-dialogs/bo... | 2,229 | 137 |
gh_patches_debug_13137 | rasdani/github-patches | git_diff | genialis__resolwe-313 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
404 returned when deleting entity with `delete_content` set to `true`
Probably because sample gets deleted when the last data object is deleted.
--- END ISSUE ---
Below are some code segments, each from a r... | diff --git a/resolwe/flow/views/entity.py b/resolwe/flow/views/entity.py
--- a/resolwe/flow/views/entity.py
+++ b/resolwe/flow/views/entity.py
@@ -68,6 +68,11 @@
if user.has_perm('edit_data', data):
data.delete()
+ # If all data objects in an entity are removed, the en... | {"golden_diff": "diff --git a/resolwe/flow/views/entity.py b/resolwe/flow/views/entity.py\n--- a/resolwe/flow/views/entity.py\n+++ b/resolwe/flow/views/entity.py\n@@ -68,6 +68,11 @@\n if user.has_perm('edit_data', data):\n data.delete()\n \n+ # If all data objects in an en... | 1,531 | 185 |
gh_patches_debug_41642 | rasdani/github-patches | git_diff | pytorch__vision-3656 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Avoid pandas dependency for CelebA dataset
The CelebA dataset has a runtime dependency on `pandas`. Since all we need is `pandas.read_csv`, it would be interesting to see if we can replace `pandas.read_csv` b... | diff --git a/torchvision/datasets/celeba.py b/torchvision/datasets/celeba.py
--- a/torchvision/datasets/celeba.py
+++ b/torchvision/datasets/celeba.py
@@ -1,3 +1,5 @@
+from collections import namedtuple
+import csv
from functools import partial
import torch
import os
@@ -6,6 +8,8 @@
from .vision import VisionDatase... | {"golden_diff": "diff --git a/torchvision/datasets/celeba.py b/torchvision/datasets/celeba.py\n--- a/torchvision/datasets/celeba.py\n+++ b/torchvision/datasets/celeba.py\n@@ -1,3 +1,5 @@\n+from collections import namedtuple\n+import csv\n from functools import partial\n import torch\n import os\n@@ -6,6 +8,8 @@\n from ... | 2,948 | 972 |
gh_patches_debug_6684 | rasdani/github-patches | git_diff | netbox-community__netbox-11404 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Scheduling a job in the past raises an exception
### NetBox version
v3.4.2
### Python version
3.10
### Steps to Reproduce
1. Create a script
2. Schedule it in the past
### Expected Behavior
Form valid... | diff --git a/netbox/extras/forms/scripts.py b/netbox/extras/forms/scripts.py
--- a/netbox/extras/forms/scripts.py
+++ b/netbox/extras/forms/scripts.py
@@ -48,9 +48,7 @@
def clean__schedule_at(self):
scheduled_time = self.cleaned_data['_schedule_at']
if scheduled_time and scheduled_time < timezone... | {"golden_diff": "diff --git a/netbox/extras/forms/scripts.py b/netbox/extras/forms/scripts.py\n--- a/netbox/extras/forms/scripts.py\n+++ b/netbox/extras/forms/scripts.py\n@@ -48,9 +48,7 @@\n def clean__schedule_at(self):\n scheduled_time = self.cleaned_data['_schedule_at']\n if scheduled_time and sc... | 1,448 | 127 |
gh_patches_debug_42729 | rasdani/github-patches | git_diff | microsoft__botbuilder-python-1227 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[PORT] Replace UseState() with UseBotState()
> Port this change from botbuilder-dotnet/master branch:
https://github.com/microsoft/botbuilder-dotnet/pull/3862
Fixes #3859
and use untyped params so that or... | diff --git a/libraries/botbuilder-core/botbuilder/core/adapter_extensions.py b/libraries/botbuilder-core/botbuilder/core/adapter_extensions.py
--- a/libraries/botbuilder-core/botbuilder/core/adapter_extensions.py
+++ b/libraries/botbuilder-core/botbuilder/core/adapter_extensions.py
@@ -1,7 +1,10 @@
# Copyright (c) Mic... | {"golden_diff": "diff --git a/libraries/botbuilder-core/botbuilder/core/adapter_extensions.py b/libraries/botbuilder-core/botbuilder/core/adapter_extensions.py\n--- a/libraries/botbuilder-core/botbuilder/core/adapter_extensions.py\n+++ b/libraries/botbuilder-core/botbuilder/core/adapter_extensions.py\n@@ -1,7 +1,10 @@\... | 1,252 | 910 |
gh_patches_debug_44942 | rasdani/github-patches | git_diff | nonebot__nonebot2-743 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Bug: `require` 重复加载插件错误
**描述问题:**
`require` load plugin raises `RuntimeError: Plugin already exists`
**如何复现?**
使用 `nonebot.load_from_toml(["third_party_plugin"], ["plugin_dir"])`,并在插件中添加 `require("th... | diff --git a/nonebot/plugin/load.py b/nonebot/plugin/load.py
--- a/nonebot/plugin/load.py
+++ b/nonebot/plugin/load.py
@@ -137,6 +137,12 @@
return load_all_plugins([f"nonebot.plugins.{p}" for p in plugins], [])
+def _find_manager_by_name(name: str) -> Optional[PluginManager]:
+ for manager in reversed(_mana... | {"golden_diff": "diff --git a/nonebot/plugin/load.py b/nonebot/plugin/load.py\n--- a/nonebot/plugin/load.py\n+++ b/nonebot/plugin/load.py\n@@ -137,6 +137,12 @@\n return load_all_plugins([f\"nonebot.plugins.{p}\" for p in plugins], [])\n \n \n+def _find_manager_by_name(name: str) -> Optional[PluginManager]:\n+ fo... | 3,831 | 998 |
gh_patches_debug_30778 | rasdani/github-patches | git_diff | vispy__vispy-1780 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Slow import
On my Windows workstation with >1200 of Python packages installed, `import vispy` takes about 3.4 seconds.
98% of that time is spend at
https://github.com/vispy/vispy/blob/ded293841c6438... | diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -178,7 +178,7 @@
readme = open('README.rst', 'r').read()
setup(
name=name,
- use_scm_version=True,
+ use_scm_version={'write_to': 'vispy/version.py'},
author='Vispy contributors',
author_email='vispy@googlegroups.com',
license... | {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -178,7 +178,7 @@\n readme = open('README.rst', 'r').read()\n setup(\n name=name,\n- use_scm_version=True,\n+ use_scm_version={'write_to': 'vispy/version.py'},\n author='Vispy contributors',\n author_email='vispy@goog... | 3,883 | 454 |
gh_patches_debug_2897 | rasdani/github-patches | git_diff | dbt-labs__dbt-core-8922 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[CT-3210] [Bug] Error using `dbt list --select` when there is a cross-project model that is `version=0` in the parent project
### Is this a new bug in dbt-core?
- [X] I believe this is a new bug in dbt-cor... | diff --git a/core/dbt/contracts/graph/node_args.py b/core/dbt/contracts/graph/node_args.py
--- a/core/dbt/contracts/graph/node_args.py
+++ b/core/dbt/contracts/graph/node_args.py
@@ -33,7 +33,8 @@
@property
def fqn(self) -> List[str]:
fqn = [self.package_name, self.name]
- if self.version:
+ ... | {"golden_diff": "diff --git a/core/dbt/contracts/graph/node_args.py b/core/dbt/contracts/graph/node_args.py\n--- a/core/dbt/contracts/graph/node_args.py\n+++ b/core/dbt/contracts/graph/node_args.py\n@@ -33,7 +33,8 @@\n @property\n def fqn(self) -> List[str]:\n fqn = [self.package_name, self.name]\n- ... | 902 | 132 |
gh_patches_debug_34624 | rasdani/github-patches | git_diff | buildbot__buildbot-4128 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
GitHub source step fails on missing magic `/merge` ref of GitHub
Currently I run into an issue where the changehook is too fast for the magic `merge` ref in GitHub to be created on Pull Requests.
An easy f... | diff --git a/master/buildbot/www/hooks/github.py b/master/buildbot/www/hooks/github.py
--- a/master/buildbot/www/hooks/github.py
+++ b/master/buildbot/www/hooks/github.py
@@ -48,6 +48,7 @@
master=None,
skips=None,
github_api_endpoint=None,
+ pullrequ... | {"golden_diff": "diff --git a/master/buildbot/www/hooks/github.py b/master/buildbot/www/hooks/github.py\n--- a/master/buildbot/www/hooks/github.py\n+++ b/master/buildbot/www/hooks/github.py\n@@ -48,6 +48,7 @@\n master=None,\n skips=None,\n github_api_endpoint=None,\n+ ... | 3,948 | 387 |
gh_patches_debug_2955 | rasdani/github-patches | git_diff | facebookresearch__hydra-2729 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
CI failing: `./tools/configen/configen/utils.py:4:1: F401 'typing.Tuple' imported but unused`
```
./tools/configen/configen/utils.py:4:1: F401 'typing.Tuple' imported but unused
nox > [2023-07-24 22:16:52,6... | diff --git a/tools/configen/configen/utils.py b/tools/configen/configen/utils.py
--- a/tools/configen/configen/utils.py
+++ b/tools/configen/configen/utils.py
@@ -1,7 +1,7 @@
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
import sys
from enum import Enum
-from typing import Any, Dict, Iterabl... | {"golden_diff": "diff --git a/tools/configen/configen/utils.py b/tools/configen/configen/utils.py\n--- a/tools/configen/configen/utils.py\n+++ b/tools/configen/configen/utils.py\n@@ -1,7 +1,7 @@\n # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved\n import sys\n from enum import Enum\n-from typing i... | 1,368 | 120 |
gh_patches_debug_37823 | rasdani/github-patches | git_diff | nipy__nipype-3194 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
NiftyReg interface raises ValueError: invalid version number
### Summary
Version number is "invalid" when I try to create a `RegAladin` node.
### Actual behavior
```python-traceback
C:\Users\fernando\tm... | diff --git a/nipype/interfaces/niftyreg/base.py b/nipype/interfaces/niftyreg/base.py
--- a/nipype/interfaces/niftyreg/base.py
+++ b/nipype/interfaces/niftyreg/base.py
@@ -19,7 +19,8 @@
import os
from ... import logging
-from ..base import CommandLine, CommandLineInputSpec, traits, Undefined
+from ..base import (Com... | {"golden_diff": "diff --git a/nipype/interfaces/niftyreg/base.py b/nipype/interfaces/niftyreg/base.py\n--- a/nipype/interfaces/niftyreg/base.py\n+++ b/nipype/interfaces/niftyreg/base.py\n@@ -19,7 +19,8 @@\n import os\n \n from ... import logging\n-from ..base import CommandLine, CommandLineInputSpec, traits, Undefined\... | 3,068 | 545 |
gh_patches_debug_22401 | rasdani/github-patches | git_diff | talonhub__community-244 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
formatters should apply to selected text if they are spoken alone
for example `yeller` while some text is selected should pass the selected text through the formatter and replace the selected text with the fo... | diff --git a/code/formatters.py b/code/formatters.py
--- a/code/formatters.py
+++ b/code/formatters.py
@@ -1,9 +1,11 @@
from talon import Module, Context, actions, ui, imgui
from talon.grammar import Phrase
from typing import List, Union
+import re
ctx = Context()
key = actions.key
+edit = actions.edit
words_... | {"golden_diff": "diff --git a/code/formatters.py b/code/formatters.py\n--- a/code/formatters.py\n+++ b/code/formatters.py\n@@ -1,9 +1,11 @@\n from talon import Module, Context, actions, ui, imgui\n from talon.grammar import Phrase\n from typing import List, Union\n+import re\n \n ctx = Context()\n key = actions.key\n+e... | 3,055 | 303 |
gh_patches_debug_2926 | rasdani/github-patches | git_diff | Mailu__Mailu-2116 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Error 404 not found when opening admin after upgrade 1.8 to master
## Before you open your issue
- [X] Check if no issue or pull-request for this already exists.
- [X] Check [documentation](https://mailu.io... | diff --git a/core/admin/mailu/ui/views/base.py b/core/admin/mailu/ui/views/base.py
--- a/core/admin/mailu/ui/views/base.py
+++ b/core/admin/mailu/ui/views/base.py
@@ -11,6 +11,10 @@
def index():
return flask.redirect(flask.url_for('.user_settings'))
+@ui.route('/ui/')
+def redirect_old_path():
+ return flask... | {"golden_diff": "diff --git a/core/admin/mailu/ui/views/base.py b/core/admin/mailu/ui/views/base.py\n--- a/core/admin/mailu/ui/views/base.py\n+++ b/core/admin/mailu/ui/views/base.py\n@@ -11,6 +11,10 @@\n def index():\n return flask.redirect(flask.url_for('.user_settings'))\n \n+@ui.route('/ui/')\n+def redirect_old_... | 1,230 | 126 |
gh_patches_debug_12516 | rasdani/github-patches | git_diff | getnikola__nikola-1908 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
nikola check --clean-files should delete empty directories
--- 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/nikola/plugins/command/check.py b/nikola/plugins/command/check.py
--- a/nikola/plugins/command/check.py
+++ b/nikola/plugins/command/check.py
@@ -313,5 +313,19 @@
def clean_files(self):
only_on_output, _ = real_scan_files(self.site)
for f in only_on_output:
+ self.logger.i... | {"golden_diff": "diff --git a/nikola/plugins/command/check.py b/nikola/plugins/command/check.py\n--- a/nikola/plugins/command/check.py\n+++ b/nikola/plugins/command/check.py\n@@ -313,5 +313,19 @@\n def clean_files(self):\n only_on_output, _ = real_scan_files(self.site)\n for f in only_on_output:\n+ ... | 3,916 | 213 |
gh_patches_debug_15945 | rasdani/github-patches | git_diff | vyperlang__vyper-2059 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Runtime error when making an external call to the same contract
This code makes it an error to make an external call to the same contract:
https://github.com/ethereum/vyper/blob/c296b2d7532d913103aad494b74... | diff --git a/vyper/parser/external_call.py b/vyper/parser/external_call.py
--- a/vyper/parser/external_call.py
+++ b/vyper/parser/external_call.py
@@ -22,8 +22,7 @@
value = 0
if gas is None:
gas = "gas"
- if contract_address.value == "address":
- raise StructureException("External calls... | {"golden_diff": "diff --git a/vyper/parser/external_call.py b/vyper/parser/external_call.py\n--- a/vyper/parser/external_call.py\n+++ b/vyper/parser/external_call.py\n@@ -22,8 +22,7 @@\n value = 0\n if gas is None:\n gas = \"gas\"\n- if contract_address.value == \"address\":\n- raise Struc... | 2,097 | 198 |
gh_patches_debug_36714 | rasdani/github-patches | git_diff | pytorch__vision-2142 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Resume in the Segmentation example
## 🐛 Bug
The segmentation training [script](https://github.com/pytorch/vision/blob/7b60f4db9707d7afdbb87fd4e8ef6906ca014720/references/segmentation/train.py) doesn't see... | diff --git a/references/segmentation/train.py b/references/segmentation/train.py
--- a/references/segmentation/train.py
+++ b/references/segmentation/train.py
@@ -128,10 +128,6 @@
if args.distributed:
model = torch.nn.SyncBatchNorm.convert_sync_batchnorm(model)
- if args.resume:
- checkpoint =... | {"golden_diff": "diff --git a/references/segmentation/train.py b/references/segmentation/train.py\n--- a/references/segmentation/train.py\n+++ b/references/segmentation/train.py\n@@ -128,10 +128,6 @@\n if args.distributed:\n model = torch.nn.SyncBatchNorm.convert_sync_batchnorm(model)\n \n- if args.resum... | 3,353 | 498 |
gh_patches_debug_2851 | rasdani/github-patches | git_diff | google__pytype-144 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Future-proof preconditions.py:_TOKEN_RE
3.7 adds a warning about possible future changes to re: https://bugs.python.org/issue30349
A future version of python will add nested sets, which allows nesting of set... | diff --git a/pytype/pytd/parse/preconditions.py b/pytype/pytd/parse/preconditions.py
--- a/pytype/pytd/parse/preconditions.py
+++ b/pytype/pytd/parse/preconditions.py
@@ -163,7 +163,7 @@
# RE to match a single token. Leading whitepace is ignored.
_TOKEN_RE = re.compile(
- r"\s*(?:(?P<literal>[[\]{}])|(?P<word>[... | {"golden_diff": "diff --git a/pytype/pytd/parse/preconditions.py b/pytype/pytd/parse/preconditions.py\n--- a/pytype/pytd/parse/preconditions.py\n+++ b/pytype/pytd/parse/preconditions.py\n@@ -163,7 +163,7 @@\n \n # RE to match a single token. Leading whitepace is ignored.\n _TOKEN_RE = re.compile(\n- r\"\\s*(?:(?P<l... | 2,992 | 166 |
gh_patches_debug_8696 | rasdani/github-patches | git_diff | easybuilders__easybuild-framework-757 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
santiy_check_commands doesn't work for ipython
--- END ISSUE ---
Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `easybuild/f... | diff --git a/easybuild/framework/extensioneasyblock.py b/easybuild/framework/extensioneasyblock.py
--- a/easybuild/framework/extensioneasyblock.py
+++ b/easybuild/framework/extensioneasyblock.py
@@ -113,7 +113,7 @@
# unload fake module and clean up
self.clean_up_fake_module(fake_mod_data)
- ... | {"golden_diff": "diff --git a/easybuild/framework/extensioneasyblock.py b/easybuild/framework/extensioneasyblock.py\n--- a/easybuild/framework/extensioneasyblock.py\n+++ b/easybuild/framework/extensioneasyblock.py\n@@ -113,7 +113,7 @@\n # unload fake module and clean up\n self.clean_up_fake_modu... | 1,702 | 144 |
gh_patches_debug_3275 | rasdani/github-patches | git_diff | apache__tvm-6502 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[TOPI] Typo in operator key
https://github.com/apache/incubator-tvm/blob/bdfefbb03f5aab96ee677ee28a166dd6ab5dbf3f/python/tvm/topi/bifrost/dense.py#L26
"biforst" should be "bifrost". This bug makes the op t... | diff --git a/python/tvm/topi/bifrost/dense.py b/python/tvm/topi/bifrost/dense.py
--- a/python/tvm/topi/bifrost/dense.py
+++ b/python/tvm/topi/bifrost/dense.py
@@ -23,7 +23,7 @@
from ..util import traverse_inline
-@autotvm.register_topi_compute("dense.biforst")
+@autotvm.register_topi_compute("dense.bifrost")
def ... | {"golden_diff": "diff --git a/python/tvm/topi/bifrost/dense.py b/python/tvm/topi/bifrost/dense.py\n--- a/python/tvm/topi/bifrost/dense.py\n+++ b/python/tvm/topi/bifrost/dense.py\n@@ -23,7 +23,7 @@\n from ..util import traverse_inline\n \n \n-@autotvm.register_topi_compute(\"dense.biforst\")\n+@autotvm.register_topi_com... | 1,665 | 143 |
gh_patches_debug_20922 | rasdani/github-patches | git_diff | pystiche__pystiche-228 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
MD5 hash error
Hi, I get this error when running the script given in the example for beginner.
`FileExistsError: bird1.jpg with a different MD5 hash already exists in /root/.cache/pystiche. If you want to ... | diff --git a/pystiche/demo.py b/pystiche/demo.py
--- a/pystiche/demo.py
+++ b/pystiche/demo.py
@@ -29,7 +29,7 @@
author="gholmz0",
date="09.03.2013",
license=PixabayLicense(),
- md5="d42444d3cd0afa47f07066cd083d6cea",
+ md5="36e5fef725943a... | {"golden_diff": "diff --git a/pystiche/demo.py b/pystiche/demo.py\n--- a/pystiche/demo.py\n+++ b/pystiche/demo.py\n@@ -29,7 +29,7 @@\n author=\"gholmz0\",\n date=\"09.03.2013\",\n license=PixabayLicense(),\n- md5=\"d42444d3cd0afa47f07066cd083d6cea\",\n+ ... | 1,184 | 345 |
gh_patches_debug_28865 | rasdani/github-patches | git_diff | bokeh__bokeh-2790 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Create example of using Hover tool to display custom images
It would be nice to show how someone can use the hovertool to display custom images using URL/URI upon hovering over a region of interest. It would... | diff --git a/sphinx/source/docs/user_guide/source_examples/tools_hover_custom_tooltip.py b/sphinx/source/docs/user_guide/source_examples/tools_hover_custom_tooltip.py
--- a/sphinx/source/docs/user_guide/source_examples/tools_hover_custom_tooltip.py
+++ b/sphinx/source/docs/user_guide/source_examples/tools_hover_custom_... | {"golden_diff": "diff --git a/sphinx/source/docs/user_guide/source_examples/tools_hover_custom_tooltip.py b/sphinx/source/docs/user_guide/source_examples/tools_hover_custom_tooltip.py\n--- a/sphinx/source/docs/user_guide/source_examples/tools_hover_custom_tooltip.py\n+++ b/sphinx/source/docs/user_guide/source_examples/... | 654 | 575 |
gh_patches_debug_25146 | rasdani/github-patches | git_diff | qtile__qtile-472 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
CPU usage leak
Running qtile master. Over a timespan of about 24 hours, qtile's CPU usage rises from trivially low to nearly 100%. In the worst stages, qtile is non-responsive to keyboard shortcuts, forcing m... | diff --git a/libqtile/widget/battery.py b/libqtile/widget/battery.py
--- a/libqtile/widget/battery.py
+++ b/libqtile/widget/battery.py
@@ -74,11 +74,14 @@
self.log.exception("Failed to get %s" % name)
def _get_param(self, name):
- if name in self.filenames:
+ if name in self.filenames ... | {"golden_diff": "diff --git a/libqtile/widget/battery.py b/libqtile/widget/battery.py\n--- a/libqtile/widget/battery.py\n+++ b/libqtile/widget/battery.py\n@@ -74,11 +74,14 @@\n self.log.exception(\"Failed to get %s\" % name)\n \n def _get_param(self, name):\n- if name in self.filenames:\n+ ... | 3,190 | 319 |
gh_patches_debug_11629 | rasdani/github-patches | git_diff | beeware__toga-193 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
ProgressBar doesn't appears in a Box [Core] [Cocoa]
Example code: https://gist.github.com/Dayof/528f9dc38f4178dbc25db6bab553e19a
When a progress bar is add inside of a box (bellow the label is the progress... | diff --git a/src/cocoa/toga_cocoa/widgets/progressbar.py b/src/cocoa/toga_cocoa/widgets/progressbar.py
--- a/src/cocoa/toga_cocoa/widgets/progressbar.py
+++ b/src/cocoa/toga_cocoa/widgets/progressbar.py
@@ -16,6 +16,7 @@
# Add the layout constraints
self._add_constraints()
+ self.rehint()
... | {"golden_diff": "diff --git a/src/cocoa/toga_cocoa/widgets/progressbar.py b/src/cocoa/toga_cocoa/widgets/progressbar.py\n--- a/src/cocoa/toga_cocoa/widgets/progressbar.py\n+++ b/src/cocoa/toga_cocoa/widgets/progressbar.py\n@@ -16,6 +16,7 @@\n \n # Add the layout constraints\n self._add_constraints()\n+ ... | 768 | 181 |
gh_patches_debug_40338 | rasdani/github-patches | git_diff | fossasia__open-event-server-4176 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Fix 'auth required' for GET /speakers
**I'm submitting a ...** (check one with "x")
- [x] bug report
- [ ] feature request
- [ ] support request => Please do not submit support requests here, instead ask ... | diff --git a/app/api/speakers.py b/app/api/speakers.py
--- a/app/api/speakers.py
+++ b/app/api/speakers.py
@@ -2,6 +2,7 @@
from marshmallow_jsonapi.flask import Schema, Relationship
from flask_rest_jsonapi import ResourceDetail, ResourceList, ResourceRelationship
from flask_rest_jsonapi.exceptions import ObjectNotFo... | {"golden_diff": "diff --git a/app/api/speakers.py b/app/api/speakers.py\n--- a/app/api/speakers.py\n+++ b/app/api/speakers.py\n@@ -2,6 +2,7 @@\n from marshmallow_jsonapi.flask import Schema, Relationship\n from flask_rest_jsonapi import ResourceDetail, ResourceList, ResourceRelationship\n from flask_rest_jsonapi.except... | 2,463 | 675 |
gh_patches_debug_23822 | rasdani/github-patches | git_diff | pytorch__vision-3396 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
ResNet FPN backbone
## 🐛 Bug
In https://github.com/pytorch/vision/blob/master/torchvision/models/detection/backbone_utils.py#L99, it says
> freeze layers only if pretrained backbone is used.
Therefo... | diff --git a/torchvision/models/detection/backbone_utils.py b/torchvision/models/detection/backbone_utils.py
--- a/torchvision/models/detection/backbone_utils.py
+++ b/torchvision/models/detection/backbone_utils.py
@@ -96,7 +96,8 @@
# select layers that wont be frozen
assert 0 <= trainable_layers <= 5
la... | {"golden_diff": "diff --git a/torchvision/models/detection/backbone_utils.py b/torchvision/models/detection/backbone_utils.py\n--- a/torchvision/models/detection/backbone_utils.py\n+++ b/torchvision/models/detection/backbone_utils.py\n@@ -96,7 +96,8 @@\n # select layers that wont be frozen\n assert 0 <= trainab... | 3,493 | 263 |
gh_patches_debug_20797 | rasdani/github-patches | git_diff | ansible-collections__community.general-6370 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Can't use CreateBiosConfigJob command from idrac_redfish_command module
### Summary
I'm trying to create a job for BIOS configuration.
In the documentation example, specified resource_id is System.Embedde... | diff --git a/plugins/modules/idrac_redfish_command.py b/plugins/modules/idrac_redfish_command.py
--- a/plugins/modules/idrac_redfish_command.py
+++ b/plugins/modules/idrac_redfish_command.py
@@ -199,7 +199,20 @@
if category == "Systems":
# execute only if we find a System resource
+ # NOTE: Curre... | {"golden_diff": "diff --git a/plugins/modules/idrac_redfish_command.py b/plugins/modules/idrac_redfish_command.py\n--- a/plugins/modules/idrac_redfish_command.py\n+++ b/plugins/modules/idrac_redfish_command.py\n@@ -199,7 +199,20 @@\n \n if category == \"Systems\":\n # execute only if we find a System resour... | 3,302 | 313 |
gh_patches_debug_1094 | rasdani/github-patches | git_diff | ESMCI__cime-4035 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
cheyenne needs a module load python
Now that we require python 3.5+, we need to do a module load python on cheyenne.
The lack of this module load is responsible for a failure in `J_TestCreateNewcase.test_f... | diff --git a/scripts/Tools/standard_script_setup.py b/scripts/Tools/standard_script_setup.py
--- a/scripts/Tools/standard_script_setup.py
+++ b/scripts/Tools/standard_script_setup.py
@@ -14,6 +14,6 @@
os.environ["CIMEROOT"] = _CIMEROOT
import CIME.utils
-CIME.utils.check_minimum_python_version(2, 7)
+CIME.utils.che... | {"golden_diff": "diff --git a/scripts/Tools/standard_script_setup.py b/scripts/Tools/standard_script_setup.py\n--- a/scripts/Tools/standard_script_setup.py\n+++ b/scripts/Tools/standard_script_setup.py\n@@ -14,6 +14,6 @@\n os.environ[\"CIMEROOT\"] = _CIMEROOT\n \n import CIME.utils\n-CIME.utils.check_minimum_python_ver... | 538 | 115 |
gh_patches_debug_33119 | rasdani/github-patches | git_diff | nilearn__nilearn-4334 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Globbing should be advertised in doc/examples.
--- END ISSUE ---
Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `examples/00... | diff --git a/examples/00_tutorials/plot_nilearn_101.py b/examples/00_tutorials/plot_nilearn_101.py
--- a/examples/00_tutorials/plot_nilearn_101.py
+++ b/examples/00_tutorials/plot_nilearn_101.py
@@ -59,17 +59,49 @@
more_smooth_anat_img = image.smooth_img(smooth_anat_img, fwhm=3)
plotting.plot_img(more_smooth_anat_img... | {"golden_diff": "diff --git a/examples/00_tutorials/plot_nilearn_101.py b/examples/00_tutorials/plot_nilearn_101.py\n--- a/examples/00_tutorials/plot_nilearn_101.py\n+++ b/examples/00_tutorials/plot_nilearn_101.py\n@@ -59,17 +59,49 @@\n more_smooth_anat_img = image.smooth_img(smooth_anat_img, fwhm=3)\n plotting.plot_im... | 1,148 | 626 |
gh_patches_debug_3966 | rasdani/github-patches | git_diff | mitmproxy__mitmproxy-1215 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Headers aren't always case insensitive
Headers like `Content-Length` should preserve case after going trough mitmproxy, because some versions of PHP don't like lowercase headers (this is a server-side misimpl... | diff --git a/netlib/multidict.py b/netlib/multidict.py
--- a/netlib/multidict.py
+++ b/netlib/multidict.py
@@ -105,7 +105,7 @@
if self._kconv(field[0]) == key_kconv:
if values:
new_fields.append(
- (key, values.pop(0))
+ (f... | {"golden_diff": "diff --git a/netlib/multidict.py b/netlib/multidict.py\n--- a/netlib/multidict.py\n+++ b/netlib/multidict.py\n@@ -105,7 +105,7 @@\n if self._kconv(field[0]) == key_kconv:\n if values:\n new_fields.append(\n- (key, values.pop(0))\n+ ... | 3,139 | 111 |
gh_patches_debug_30588 | rasdani/github-patches | git_diff | elastic__apm-agent-python-1652 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[META 690] Ensure a minimum retry interval of 5 seconds in fetching central configuration
See meta issue for the description and details:
- Meta issue: https://github.com/elastic/apm/issues/690
--- END IS... | diff --git a/elasticapm/transport/http.py b/elasticapm/transport/http.py
--- a/elasticapm/transport/http.py
+++ b/elasticapm/transport/http.py
@@ -164,11 +164,9 @@
logger.debug("HTTP error while fetching remote config: %s", str(e))
return current_version, None, max_age
body = response... | {"golden_diff": "diff --git a/elasticapm/transport/http.py b/elasticapm/transport/http.py\n--- a/elasticapm/transport/http.py\n+++ b/elasticapm/transport/http.py\n@@ -164,11 +164,9 @@\n logger.debug(\"HTTP error while fetching remote config: %s\", str(e))\n return current_version, None, max_age\... | 3,130 | 430 |
gh_patches_debug_16643 | rasdani/github-patches | git_diff | sktime__sktime-5330 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[BUG] `temporal_train_test_split` does not work on panel datatypes with unequal length series.
**Describe the bug**
<!--
A clear and concise description of what the bug is.
-->
Also relates to #4968
`... | diff --git a/sktime/split/__init__.py b/sktime/split/__init__.py
--- a/sktime/split/__init__.py
+++ b/sktime/split/__init__.py
@@ -7,6 +7,7 @@
"SameLocSplitter",
"SingleWindowSplitter",
"SlidingWindowSplitter",
+ "TemporalTrainTestSplitter",
"TestPlusTrainSplitter",
"temporal_train_test_spli... | {"golden_diff": "diff --git a/sktime/split/__init__.py b/sktime/split/__init__.py\n--- a/sktime/split/__init__.py\n+++ b/sktime/split/__init__.py\n@@ -7,6 +7,7 @@\n \"SameLocSplitter\",\n \"SingleWindowSplitter\",\n \"SlidingWindowSplitter\",\n+ \"TemporalTrainTestSplitter\",\n \"TestPlusTrainSplitte... | 1,068 | 217 |
gh_patches_debug_28195 | rasdani/github-patches | git_diff | pretix__pretix-2399 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Regression: File question required when editing ticket
This is the same issue as #1408, I'm not quite sure whether this should be a new bug because it's a regression or if the old bug should be reopened?
L... | diff --git a/src/pretix/base/forms/widgets.py b/src/pretix/base/forms/widgets.py
--- a/src/pretix/base/forms/widgets.py
+++ b/src/pretix/base/forms/widgets.py
@@ -86,14 +86,6 @@
class UploadedFileWidget(forms.ClearableFileInput):
def __init__(self, *args, **kwargs):
- # Browsers can't recognize that the ... | {"golden_diff": "diff --git a/src/pretix/base/forms/widgets.py b/src/pretix/base/forms/widgets.py\n--- a/src/pretix/base/forms/widgets.py\n+++ b/src/pretix/base/forms/widgets.py\n@@ -86,14 +86,6 @@\n \n class UploadedFileWidget(forms.ClearableFileInput):\n def __init__(self, *args, **kwargs):\n- # Browsers c... | 3,051 | 391 |
gh_patches_debug_15488 | rasdani/github-patches | git_diff | DataDog__dd-trace-py-4193 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
aioredis raises CancelledError in _finish_span
### Which version of dd-trace-py are you using?
~~0.53.0~~ 0.58.0
### Which version of pip are you using?
21.3.1
### Which version of the libraries ... | diff --git a/ddtrace/contrib/aioredis/patch.py b/ddtrace/contrib/aioredis/patch.py
--- a/ddtrace/contrib/aioredis/patch.py
+++ b/ddtrace/contrib/aioredis/patch.py
@@ -140,11 +140,12 @@
def _finish_span(future):
try:
# Accessing the result will raise an exception if:
- # - The fut... | {"golden_diff": "diff --git a/ddtrace/contrib/aioredis/patch.py b/ddtrace/contrib/aioredis/patch.py\n--- a/ddtrace/contrib/aioredis/patch.py\n+++ b/ddtrace/contrib/aioredis/patch.py\n@@ -140,11 +140,12 @@\n def _finish_span(future):\n try:\n # Accessing the result will raise an exception if:\n- ... | 2,824 | 202 |
gh_patches_debug_43783 | rasdani/github-patches | git_diff | feast-dev__feast-3425 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
`Feature.proto` should have a description field
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]... | diff --git a/sdk/python/feast/feature.py b/sdk/python/feast/feature.py
--- a/sdk/python/feast/feature.py
+++ b/sdk/python/feast/feature.py
@@ -33,6 +33,7 @@
self,
name: str,
dtype: ValueType,
+ description: str = "",
labels: Optional[Dict[str, str]] = None,
):
""... | {"golden_diff": "diff --git a/sdk/python/feast/feature.py b/sdk/python/feast/feature.py\n--- a/sdk/python/feast/feature.py\n+++ b/sdk/python/feast/feature.py\n@@ -33,6 +33,7 @@\n self,\n name: str,\n dtype: ValueType,\n+ description: str = \"\",\n labels: Optional[Dict[str, str]] ... | 3,940 | 898 |
gh_patches_debug_47400 | rasdani/github-patches | git_diff | python-telegram-bot__python-telegram-bot-2132 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Add support for Py 3.9
With Py 3.9 out, we should add it to the tests at some point. Maybe that can wait, until 3.9.x, x>0 is out, though
Need to check, if all the job thingies work out, as APS doesn't sup... | diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -64,4 +64,5 @@
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
+ 'Programming Language :: Python :: 3.9',
],)
| {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -64,4 +64,5 @@\n 'Programming Language :: Python :: 3.6',\n 'Programming Language :: Python :: 3.7',\n 'Programming Language :: Python :: 3.8',\n+ 'Programming Language :: Python ... | 1,120 | 84 |
gh_patches_debug_15216 | rasdani/github-patches | git_diff | translate__translate-4027 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Fix properties roundtrip
After #3607 some changes need to be introduced in order to fix properties roundtrip. More details in https://github.com/translate/translate/pull/3607#issuecomment-291440437
--- END ... | diff --git a/translate/convert/po2prop.py b/translate/convert/po2prop.py
--- a/translate/convert/po2prop.py
+++ b/translate/convert/po2prop.py
@@ -178,7 +178,7 @@
"key": "%s%s%s" % (self.personality.key_wrap_char,
key,
... | {"golden_diff": "diff --git a/translate/convert/po2prop.py b/translate/convert/po2prop.py\n--- a/translate/convert/po2prop.py\n+++ b/translate/convert/po2prop.py\n@@ -178,7 +178,7 @@\n \"key\": \"%s%s%s\" % (self.personality.key_wrap_char,\n key,\n ... | 3,324 | 147 |
gh_patches_debug_39694 | rasdani/github-patches | git_diff | NVIDIA__TransformerEngine-313 | We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Export transformer_engine.pytorch.LayerNorm to ONNX gives all zero output
After exporting `transformer_engine.pytorch.LayerNorm` to ONNX, it always give tensors with correct shape but filled with 0.
Exampl... | diff --git a/transformer_engine/pytorch/module/layernorm.py b/transformer_engine/pytorch/module/layernorm.py
--- a/transformer_engine/pytorch/module/layernorm.py
+++ b/transformer_engine/pytorch/module/layernorm.py
@@ -11,7 +11,9 @@
from torch.nn import init
import transformer_engine_extensions as tex
-
+from ..cpp... | {"golden_diff": "diff --git a/transformer_engine/pytorch/module/layernorm.py b/transformer_engine/pytorch/module/layernorm.py\n--- a/transformer_engine/pytorch/module/layernorm.py\n+++ b/transformer_engine/pytorch/module/layernorm.py\n@@ -11,7 +11,9 @@\n from torch.nn import init\n \n import transformer_engine_extensio... | 2,436 | 743 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.