problem_id
stringlengths
18
22
source
stringclasses
1 value
task_type
stringclasses
1 value
in_source_id
stringlengths
13
58
prompt
stringlengths
1.1k
10.2k
golden_diff
stringlengths
151
4.94k
verification_info
stringlengths
582
21k
num_tokens
int64
271
2.05k
num_tokens_diff
int64
47
1.02k
gh_patches_debug_15795
rasdani/github-patches
git_diff
zestedesavoir__zds-site-6544
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Faciliter la programmation des Unes en modifiant le type de la date de publication. À ce jour, quand on créer une Unes il faut remplir le champ "Date de publication" avec un format texte de style "2023/08/21 ...
diff --git a/zds/featured/forms.py b/zds/featured/forms.py --- a/zds/featured/forms.py +++ b/zds/featured/forms.py @@ -31,20 +31,8 @@ ) pubdate = forms.DateTimeField( - label=_("Date de publication (exemple: 25/12/2015 15:00 ou 2015-12-25T15:00)"), - input_formats=[ - "%d/%m/%Y %H:%...
{"golden_diff": "diff --git a/zds/featured/forms.py b/zds/featured/forms.py\n--- a/zds/featured/forms.py\n+++ b/zds/featured/forms.py\n@@ -31,20 +31,8 @@\n )\n \n pubdate = forms.DateTimeField(\n- label=_(\"Date de publication (exemple: 25/12/2015 15:00 ou 2015-12-25T15:00)\"),\n- input_formats=[\...
1,605
346
gh_patches_debug_8191
rasdani/github-patches
git_diff
TheAlgorithms__Python-10361
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- missing_number algorithm dosen't work as intended (bit_manipulation/missing_number.py) ### Repository commit d0c54acd75cedf14cff353869482a0487fea1697 ### Python version (python --version) Python 3.12.0 ##...
diff --git a/bit_manipulation/missing_number.py b/bit_manipulation/missing_number.py --- a/bit_manipulation/missing_number.py +++ b/bit_manipulation/missing_number.py @@ -11,11 +11,18 @@ Example: >>> find_missing_number([0, 1, 3, 4]) 2 + >>> find_missing_number([1, 3, 4, 5, 6]) + 2 ...
{"golden_diff": "diff --git a/bit_manipulation/missing_number.py b/bit_manipulation/missing_number.py\n--- a/bit_manipulation/missing_number.py\n+++ b/bit_manipulation/missing_number.py\n@@ -11,11 +11,18 @@\n Example:\n >>> find_missing_number([0, 1, 3, 4])\n 2\n+ >>> find_missing_number([1, ...
540
243
gh_patches_debug_15727
rasdani/github-patches
git_diff
crytic__slither-561
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- AssertionError when obtaining address of library ```solidity library UnsafeMath { function add(uint a, uint b) external returns (uint) { return a + b; } } contract Test { function...
diff --git a/slither/slithir/operations/type_conversion.py b/slither/slithir/operations/type_conversion.py --- a/slither/slithir/operations/type_conversion.py +++ b/slither/slithir/operations/type_conversion.py @@ -1,3 +1,4 @@ +from slither.core.declarations import Contract from slither.core.solidity_types.type import...
{"golden_diff": "diff --git a/slither/slithir/operations/type_conversion.py b/slither/slithir/operations/type_conversion.py\n--- a/slither/slithir/operations/type_conversion.py\n+++ b/slither/slithir/operations/type_conversion.py\n@@ -1,3 +1,4 @@\n+from slither.core.declarations import Contract\n from slither.core.soli...
650
188
gh_patches_debug_22747
rasdani/github-patches
git_diff
scrapy__scrapy-2275
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Idea: warn users when trying to use TextResponse functionality with plain Response Currently, if we try to use TextResponse functionality like response.text or css()/xpath() methods with a plain Response (e.g...
diff --git a/scrapy/http/response/__init__.py b/scrapy/http/response/__init__.py --- a/scrapy/http/response/__init__.py +++ b/scrapy/http/response/__init__.py @@ -9,6 +9,8 @@ from scrapy.http.headers import Headers from scrapy.utils.trackref import object_ref from scrapy.http.common import obsolete_setter +from scra...
{"golden_diff": "diff --git a/scrapy/http/response/__init__.py b/scrapy/http/response/__init__.py\n--- a/scrapy/http/response/__init__.py\n+++ b/scrapy/http/response/__init__.py\n@@ -9,6 +9,8 @@\n from scrapy.http.headers import Headers\n from scrapy.utils.trackref import object_ref\n from scrapy.http.common import obs...
1,383
301
gh_patches_debug_66309
rasdani/github-patches
git_diff
sql-machine-learning__elasticdl-1463
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- No module named 'elasticdl.python.elasticdl.layers' on master ``` Traceback (most recent call last): File "/usr/local/lib/python3.7/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) ...
diff --git a/elasticdl/python/elasticdl/__init__.py b/elasticdl/python/elasticdl/__init__.py --- a/elasticdl/python/elasticdl/__init__.py +++ b/elasticdl/python/elasticdl/__init__.py @@ -0,0 +1 @@ +from elasticdl.python.elasticdl import layers # noqa: F401
{"golden_diff": "diff --git a/elasticdl/python/elasticdl/__init__.py b/elasticdl/python/elasticdl/__init__.py\n--- a/elasticdl/python/elasticdl/__init__.py\n+++ b/elasticdl/python/elasticdl/__init__.py\n@@ -0,0 +1 @@\n+from elasticdl.python.elasticdl import layers # noqa: F401\n", "issue": "No module named 'elasticdl....
496
83
gh_patches_debug_30901
rasdani/github-patches
git_diff
lk-geimfari__mimesis-677
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Auto add builtin provider to Generic based on passed locale # Feature request An idea is very simple: ```python generic = Generic('ru', auto_add_builtin=True) generic.russia_provider.inn() ``` Ins...
diff --git a/mimesis/providers/generic.py b/mimesis/providers/generic.py --- a/mimesis/providers/generic.py +++ b/mimesis/providers/generic.py @@ -5,6 +5,17 @@ import inspect from typing import Any, List, Type +from mimesis.builtins import ( + BrazilSpecProvider, + DenmarkSpecProvider, + GermanySpecProvide...
{"golden_diff": "diff --git a/mimesis/providers/generic.py b/mimesis/providers/generic.py\n--- a/mimesis/providers/generic.py\n+++ b/mimesis/providers/generic.py\n@@ -5,6 +5,17 @@\n import inspect\n from typing import Any, List, Type\n \n+from mimesis.builtins import (\n+ BrazilSpecProvider,\n+ DenmarkSpecProvide...
1,629
426
gh_patches_debug_10035
rasdani/github-patches
git_diff
comic__grand-challenge.org-1433
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Helptext for supported file formats is not up-to-date --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `app/...
diff --git a/app/grandchallenge/cases/forms.py b/app/grandchallenge/cases/forms.py --- a/app/grandchallenge/cases/forms.py +++ b/app/grandchallenge/cases/forms.py @@ -22,7 +22,10 @@ "The total size of all files uploaded in a single session " "cannot exceed 10 GB.<br>" "The followi...
{"golden_diff": "diff --git a/app/grandchallenge/cases/forms.py b/app/grandchallenge/cases/forms.py\n--- a/app/grandchallenge/cases/forms.py\n+++ b/app/grandchallenge/cases/forms.py\n@@ -22,7 +22,10 @@\n \"The total size of all files uploaded in a single session \"\n \"cannot exceed 10 GB.<br>\"...
949
235
gh_patches_debug_58053
rasdani/github-patches
git_diff
alltheplaces__alltheplaces-3312
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Spider upsstore is broken During the global build at 2021-10-13-14-42-23, spider **upsstore** failed with **5176 features** and **5 errors**. Here's [the log](https://data.alltheplaces.xyz/runs/2021-10-13-14...
diff --git a/locations/spiders/upsstore.py b/locations/spiders/upsstore.py --- a/locations/spiders/upsstore.py +++ b/locations/spiders/upsstore.py @@ -43,6 +43,9 @@ return o.as_opening_hours() def parse_store(self, response): + if "Permanently Closed" in response.text: + return + ...
{"golden_diff": "diff --git a/locations/spiders/upsstore.py b/locations/spiders/upsstore.py\n--- a/locations/spiders/upsstore.py\n+++ b/locations/spiders/upsstore.py\n@@ -43,6 +43,9 @@\n return o.as_opening_hours()\n \n def parse_store(self, response):\n+ if \"Permanently Closed\" in response.text:\n...
1,371
133
gh_patches_debug_309
rasdani/github-patches
git_diff
wemake-services__wemake-python-styleguide-195
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Fix documentation main page's header The header is gone: <img width="1032" alt="2018-10-03 0 18 01" src="https://user-images.githubusercontent.com/4660275/46377643-d0ce1080-c6a1-11e8-950b-d2d0c515dee1.png"> ...
diff --git a/wemake_python_styleguide/visitors/ast/numbers.py b/wemake_python_styleguide/visitors/ast/numbers.py --- a/wemake_python_styleguide/visitors/ast/numbers.py +++ b/wemake_python_styleguide/visitors/ast/numbers.py @@ -27,6 +27,7 @@ ast.Tuple, ) + # TODO: make consistent naming rules for clas...
{"golden_diff": "diff --git a/wemake_python_styleguide/visitors/ast/numbers.py b/wemake_python_styleguide/visitors/ast/numbers.py\n--- a/wemake_python_styleguide/visitors/ast/numbers.py\n+++ b/wemake_python_styleguide/visitors/ast/numbers.py\n@@ -27,6 +27,7 @@\n ast.Tuple,\n )\n \n+ # TODO: make consiste...
933
117
gh_patches_debug_32176
rasdani/github-patches
git_diff
Qiskit__qiskit-2288
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Error when number of qubits is of type numpy.int64 <!-- ⚠️ If you do not respect this template, your issue will be closed --> <!-- ⚠️ Make sure to browse the opened and closed issues to confirm this idea doe...
diff --git a/qiskit/circuit/register.py b/qiskit/circuit/register.py --- a/qiskit/circuit/register.py +++ b/qiskit/circuit/register.py @@ -36,21 +36,29 @@ """Create a new generic register. """ + # validate (or cast) size + try: + size = int(size) + except Exception: +...
{"golden_diff": "diff --git a/qiskit/circuit/register.py b/qiskit/circuit/register.py\n--- a/qiskit/circuit/register.py\n+++ b/qiskit/circuit/register.py\n@@ -36,21 +36,29 @@\n \"\"\"Create a new generic register.\n \"\"\"\n \n+ # validate (or cast) size\n+ try:\n+ size = int(si...
1,723
509
gh_patches_debug_40866
rasdani/github-patches
git_diff
hpcaitech__ColossalAI-5273
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [tensor] fix some unittests [tensor] fix some unittests [tensor] fix some unittests --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs....
diff --git a/colossalai/kernel/triton/kvcache_copy.py b/colossalai/kernel/triton/kvcache_copy.py --- a/colossalai/kernel/triton/kvcache_copy.py +++ b/colossalai/kernel/triton/kvcache_copy.py @@ -25,11 +25,11 @@ cur_seq_idx = tl.program_id(0) cur_kv_head_idx = tl.program_id(1) - cur_kv_seq_len = tl.load(c...
{"golden_diff": "diff --git a/colossalai/kernel/triton/kvcache_copy.py b/colossalai/kernel/triton/kvcache_copy.py\n--- a/colossalai/kernel/triton/kvcache_copy.py\n+++ b/colossalai/kernel/triton/kvcache_copy.py\n@@ -25,11 +25,11 @@\n cur_seq_idx = tl.program_id(0)\n cur_kv_head_idx = tl.program_id(1)\n \n- cu...
1,345
948
gh_patches_debug_14637
rasdani/github-patches
git_diff
googleapis__google-auth-library-python-124
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add public properties to google.oauth2.credentials.Credentials Resolves #124 --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGI...
diff --git a/google/oauth2/credentials.py b/google/oauth2/credentials.py --- a/google/oauth2/credentials.py +++ b/google/oauth2/credentials.py @@ -68,6 +68,27 @@ self._client_id = client_id self._client_secret = client_secret + @property + def refresh_token(self): + """Optional[str]: Th...
{"golden_diff": "diff --git a/google/oauth2/credentials.py b/google/oauth2/credentials.py\n--- a/google/oauth2/credentials.py\n+++ b/google/oauth2/credentials.py\n@@ -68,6 +68,27 @@\n self._client_id = client_id\n self._client_secret = client_secret\n \n+ @property\n+ def refresh_token(self):\n+ ...
1,356
245
gh_patches_debug_5344
rasdani/github-patches
git_diff
nilearn__nilearn-2822
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Use plot_event in a example The function `plot_event` has currently no example linked to its [doc](https://nilearn.github.io/modules/generated/nilearn.plotting.plot_event.html#nilearn.plotting.plot_event). ...
diff --git a/examples/04_glm_first_level/write_events_file.py b/examples/04_glm_first_level/write_events_file.py --- a/examples/04_glm_first_level/write_events_file.py +++ b/examples/04_glm_first_level/write_events_file.py @@ -63,3 +63,10 @@ tsvfile = 'localizer_events.tsv' events.to_csv(tsvfile, sep='\t', index=Fals...
{"golden_diff": "diff --git a/examples/04_glm_first_level/write_events_file.py b/examples/04_glm_first_level/write_events_file.py\n--- a/examples/04_glm_first_level/write_events_file.py\n+++ b/examples/04_glm_first_level/write_events_file.py\n@@ -63,3 +63,10 @@\n tsvfile = 'localizer_events.tsv'\n events.to_csv(tsvfile...
1,552
167
gh_patches_debug_4117
rasdani/github-patches
git_diff
kivy__kivy-6178
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- MacOS: Clipboard nspaste make app crash when copying text <!-- The issue tracker is a tool to address bugs. Please use the #support Discord channel at https://chat.kivy.org/ or Stack Overflow for support q...
diff --git a/kivy/core/clipboard/clipboard_nspaste.py b/kivy/core/clipboard/clipboard_nspaste.py --- a/kivy/core/clipboard/clipboard_nspaste.py +++ b/kivy/core/clipboard/clipboard_nspaste.py @@ -37,7 +37,8 @@ def put(self, data, mimetype='text/plain'): pb = self._clipboard pb.clearContents() - ...
{"golden_diff": "diff --git a/kivy/core/clipboard/clipboard_nspaste.py b/kivy/core/clipboard/clipboard_nspaste.py\n--- a/kivy/core/clipboard/clipboard_nspaste.py\n+++ b/kivy/core/clipboard/clipboard_nspaste.py\n@@ -37,7 +37,8 @@\n def put(self, data, mimetype='text/plain'):\n pb = self._clipboard\n ...
1,723
148
gh_patches_debug_33844
rasdani/github-patches
git_diff
getredash__redash-4354
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Make Cypress tests work with Cypress@3.6.0 Running our tests with Cypress@3.5.0 doesn't work. Need to figure out what happened, until then pinning the version to 3.4.1 (#4284). --- END ISSUE --- Below are s...
diff --git a/redash/app.py b/redash/app.py --- a/redash/app.py +++ b/redash/app.py @@ -21,7 +21,6 @@ def create_app(): from . import authentication, extensions, handlers, limiter, mail, migrate, security - from .handlers import chrome_logger from .handlers.webpack import configure_webpack from .met...
{"golden_diff": "diff --git a/redash/app.py b/redash/app.py\n--- a/redash/app.py\n+++ b/redash/app.py\n@@ -21,7 +21,6 @@\n \n def create_app():\n from . import authentication, extensions, handlers, limiter, mail, migrate, security\n- from .handlers import chrome_logger\n from .handlers.webpack import configu...
1,291
642
gh_patches_debug_7863
rasdani/github-patches
git_diff
facebookresearch__hydra-1363
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [Nevergrad-Plugin] Add support for Python 3.9 Python 3.9 support pending on scikit 2.4.0 release. Relevant comment: scikit-learn/scikit-learn#18621 (comment) Related to #1062 --- END ISSUE --- Below are ...
diff --git a/plugins/hydra_nevergrad_sweeper/setup.py b/plugins/hydra_nevergrad_sweeper/setup.py --- a/plugins/hydra_nevergrad_sweeper/setup.py +++ b/plugins/hydra_nevergrad_sweeper/setup.py @@ -19,7 +19,7 @@ "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", ...
{"golden_diff": "diff --git a/plugins/hydra_nevergrad_sweeper/setup.py b/plugins/hydra_nevergrad_sweeper/setup.py\n--- a/plugins/hydra_nevergrad_sweeper/setup.py\n+++ b/plugins/hydra_nevergrad_sweeper/setup.py\n@@ -19,7 +19,7 @@\n \"Programming Language :: Python :: 3.6\",\n \"Programming Langua...
663
155
gh_patches_debug_13339
rasdani/github-patches
git_diff
pypi__warehouse-1491
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [requires.io] dependency update on master branch --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `warehouse...
diff --git a/warehouse/celery.py b/warehouse/celery.py --- a/warehouse/celery.py +++ b/warehouse/celery.py @@ -10,11 +10,11 @@ # See the License for the specific language governing permissions and # limitations under the License. -import celery.backends +import celery.app.backends # We need to trick Celery into ...
{"golden_diff": "diff --git a/warehouse/celery.py b/warehouse/celery.py\n--- a/warehouse/celery.py\n+++ b/warehouse/celery.py\n@@ -10,11 +10,11 @@\n # See the License for the specific language governing permissions and\n # limitations under the License.\n \n-import celery.backends\n+import celery.app.backends\n \n # We...
1,269
188
gh_patches_debug_17543
rasdani/github-patches
git_diff
coreruleset__coreruleset-3002
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Move data files from util/regexp-assemble directory to the top level ### Description Data files used to generate regular expressions have been somehow in a difficult-to-find place, dependent on the tool. ...
diff --git a/util/regexp-assemble/lib/context.py b/util/regexp-assemble/lib/context.py --- a/util/regexp-assemble/lib/context.py +++ b/util/regexp-assemble/lib/context.py @@ -10,8 +10,8 @@ self.rules_directory = self.root_directory / "rules" self.util_directory = self.root_directory / "util" ...
{"golden_diff": "diff --git a/util/regexp-assemble/lib/context.py b/util/regexp-assemble/lib/context.py\n--- a/util/regexp-assemble/lib/context.py\n+++ b/util/regexp-assemble/lib/context.py\n@@ -10,8 +10,8 @@\n self.rules_directory = self.root_directory / \"rules\"\n self.util_directory = self.root_dire...
779
215
gh_patches_debug_4420
rasdani/github-patches
git_diff
ephios-dev__ephios-220
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- List of own upcoming shifts As a user, I want to see a list of shifts that I have been confirmed for on the main page. --- END ISSUE --- Below are some code segments, each from a relevant file. One or more ...
diff --git a/ephios/event_management/templatetags/event_extras.py b/ephios/event_management/templatetags/event_extras.py --- a/ephios/event_management/templatetags/event_extras.py +++ b/ephios/event_management/templatetags/event_extras.py @@ -43,3 +43,10 @@ @register.filter(name="decline_errors") def decline_errors(s...
{"golden_diff": "diff --git a/ephios/event_management/templatetags/event_extras.py b/ephios/event_management/templatetags/event_extras.py\n--- a/ephios/event_management/templatetags/event_extras.py\n+++ b/ephios/event_management/templatetags/event_extras.py\n@@ -43,3 +43,10 @@\n @register.filter(name=\"decline_errors\"...
700
165
gh_patches_debug_15929
rasdani/github-patches
git_diff
microsoft__DeepSpeed-4405
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [REQUEST] Add timeout as entry-point option or environment variable **Is your feature request related to a problem? Please describe.** I am using Hugging Face `transformers` for my deep learning, and it has ...
diff --git a/deepspeed/constants.py b/deepspeed/constants.py --- a/deepspeed/constants.py +++ b/deepspeed/constants.py @@ -3,6 +3,7 @@ # DeepSpeed Team +import os from datetime import timedelta ############################################# @@ -15,6 +16,6 @@ # (only if NCCL_BLOCKING_WAIT or NCCL_ASYNC_ERROR_HA...
{"golden_diff": "diff --git a/deepspeed/constants.py b/deepspeed/constants.py\n--- a/deepspeed/constants.py\n+++ b/deepspeed/constants.py\n@@ -3,6 +3,7 @@\n \n # DeepSpeed Team\n \n+import os\n from datetime import timedelta\n \n #############################################\n@@ -15,6 +16,6 @@\n # (only if NCCL_BLOCKIN...
778
174
gh_patches_debug_6053
rasdani/github-patches
git_diff
networkx__networkx-3123
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Double import I noticed that in `networkx/algorithms/__init__.py`the statement `from networkx.algorithms.triads import *` occurs twice. Is there any reason for this or is this just a blunder? --- END ISSUE -...
diff --git a/networkx/algorithms/__init__.py b/networkx/algorithms/__init__.py --- a/networkx/algorithms/__init__.py +++ b/networkx/algorithms/__init__.py @@ -40,7 +40,6 @@ from networkx.algorithms.smallworld import * from networkx.algorithms.smetric import * from networkx.algorithms.structuralholes import * -from n...
{"golden_diff": "diff --git a/networkx/algorithms/__init__.py b/networkx/algorithms/__init__.py\n--- a/networkx/algorithms/__init__.py\n+++ b/networkx/algorithms/__init__.py\n@@ -40,7 +40,6 @@\n from networkx.algorithms.smallworld import *\n from networkx.algorithms.smetric import *\n from networkx.algorithms.structura...
1,778
121
gh_patches_debug_28442
rasdani/github-patches
git_diff
pypa__pipenv-1326
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- pipenv starts slow when IPython is installed. IPython is imported when importing dotenv. (ref: theskumar/python-dotenv#84 and [import profile](https://paste.ubuntu.com/26409167/)) Since pipenv uses patch...
diff --git a/pipenv/patched/dotenv/__init__.py b/pipenv/patched/dotenv/__init__.py --- a/pipenv/patched/dotenv/__init__.py +++ b/pipenv/patched/dotenv/__init__.py @@ -1,8 +1,4 @@ from .cli import get_cli_string from .main import load_dotenv, get_key, set_key, unset_key, find_dotenv -try: - from .ipython import loa...
{"golden_diff": "diff --git a/pipenv/patched/dotenv/__init__.py b/pipenv/patched/dotenv/__init__.py\n--- a/pipenv/patched/dotenv/__init__.py\n+++ b/pipenv/patched/dotenv/__init__.py\n@@ -1,8 +1,4 @@\n from .cli import get_cli_string\n from .main import load_dotenv, get_key, set_key, unset_key, find_dotenv\n-try:\n- ...
921
594
gh_patches_debug_4224
rasdani/github-patches
git_diff
pypa__pip-5146
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Development version number triggers a false positive warning * Pip version: 10.0.0b1 * Python version: 3.6.4 * Operating system: Linux ### Description: Say a package `foo` depends on `bar>=1.0.0`. If ...
diff --git a/src/pip/_internal/operations/check.py b/src/pip/_internal/operations/check.py --- a/src/pip/_internal/operations/check.py +++ b/src/pip/_internal/operations/check.py @@ -63,7 +63,7 @@ # Check if there's a conflict version = package_set[name].version # type: str - if ...
{"golden_diff": "diff --git a/src/pip/_internal/operations/check.py b/src/pip/_internal/operations/check.py\n--- a/src/pip/_internal/operations/check.py\n+++ b/src/pip/_internal/operations/check.py\n@@ -63,7 +63,7 @@\n \n # Check if there's a conflict\n version = package_set[name].version # typ...
1,739
126
gh_patches_debug_63956
rasdani/github-patches
git_diff
redis__redis-py-1780
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Module installation fails due to missing dependency https://github.com/redis/redis-py/blob/039488d97ec545b37e903d1b791a88bac8f77973/redis/connection.py#L1 the deprecated distutils was replaced with the packa...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -26,9 +26,12 @@ author="Redis Inc.", author_email="oss@redis.com", python_requires=">=3.6", + setup_requires=[ + "packaging>=21.3", + ], install_requires=[ - "deprecated==1.2.3", - "packaging==21.3", + ...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -26,9 +26,12 @@\n author=\"Redis Inc.\",\n author_email=\"oss@redis.com\",\n python_requires=\">=3.6\",\n+ setup_requires=[\n+ \"packaging>=21.3\",\n+ ],\n install_requires=[\n- \"deprecated==1.2.3\...
889
141
gh_patches_debug_20147
rasdani/github-patches
git_diff
kartoza__prj.app-447
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- After creating a new organization it should appear in the pending approval menu Please make sure if a user adds an organization the Pending Approval menu is updated http://staging.changelog.qgis.org/en/qgi...
diff --git a/django_project/core/custom_middleware.py b/django_project/core/custom_middleware.py --- a/django_project/core/custom_middleware.py +++ b/django_project/core/custom_middleware.py @@ -5,6 +5,7 @@ """ from base.models import Project, Version from changes.models import Category, SponsorshipLevel, Sponsorshi...
{"golden_diff": "diff --git a/django_project/core/custom_middleware.py b/django_project/core/custom_middleware.py\n--- a/django_project/core/custom_middleware.py\n+++ b/django_project/core/custom_middleware.py\n@@ -5,6 +5,7 @@\n \"\"\"\n from base.models import Project, Version\n from changes.models import Category, Sp...
1,422
190
gh_patches_debug_35988
rasdani/github-patches
git_diff
PlasmaPy__PlasmaPy-2175
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Incompatibility between `@angular_freq_to_hz` and var-keyword arguments ### Bug description While trying to decorate `gyrofrequency` with `@particle_input` in #2026, I found an issue with `@angular_freq_to...
diff --git a/plasmapy/utils/decorators/converter.py b/plasmapy/utils/decorators/converter.py --- a/plasmapy/utils/decorators/converter.py +++ b/plasmapy/utils/decorators/converter.py @@ -3,10 +3,8 @@ __all__ = ["angular_freq_to_hz"] import astropy.units as u -import functools import inspect - -from plasmapy.utils....
{"golden_diff": "diff --git a/plasmapy/utils/decorators/converter.py b/plasmapy/utils/decorators/converter.py\n--- a/plasmapy/utils/decorators/converter.py\n+++ b/plasmapy/utils/decorators/converter.py\n@@ -3,10 +3,8 @@\n __all__ = [\"angular_freq_to_hz\"]\n \n import astropy.units as u\n-import functools\n import insp...
2,025
647
gh_patches_debug_3596
rasdani/github-patches
git_diff
liqd__a4-meinberlin-2170
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Identity spoofing via secondary email See https://github.com/pennersr/django-allauth/issues/2265 cc: @CarolingerSeilchenspringer @MagdaN @fuzzylogic2000 --- END ISSUE --- Below are some code segments, e...
diff --git a/meinberlin/apps/users/adapters.py b/meinberlin/apps/users/adapters.py --- a/meinberlin/apps/users/adapters.py +++ b/meinberlin/apps/users/adapters.py @@ -40,9 +40,8 @@ return url def send_mail(self, template_prefix, email, context): - user = context['user'] return UserAc...
{"golden_diff": "diff --git a/meinberlin/apps/users/adapters.py b/meinberlin/apps/users/adapters.py\n--- a/meinberlin/apps/users/adapters.py\n+++ b/meinberlin/apps/users/adapters.py\n@@ -40,9 +40,8 @@\n return url\n \n def send_mail(self, template_prefix, email, context):\n- user = context['user'...
778
113
gh_patches_debug_10828
rasdani/github-patches
git_diff
open-mmlab__mmdeploy-700
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- pytorch2onnx fails with mmedit models error with master branch ``` TypeError: forward_dummy() got an unexpected keyword argument 'img_metas' ``` --- END ISSUE --- Below are some code segments, each from ...
diff --git a/mmdeploy/apis/pytorch2onnx.py b/mmdeploy/apis/pytorch2onnx.py --- a/mmdeploy/apis/pytorch2onnx.py +++ b/mmdeploy/apis/pytorch2onnx.py @@ -61,7 +61,11 @@ torch_model = task_processor.init_pytorch_model(model_checkpoint) data, model_inputs = task_processor.create_input(img, input_shape) - inpu...
{"golden_diff": "diff --git a/mmdeploy/apis/pytorch2onnx.py b/mmdeploy/apis/pytorch2onnx.py\n--- a/mmdeploy/apis/pytorch2onnx.py\n+++ b/mmdeploy/apis/pytorch2onnx.py\n@@ -61,7 +61,11 @@\n \n torch_model = task_processor.init_pytorch_model(model_checkpoint)\n data, model_inputs = task_processor.create_input(img,...
1,420
193
gh_patches_debug_25470
rasdani/github-patches
git_diff
hylang__hy-2188
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Monkey-patching `py.path.local.pyimport` should no longer be necessary Hi I noticed **py** is used in conftest.py but not declared in any configuration files . In addition, py as a Python library is depreca...
diff --git a/conftest.py b/conftest.py --- a/conftest.py +++ b/conftest.py @@ -4,15 +4,12 @@ from operator import or_ from functools import reduce -import py import pytest import hy from hy._compat import PY3_8, PY3_10 NATIVE_TESTS = os.path.join("", "tests", "native_tests", "") -_fspath_pyimport = py.path....
{"golden_diff": "diff --git a/conftest.py b/conftest.py\n--- a/conftest.py\n+++ b/conftest.py\n@@ -4,15 +4,12 @@\n from operator import or_\n from functools import reduce\n \n-import py\n import pytest\n import hy\n from hy._compat import PY3_8, PY3_10\n \n NATIVE_TESTS = os.path.join(\"\", \"tests\", \"native_tests\",...
939
371
gh_patches_debug_36132
rasdani/github-patches
git_diff
DataDog__dd-trace-py-1823
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- DeprecationWarning: the imp module is deprecated in favour of importlib When running a Django project using ddtrace with [warnings enabled](https://docs.python.org/3/using/cmdline.html#cmdoption-w), this warn...
diff --git a/ddtrace/bootstrap/sitecustomize.py b/ddtrace/bootstrap/sitecustomize.py --- a/ddtrace/bootstrap/sitecustomize.py +++ b/ddtrace/bootstrap/sitecustomize.py @@ -4,7 +4,6 @@ """ import logging import os -import imp import sys from ddtrace.utils.formats import asbool, get_env, parse_tags_str @@ -100,24 +...
{"golden_diff": "diff --git a/ddtrace/bootstrap/sitecustomize.py b/ddtrace/bootstrap/sitecustomize.py\n--- a/ddtrace/bootstrap/sitecustomize.py\n+++ b/ddtrace/bootstrap/sitecustomize.py\n@@ -4,7 +4,6 @@\n \"\"\"\n import logging\n import os\n-import imp\n import sys\n \n from ddtrace.utils.formats import asbool, get_en...
2,030
649
gh_patches_debug_9777
rasdani/github-patches
git_diff
kivy__kivy-1397
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- simplelistadapter should accept objects inheriting from list or tuple I'll found it usefull if it was possible to extend the list object that I pass to the simplelistadapter, but an exception is raised. Repr...
diff --git a/kivy/adapters/simplelistadapter.py b/kivy/adapters/simplelistadapter.py --- a/kivy/adapters/simplelistadapter.py +++ b/kivy/adapters/simplelistadapter.py @@ -44,7 +44,8 @@ def __init__(self, **kwargs): if 'data' not in kwargs: raise Exception('list adapter: input must include dat...
{"golden_diff": "diff --git a/kivy/adapters/simplelistadapter.py b/kivy/adapters/simplelistadapter.py\n--- a/kivy/adapters/simplelistadapter.py\n+++ b/kivy/adapters/simplelistadapter.py\n@@ -44,7 +44,8 @@\n def __init__(self, **kwargs):\n if 'data' not in kwargs:\n raise Exception('list adapter:...
1,054
154
gh_patches_debug_24859
rasdani/github-patches
git_diff
zulip__zulip-16242
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Enable translations for hotspots subsystem There are unused translations at the hotspots subsystem, which could be enabled due to finished and available translations. At the moment there is a mix of English a...
diff --git a/zerver/lib/hotspots.py b/zerver/lib/hotspots.py --- a/zerver/lib/hotspots.py +++ b/zerver/lib/hotspots.py @@ -3,7 +3,7 @@ from typing import Dict, List from django.conf import settings -from django.utils.translation import ugettext as _ +from django.utils.translation import ugettext_lazy as _ from z...
{"golden_diff": "diff --git a/zerver/lib/hotspots.py b/zerver/lib/hotspots.py\n--- a/zerver/lib/hotspots.py\n+++ b/zerver/lib/hotspots.py\n@@ -3,7 +3,7 @@\n from typing import Dict, List\n \n from django.conf import settings\n-from django.utils.translation import ugettext as _\n+from django.utils.translation import uge...
1,247
314
gh_patches_debug_13021
rasdani/github-patches
git_diff
mkdocs__mkdocs-173
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Update PyPI description At the moment I wouldn't be tempted if I first seen this page. https://pypi.python.org/pypi/mkdocs --- END ISSUE --- Below are some code segments, each from a relevant file. One or...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ name = 'mkdocs' package = 'mkdocs' -description = 'In progress.' +description = 'Project documentation with Markdown.' url = 'http://www.mkdocs.org' author = 'Tom Christie' author_email = 'tom@tomchristie.com' @@ -23,7 +23,12 @@ ...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -10,7 +10,7 @@\n \n name = 'mkdocs'\n package = 'mkdocs'\n-description = 'In progress.'\n+description = 'Project documentation with Markdown.'\n url = 'http://www.mkdocs.org'\n author = 'Tom Christie'\n author_email = 'tom@tomchristie...
1,234
189
gh_patches_debug_3389
rasdani/github-patches
git_diff
freedomofpress__securedrop-5011
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Please make the rqrequeue service quieter ## Description The rqrequeue service feels compelled to report that it has nothing to do, resulting in an endless stream of "No interrupted jobs found in started j...
diff --git a/securedrop/worker.py b/securedrop/worker.py --- a/securedrop/worker.py +++ b/securedrop/worker.py @@ -88,7 +88,7 @@ logging.debug("candidate job ids: {}".format(job_ids)) if not job_ids: - logging.info("No interrupted jobs found in started job registry.") + logging.debug("No inter...
{"golden_diff": "diff --git a/securedrop/worker.py b/securedrop/worker.py\n--- a/securedrop/worker.py\n+++ b/securedrop/worker.py\n@@ -88,7 +88,7 @@\n logging.debug(\"candidate job ids: {}\".format(job_ids))\n \n if not job_ids:\n- logging.info(\"No interrupted jobs found in started job registry.\")\n+ ...
1,645
117
gh_patches_debug_25831
rasdani/github-patches
git_diff
larq__larq-93
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Docs: Add links to source code This is really handy if people want to understand what's going on behind the scenes or want to implement more advanced stuff --- END ISSUE --- Below are some code segments, ea...
diff --git a/generate_api_docs.py b/generate_api_docs.py --- a/generate_api_docs.py +++ b/generate_api_docs.py @@ -1,5 +1,6 @@ """https://github.com/NiklasRosenstein/pydoc-markdown/blob/master/pydocmd/__main__.py""" +import inspect import os import sys import yaml @@ -10,6 +11,23 @@ from pydocmd.preprocessor imp...
{"golden_diff": "diff --git a/generate_api_docs.py b/generate_api_docs.py\n--- a/generate_api_docs.py\n+++ b/generate_api_docs.py\n@@ -1,5 +1,6 @@\n \"\"\"https://github.com/NiklasRosenstein/pydoc-markdown/blob/master/pydocmd/__main__.py\"\"\"\n \n+import inspect\n import os\n import sys\n import yaml\n@@ -10,6 +11,23 ...
1,006
367
gh_patches_debug_39768
rasdani/github-patches
git_diff
bridgecrewio__checkov-4204
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- checkov skips all K8S standard policies if one or more custom policy is specified in --checks **Description** Using checkov to verify a kubernetes manifests (a single file with several objects: deployments, ...
diff --git a/checkov/kubernetes/checks/resource/base_registry.py b/checkov/kubernetes/checks/resource/base_registry.py --- a/checkov/kubernetes/checks/resource/base_registry.py +++ b/checkov/kubernetes/checks/resource/base_registry.py @@ -54,35 +54,27 @@ # Allow list provides namespace-only allows, check-o...
{"golden_diff": "diff --git a/checkov/kubernetes/checks/resource/base_registry.py b/checkov/kubernetes/checks/resource/base_registry.py\n--- a/checkov/kubernetes/checks/resource/base_registry.py\n+++ b/checkov/kubernetes/checks/resource/base_registry.py\n@@ -54,35 +54,27 @@\n # Allow list provides namespace...
1,867
619
gh_patches_debug_38033
rasdani/github-patches
git_diff
google__clusterfuzz-1524
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Support authentication with Cloud IAP --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `src/appengine/libs/a...
diff --git a/src/appengine/libs/auth.py b/src/appengine/libs/auth.py --- a/src/appengine/libs/auth.py +++ b/src/appengine/libs/auth.py @@ -13,12 +13,17 @@ # limitations under the License. """Authentication helpers.""" +from builtins import str import collections +import jwt from firebase_admin import auth from...
{"golden_diff": "diff --git a/src/appengine/libs/auth.py b/src/appengine/libs/auth.py\n--- a/src/appengine/libs/auth.py\n+++ b/src/appengine/libs/auth.py\n@@ -13,12 +13,17 @@\n # limitations under the License.\n \"\"\"Authentication helpers.\"\"\"\n \n+from builtins import str\n import collections\n+import jwt\n \n fro...
1,335
810
gh_patches_debug_25819
rasdani/github-patches
git_diff
yt-dlp__yt-dlp-4312
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [bigo] Extractor returning invalid parameters ### Checklist - [X] I'm reporting a broken site - [X] I've verified that I'm running yt-dlp version **2022.06.22.1** ([update instructions](https://github.com/yt...
diff --git a/yt_dlp/extractor/bigo.py b/yt_dlp/extractor/bigo.py --- a/yt_dlp/extractor/bigo.py +++ b/yt_dlp/extractor/bigo.py @@ -28,7 +28,7 @@ user_id = self._match_id(url) info_raw = self._download_json( - 'https://bigo.tv/studio/getInternalStudioInfo', + 'https://ta.bigo.tv...
{"golden_diff": "diff --git a/yt_dlp/extractor/bigo.py b/yt_dlp/extractor/bigo.py\n--- a/yt_dlp/extractor/bigo.py\n+++ b/yt_dlp/extractor/bigo.py\n@@ -28,7 +28,7 @@\n user_id = self._match_id(url)\n \n info_raw = self._download_json(\n- 'https://bigo.tv/studio/getInternalStudioInfo',\n+ ...
1,840
342
gh_patches_debug_28600
rasdani/github-patches
git_diff
zestedesavoir__zds-site-3822
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [beta][v20] Lire une notification n'invalide pas le cache Serveur : Beta Version : v20-RC2/99bee1d Système : Mac OS X Navigateur : 52.0.2743.116 (64-bit) --- 1. Générez une notification. 2. Lisez là depuis l...
diff --git a/zds/notification/api/views.py b/zds/notification/api/views.py --- a/zds/notification/api/views.py +++ b/zds/notification/api/views.py @@ -1,4 +1,8 @@ # coding: utf-8 +import datetime +from django.core.cache import cache +from django.db.models.signals import post_delete +from django.db.models.signals impor...
{"golden_diff": "diff --git a/zds/notification/api/views.py b/zds/notification/api/views.py\n--- a/zds/notification/api/views.py\n+++ b/zds/notification/api/views.py\n@@ -1,4 +1,8 @@\n # coding: utf-8\n+import datetime\n+from django.core.cache import cache\n+from django.db.models.signals import post_delete\n+from djang...
1,246
332
gh_patches_debug_35738
rasdani/github-patches
git_diff
microsoft__botbuilder-python-1682
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Increase streaming unit tests reach parity with C# unit tests --- 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/libraries/botframework-streaming/botframework/streaming/receive_request.py b/libraries/botframework-streaming/botframework/streaming/receive_request.py --- a/libraries/botframework-streaming/botframework/streaming/receive_request.py +++ b/libraries/botframework-streaming/botframework/streaming/receive_requ...
{"golden_diff": "diff --git a/libraries/botframework-streaming/botframework/streaming/receive_request.py b/libraries/botframework-streaming/botframework/streaming/receive_request.py\n--- a/libraries/botframework-streaming/botframework/streaming/receive_request.py\n+++ b/libraries/botframework-streaming/botframework/str...
1,410
735
gh_patches_debug_14007
rasdani/github-patches
git_diff
pyqtgraph__pyqtgraph-1219
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- CSV export broken ### Short description Export CSV failed when the plot name has decode error characters. ### Code to reproduce ```python from pyqtgraph.Qt import QtGui, QtCore import numpy as np impo...
diff --git a/pyqtgraph/exporters/CSVExporter.py b/pyqtgraph/exporters/CSVExporter.py --- a/pyqtgraph/exporters/CSVExporter.py +++ b/pyqtgraph/exporters/CSVExporter.py @@ -3,6 +3,7 @@ from .Exporter import Exporter from ..parametertree import Parameter from .. import PlotItem +from ..python2_3 import asUnicode __a...
{"golden_diff": "diff --git a/pyqtgraph/exporters/CSVExporter.py b/pyqtgraph/exporters/CSVExporter.py\n--- a/pyqtgraph/exporters/CSVExporter.py\n+++ b/pyqtgraph/exporters/CSVExporter.py\n@@ -3,6 +3,7 @@\n from .Exporter import Exporter\n from ..parametertree import Parameter\n from .. import PlotItem\n+from ..python2_3...
1,690
197
gh_patches_debug_36559
rasdani/github-patches
git_diff
svthalia__concrexit-2930
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add API endpoint for event slugs ### Is your feature request related to a problem? Please describe. For the app we want to get events based on their slug, this is currently not possible. ### Describe the ...
diff --git a/website/events/api/v2/serializers/event.py b/website/events/api/v2/serializers/event.py --- a/website/events/api/v2/serializers/event.py +++ b/website/events/api/v2/serializers/event.py @@ -1,4 +1,5 @@ from rest_framework import serializers +from rest_framework.reverse import reverse from activemembers...
{"golden_diff": "diff --git a/website/events/api/v2/serializers/event.py b/website/events/api/v2/serializers/event.py\n--- a/website/events/api/v2/serializers/event.py\n+++ b/website/events/api/v2/serializers/event.py\n@@ -1,4 +1,5 @@\n from rest_framework import serializers\n+from rest_framework.reverse import reverse...
1,691
524
gh_patches_debug_33090
rasdani/github-patches
git_diff
psychopy__psychopy-947
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Polygon setEdges does not update the ShapeStim vertices If I make a polygon object: ``` python poly = visual.Polygon(win, edges=3, lineWidth=3, radius=3) poly.draw() win.flip() ``` and then want to change t...
diff --git a/psychopy/visual/polygon.py b/psychopy/visual/polygon.py --- a/psychopy/visual/polygon.py +++ b/psychopy/visual/polygon.py @@ -47,13 +47,14 @@ ) * self.radius for e in xrange(int(round(self.edges))) ]) - + @attributeSetter def edges(self, edges): """...
{"golden_diff": "diff --git a/psychopy/visual/polygon.py b/psychopy/visual/polygon.py\n--- a/psychopy/visual/polygon.py\n+++ b/psychopy/visual/polygon.py\n@@ -47,13 +47,14 @@\n ) * self.radius\n for e in xrange(int(round(self.edges)))\n ])\n- \n+\n @attributeSetter\n def edges...
1,333
374
gh_patches_debug_50470
rasdani/github-patches
git_diff
cython__cython-4942
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [BUG] Annotated attributes of cclass are not supporting pointers <!-- **PLEASE READ THIS FIRST:** - Do not use the bug and feature tracker for support requests. Use the `cython-users` mailing list instead. ...
diff --git a/docs/examples/tutorial/clibraries/queue.py b/docs/examples/tutorial/clibraries/queue.py --- a/docs/examples/tutorial/clibraries/queue.py +++ b/docs/examples/tutorial/clibraries/queue.py @@ -2,7 +2,7 @@ @cython.cclass class Queue: - _c_queue = cython.declare(cython.pointer(cqueue.Queue)) + _c_queu...
{"golden_diff": "diff --git a/docs/examples/tutorial/clibraries/queue.py b/docs/examples/tutorial/clibraries/queue.py\n--- a/docs/examples/tutorial/clibraries/queue.py\n+++ b/docs/examples/tutorial/clibraries/queue.py\n@@ -2,7 +2,7 @@\n \n @cython.cclass\n class Queue:\n- _c_queue = cython.declare(cython.pointer(cqu...
761
114
gh_patches_debug_6285
rasdani/github-patches
git_diff
encode__httpx-1503
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- CertTypes `keyfile` and `password` should be Optional types. `SSLContext.load_cert_chain` can take `None` as arguments values ([docs](https://docs.python.org/3/library/ssl.html#ssl.SSLContext.load_cert_chain)...
diff --git a/httpx/_types.py b/httpx/_types.py --- a/httpx/_types.py +++ b/httpx/_types.py @@ -51,7 +51,14 @@ CookieTypes = Union["Cookies", CookieJar, Dict[str, str], List[Tuple[str, str]]] -CertTypes = Union[str, Tuple[str, str], Tuple[str, str, str]] +CertTypes = Union[ + # certfile + str, + # (certfil...
{"golden_diff": "diff --git a/httpx/_types.py b/httpx/_types.py\n--- a/httpx/_types.py\n+++ b/httpx/_types.py\n@@ -51,7 +51,14 @@\n \n CookieTypes = Union[\"Cookies\", CookieJar, Dict[str, str], List[Tuple[str, str]]]\n \n-CertTypes = Union[str, Tuple[str, str], Tuple[str, str, str]]\n+CertTypes = Union[\n+ # certfi...
1,133
170
gh_patches_debug_14526
rasdani/github-patches
git_diff
pfnet__pytorch-pfn-extras-372
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Typing: ManualScheduleTrigger `points` should accept `int` --- 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/pytorch_pfn_extras/training/triggers/manual_schedule_trigger.py b/pytorch_pfn_extras/training/triggers/manual_schedule_trigger.py --- a/pytorch_pfn_extras/training/triggers/manual_schedule_trigger.py +++ b/pytorch_pfn_extras/training/triggers/manual_schedule_trigger.py @@ -1,6 +1,6 @@ # mypy: ignore-error...
{"golden_diff": "diff --git a/pytorch_pfn_extras/training/triggers/manual_schedule_trigger.py b/pytorch_pfn_extras/training/triggers/manual_schedule_trigger.py\n--- a/pytorch_pfn_extras/training/triggers/manual_schedule_trigger.py\n+++ b/pytorch_pfn_extras/training/triggers/manual_schedule_trigger.py\n@@ -1,6 +1,6 @@\n...
931
210
gh_patches_debug_21898
rasdani/github-patches
git_diff
falconry__falcon-2008
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Unclear which `HTTPError` was instantiated from `deprecated_args()` warnings In Falcon 3.0.x, instantiating `HTTPError` or its subclasses with positional arguments (of course except the allowed ones) generate...
diff --git a/falcon/util/deprecation.py b/falcon/util/deprecation.py --- a/falcon/util/deprecation.py +++ b/falcon/util/deprecation.py @@ -85,11 +85,11 @@ """ template = ( - 'Calls with{} positional args are deprecated.' + 'Calls to {{fn}}(...) with{arg_text} positional args are deprecated.' ...
{"golden_diff": "diff --git a/falcon/util/deprecation.py b/falcon/util/deprecation.py\n--- a/falcon/util/deprecation.py\n+++ b/falcon/util/deprecation.py\n@@ -85,11 +85,11 @@\n \"\"\"\n \n template = (\n- 'Calls with{} positional args are deprecated.'\n+ 'Calls to {{fn}}(...) with{arg_text} positi...
1,376
255
gh_patches_debug_3352
rasdani/github-patches
git_diff
streamlink__streamlink-3395
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Change `author_email` in setup.py https://github.com/streamlink/streamlink/blob/08e582580f3411b2de2c368f8b0cc7108264f990/setup.py#L83 @gravyboat you've registered `streamlink@protonmail.com` a couple of ...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -80,7 +80,7 @@ }, author="Streamlink", # temp until we have a mailing list / global email - author_email="charlie@charliedrage.com", + author_email="streamlink@protonmail.com", license="Simplified BSD", packag...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -80,7 +80,7 @@\n },\n author=\"Streamlink\",\n # temp until we have a mailing list / global email\n- author_email=\"charlie@charliedrage.com\",\n+ author_email=\"streamlink@protonmail.com\",\n license...
1,484
102
gh_patches_debug_33078
rasdani/github-patches
git_diff
getsentry__sentry-python-1641
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Django Signals integration breaks on partial objects for python <3.10 ### How do you use Sentry? Self-hosted/on-premise ### Version 1.9.9 ### Steps to Reproduce 1. Use python older than 3.10. 2. Registe...
diff --git a/sentry_sdk/integrations/django/signals_handlers.py b/sentry_sdk/integrations/django/signals_handlers.py --- a/sentry_sdk/integrations/django/signals_handlers.py +++ b/sentry_sdk/integrations/django/signals_handlers.py @@ -13,19 +13,32 @@ from typing import List +def _get_receiver_name(receiver): +...
{"golden_diff": "diff --git a/sentry_sdk/integrations/django/signals_handlers.py b/sentry_sdk/integrations/django/signals_handlers.py\n--- a/sentry_sdk/integrations/django/signals_handlers.py\n+++ b/sentry_sdk/integrations/django/signals_handlers.py\n@@ -13,19 +13,32 @@\n from typing import List\n \n \n+def _get_re...
888
506
gh_patches_debug_9131
rasdani/github-patches
git_diff
dask__dask-7623
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Note on `Add x.str.cat (#3028)` (lines 125-126) It's not clear to me why `String.str.cat` isn't supported in Dask when `others == None`. Not having the ability to concat a single series into a string is a sig...
diff --git a/dask/dataframe/accessor.py b/dask/dataframe/accessor.py --- a/dask/dataframe/accessor.py +++ b/dask/dataframe/accessor.py @@ -142,7 +142,15 @@ from .core import Index, Series if others is None: - raise NotImplementedError("x.str.cat() with `others == None`") + + de...
{"golden_diff": "diff --git a/dask/dataframe/accessor.py b/dask/dataframe/accessor.py\n--- a/dask/dataframe/accessor.py\n+++ b/dask/dataframe/accessor.py\n@@ -142,7 +142,15 @@\n from .core import Index, Series\n \n if others is None:\n- raise NotImplementedError(\"x.str.cat() with `others == ...
2,032
176
gh_patches_debug_43
rasdani/github-patches
git_diff
python-discord__site-268
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Ugly prefix on all ID links. Currently, all the headers that are created by the wiki will have id's that are prefixed with `wiki-toc`. As such, when you want to link a header, the link will look something lik...
diff --git a/pydis_site/__init__.py b/pydis_site/__init__.py --- a/pydis_site/__init__.py +++ b/pydis_site/__init__.py @@ -0,0 +1,4 @@ +from wiki.plugins.macros.mdx import toc + +# Remove the toc header prefix. There's no option for this, so we gotta monkey patch it. +toc.HEADER_ID_PREFIX = ''
{"golden_diff": "diff --git a/pydis_site/__init__.py b/pydis_site/__init__.py\n--- a/pydis_site/__init__.py\n+++ b/pydis_site/__init__.py\n@@ -0,0 +1,4 @@\n+from wiki.plugins.macros.mdx import toc\n+\n+# Remove the toc header prefix. There's no option for this, so we gotta monkey patch it.\n+toc.HEADER_ID_PREFIX = ''\n...
350
91
gh_patches_debug_8884
rasdani/github-patches
git_diff
getsentry__sentry-3421
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Audit log crash on IPv6 Affected version: 8.5.0 I was just saving some preferences and faced this error: ``` DataError: ERREUR: syntaxe en entrée invalide pour le type inet : « 2001 » LINE 1: ...oursenaud@...
diff --git a/src/sentry/middleware/proxy.py b/src/sentry/middleware/proxy.py --- a/src/sentry/middleware/proxy.py +++ b/src/sentry/middleware/proxy.py @@ -11,7 +11,8 @@ # HTTP_X_FORWARDED_FOR can be a comma-separated list of IPs. # Take just the first one. real_ip = real_ip.split(...
{"golden_diff": "diff --git a/src/sentry/middleware/proxy.py b/src/sentry/middleware/proxy.py\n--- a/src/sentry/middleware/proxy.py\n+++ b/src/sentry/middleware/proxy.py\n@@ -11,7 +11,8 @@\n # HTTP_X_FORWARDED_FOR can be a comma-separated list of IPs.\n # Take just the first one.\n r...
750
154
gh_patches_debug_36367
rasdani/github-patches
git_diff
searx__searx-335
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Flickr engine is broken The html seems to have changed, but it's seems there is [REST API](https://api.flickr.com/services/rest?sort=relevance&parse_tags=1&content_type=7&extras=can_comment%2Ccount_comments%2...
diff --git a/searx/engines/flickr_noapi.py b/searx/engines/flickr_noapi.py --- a/searx/engines/flickr_noapi.py +++ b/searx/engines/flickr_noapi.py @@ -25,7 +25,7 @@ url = 'https://www.flickr.com/' search_url = url + 'search?{query}&page={page}' photo_url = 'https://www.flickr.com/photos/{userid}/{photoid}' -regex = ...
{"golden_diff": "diff --git a/searx/engines/flickr_noapi.py b/searx/engines/flickr_noapi.py\n--- a/searx/engines/flickr_noapi.py\n+++ b/searx/engines/flickr_noapi.py\n@@ -25,7 +25,7 @@\n url = 'https://www.flickr.com/'\n search_url = url + 'search?{query}&page={page}'\n photo_url = 'https://www.flickr.com/photos/{useri...
1,483
557
gh_patches_debug_35825
rasdani/github-patches
git_diff
facebookresearch__hydra-2174
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add more details to Callback doc (from zulip chat) > When are the Callbacks executed in the hydra stack exactly? More specifically, are they executed after the launchers in the environments that the launcher...
diff --git a/hydra/experimental/callback.py b/hydra/experimental/callback.py --- a/hydra/experimental/callback.py +++ b/hydra/experimental/callback.py @@ -12,32 +12,37 @@ class Callback: def on_run_start(self, config: DictConfig, **kwargs: Any) -> None: """ - Called in RUN mode before job starts. ...
{"golden_diff": "diff --git a/hydra/experimental/callback.py b/hydra/experimental/callback.py\n--- a/hydra/experimental/callback.py\n+++ b/hydra/experimental/callback.py\n@@ -12,32 +12,37 @@\n class Callback:\n def on_run_start(self, config: DictConfig, **kwargs: Any) -> None:\n \"\"\"\n- Called in R...
738
552
gh_patches_debug_29649
rasdani/github-patches
git_diff
bridgecrewio__checkov-4897
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- CKV_AWS_325 check might not be accurate for PostgreSQL RDS instances **Describe the issue** The CKV_AWS_325 check expects the 'audit' log type to be enabled for RDS Cluster audit logging. However, this log t...
diff --git a/checkov/terraform/checks/resource/aws/RDSClusterAuditLogging.py b/checkov/terraform/checks/resource/aws/RDSClusterAuditLogging.py --- a/checkov/terraform/checks/resource/aws/RDSClusterAuditLogging.py +++ b/checkov/terraform/checks/resource/aws/RDSClusterAuditLogging.py @@ -5,6 +5,12 @@ from checkov.common...
{"golden_diff": "diff --git a/checkov/terraform/checks/resource/aws/RDSClusterAuditLogging.py b/checkov/terraform/checks/resource/aws/RDSClusterAuditLogging.py\n--- a/checkov/terraform/checks/resource/aws/RDSClusterAuditLogging.py\n+++ b/checkov/terraform/checks/resource/aws/RDSClusterAuditLogging.py\n@@ -5,6 +5,12 @@\...
1,158
405
gh_patches_debug_7747
rasdani/github-patches
git_diff
Cog-Creators__Red-DiscordBot-1981
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [V3 ModLog] Error in command "case" # Command bugs #### Command name [p]case #### What cog is this command from? ModLog #### What were you expecting to happen? To show me information about...
diff --git a/redbot/cogs/modlog/modlog.py b/redbot/cogs/modlog/modlog.py --- a/redbot/cogs/modlog/modlog.py +++ b/redbot/cogs/modlog/modlog.py @@ -95,7 +95,10 @@ await ctx.send(_("That case does not exist for that server")) return else: - await ctx.send(embed=await case.get...
{"golden_diff": "diff --git a/redbot/cogs/modlog/modlog.py b/redbot/cogs/modlog/modlog.py\n--- a/redbot/cogs/modlog/modlog.py\n+++ b/redbot/cogs/modlog/modlog.py\n@@ -95,7 +95,10 @@\n await ctx.send(_(\"That case does not exist for that server\"))\n return\n else:\n- await ctx...
2,036
152
gh_patches_debug_9538
rasdani/github-patches
git_diff
aws-cloudformation__cfn-lint-481
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Can't run in Travis CI xenial I was testing the new Travis CI image: https://blog.travis-ci.com/2018-11-08-xenial-release https://docs.travis-ci.com/user/reference/xenial/ My install script ran `pip in...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -52,7 +52,15 @@ ]}, packages=find_packages('src'), zip_safe=False, - install_requires=['pyyaml', 'six', 'requests', 'aws-sam-translator>=1.6.0', 'jsonpatch', 'jsonschema~=2.6.0', 'pathlib2'], + install_requires=[ + 'pyyaml', +...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -52,7 +52,15 @@\n ]},\n packages=find_packages('src'),\n zip_safe=False,\n- install_requires=['pyyaml', 'six', 'requests', 'aws-sam-translator>=1.6.0', 'jsonpatch', 'jsonschema~=2.6.0', 'pathlib2'],\n+ install_requir...
1,488
221
gh_patches_debug_62284
rasdani/github-patches
git_diff
SciTools__cartopy-228
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- coastlines drawn under filled contours When using matplotlib v1.3.x and cartopy v0.7.x (development master from github) coastlines and other features are drawn underneath filled contours unless: ``` ax.coast...
diff --git a/lib/cartopy/mpl/feature_artist.py b/lib/cartopy/mpl/feature_artist.py --- a/lib/cartopy/mpl/feature_artist.py +++ b/lib/cartopy/mpl/feature_artist.py @@ -75,7 +75,10 @@ elif feature.kwargs.get('zorder') is not None: self.set_zorder(feature.kwargs['zorder']) else: - ...
{"golden_diff": "diff --git a/lib/cartopy/mpl/feature_artist.py b/lib/cartopy/mpl/feature_artist.py\n--- a/lib/cartopy/mpl/feature_artist.py\n+++ b/lib/cartopy/mpl/feature_artist.py\n@@ -75,7 +75,10 @@\n elif feature.kwargs.get('zorder') is not None:\n self.set_zorder(feature.kwargs['zorder'])\n ...
1,644
162
gh_patches_debug_9163
rasdani/github-patches
git_diff
opsdroid__opsdroid-1540
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add 3.8 support to setup.py We've been running CI against 3.8 for a while now, we should update the metadata in `setup.py` to explicitly state we support 3.8. We should also update the [support table](http...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -74,6 +74,7 @@ "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", "Topic :: Communications...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -74,6 +74,7 @@\n \"Programming Language :: Python :: 3 :: Only\",\n \"Programming Language :: Python :: 3.6\",\n \"Programming Language :: Python :: 3.7\",\n+ \"Programming Language :: Python :: 3.8\",\n...
1,280
112
gh_patches_debug_14665
rasdani/github-patches
git_diff
getsentry__sentry-9517
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- SVG static assets broken and not displayed Every asset with svg type are displayed as broken in web interface. ![image](https://user-images.githubusercontent.com/776304/43769623-7422f776-9a3a-11e8-9e0d-d16...
diff --git a/src/sentry/runner/settings.py b/src/sentry/runner/settings.py --- a/src/sentry/runner/settings.py +++ b/src/sentry/runner/settings.py @@ -101,10 +101,14 @@ # which aren't common in default system registries import mimetypes for type, ext in ( - ('application/json', 'map'), ('applicati...
{"golden_diff": "diff --git a/src/sentry/runner/settings.py b/src/sentry/runner/settings.py\n--- a/src/sentry/runner/settings.py\n+++ b/src/sentry/runner/settings.py\n@@ -101,10 +101,14 @@\n # which aren't common in default system registries\n import mimetypes\n for type, ext in (\n- ('application/js...
2,029
265
gh_patches_debug_63641
rasdani/github-patches
git_diff
bookwyrm-social__bookwyrm-566
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Feature request - block quote formatting in reviews I published [a review](https://bookwyrm.social/user/darius/review/14497) just now with a markdown-style block quote in it. The second-to-last paragraph is f...
diff --git a/bookwyrm/sanitize_html.py b/bookwyrm/sanitize_html.py --- a/bookwyrm/sanitize_html.py +++ b/bookwyrm/sanitize_html.py @@ -7,7 +7,7 @@ def __init__(self): HTMLParser.__init__(self) self.allowed_tags = [ - 'p', 'br', + 'p', 'blockquote', 'br', 'b', 'i...
{"golden_diff": "diff --git a/bookwyrm/sanitize_html.py b/bookwyrm/sanitize_html.py\n--- a/bookwyrm/sanitize_html.py\n+++ b/bookwyrm/sanitize_html.py\n@@ -7,7 +7,7 @@\n def __init__(self):\n HTMLParser.__init__(self)\n self.allowed_tags = [\n- 'p', 'br',\n+ 'p', 'blockquote', '...
1,025
124
gh_patches_debug_21318
rasdani/github-patches
git_diff
openai__gym-1400
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- why MultiDiscrete dtype=int8 MultiDiscrete dtype is hardcoded as int8. Is this a bug ? What happens when we need more than 256 category ``` space = MultiDiscrete([7, 1024]) space.sample() ``` h...
diff --git a/gym/spaces/multi_discrete.py b/gym/spaces/multi_discrete.py --- a/gym/spaces/multi_discrete.py +++ b/gym/spaces/multi_discrete.py @@ -1,4 +1,3 @@ -import gym import numpy as np from .space import Space @@ -29,9 +28,9 @@ nvec: vector of counts of each categorical variable """ ...
{"golden_diff": "diff --git a/gym/spaces/multi_discrete.py b/gym/spaces/multi_discrete.py\n--- a/gym/spaces/multi_discrete.py\n+++ b/gym/spaces/multi_discrete.py\n@@ -1,4 +1,3 @@\n-import gym\n import numpy as np\n from .space import Space\n \n@@ -29,9 +28,9 @@\n nvec: vector of counts of each categorical varia...
1,484
314
gh_patches_debug_56609
rasdani/github-patches
git_diff
spacetelescope__jwql-678
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Upgrade Django to 3.0 Django 3.0 is out, and since it is a major release, we should consider upgrading to this. --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of thes...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ 'codecov', 'crds', 'cryptography', - 'django>=2.0,<3.0', + 'django', 'flake8', 'inflection', 'ipython',
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -20,7 +20,7 @@\n 'codecov',\n 'crds',\n 'cryptography',\n- 'django>=2.0,<3.0',\n+ 'django',\n 'flake8',\n 'inflection',\n 'ipython',\n", "issue": "Upgrade Django to 3.0\nDjango 3.0 is out, and since it is...
868
80
gh_patches_debug_47926
rasdani/github-patches
git_diff
uccser__cs-unplugged-717
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Workaround Crowdin bug where integer yaml keys are not preserved When downloading in-context localisation files, integer keys in YAML files are not preserved. This is only an issue in the file `topics/content...
diff --git a/csunplugged/topics/management/commands/_ProgrammingChallengesStructureLoader.py b/csunplugged/topics/management/commands/_ProgrammingChallengesStructureLoader.py --- a/csunplugged/topics/management/commands/_ProgrammingChallengesStructureLoader.py +++ b/csunplugged/topics/management/commands/_ProgrammingCh...
{"golden_diff": "diff --git a/csunplugged/topics/management/commands/_ProgrammingChallengesStructureLoader.py b/csunplugged/topics/management/commands/_ProgrammingChallengesStructureLoader.py\n--- a/csunplugged/topics/management/commands/_ProgrammingChallengesStructureLoader.py\n+++ b/csunplugged/topics/management/comm...
1,250
133
gh_patches_debug_13056
rasdani/github-patches
git_diff
pypa__pip-392
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- "pip freeze -r" returns ValueError() if requirements file contains --find-links It seems that pip freeze should not pass --find-links or --index-url to distribute/setuptools when inlined in a requirements fil...
diff --git a/pip/commands/freeze.py b/pip/commands/freeze.py --- a/pip/commands/freeze.py +++ b/pip/commands/freeze.py @@ -85,7 +85,9 @@ elif (line.startswith('-r') or line.startswith('--requirement') or line.startswith('-Z') or line.startswith('--always-unzip') ...
{"golden_diff": "diff --git a/pip/commands/freeze.py b/pip/commands/freeze.py\n--- a/pip/commands/freeze.py\n+++ b/pip/commands/freeze.py\n@@ -85,7 +85,9 @@\n elif (line.startswith('-r') or line.startswith('--requirement')\n or line.startswith('-Z') or line.startswith('--always-unz...
2,014
144
gh_patches_debug_11571
rasdani/github-patches
git_diff
microsoft__hi-ml-78
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Make the package tag-line on PyPi more concrete Javier pointed out that our tagline, _Microsoft Health Intelligence AzureML helpers_, on https://pypi.org/manage/project/hi-ml/releases/ is too generic. --- EN...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -59,10 +59,12 @@ # Remove any whitespace and blank lines install_requires = [line.strip() for line in install_requires if line.strip()] +description = 'Microsoft Health Intelligence package to elevate and monitor scripts to an AzureML workspace' + s...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -59,10 +59,12 @@\n # Remove any whitespace and blank lines\n install_requires = [line.strip() for line in install_requires if line.strip()]\n \n+description = 'Microsoft Health Intelligence package to elevate and monitor scripts to an...
1,292
141
gh_patches_debug_5409
rasdani/github-patches
git_diff
mirumee__ariadne-183
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Move documentation to separate repo and host it on gh-pages Sphinx has served us well, but we fell its too limiting for what we have planned for Ariadne. We've decided to migrate the site to the [Docusauru...
diff --git a/docs/conf.py b/docs/conf.py --- a/docs/conf.py +++ b/docs/conf.py @@ -42,7 +42,7 @@ # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. -extensions = ["sphinxcontrib.asyncio"] +extensions = [] # Add any pa...
{"golden_diff": "diff --git a/docs/conf.py b/docs/conf.py\n--- a/docs/conf.py\n+++ b/docs/conf.py\n@@ -42,7 +42,7 @@\n # Add any Sphinx extension module names here, as strings. They can be\n # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom\n # ones.\n-extensions = [\"sphinxcontrib.asyncio\"]\n+exte...
2,019
108
gh_patches_debug_21805
rasdani/github-patches
git_diff
psychopy__psychopy-4622
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- 404 errors on some of the page in the HELP menus Version used - psychopy: 2021.2.3 https://www.psychopy.org/builder/builder.html https://www.psychopy.org/api/api.html --- END ISSUE --- Below are some c...
diff --git a/psychopy/app/urls.py b/psychopy/app/urls.py --- a/psychopy/app/urls.py +++ b/psychopy/app/urls.py @@ -6,7 +6,7 @@ urls = dict() # links based on string names -urls['builder'] = "https://www.psychopy.org/builder/builder.html" +urls['builder'] = "https://www.psychopy.org/builder" urls['builder.loops'] =...
{"golden_diff": "diff --git a/psychopy/app/urls.py b/psychopy/app/urls.py\n--- a/psychopy/app/urls.py\n+++ b/psychopy/app/urls.py\n@@ -6,7 +6,7 @@\n urls = dict()\n \n # links based on string names\n-urls['builder'] = \"https://www.psychopy.org/builder/builder.html\"\n+urls['builder'] = \"https://www.psychopy.org/build...
739
285
gh_patches_debug_30758
rasdani/github-patches
git_diff
opendatacube__datacube-core-1061
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Example PickleWriterDriver does not support URIs ### Expected behaviour Using the example `pickles` driver should allow to successfully run, e.g., `integration_tests/test_end_to_end`. This is assuming the ex...
diff --git a/examples/io_plugin/dcio_example/pickles.py b/examples/io_plugin/dcio_example/pickles.py --- a/examples/io_plugin/dcio_example/pickles.py +++ b/examples/io_plugin/dcio_example/pickles.py @@ -4,9 +4,12 @@ # SPDX-License-Identifier: Apache-2.0 """ Example reader plugin """ -from contextlib import contextma...
{"golden_diff": "diff --git a/examples/io_plugin/dcio_example/pickles.py b/examples/io_plugin/dcio_example/pickles.py\n--- a/examples/io_plugin/dcio_example/pickles.py\n+++ b/examples/io_plugin/dcio_example/pickles.py\n@@ -4,9 +4,12 @@\n # SPDX-License-Identifier: Apache-2.0\n \"\"\" Example reader plugin\n \"\"\"\n-fr...
1,419
444
gh_patches_debug_16915
rasdani/github-patches
git_diff
fossasia__open-event-server-5322
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add unit test for Event helpers **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 [...] --> We sh...
diff --git a/app/api/helpers/errors.py b/app/api/helpers/errors.py --- a/app/api/helpers/errors.py +++ b/app/api/helpers/errors.py @@ -65,10 +65,16 @@ class UnprocessableEntityError(ErrorResponse): + """ + Default class for 422 Error + """ status = 422 title = 'Unprocessable Entity' class B...
{"golden_diff": "diff --git a/app/api/helpers/errors.py b/app/api/helpers/errors.py\n--- a/app/api/helpers/errors.py\n+++ b/app/api/helpers/errors.py\n@@ -65,10 +65,16 @@\n \n \n class UnprocessableEntityError(ErrorResponse):\n+ \"\"\"\n+ Default class for 422 Error\n+ \"\"\"\n status = 422\n title = '...
1,106
256
gh_patches_debug_15280
rasdani/github-patches
git_diff
PlasmaPy__PlasmaPy-891
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Change name of chat room from Matrix/Riot to Element The name of the chat platform we are using has [changed from Matrix/Riot to Element](https://element.io/blog/the-world-is-changing/). We should change the...
diff --git a/plasmapy/particles/elements.py b/plasmapy/particles/elements.py --- a/plasmapy/particles/elements.py +++ b/plasmapy/particles/elements.py @@ -26,7 +26,7 @@ return obj -# this code was used to create the JSON file as per vn-ki on Riot: +# this code was used to create the JSON file as per vn-ki on M...
{"golden_diff": "diff --git a/plasmapy/particles/elements.py b/plasmapy/particles/elements.py\n--- a/plasmapy/particles/elements.py\n+++ b/plasmapy/particles/elements.py\n@@ -26,7 +26,7 @@\n return obj\n \n \n-# this code was used to create the JSON file as per vn-ki on Riot:\n+# this code was used to create the JS...
1,274
336
gh_patches_debug_2500
rasdani/github-patches
git_diff
rlworkgroup__garage-692
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add Intel-optimized version of the package --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `setup.py` Conte...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -34,6 +34,9 @@ extras = {} extras['all'] = list(set(sum(extras.values(), []))) +# Intel dependencies not included in all +extras['intel'] = ['intel-tensorflow<1.13,>=1.12.0'] + # Development dependencies (*not* included in "all") extras['dev'] = [ ...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -34,6 +34,9 @@\n extras = {}\n extras['all'] = list(set(sum(extras.values(), [])))\n \n+# Intel dependencies not included in all\n+extras['intel'] = ['intel-tensorflow<1.13,>=1.12.0']\n+\n # Development dependencies (*not* included in...
1,265
108
gh_patches_debug_16985
rasdani/github-patches
git_diff
searxng__searxng-2369
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Double bangs without query redirect to search URL instead of main page <!-- PLEASE FILL THESE FIELDS, IT REALLY HELPS THE MAINTAINERS OF SearXNG --> **Version of SearXNG, commit number if you are using on ...
diff --git a/searx/external_bang.py b/searx/external_bang.py --- a/searx/external_bang.py +++ b/searx/external_bang.py @@ -1,6 +1,6 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -from urllib.parse import quote_plus +from urllib.parse import quote_plus, urlparse from searx.data import EXTERNAL_BANGS LEAF_KEY = ...
{"golden_diff": "diff --git a/searx/external_bang.py b/searx/external_bang.py\n--- a/searx/external_bang.py\n+++ b/searx/external_bang.py\n@@ -1,6 +1,6 @@\n # SPDX-License-Identifier: AGPL-3.0-or-later\n \n-from urllib.parse import quote_plus\n+from urllib.parse import quote_plus, urlparse\n from searx.data import EXTE...
1,395
253
gh_patches_debug_2243
rasdani/github-patches
git_diff
streamlink__streamlink-5023
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- plugins.vtvgo: '403 Client Error: Forbidden for url: ...' ### Checklist - [X] This is a plugin issue and not a different kind of issue - [X] [I have read the contribution guidelines](https://github.com/strea...
diff --git a/src/streamlink/plugins/vtvgo.py b/src/streamlink/plugins/vtvgo.py --- a/src/streamlink/plugins/vtvgo.py +++ b/src/streamlink/plugins/vtvgo.py @@ -27,6 +27,7 @@ self.session.http.headers.update({ "Origin": "https://vtvgo.vn", "Referer": self.url, + "Sec-Fetch-Si...
{"golden_diff": "diff --git a/src/streamlink/plugins/vtvgo.py b/src/streamlink/plugins/vtvgo.py\n--- a/src/streamlink/plugins/vtvgo.py\n+++ b/src/streamlink/plugins/vtvgo.py\n@@ -27,6 +27,7 @@\n self.session.http.headers.update({\n \"Origin\": \"https://vtvgo.vn\",\n \"Referer\": self.ur...
1,429
108
gh_patches_debug_7931
rasdani/github-patches
git_diff
conan-io__conan-center-index-14099
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [service] msbuild package template has import incompatible with Conan 2.0 At https://github.com/conan-io/conan-center-index/blob/53ef0688c436c6697d8312d47fcdef68fe7e6955/docs/package_templates/msbuild_package...
diff --git a/docs/package_templates/msbuild_package/all/conanfile.py b/docs/package_templates/msbuild_package/all/conanfile.py --- a/docs/package_templates/msbuild_package/all/conanfile.py +++ b/docs/package_templates/msbuild_package/all/conanfile.py @@ -1,7 +1,6 @@ from conan import ConanFile from conan.errors impor...
{"golden_diff": "diff --git a/docs/package_templates/msbuild_package/all/conanfile.py b/docs/package_templates/msbuild_package/all/conanfile.py\n--- a/docs/package_templates/msbuild_package/all/conanfile.py\n+++ b/docs/package_templates/msbuild_package/all/conanfile.py\n@@ -1,7 +1,6 @@\n from conan import ConanFile\n f...
1,837
180
gh_patches_debug_29824
rasdani/github-patches
git_diff
microsoft__Qcodes-531
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Keithley2600 driver broken after commit 460c93c71506213102e56d3ea0c518723666d56a ### Steps to reproduce 1. Connect Keithley 2600 2. ask it for output status or mode 3. doh ### Expected behaviour tell...
diff --git a/qcodes/instrument_drivers/tektronix/Keithley_2600.py b/qcodes/instrument_drivers/tektronix/Keithley_2600.py --- a/qcodes/instrument_drivers/tektronix/Keithley_2600.py +++ b/qcodes/instrument_drivers/tektronix/Keithley_2600.py @@ -19,20 +19,26 @@ super().__init__(name, address, terminator='\n', **k...
{"golden_diff": "diff --git a/qcodes/instrument_drivers/tektronix/Keithley_2600.py b/qcodes/instrument_drivers/tektronix/Keithley_2600.py\n--- a/qcodes/instrument_drivers/tektronix/Keithley_2600.py\n+++ b/qcodes/instrument_drivers/tektronix/Keithley_2600.py\n@@ -19,20 +19,26 @@\n super().__init__(name, address,...
1,309
382
gh_patches_debug_26054
rasdani/github-patches
git_diff
encode__uvicorn-636
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- --proxy-headers with supervisor get client ip failed #### uvicorn version `Running uvicorn 0.11.3 with CPython 3.8.2 on Linux` #### supervisor config ``` [fcgi-program:uvicorn] socket=tcp://0.0.0.0:5000...
diff --git a/uvicorn/protocols/utils.py b/uvicorn/protocols/utils.py --- a/uvicorn/protocols/utils.py +++ b/uvicorn/protocols/utils.py @@ -1,5 +1,10 @@ import socket +if hasattr(socket, "AF_UNIX"): + SUPPORTED_SOCKET_FAMILIES = (socket.AF_INET, socket.AF_INET6, socket.AF_UNIX) +else: + SUPPORTED_SOCKET_FAMILIE...
{"golden_diff": "diff --git a/uvicorn/protocols/utils.py b/uvicorn/protocols/utils.py\n--- a/uvicorn/protocols/utils.py\n+++ b/uvicorn/protocols/utils.py\n@@ -1,5 +1,10 @@\n import socket\n \n+if hasattr(socket, \"AF_UNIX\"):\n+ SUPPORTED_SOCKET_FAMILIES = (socket.AF_INET, socket.AF_INET6, socket.AF_UNIX)\n+else:\n+...
1,063
320
gh_patches_debug_3256
rasdani/github-patches
git_diff
e-valuation__EvaP-1467
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- OpenID login button is broken in latest firefox Behavior: When clicking the "login" button at `https://evap.hpi.de` a request is sent to `https://evap.hpi.de/oidc/authenticate/`, which returns a 302 and redi...
diff --git a/evap/middleware.py b/evap/middleware.py --- a/evap/middleware.py +++ b/evap/middleware.py @@ -17,6 +17,9 @@ if "no_login_required" in view_func.__dict__ and view_func.no_login_required: return None + if view_func.__name__ in ["OIDCAuthenticationRequestView", "OIDCAuthenticati...
{"golden_diff": "diff --git a/evap/middleware.py b/evap/middleware.py\n--- a/evap/middleware.py\n+++ b/evap/middleware.py\n@@ -17,6 +17,9 @@\n if \"no_login_required\" in view_func.__dict__ and view_func.no_login_required:\n return None\n \n+ if view_func.__name__ in [\"OIDCAuthenticationRequ...
629
113
gh_patches_debug_35959
rasdani/github-patches
git_diff
electricitymaps__electricitymaps-contrib-2088
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- US-BPA failing due to changes in data layout and timezone ```shell File "/home/contrib/parsers/US_BPA.py", line 113, in fetch_production raw_data = get_data(GENERATION_URL, session=session) File "...
diff --git a/parsers/US_BPA.py b/parsers/US_BPA.py --- a/parsers/US_BPA.py +++ b/parsers/US_BPA.py @@ -2,11 +2,11 @@ """Parser for the Bonneville Power Administration area of the USA.""" -from datetime import datetime, timedelta + from io import StringIO +import arrow import logging import pandas as pd -import ...
{"golden_diff": "diff --git a/parsers/US_BPA.py b/parsers/US_BPA.py\n--- a/parsers/US_BPA.py\n+++ b/parsers/US_BPA.py\n@@ -2,11 +2,11 @@\n \n \"\"\"Parser for the Bonneville Power Administration area of the USA.\"\"\"\n \n-from datetime import datetime, timedelta\n+\n from io import StringIO\n+import arrow\n import log...
1,908
568
gh_patches_debug_3683
rasdani/github-patches
git_diff
bokeh__bokeh-5883
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Test bokehjs/examples and run them on travis ci They are constantly broken due to not being continuously tested. --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of the...
diff --git a/examples/plotting/file/airports_map.py b/examples/plotting/file/airports_map.py --- a/examples/plotting/file/airports_map.py +++ b/examples/plotting/file/airports_map.py @@ -31,7 +31,7 @@ # create a tile source tile_options = {} -tile_options['url'] = 'http://otile2.mqcdn.com/tiles/1.0.0/sat/{Z}/{X}/{Y...
{"golden_diff": "diff --git a/examples/plotting/file/airports_map.py b/examples/plotting/file/airports_map.py\n--- a/examples/plotting/file/airports_map.py\n+++ b/examples/plotting/file/airports_map.py\n@@ -31,7 +31,7 @@\n \n # create a tile source\n tile_options = {}\n-tile_options['url'] = 'http://otile2.mqcdn.com/ti...
820
180
gh_patches_debug_31548
rasdani/github-patches
git_diff
archlinux__archinstall-1194
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- `select_disk` throw an error because BlockDevice does not contain label Running this line from a python script causes an error: `archinstall.select_disk(archinstall.all_blockdevices())` ``` Tracebac...
diff --git a/archinstall/lib/user_interaction/disk_conf.py b/archinstall/lib/user_interaction/disk_conf.py --- a/archinstall/lib/user_interaction/disk_conf.py +++ b/archinstall/lib/user_interaction/disk_conf.py @@ -7,7 +7,6 @@ from ..exceptions import DiskError from ..menu import Menu from ..menu.menu import MenuSel...
{"golden_diff": "diff --git a/archinstall/lib/user_interaction/disk_conf.py b/archinstall/lib/user_interaction/disk_conf.py\n--- a/archinstall/lib/user_interaction/disk_conf.py\n+++ b/archinstall/lib/user_interaction/disk_conf.py\n@@ -7,7 +7,6 @@\n from ..exceptions import DiskError\n from ..menu import Menu\n from ..m...
1,456
498
gh_patches_debug_19023
rasdani/github-patches
git_diff
vyperlang__vyper-874
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add uint256 decimal support for convert ### What's your issue about? Convert should allow conversion of uint256 -> decimal. ### How can it be fixed? convert.py:57 #### Cute Animal Picture ^.^ --...
diff --git a/vyper/types/convert.py b/vyper/types/convert.py --- a/vyper/types/convert.py +++ b/vyper/types/convert.py @@ -57,11 +57,20 @@ raise InvalidLiteralException("Invalid input for uint256: %r" % in_node, expr) -@signature('int128', 'str_literal') +@signature(('int128', 'uint256'), 'str_literal') d...
{"golden_diff": "diff --git a/vyper/types/convert.py b/vyper/types/convert.py\n--- a/vyper/types/convert.py\n+++ b/vyper/types/convert.py\n@@ -57,11 +57,20 @@\n raise InvalidLiteralException(\"Invalid input for uint256: %r\" % in_node, expr)\n \n \n-@signature('int128', 'str_literal')\n+@signature(('int128', 'u...
1,481
321
gh_patches_debug_3044
rasdani/github-patches
git_diff
opendatacube__datacube-core-1374
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Incompatibilities with xarray > 2022.03 ### Expected behaviour ODC should work with current version of `xarray`. In `setup.py` there's an exclusion of `2022.6.0`, but I don't think that's sufficient. It'd be...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -106,7 +106,7 @@ 'sqlalchemy', 'GeoAlchemy2', 'toolz', - 'xarray>=0.9,!=2022.6.0', # >0.9 fixes most problems with `crs` attributes being lost + 'xarray>=0.9,<2022.6', # >0.9 fixes most problems with `crs` attri...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -106,7 +106,7 @@\n 'sqlalchemy',\n 'GeoAlchemy2',\n 'toolz',\n- 'xarray>=0.9,!=2022.6.0', # >0.9 fixes most problems with `crs` attributes being lost\n+ 'xarray>=0.9,<2022.6', # >0.9 fixes most ...
1,842
139
gh_patches_debug_25447
rasdani/github-patches
git_diff
cookiecutter__cookiecutter-270
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add aliases for cookiecutters Remembering the locations of cookiecutters can be a bit of a pain - even if it's just including the local path. It would be useful to have an extra section in `cookiecutterrc` f...
diff --git a/cookiecutter/main.py b/cookiecutter/main.py --- a/cookiecutter/main.py +++ b/cookiecutter/main.py @@ -25,6 +25,34 @@ logger = logging.getLogger(__name__) +builtin_abbreviations = { + 'gh': 'https://github.com/{0}.git', + 'bb': 'https://bitbucket.org/{0}', +} + +def expand_abbreviations(input_dir...
{"golden_diff": "diff --git a/cookiecutter/main.py b/cookiecutter/main.py\n--- a/cookiecutter/main.py\n+++ b/cookiecutter/main.py\n@@ -25,6 +25,34 @@\n \n logger = logging.getLogger(__name__)\n \n+builtin_abbreviations = {\n+ 'gh': 'https://github.com/{0}.git',\n+ 'bb': 'https://bitbucket.org/{0}',\n+}\n+\n+def e...
1,577
382
gh_patches_debug_38603
rasdani/github-patches
git_diff
docker__docker-py-347
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- SSLAdapter init_poolmanager error because request.packages.urllib3.__version__ invalid In ssladapter.py, ``` python try: import requests.packages.urllib3 as urllib3 except ImportError: import urllib...
diff --git a/docker/ssladapter/ssladapter.py b/docker/ssladapter/ssladapter.py --- a/docker/ssladapter/ssladapter.py +++ b/docker/ssladapter/ssladapter.py @@ -15,19 +15,27 @@ class SSLAdapter(HTTPAdapter): '''An HTTPS Transport Adapter that uses an arbitrary SSL version.''' - def __init__(self, ssl_version=N...
{"golden_diff": "diff --git a/docker/ssladapter/ssladapter.py b/docker/ssladapter/ssladapter.py\n--- a/docker/ssladapter/ssladapter.py\n+++ b/docker/ssladapter/ssladapter.py\n@@ -15,19 +15,27 @@\n \n class SSLAdapter(HTTPAdapter):\n '''An HTTPS Transport Adapter that uses an arbitrary SSL version.'''\n- def __in...
1,394
639
gh_patches_debug_19397
rasdani/github-patches
git_diff
elastic__apm-agent-python-766
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- 'UnixDomainSocketConnection' object has no attribute 'port' AttributeError: 'UnixDomainSocketConnection' object has no attribute 'port' elastic-apm==5.5.1 ``` File "django_redis/cache.py", line 32, in ...
diff --git a/elasticapm/instrumentation/packages/redis.py b/elasticapm/instrumentation/packages/redis.py --- a/elasticapm/instrumentation/packages/redis.py +++ b/elasticapm/instrumentation/packages/redis.py @@ -87,11 +87,16 @@ def call(self, module, method, wrapped, instance, args, kwargs): span = executi...
{"golden_diff": "diff --git a/elasticapm/instrumentation/packages/redis.py b/elasticapm/instrumentation/packages/redis.py\n--- a/elasticapm/instrumentation/packages/redis.py\n+++ b/elasticapm/instrumentation/packages/redis.py\n@@ -87,11 +87,16 @@\n def call(self, module, method, wrapped, instance, args, kwargs):\n ...
1,707
306
gh_patches_debug_56
rasdani/github-patches
git_diff
Anselmoo__spectrafit-660
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- [Docs]: Update release drafter ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current Missing Information in the Docs - Link to the complete changes of the latest re...
diff --git a/spectrafit/__init__.py b/spectrafit/__init__.py --- a/spectrafit/__init__.py +++ b/spectrafit/__init__.py @@ -1,2 +1,2 @@ """SpectraFit, fast command line tool for fitting data.""" -__version__ = "1.0.0a0" +__version__ = "1.0.0a1"
{"golden_diff": "diff --git a/spectrafit/__init__.py b/spectrafit/__init__.py\n--- a/spectrafit/__init__.py\n+++ b/spectrafit/__init__.py\n@@ -1,2 +1,2 @@\n \"\"\"SpectraFit, fast command line tool for fitting data.\"\"\"\n-__version__ = \"1.0.0a0\"\n+__version__ = \"1.0.0a1\"\n", "issue": "[Docs]: Update release draft...
374
96
gh_patches_debug_62442
rasdani/github-patches
git_diff
comic__grand-challenge.org-1162
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Reader study completed message is visible when study is not completed ![Screenshot_20200209_164820](https://user-images.githubusercontent.com/12661555/74105211-1931f400-4b5c-11ea-96d8-6b4663386d09.png) ---...
diff --git a/app/grandchallenge/reader_studies/templatetags/get_ground_truth.py b/app/grandchallenge/reader_studies/templatetags/get_ground_truth.py --- a/app/grandchallenge/reader_studies/templatetags/get_ground_truth.py +++ b/app/grandchallenge/reader_studies/templatetags/get_ground_truth.py @@ -5,6 +5,7 @@ @regis...
{"golden_diff": "diff --git a/app/grandchallenge/reader_studies/templatetags/get_ground_truth.py b/app/grandchallenge/reader_studies/templatetags/get_ground_truth.py\n--- a/app/grandchallenge/reader_studies/templatetags/get_ground_truth.py\n+++ b/app/grandchallenge/reader_studies/templatetags/get_ground_truth.py\n@@ -5...
438
159
gh_patches_debug_25949
rasdani/github-patches
git_diff
larq__larq-319
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Refactor layer test to use pytest parameterized test Currently we use a mix of unittests written in `pytest` style and tests using `tf.test.TestCase` in larq. In #313 I added some simple `pytest` fixtures tha...
diff --git a/larq/conftest.py b/larq/conftest.py --- a/larq/conftest.py +++ b/larq/conftest.py @@ -1,4 +1,5 @@ import pytest +import tensorflow as tf from tensorflow.python.eager import context @@ -21,3 +22,27 @@ """pytest fixture for running test in eager and graph mode""" with getattr(context, f"{requ...
{"golden_diff": "diff --git a/larq/conftest.py b/larq/conftest.py\n--- a/larq/conftest.py\n+++ b/larq/conftest.py\n@@ -1,4 +1,5 @@\n import pytest\n+import tensorflow as tf\n from tensorflow.python.eager import context\n \n \n@@ -21,3 +22,27 @@\n \"\"\"pytest fixture for running test in eager and graph mode\"\"\"\n...
1,527
416
gh_patches_debug_7229
rasdani/github-patches
git_diff
docker__docker-py-1150
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Client.build crashes when trying to pull a new image if HttpHeaders are set in config file ``` python import docker c = docker.Client() c.build('https://github.com/docker/compose.git') ---------------------...
diff --git a/docker/utils/decorators.py b/docker/utils/decorators.py --- a/docker/utils/decorators.py +++ b/docker/utils/decorators.py @@ -40,7 +40,7 @@ def update_headers(f): def inner(self, *args, **kwargs): if 'HttpHeaders' in self._auth_configs: - if 'headers' not in kwargs: + i...
{"golden_diff": "diff --git a/docker/utils/decorators.py b/docker/utils/decorators.py\n--- a/docker/utils/decorators.py\n+++ b/docker/utils/decorators.py\n@@ -40,7 +40,7 @@\n def update_headers(f):\n def inner(self, *args, **kwargs):\n if 'HttpHeaders' in self._auth_configs:\n- if 'headers' not i...
991
126
gh_patches_debug_29587
rasdani/github-patches
git_diff
cocotb__cocotb-2198
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Use setuptools_scm for generating a version number [setuptools_scm](https://github.com/pypa/setuptools_scm/) can automatically generate version numbers based on git tags and versioning information. This will ...
diff --git a/cocotb/_version.py b/cocotb/_version.py deleted file mode 100644 --- a/cocotb/_version.py +++ /dev/null @@ -1,8 +0,0 @@ -# Package versioning solution originally found here: -# http://stackoverflow.com/q/458550 - -# Store the version here so: -# 1) we don't load dependencies by storing it in __init__.py -#...
{"golden_diff": "diff --git a/cocotb/_version.py b/cocotb/_version.py\ndeleted file mode 100644\n--- a/cocotb/_version.py\n+++ /dev/null\n@@ -1,8 +0,0 @@\n-# Package versioning solution originally found here:\n-# http://stackoverflow.com/q/458550\n-\n-# Store the version here so:\n-# 1) we don't load dependencies by st...
2,000
469
gh_patches_debug_13544
rasdani/github-patches
git_diff
Azure__azure-cli-extensions-93
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Change help for az webapp new ### Extension name (the extension in question) webapp ### Description of issue (in as much detail as possible) currently the help information for the command return the ...
diff --git a/src/webapp/azext_webapp/_help.py b/src/webapp/azext_webapp/_help.py --- a/src/webapp/azext_webapp/_help.py +++ b/src/webapp/azext_webapp/_help.py @@ -8,7 +8,8 @@ helps['webapp new'] = """ type: command - short-summary: Create and deploy a node web app + short-summary: Experimental command to ...
{"golden_diff": "diff --git a/src/webapp/azext_webapp/_help.py b/src/webapp/azext_webapp/_help.py\n--- a/src/webapp/azext_webapp/_help.py\n+++ b/src/webapp/azext_webapp/_help.py\n@@ -8,7 +8,8 @@\n \n helps['webapp new'] = \"\"\"\n type: command\n- short-summary: Create and deploy a node web app\n+ short-summa...
898
233
gh_patches_debug_23257
rasdani/github-patches
git_diff
getredash__redash-2799
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Add front-end extension capability This is similar in concept to https://github.com/getredash/redash/pull/2354/files --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of...
diff --git a/redash/extensions.py b/redash/extensions.py --- a/redash/extensions.py +++ b/redash/extensions.py @@ -1,4 +1,5 @@ -from pkg_resources import iter_entry_points +import os +from pkg_resources import iter_entry_points, resource_isdir, resource_listdir def init_extensions(app): @@ -10,5 +11,20 @@ f...
{"golden_diff": "diff --git a/redash/extensions.py b/redash/extensions.py\n--- a/redash/extensions.py\n+++ b/redash/extensions.py\n@@ -1,4 +1,5 @@\n-from pkg_resources import iter_entry_points\n+import os\n+from pkg_resources import iter_entry_points, resource_isdir, resource_listdir\n \n \n def init_extensions(app):\n...
411
317
gh_patches_debug_17786
rasdani/github-patches
git_diff
lmfit__lmfit-py-152
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Cannot deploy to pypi repo dues to tuples in the `setup.py` attributes Due to a python-bug (http://bugs.python.org/issue19610) i cannot install and deploy lmfit with `python setup install` I discovered this ...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -30,11 +30,11 @@ author_email = 'matt.newville@gmail.com', url = 'http://lmfit.github.io/lmfit-py/', download_url = 'http://lmfit.github.io//lmfit-py/', - requires = ('numpy', 'scipy'), + requires = ['numpy', 'scip...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -30,11 +30,11 @@\n author_email = 'matt.newville@gmail.com',\n url = 'http://lmfit.github.io/lmfit-py/',\n download_url = 'http://lmfit.github.io//lmfit-py/',\n- requires = ('numpy', 'scipy'),\n+ r...
878
185
gh_patches_debug_8538
rasdani/github-patches
git_diff
qtile__qtile-1768
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- widget.CheckUpdates not hidden when no updates are available <!-- Please do not ask general questions here! There are [community contact](https://github.com/qtile/qtile#community) options for that. --> ...
diff --git a/libqtile/widget/check_updates.py b/libqtile/widget/check_updates.py --- a/libqtile/widget/check_updates.py +++ b/libqtile/widget/check_updates.py @@ -75,7 +75,11 @@ self.subtr = 0 except CalledProcessError: updates = "" - num_updates = str(len(updates.splitline...
{"golden_diff": "diff --git a/libqtile/widget/check_updates.py b/libqtile/widget/check_updates.py\n--- a/libqtile/widget/check_updates.py\n+++ b/libqtile/widget/check_updates.py\n@@ -75,7 +75,11 @@\n self.subtr = 0\n except CalledProcessError:\n updates = \"\"\n- num_updates =...
1,723
152
gh_patches_debug_2136
rasdani/github-patches
git_diff
Kinto__kinto-1752
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Deleting a collection doesn't delete access_control_entries for its children `buckets.py` has an event listener that ensures that when a bucket is deleted, everything underneath it is recursively deleted. `co...
diff --git a/kinto/views/collections.py b/kinto/views/collections.py --- a/kinto/views/collections.py +++ b/kinto/views/collections.py @@ -56,4 +56,4 @@ with_deleted=False) storage.purge_deleted(collection_id=None, parent_id=parent_id) - permiss...
{"golden_diff": "diff --git a/kinto/views/collections.py b/kinto/views/collections.py\n--- a/kinto/views/collections.py\n+++ b/kinto/views/collections.py\n@@ -56,4 +56,4 @@\n with_deleted=False)\n storage.purge_deleted(collection_id=None,\n parent_id=pare...
923
90
gh_patches_debug_1396
rasdani/github-patches
git_diff
googleapis__google-cloud-python-5366
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- General: v0.33.0 pip install fails In a fresh Python v2.7.12 virtualenv on linux: ``` pip install google-cloud ``` Results in: ``` Traceback (most recent call last): File "<string>", line 1...
diff --git a/legacy/google-cloud/setup.py b/legacy/google-cloud/setup.py --- a/legacy/google-cloud/setup.py +++ b/legacy/google-cloud/setup.py @@ -76,7 +76,7 @@ setup( name='google-cloud', - version='0.33.0', + version='0.33.1', description='API Client library for Google Cloud', long_description...
{"golden_diff": "diff --git a/legacy/google-cloud/setup.py b/legacy/google-cloud/setup.py\n--- a/legacy/google-cloud/setup.py\n+++ b/legacy/google-cloud/setup.py\n@@ -76,7 +76,7 @@\n \n setup(\n name='google-cloud',\n- version='0.33.0',\n+ version='0.33.1',\n description='API Client library for Google Clo...
1,739
103
gh_patches_debug_30505
rasdani/github-patches
git_diff
keras-team__autokeras-459
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- improve code quality using Codacy <!--- **If you are reporting a bug:** * Verify that your issue is not being currently addressed by other issues or pull requests. * Please note that Auto-Keras is only c...
diff --git a/autokeras/pretrained/voice_generator/deepvoice3_pytorch/conv.py b/autokeras/pretrained/voice_generator/deepvoice3_pytorch/conv.py --- a/autokeras/pretrained/voice_generator/deepvoice3_pytorch/conv.py +++ b/autokeras/pretrained/voice_generator/deepvoice3_pytorch/conv.py @@ -12,29 +12,29 @@ self.cle...
{"golden_diff": "diff --git a/autokeras/pretrained/voice_generator/deepvoice3_pytorch/conv.py b/autokeras/pretrained/voice_generator/deepvoice3_pytorch/conv.py\n--- a/autokeras/pretrained/voice_generator/deepvoice3_pytorch/conv.py\n+++ b/autokeras/pretrained/voice_generator/deepvoice3_pytorch/conv.py\n@@ -12,29 +12,29 ...
960
526
gh_patches_debug_8653
rasdani/github-patches
git_diff
Health-Informatics-UoN__Carrot-Mapper-732
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Scan Report Edit Table --- END ISSUE --- Below are some code segments, each from a relevant file. One or more of these files may contain bugs. --- BEGIN FILES --- Path: `app/api/proxy/urls.py` Content: ```...
diff --git a/app/api/proxy/urls.py b/app/api/proxy/urls.py --- a/app/api/proxy/urls.py +++ b/app/api/proxy/urls.py @@ -25,6 +25,11 @@ ProxyView.as_view(upstream=f"{settings.NEXTJS_URL}/scanreports/"), name="scan-report-values", ), + re_path( + r"^scanreports/(?P<path>\d+/tables/\d+/upda...
{"golden_diff": "diff --git a/app/api/proxy/urls.py b/app/api/proxy/urls.py\n--- a/app/api/proxy/urls.py\n+++ b/app/api/proxy/urls.py\n@@ -25,6 +25,11 @@\n ProxyView.as_view(upstream=f\"{settings.NEXTJS_URL}/scanreports/\"),\n name=\"scan-report-values\",\n ),\n+ re_path(\n+ r\"^scanreport...
719
176
gh_patches_debug_8969
rasdani/github-patches
git_diff
aws__serverless-application-model-610
We are currently solving the following issue within our repository. Here is the issue text: --- BEGIN ISSUE --- Rendering on PyPI is broken **Description:** Rendering of the README on PyPI is broken because it expects RST by default and Markdown is being uploaded. **Steps to reproduce the issue:** 1. Go to https...
diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -54,6 +54,7 @@ version=read_version(), description='AWS SAM Translator is a library that transform SAM templates into AWS CloudFormation templates', long_description=read('README.md'), + long_description_content_type='text/markdown', ...
{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -54,6 +54,7 @@\n version=read_version(),\n description='AWS SAM Translator is a library that transform SAM templates into AWS CloudFormation templates',\n long_description=read('README.md'),\n+ long_description_content_...
1,106
111